/* =========================================
   1. DESIGN SYSTEM (CSS Variables)
   ========================================= */
:root {
    /* Light Theme (Catalog) */
    --color-bg: #FDFBF9;
    --color-card: #FFFFFF;
    --color-text-primary: #1A1412;
    --color-text-secondary: #6E6562;
    --color-accent: #C69B6D;
    --color-accent-hover: #A6794D;
    --color-surface-light: #F4F1EE;
    --color-border-light: rgba(26, 20, 18, 0.06);
    --shadow-soft: 0px 4px 16px rgba(26, 20, 18, 0.04);
    --shadow-medium: 0px 8px 24px rgba(26, 20, 18, 0.08);
    --shadow-large: 0px 16px 48px rgba(26, 20, 18, 0.12);
    --radius-card: 20px;
    --radius-pill: 50px;

    /* Dark Hero */
    --color-gold: #D4A373;
    --color-gold-hover: #C18E5A;
    --color-glass: rgba(255, 255, 255, 0.06);
    --color-glass-border: rgba(255, 255, 255, 0.12);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --container-margin: 24px;
    --header-height: 80px;
    --header-height-shrunk: 65px;

    /* Typography */
    --font-stack: 'Yekan Bakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font-stack);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    padding-top: 0;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
p  { font-size: clamp(0.9rem, 1.5vw, 1.1rem); font-weight: 400; color: var(--color-text-secondary); line-height: 1.6; }
small { font-size: 0.85rem; font-weight: 400; color: var(--color-text-secondary); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-margin);
}
.section-title {
    margin-bottom: var(--space-6);
    text-align: right;
}

/* =========================================
   3. ACCESSIBILITY & Z-INDEXES
   ========================================= */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
:root {
    --z-overlay: 1001;
    --z-drawer: 1002;
    --z-header: 1000;
    --z-floating: 900;
    --z-modal: 2000;
    --z-loader: 9999;
}

/* =========================================
   4. LOADING SCREEN
   ========================================= */
#loader {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.2, 0.0, 0.0, 1.0), visibility 0.4s ease;
    visibility: visible;
    pointer-events: all;
    contain: layout;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(212, 163, 115, 0.15);
    border-top: 4px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
    will-change: transform;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   5. HEADER (Transparent → Solid)
   ========================================= */
#app-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: var(--z-header);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-bottom: 1px solid transparent;
}
#app-header.header-transparent { background: transparent; }
#app-header.header-solid {
    background: rgba(26, 20, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-height-shrunk);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.brand-logo {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}
