        /* ================= Variables & Color Palette ================= */
        :root {
            --color-primary: #172554;
            --color-secondary: #1e3a8a;
            --color-accent1: #f59e0b;
            --color-accent2: #fbbf24;
            --color-white: #FFFFFF;
            --color-bg-light: #f4f7fb;
            --color-text-dark: #172033;
            --color-text-muted: #64748b;
            
            --gradient-main: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
            --gradient-gold: linear-gradient(135deg, var(--color-accent1) 0%, var(--color-accent2) 100%);
            
            --shadow-soft: 0 10px 30px rgba(23, 37, 84, 0.08);
            --shadow-hover: 0 18px 44px rgba(23, 37, 84, 0.18);
            --transition: all 0.3s ease;
        }

        @font-face {
            font-family: "MyFont";
            src: url("../fonts/IRANYekan-Medium.woff2");
            font-display: swap;
        }

        /* ================= Global Reset ================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'MyFont', Tahoma, sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: linear-gradient(180deg, #eef3fb 0%, var(--color-bg-light) 32rem);
            color: var(--color-text-dark);
            line-height: 1.7;
            overflow-x: hidden;
            padding-top: 132px;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        .container {
            max-width: 1200px;
            padding: 0 20px;
        }

        /* ================= Buttons ================= */
        .btn {
            display: inline-block;
            padding: 12px 12px;
            background: var(--gradient-gold);
            color: var(--color-primary);
            font-weight: bold;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(210, 137, 41, 0.3);
        }

/* ================= Navbar ================= */
header.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-primary); /* استفاده از رنگ اصلی تیره شما */
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    border-bottom: 3px solid rgba(245, 158, 11, 0.75);
    transition: all 0.4s ease;
    direction: rtl;
    color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.nav-top {
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    max-height: 120px;
    overflow: hidden;
    opacity: 1;
}

.top-container {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 1; /* قرارگیری لوگو در سمت راست */
}


.search-box {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
    order: 2; /* قرارگیری سرچ در سمت چپ */
}

.logo-placeholder {
    width: auto;
    height: 70px;
    padding: 8px;
    gap: 10px;
    background: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.search-box:focus-within {
    border-color: var(--color-accent1);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 6px 10px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* --- Bottom Bar --- */
.nav-bottom {
    background: var(--color-primary);
    position: relative; /* مهم: برای باز شدن درست منوی موبایل از همین نقطه */
    align-items: center;
}

.bottom-logo{
    margin-right: 10px;
    position: absolute;
    margin-top: 5px;
    opacity: 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* --- Menu Toggle & Hamburger (مخفی در دسکتاپ) --- */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--color-white);
    user-select: none;
}

/* --- Nav Links --- */
.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 16px;
    border-radius: 20px;
}

.nav-links li a:hover {
    color: var(--color-white);
}

.nav-links li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}
.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 16px;
    border-radius: 20px;
}

.nav-links li a:hover {
    color: var(--color-white);
}

.nav-links li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}
/* --- NEW CSS: DROPDOWN & SUBMENU --- */

/* 1. Make the parent item relative so the submenu knows where to attach */
.nav-links .dropdown {
    position: relative; 
}

/* 2. Style and HIDE the submenu by default */
.nav-links .submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-primary); /* Dark background */
    min-width: 180px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-right: solid 3px var(--color-accent2);
    border-radius: 8px;
    
    /* THIS IS WHAT HIDES IT */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevents clicking it while hidden */
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999; /* Keeps it above other page content */
}

/* 3. SHOW the submenu when hovering over the parent li */
.nav-links .dropdown:hover > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Allows clicking again */
    transform: translateY(0);
}

/* 4. Submenu Link Styles */
.nav-links .submenu li a {
    display: block;
    padding: 10px 20px;
    border-radius: 0; /* Remove the round edges from the main menu */
    white-space: nowrap; /* Prevents text from breaking into two lines */
    /* border-bottom: dashed 1px var(--color-text-muted); */
}

.nav-links .submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 5. Nested Submenu (Level 2) */
.nav-links .submenu .submenu {
    top: 0;
    right: 100%; /* Opens to the left for RTL/Persian */
}
/* --- User Actions --- */
.user-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 0.9rem;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.user-actions .icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-login-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--color-accent1);
    color: #21101a;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.nav-login-button:hover,
