/* style.css - نسخه نهایی و اصلاح شده */

/* ============================================
   --- ۱. تنظیمات ریشه و متغیرها (تم لوکس گالری سنگ) ---
   ============================================ */
:root {
    --bg-color-light: #F9F7F2; /* کرم خیلی روشن (مثل کاغذ قدیمی) */
    --bg-color-white: #FFFFFF;
    --text-primary: #2D1B1B; /* قهوه‌ای خیلی تیره */
    --text-secondary: #6D4C41; /* قهوه‌ای روشن */
    --accent-color: #880E4F; /* زرشکی/عنابی (رنگ عقیق) */
    --accent-color-dark: #560027;
    --accent-gold: #C5A059; /* طلایی مات */
    --border-color: #E0D6D6;
    --shadow-soft: 0 5px 15px rgba(45, 27, 27, 0.05);
    --shadow-strong: 0 10px 25px rgba(45, 27, 27, 0.15);
    --radius-main: 16px;
}

/* ============================================
   --- ۲. ریست و تنظیمات پایه ---
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--bg-color-light);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   --- ۳. هدر و نویگیشن ---
   ============================================ */
.site-header {
    background: var(--bg-color-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* لوگو */
.logo-container a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-container img { width: 50px; height: 50px; object-fit: contain; }
.logo-container .logo-icon { font-size: 1.8rem; color: var(--accent-gold); }
.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.2;
}

/* دکمه همبرگر موبایل */
.mobile-menu-toggle {
    display: none; /* در دسکتاپ مخفی */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

/* نویگیشن اصلی */
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav > ul > li { position: relative; }

/* لینک‌های منوی اصلی */
.main-nav > ul > li > a {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* افکت خط زیر لینک‌ها */
.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
    border-radius: 10px 10px 0 0;
}
.main-nav > ul > li:hover > a { color: var(--accent-color); }
.main-nav > ul > li:hover > a::after { width: 100%; }
.main-nav > ul > li > a i { font-size: 0.8rem; opacity: 0.7; transition: transform 0.3s; }
.main-nav > ul > li:hover > a i { transform: rotate(180deg); }

/* منوی کشویی (Dropdown) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background-color: #ffffff;
    border-top: 4px solid var(--accent-gold);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    z-index: 9999;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover {
    background-color: #FFF8E1;
    color: var(--accent-color);
    padding-right: 25px;
    border-right: 4px solid var(--accent-gold);
}

/* دکمه‌های هدر */
.header-buttons { display: flex; gap: 15px; align-items: center; }
.header-buttons .icon-btn {
    font-size: 1.3rem;
    color: var(--text-primary);
    position: relative;
    padding: 5px;
}
.header-buttons .icon-btn:hover { color: var(--accent-color); }

/* بج سبد خرید (اصلاح شده) */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #d32f2f;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* دکمه ورود/پروفایل */
.login-btn {
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(136, 14, 79, 0.2);
}
.login-btn:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 14, 79, 0.3);
}

/* ============================================
   --- ۴. بخش هیرو و جستجو ---
   ============================================ */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, #fff, var(--bg-color-light));
}
.hero-content h2 { font-size: 2.8rem; font-weight: 900; color: var(--text-primary); margin-bottom: 15px; }
.hero-content h2 span { color: var(--accent-color); }
.hero-content p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; }

.product-search-box {
    background: var(--bg-color-white);
    border-radius: 50px;
    box-shadow: var(--shadow-strong);
    padding: 8px;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
}
.search-input-group {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-left: 1px solid var(--border-color);
}
.search-input-group:last-of-type { border-left: none; }
.search-input-group i { color: var(--accent-gold); margin-left: 10px; font-size: 1.2rem; }
.search-input-group input, .search-input-group select {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Vazirmatn';
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
}
.search-submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-submit-btn:hover { background: var(--accent-color-dark); transform: rotate(-10deg); }

