/* ======================================== */
/* ===== تنظیمات پایه (قهوه‌ای تیره، پنجره‌های کرمی) ===== */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background: #3E2723; /* قهوه‌ای تیره */
    color: #F5E6D3;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ======================================== */
/* ===== نوار بالایی (قهوه‌ای تیره با شفافیت) ===== */
/* ======================================== */
.top-bar {
    background: rgba(62, 39, 35, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    transition: all 0.3s;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #F5E6D3;
    border-radius: 4px;
    transition: all 0.3s;
}
.hamburger:hover span {
    background: #C9A96E;
}

/* عنوان حذف شد */

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #F5E6D3;
    font-size: 14px;
    font-weight: 400;
}
.user-display .profile-btn {
    background: transparent;
    border: 1.5px solid #C9A96E;
    color: #C9A96E;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazirmatn', sans-serif;
}
.user-display .profile-btn:hover {
    background: #C9A96E;
    color: #3E2723;
}

.auth-top-btn {
    background: transparent;
    border: 1.5px solid #C9A96E;
    color: #C9A96E;
    padding: 5px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    transition: 0.3s;
}
.auth-top-btn:hover {
    background: #C9A96E;
    color: #3E2723;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
}
.auth-top-btn.login-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}
.auth-top-btn.login-btn:hover {
    background: #4CAF50;
    color: #3E2723;
}
.auth-top-btn.register-btn {
    border-color: #2196F3;
    color: #2196F3;
}
.auth-top-btn.register-btn:hover {
    background: #2196F3;
    color: #3E2723;
}
.auth-top-btn.logout-btn {
    border-color: #ff6b6b;
    color: #ff6b6b;
}
.auth-top-btn.logout-btn:hover {
    background: #ff6b6b;
    color: #3E2723;
}

.cart-btn {
    background: transparent;
    border: 1.5px solid #C9A96E;
    color: #F5E6D3;
    padding: 5px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Vazirmatn', sans-serif;
    transition: 0.3s;
    position: relative;
}
.cart-btn:hover {
    background: #C9A96E;
    color: #3E2723;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
}
#cartCount {
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    padding: 0 6px;
    font-size: 11px;
    margin-right: 3px;
}

/* ======================================== */
/* ===== دکمه حالت شب ===== */
/* ======================================== */
.dark-mode-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F5E6D3;
    color: #3E2723;
    border: 1.5px solid #C9A96E;
    font-size: 22px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.dark-mode-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(201, 169, 110, 0.2);
}

