﻿/* =========================================================
   استایل اصلی فروشگاه
   ========================================================= */

:root {
    --bg: #f6f4f7;
    --surface: #ffffff;
    --surface-2: #fbf9fc;
    --ink: #251e29;
    --ink-2: #4a4150;
    --muted: #857b8c;
    --line: #ece7f0;
    --brand: #7c2d63;
    --brand-2: #a83071;
    --brand-deep: #2a1c27;
    --brand-dark: #3a1c31;
    --brand-mid: #6d2a50;
    --brand-soft: #f5eef3;
    --brand-rgb: 124, 45, 99;
    --accent: #e8477f;
    --accent-soft: #fde8f0;
    --accent-soft-2: #fbd9e7;
    --accent-rgb: 232, 71, 127;
    --gold: #f0b23f;
    --h: 330;
    --ok: #1d9a63;
    --danger: #d63b4a;
    --info: #2f6fd0;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(60, 30, 60, .05);
    --shadow: 0 14px 40px rgba(60, 30, 60, .10);
    --shadow-lg: 0 24px 60px rgba(60, 30, 60, .16);
    --container: 1220px;
    --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.5; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
    width: min(var(--container), 100% - 32px);
    margin-inline: auto;
}

.svg-sprite { display: none; }

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- دکمه‌ها ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, var(--accent) 130%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--brand-rgb), .28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(var(--brand-rgb), .38); }

.btn-outline {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}
.btn-outline:hover { background: var(--accent-soft); }

.btn-soft {
    background: var(--accent-soft);
    color: var(--brand);
}
.btn-soft:hover { background: var(--accent-soft-2); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 14px; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- نوار بالا ---------- */

.topbar {
    background: linear-gradient(90deg, var(--brand-deep), var(--brand-dark) 55%, var(--brand-mid));
    color: rgba(255, 255, 255, .86);
    font-size: 12.5px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    flex-wrap: wrap;
    padding-block: 4px;
}
.topbar-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
}
.topbar-note .icon { width: 17px; height: 17px; color: var(--gold); }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); }
.topbar-links a:hover { color: #fff; }
.topbar-links .icon { width: 15px; height: 15px; }

/* ---------- هدر ---------- */

.site-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(50, 25, 50, .10); }

.header-main {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-block: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(var(--brand-rgb), .30);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 19px; letter-spacing: -.2px; }
.brand-text small { font-size: 11px; color: var(--muted); font-weight: 400; }
.brand-logo {
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    border-radius: 8px;
}
.brand-footer .brand-logo { height: 40px; max-width: 130px; }

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 4px 6px 4px 4px;
    max-width: 560px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .10);
    background: #fff;
}
.header-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 12px;
    outline: none;
    color: var(--ink);
    min-width: 0;
}
.header-search input::placeholder { color: #a79fae; }
.header-search button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}
.head-action {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease;
}
.head-action:hover { background: var(--surface-2); border-color: var(--line); }
.head-action > .icon { width: 22px; height: 22px; color: var(--brand); }
.head-action-text { display: flex; flex-direction: column; line-height: 1.4; }
.head-action-text small { font-size: 10.5px; color: var(--muted); }
.head-action-text b { font-size: 13px; font-weight: 600; }

.cart-action { position: relative; }
.cart-ico { position: relative; display: inline-flex; }
.cart-count {
    position: absolute;
    top: -7px;
    left: -9px;
    min-width: 19px;
    height: 19px;
    padding-inline: 4px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}

/* ---------- منو ---------- */

.main-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; align-items: center; }
.nav-close { display: none; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: 10px;
}
.nav-list > li > a:hover { color: var(--brand); background: var(--surface-2); }
.nav-list .chev { width: 14px; height: 14px; transform: rotate(90deg); opacity: .6; }

.nav-hot { color: var(--accent) !important; font-weight: 700 !important; }
.nav-hot .icon { width: 15px; height: 15px; }

.submenu {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 40;
}
.has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--ink-2);
}
.submenu a:hover { background: var(--accent-soft); color: var(--brand); }

.menu-toggle, .menu-overlay { display: none; }

/* ---------- پیام‌ها ---------- */

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13.5px;
    animation: fadeIn .25s ease;
}
.alert-success { background: #e8f8f0; border-color: #b9ebd2; color: #14764b; }
.alert-warning { background: #fff6e3; border-color: #f6e0b0; color: #8a5a08; }
.alert-error   { background: #fdecee; border-color: #f5c6cc; color: #a52232; }
.alert-info    { background: #eaf1fd; border-color: #c8d9f6; color: #23538f; }
.alert-close {
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    opacity: .6;
    padding: 0 4px;
}
.alert-close:hover { opacity: 1; }

/* ---------- هیرو ---------- */

.site-main { min-height: 55vh; padding-bottom: 40px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 360px;
    box-shadow: var(--shadow);
    background: var(--brand-deep);
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 10px;
    padding: 38px 42px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity .6s ease, transform .8s ease, visibility .6s;
    background: radial-gradient(120% 120% at 85% 15%, hsl(var(--h, 330) 60% 42%) 0%, var(--brand-deep) 62%);
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); position: relative; }
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 14, 23, .86) 0%, rgba(24, 14, 23, .55) 55%, rgba(24, 14, 23, .28) 100%);
}
.hero-slide:has(.hero-bg) { grid-template-columns: 1fr; }
.hero-content { position: relative; z-index: 2; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 11.5px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.hero-slide h1 {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
    text-wrap: balance;
}
.hero-slide p {
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
    max-width: 42ch;
    margin-bottom: 22px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-art {
    position: relative;
    height: 100%;
    min-height: 240px;
    display: grid;
    place-items: center;
}
.hero-art .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}
.hero-art .blob.b1 {
    width: 220px; height: 220px;
    background: rgba(255, 255, 255, .16);
    top: 10%; right: 10%;
}
.hero-art .blob.b2 {
    width: 120px; height: 120px;
    background: rgba(255, 255, 255, .12);
    bottom: 6%; left: 12%;
}
.hero-emoji {
    position: relative;
    font-size: 96px;
    line-height: 1;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25));
    animation: floaty 5s ease-in-out infinite;
}
.hero-dots {
    position: absolute;
    bottom: 16px;
    right: 42px;
    display: flex;
    gap: 7px;
    z-index: 5;
}
.hero-dots button {
    width: 22px;
    height: 5px;
    border-radius: 99px;
    border: 0;
    background: rgba(255, 255, 255, .35);
    padding: 0;
    transition: width .25s ease, background .25s ease;
}
.hero-dots button.is-active { width: 40px; background: #fff; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.hero-tile {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    box-shadow: var(--shadow-sm);
    isolation: isolate;
}
.hero-tile::after {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    border-radius: 50%;
    left: -40px; bottom: -50px;
    background: rgba(255, 255, 255, .22);
    z-index: -1;
}
.hero-tile.t1 { background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2)); color: var(--brand-dark); }
.hero-tile.t2 { background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); color: var(--brand-dark); }
.hero-tile span { font-size: 12px; opacity: .85; }
.hero-tile b { font-size: 20px; font-weight: 800; margin: 2px 0 8px; }
.hero-tile small { font-size: 12.5px; opacity: .8; margin-bottom: 10px; }
.hero-tile .tile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    width: fit-content;
}
.hero-tile .tile-link .icon { width: 16px; height: 16px; }
.hero-tile .tile-emoji {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-size: 54px;
    opacity: .9;
}

