/* filename: style.css */

/* =========================================================
   فایل استایل جامع فروشگاه بیست بازار (Bist Bazaar)
   ساختار: استاندارد، خوانا، ساده و کاملاً ریسپانسیو
   ========================================================= */

/* ---------------------------------------------------------
   ۱. تنظیمات پایه و متغیرهای رنگی (Variables & Resets)
   --------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700;800&display=swap');

/* ریست کردن اندازه‌گیری عناصر */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 25%),
        radial-gradient(circle at left top, rgba(6, 182, 212, 0.08), transparent 25%),
        #f5f7fb;
    color: #0f172a;
    line-height: 1.7;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی ناخواسته در کل صفحه */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

/* کانتینر اصلی جهت مرکزچین کردن محتوا */
.container {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   ۲. بخش هدر و سربرگ سایت (Header & Navigation)
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.header-top,
.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.header-top {
    padding: 16px 0 14px;
}

.header-bottom {
    padding: 0 0 14px;
}

/* ===================================================
   Fix Header Logo Sizing & Layout (Anti-Overflow)
   =================================================== */

.brand-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    max-width: 250px !important;
    flex-shrink: 0 !important;
}

/* مهار کامل سایز عکس غول‌پیکر */
.brand-logo-img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    display: block !important;
}

.brand-text-group {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: right !important;
}

.brand-title {
    font-family: inherit !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.brand-subtitle {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #e11d48 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-top: 2px !important;
}

/* بهینه‌سازی برای موبایل */
@media (max-width: 576px) {
    .brand-logo-img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
    }
    .brand-title {
        font-size: 0.95rem !important;
    }
    .brand-subtitle {
        font-size: 0.65rem !important;
    }
}

/* باکس جستجو */
.header-search {
    flex: 1;
    max-width: 560px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #0f172a;
}

.header-search button {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.28s ease;
}

.header-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

/* دکمه‌های ورود و سبد خرید */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn,
.cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 700;
    transition: all 0.28s ease;
    white-space: nowrap;
}

.header-btn.secondary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.header-btn.primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111827;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.28);
}

.cart-btn {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.14);
    gap: 8px;
}

.header-btn:hover,
.cart-btn:hover {
    transform: translateY(-2px);
}

/* منوی اصلی navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #334155;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: all 0.28s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.92rem;
    white-space: nowrap;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

/* ---------------------------------------------------------
   ۳. بخش بنر اصلی یا هیرو (Hero Section)
   --------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 48px 0 24px;
}

.hero-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-bg-1 {
    width: 320px;
    height: 320px;
    background: rgba(124, 58, 237, 0.35);
    top: 20px;
    right: -60px;
}

.hero-bg-2 {
    width: 300px;
    height: 300px;
    background: rgba(6, 182, 212, 0.28);
    bottom: 0;
    left: -50px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: center;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 34px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-content h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1.2;
    font-weight: 800;
}

.hero-content p {
    margin: 0;
    color: #475569;
    font-size: 1.04rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: all 0.28s ease;
}

.hero-btn.primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 14px 30px rgba(251, 191, 36, 0.28);
}

.hero-btn.secondary {
    color: #2563eb;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.14);
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    padding: 16px;
}

.hero-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.hero-stat span {
    color: #64748b;
    font-size: 0.9rem;
}

.hero-visual {
    min-height: 420px;
    position: relative;
}

.visual-card {
    position: absolute;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.16);
}

.visual-main {
    inset: 50px 30px 50px 30px;
    padding: 30px;
    background:
        linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.14)),
        rgba(255, 255, 255, 0.78);
}

.visual-main h3 {
    margin: 14px 0 10px;
    font-size: 1.5rem;
}

.visual-main p {
    margin: 0;
    color: #475569;
}

.visual-label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.visual-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 70px;
    font-weight: 800;
    color: #0f172a;
}

.visual-mini.top {
    top: 0;
    left: 0;
    padding: 0 18px;
}

.visual-mini.bottom {
    right: 0;
    bottom: 0;
    padding: 0 18px;
}

/* ---------------------------------------------------------
   ۴. عناوین و سربرگ بخش‌ها (Section Headers)
   --------------------------------------------------------- */
