/*:root {
    --bg-main: #fbfaf8;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #737373;
    --primary: #c59b6c;
    --primary-dark: #a97e4e;
    --accent-pink: #f7ede8;
    --sale-red: #c0392b;
    --border-light: #eae6df;
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}*/

/*:root {
    --bg-main: #fbfaf8;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #737373;*/
/* تنظیم رنگ اصلی سایت روی رنگ پس‌زمینه لوگو */
/*--primary: #425050;
    --primary-dark: #323d3d;
    --accent-pink: #f2f5f5;*/ /* هماهنگ با طیف لایت پس‌زمینه لوگو */
/*--sale-red: #c0392b;
    --border-light: #e2e6e6;
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Announcement Bar */
.top-banner {
    background-color: #212121;
    color: #fff;
    text-align: center;
    font-size: 0.82rem;
    padding: 8px 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

    .top-banner strong {
        color: var(--primary);
        font-weight: 600;
    }

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

    .nav-link:hover, .nav-link.active {
        color: var(--primary);
    }

    .nav-link.text-sale {
        color: var(--sale-red);
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.action-btn, .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

    .action-btn:hover, .cart-btn:hover {
        background-color: #f0ebe4;
    }

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

    .mobile-toggle span {
        width: 22px;
        height: 2px;
        background: var(--text-dark);
        transition: var(--transition);
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?w=1600&auto=format&fit=crop&q=80') center/cover no-repeat;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
    }

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

    .btn-outline:hover {
        background-color: #fff;
        color: var(--text-dark);
    }

/* Sections Common */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

    .section-header h2 {
        font-size: 1.9rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .section-header p {
        color: var(--text-muted);
        font-size: 0.95rem;
    }

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    text-align: center;
    transition: var(--transition);
}

.category-img-wrap {
    width: 100%;
    padding-top: 120%;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
}

    .category-img-wrap img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.category-card:hover .category-img-wrap img {
    transform: scale(1.08);
}

.category-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-hover);
    }

.product-thumb {
    position: relative;
    width: 100%;
    padding-top: 130%;
    background: #f4f3f0;
    overflow: hidden;
}

    .product-thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.badge-new {
    background-color: #212121;
    color: #fff;
}

.badge-sale {
    background-color: var(--sale-red);
    color: #fff;
}

.btn-wishlist {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

    .btn-wishlist:hover {
        background: #fff;
        color: var(--sale-red);
    }

.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 12px;
}

    .product-title a:hover {
        color: var(--primary);
    }

.color-swatches {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    outline: 2px solid transparent;
    transition: var(--transition);
}

    .swatch.active {
        outline: 2px solid var(--primary);
        outline-offset: 1px;
    }

.product-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pricing {
    display: flex;
    flex-direction: column;
}

.price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.btn-cart {
    background-color: var(--text-dark);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .btn-cart:hover {
        background-color: var(--primary);
    }

/* Features */
.features-bar {
    background: #f4efe9;
    padding: 50px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
    padding: 70px 0;
    text-align: center;
    background-color: var(--accent-pink);
}

.newsletter-content {
    max-width: 550px;
}

    .newsletter-content h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .newsletter-content p {
        color: var(--text-muted);
        margin-bottom: 24px;
        font-size: 0.95rem;
    }

.newsletter-form {
    display: flex;
    gap: 10px;
}

    .newsletter-form input {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-sm);
        font-family: inherit;
        font-size: 0.95rem;
        outline: none;
    }

        .newsletter-form input:focus {
            border-color: var(--primary);
        }

    .newsletter-form button {
        background-color: var(--text-dark);
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: var(--radius-sm);
        font-family: inherit;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

        .newsletter-form button:hover {
            background-color: var(--primary);
        }

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #c9c9c9;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 8px;
    }

    .footer-col ul a {
        font-size: 0.88rem;
        transition: var(--transition);
    }

        .footer-col ul a:hover {
            color: var(--primary);
        }