/* ---------- بخش‌ها ---------- */

.section { margin-top: 46px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
}
.section-title::before {
    content: '';
    width: 5px;
    height: 24px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--accent), var(--brand));
}
.section-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--brand);
    font-weight: 600;
}
.section-link .icon { width: 15px; height: 15px; }
.section-link:hover { color: var(--accent); }

/* ---------- دسته‌بندی‌ها ---------- */

.cat-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}
.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-soft-2);
}
.cat-emoji {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    font-size: 26px;
}
.cat-card b { font-size: 13px; font-weight: 600; }

/* ---------- کارت محصول ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-soft-2);
}
.product-thumb {
    position: relative;
    background: #faf7fa;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-thumb .thumb-link { display: block; height: 100%; }
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), .35);
    z-index: 2;
}
.badge-out {
    position: absolute;
    inset: 0;
    background: rgba(37, 30, 41, .45);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    z-index: 1;
    backdrop-filter: blur(1px);
}
.card-add {
    position: absolute;
    inset-inline: 10px;
    bottom: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease;
}
.product-card:hover .card-add { opacity: 1; transform: translateY(0); }
.card-add-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, .95);
    color: var(--brand);
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(50, 25, 50, .18);
    backdrop-filter: blur(6px);
    transition: background .2s ease, color .2s ease;
}
.card-add-btn:hover { background: var(--brand); color: #fff; }
.card-add-btn .icon { width: 16px; height: 16px; }
.card-add-btn:disabled { opacity: .6; cursor: not-allowed; }

.product-body {
    padding: 13px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.product-cat {
    font-size: 11px;
    color: var(--muted);
}
.product-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.7;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title a:hover { color: var(--brand); }
.product-colors { display: flex; gap: 5px; flex-wrap: wrap; }
.color-chip {
    font-size: 10.5px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 1px 7px;
    line-height: 1.7;
}
.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.price-old {
    font-size: 11.5px;
    color: #a79fae;
    text-decoration: line-through;
}
.price-new { font-size: 15px; font-weight: 800; color: var(--ink); }
.price-new .toman, .price-new { }
.product-meta { font-size: 11px; }
.stock { font-size: 11px; }
.stock.ok { color: var(--ok); }
.stock.low { color: #c47b12; }
.stock.out { color: var(--danger); }

/* ---------- بنر تخفیف ---------- */