.categories-section,
.products-section,
.features-section,
.cta-section {
    padding: 30px 0 50px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-head.centered {
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.section-head p {
    margin: 0;
    color: #64748b;
    max-width: 640px;
}

.section-kicker {
    display: inline-block;
    color: #7c3aed;
    font-size: 0.92rem;
    font-weight: 800;
}

/* ---------------------------------------------------------
   ۵. بخش دسته‌بندی‌ها (Categories Section)
   --------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.category-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% -20%;
    height: 80px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
    transition: all 0.28s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
    border-color: rgba(124, 58, 237, 0.22);
}

.category-card:hover::before {
    transform: scale(1.25);
}

/* ---------------------------------------------------------
   ۶. بخش احراز هویت و ورود (Authentication UI)
   --------------------------------------------------------- */
.auth-section {
    padding: 64px 0;
}

.auth-page {
    direction: rtl;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 56px;
    background: #080c16;
    color: #f5f7fb;
}

.auth-card {
    position: relative;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 34px 32px 28px;
    border-radius: 24px;
    background: #111927;
    border: 1px solid rgba(0, 229, 255, 0.25);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 229, 255, 0.08);
    overflow: hidden;
}

.auth-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, #00e5ff 0%, #7cecff 45%, #ff4fa3 100%);
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: #ffffff;
}

.auth-card p {
    margin: 0 0 20px;
    color: #aeb9ca;
    line-height: 1.8;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label,
.auth-form label {
    font-weight: 700;
    color: #e9eef7;
}

.form-field input,
.auth-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #354257;
    background: #0d1522;
    color: #ffffff;
    outline: none;
    transition: all 0.28s ease;
    font-size: 0.95rem;
}

.form-field input:focus,
.auth-form input:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-left: 50px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #00e5ff;
    cursor: pointer;
}

.auth-form button {
    margin-top: 8px;
    border: none;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    font-weight: 800;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 14px 30px rgba(251, 191, 36, 0.25);
    transition: all 0.28s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(251, 191, 36, 0.30);
}

.auth-errors {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.auth-errors p {
    margin: 0;
    color: #b91c1c;
}

.auth-helper {
    margin-top: 16px;
    text-align: center;
}

.auth-helper a {
    color: #00e5ff;
    font-weight: 700;
}

/* ---------------------------------------------------------
   ۷. بخش اینماد و فوتر (eNAMAD & Footer Adjustments)
   --------------------------------------------------------- */
/* مهار کردن اینماد برای جلوگیری از بیرون زدن از صفحه */
.enamad-container {
    display: flex;
    justify-content: center !important;
    align-items: center;
    padding: 20px;
    width: 100%;
    overflow: hidden;
}

.site-footer .enamad-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    min-height: 130px !important;
    margin: 30px auto 20px !important;
    padding: 0 20px !important;
    display: block !important;
    position: relative !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    direction: ltr !important;
}

.site-footer .enamad-box {
    width: 100% !important;
    min-height: 110px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    clear: both !important;
    float: none !important;
    text-align: center !important;
}

.site-footer .enamad-box a {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
}

.site-footer .enamad-box img {
    display: block !important;
    width: 110px !important;
    max-width: 110px !important;
    height: auto !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    opacity: 1 !important;
}

/* =========================================================
   ۸. دستورات واکنش‌گرایی و ریسپانسیو (Responsive Media Queries)
   ========================================================= */

/* ---------------------------------------------------------
   الف) تبلت‌ها و نمایشگرهای متوسط (Max-width: 992px)
   --------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr; /* تبدیل دو ستون هیرو به یک ستون */
    }

    .hero-visual {
        min-height: 340px;
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr); /* ۳ ستون در تبلت */
    }

    .header-top {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ---------------------------------------------------------
   ب) گوشی‌های موبایل (Max-width: 640px)
   --------------------------------------------------------- */