.footer-col p {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid #2e2e2e;
    padding: 20px 0;
    font-size: 0.82rem;
    text-align: center;
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
        display: none;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

        .nav-menu.open {
            display: flex;
        }

    .hero-title {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================
   بخش دسته‌بندی‌ها و کارت‌های لومن (بهینه‌شده و یکپارچه)
   ========================================================== */

/* ==========================================
   Lumene Home Categories & Collections Styles (Complete & Clean)
   ========================================== */

.categories-section {
    background: radial-gradient(circle at center, #fff9f9 0%, #f6f0ee 100%);
    overflow: hidden;
    position: relative;
    padding: 60px 0;
    width: 100%;
}

.orbit-heading {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

    .orbit-heading > span {
        display: inline-block;
        color: #9e6274;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .orbit-heading h2 {
        color: #30272c;
        font-size: 2.1rem;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .orbit-heading p {
        color: #796c72;
        font-size: 0.95rem;
    }

/* --- ۱. مدار چرخان لوکس (Orbit Layout) --- */
.collection-orbit {
    position: relative;
    width: min(100%, 920px);
    aspect-ratio: 1.35;
    margin: 80px auto 0;
    isolation: isolate;
}

.orbit-line {
    position: absolute;
    inset: 5% 5%;
    border-radius: 50%;
    border: 1.5px dashed rgba(183, 123, 141, 0.4);
    pointer-events: none;
    animation: orbitRotate 45s linear infinite;
    box-shadow: inset 0 0 40px rgba(183, 123, 141, 0.08);
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 6px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(158, 98, 116, 0.3), 0 20px 50px rgba(73, 35, 49, 0.22);
    animation: centerPulse 6s ease-in-out infinite;
    z-index: 5;
}

@keyframes centerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.orbit-center::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to top, rgba(30, 14, 22, 0.78), transparent);
    pointer-events: none;
}

.orbit-center img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.orbit-category {
    position: absolute;
    left: var(--orbit-left, 50%);
    top: var(--orbit-top, 50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 165px;
    transform: translate(-50%, -50%);
    text-align: center;
    text-decoration: none;
    animation: floatOrb 5.8s ease-in-out infinite;
    animation-delay: var(--anim-delay, 0s);
    transition: transform 0.3s ease;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }
}

.orbit-category.is-top {
    flex-direction: column-reverse;
}

.orbit-category-image {
    position: relative;
    display: block;
    width: 140px;
    aspect-ratio: 1;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c59b6c, #eec0c8, #9e6274);
    box-shadow: 0 10px 24px rgba(73, 35, 49, 0.16);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

    .orbit-category-image img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
    }

.orbit-category-name {
    color: #423039;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: color 0.3s ease;
}

.orbit-category:hover {
    animation-play-state: paused;
}

    .orbit-category:hover .orbit-category-image {
        transform: scale(1.12);
        box-shadow: 0 16px 32px rgba(158, 98, 116, 0.35);
    }

    .orbit-category:hover .orbit-category-name {
        color: #9e6274;
    }

/* --- ۲. قالب شبکه‌ی دایره‌ای و اسکرول --- */
.hc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
    max-width: 920px;
    margin: 40px auto 0;
}

.hc-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 16px 10px;
    margin-top: 30px;
    scrollbar-width: none;
}

    .hc-scroll::-webkit-scrollbar {
        display: none;
    }

    .hc-scroll .hc-item {
        flex: 0 0 96px;
        scroll-snap-align: start;
    }

.hc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
}

.hc-circle {
    display: block;
    width: 135px;
    aspect-ratio: 1;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c59b6c, #eec0c8, #9e6274);
    box-shadow: 0 8px 20px rgba(73, 35, 49, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .hc-circle img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #fff;
    }

.hc-name {
    color: #423039;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    margin-top: 4px;
}

.hc-item:hover .hc-circle {
    transform: scale(1.08);
    box-shadow: 0 16px 32px rgba(158, 98, 116, 0.35);
}

/* --- ۳. قالب کارت‌های مستطیلی فلت --- */
.hc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light, #eae6df);
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .hc-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .hc-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(20, 15, 18, 0.7) 0%, rgba(20, 15, 18, 0.2) 50%, transparent 100%);
        pointer-events: none;
    }

.hc-card-name {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 2;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: right;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(73, 35, 49, 0.1);
    border-color: #9e6274;
}

    .hc-card:hover img {
        transform: scale(1.05);
    }

/* --- ۴. ریسپانسیو (موبایل و دسکتاپ) --- */
@media (max-width: 1024px) {
    .hc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 30px 0 !important;
    }

    .collection-orbit {
        width: 100%;
        aspect-ratio: 1.1;
        margin-top: 50px;
    }

    .orbit-center {
        width: 42%;
    }

    .orbit-category {
        width: 90px;
        gap: 6px;
    }

    .orbit-category-image {
        width: 76px;
        padding: 3px;
    }

    .hc-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px 10px;
    }

    .hc-circle {
        width: 84px;
    }

    .hc-name {
        font-size: 0.8rem;
        white-space: normal;
    }

    /* کارت‌ها در موبایل: تک ستونه با فاصله ایمن */
    .hc-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 20px !important;
        padding: 0 16px;
    }

    .hc-card {
        aspect-ratio: 2.1 / 1;
        width: 100%;
    }

    .hc-card-name {
        font-size: 1rem;
        bottom: 12px;
        right: 14px;
        left: 14px;
    }

    .hc-scroll .hc-item {
        flex-basis: 80px;
    }

    html {
        scroll-behavior: smooth;
    }
}