/* ===== حالت شب ===== */
body.dark-mode {
    background: #1a1412;
    color: #E8DDD0;
}
body.dark-mode .top-bar {
    background: rgba(26, 20, 18, 0.92);
    border-bottom-color: rgba(201, 169, 110, 0.1);
}
body.dark-mode .hamburger span {
    background: #E8DDD0;
}
body.dark-mode .cart-btn {
    color: #E8DDD0;
    border-color: #C9A96E;
}
body.dark-mode .cart-btn:hover {
    background: #C9A96E;
    color: #1a1412;
}
body.dark-mode .auth-top-btn {
    color: #C9A96E;
    border-color: #C9A96E;
}
body.dark-mode .auth-top-btn:hover {
    background: #C9A96E;
    color: #1a1412;
}
body.dark-mode .user-display {
    color: #E8DDD0;
}
body.dark-mode .user-display .profile-btn {
    border-color: #C9A96E;
    color: #C9A96E;
}
body.dark-mode .user-display .profile-btn:hover {
    background: #C9A96E;
    color: #1a1412;
}
body.dark-mode .dark-mode-btn {
    background: #2c221e;
    color: #C9A96E;
    border-color: #C9A96E;
}
body.dark-mode .category-card,
body.dark-mode .gold-price-section,
body.dark-mode .price-item,
body.dark-mode .product-item-card,
body.dark-mode .auth-box,
body.dark-mode .calculator-box,
body.dark-mode .product-detail-box,
body.dark-mode .product-list-box,
body.dark-mode .about-section,
body.dark-mode .banner-section {
    background: #2c221e;
    color: #E8DDD0;
    border-color: rgba(201, 169, 110, 0.08);
}
body.dark-mode .category-card h3,
body.dark-mode .product-item-name,
body.dark-mode .product-detail-info .product-name {
    color: #E8DDD0;
}
body.dark-mode .admin-input,
body.dark-mode .auth-input,
body.dark-mode .search-section input {
    background: #2c221e;
    color: #E8DDD0;
    border-color: #4a3a34;
}
body.dark-mode .price-item .label {
    color: #b5a898;
}
body.dark-mode .price-item .value {
    color: #E8DDD0;
}
body.dark-mode .about-section p {
    color: #c0b4a8;
}
body.dark-mode .cart-item {
    border-color: #4a3a34;
}
body.dark-mode .cart-item .cart-item-name {
    color: #E8DDD0;
}
body.dark-mode .notification {
    background: #2c221e;
    color: #E8DDD0;
}
body.dark-mode .hero-section {
    background: linear-gradient(145deg, #2c221e, #3a2e28);
}
body.dark-mode footer {
    background: #1a1412;
    border-top-color: rgba(201, 169, 110, 0.05);
}
body.dark-mode .footer-info h3 {
    color: #E8DDD0;
}
body.dark-mode .footer-contact p {
    color: #b5a898;
}
body.dark-mode .footer-bottom {
    border-top-color: #4a3a34;
    color: #7a6e62;
}
body.dark-mode .terms-checkbox-section {
    background: #2c221e;
}
body.dark-mode .terms-checkbox-section label {
    color: #E8DDD0;
}

/* ======================================== */
/* ===== منوی همبرگری (کرمی) ===== */
/* ======================================== */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #F5E6D3;
    z-index: 1000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.2);
    padding: 60px 24px 30px;
    overflow-y: auto;
}
.side-menu.open {
    right: 0;
}
.menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.close-menu {
    background: none;
    border: none;
    color: #3E2723;
    font-size: 28px;
    cursor: pointer;
    align-self: flex-start;
    padding: 4px 8px;
    transition: transform 0.3s;
}
.close-menu:hover {
    transform: rotate(90deg);
    color: #C9A96E;
}
.menu-content ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}
.menu-content ul li {
    color: #3E2723;
    font-size: 17px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s;
    margin-bottom: 4px;
    font-weight: 400;
}
.menu-content ul li:hover {
    background: rgba(201, 169, 110, 0.15);
    padding-right: 24px;
    color: #C9A96E;
}

body.dark-mode .side-menu {
    background: #2c221e;
}
body.dark-mode .side-menu .close-menu,
body.dark-mode .side-menu ul li {
    color: #E8DDD0;
}
body.dark-mode .side-menu ul li:hover {
    background: rgba(201, 169, 110, 0.1);
    color: #C9A96E;
}