.promo-banner {
    margin-top: 46px;
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background:
        radial-gradient(90% 160% at 100% 0%, var(--accent) 0%, transparent 55%),
        linear-gradient(120deg, var(--brand-dark), var(--brand) 70%, var(--brand-2));
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.promo-banner::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    left: -60px;
    top: -80px;
}
.promo-text { position: relative; z-index: 1; }
.promo-text span { font-size: 12.5px; opacity: .85; }
.promo-text h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; margin: 4px 0 8px; }
.promo-text p { font-size: 13.5px; opacity: .82; margin: 0; }
.promo-side { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; flex-wrap: wrap; }
.countdown { display: flex; gap: 8px; }
.countdown div {
    min-width: 58px;
    padding: 8px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    text-align: center;
    backdrop-filter: blur(6px);
}
.countdown b { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.countdown small { font-size: 10px; opacity: .8; }

/* ---------- ویژگی‌ها ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.feature .icon {
    width: 30px;
    height: 30px;
    color: var(--brand);
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 6px;
}
.feature b { display: block; font-size: 13.5px; }
.feature span { font-size: 11.5px; color: var(--muted); }

/* ---------- فوتر ---------- */

.site-footer {
    margin-top: 56px;
    background: linear-gradient(180deg, #fbf8fb 0%, #f6f1f6 100%);
    border-top: 1px solid var(--line);
}
.footer-features {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding-block: 20px;
}
.footer-shell { padding-block: 30px 0; }
.footer-enamad {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.footer-enamad img { max-height: 78px; width: auto; }
.footer-enamad a { display: inline-flex; }
.footer-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px -34px rgba(58, 26, 48, .45);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1.1fr;
    gap: 34px;
    padding: 38px 34px 28px;
}
.brand-footer { margin-bottom: 14px; }
.footer-about p { font-size: 12.5px; color: var(--muted); line-height: 2; }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-social .icon { width: 18px; height: 18px; }
.footer-app {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 9px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px rgba(var(--brand-rgb), .22);
    transition: transform .2s ease, box-shadow .2s ease;
}
.footer-app:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px rgba(var(--brand-rgb), .28); }
.footer-app .icon { width: 20px; height: 20px; }
.footer-app span { display: flex; flex-direction: column; line-height: 1.35; }
.footer-app b { font-size: 12.5px; font-weight: 700; }
.footer-app small { font-size: 10.5px; opacity: .9; }
.footer-contact { display: grid; gap: 8px; margin-top: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.footer-contact .icon { width: 16px; height: 16px; color: var(--brand); }

.footer-col h4 { font-size: 14px; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { font-size: 12.5px; color: var(--muted); }
.footer-col a:hover { color: var(--brand); }
.footer-news p { font-size: 12px; color: var(--muted); }

.newsletter {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.newsletter input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 10px;
    padding: 9px 12px;
    outline: none;
}
.newsletter input:focus { border-color: var(--brand-2); background: #fff; }
.newsletter button {
    border: 0;
    border-radius: 10px;
    padding: 0 16px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 12.5px;
}
.footer-payments span { font-size: 11.5px; color: var(--muted); }
.pay-badges { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.pay-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 3px 10px;
    color: var(--ink-2);
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pay-badge:hover { border-color: var(--brand-2); box-shadow: 0 4px 12px -8px rgba(58, 26, 48, .5); }
.pay-badge img { max-height: 30px; max-width: 92px; width: auto; object-fit: contain; display: block; }
.pay-badge-text { background: var(--surface-2); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 8px 18px;
    font-size: 11.5px;
    color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-made a { color: var(--brand); }
.footer-made a:hover { text-decoration: underline; }

.to-top {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 70;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- توست ---------- */

.toast-wrap {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    font-size: 13px;
    min-width: 240px;
    max-width: 340px;
    animation: toastIn .3s ease;
    pointer-events: auto;
}
.toast.ok { border-right: 4px solid var(--ok); }
.toast.err { border-right: 4px solid var(--danger); }
.toast .icon { width: 18px; height: 18px; color: var(--ok); }
.toast.err .icon { color: var(--danger); }
.toast.hide { animation: toastOut .3s ease forwards; }

/* ---------- سربرگ صفحه ---------- */

.page-hero {
    margin-top: 22px;
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    background: linear-gradient(120deg, #fff, var(--brand-soft));
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.page-hero h1 { font-size: 24px; font-weight: 800; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { opacity: .5; }

/* ---------- لیست محصولات ---------- */

.listing-layout {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}
.filters {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 148px;
}
.filter-block + .filter-block { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.filter-block h4 { font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.filter-block h4 .icon { width: 15px; height: 15px; color: var(--brand); }
.filter-list { display: grid; gap: 4px; max-height: 280px; overflow: auto; }
.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--ink-2);
}
.filter-list a:hover { background: var(--surface-2); }
.filter-list a.active { background: var(--accent-soft); color: var(--brand); font-weight: 600; }
.filter-list small { color: var(--muted); font-size: 10.5px; }
.filter-list a.child { padding-right: 22px; font-size: 11.5px; color: var(--muted); }
.filter-list a.child.active { color: var(--brand); font-weight: 600; }

.price-inputs { display: flex; gap: 8px; }
.price-inputs input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 10px;
    outline: none;
    background: var(--surface-2);
}
.price-inputs input:focus { border-color: var(--brand-2); background: #fff; }
.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-2);
    margin-bottom: 8px;
    cursor: pointer;
}
.check-line input { accent-color: var(--brand); width: 15px; height: 15px; }

.listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.listing-toolbar .result-count { font-size: 12.5px; color: var(--muted); }
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-tabs a {
    font-size: 12px;
    padding: 6px 11px;
    border-radius: 8px;
    color: var(--ink-2);
}
.sort-tabs a:hover { background: var(--surface-2); }
.sort-tabs a.active { background: var(--brand); color: #fff; font-weight: 600; }

.empty-state {
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
}
.empty-state .big { font-size: 46px; margin-bottom: 10px; }
.empty-state h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 16px; }

/* ---------- صفحه ۴۰۴ ---------- */
.not-found-hero {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 44px 24px 36px;
    text-align: center;
    background:
        radial-gradient(240px 160px at 15% 20%, rgba(212, 175, 55, .14), transparent 70%),
        radial-gradient(260px 180px at 85% 10%, rgba(35, 66, 120, .10), transparent 70%),
        #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.not-found-code {
    font-size: clamp(62px, 12vw, 112px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 6px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(35, 66, 120, .28);
    margin-bottom: 6px;
    user-select: none;
}
.not-found-hero h1 { font-size: clamp(19px, 3vw, 26px); font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.not-found-hero > p { max-width: 560px; margin: 0 auto 20px; font-size: 13.5px; line-height: 2; color: var(--muted); }
.not-found-search {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 0 auto 16px;
}
.not-found-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
}
.not-found-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(35, 66, 120, .08); }
.not-found-search .btn { height: 46px; padding-inline: 22px; flex-shrink: 0; }
.not-found-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
    .not-found-hero { padding: 32px 16px 28px; }
    .not-found-search { flex-direction: column; }
    .not-found-search .btn { width: 100%; }
}

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- صفحه محصول ---------- */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 26px;
    margin-top: 22px;
    align-items: start;
}
.gallery {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}
.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: 1 / 1;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumbs button {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: var(--surface-2);
    padding: 0;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--brand); }

.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-info .crumbs { font-size: 12px; color: var(--muted); }
.product-info h1 { font-size: 24px; font-weight: 800; line-height: 1.6; }
.product-meta-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.product-meta-line .code { font-family: inherit; }
.product-meta-line .rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold); }
.product-meta-line .rating .icon { width: 15px; height: 15px; fill: var(--gold); stroke: var(--gold); }

.buy-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-block .price-new { font-size: 24px; color: var(--brand); }
.price-block .price-old { font-size: 14px; }
.price-block .save-tag {
    font-size: 11.5px;
    background: var(--accent-soft);
    color: var(--brand);
    border-radius: 99px;
    padding: 2px 10px;
    font-weight: 600;
}

.option-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.option-line > span { font-size: 12.5px; color: var(--muted); min-width: 62px; }
.color-options { display: flex; gap: 6px; flex-wrap: wrap; }
.color-options label { cursor: pointer; }
.color-options input { position: absolute; opacity: 0; pointer-events: none; }
.color-options span {
    display: inline-block;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 5px 12px;
    transition: border-color .2s, background .2s, color .2s;
}
.color-options input:checked + span { border-color: var(--brand); background: var(--accent-soft); color: var(--brand); font-weight: 600; }

.buy-actions { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.product-buy-form { flex-direction: column; align-items: stretch; }
.option-select-line { justify-content: space-between; }
.option-select-line label { font-size: 12.5px; color: var(--muted); min-width: 100px; }
.option-select-line select {
    flex: 1; min-width: 150px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; font-family: inherit; font-size: 13px;
}
.buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 170px; }
.variant-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 4px; }
.variant-tags span {
    font-size: 11px; padding: 2px 8px; border-radius: 99px;
    background: var(--accent-soft); color: var(--brand);
}
.variant-inline { display: block; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden;
    background: var(--surface-2);
}
.qty-box button {
    width: 38px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--ink-2);
    display: grid;
    place-items: center;
}
.qty-box button:hover { color: var(--brand); }
.qty-box input {
    width: 46px;
    height: 44px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    outline: none;
}
.buy-actions .btn { flex: 1; min-width: 170px; }
.buy-note {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
    font-size: 11.5px;
    color: var(--muted);
}
.buy-note span { display: inline-flex; align-items: center; gap: 5px; }
.buy-note .icon { width: 15px; height: 15px; color: var(--ok); }

.product-extra {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-top: 22px;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab-btn {
    border: 0;
    background: transparent;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab-btn.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; font-size: 13.5px; color: var(--ink-2); line-height: 2.1; }
.tab-panel.is-active { display: block; animation: fadeIn .25s ease; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 10px 6px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.specs td:first-child { color: var(--muted); width: 160px; }

/* ---------- سبد خرید ---------- */

.cart-layout, .checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}
.panel-title small { font-size: 11.5px; color: var(--muted); font-weight: 400; }

.cart-list { display: grid; gap: 12px; }
.cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
}
.cart-item-img {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface-2);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cart-item-body h3 { font-size: 13.5px; font-weight: 600; }
.cart-item-body h3 a:hover { color: var(--brand); }
.cart-item-body .unit { font-size: 11.5px; color: var(--muted); }
.cart-item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-side .line-total { font-size: 14px; font-weight: 800; }
.remove-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--danger);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
}
.remove-btn:hover { background: #fdecee; border-color: #f5c6cc; }
.remove-btn .icon { width: 16px; height: 16px; }

.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.cart-qty button { width: 30px; height: 32px; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.cart-qty button:hover { color: var(--brand); }
.cart-qty input { width: 40px; height: 32px; border: 0; text-align: center; font-weight: 700; font-size: 13px; outline: none; }

.summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 148px;
    box-shadow: var(--shadow-sm);
}
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding-block: 7px;
    color: var(--ink-2);
}
.summary-row.discount { color: var(--ok); }
.summary-row.total {
    border-top: 1px dashed var(--line);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}