@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    /* هدر در موبایل */
    .header-top,
    .header-bottom {
        gap: 12px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    /* اسکرول افقی نرم برای منوی اصلی در موبایل */
    .main-nav {
        width: 100%;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none; /* Firefox */
    }

    .main-nav::-webkit-scrollbar {
        display: none; /* Chrome & Safari */
    }

    .main-nav a {
        flex: 0 0 auto;
        font-size: 0.88rem;
    }

    .header-note {
        display: none; /* مخفی کردن یادداشت در موبایل برای خلوت شدن صفحه */
    }

    /* هیرو در موبایل */
    .hero-content {
        padding: 22px 18px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr; /* آمار تک‌ستونه */
        gap: 10px;
    }

    /* سربرگ بخش‌ها */
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* دسته‌بندی‌ها: ۲ ستون واقعی در موبایل با فونت بهینه‌شده */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px 10px;
    }

    .category-card h3,
    .category-card h4 {
        font-size: 0.9rem;
        word-break: break-word;
    }

    /* محصولات (Products): تک‌ستونه شدن کارت‌ها */
    .products-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* اینماد در موبایل */
    .site-footer .enamad-wrapper {
        margin: 20px auto 10px !important;
        padding: 0 10px !important;
    }

    .site-footer .enamad-box img {
        width: 95px !important;
        max-width: 95px !important;
    }
}
/* =========================================
   User account menu in header
   ========================================= */

.header-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: all 0.2s ease;
}

.notification-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-badge.is-hidden {
    display: none;
}