.nav-login-button:focus {
    filter: brightness(1.08);
    color: #21101a;
}

.cart-info:hover, .user-icon:hover {
    color: var(--color-accent1);
}
/* ================= Scrolled State ================= */
header.navbar.scrolled .nav-top {
    max-height: 0;
    opacity: 0;
    border-color: transparent;
}
header.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0.95;
}

div.bottom-logo.scrolled {
    opacity: 1;
}

/* ================= Responsive (Mobile) ================= */
@media (max-width: 768px) {
    .top-container {
        justify-content: center; /* در موبایل لوگو وسط قرار میگیرد */
        height: 70px;
    }
    .search-box {
        display: none; /* مخفی کردن سرچ باکس برای خلوت شدن هدر موبایل */
    }
    
    .hamburger {
        display: block; /* نمایش دکمه همبرگری در موبایل */
    }
    
    .cart-info span:first-child {
        display: none; /* مخفی کردن متن '0 تومان' و نمایش فقط آیکون سبد خرید */
    }
    
    .nav-links {
        position: absolute;
        top: 100%; /* باعث میشود منو دقیقا زیر نوار بچسبد (چه هدر جمع شده باشد چه نه) */
        right: 0;
        width: 100%;
        background: var(--color-primary);
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { 
        display: block; 
        padding: 15px; 
        border-radius: 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
    .nav-links li a.active { background: rgba(255,255,255,0.05); }
    
    /* باز شدن منو با زدن روی دکمه همبرگری */
    .menu-toggle:checked ~ .nav-links { 
        max-height: 500px; 
    }
}

/* ================= Mobile stability & navigation polish ================= */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    header.navbar {
        width: 100%;
        left: 0;
        right: 0;
    }

    .nav-top {
        max-height: 76px;
    }

    .top-container {
        width: 100%;
        height: 76px;
        justify-content: center;
        padding: 8px 16px;
    }

    .logo img {
        display: block;
        height: 46px !important;
        max-width: 180px;
        width: auto;
    }

    .nav-bottom {
        min-height: 58px;
    }

    .bottom-container {
        position: relative;
        width: 100%;
        min-height: 58px;
        height: auto;
        padding: 8px 16px;
        justify-content: space-between;
        gap: 12px;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        border: 1px solid rgba(255,255,255,.35);
        border-radius: 8px;
        background: rgba(255,255,255,.10);
        color: var(--color-accent2);
        font-size: 25px;
        line-height: 1;
    }

    .user-actions {
        margin-right: auto;
        gap: 12px;
        font-size: .82rem;
    }

    .nav-links,
    #mobile-menu:checked ~ .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        padding: 8px 12px 14px;
        background: #2b0b1c;
        border-top: 2px solid var(--color-accent1);
        box-shadow: 0 12px 24px rgba(0,0,0,.3);
        align-items: stretch;
        gap: 2px;
    }

    #mobile-menu:checked ~ .nav-links {
        display: flex;
    }

    .nav-links li,
    .nav-links li a {
        width: 100%;
        text-align: right;
    }

    .nav-links li a {
        display: block;
        padding: 12px 14px;
        color: rgba(255,255,255,.92);
        border: 0;
        border-radius: 8px;
    }

    .nav-links li a:hover,
    .nav-links li a:focus,
    .nav-links li a.active {
        color: #21101a;
        background: var(--color-accent2);
    }

    .nav-links .dropdown > a {
        background: rgba(255,255,255,.07);
        margin-top: 3px;
    }

    .nav-links .submenu,
    .nav-links .dropdown:hover > .submenu,
    .nav-links .dropdown:focus-within > .submenu {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        min-width: 0;
        padding: 4px 8px 6px 0;
        margin: 0;
        background: rgba(0,0,0,.22);
        border: 0;
        border-right: 3px solid var(--color-accent1);
        border-radius: 0 6px 6px 0;
    }

    .nav-links .dropdown:focus-within > .submenu {
        display: block;
    }

    .nav-links .submenu li a {
        padding: 10px 12px;
        font-size: .86rem;
        color: rgba(255,255,255,.82);
        background: transparent;
    }

    main,
    .hero,
    .hero-container,
    section,
    footer {
        max-width: 100%;
    }
}
/* ================= Responsive Design (Mobile & Tablet) ================= */
@media (max-width: 768px) {
    
    /* 1. پنهان کردن بخش بالایی (لوگو و جستجو) در صورت نیاز به فضای بیشتر، 
          یا تغییر چیدمان آن‌ها به صورت ستونی */
    .nav-top .container {
        flex-direction: column;
        gap: 10px;
    }

    /* 2. نمایش آیکون همبرگری */
    .hamburger {
        display: block; /* در حالت دسکتاپ باید مخفی باشد، اینجا نمایش می‌دهیم */
        cursor: pointer;
        font-size: 24px;
        color: white;
    }

    /* 3. استایل‌دهی به منوی لینک‌ها برای موبایل (پنهان به صورت پیش‌فرض) */
    .nav-links {
        display: none; /* مخفی کردن حالت افقی دسکتاپ */
        flex-direction: column;
        position: absolute;
        top: 100%; /* دقیقا زیر نوار پایینی قرار بگیرد */
        right: 0;
        width: 100%;
        background-color: var(--color-primary, #333);
        padding: 10px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: right;
    }

    .nav-links li a {
        display: block;
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* 4. جادوی چک‌باکس: وقتی تیک خورد، منو نمایش داده شود */
    #mobile-menu:checked ~ .nav-links {
        display: flex;
    }

    /* 5. رفع مشکل زیرمنوها (Dropdown) در حالت موبایل */
    .nav-links .submenu {
        position: relative; /* خارج شدن از حالت شناور در موبایل */
        display: none;
        background-color: rgba(0,0,0,0.1);
    }

    .nav-links .dropdown:hover > .submenu {
        display: block; /* در موبایل وقتی روی آیتم والد کلیک/لمس شد، زیرمنو باز شود */
    }
}



        /* ================= Hero Section ================= */
    .hero {
        background: linear-gradient(135deg, var(--color-primary) 0%, #0d121c 100%);
        min-height: 100vh;
        display: flex;
        align-items: center;
        /* padding-top: 50px; Offset for navbar */
        position: relative;
        overflow: hidden;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    }

    /* Decorative Background Elements */
    .hero::before {
        content: '';
        position: absolute;
        width: 800px;
        height: 800px;
        background: radial-gradient(circle, rgba(210, 137, 41, 0.2) 0%, rgba(0,0,0,0) 70%);
        border-radius: 50%;
        top: -250px;
        right: -250px;
        animation: pulse 8s infinite alternate;
    }

    .hero::after {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(30, 41, 59, 0.4) 0%, rgba(0,0,0,0) 70%);
        border-radius: 50%;
        bottom: -150px;
        left: -150px;
    }

    @keyframes pulse {
        0% { transform: scale(1); opacity: 0.8; }
        100% { transform: scale(1.1); opacity: 1; }
    }

    .hero-container {
        display: flex;
        flex-direction: row;
        gap: 40px;
        align-items: center;
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-content h1 {
        color: #ffffff;
        /* Super responsive font sizing based on viewport width */
        font-size: clamp(2rem, 5vw, 4rem); 
        line-height: 1.3;
        margin-bottom: 24px;
        font-weight: 800;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        animation: slideUp 0.8s ease-out forwards;
    }

    .hero-content p {
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.6;
        margin-bottom: 50px;
        max-width: 600px;
        animation: slideUp 1s ease-out forwards;
        opacity: 0;
    }

    .hero-content .btn-group {
        display: flex;
        gap: 16px;
        animation: slideUp 1.2s ease-out forwards;
        opacity: 0;
    }

    .hero-content .btn-outline {
        background: transparent;
        border: 2px solid var(--color-accent1);
        color: var(--color-accent1);
        padding: 12px 24px;
        border-radius: 8px;
        font-weight: bold;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .hero-content .btn-outline:hover {
        background: var(--color-accent1);
        color: var(--color-primary);
        transform: translateY(-2px);
    }

    .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        animation: float 6s ease-in-out infinite;
    }

    .hero-image-area {
        width: 100%;
        max-width: 500px;
        aspect-ratio: 1;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
    }

    .hero-image-area::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
    }

    @keyframes slideUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    @keyframes float {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-20px); }
        100% { transform: translateY(0px); }
    }

    /* Media Queries for Hero Responsiveness */
    @media (max-width: 992px) {
        .hero {
            padding-top: 120px;
            padding-bottom: 60px;
            clip-path: polygon(0 0, 100% 0, 100% 98%, 0% 100%);
        }
        .hero-container {
            flex-direction: column;
            text-align: center;
            gap: 60px;
        }
        .hero-content {
            align-items: center;
        }
        .hero-content p {
            margin-left: auto;
            margin-right: auto;
        }
        .hero-content .btn-group {
            justify-content: center;
        }
        .hero-image-area {
            max-width: 400px;
        }
    }

    @media (max-width: 576px) {
        .hero-content .btn-group {
            flex-direction: column;
            width: 100%;
            max-width: 300px;
        }
        .hero-content .btn, .hero-content .btn-outline {
            width: 100%;
            text-align: center;
        }
    }
        /* ================= Services Section ================= */
        .services {
            padding: 100px 0;
            background-color: var(--color-bg-light);
        
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--color-primary);
            margin-bottom: 50px;
            position: relative;
            /* display: inline-block;
            left: 15%;
            transform: translateX(-50%); */
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 4px;
            background: var(--gradient-gold);
            border-radius: 2px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: var(--color-white);
            padding: 40px 30px;
            border-radius: 15px;
            text-align: center;
            box-shadow: var(--shadow-soft);
            transition: var(--transition);
            position: relative;
            border-top: 4px solid var(--color-accent1);
        }

        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
            border-color: var(--color-accent2);
        }

        .icon-placeholder {
            width: 70px;
            height: 70px;
            background: rgba(210, 137, 41, 0.1);
            border-radius: 50%;
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-accent1);
            font-size: 24px;
        }

        .service-card h3 {
            color: var(--color-primary);
            font-size: 1.3rem;
            margin-bottom: 15px;
        }

        /* ================= Products Section ================= */
        .products {
            padding: 80px 0;
            background-color: var(--color-white);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

.product-card {
            background: var(--color-bg-light);
            border-radius: 15px;
            overflow: hidden;
            max-width: 380px;
            box-shadow: var(--shadow-soft);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
        }

        .product-img-placeholder {
            height: 220px;
            background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-text-muted);
            border-bottom: 1px solid #eee;
        }

        .product-info {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .product-info h4 {
            font-size: 1.2rem;
            color: var(--color-primary);
            margin-bottom: 10px;
        }

        .price {
            font-size: 1.4rem;
            color: var(--color-secondary);
            font-weight: bold;
            margin-bottom: 20px;
            margin-top: auto; /* Pushes price and button to bottom */
        }

        .product-card .btn {
            width: 100%;
        }

        /* ================= About Section ================= */
        .about {
            padding: 100px 0;
            background-color: var(--color-bg-light);
        }

        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-content h2 {
            font-size: 2.2rem;
            color: var(--color-primary);
            margin-bottom: 25px;
        }

        .about-content p {
            font-size: 1.1rem;
            color: var(--color-text-muted);
            margin-bottom: 30px;
            text-align: justify;
        }

        .about-highlights {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .about-highlights li {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--color-secondary);
        }

        .highlight-icon {
            width: 20px;
            height: 20px;
            background: var(--gradient-gold);
            border-radius: 50%;
            display: inline-block;
        }

        .about-image-placeholder {
            width: 100%;
            height: 400px;
            background: var(--color-white);
            border-radius: 20px;
            box-shadow: var(--shadow-hover);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-text-muted);
            position: relative;
        }

        /* Decorative box behind about image */
        .about-image-placeholder::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border: 3px solid var(--color-accent1);
            border-radius: 20px;
            top: 20px;
            right: 20px;
            z-index: -1;
        }

        /* ================= Footer ================= */
        footer {
            background: var(--gradient-main);
            color: var(--color-white);
            padding: 80px 0 20px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 2fr;
            gap: 70px;
            margin-bottom: 50px;
        }

        .footer-col h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--color-accent2);
            position: relative;
            padding-bottom: 10px;
        }

        .footer-col h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 100%;
            height: 3px;
            background: var(--color-accent1);
            border-radius: 2px;
        }

        .footer-col p {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 15px;
            line-height: 1.8;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--color-accent2);
            padding-right: 8px; /* Smooth RTL hover indent */
        }

        .footer-icons{
            height: 200px;
            width: fit-content;
            display: flex;
            border: solid 1px var(--color-accent2);
            background-color: var(--color-primary);
            gap: 20px;
            padding: 30px;
            border-radius: 12px;
            align-items: center;
            justify-items: center;
        }
        /* .footer-icons img {
            height: 200px;
            width: auto;
        } */


        #zibal img{
            height: 100%!important;
        }


        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        /* ================= Responsive Design ================= */
        @media (max-width: 992px) {
            .hero-container, .about-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-content h1 {
                font-size: 2.5rem;
            }

            .about-highlights {
                align-items: center;
            }

            .about-image-placeholder::before {
                display: none;
            }
            
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }

            .nav-links {
                position: absolute;
                top: 80px;
                right: 0;
                width: 100%;
                background: var(--color-white);
                flex-direction: column;
                align-items: center;
                gap: 0;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease-in-out;
                box-shadow: 0 10px 15px rgba(0,0,0,0.05);
            }

            .nav-links li {
                width: 100%;
                text-align: center;
            }

            .nav-links li a {
                display: block;
                padding: 20px;
                border-bottom: 1px solid #eee;
            }

            .nav-links li a::after {
                display: none; /* Disable gradient underline on mobile menu */
            }

            .menu-toggle:checked ~ .nav-links {
                max-height: 500px; /* Expand mobile menu */
            }

            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-col h3::after {
                left: 50%;
                right: auto;
                transform: translateX(-50%);
            }
        }