.coupon-form { display: flex; gap: 6px; margin-top: 10px; }
.coupon-form input {
    flex: 1;
    min-width: 0;
    border: 1px dashed rgba(var(--brand-rgb), .22);
    background: var(--surface-2);
    border-radius: 9px;
    padding: 9px 11px;
    outline: none;
    font-size: 12.5px;
}
.coupon-form input:focus { border-color: var(--brand-2); background: #fff; }
.coupon-form button {
    border: 0;
    border-radius: 9px;
    padding: 0 14px;
    background: var(--accent-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: 12.5px;
}
.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #e8f8f0;
    border: 1px dashed #b9ebd2;
    color: #14764b;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 12px;
    margin-top: 10px;
}
.coupon-applied a { color: var(--danger); font-weight: 700; }
.free-ship-hint {
    font-size: 11.5px;
    background: var(--surface-2);
    border-radius: 9px;
    padding: 8px 11px;
    color: var(--muted);
    margin-top: 10px;
}
.free-ship-hint b { color: var(--brand); }

/* ---------- فرم‌ها ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    color: var(--ink);
    transition: border-color .2s, background .2s, box-shadow .2s;
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .09);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size: 11px; color: var(--muted); }
.field .error { font-size: 11.5px; color: var(--danger); }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--accent-soft); }
.radio-card input { accent-color: var(--brand); }
.radio-card b { font-size: 13px; display: block; }
.radio-card small { font-size: 11.5px; color: var(--muted); }

/* ---------- احراز هویت ---------- */

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 26px;
    box-shadow: var(--shadow-sm);
    min-height: 520px;
}
.auth-side {
    padding: 40px 34px;
    background:
        radial-gradient(90% 120% at 90% 0%, rgba(var(--accent-rgb), .5), transparent 60%),
        linear-gradient(150deg, var(--brand-dark), var(--brand) 80%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.auth-side h2 { font-size: 26px; font-weight: 800; line-height: 1.5; }
.auth-side p { font-size: 13px; color: rgba(255, 255, 255, .8); }
.auth-side ul { display: grid; gap: 10px; margin-top: 8px; }
.auth-side li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.auth-side li .icon { width: 18px; height: 18px; color: var(--accent-soft); }
.auth-form { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 22px; margin-bottom: 6px; }
.auth-form > p { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.auth-form form { display: grid; gap: 14px; }
.auth-alt { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.auth-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0; color: var(--muted); font-size: 12px;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-note { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.auth-card {
    max-width: 430px; margin: 30px auto; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 30px 28px;
}
.auth-head h1 { font-size: 21px; margin-bottom: 6px; }
.auth-head p { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.auth-card .auth-form { padding: 0; display: block; }

/* ---------- حساب کاربری ---------- */

.account-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}
.account-nav {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    position: sticky;
    top: 148px;
}
.account-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 14px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 10px;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}
.account-user b { font-size: 13.5px; display: block; }
.account-user small { font-size: 11px; color: var(--muted); }
.account-nav ul { display: grid; gap: 3px; }
.account-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    color: var(--ink-2);
}
.account-nav a:hover { background: var(--surface-2); }
.account-nav a.active { background: var(--accent-soft); color: var(--brand); font-weight: 700; }
.account-nav a.danger { color: var(--danger); }
.account-nav .icon { width: 17px; height: 17px; }

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-card span { font-size: 11.5px; color: var(--muted); }
.stat-card b { font-size: 18px; font-weight: 800; color: var(--brand); }

/* ---------- سفارش‌ها ---------- */

.orders-list { display: grid; gap: 12px; }
.order-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.order-card-main { display: flex; flex-direction: column; gap: 5px; }
.order-code { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.order-date { font-size: 11.5px; color: var(--muted); }
.tracking-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    margin-top: 2px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #234278;
    border: 1px solid #d7e3f8;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.8;
}
.tracking-chip:hover { background: #e2ecff; }
.tracking-chip .icon { width: 14px; height: 14px; }
.order-card-side { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-amount { font-size: 14px; font-weight: 800; }
.status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 600;
    display: inline-block;
}
.status-pending { background: #fff6e3; color: #8a5a08; }
.status-paid { background: #eaf1fd; color: #23538f; }
.status-processing { background: #f3ecfd; color: #5b2f9a; }
.status-shipped { background: #e8f4fb; color: #1c6c92; }
.status-delivered { background: #e8f8f0; color: #14764b; }
.status-canceled { background: #fdecee; color: #a52232; }

.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.detail-list { display: grid; gap: 8px; font-size: 13px; }
.detail-list div { display: flex; justify-content: space-between; gap: 10px; }
.detail-list dt, .detail-list span:first-child { color: var(--muted); }
.order-items { display: grid; gap: 8px; margin-top: 12px; }
.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12.5px;
}
.order-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.order-item .oi-title { flex: 1; }
.order-item .oi-qty { color: var(--muted); font-size: 11.5px; }
.order-item .oi-price { font-weight: 700; white-space: nowrap; }

.timeline { display: flex; gap: 0; margin: 18px 0 4px; }
.timeline-step { flex: 1; text-align: center; position: relative; font-size: 10.5px; color: var(--muted); }
.timeline-step::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
}
.timeline-step.done::before { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.timeline-step.done { color: var(--ok); font-weight: 600; }

/* ---------- درگاه پرداخت ---------- */

.gateway-wrap { max-width: 560px; margin: 30px auto; }
.gateway-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gateway-head {
    background: linear-gradient(135deg, #1d3f6e, #2f6fd0);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gateway-head b { font-size: 16px; }
.gateway-head small { font-size: 11px; opacity: .75; display: block; }
.gateway-body { padding: 24px; }
.gateway-amount {
    background: var(--surface-2);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
}
.gateway-amount b { font-size: 18px; color: var(--brand); }
.bank-card-visual {
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid) 60%, var(--brand));
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 18px;
    box-shadow: 0 12px 26px rgba(40, 20, 40, .25);
}
.bank-card-visual .chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f7d98b, #d9a93c); }
.bank-card-visual .num { font-family: monospace; font-size: 16px; letter-spacing: 3px; direction: ltr; text-align: left; }
.bank-card-visual .row { display: flex; justify-content: space-between; font-size: 10px; opacity: .8; }
.gateway-actions { display: grid; gap: 10px; margin-top: 18px; }
.gateway-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- انیمیشن ---------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- ریسپانسیو ---------- */

@media (max-width: 1080px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-search { max-width: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .hero-slider { min-height: 330px; }
}

@media (max-width: 900px) {
    .topbar-links a:not(:last-child) { display: none; }
    .header-main { gap: 12px; flex-wrap: wrap; }
    .menu-toggle { display: inline-flex; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .brand-text small { display: none; }
    .head-action-text { display: none; }
    .head-action { padding: 4px; }
    .header-actions { gap: 4px; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        background: #fff;
        z-index: 120;
        transform: translateX(105%);
        transition: transform .3s ease;
        overflow-y: auto;
        border-left: 1px solid var(--line);
        padding: 18px 16px;
        display: block;
    }
    body.menu-open .main-nav { transform: translateX(0); }
    body.menu-open { overflow: hidden; }
    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(30, 20, 30, .45);
        z-index: 110;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s;
    }
    body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
    .nav-inner { display: block; }
    .nav-close { display: inline-flex; margin-bottom: 14px; }
    .nav-list { display: block; }
    .nav-list > li > a { display: flex; justify-content: space-between; padding: 11px 8px; font-size: 14px; border-radius: 9px; }
    .nav-list > li + li { border-top: 1px solid var(--line); }
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 8px;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }
    .submenu a { font-size: 12px; padding: 6px 8px; color: var(--muted); }
    .nav-list .chev { display: none; }

    .listing-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .filter-list { max-height: none; }

    .product-layout { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-form { padding: 30px 22px; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 24px); }
    .topbar-note { font-size: 11px; }
    .hero-slide { grid-template-columns: 1fr; padding: 26px 22px; }
    .hero-art { display: none; }
    .hero-dots { right: 22px; }
    .hero-side { grid-template-columns: 1fr; }
    .hero-slider { min-height: 300px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-title { min-height: 42px; font-size: 12.5px; }
    .product-body { padding: 10px 11px 13px; }
    .product-price { gap: 5px; }
    .price-new { font-size: 13.5px; }
    .card-add { opacity: 1; transform: none; inset-inline: 8px; bottom: 8px; }
    .card-add-btn { font-size: 11px; padding: 7px; }
    .section { margin-top: 32px; }
    .section-title { font-size: 17px; }
    .promo-banner { padding: 22px; }
    .countdown div { min-width: 48px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature { padding: 12px; gap: 8px; }
    .feature .icon { width: 26px; height: 26px; }
    .feature span { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 30px 20px; }
    .footer-features { padding-block: 14px; }
    .footer-shell { padding-block: 16px 0; }
    .footer-box { border-radius: 16px; }
    .footer-grid { padding: 26px 18px 18px; }
    .footer-bottom { padding: 14px 4px 16px; font-size: 11px; }
    .pay-badge img { max-height: 26px; max-width: 76px; }
    .footer-enamad img { max-height: 64px; }
    .cart-item { grid-template-columns: 70px minmax(0, 1fr); }
    .cart-item-img { width: 70px; height: 70px; }
    .cart-item-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .form-grid { grid-template-columns: 1fr; }
    .buy-actions .btn { min-width: 0; }
    .page-hero { padding: 20px; }
    .page-hero h1 { font-size: 19px; }
    .gallery-thumbs button { width: 56px; height: 56px; }
    .product-info h1 { font-size: 19px; }
    .price-block .price-new { font-size: 20px; }
    .order-card { align-items: flex-start; }
    .toast-wrap { right: 12px; left: 12px; bottom: 12px; }
    .toast { max-width: none; }
}

@media (hover: none) {
    .card-add { opacity: 1; transform: none; }
}

/* =========================================================
   اسلایدر صفحه اصلی، علاقه‌مندی، نظرات، بنر و خرید بعدی
   ========================================================= */

/* ---------- اسلایدر هیرو ---------- */
.hero-carousel {
    position: relative;
    margin: 20px 0 0;
    max-width: none;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--brand-deep);
    box-shadow: var(--shadow);
}
.hc-track {
    position: relative;
    min-height: 360px;
    aspect-ratio: 1180 / 360;
}
.hc-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease;
    background: var(--brand-deep);
}
.hc-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.hc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.hc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg, rgba(30, 20, 35, .78) 0%, rgba(30, 20, 35, .35) 55%, rgba(30, 20, 35, 0) 100%);
}
.hc-content {
    position: relative;
    z-index: 2;
    max-width: 55%;
    padding: 44px 52px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(20, 10, 25, .35);
}
.hc-content h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.5;
    margin: 6px 0 10px;
}
.hc-content p {
    font-size: 14px;
    line-height: 2;
    opacity: .92;
    margin-bottom: 18px;
    max-width: 440px;
}
.hc-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
}
.hc-cta { margin-top: 4px; }
.hc-cta .icon { width: 16px; height: 16px; }

.hc-fallback {
    background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-2) 100%);
}
.hc-fallback.alt {
    background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-mid) 55%, var(--brand) 100%);
}
.hc-fallback .hc-overlay { display: none; }
.hc-fallback-art {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 2px dashed rgba(255, 255, 255, .35);
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
}
.hc-fallback-art span { font-size: 54px; line-height: 1; color: #ffd166; }
.hc-fallback-art b { font-size: 17px; letter-spacing: 1px; }

.hc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(30, 15, 35, .25);
    transition: background .2s ease, transform .2s ease;
}
.hc-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hc-arrow .icon { width: 18px; height: 18px; }
.hc-next { left: 16px; }
.hc-next .icon { transform: rotate(180deg); }
.hc-prev { right: 16px; }

.hc-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 7px;
}
.hc-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 99px;
    border: 0;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}