/* ======================================== */
/* ===== محتوای اصلی ===== */
/* ======================================== */
.main-content {
    margin-top: 74px;
    padding: 24px 32px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================== */
/* ===== بخش هدر (Hero) با عنوان طلایی براق ===== */
/* ======================================== */
.hero-section {
    text-align: center;
    padding: 50px 20px 40px;
    background: #5D4037; /* قهوه‌ای متوسط */
    border-radius: 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(201, 169, 110, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ===== عنوان فارسی (گالری طلای طیبی) ===== */
.gallery-name {
    font-family: 'Noto Nastaliq Urdu', 'Vazirmatn', serif;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
    color: #D4AF37; /* طلایی براق و یکدست */
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); /* براقیت ملایم */
    transition: transform 0.3s ease;
}
.gallery-name:hover {
    transform: scale(1.02);
}

/* ===== زیرنویس انگلیسی ===== */
.gallery-sub {
    font-size: 18px;
    color: #D4AF37; /* همان طلایی براق */
    letter-spacing: 8px;
    font-weight: 300;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.2); /* براقیت ملایم */
    transition: transform 0.3s ease;
}
.gallery-sub:hover {
    transform: scale(1.02);
}

/* ======================================== */
/* ===== بخش جستجو ===== */
/* ======================================== */
.search-section {
    margin-bottom: 32px;
}
.search-section input {
    width: 100%;
    padding: 14px 24px;
    border: 1.5px solid #5D4037;
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    background: #F5E6D3;
    color: #3E2723;
    transition: 0.3s;
    outline: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.search-section input::placeholder {
    color: #8D7B6E;
}
.search-section input:focus {
    border-color: #C9A96E;
    box-shadow: 0 4px 24px rgba(201, 169, 110, 0.1);
}

/* ======================================== */
/* ===== بخش بنر (کارت کرمی) ===== */
/* ======================================== */
.banner-section {
    position: relative;
    margin-bottom: 48px;
    border-radius: 28px;
    overflow: hidden;
    background: #F5E6D3;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}
.banner-slider {
    position: relative;
    height: 380px;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.banner-slide.active {
    opacity: 1;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}
.banner-text {
    position: absolute;
    bottom: 36px;
    right: 36px;
    background: rgba(62, 39, 35, 0.8);
    backdrop-filter: blur(8px);
    padding: 20px 30px;
    border-radius: 20px;
    color: #F5E6D3;
    border-right: 4px solid #C9A96E;
}
.banner-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: #C9A96E;
}
.banner-text p {
    font-size: 15px;
    color: #D7CCC8;
}
.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(62, 39, 35, 0.3);
    cursor: pointer;
    transition: 0.3s;
}
.dot.active {
    background: #C9A96E;
    transform: scale(1.2);
}

/* ======================================== */
/* ===== بخش دسته‌بندی (کارت‌های کرمی) ===== */
/* ======================================== */
.categories-section {
    margin-bottom: 56px;
}
.categories-section h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    color: #F5E6D3;
    margin-bottom: 32px;
    letter-spacing: 2px;
}
.categories-section h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #C9A96E;
    margin: 10px auto;
    border-radius: 4px;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.category-card {
    background: #F5E6D3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    border: 1px solid rgba(201, 169, 110, 0.05);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 48px rgba(201, 169, 110, 0.1);
    border-color: #C9A96E;
}
.category-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: 0.3s;
}
.category-card:hover img {
    filter: brightness(0.92);
}
.category-card h3 {
    padding: 16px 10px 4px;
    font-size: 16px;
    font-weight: 600;
    color: #3E2723;
}
.category-card .count {
    color: #8D7B6E;
    font-size: 12px;
    display: block;
    padding-bottom: 16px;
}

/* ======================================== */
/* ===== بخش قیمت طلا (کارت‌های کرمی) ===== */
/* ======================================== */
.gold-price-section {
    background: #F5E6D3;
    border-radius: 28px;
    padding: 32px 28px;
    margin-bottom: 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.05);
}
.gold-price-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 28px;
    color: #3E2723;
    letter-spacing: 1px;
}
.gold-price-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.price-item {
    background: #EFE0C9;
    padding: 18px 12px;
    border-radius: 18px;
    text-align: center;
    transition: 0.3s;
    border-bottom: 3px solid #C9A96E;
}
.price-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.05);
}
.price-item .label {
    display: block;
    font-size: 13px;
    color: #6B5F53;
    margin-bottom: 6px;
}
.price-item .value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #3E2723;
}
.price-item .value.gold {
    color: #C9A96E;
}
.price-item .unit {
    display: block;
    font-size: 11px;
    color: #8D7B6E;
    margin-top: 2px;
}

/* ======================================== */
/* ===== بخش درباره ما (کارت کرمی) ===== */
/* ======================================== */
.about-section {
    background: #F5E6D3;
    border-radius: 28px;
    padding: 32px 28px;
    margin-bottom: 48px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.05);
}
.about-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #3E2723;
}
.about-section p {
    line-height: 2;
    color: #5D4037;
    text-align: justify;
    font-weight: 300;
}