/* *************cart************* */
/* Badge styling */
.cart-badge {
    position: absolute;
    top: -9px;
    left: -12px;
    /* background-color: var(--color-secondary); رنگ طلایی/نارنجی سایت شما */
    color: var(--color-accent2);
    /* border-radius: 50%;` */
    padding: 0px 5px;
    font-size: 12px;
    font-weight: bold;
    display: none; /* مخفی در حالت صفر */
    box-shadow: var(--shadow-soft);
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.cart-badge.active {
    display: inline-block;
}
        
/* cart hover */
/* --- Mini Cart Hover Menu --- */
.cart-info {
    cursor: pointer;
}

.mini-cart {
    /* display: none;  */
    position: absolute;
    top: 100%; /* Position it right below the cart icon */
    left: 0;
    width: 400px;
    background-color: var(--color-primary) ;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-right: solid 2px var(--color-accent2);
    border-radius: 8px;
    padding: 25px;
    z-index: 1000;
    cursor: default; /* So clicking inside doesn't trigger parent links */  
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    
}

/* Show the mini cart when hovering over cart-info */
.cart-info:hover .mini-cart {
    display: block;
    opacity: 0.98;
    visibility: visible;
    pointer-events: auto; /* Allows clicking again */
    transform: translateY(0);
}

.mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.btn-view-cart {
    display: block;
    text-align: center;
    background-color: var(--color-accent1, #007bff);
    color: white;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
}

/* --- Quantity Controls in Main Cart --- */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #f0f0f0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-btn:hover {
    background: #ddd;
}

/*  */
.item-image {
    margin-left: 15px;
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
    object-fit: cover;
}
/* #################  SEARCH ############### */
.search-results{
    /* display: none;  */
    position: absolute;
    top: 59%; /* Position it right below the cart icon */
    left: 10%;
    width: min(420px, calc(100vw - 32px));
    max-height: 60vh;
    overflow-y: auto;
    background-color: var(--color-white) ;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: dashed 1px var(--color-accent2);
    border-radius: 8px;
    padding: 25px;
    cursor: default; /* So clicking inside doesn't trigger parent links */  
    color: var(--color-primary);
    /* gap: 20px; */

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}


.search-results li{
    border: dashed 1px var(--color-secondary);
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}

.search-results li a { display:flex; align-items:center; gap:10px; }
.search-results li img { width:42px; height:42px; object-fit:cover; border-radius:6px; }



.search-results.show{
    display: flex;
    flex-direction: column;
    opacity: 0.98;
    visibility: visible;
    pointer-events: auto; /* Allows clicking again */
    transform: translateY(0);
}

/* ----------------------------new product_list--------------------------------- */
/* Layout & Sidebar Styles */
.products-page-container {
    display: flex;
    direction: rtl; /* راست‌چین کردن کل کانتینر */
    max-width: 1200px;
    margin: 25px auto 40px;
    gap: 30px;
    padding: 0 20px;
}

.sidebar-rtl {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    height: fit-content;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    border-right: 4px solid #3498db;
    padding-right: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 12px;
}

.sidebar-widget ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease, padding-right 0.3s ease;
    display: block;
}