.hc-dots button.is-active { width: 24px; background: #fff; }

/* ---------- علاقه‌مندی ---------- */
.fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #8b7a88;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 20, 45, .16);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.fav-btn:hover { transform: scale(1.08); color: var(--accent); }
.fav-btn .icon { width: 17px; height: 17px; }
.fav-btn.is-on { background: var(--accent); color: #fff; }
.fav-btn.is-on .icon { fill: currentColor; }
.fav-btn.is-busy { opacity: .55; pointer-events: none; }

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.product-title-row h1 { margin: 0; }
.fav-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 99px;
    padding: 7px 13px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
    flex-shrink: 0;
}
.fav-inline .icon { width: 16px; height: 16px; }
.fav-inline:hover { color: var(--accent); border-color: #f0c4da; }
.fav-inline.is-on { background: #fdeef4; border-color: #f3c1d7; color: var(--accent); }
.fav-inline.is-on .icon { fill: currentColor; }

.later-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    border: 0;
    background: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    padding: 4px 0;
    transition: color .2s ease;
}
.later-inline .icon { width: 16px; height: 16px; }
.later-inline:hover, .later-inline.is-on { color: var(--brand); }

/* ---------- ستاره‌ها و موجودی تنوع ---------- */
.stars { display: inline-flex; gap: 2px; color: #f5b301; vertical-align: middle; }
.stars .icon { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.stars .icon.is-on { fill: currentColor; }

.variant-availability {
    margin: 12px 0 14px;
    padding: 12px 14px;
    border: 1px dashed #e6d6e4;
    border-radius: 14px;
    background: #fcf8fb;
}
.va-title { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.variant-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.variant-chip {
    font-size: 11.5px;
    padding: 5px 11px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}
.variant-chip.is-out { color: #b9adb6; text-decoration: line-through; background: #faf7fa; }

/* ---------- بنرها ---------- */
.banner-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 26px auto 0;
    max-width: 920px;
}
.banner-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease;
}
.banner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.banner-row > :only-child { width: 100%; max-width: 760px; justify-self: center; }
.banner-row > :only-child img { height: 210px; }
.banner-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.banner-copy {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px 14px 12px;
    background: linear-gradient(to top, rgba(20, 10, 25, .7), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.banner-copy b { font-size: 14px; }
.banner-copy small { font-size: 11.5px; opacity: .9; }

/* ---------- نظرات و امتیاز ---------- */
.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.rating-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 14px;
}
.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 16px;
    background: #fdf2f8;
    color: var(--brand);
    flex-shrink: 0;
}
.rating-score b { font-size: 28px; line-height: 1.1; }
.rating-score span { font-size: 10.5px; color: var(--muted); }
.review-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
}
.review-head { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}
.review-head b { font-size: 13px; }
.review-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-top: 2px; }
.review-badge {
    margin-inline-start: auto;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    background: #e8f8f0;
    color: #14764b;
    flex-shrink: 0;
}
.review-text { margin-top: 10px; font-size: 13px; line-height: 2; color: #4a4048; }
.review-empty {
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
    background: #fcfafc;
}
.review-form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    position: sticky;
    top: 92px;
}
.review-form-card h3 { font-size: 15px; margin-bottom: 12px; }
.review-form-card .field { margin-bottom: 10px; }
.rating-picker { display: flex; gap: 3px; }
.star-btn {
    border: 0;
    background: none;
    padding: 2px;
    color: #ded4dc;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}
.star-btn .icon { width: 26px; height: 26px; stroke: currentColor; fill: none; }
.star-btn.is-on { color: #f5b301; }
.star-btn.is-on .icon { fill: currentColor; }
.star-btn:hover { transform: scale(1.12); }

/* ---------- خرید بعدی ---------- */
.later-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.later-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.later-item:last-child { border-bottom: 0; }
.later-img img { width: 94px; height: 94px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.later-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.later-body h3 { font-size: 13.5px; font-weight: 700; }
.later-qty { font-size: 11.5px; color: var(--muted); }
.later-price .price-new { font-size: 15px; }
.later-actions { display: flex; flex-direction: column; gap: 7px; }
.later-actions .btn { white-space: nowrap; }

.later-form { margin: 0; }
.later-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 11.5px;
    cursor: pointer;
    padding: 0;
    transition: color .2s ease;
}
.later-btn .icon { width: 14px; height: 14px; }
.later-btn:hover { color: var(--brand); }

@media (max-width: 1100px) {
    .reviews-layout { grid-template-columns: minmax(0, 1fr); }
    .review-form-card { position: static; }
    .later-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .hc-track { min-height: 230px; aspect-ratio: 16 / 9; }
    .hc-content { max-width: 74%; padding: 22px; }
    .hc-content h2 { font-size: 21px; }
    .hc-content p { font-size: 12px; margin-bottom: 12px; }
    .hc-kicker { font-size: 10.5px; }
    .hc-arrow { width: 34px; height: 34px; }
    .hc-next { left: 8px; }
    .hc-prev { right: 8px; }
    .hc-fallback-art { width: 120px; height: 120px; left: 4%; }
    .hc-fallback-art span { font-size: 30px; }
    .hc-fallback-art b { font-size: 12px; }
    .hc-fallback .hc-content { max-width: 62%; }
    .banner-card img { height: 120px; }
}

@media (max-width: 640px) {
    .hc-track { min-height: 200px; aspect-ratio: 4 / 3; }
    .hc-content { max-width: 100%; padding: 18px; }
    .hc-content h2 { font-size: 18px; }
    .hc-content p { display: none; }
    .hc-fallback-art { display: none; }
    .product-title-row { gap: 8px; }
    .fav-inline span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .later-item { grid-template-columns: 74px minmax(0, 1fr); }
    .later-img img { width: 74px; height: 74px; }
    .later-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .later-actions form { flex: 1; }
    .later-actions .btn { width: 100%; }
    .review-form-card { padding: 15px; }
    .rating-summary { gap: 12px; padding: 13px; }
}


/* =========================================================
   مجله، محتواي سئو، تماس و سوالات متداول
   ========================================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-date { font-size: 11px; color: var(--muted); }
.blog-body h2 { font-size: 15px; line-height: 1.8; font-weight: 700; }
.blog-body h2 a:hover { color: var(--brand); }
.blog-body p { font-size: 12.5px; line-height: 2; color: #5a4f58; }
.blog-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
}
.blog-more .icon { width: 14px; height: 14px; }

.article-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
    margin-top: 22px;
}
.article-main {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}
.article-cover {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    margin-bottom: 16px;
}
.article-lead {
    font-size: 14px;
    line-height: 2.1;
    color: #4a4048;
    background: #fcf8fb;
    border-inline-start: 3px solid var(--brand);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.article-content { font-size: 13.5px; line-height: 2.2; color: #443b42; }
.article-content h2,
.article-content h3,
.page-content h2,
.page-content h3 { color: var(--ink); line-height: 1.7; margin: 26px 0 10px; scroll-margin-top: 90px; }
.article-content h2,
.page-content h2 { font-size: 19px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.article-content h3,
.page-content h3 { font-size: 16px; }
.article-content p,
.page-content p { margin: 0 0 12px; }
.article-content ul,
.article-content ol,
.page-content ul,
.page-content ol { margin: 0 0 14px; padding-inline-start: 22px; }
.article-content li,
.page-content li { margin-bottom: 6px; }
.article-content a,
.page-content a { color: var(--brand); font-weight: 600; }
.article-content img,
.page-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 10px 0; }
.article-content blockquote,
.page-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #fcf8fb;
    border-inline-start: 3px solid var(--brand);
    border-radius: 10px;
    color: #5a4b55;
}
.article-toc {
    background: #fbf7fa;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 0 0 18px;
}
.article-toc b { display: block; font-size: 12.5px; margin-bottom: 8px; color: var(--brand); }
.article-toc ol { margin: 0; padding-inline-start: 18px; display: grid; gap: 5px; }
.article-toc li { font-size: 12px; line-height: 1.9; }
.article-toc .toc-level-3 { margin-inline-start: 12px; list-style: circle; }
.article-toc a { color: #5a4b55; }
.article-toc a:hover { color: var(--brand); }
.page-content { font-size: 13.5px; line-height: 2.2; color: #443b42; }
.page-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
.article-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-post-list { display: flex; flex-direction: column; gap: 12px; }
.side-post-list a { display: flex; gap: 10px; align-items: center; }
.side-post-list img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.side-post-list b { display: block; font-size: 12.5px; line-height: 1.8; }
.side-post-list small { font-size: 10.5px; color: var(--muted); }

.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    margin-top: 22px;
}
.content-card h2 { font-size: 18px; margin-bottom: 12px; }
.content-card p { font-size: 13.5px; line-height: 2.2; color: #4a4048; margin-bottom: 12px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card a { color: var(--brand); font-weight: 600; }

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}
.value-ico { font-size: 30px; display: block; margin-bottom: 8px; }
.value-card h3 { font-size: 14px; margin-bottom: 6px; }
.value-card p { font-size: 12px; line-height: 1.9; color: var(--muted); }

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
    margin-top: 22px;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.contact-form .field { margin-bottom: 12px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.contact-list .icon { width: 17px; height: 17px; color: var(--brand); flex-shrink: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fcfafc;
    padding: 0 16px;
}
.faq-item summary {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    padding: 14px 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '?'; }
.faq-item p { font-size: 12.5px; line-height: 2.1; color: #4a4048; padding: 0 0 15px; margin: 0; }

@media (max-width: 1000px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-wrap { grid-template-columns: minmax(0, 1fr); }
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .blog-grid { grid-template-columns: minmax(0, 1fr); }
    .blog-thumb img { height: 160px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .article-main { padding: 15px; }
    .content-card { padding: 16px; }
}

/* =========================================================
   جستجوی هوشمند
   ========================================================= */
.header-search { position: relative; }

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 220;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(41, 20, 37, .18);
    padding: 8px;
    max-height: min(70vh, 520px);
    overflow: auto;
    animation: ss-in .16s ease;
}
@keyframes ss-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-suggest[hidden] { display: none; }

.ss-head {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .2px;
    padding: 8px 10px 5px;
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 11px;
    color: var(--ink);
    transition: background .15s ease;
}
.ss-item:hover,
.ss-item.is-active { background: var(--accent-soft); }

.ss-thumb {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--surface-2);
    flex: 0 0 auto;
}
.ss-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.ss-body b {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ss-body small { font-size: 10.5px; color: var(--muted); }
.ss-price {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    flex: 0 0 auto;
}

.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 8px 10px; }
.ss-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--ink-2);
    background: #fff;
}
.ss-chip:hover,
.ss-chip.is-active { border-color: var(--brand); color: var(--brand); background: var(--accent-soft); }