.account-menu {
    position: relative;
    display: inline-block;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu-toggle {
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 13px 0 11px;
    cursor: pointer;
    user-select: none;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: all 0.2s ease;
}

.account-menu-toggle:hover,
.account-menu[open] .account-menu-toggle {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.account-menu-name {
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-menu-arrow {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.account-menu[open] .account-menu-arrow {
    transform: rotate(180deg);
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1300;
    width: 250px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.account-menu-user-info {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-menu-user-info strong {
    color: #0f172a;
    font-size: 0.92rem;
}

.account-menu-user-info span {
    color: #64748b;
    direction: ltr;
    text-align: right;
    font-size: 0.82rem;
}

.account-menu-dropdown a {
    padding: 12px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-menu-dropdown a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.account-menu-dropdown .account-menu-logout {
    margin-top: 4px;
    border-top: 1px solid #e2e8f0;
    color: #dc2626;
}

.account-menu-dropdown .account-menu-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 640px) {
    .header-actions {
        gap: 8px;
    }

    .account-menu-name {
        max-width: 95px;
    }

    .account-menu-dropdown {
        width: 230px;
    }

    .notification-button {
        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   Home page storefront style overrides
   ========================================================= */
body {
    background: #f6f7f9;
}

main {
    display: flex;
    flex-direction: column;
}

main > .categories-section {
    order: 1;
}

main > .products-section {
    order: 2;
}

main > .features-section {
    order: 3;
}

main > .cta-section {
    order: 4;
}

main > .hero-section {
    display: none;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.brand-mark {
    display: none;
}

.brand-logo {
    width: 44px !important;
    height: 44px !important;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.brand-title {
    background: none;
    color: #0f172a;
    -webkit-text-fill-color: currentColor;
    font-size: 1.12rem;
}

.brand-subtitle {
    color: #64748b;
    font-size: 0.74rem;
    letter-spacing: 0;
}

.header-search {
    max-width: 640px;
    border-radius: 12px;
    box-shadow: none;
    background: #f8fafc;
}

.header-search button,
.header-btn.primary {
    background: #e11d48;
    color: #ffffff;
    box-shadow: none;
}

.header-btn,
.cart-btn,
.account-menu-toggle,
.notification-button {
    border-radius: 10px;
    box-shadow: none;
}

.header-btn:hover,
.cart-btn:hover,
.header-search button:hover {
    transform: none;
}

.categories-section,
.products-section,
.features-section,
.cta-section {
    padding: 24px 0;
}

.section-head {
    align-items: center;
    margin-bottom: 16px;
}

.section-head h2 {
    margin-top: 2px;
    color: #0f172a;
    font-size: 1.28rem;
    line-height: 1.5;
}

.section-head p {
    color: #64748b;
    font-size: 0.92rem;
}

.section-kicker {
    color: #e11d48;
    font-size: 0.78rem;
}

.categories-section {
    padding-top: 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.categories-section .section-head p {
    display: none;
}

.categories-section .section-head h2 {
    font-size: 0;
}

.categories-section .section-head h2::after {
    content: "دسته‌بندی کالاها";
    font-size: 1.22rem;
    font-weight: 800;
}

.categories-grid {
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
}

.category-card {
    min-height: 116px;
    padding: 14px 10px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
}

.category-card::before {
    display: none;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 29, 72, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 8px;
    place-items: center;
    border-radius: 12px;
    background: #fef2f2;
    font-size: 1.35rem;
}

.category-card h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.category-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.6;
}

.products-section {
    background: #f6f7f9;
}

.products-section .section-head h2 {
    font-size: 0;
}

.products-section .section-head h2::after {
    content: "کالاهای موجود";
    font-size: 1.28rem;
    font-weight: 800;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.product-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 29, 72, 0.26);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.product-badge-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-badge.new {
    background: #e11d48;
}

.product-badge.stock {
    background: #16a34a;
}

.product-badge.out {
    background: #dc2626;
}

.product-image-link {
    display: block;
    padding: 18px 18px 8px;
    background: #f9fafb;
}

.product-image {
    width: 100%;
    height: 172px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px 14px 14px;
}

.product-meta-top {
    min-height: 24px;
}

.product-brand {
    display: inline-flex;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.product-brand.muted {
    color: #9ca3af;
}

.product-title {
    min-height: 52px;
    margin: 4px 0 8px;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.75;
}

.product-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-description {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.product-price {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

.product-price span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
}

.product-price.unavailable {
    color: #64748b;
    font-size: 0.84rem;
}

.product-stock {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.74rem;
}

.product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-link:hover {
    background: #e11d48;
    color: #ffffff;
}

.empty-state {
    padding: 34px 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.features-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.features-section .section-head {
    align-items: flex-start;
    text-align: right;
}

.features-section .section-kicker,
.features-section .section-head p,
.features-section .feature-box {
    display: none;
}

.features-section .section-head h2 {
    font-size: 0;
}

.features-section .section-head h2::after {
    content: "کالاهای پیشنهادی";
    color: #0f172a;
    font-size: 1.28rem;
    font-weight: 800;
}

.features-grid {
    display: block;
}

.features-grid::before,
.cta-box::after {
    content: "";
    display: block;
    min-height: 142px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background:
        linear-gradient(90deg, #ffffff 0, rgba(255, 255, 255, 0.66) 45%, #ffffff 90%),
        repeating-linear-gradient(90deg, #f8fafc 0 19%, #eef2f7 19% 20%);
}

.cta-section {
    background: #f6f7f9;
}

.cta-box {
    display: block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cta-box .section-kicker,
.cta-box p,
.cta-box .hero-btn {
    display: none;
}

.cta-box h2 {
    margin: 0 0 14px;
    font-size: 0;
}

.cta-box h2::after {
    content: "کالاهای پرطرفدار";
    color: #0f172a;
    font-size: 1.28rem;
    font-weight: 800;
}

.site-footer {
    padding-top: 34px;
    background: #111827;
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 26px;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 10px;
    color: #ffffff;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 18px;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-top {
        padding: 12px 0;
    }

    .categories-section,
    .products-section,
    .features-section,
    .cta-section {
        padding: 18px 0;
    }

    .section-head {
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .categories-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 2px 0 8px;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-card {
        flex: 0 0 112px;
        min-height: 108px;
    }

    .category-card p {
        display: none;
    }

    .products-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .product-image-link {
        padding: 14px 10px 6px;
    }

    .product-image {
        height: 126px;
    }

    .product-content {
        padding: 10px;
    }

    .product-description {
        display: none;
    }

    .product-bottom {
        display: block;
    }

    .product-link {
        width: 100%;
        margin-top: 10px;
    }

    .features-grid::before,
    .cta-box::after {
        min-height: 116px;
    }
}

/* =========================================================
   FINAL STOREFRONT REDESIGN - BIST BAZAAR
   این بخش عمداً در انتهای فایل قرار گرفته تا استایل‌های قبلی
   را بدون حذف قابلیت‌های صفحات دیگر، برای صفحه اصلی بازنویسی کند.
   ========================================================= */

body {
    background: #f6f7f9;
    color: #172033;
}

main.site-content {
    display: flex;
    flex-direction: column;
}

/* ترتیب واقعی ویترین */
main.site-content > .hero-section { order: 1; display: block; }
main.site-content > .categories-section { order: 2; }
main.site-content > .products-section { order: 3; }
main.site-content > .features-section { order: 4; }
main.site-content > .cta-section { order: 5; }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #e7eaf0;
    box-shadow: 0 8px 30px rgba(15,23,42,.06);
    backdrop-filter: blur(16px);
}

.site-header .header-top {
    min-height: 76px;
    padding: 11px 0;
    gap: 22px;
}

.site-header .brand {
    min-width: 178px;
    gap: 10px;
}

.site-header .brand-logo {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
}

.site-header .brand-mark { display: none; }

.site-header .brand-text { line-height: 1.2; }

.site-header .brand-title {
    color: #111827;
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.18rem;
    font-weight: 900;
}

.site-header .brand-subtitle {
    color: #98a2b3;
    font-size: .68rem;
    letter-spacing: .03em;
}

.site-header .header-search {
    height: 48px;
    max-width: 650px;
    padding: 4px 5px;
    border: 1px solid #e1e5eb;
    border-radius: 13px;
    background: #f8fafc;
    box-shadow: none;
}

.site-header .header-search input {
    font-size: .84rem;
}

.site-header .header-search button {
    min-width: 78px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #e11d48;
    box-shadow: none;
}

.site-header .header-search button:hover {
    background: #be123c;
}

.site-header .header-actions {
    gap: 7px;
}

.site-header .header-cart,
.site-header .notification-button {
    width: 43px;
    height: 43px;
    border: 1px solid #e2e6ec;
    border-radius: 11px;
    background: #fff;
    color: #263247;
    box-shadow: none;
}

.site-header .header-cart:hover,
.site-header .notification-button:hover {
    background: #f8fafc;
    border-color: #cfd5df;
}

.site-header .cart-badge,
.site-header .notification-badge {
    top: -5px;
    left: -5px;
    min-width: 18px;
    height: 18px;
    border: 2px solid #fff;
    background: #e11d48;
    font-size: .6rem;
}

.site-header .header-login-btn {
    min-height: 43px;
    padding: 0 15px;
    border-radius: 11px;
    background: #fff;
    border: 1px solid #e2e6ec;
    color: #344054;
    box-shadow: none;
    font-size: .76rem;
}

.site-header .header-login-btn:hover {
    color: #e11d48;
    background: #fff7f8;
    border-color: #fecdd3;
}

.site-header .header-profile .profile-button {
    min-height: 43px;
    border: 1px solid #e2e6ec;
    border-radius: 11px;
    background: #fff;
    box-shadow: none;
}

.site-header .profile-name {
    font-size: .75rem;
}

.site-header .profile-dropdown {
    top: calc(100% + 8px);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15,23,42,.14);
}

.site-header .header-nav {
    border-top: 1px solid #f0f2f5;
    background: #fff;
}

.site-header .header-nav .container {
    min-height: 44px;
}

.site-header .header-nav ul {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 27px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header .header-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #475467;
    font-size: .75rem;
    font-weight: 700;
}

.site-header .header-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 10px 10px 0 0;
    background: #e11d48;
    transition: width .2s ease;
}

.site-header .header-nav a:hover,
.site-header .header-nav a:first-child {
    color: #e11d48;
}

.site-header .header-nav a:hover::after,
.site-header .header-nav a:first-child::after {
    width: 100%;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    padding: 0;
    background: linear-gradient(135deg,#111827 0%,#182131 55%,#252c3c 100%);
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
    background-size: 55px 55px;
}

.hero-bg-1,
.hero-bg-2 {
    filter: blur(85px);
    opacity: .4;
}

.hero-bg-1 {
    width: 380px;
    height: 380px;
    top: -170px;
    right: -100px;
    background: rgba(225,29,72,.28);
}

.hero-bg-2 {
    width: 320px;
    height: 320px;
    bottom: -170px;
    left: 4%;
    background: rgba(79,70,229,.22);
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 510px;
    grid-template-columns: 1.08fr .92fr;
    gap: 50px;
}

.hero-content {
    padding: 52px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-badge {
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.07);
    color: #e5e7eb;
    font-size: .72rem;
}

.hero-content h1 {
    max-width: 700px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(2.25rem,4.5vw,4rem);
    line-height: 1.25;
    letter-spacing: -.035em;
}

.hero-content p {
    max-width: 620px;
    color: #b7c0ce;
    font-size: .92rem;
}

.hero-actions { margin-top: 25px; }

.hero-btn {
    min-height: 48px;
    padding: 0 19px;
    border-radius: 11px;
    font-size: .76rem;
}

.hero-btn.primary {
    color: #fff;
    background: #e11d48;
    box-shadow: 0 12px 28px rgba(225,29,72,.25);
}

.hero-btn.primary:hover {
    background: #be123c;
    transform: translateY(-2px);
}

.hero-btn.secondary {
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
}

.hero-btn.secondary:hover {
    background: rgba(255,255,255,.11);
}

.hero-stats {
    max-width: 650px;
    margin-top: 28px;
    gap: 9px;
}

.hero-stat {
    padding: 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
}

.hero-stat strong { color: #fff; font-size: .74rem; }
.hero-stat span { color: #98a4b5; font-size: .64rem; }

.hero-visual {
    min-height: 410px;
}

.visual-card {
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.07);
    box-shadow: 0 30px 70px rgba(0,0,0,.26);
    backdrop-filter: blur(15px);
}

.visual-main {
    inset: 55px 30px 55px 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg,rgba(225,29,72,.17),rgba(255,255,255,.05));
}

.visual-main::before {
    content: "20";
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: linear-gradient(145deg,#e11d48,#be123c);
    box-shadow: 0 20px 40px rgba(225,29,72,.25);
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
}

.visual-main h3 { color: #fff; font-size: 1.15rem; }
.visual-main p { color: #aeb8c8; font-size: .7rem; }
.visual-label { background: #e11d48; font-size: .68rem; }

.visual-mini {
    min-width: 160px;
    min-height: 62px;
    color: #fff;
    background: rgba(17,24,39,.82);
    font-size: .68rem;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */
.categories-section,
.products-section,
.features-section,
.cta-section {
    padding: 45px 0;
}

.categories-section {
    background: #fff;
    border-bottom: 1px solid #edf0f4;
}

.products-section { background: #f6f7f9; }

.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    color: #172033;
    font-size: 1.45rem;
    font-weight: 900;
}

.section-head p {
    color: #8a94a6;
    font-size: .72rem;
}

.section-kicker {
    color: #e11d48;
    font-size: .68rem;
    font-weight: 900;
}

/* ---------------------------------------------------------
   Categories
   --------------------------------------------------------- */
.categories-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 12px;
}

.category-card {
    min-height: 135px;
    padding: 14px 10px;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.category-card::before { display: none; }

.category-card:hover {
    transform: translateY(-4px);
    border-color: #fecdd3;
    box-shadow: 0 15px 30px rgba(15,23,42,.08);
}

.category-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 9px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff1f2;
    font-size: 1.25rem;
}

.category-card h3 {
    color: #273248;
    font-size: .76rem;
}

.category-card p {
    color: #98a2b3;
    font-size: .6rem;
}

/* ---------------------------------------------------------
   Product cards
   --------------------------------------------------------- */
.products-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 15px;
}

.product-card {
    border: 1px solid #e5e9ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.035);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #f1b8c3;
    box-shadow: 0 18px 38px rgba(15,23,42,.1);
}

.product-badge-wrap {
    top: 11px;
    right: 11px;
    gap: 5px;
}

.product-badge {
    min-height: 22px;
    padding: 0 7px;
    font-size: .58rem;
}

.product-badge.new { background: #e11d48; }
.product-badge.stock { background: #16a34a; }
.product-badge.out { background: #dc2626; }

.product-image-link {
    padding: 26px 18px 10px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f2f5;
}

.product-image {
    height: 190px;
    object-fit: contain;
    transition: transform .25s ease;
}

.product-card:hover .product-image { transform: scale(1.035); }

.product-content { padding: 12px 14px 14px; }

.product-brand {
    color: #98a2b3;
    font-size: .6rem;
}

.product-title {
    min-height: 50px;
    margin: 3px 0 5px;
    color: #172033;
    font-size: .79rem;
    line-height: 1.9;
}

.product-description {
    min-height: 43px;
    margin: 0 0 10px;
    color: #8a94a6;
    font-size: .63rem;
    line-height: 1.8;
}

.product-bottom {
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.product-price { font-size: .9rem; }
.product-price span { font-size: .6rem; }

.product-link {
    min-width: 84px;
    min-height: 33px;
    border-radius: 9px;
    background: #fff1f2;
    color: #be123c;
    font-size: .63rem;
}

.product-link:hover { background: #e11d48; }

/* ---------------------------------------------------------
   Features - دیگر پنهان نمی‌شود
   --------------------------------------------------------- */
.features-section {
    display: block;
    background: #fff;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.features-section .section-head {
    align-items: center;
    text-align: center;
}

.features-section .section-kicker,
.features-section .section-head p {
    display: block;
}

.features-section .section-head h2 {
    font-size: 1.45rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

.features-grid::before { display: none; }

.feature-box {
    display: block;
    padding: 21px 17px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    transition: .2s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    border-color: #fecdd3;
    box-shadow: 0 14px 30px rgba(15,23,42,.07);
}

.feature-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff1f2;
    font-size: 1.15rem;
}

.feature-box h3 {
    margin: 0 0 5px;
    color: #273248;
    font-size: .8rem;
}

.feature-box p {
    margin: 0;
    color: #98a2b3;
    font-size: .63rem;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */
.cta-section { background: #f6f7f9; }

.cta-box {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 30px 36px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg,#171f2f,#101827);
    box-shadow: 0 18px 45px rgba(15,23,42,.12);
}

.cta-box::after { display: none; }
.cta-box .section-kicker,
.cta-box p,
.cta-box .hero-btn { display: block; }

.cta-box h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.55rem;
}

.cta-box p {
    color: #aeb8c8;
    font-size: .7rem;
}

.cta-box .hero-btn.primary {
    flex: 0 0 auto;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
    padding-top: 0;
    color: #cbd5e1;
    background: #0d1420;
}

.site-footer .footer-grid {
    grid-template-columns: 1.4fr .8fr 1fr;
    gap: 35px;
    padding: 45px 0 32px;
}

.site-footer h3,
.site-footer h4 { color: #fff; }

.site-footer p,
.site-footer a,
.site-footer .footer-bottom {
    color: #8f9bad;
    font-size: .7rem;
}

.site-footer .footer-links ul {
    gap: 7px;
}

.site-footer .footer-links a:hover { color: #fff; }

.site-footer .enamad-wrapper {
    min-height: 92px !important;
    margin: 0 auto !important;
    padding: 15px 0 !important;
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center !important;
}

.site-footer .enamad-box {
    min-height: 60px !important;
}

.site-footer .enamad-box a {
    padding: 5px !important;
    border-radius: 8px;
    background: #fff;
}

.site-footer .enamad-box img {
    width: 78px !important;
    max-width: 78px !important;
}

.site-footer .footer-bottom {
    min-height: 55px;
    margin-top: 0;
    padding: 14px 0 16px;
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center;
    color: #69758a;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-content p { margin-right: auto; margin-left: auto; }
    .hero-actions,
    .hero-stats { justify-content: center; margin-right: auto; margin-left: auto; }
    .hero-visual { width: min(100%,650px); margin: 0 auto; }
    .categories-grid { grid-template-columns: repeat(3,1fr); }
    .products-grid { grid-template-columns: repeat(3,1fr); }
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    html { scroll-padding-top: 120px; }
    .container { width: min(100% - 24px,1280px); }

    .site-header .header-top {
        min-height: 65px;
        padding: 9px 0;
        gap: 9px;
    }

    .site-header .brand { min-width: auto; }
    .site-header .brand-logo { width: 42px !important; height: 42px !important; }
    .site-header .brand-title { font-size: 1rem; }
    .site-header .brand-subtitle { font-size: .58rem; }

    .site-header .header-search {
        order: 3;
        flex-basis: 100%;
        height: 43px;
    }

    .site-header .header-actions { margin-right: auto; }
    .site-header .header-login-btn { width: 42px; padding: 0; font-size: 0; }
    .site-header .header-login-btn::before { content: "→"; font-size: 1rem; }

    .site-header .header-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-header .header-nav::-webkit-scrollbar { display: none; }

    .site-header .header-nav .container { width: max-content; min-width: 100%; }
    .site-header .header-nav ul { gap: 22px; }

    .hero-section { min-height: auto; }
    .hero-grid { min-height: auto; }
    .hero-content { padding: 40px 0 12px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: .75rem; }
    .hero-actions { flex-direction: column; }
    .hero-btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; }
    .visual-main { inset: 45px 22px 45px 22px; padding: 20px; }
    .visual-main::before { width: 80px; height: 80px; border-radius: 22px; font-size: 1.5rem; }
    .visual-mini { min-width: 130px; min-height: 52px; font-size: .6rem; }

    .categories-section,
    .products-section,
    .features-section,
    .cta-section { padding: 30px 0; }

    .section-head { align-items: flex-start; }
    .section-head p { display: none; }

    .categories-grid {
        display: flex;
        overflow-x: auto;
        gap: 9px;
        padding: 2px 2px 8px;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar { display: none; }
    .category-card { flex: 0 0 112px; min-height: 110px; }
    .category-card p { display: none; }

    .products-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
    .product-image-link { padding: 18px 9px 7px; }
    .product-image { height: 125px; }
    .product-content { padding: 9px; }
    .product-description { display: none; }
    .product-title { min-height: 47px; font-size: .69rem; }
    .product-price { font-size: .75rem; }
    .product-link { width: 100%; margin-top: 8px; }
    .product-bottom { display: block; }

    .features-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .feature-box { padding: 16px 8px; }
    .feature-box p { display: none; }

    .cta-box {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px 20px;
    }

    .cta-box h2 { font-size: 1.25rem; }
    .cta-box .hero-btn { width: 100%; }

    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px 18px;
    }

    .site-footer .footer-brand { grid-column: 1 / -1; }

    .site-footer .footer-bottom {
        font-size: .58rem;
        line-height: 1.8;
    }
}
/* style.css - header restore and stronger logo */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header-main,
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-wrapper {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #eee6d8;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: #1f2937;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.account-menu {
    position: relative;
    display: inline-block;
}

.account-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1300;
    width: 250px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.account-menu-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #222222;
    text-decoration: none;
}

.account-menu-dropdown a:hover {
    background: #f7f7f7;
}