/* ============================================
   --- ۵. المان‌های مشترک (عنوان، دکمه‌ها و ...) ---
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 10px;
}

/* دکمه افزودن به سبد (عمومی - دایره‌ای) */
.add-to-cart-btn {
    background: var(--accent-gold);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(192, 148, 73, 0.3);
    font-size: 1.2rem;
}
.add-to-cart-btn:hover {
    background: #e0b350;
    transform: scale(1.1);
}
.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   --- ۶. کارت محصول و گرید‌ها ---
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    background: var(--bg-color-white);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-gold);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* نسبت مربع 1:1 */
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    background: #f8f8f8;
}
.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image-container img { transform: scale(1.1); }

/* برچسب ناموجود روی کارت */
.out-of-stock-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.out-of-stock-label {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}
.product-info h3 a { color: var(--text-primary); }
.product-info .gem-type {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: block;
    text-align: center;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price {
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.2rem;
}

/* ============================================
   --- ۷. صفحه جزئیات محصول ---
   ============================================ */
.breadcrumb { margin: 20px 0; font-size: 0.9rem; color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-color); }

.product-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: start;
}

/* گالری تصاویر */
.main-image-container {
    background: var(--bg-color-white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}
.main-image-container img { width: 100%; height: auto; border-radius: 15px; }
.thumbnail-list { display: flex; gap: 15px; justify-content: center; }
.thumb {
    width: 80px; height: 80px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.3s;
}
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--accent-color); }

/* اطلاعات محصول */
.product-title-single { font-size: 2rem; font-weight: 900; margin-bottom: 15px; }
.product-price-single {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 25px;
}
.short-description { font-size: 1.05rem; margin-bottom: 30px; line-height: 1.8; }

.specs-table {
    background: #FFF8E1;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--accent-gold);
}
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.3);
}
.spec-row:last-child { border-bottom: none; }
.spec-key { font-weight: 700; color: var(--text-secondary); }
.spec-key i { color: var(--accent-gold); margin-left: 8px; }