.ss-post .ss-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    font-size: 13px;
    flex: 0 0 auto;
}
.ss-post b { font-size: 12.5px; font-weight: 600; }

.ss-all {
    display: block;
    margin-top: 4px;
    padding: 10px;
    border-top: 1px dashed var(--line);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    border-radius: 0 0 10px 10px;
}
.ss-all:hover { background: var(--accent-soft); }

.ss-empty {
    padding: 20px 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.header-search.is-loading { border-color: var(--brand-2); }

/* =========================================================
   فیلترهای پیشرفته محصولات
   ========================================================= */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
    font-size: 12px;
    color: var(--ink-2);
    transition: border-color .15s, background .15s, color .15s;
}
.filter-chips .chip:hover { border-color: var(--brand-2); background: #fff; color: var(--brand); }
.filter-chips .chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
}
.filter-chips .chip small { font-size: 10px; color: var(--muted); }
.filter-chips .chip.active small { color: rgba(255, 255, 255, .8); }
.chip .swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--sw, #d9d4cf);
    box-shadow: inset 0 0 0 1px rgba(30, 20, 25, .18);
    flex: 0 0 auto;
}

.filters-toggle { display: none; }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: -4px 0 14px;
}
.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 11.5px;
    color: var(--ink-2);
}
.active-chip:hover { border-color: var(--brand); color: var(--brand); }
.active-chip .icon { width: 11px; height: 11px; opacity: .65; }
.active-clear {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand);
    padding: 5px 6px;
}

