/* ============================================================
   Beauty Land — فروشگاه اینترنتی
   پالت: صورتی + سرمه‌ای | فونت: وزیرمتن | RTL | موبایل‌فرست
   ============================================================ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800; font-display: swap;
}

:root {
    --primary: #e91e63;          /* صورتی برند */
    --primary-dark: #c2185b;
    --primary-light: #fce4ec;
    --navy: #1a2b56;             /* سرمه‌ای */
    --navy-dark: #0f1c3d;
    --navy-light: #2e4274;
    --bg: #f7f8fc;
    --surface: #ffffff;
    --text: #23283b;
    --text-muted: #7a8199;
    --border: #e8eaf2;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 2px 14px rgba(26, 43, 86, .08);
    --shadow-lg: 0 8px 30px rgba(26, 43, 86, .14);
    --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.9;
    padding-bottom: 62px; /* جای نوار موبایل */
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.hidden { display: none !important; }
.skip-link { position: absolute; right: -9999px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.danger { color: var(--danger); }
.warning { color: var(--warning); }
.full-width { width: 100%; }

/* ─────────── دکمه‌ها ─────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 14px; transition: all .2s;
    border: 1.5px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-light { background: #fff; color: var(--navy); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { color: var(--primary); font-size: 13px; }
.link-btn:hover { text-decoration: underline; }

/* ─────────── نوار بالا ─────────── */
.topbar {
    background: var(--navy); color: #cdd6ea;
    font-size: 12.5px;
}
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 7px 16px; }
.topbar-item::before { content: '•'; color: var(--primary); margin-left: 6px; }
.topbar-links { margin-right: auto; display: flex; gap: 16px; }
.topbar-links a:hover { color: #fff; }

/* ─────────── هدر ─────────── */
.header { background: var(--surface); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 90; }
.header-inner {
    display: flex; align-items: center; gap: 20px;
    padding: 14px 16px; flex-wrap: wrap;
}
.logo img { height: 40px; width: auto; }
.search-box {
    flex: 1; min-width: 220px; position: relative;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 24px; display: flex; align-items: center;
}
.search-box input {
    flex: 1; border: none; background: none; padding: 10px 18px;
    outline: none; color: var(--text);
}
.search-box button { color: var(--primary); padding: 0 16px; }
.search-suggest {
    position: absolute; top: calc(100% + 6px); right: 0; left: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-height: 420px; overflow: auto; z-index: 100;
}
.suggest-item { display: flex; gap: 12px; padding: 10px 16px; align-items: center; border-bottom: 1px solid var(--border); }
.suggest-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.suggest-item:hover { background: var(--primary-light); }
.suggest-cat { padding: 8px 16px; color: var(--primary); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-action {
    position: relative; display: flex; flex-direction: column; align-items: center;
    color: var(--navy); font-size: 11px; padding: 4px 10px;
}
.header-action:hover { color: var(--primary); }
.header-action-label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-dot {
    position: absolute; top: -4px; left: 0;
    background: var(--primary); color: #fff; border-radius: 20px;
    font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px;
}
.cart-btn .cart-count {
    position: absolute; top: -6px; left: 2px;
    background: var(--navy); color: #fff; border-radius: 20px;
    font-size: 10px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 4px;
}

/* مگامنو */
.main-nav { border-top: 1px solid var(--border); }
.main-nav-list { display: flex; gap: 4px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.main-nav-list::-webkit-scrollbar { display: none; }
.nav-item { position: relative; }
.nav-item > a {
    display: block; padding: 11px 16px; font-weight: 500; color: var(--navy);
    white-space: nowrap; border-bottom: 2.5px solid transparent;
}
.nav-item > a:hover, .nav-item:hover > a { color: var(--primary); border-color: var(--primary); }
.mega-menu {
    position: absolute; top: 100%; right: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg); padding: 14px 20px; min-width: 260px;
    display: none; z-index: 95;
}
.nav-item:hover .mega-menu { display: block; }
.mega-menu a { display: block; padding: 6px 0; color: var(--text-muted); }
.mega-menu a:hover { color: var(--primary); }

/* ─── مگامنوی «دسته‌بندی محصولات» (سبک دیجی‌کالا) ─── */
.main-nav .container { position: relative; }
.nav-cats > a {
    display: flex; align-items: center; gap: 7px;
    color: var(--primary); font-weight: 700;
}
.nav-cats > a .chev { transition: transform .2s ease; }
.nav-cats:hover > a .chev { transform: rotate(180deg); }
.mega-cats {
    position: absolute; top: 100%; right: 0; left: 0;
    display: none; z-index: 96;
}
.nav-cats:hover .mega-cats,
.nav-cats.open .mega-cats { display: block; }
.mega-cats-inner {
    display: flex; align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    min-height: 330px; overflow: hidden;
}
/* ریل دسته‌های اصلی (سمت راست) */
.mega-rail {
    width: 218px; flex-shrink: 0;
    background: #fafafc;
    border-left: 1px solid var(--border);
    padding: 8px 0;
    overflow-y: auto;
}
.mega-rail-item > a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px 8px 12px;
    font-size: 13px; font-weight: 500; color: var(--text);
    border-right: 3px solid transparent;
}
.mega-rail-item > a:hover { color: var(--primary); background: #fff; }
.mega-rail-item.active > a {
    color: var(--primary); background: #fff;
    border-right-color: var(--primary); font-weight: 700;
}
.mega-rail-icon { display: inline-flex; width: 21px; height: 21px; flex-shrink: 0; }
.mega-rail-icon svg { width: 100%; height: 100%; }
.mega-rail-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* پنل زیر‌دسته‌ها */
.mega-panes { flex: 1; min-width: 0; padding: 16px 22px 20px; background: #fff; }
.mega-pane { display: none; }
.mega-pane.active { display: block; }
.mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 18px; }
.mega-col { min-width: 0; }
.mega-col h4 {
    margin: 4px 0 4px; padding: 2px 10px 2px 0;
    border-right: 3px solid var(--primary);
    font-size: 13px; font-weight: 700; color: var(--navy);
    line-height: 1.7;
}
.mega-col h4 a { display: block; }
.mega-col h4 a:hover { color: var(--primary); }
.mega-col ul { margin: 2px 0 10px; }
.mega-col li a {
    display: block; padding: 3px 13px;
    font-size: 12.5px; color: var(--text-muted); line-height: 1.9;
}
.mega-col li a:hover { color: var(--primary); }
@media (min-width: 992px) {
    /* دسکتاپ: لیست منو اسکرول افقی ندارد تا پنل مگامنو بیرون نزند */
    .main-nav-list { overflow: visible; flex-wrap: wrap; }
    .nav-cats { position: static; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .mega-cols { grid-template-columns: repeat(3, 1fr); }
    .mega-rail { width: 190px; }
}
@media (max-width: 991px) {
    /* موبایل/تبلت: مگامنوی بزرگ مخفی، لینک مستقیم به صفحه دسته‌ها */
    .mega-cats { display: none !important; }
}

/* ─────────── هیرو ─────────── */
.hero {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    margin-top: 20px;
}
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 320px; }
/* اسلایدر با افکت محو (crossfade) */
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .9s ease, visibility .9s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; position: absolute; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
    position: absolute; bottom: 40px; right: 40px; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.4); max-width: 60%;
}
.hero-caption h2 { font-size: 26px; margin-bottom: 8px; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }
.hero-promo img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
    .hero { grid-template-columns: 2.4fr 1fr 1fr; }
    .hero-slider { grid-column: span 3; height: 400px; }
    .hero-promo { display: block; }
}
@media (max-width: 899px) { .hero-promo { display: none; } .hero-caption { right: 20px; } }