/* بخش خرید */
.purchase-box {
    background: var(--bg-color-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.qty-btn {
    width: 40px; height: 40px;
    border: 2px solid var(--border-color);
    background: #fff;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}
.qty-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
#product-quantity {
    width: 60px; height: 40px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Vazirmatn';
}

/* دکمه افزودن به سبد در صفحه محصول (بازنویسی استایل عمومی) */
.purchase-box .add-to-cart-btn {
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    gap: 12px;
    background: var(--accent-color);
    box-shadow: 0 5px 15px rgba(136, 14, 79, 0.3);
}
.purchase-box .add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(136, 14, 79, 0.4);
}
.purchase-box .add-to-cart-btn:disabled {
    background: #e74c3c;
    box-shadow: none;
}

.guarantee-features {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.feature {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.feature i {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    display: block;
}

/* ============================================
   --- ۸. صفحه سبد خرید ---
   ============================================ */
.cart-page-container { margin-top: 40px; margin-bottom: 60px; }
.cart-title { text-align: center; font-size: 2rem; font-weight: 900; margin-bottom: 40px; }

/* استایل جدول برای دسکتاپ */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}
.cart-table th {
    text-align: right;
    padding: 15px;
    color: var(--text-secondary);
    font-weight: 600;
}
.cart-table tbody tr {
    background: var(--bg-color-white);
    box-shadow: var(--shadow-soft);
    border-radius: 15px;
    transition: transform 0.3s;
}
.cart-table tbody tr:hover { transform: translateY(-3px); }
.cart-table td { padding: 20px; vertical-align: middle; }
.cart-table td:first-child { border-radius: 0 15px 15px 0; }
.cart-table td:last-child { border-radius: 15px 0 0 15px; }

.cart-item-image img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; border: 1px solid #eee; }
.cart-item-title { font-weight: 700; color: var(--text-primary); }
.qty-input { width: 60px; padding: 8px; text-align: center; border: 2px solid var(--border-color); border-radius: 8px; font-family: 'Vazirmatn'; font-size: 1rem; }
.remove-btn { border: none; background: none; color: #e74c3c; font-size: 1.3rem; cursor: pointer; transition: 0.2s; }
.remove-btn:hover { color: #c0392b; transform: scale(1.1); }

.cart-summary {
    background: var(--bg-color-white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-top: 40px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin-left: auto;
}
.cart-summary h3 { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.summary-row.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 800;
}
.final-price { color: var(--accent-color); font-size: 1.5rem; }

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}
.btn-cart-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn';
    gap: 10px;
}
.btn-continue { background: transparent; color: var(--text-primary); border: 2px solid var(--accent-gold); }
.btn-continue:hover { background: var(--accent-gold); color: white; }
.btn-checkout { background: var(--accent-gold); color: white; border: 2px solid var(--accent-gold); box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3); }
.btn-checkout:hover { background: #e0b350; transform: translateY(-3px); }

/* ============================================
   --- ۹. فوتر ---
   ============================================ */
.site-footer {
    background: #1A1010;
    color: #D7CCC8;
    padding: 70px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-section h3 { color: var(--accent-gold); margin-bottom: 25px; font-size: 1.3rem; position: relative; padding-bottom: 10px; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 2px; background: var(--accent-gold); }
.footer-section ul li { margin-bottom: 12px; }
.footer-section a { color: #D7CCC8; transition: 0.2s; }
.footer-section a:hover { color: var(--accent-gold); padding-right: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { font-size: 1.5rem; }
.footer-bottom { text-align: center; border-top: 1px solid #3E2723; padding-top: 30px; margin-top: 50px; font-size: 0.9rem; opacity: 0.8; }

/* ============================================
   --- ۱۰. واکنش‌گرایی (Responsive Design) ---
   ============================================ */

/* تبلت و پایین‌تر (عرض کمتر از 992px) */
@media (max-width: 992px) {
    /* هدر */
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 400px;
        height: 100vh;
        background: var(--bg-color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 30px;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
        overflow-y: auto;
    }
    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; width: 100%; align-items: flex-start; gap: 0; }
    .main-nav > ul > li { width: 100%; border-bottom: 1px solid var(--border-color); }
    .main-nav > ul > li > a { padding: 15px 0; font-size: 1.1rem; width: 100%; justify-content: space-between; }
    .main-nav > ul > li > a::after { display: none; }

    /* دراپ‌داون در موبایل */
    .dropdown-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none;
        background: #f9f9f9;
        width: 100%;
        display: none; /* پیش‌فرض مخفی */
        padding: 0;
    }
    .dropdown.active .dropdown-menu { display: block; } /* با کلاس active باز شود */
    .dropdown-menu a { padding: 12px 15px 12px 30px; font-size: 0.9rem; }
    .main-nav > ul > li > a i { transition: transform 0.3s; }
    .dropdown.active > a i { transform: rotate(180deg); }

    /* جستجو */
    .product-search-box { flex-direction: column; padding: 20px; border-radius: 25px; }
    .search-input-group { width: 100%; border-left: none; border-bottom: 1px solid var(--border-color); padding: 10px 0; margin-bottom: 10px; }
    .search-submit-btn { width: 100%; border-radius: 12px; margin-top: 10px; }

    /* صفحه محصول */
    .product-details-layout { grid-template-columns: 1fr; gap: 30px; }
    .purchase-box { position: static; box-shadow: none; background: transparent; padding: 0; border: none; }
    .guarantee-features { flex-wrap: wrap; gap: 20px; }
    .feature { width: 45%; }

    /* فوتر */
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* موبایل (عرض کمتر از 768px) */
@media (max-width: 768px) {
    .hero-content h2 { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }

    /* سبد خرید در موبایل (تبدیل به کارت) */
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tbody tr { margin-bottom: 20px; padding: 15px; }
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        text-align: left;
        border-radius: 0 !important;
    }
    .cart-table td:last-child { border-bottom: none; }
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
    }
    /* استثنا برای ستون محصول که عنوان نمیخواد */
    .cart-item-image::before { display: none; }

    .cart-actions-container { flex-direction: column-reverse; }
    .btn-cart-action { width: 100%; }
    .cart-summary { max-width: 100%; }

    /* فوتر */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-section h3::after { right: 50%; transform: translateX(50%); }
    .social-links { justify-content: center; }
    .footer-section a:hover { padding-right: 0; color: var(--accent-gold); }
}

/* موبایل کوچک (عرض کمتر از 480px) */
@media (max-width: 480px) {
    .logo-text { font-size: 1.2rem; }
    .logo-container img { width: 40px; height: 40px; }
    .header-buttons .icon-btn { font-size: 1.1rem; }
    .login-btn { font-size: 0.8rem; padding: 6px 15px; }
    .login-btn span { display: none; } /* مخفی کردن متن دکمه ورود در موبایل خیلی کوچک */

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-card { padding: 15px; }
    .product-info h3 { font-size: 1rem; }
    .price { font-size: 1.1rem; }
    .add-to-cart-btn { width: 35px; height: 35px; font-size: 1rem; }

    .product-title-single { font-size: 1.6rem; }
    .product-price-single { font-size: 1.5rem; }
    .purchase-box .add-to-cart-btn { font-size: 1rem; padding: 12px; }
    .feature { width: 100%; }
}
/* ============================================
   --- ۱۱. استایل نمادهای اعتماد (ریسپانسیو) ---
   ---     (نسخه اصلاح شده با ابعاد بزرگتر)    ---
   ============================================ */

.footer-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* فاصله بین نمادها */
    margin-top: 40px; /* فاصله بیشتر از محتوای فوتر */
    padding-bottom: 30px; /* فاصله بیشتر تا متن کپی‌رایت */
    flex-wrap: wrap; 
}

.footer-trust-badges a {
    display: inline-block;
    background: #fff; /* پس‌زمینه سفید برای نمادها */
    padding: 8px; /* پدینگ بیشتر دور لوگو */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.footer-trust-badges a:hover {
    transform: translateY(-4px);
}

.footer-trust-badges img {
    height: 85px; /* ارتفاع بزرگتر در دسکتاپ */
    width: auto;
    display: block;
}

/* --- حالت موبایل --- */
@media (max-width: 768px) {
    .footer-trust-badges {
        gap: 20px;
    }
    
    .footer-trust-badges img {
        height: 75px; /* ارتفاع بزرگتر در موبایل */
    }
}
/* ============================================
   --- ۱۱. استایل نمادهای اعتماد (داخل ستون فوتر) ---
   ============================================ */
        
/* این کلاس برای نگهدارنده نمادها در ستون اول فوتر است */
.footer-trust-badges-column {
    display: flex;
    justify-content: center; /* وسط‌چین کردن نمادها در ستون */
    align-items: center;
    gap: 15px; /* فاصله بین دو نماد */
    margin-top: 25px; /* فاصله از آیکون‌های سوشال */
    flex-wrap: wrap; 
}

.footer-trust-badges-column a {
    display: inline-block;
    padding: 5px;
    background: white; /* پس زمینه سفید برای لوگوها */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 0; /* برای حذف فاصله اضافی زیر عکس */
    transition: transform 0.3s;
}

.footer-trust-badges-column a:hover {
    transform: translateY(-3px);
}

.footer-trust-badges-column a img {
    width: 90px; /* اندازه دلخواه برای نمادها */
    height: auto;
    display: block;
}

/* ============================================
   --- ۱۲. استایل لوگوهای پرداخت (صفحه Checkout) ---
   ---      (دقیقاً شبیه استایل فوتر)      ---
   ============================================ */

/* این کلاس برای نگهدارنده نمادها در صفحه پرداخت است */
.payment-logos-container {
    display: flex;
    justify-content: center; /* وسط‌چین کردن */
    align-items: center;
    gap: 15px; /* فاصله بین نمادها (مثل فوتر) */
    
    /* فاصله بیشتر برای تنفس در صفحه پرداخت */
    margin-top: 35px; 
    margin-bottom: 35px; 
    
    flex-wrap: wrap; 
}

/* استایل کادر سفید (دقیقاً مثل فوتر) */
.payment-logos-container a {
    display: inline-block;
    padding: 5px;
    background: white; 
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 0; 
    transition: transform 0.3s;
}

/* افکت هاور (دقیقاً مثل فوتر) */
.payment-logos-container a:hover {
    transform: translateY(-3px);
}

/* خود عکس لوگو (دقیقاً مثل فوتر) */
.payment-logos-container a img {
    width: 90px; /* اندازه (مثل فوتر) */
    height: auto;
    display: block;
}