@media (max-width: 900px) {
    .filters-toggle { display: inline-flex; }
    .filters { display: none; position: static; }
    .filters.is-open { display: block; animation: ss-in .18s ease; }
    .filters.is-open .filter-list { max-height: 240px; }
    .listing-toolbar { justify-content: flex-start; }
    .listing-toolbar .sort-tabs { margin-inline-start: auto; }
}

@media (max-width: 560px) {
    .search-suggest { max-height: 62vh; }
    .ss-thumb { width: 36px; height: 36px; }
    .ss-body b { font-size: 12px; }
    .ss-price { font-size: 10.5px; }
    .listing-toolbar { gap: 8px; }
    .listing-toolbar .sort-tabs { width: 100%; margin-inline-start: 0; }
}

/* ---------- نوار پیشرفت ارسال رایگان ---------- */

.free-ship-progress {
    margin-top: 10px;
    background: var(--surface-2);
    border-radius: 10px;
    padding: 10px 12px 11px;
}

.fsp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 8px;
}

.fsp-head b { color: var(--brand); }

.fsp-bar {
    height: 7px;
    border-radius: 99px;
    background: rgba(60, 30, 60, .08);
    overflow: hidden;
}

.fsp-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    transition: width .3s ease;
}

/* ---------- نوار خرید چسبان موبایل ---------- */