/* ─────────── نوار خدمات ─────────── */
.services-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px; margin-top: 20px;
}
.service-item {
    background: var(--surface); border-radius: var(--radius); padding: 14px;
    display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow);
    font-size: 12px; color: var(--text-muted);
}
.service-item strong { color: var(--navy); font-size: 13.5px; }

/* ─────────── بخش‌های اصلی ─────────── */
.home-section { margin-top: 34px; }
.section-title { font-size: 18px; color: var(--navy); position: relative; padding-right: 14px; }
.section-title::before {
    content: ''; position: absolute; right: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 4px; background: var(--primary);
}
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.section-head .see-all { margin-right: auto; color: var(--primary); font-size: 13px; }
.flash-head .section-title { color: var(--primary); }
.flash-head .section-title::before { background: var(--primary); }

/* شمارش معکوس */
.countdown { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.cd-box {
    background: var(--navy); color: #fff; border-radius: 7px;
    min-width: 34px; text-align: center; padding: 3px 6px; font-size: 13px;
}
.flash-timer-box {
    display: flex; align-items: center; gap: 12px;
    background: var(--primary-light); border: 1px dashed var(--primary);
    padding: 10px 14px; border-radius: var(--radius-sm); margin: 10px 0;
}

/* ─────────── کارت محصول ─────────── */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
@media (max-width: 560px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.products-row { display: flex; gap: 14px; }
.scroll-x { overflow-x: auto; padding-bottom: 8px; }
.scroll-x .product-card { min-width: 190px; }
.product-card {
    background: var(--surface); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; position: relative;
    transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card-media { position: relative; display: block; }
.product-card-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.discount-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 800;
    padding: 3px 9px; border-radius: 20px;
}
.flash-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--navy); color: #ffd166; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
}
.stock-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,.72);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-weight: 700;
}
.product-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-title {
    font-weight: 500; font-size: 13.5px; line-height: 1.7; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 46px;
}
.product-card-rating { font-size: 12px; color: var(--warning); display: flex; gap: 6px; align-items: center; }
.product-card-price { margin-top: auto; }
.product-card-price del { color: var(--text-muted); font-size: 12px; display: block; }
.product-card-price strong { color: var(--navy); font-size: 15px; }
.login-for-price { color: var(--primary); font-size: 13px; font-weight: 700; }
.remaining-alert { color: var(--danger); font-size: 11.5px; }
.add-to-cart-btn { width: 100%; }
.out-of-stock .add-to-cart-btn { background: var(--border); color: var(--text-muted); }