.sidebar-widget ul li a:hover {
    color: #3498db;
    padding-right: 5px; /* افکت حرکت به سمت چپ هنگام هاور */
}

.products-main-content {
    flex-grow: 1;
    min-width: 0;
}

.product-filters { display:flex; flex-direction:column; gap:8px; }
.product-filters input, .product-filters select { width:100%; padding:10px; border:1px solid #ddd; border-radius:8px; background:#fff; }
.price-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.clear-filters { text-align:center; color:var(--color-secondary); font-size:.9rem; }
.empty-products { padding:30px; color:var(--color-text-muted); }

/* Product shop category navigation */
.shop-category-hero {
    margin: 0 auto 28px;
    padding: 26px 20px;
    max-width: 1200px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(120deg, #172554 0%, #1e3a8a 60%, #2563eb 100%);
    box-shadow: 0 16px 34px rgba(23,37,84,.2);
}
.shop-category-inner { display:flex; align-items:center; justify-content:center; }
.shop-category-heading h1 { margin:2px 0 0; font-size:1.8rem; }
.shop-category-heading p { margin:2px 0 0; color:rgba(255,255,255,.78); }
.shop-category-kicker { color:var(--color-accent2); font-size:.82rem; font-weight:bold; }
.shop-category-menu { position:relative; min-width:260px; }
.shop-menu-toggle { position:absolute; opacity:0; pointer-events:none; }
.shop-menu-button { display:block; padding:12px 16px; border:1px solid rgba(255,255,255,.3); border-radius:12px; background:rgba(255,255,255,.1); cursor:pointer; font-weight:bold; }
.shop-menu-button span { margin-left:8px; color:var(--color-accent2); }
.shop-menu-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.shop-menu-links a { padding:8px 12px; border-radius:9px; color:rgba(255,255,255,.86); font-size:.9rem; transition:var(--transition); }
.shop-menu-links a:hover, .shop-menu-links a.active { background:var(--color-accent1); color:#172033; }
.shop-menu-empty { color:rgba(255,255,255,.65); font-size:.85rem; }
.shop-breadcrumb { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:10px; text-align:center; font-size:1rem; }
.shop-breadcrumb a { color:rgba(255,255,255,.78); transition:var(--transition); }
.shop-breadcrumb a:hover { color:var(--color-accent2); }
.shop-breadcrumb span { color:var(--color-accent2); font-size:1.25rem; }
.shop-breadcrumb .current { color:#fff; font-weight:bold; }
@media (max-width: 700px) {
    .shop-category-inner { align-items:stretch; flex-direction:column; }
    .shop-category-menu { min-width:0; }
    .shop-menu-links { display:none; flex-direction:column; }
    .shop-menu-toggle:checked ~ .shop-menu-links { display:flex; }
    .shop-menu-links a { background:rgba(0,0,0,.14); }
}

@media (max-width: 900px) {
  .products-page-container { flex-direction:column; }
  .sidebar-rtl { width:100%; }
  .products-grid { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
}
@media (max-width: 480px) {
  .container { padding-left:12px; padding-right:12px; }
  .products-page-container { padding:0 12px; }
  .products-grid { grid-template-columns:1fr 1fr; gap:12px; }
  .product-info { padding:14px; }
  .product-info h4 { font-size:1rem; }
  .product-img-box { height:180px; }
}
/* 00000000000000 */
.product-img-box {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ==========================================================================
   Product Categories Section
   ========================================================================== */
.categories-section {
    padding: 80px 0;
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent1), var(--color-accent2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-icon {
    width: 65px;
    height: 65px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, background 0.35s ease;
}

.category-card h3 {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.category-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.category-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-accent1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease, color 0.3s ease;
}

/* Hover Effects */
.category-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(10, 37, 64, 0.08);
    border-color: rgba(210, 137, 41, 0.2);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(210, 137, 41, 0.12);
}

.category-card:hover .category-link {
    color: var(--color-accent2);
    gap: 8px;
}