.buy-sticky { display: none; }

@media (max-width: 860px) {
    .page-product:has(.buy-sticky) { padding-bottom: 86px; }

    .buy-sticky {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 65;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 26px rgba(45, 20, 40, .10);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform .24s ease, visibility .24s;
    }

    .buy-sticky.is-visible {
        transform: translateY(0);
        visibility: visible;
    }

    .buy-sticky-info {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
    }

    .buy-sticky-info img {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        object-fit: cover;
        background: var(--surface-2);
        flex: 0 0 auto;
    }

    .buy-sticky-info b {
        display: block;
        font-size: 12px;
        font-weight: 700;
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .buy-sticky-price {
        font-size: 12.5px;
        font-weight: 800;
        color: var(--brand);
    }

    .buy-sticky .btn {
        flex: 0 0 auto;
        padding: 10px 14px;
        font-size: 12.5px;
        border-radius: 11px;
    }
}

/* ---------- کیف پول و معرفی دوستان ---------- */

.wallet-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.wallet-option input {
    margin-top: 3px;
    accent-color: var(--brand);
}

.wallet-option b {
    display: block;
    font-size: 13px;
}

.wallet-option small {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.9;
}

.summary-row.wallet-row span:last-child {
    color: var(--ok);
    font-weight: 700;
}

.wallet-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border-radius: 16px;
    padding: 18px 20px;
}

.wallet-balance-card small {
    display: block;
    opacity: .85;
    font-size: 11.5px;
    margin-bottom: 4px;
}

.wallet-balance-card b {
    font-size: 24px;
    font-weight: 800;
}

.wallet-balance-card .btn {
    background: #fff;
    color: var(--brand);
    border: 0;
}

.wallet-tx-table td,
.wallet-tx-table th {
    font-size: 12px;
}

.referral-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.referral-box input {
    flex: 1 1 220px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 12px;
    background: var(--surface-2);
    direction: ltr;
}

/* ---------- پیشنهاد ست کردن محصول ---------- */

.pairing-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--surface-2);
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 16px;
}

.pairing-strip .pairing-title {
    font-size: 12.5px;
    font-weight: 700;
}

.pairing-strip .pairing-note {
    font-size: 11.5px;
    color: var(--muted);
}

/* ---------- راهنمای سایز ---------- */

.size-helper {
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.size-helper .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.size-helper .field label {
    display: block;
    font-size: 11.5px;
    margin-bottom: 5px;
    color: var(--muted);
}

.size-helper input,
.size-helper select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 12.5px;
    background: #fff;
}

.size-helper-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.size-helper-result {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.9;
}

.size-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font-size: 11.5px;
    color: var(--muted);
}

.size-feedback[hidden],
.size-actual-wrap[hidden] {
    display: none;
}

.size-actual-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.size-actual-wrap select {
    width: auto;
    min-width: 110px;
}

@media (max-width: 700px) {
    .size-helper .form-row { grid-template-columns: 1fr; }
}

/* Mobile side padding for inner pages (keeps card corners visible) */
@media (max-width: 640px) {
    body:not(.page-home) .site-main { padding-inline: 12px; }
}