/* ======================================== */
/* ===== فوتر (قهوه‌ای تیره) ===== */
/* ======================================== */
footer {
    background: #2E1C18;
    padding: 40px 30px 24px;
    border-radius: 28px 28px 0 0;
    border-top: 1px solid rgba(201, 169, 110, 0.06);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-info h3 {
    font-size: 26px;
    color: #F5E6D3;
    font-family: 'Noto Nastaliq Urdu', serif;
    margin-bottom: 6px;
}
.footer-info p {
    color: #8D7B6E;
}
.footer-contact p {
    margin: 8px 0;
    color: #D7CCC8;
    font-size: 14px;
}
.footer-contact a {
    color: #C9A96E;
    transition: 0.3s;
}
.footer-contact a:hover {
    color: #B8975A;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid #4A3A34;
    color: #8D7B6E;
    font-size: 13px;
}

/* ======================================== */
/* ===== استایل‌های احراز هویت (پنجره‌های کرمی) ===== */
/* ======================================== */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.auth-box {
    background: #F5E6D3;
    border-radius: 32px;
    padding: 36px;
    max-width: 460px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}
.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0D0C0;
}
.auth-header h2 {
    font-size: 22px;
    font-weight: 400;
    color: #3E2723;
}
.auth-header .close-auth {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #8D7B6E;
    transition: 0.3s;
}
.auth-header .close-auth:hover {
    transform: rotate(90deg);
    color: #3E2723;
}
.auth-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #D7CCC8;
    border-radius: 16px;
    margin-bottom: 14px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    transition: 0.3s;
    background: #FEF9F0;
    color: #3E2723;
}
.auth-input::placeholder {
    color: #A89A8C;
}
.auth-input:focus {
    outline: none;
    border-color: #C9A96E;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.08);
}
.auth-btn {
    width: 100%;
    padding: 14px;
    background: #C9A96E;
    color: #3E2723;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 6px;
}
.auth-btn:hover {
    background: #B8975A;
    transform: scale(1.01);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.15);
}
.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #D7CCC8 !important;
    color: #8D7B6E;
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    color: #6B5F53;
    font-size: 14px;
}
.auth-switch span {
    color: #C9A96E;
    cursor: pointer;
    font-weight: 500;
}
.auth-switch span:hover {
    text-decoration: underline;
}
#passwordHint {
    font-size: 12px;
    color: #8D7B6E;
    margin-bottom: 12px;
    text-align: right;
}

/* ===== بخش قوانین داخل فرم ثبت‌نام (کرمی) ===== */
.terms-checkbox-section {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 15px;
    background: #EFE0C9;
    padding: 12px 15px;
    border-radius: 16px;
    border-right: 3px solid #C9A96E;
}
.terms-checkbox-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #C9A96E;
    cursor: pointer;
}
.terms-checkbox-section label {
    font-size: 14px;
    color: #3E2723;
    cursor: pointer;
}
.terms-checkbox-section label .terms-link {
    color: #2196F3;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}
.terms-checkbox-section label .terms-link:hover {
    color: #1976D2;
}

/* ======================================== */
/* ===== پروفایل (کرمی) ===== */
/* ======================================== */
.profile-content {
    padding: 8px 0;
}
.profile-avatar {
    text-align: center;
    font-size: 56px;
    margin-bottom: 12px;
}
.profile-item {
    background: #EFE0C9;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px;
}
.profile-item .label {
    font-weight: 500;
    color: #6B5F53;
    font-size: 12px;
    display: block;
}
.profile-item .value {
    font-size: 18px;
    color: #3E2723;
    margin-top: 2px;
}
.profile-logout-btn {
    margin-top: 16px;
    background: #ff6b6b;
    color: #3E2723;
    border: none;
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
    width: 100%;
}
.profile-logout-btn:hover {
    background: #e05555;
    transform: scale(1.01);
}

/* ======================================== */
/* ===== لیست محصولات (پنجره کرمی) ===== */
/* ======================================== */
.product-list-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 9997;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.product-list-box {
    background: #F5E6D3;
    padding: 28px;
    border-radius: 32px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}
.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0D0C0;
}
.product-list-header h2 {
    font-size: 24px;
    font-weight: 400;
    color: #3E2723;
}
.product-list-header .close-list {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #8D7B6E;
    transition: 0.3s;
    padding: 4px 8px;
    border-radius: 50%;
}
.product-list-header .close-list:hover {
    transform: rotate(90deg);
    background: #EFE0C9;
    color: #3E2723;
}
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.product-item-card {
    background: #EFE0C9;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid transparent;
}
.product-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
    border-color: #C9A96E;
}
.product-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #3E2723;
    margin-bottom: 8px;
}
.product-item-image {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #E0D0C0;
}
.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-item-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 13px;
}
.product-item-info .info-row .info-label {
    color: #6B5F53;
}
.product-item-info .info-row .info-value {
    font-weight: 500;
    color: #3E2723;
}
.product-item-info .info-row .info-value.price {
    color: #C9A96E;
}
.detail-btn {
    width: 100%;
    padding: 10px;
    background: #C9A96E;
    color: #3E2723;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 10px;
}
.detail-btn:hover {
    background: #B8975A;
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.1);
}