#desktop-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-6);
}
#desktop-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
#desktop-nav a:hover { color: #FFFFFF; }
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.icon-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover {
    color: #FFFFFF;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   6. DARK HERO (Fully Responsive)
   ========================================= */
#hero.hero-dark {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
    padding: calc(var(--header-height) + 40px) 0 40px 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(1.1);
    transform: scale(1.02);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(30, 20, 15, 0.7) 0%, rgba(212, 163, 115, 0.1) 100%);
}
.hero-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-4) 0;
}
@media (min-width: 768px) {
    .hero-wrapper {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--space-12);
    }
}
.hero-text-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}
@media (min-width: 768px) {
    .hero-text-content {
        text-align: right;
    }
}
.hero-logo-fade {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
}
.hero-text-content h1 {
    color: #FFFFFF;
    margin: var(--space-4) 0;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
}
.hero-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-6);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.6s forwards;
}
@media (min-width: 768px) {
    .hero-desc {
        margin-left: 0;
        margin-right: 0;
    }
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.8s forwards;
}
@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        gap: var(--space-4);
        justify-content: center;
    }
}
@media (min-width: 768px) {
    .hero-actions {
        justify-content: flex-start;
    }
}
.btn-hero {
    position: relative; 
    overflow: hidden; 
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    border-radius: var(--radius-pill); 
    padding: 0 32px; 
    height: 54px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    border: none;
    width: 100%;
    
    /* ▲ این دو خط را اضافه کنید تا متن دقیقاً وسط چیده شود ▲ */
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 480px) {
    .btn-hero {
        width: auto;
    }
}
.btn-hero:hover {
    transform: translateY(-3px);
}
.btn-hero.btn-hero {
    background: var(--color-gold);
    color: #1a1412;
}
.btn-hero.btn-hero:hover {
    background: var(--color-gold-hover);
    box-shadow: 0 6px 24px rgba(212, 163, 115, 0.4);
}
.btn-hero-secondary {
    background: rgba(26, 20, 18, 0.6);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.25);
    height: 54px;
    border-radius: var(--radius-pill);
    padding: 0 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    
    /* ▲ همین دو خط را برای دکمه دوم هم اضافه کنید ▲ */
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 480px) {
    .btn-hero-secondary {
        width: auto;
    }
}
.btn-hero-secondary:hover {
    border-color: #FFFFFF;
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}
.hero-visual-side {
    flex: 1;
    max-width: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-wrapper {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-card);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
    padding: var(--space-4);
}
.floating-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: floatAnim 6s ease-in-out infinite;
}
@keyframes floatAnim {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   7. GLASSMORPHISM FEATURE BAR
   ========================================= */
.hero-features-wrapper {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding-top: var(--space-6);
}
.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
@media (min-width: 480px) {
    .hero-features {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feature-card {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out forwards;
    cursor: default;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--space-2);
}
.feature-card h4 {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: var(--space-1);
}
.feature-card p {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* =========================================
   8. CATEGORIES (Filter Pills)
   ========================================= */
#categories {
    padding: var(--space-8) 0 var(--space-4);
    background: var(--color-bg);
    margin-top: var(--space-4);
}
#categories-list {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding: var(--space-1) 0 var(--space-2);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#categories-list::-webkit-scrollbar { display: none; }
.category-pill {
    flex: 0 0 auto;
    padding: var(--space-2) var(--space-6);
    background: var(--color-surface-light);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.category-pill.active {
    background: var(--color-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(198, 155, 109, 0.25);
}
.category-pill:hover:not(.active) {
    background: #e8e1d8;
}

/* =========================================
   9. PRODUCT GRID & CARDS (Premium Redesign)
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-8);
}
@media (min-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, box-shadow;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height */
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}
.product-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 85%; /* Improved aspect ratio */
    overflow: hidden;
    background-color: var(--color-surface-light);
}
.product-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-img-wrapper img {
    transform: scale(1.05);
}
.product-card-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: var(--space-2);
}
.product-card-body h3 {
    margin-bottom: var(--space-1);
}
.product-card-body p {
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}
.product-card-body .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: var(--space-4);
}
.btn-product {
    background: var(--color-accent);
    color: #FFFFFF;
    padding: 0 var(--space-5);
    height: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-product:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 155, 109, 0.2);
}
.product-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: #FFFFFF;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--color-accent);
}
.product-badge.out-of-stock { color: #d9534f; background: #f8d7da; }

/* =========================================
   10. ABOUT, CONTACT, FOOTER
   ========================================= */
#about {
    padding: var(--space-16) 0;
    background-color: #faf8f6;
}
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}
@media (min-width: 768px) {
    .about-wrapper { grid-template-columns: 1fr 1fr; }
}
#about-image {
    width: 100%;
    border-radius: var(--radius-card);
    background-color: var(--color-surface-light);
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}
#contact {
    padding: var(--space-16) 0;
}
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}
#contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}
@media (min-width: 768px) {
    #contact-content { grid-template-columns: 1fr 1fr; align-items: start; }
}
.contact-input {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid rgba(26, 20, 18, 0.08);
    border-radius: var(--space-2);
    background: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.contact-input:focus { border-color: var(--color-accent); }
.contact-info-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
}
@media (min-width: 768px) {
    .contact-info-links { border-top: none; padding-top: 0; }
}
.contact-info-links a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}
.contact-info-links a:hover { color: var(--color-accent); }
#app-footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border-light);
    background-color: var(--color-card);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}
#footer-content small { color: var(--color-text-secondary); }

/* =========================================
   11. FLOATING BUTTONS & MODAL
   ========================================= */
#floating-wa {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-floating);
    transition: all 0.2s ease;
    animation: wa-pulse 2s infinite;
}
#floating-wa:hover { transform: scale(1.1); }
@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-floating);
    font-size: 1.2rem;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }

/* =========================================
   12. MOBILE DRAWER
   ========================================= */
#mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 18, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
body.menu-open #mobile-overlay { opacity: 1; visibility: visible; }
#hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    z-index: calc(var(--z-header) + 3);
}
#hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
body.menu-open #hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open #hamburger span:nth-child(2) { opacity: 0; }
body.menu-open #hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#mobile-drawer {
    position: fixed;
    top: 0;
    inset-inline-start: auto;
    inset-inline-end: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-card);
    z-index: var(--z-drawer);
    padding: var(--space-8) var(--space-6);
    box-shadow: var(--shadow-large);
    transition: inset-inline-end 0.4s cubic-bezier(0.2, 0.0, 0.0, 1.0);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}
body.menu-open #mobile-drawer { inset-inline-end: 0; }
.drawer-inner ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.drawer-inner a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}
.drawer-inner a:hover { color: var(--color-accent); }
.hide-mobile { display: none; }
.hide-desktop { display: block; }
@media (min-width: 769px) {
    .hide-mobile { display: block; }
    .hide-desktop { display: none !important; }
    #hamburger, #mobile-overlay, #mobile-drawer { display: none; }
}

/* =========================================
   13. MODAL (Quick View)
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.0, 0.0, 1.0);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close-btn {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 1;
}
.modal-close-btn:hover { transform: scale(1.1); }
.modal-image {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
    background: var(--color-surface-light);
}
.modal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.modal-content { padding: var(--space-6); }
.modal-content h2 { margin-bottom: var(--space-2); }
.modal-description { margin-bottom: var(--space-4); }
.modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    font-size: 0.9rem;
}
.modal-meta small { grid-column: 1 / -1; }
.modal-ingredients { margin: var(--space-4) 0; font-size: 0.9rem; color: var(--color-text-secondary); }
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-6);
}
.modal-buttons {
    display: flex;
    gap: var(--space-4);
}
.modal-buttons .btn-product { flex: 1; height: 44px; font-size: 0.9rem; }
.modal-tools {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}
.tool-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.tool-btn:hover { color: var(--color-accent); }

/* =========================================
   14. RESPONSIVE UTILITY OVERRIDES
   ========================================= */
@media (max-width: 480px) {
    .container { --container-margin: 16px; }
    .product-card-body { padding: var(--space-4); }
    .hero-actions { width: 100%; }
}
@media (max-width: 768px) {
    #desktop-nav, .header-actions { display: none; }
    #hero.hero-dark { min-height: auto; padding: calc(var(--header-height) + 20px) 0 20px 0; }
    .hero-wrapper { gap: var(--space-6); }
    .hero-text-content h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
    .hero-features { grid-template-columns: 1fr 1fr; }
    .feature-card { padding: var(--space-4); }
    #categories { margin-top: 0; padding: var(--space-6) 0 var(--space-4); }
}
@media (max-width: 1024px) {
    .hero-text-content h1 { font-size: clamp(2rem, 5vw, 3rem); }
}

/* =========================================
   CONTACT ICONS (Circular Premium Layout)
   ========================================= */
.contact-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
}
@media (min-width: 768px) {
    .contact-icons-wrapper {
        border-top: none;
        padding-top: 0;
        justify-content: flex-start;
    }
}
.contact-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-card);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    text-decoration: none;
    /* RTL safe margin */
    margin-inline-end: 0; 
}
.contact-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Hover Animation (Gold Luxury) */
.contact-icon-btn:hover {
    transform: translateY(-5px);
    background: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(198, 155, 109, 0.3);
}
.contact-icon-btn:active {
    transform: scale(0.92);
}
/* =========================================
   CONTACT FORM IMPROVEMENTS (Luxury Style)
   ========================================= */
.contact-form-group {
    margin-bottom: var(--space-5);
    position: relative;
}
.contact-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}
.contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(26, 20, 18, 0.08);
    border-radius: var(--radius-pill); /* دکمه‌های گرد */
    background: #FFFFFF;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.contact-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(198, 155, 109, 0.1), inset 0 2px 4px rgba(0,0,0,0.02);
}
.contact-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}
.btn-submit {
    background: var(--color-accent);
    color: #FFFFFF;
    height: 54px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(198, 155, 109, 0.2);
    margin-top: var(--space-2);
}
.btn-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(198, 155, 109, 0.35);
}
.btn-submit:active {
    transform: scale(0.96);
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
/* =========================================
   15. ACCESSIBILITY (Reduced Motion)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}