@media (min-width: 992px) {
    .hc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hc-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hc-card {
        aspect-ratio: 16 / 11;
    }

    .hc-scroll {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

        .hc-scroll .hc-item {
            flex-basis: 150px;
        }
}

/* اصلاح فاصله در منوی دایره‌ای لوکس؛ این بخش را انتهای CSS بگذارید */
.collection-orbit {
    width: min(100%, 920px);
    aspect-ratio: 1.18;
    min-height: 720px;
    margin: 60px auto 0;
}

/* برچسب‌ها بالاتر از تصویرها بمانند و خوانا باشند */
.orbit-category {
    z-index: 6;
}

.orbit-category-name {
    position: relative;
    z-index: 7;
    line-height: 1.5;
}

/* فاصله بیشتر و اندازه مناسب‌تر در موبایل */
@media (max-width: 768px) {
    .collection-orbit {
        width: 100%;
        aspect-ratio: 0.8;
        min-height: 420px;
        margin: 40px auto 0;
    }

    .orbit-category {
        width: 88px;
        gap: 8px;
    }

    .orbit-category-image {
        width: 72px;
    }

    .orbit-category-name {
        max-width: 112px;
        padding: 4px 10px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

/* متغیرهای رنگی پیش‌فرض (Light) */
:root {
    --bg-page: #fbf9f7;
    --bg-card: #ffffff;
    --bg-surface: #f4ede6;
    --text-primary: #1f1b18;
    --text-muted: #736c66;
    --border-color: rgba(0, 0, 0, 0.08);
    --gold-primary: #c98e57;
    --gold-hover: #b47942;
    --header-bg: rgba(255, 255, 255, 0.85);
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* متغیرهای حالت شب (Dark Mode) برای کل سایت */
html.dark-mode {
    --bg-page: #0f0e11 !important;
    --bg-card: #18171b !important;
    --bg-surface: #1e1b22 !important;
    --text-primary: #f5f2ed !important;
    --text-muted: #a69e96 !important;
    --border-color: rgba(212, 163, 115, 0.15) !important;
    --gold-primary: #d4a373 !important;
    --gold-hover: #e5b98d !important;
    --header-bg: rgba(15, 14, 17, 0.9) !important;
    --shadow-card: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 163, 115, 0.05) !important;
}

    /* اعمال سراسری متغیرها به بدنه و تگ‌ها */
    body, html.dark-mode body {
        background-color: var(--bg-page) !important;
        color: var(--text-primary) !important;
    }

    /* تمام بخش‌های اصلی، کانتینرها و مستطیل‌ها در حالت دارک */
    html.dark-mode main,
    html.dark-mode section,
    html.dark-mode div:not(.modal-content):not(.search-dropdown),
    html.dark-mode header,
    html.dark-mode footer {
        background-color: transparent; /* برای حفظ گرادینت‌ها و طرح‌های پس‌زمینه */
        color: var(--text-primary);
    }

    /* کارت‌ها، باکس‌ها و محصولات */
    html.dark-mode .product-card,
    html.dark-mode .category-card,
    html.dark-mode .card,
    html.dark-mode .bg-white,
    html.dark-mode .box {
        background-color: var(--bg-card) !important;
        border-color: var(--border-color) !important;
        color: var(--text-primary) !important;
        box-shadow: var(--shadow-card) !important;
    }

    /* اصلاح رنگ متن‌های معمولی و تایتل‌ها */
    html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
    html.dark-mode h4, html.dark-mode h5, html.dark-mode h6,
    html.dark-mode span, html.dark-mode p, html.dark-mode a {
        color: inherit;
    }

    html.dark-mode .text-muted, html.dark-mode small {
        color: var(--text-muted) !important;
    }

/* استایل آیکون‌های دکمه سوییچ تم */
.theme-toggle-btn {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.25s ease, color 0.2s ease;
}

    .theme-toggle-btn:hover {
        transform: rotate(15deg);
        color: #d4a373 !important;
    }

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

html.dark-mode .sun-icon {
    display: block;
    color: #d4a373;
}

html.dark-mode .moon-icon {
    display: none;
}