/* ======================================== */
/* ===== جزئیات محصول (اسلایدر کرمی) ===== */
/* ======================================== */
.product-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 9996;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.product-detail-box {
    background: #F5E6D3;
    padding: 28px;
    border-radius: 32px;
    max-width: 800px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}
.close-detail {
    float: left;
    background: #EFE0C9;
    color: #3E2723;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.close-detail:hover {
    transform: rotate(90deg);
    background: #C9A96E;
    color: #3E2723;
}
.product-detail-gallery .main-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: 20px;
    background: #EFE0C9;
    cursor: grab;
}
.product-detail-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(62, 39, 35, 0.6);
    backdrop-filter: blur(4px);
    color: #F5E6D3;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 5;
}
.slide-btn:hover {
    background: #C9A96E;
    color: #3E2723;
    transform: translateY(-50%) scale(1.05);
}
.slide-btn.prev {
    left: 12px;
}
.slide-btn.next {
    right: 12px;
}
.image-counter {
    position: absolute;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    background: rgba(62, 39, 35, 0.7);
    backdrop-filter: blur(4px);
    color: #F5E6D3;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
}
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}
.thumbnails .thumb-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}
.thumbnails .thumb-image:hover {
    border-color: #C9A96E;
    transform: scale(1.04);
}
.thumbnails .thumb-image.active {
    border-color: #C9A96E;
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}
.thumbnails .thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.product-detail-info .spec-item {
    background: #EFE0C9;
    padding: 14px 16px;
    border-radius: 16px;
    text-align: center;
}
.product-detail-info .spec-item .spec-label {
    display: block;
    font-size: 12px;
    color: #6B5F53;
    margin-bottom: 4px;
}
.product-detail-info .spec-item .spec-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #3E2723;
}
.product-detail-info .spec-item .spec-value.gold-price {
    color: #C9A96E;
}
.product-detail-info .spec-item .spec-value .unit {
    font-size: 13px;
    font-weight: 400;
    color: #8D7B6E;
}

/* ======================================== */
/* ===== ماشین حساب (پنجره کرمی) ===== */
/* ======================================== */
.calculator-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 9997;
    justify-content: center;
    align-items: center;
}
.calculator-box {
    background: #F5E6D3;
    padding: 36px;
    border-radius: 32px;
    max-width: 460px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}
.calculator-box h2 {
    text-align: center;
    font-weight: 400;
    margin-bottom: 20px;
    color: #3E2723;
}
.calc-group {
    margin: 16px 0;
}
.calc-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #6B5F53;
    font-size: 14px;
}
.calc-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #D7CCC8;
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    transition: 0.3s;
    background: #FEF9F0;
    color: #3E2723;
}
.calc-group input::placeholder {
    color: #A89A8C;
}
.calc-group input:focus {
    outline: none;
    border-color: #C9A96E;
    background: #FFFFFF;
}
.calc-result {
    background: #EFE0C9;
    padding: 20px;
    border-radius: 18px;
    margin-top: 20px;
    text-align: center;
}
.calc-result .total {
    font-size: 28px;
    color: #C9A96E;
    font-weight: 700;
}
.calc-result p {
    color: #6B5F53;
}
.close-calc {
    float: left;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8D7B6E;
    transition: 0.3s;
}
.close-calc:hover {
    transform: rotate(90deg);
    color: #3E2723;
}