/* ─────────── دسته‌بندی‌ها و برندها ─────────── */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.category-card {
    background: var(--surface); border-radius: var(--radius); padding: 16px 10px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    box-shadow: var(--shadow); font-size: 13px; font-weight: 500; text-align: center;
    transition: transform .2s;
}
.category-card:hover { transform: translateY(-3px); color: var(--primary); }
.category-card img, .category-card span:first-child { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.brands-row, .brands-list { display: flex; gap: 12px; flex-wrap: wrap; }
.brands-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); display: grid; }
.brand-chip, .brand-card {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px;
    min-width: 110px; font-size: 13px; font-weight: 500;
}
.brand-initial {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800;
}
.brand-initial.large { width: 90px; height: 90px; font-size: 34px; }

/* ─────────── بلاگ ─────────── */
.blog-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.blog-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .2s;
}
.blog-card:hover { transform: translateY(-3px); }
.blog-card img { width: 100%; height: 170px; object-fit: cover; }
.blog-card-body { padding: 14px; }
.blog-card-body h3 { font-size: 14.5px; color: var(--navy); margin: 6px 0; }
.blog-card-body p { font-size: 13px; color: var(--text-muted); }
.blog-meta { font-size: 12px; color: var(--primary); }
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.chip {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    padding: 5px 14px; font-size: 13px; display: inline-block;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-post .post-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: 13px; margin: 8px 0 16px; }
.post-cover { border-radius: var(--radius); margin-bottom: 20px; }
.comments-section { margin-top: 40px; }
.comment-item, .review-item { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comment-head, .review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.comment-reply, .review-reply {
    background: var(--primary-light); border-radius: var(--radius-sm);
    padding: 10px 14px; margin-top: 10px; font-size: 13.5px;
}
.verified-badge { background: #e0f2fe; color: #0369a1; font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.review-stars { color: var(--warning); letter-spacing: 2px; }
.rating-inline { color: var(--warning); font-size: 13px; }
.rating-input button { font-size: 26px; color: var(--border); }
.rating-input button.active { color: var(--warning); }
.pros { color: var(--success); font-size: 13px; }
.cons { color: var(--danger); font-size: 13px; }
.qa-item { background: var(--surface); padding: 14px; border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }

/* ─────────── فرم‌ها ─────────── */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
label { display: block; font-size: 13px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"], select, textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface);
    margin-top: 6px; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; }
textarea { resize: vertical; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.check-row input { width: auto; margin-top: 0; }
.empty-state {
    background: var(--surface); border-radius: var(--radius); padding: 50px 20px;
    text-align: center; box-shadow: var(--shadow); color: var(--text-muted);
    display: flex; flex-direction: column; gap: 14px; align-items: center;
}

/* ─────────── صفحه دسته ─────────── */
.page-wrap { margin-top: 22px; margin-bottom: 50px; }
.page-title { font-size: 21px; color: var(--navy); margin-bottom: 14px; }
.breadcrumb { color: var(--text-muted); font-size: 12.5px; margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.category-banner { border-radius: var(--radius); margin-bottom: 18px; }
.category-head h1 { font-size: 21px; color: var(--navy); }
.sub-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.category-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; margin-top: 20px; }
@media (max-width: 900px) { .category-layout { grid-template-columns: 1fr; } .filters { order: 2; } }
.filters {
    background: var(--surface); border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow); align-self: start; position: sticky; top: 120px;
}
@media (max-width: 900px) { .filters { position: static; } }
.filter-box { border-bottom: 1px solid var(--border); padding: 14px 0; }
.filter-box h3 { font-size: 13.5px; color: var(--navy); margin-bottom: 8px; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 13.5px; }
.filter-option input { width: auto; margin: 0; }
.color-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; border: 1px solid var(--border); }
.price-range { display: flex; gap: 8px; align-items: center; }
.clear-filters { color: var(--primary); font-size: 13px; display: block; margin-top: 12px; }
.list-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface); padding: 12px 18px; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 16px; flex-wrap: wrap;
}
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-tabs a { padding: 5px 12px; font-size: 12.5px; border-radius: 16px; color: var(--text-muted); }
.sort-tabs a.active { background: var(--navy); color: #fff; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.page-link {
    background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow); font-size: 13.5px;
}
.page-link.current { background: var(--primary); color: #fff; }
.page-dots { padding: 8px 4px; color: var(--text-muted); }

/* ─────────── صفحه محصول ─────────── */
.product-main { display: grid; grid-template-columns: minmax(300px, 480px) 1fr; gap: 30px; }
@media (max-width: 860px) { .product-main { grid-template-columns: 1fr; } }
.gallery-main {
    border-radius: var(--radius); overflow: hidden; background: #fff;
    box-shadow: var(--shadow); position: relative; cursor: zoom-in;
}
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery-main:hover img { transform: scale(1.6); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb { border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 72px; height: 72px; object-fit: cover; }
.product-title { font-size: 20px; color: var(--navy); line-height: 1.7; }
.product-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.brand-link { color: var(--primary); font-weight: 700; }
.product-short { color: var(--text-muted); font-size: 13.5px; }
.variant-selector { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.variant-group-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-option {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 7px 16px; font-size: 13.5px; background: var(--surface);
}
.variant-option.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.variant-option.disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.price-box { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: 14px 0; }
.price-main { display: flex; align-items: center; gap: 12px; }
.price-main del { color: var(--text-muted); font-size: 14px; }
.price-main strong { color: var(--primary); font-size: 22px; font-weight: 800; }
.stock-status { margin: 10px 0; font-size: 13.5px; }
.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }
.notify-me { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); font-size: 13.5px; }
.notify-form { display: flex; gap: 8px; margin-top: 8px; }
.product-actions { display: flex; gap: 10px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.qty-stepper {
    display: flex; align-items: center; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden; background: var(--surface);
}
.qty-stepper button { width: 38px; height: 42px; font-size: 18px; color: var(--navy); }
.qty-stepper input {
    width: 52px; text-align: center; border: none; margin: 0;
    border-right: 1px solid var(--border); border-left: 1px solid var(--border);
}
.wishlist-btn {
    width: 46px; height: 46px; border-radius: 50%; font-size: 22px;
    background: var(--surface); box-shadow: var(--shadow); color: var(--text-muted);
}
.wishlist-btn.active { color: var(--primary); }
.product-shares { display: flex; gap: 12px; font-size: 13px; color: var(--text-muted); }
.product-shares a:hover { color: var(--primary); }
.product-tabs { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 30px; overflow: hidden; }
.tab-heads { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-head { padding: 14px 24px; font-weight: 700; color: var(--text-muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tab-head.active { color: var(--primary); border-color: var(--primary); }
.tab-body { display: none; padding: 24px; }
.tab-body.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.specs-table th, .specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: right; font-size: 13.5px; }
.specs-table th { color: var(--text-muted); width: 30%; font-weight: 500; }
.rich-text { line-height: 2.1; }
.rich-text h3 { margin: 18px 0 8px; color: var(--navy); }
.rich-text img { border-radius: var(--radius-sm); }

/* ─────────── سبد و پرداخت ─────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    background: var(--surface); border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.cart-item-media img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }
.cart-item-info { flex: 1; min-width: 160px; }
.cart-item-name { font-weight: 500; display: block; }
.variant-desc { font-size: 12.5px; color: var(--text-muted); display: block; }
.cart-item-price { text-align: left; }
.cart-item-price del { font-size: 12px; color: var(--text-muted); display: block; }
.cart-summary, .checkout-summary {
    background: var(--surface); border-radius: var(--radius); padding: 18px;
    box-shadow: var(--shadow); align-self: start; position: sticky; top: 120px;
    display: flex; flex-direction: column; gap: 8px;
}
@media (max-width: 860px) { .cart-summary, .checkout-summary { position: static; } }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; }
.summary-row.discount strong { color: var(--danger); }
.summary-row.total { border-top: 1.5px dashed var(--border); padding-top: 10px; font-size: 15px; }
.summary-row.total strong { color: var(--primary); }
.coupon-box { display: flex; gap: 8px; margin: 10px 0; }
.coupon-applied { background: var(--success); color: #fff; border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; width: 100%; text-align: center; }
.continue-shopping { text-align: center; color: var(--text-muted); font-size: 13px; }
.checkout-steps {
    display: flex; gap: 4px; background: var(--surface); padding: 8px;
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; overflow-x: auto;
}
.checkout-steps .step {
    flex: 1; text-align: center; padding: 8px; font-size: 12.5px; font-weight: 700;
    color: var(--text-muted); border-radius: 8px; white-space: nowrap;
}
.checkout-steps .step.active { background: var(--primary-light); color: var(--primary-dark); }
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-panel { display: none; }
.checkout-panel.active { display: block; }
.checkout-panel h2 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.checkout-panel > section, .checkout-panel { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.address-card, .option-card {
    display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; cursor: pointer;
    background: var(--surface);
}
.address-card:has(input:checked), .option-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.option-cost { margin-right: auto; font-weight: 700; color: var(--navy); }
.shipping-options, .payment-options { margin-bottom: 14px; }
.map-canvas { height: 300px; border-radius: var(--radius-sm); margin: 12px 0; }
.address-form { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; margin: 14px 0; }
.invoice-preview .summary-items { list-style: none; margin-bottom: 12px; }
.summary-items li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.summary-items img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }

/* ─────────── ورود ─────────── */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 70vh; padding: 30px 16px;
}
.auth-box {
    background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg);
    padding: 34px 30px; max-width: 400px; width: 100%; text-align: center;
}
.auth-box h1 { font-size: 18px; color: var(--navy); margin: 12px 0 20px; }
.auth-step { display: none; text-align: right; }
.auth-step.active { display: block; }
.auth-step form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.auth-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; text-align: center; }
.otp-input { text-align: center; letter-spacing: 10px; font-size: 20px; font-weight: 800; }
.otp-timer-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* ─────────── پنل حساب ─────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
@media (max-width: 860px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px; align-self: start; position: sticky; top: 120px;
}
@media (max-width: 860px) { .account-sidebar { position: static; } }
.account-user { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 10px; }
.account-nav a {
    display: block; padding: 9px 14px; border-radius: var(--radius-sm);
    font-size: 13.5px; color: var(--text-muted);
}
.account-nav a.active, .account-nav a:hover { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.logout-link { color: var(--danger) !important; }
.account-content { display: flex; flex-direction: column; gap: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card {
    background: var(--surface); border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.stat-card strong { color: var(--navy); font-size: 17px; }
.stat-card span { font-size: 12px; color: var(--text-muted); }
.stat-card.warning strong { color: var(--warning); }
.stat-card.danger strong { color: var(--danger); }
.data-table { width: 100%; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.data-table th { background: var(--bg); color: var(--navy); font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: none; }
.item-cell { display: flex; align-items: center; gap: 10px; }
.item-cell img { border-radius: 8px; object-fit: cover; }
.status-pill { padding: 3px 12px; border-radius: 14px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-pill.large { font-size: 14px; padding: 6px 18px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wallet-card { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; border-radius: var(--radius); padding: 24px; }
.wallet-card strong { font-size: 24px; display: block; margin-top: 6px; }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }
.order-box { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.order-box h3 { color: var(--navy); font-size: 15px; margin: 10px 0 8px; }
.order-actions { display: flex; gap: 10px; margin-top: 12px; }
.order-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 14px; padding: 10px 0; border-right: 2px solid var(--border); padding-right: 18px; position: relative; }
.timeline-dot {
    width: 12px; height: 12px; border-radius: 50%; background: var(--primary);
    position: absolute; right: -7px; top: 16px;
}
.notifications-list { display: flex; flex-direction: column; gap: 10px; }
.notification-item {
    background: var(--surface); border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow); display: block;
}
.notification-item.unread { border-right: 3px solid var(--primary); }
.notification-footer { display: flex; justify-content: space-between; margin-top: 6px; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.address-card-box { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.address-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.address-actions { display: flex; gap: 12px; margin-top: 8px; }

/* ─────────── چت ─────────── */
.chat-widget { position: fixed; bottom: 80px; left: 18px; z-index: 120; }
.chat-toggle {
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--primary); color: #fff; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
}
.chat-box {
    position: absolute; bottom: 64px; left: 0; width: 320px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.chat-header { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.chat-header .chat-status { font-size: 11px; color: #cdd6ea; margin-right: auto; }
.chat-messages { height: 280px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; background: var(--bg); padding: 8px 12px; border-radius: 12px 12px 12px 4px; font-size: 13px; }
.chat-msg.mine { background: var(--primary-light); align-self: flex-end; border-radius: 12px 12px 4px 12px; }
.chat-form { display: flex; border-top: 1px solid var(--border); }
.chat-form input { border: none; margin: 0; border-radius: 0; }
.chat-form button { background: var(--primary); color: #fff; padding: 0 18px; }
.chat-guest-info { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px dashed var(--border); }
.chat-guest-info input { margin-top: 0; }

/* ─────────── نتیجه و خطا ─────────── */
.result-box {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 40px; text-align: center; max-width: 560px; margin: 30px auto;
}
.result-icon {
    width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff;
}
.result-box.success .result-icon { background: var(--success); }
.result-box.error .result-icon { background: var(--danger); }
.result-box.warning .result-icon { background: var(--warning); }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.order-summary-box { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 700px; margin: 20px auto; }
.order-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.order-table th, .order-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: right; }
.track-form { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.error-page { text-align: center; padding: 80px 16px; }
.error-code { font-size: 90px; color: var(--primary); font-weight: 800; }
.local-gateway-box { max-width: 440px; margin: 40px auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.lg-header { background: var(--navy); color: #fff; padding: 20px; text-align: center; }
.lg-badge { background: var(--warning); color: var(--navy-dark); font-size: 11px; padding: 3px 12px; border-radius: 14px; font-weight: 700; }
.lg-body { padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; }

/* ─────────── خبرنامه و فوتر ─────────── */
.newsletter-banner {
    background: linear-gradient(120deg, var(--navy), var(--navy-light));
    color: #fff; border-radius: var(--radius); padding: 36px; text-align: center;
}
.newsletter-banner h2 { margin-bottom: 6px; }
.newsletter-banner form { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.newsletter-banner input { max-width: 340px; }
.footer { background: var(--navy); color: #b9c4de; margin-top: 50px; }
.footer-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px;
    padding: 40px 0 30px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; }
.footer-col ul li { padding: 3px 0; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-newsletter form { display: flex; gap: 8px; margin-top: 10px; }
.footer-bottom { border-top: 1px solid var(--navy-light); padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ─────────── توست ─────────── */
.toast-container { position: fixed; top: 16px; right: 50%; transform: translateX(50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast-container.static { position: static; transform: none; margin-bottom: 14px; }
.toast {
    background: var(--navy); color: #fff; padding: 12px 22px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slideDown .3s;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); color: var(--navy-dark); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; } }

/* ─────────── نوار موبایل (پیاده‌سازی جدید در انتهای فایل: سبک اپلیکیشن) ─────────── */

/* FAQ */
.faq-item { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 10px; padding: 4px 16px; }
.faq-item summary { padding: 12px 0; font-weight: 700; cursor: pointer; color: var(--navy); }
.faq-item p { padding-bottom: 12px; color: var(--text-muted); font-size: 13.5px; }

/* متن صفحات ثابت */
.page-content { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ── صفحه فهرست دسته‌بندی‌ها (/category) ─────────────────── */
.cats-index-intro { color: var(--muted, #7a8199); font-size: 13.5px; margin: -6px 0 22px; }
.cats-index { display: grid; gap: 14px; }
.cats-index-group { background: var(--card, #fff); border: 1px solid var(--border, #ececf2); border-radius: 16px; padding: 16px 18px; }
.cats-index-head { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary, #1a2b56); }
.cats-index-head h2 { font-size: 15.5px; font-weight: 800; margin: 0; }
.cats-index-head:hover h2 { color: var(--accent, #e91e63); }
.cats-index-count { font-size: 12px; color: var(--muted, #7a8199); background: var(--bg, #f5f6fa); border-radius: 999px; padding: 3px 10px; }
.cats-index-arrow { margin-inline-start: auto; font-size: 20px; line-height: 1; color: var(--muted, #7a8199); }
.cats-index-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════════════
   ریسپانسیو موبایل اپ‌مانند + کاروسل محصولات + آیکن‌های خدمات و دسته‌ها
   (نسخه ۱.۲.۰)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── آیکن‌های نوار خدمات (ضمانت، ارسال، پرداخت…) ─── */
.services-strip { gap: 12px; }
.service-item {
    padding: 16px 10px 14px; gap: 3px;
    border: 1px solid var(--border); box-shadow: none;
    transition: transform .2s, box-shadow .2s;
}
.service-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary-light, #fce7f3);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 7px;
}
.service-icon svg { width: 25px; height: 25px; }
.service-item strong { font-size: 13px; }
.service-item > span:last-child { font-size: 11.5px; }

/* ─── آیکن جذاب دسته‌بندی‌های صفحه اصلی ─── */
.categories-grid { gap: 14px; }
.category-card { gap: 10px; padding: 18px 10px 14px; }
.category-card:hover .category-icon { transform: scale(1.08) rotate(-4deg); }
.category-icon {
    width: 74px; height: 74px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
    transition: transform .25s ease;
}
.category-icon svg { width: 38px; height: 38px; }
.category-icon.ci1 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
.category-icon.ci2 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.category-icon.ci3 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.category-icon.ci4 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7e22ce; }
.category-icon.ci5 { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #be123c; }
.category-icon.ci6 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #a21caf; }
.category-icon.ci7 { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0f766e; }
.category-icon.ci8 { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #334155; }
/* اگر تعداد دسته‌ها بیشتر از ۸ شد، از همین چرخه تکرار می‌شود */
.category-icon.ci9 { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
.category-icon.ci10 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #0369a1; }
.category-icon.ci11 { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.category-icon.ci12 { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7e22ce; }

/* ─── کاروسل محصولات (۵ کارت در دسکتاپ، ۲ کارت در موبایل) ─── */
.products-carousel { position: relative; }
.pc-track {
    display: flex; gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 6px;
}
.pc-track::-webkit-scrollbar { display: none; }
.pc-track > .product-card {
    flex: 0 0 calc((100% - 56px) / 5);
    scroll-snap-align: start;
    min-width: 0;
}
.carousel-nav { margin-inline-start: auto; display: flex; gap: 7px; }
.car-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--surface); color: var(--navy);
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.car-btn svg { width: 17px; height: 17px; }
.car-btn:hover { background: var(--primary); color: #fff; }
.flash-head .carousel-nav { margin-inline-start: auto; }

@media (max-width: 991px) {
    .pc-track > .product-card { flex: 0 0 calc((100% - 42px) / 4); }
}
@media (max-width: 760px) {
    .pc-track { gap: 10px; }
    .pc-track > .product-card { flex: 0 0 calc(50% - 5px); }
    .carousel-nav { display: none; } /* در موبایل کاروسل با لمس جابه‌جا می‌شود */
}

/* ─── هدر موبایل (سبک اپلیکیشن: لوگو بالا، دکمه‌های مربعی، سرچ صورتی) ─── */
.mobile-menu-btn { display: none; }
@media (max-width: 760px) {
    .topbar { display: none; }
    .header-inner {
        flex-wrap: wrap; gap: 10px;
        padding: 10px 14px 12px;
    }
    .logo { order: 1; }
    .logo img { height: 36px; }
    .header-actions { order: 2; margin-inline-start: auto; gap: 8px; }
    .search-box { order: 10; flex: 1 1 100%; min-width: 0; margin-top: 2px; }
    /* دکمه‌های مربعی گرد مانند نمونه */
    .header-action-sq {
        width: 42px; height: 42px; padding: 0;
        border: 1.5px solid var(--border); border-radius: 13px;
        background: var(--surface);
        display: flex; align-items: center; justify-content: center;
        flex-direction: row;
    }
    /* دکمه همبرگر موبایل */
    .mobile-menu-btn {
        order: 3;
        display: flex; align-items: center; justify-content: center;
        width: 42px; height: 42px;
        border: 1.5px solid var(--border); border-radius: 13px;
        background: var(--surface); color: var(--navy);
    }
    /* در موبایل: فقط قلب، زنگ و همبرگر — بقیه مخفی (نوار پایین جایگزین است) */
    .header-actions .header-action:not(.header-action-sq) { display: none; }
    .header-actions .btn { display: none; }
    .header-actions .cart-btn { display: none; }
    /* نوار مگامنو در موبایل مخفی — دسته‌ها داخل منوی کشویی هستند */
    .main-nav { display: none; }
    /* نوار جستجو با ته‌رنگ صورتی مانند نمونه */
    .search-box { background: #fdf2f8; border-color: #fbcfe8; }
    /* ویجت چت شناور در موبایل مخفی — پشتیبانی از نوار پایین باز می‌شود */
    .chat-toggle { display: none; }
    .chat-widget { bottom: 92px; left: 12px; }
    .chat-box { width: min(320px, calc(100vw - 24px)); }
}

/* ─── منوی کشویی موبایل ─── */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 140;
    background: rgba(15, 23, 42, .55);
    opacity: 0; transition: opacity .25s ease;
    backdrop-filter: blur(1px);
    pointer-events: none; /* تا بسته بودن منو، کلیک‌ها را نمی‌گیرد */
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 150;
    width: min(320px, 86vw);
    background: var(--surface);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.22, .8, .3, 1);
    display: flex; flex-direction: column;
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
@media (min-width: 761px) { .drawer-overlay, .mobile-drawer { display: none !important; } }
.drawer-head {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 18px 16px 14px;
    background: linear-gradient(135deg, var(--primary-light, #fce7f3), #fff);
    border-bottom: 1px solid var(--border);
}
.drawer-login-box { flex: 1; }
.drawer-login-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 14px;
}
.drawer-login-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.drawer-user { display: flex; align-items: center; gap: 10px; flex: 1; }
.drawer-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.drawer-user-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.drawer-close {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); background: rgba(255,255,255,.7);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 12px 20px; }
.drawer-title {
    font-size: 13px; font-weight: 800; color: var(--text-muted);
    padding: 8px 8px 4px;
}
.drawer-cats li > a, .drawer-links li > a {
    display: flex; align-items: center; gap: 12px;
    padding: 8px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500; color: var(--text);
    transition: background .15s, color .15s;
}
.drawer-cats li > a:hover, .drawer-cats li > a:active,
.drawer-links li > a:hover, .drawer-links li > a:active {
    background: var(--primary-light, #fce7f3); color: var(--primary);
}
.drawer-cat-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.drawer-cat-icon svg { width: 22px; height: 22px; }
/* رنگ‌های دایره‌ای دسته‌ها (چرخه ۸ رنگ) */
.drawer-cat-icon.dc1 { background: #fce7f3; color: #be185d; }
.drawer-cat-icon.dc2 { background: #e0f2fe; color: #0369a1; }
.drawer-cat-icon.dc3 { background: #fef3c7; color: #b45309; }
.drawer-cat-icon.dc4 { background: #f3e8ff; color: #7e22ce; }
.drawer-cat-icon.dc5 { background: #ffe4e6; color: #be123c; }
.drawer-cat-icon.dc6 { background: #fdf2f8; color: #a21caf; }
.drawer-cat-icon.dc7 { background: #ccfbf1; color: #0f766e; }
.drawer-cat-icon.dc8 { background: #e2e8f0; color: #334155; }
.drawer-links li > a svg { color: var(--text-muted); flex-shrink: 0; }
.drawer-links li > a span { color: inherit; }
.drawer-foot {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex; align-items: center; gap: 14px;
    font-size: 12px; color: var(--text-muted);
}
.drawer-foot a { color: var(--primary); font-weight: 600; }

/* ─── نوار پایین موبایل (خانه، منو، پشتیبانی برجسته، سبد، ورود) ─── */
.mobile-nav {
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 120;
    background: var(--surface);
    box-shadow: 0 -6px 24px rgba(15, 23, 42, .10);
    display: flex; align-items: flex-end;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
body { padding-bottom: 74px; } /* جای نوار موبایل بلندتر */
@media (min-width: 761px) {
    .mobile-nav { display: none; }
    body { padding-bottom: 0; }
}
.mobile-nav .mn-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; height: 64px;
    color: var(--text-muted); font-size: 10.5px; font-weight: 600;
    position: relative; background: none; border: none;
}
.mobile-nav .mn-item svg { flex-shrink: 0; }
.mobile-nav .mn-item.active { color: var(--primary); }
.mobile-nav .mn-item.active::after {
    content: ''; position: absolute; top: 0;
    width: 22px; height: 3px; border-radius: 0 0 4px 4px;
    background: var(--primary);
}
/* دکمه برجسته پشتیبانی وسط نوار */
.mobile-nav .mn-support {
    flex: 1;
    display: flex; align-items: flex-start; justify-content: center;
    background: none; border: none;
    height: 64px;
    position: relative;
}
.mobile-nav .mn-support::before {
    content: '';
    width: 52px; height: 52px; margin-top: -18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff5c8a);
    box-shadow: 0 6px 18px rgba(233, 30, 99, .42), 0 0 0 5px var(--surface);
    transition: transform .2s;
}
.mobile-nav .mn-support svg {
    position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
    color: #fff; z-index: 2;
}
.mobile-nav .mn-support:active::before { transform: scale(.94); }
.mobile-nav .cart-count {
    position: absolute; top: 7px; left: 50%;
    margin-inline-start: 8px;
    background: var(--primary); color: #fff;
    border-radius: 12px; font-size: 9.5px;
    min-width: 17px; height: 17px; line-height: 17px;
    text-align: center; padding: 0 5px;
}

/* ─── فوتر در موبایل: جمع‌وجورتر ─── */
@media (max-width: 760px) {
    .footer { margin-top: 34px; padding-bottom: 6px; }
    .footer-top { gap: 20px; padding: 26px 0 18px; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}