/* ======================================== */
/* ===== سبد خرید (کرمی) ===== */
/* ======================================== */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E0D0C0;
}
.cart-item .cart-item-name {
    font-weight: 500;
    color: #3E2723;
}
.cart-item .cart-item-price {
    color: #C9A96E;
    font-weight: 600;
}
.cart-item .cart-item-remove {
    background: #ff6b6b;
    color: #3E2723;
    border: none;
    padding: 4px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}
.cart-item .cart-item-remove:hover {
    background: #e05555;
    transform: scale(1.04);
}

/* ======================================== */
/* ===== نوتیفیکیشن (کرمی) ===== */
/* ======================================== */
.notification {
    background: #F5E6D3;
    color: #3E2723;
    padding: 14px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border-right: 4px solid #C9A96E;
    animation: slideIn 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}
.notification.success {
    border-right-color: #4CAF50;
}
.notification.error {
    border-right-color: #ff6b6b;
}
.notification.info {
    border-right-color: #2196F3;
}

/* ======================================== */
/* ===== اسکرول ===== */
/* ======================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #3E2723;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #C9A96E;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8975A;
}

/* ======================================== */
/* ===== انیمیشن‌ها ===== */
/* ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.auth-box,
.product-list-box,
.product-detail-box,
.calculator-box {
    animation: fadeIn 0.3s ease;
}
.product-item-card {
    animation: slideIn 0.25s ease;
}

/* ======================================== */
/* ===== واکنش‌گرایی ===== */
/* ======================================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gold-price-table {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .side-menu {
        width: 260px;
    }
    .product-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}
@media (max-width: 768px) {
    .side-menu {
        width: 220px;
    }
    .gallery-name {
        font-size: 40px !important;
    }
    .gallery-sub {
        font-size: 14px !important;
        letter-spacing: 4px !important;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-slider {
        height: 220px;
    }
    .banner-text {
        bottom: 16px;
        right: 16px;
        left: 16px;
        padding: 12px 16px;
    }
    .banner-text h3 {
        font-size: 18px;
    }
    .banner-text p {
        font-size: 13px;
    }
    .gold-price-table {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .user-area {
        gap: 6px;
    }
    .auth-top-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
    .user-display {
        font-size: 12px;
    }
    .product-list-box {
        padding: 16px;
    }
    .product-detail-box {
        padding: 16px;
    }
    .auth-box {
        padding: 24px;
    }
    .main-content {
        padding: 16px;
    }
    .product-detail-gallery .main-image {
        height: 260px;
    }
    .product-detail-info {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    .category-card img {
        height: 120px;
    }
    .gold-price-table {
        grid-template-columns: 1fr;
    }
    .gallery-name {
        font-size: 32px !important;
    }
    .gallery-sub {
        font-size: 12px !important;
        letter-spacing: 2px !important;
    }
    .banner-slider {
        height: 180px;
    }
    .banner-text h3 {
        font-size: 16px;
    }
    .banner-text p {
        font-size: 12px;
    }
    .product-list-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-item-card {
        padding: 10px;
    }
    .product-item-image {
        height: 100px;
    }
    .product-item-name {
        font-size: 13px;
    }
    .product-detail-gallery .main-image {
        height: 200px;
    }
    .slide-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .thumbnails .thumb-image {
        width: 48px;
        height: 48px;
    }
    .auth-box {
        padding: 18px;
    }
    .auth-header h2 {
        font-size: 18px;
    }
    .calculator-box {
        padding: 20px;
    }
    .calc-result .total {
        font-size: 22px;
    }
    .top-bar {
        padding: 8px 14px;
    }
    .cart-btn {
        font-size: 12px;
        padding: 3px 10px;
    }
}