/* =====================================================================
   پاکنیوا — استایل فروشگاه (تم «روز و مرجانی»، مدل لاجوردی)
   ===================================================================== */

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Changa";
    src: url("../fonts/Changa-Variable.ttf") format("truetype-variations"), url("../fonts/Changa-Variable.ttf") format("truetype");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --ground: #E1E7FF;
    --blue: #1E47FF;
    --blue-2: #7C9BFF;
    --blue-soft: #EAF0FF;
    --coral: #FF5C7A;
    --coral-ink: #1A0710;      /* متن روی مرجانی */
    --coral-text: #C42A4A;     /* متن مرجانی روی سفید */
    --coral-soft: #FFE8ED;
    --navy: #121A3F;
    --ink-2: #343D66;
    --muted: #535D87;
    --faint: #7A83AA;
    --line: #E2E6F8;
    --line-2: #D5DCF7;
    --white: #FFFFFF;
    --green: #127A4B;
    --green-soft: #DFF7EA;
    --shadow-sm: 0 12px 28px rgba(30, 45, 120, .06);
    --shadow: 0 14px 32px rgba(30, 45, 120, .08);
    --shadow-lg: 0 20px 44px rgba(30, 45, 120, .14);
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 26px;
    --r-xl: 34px;
    --display: "Changa", "Vazirmatn", Tahoma, sans-serif;
    --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--navy);
    background: var(--ground);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ic { flex: none; display: block; }
.coral { color: var(--coral); }
.red { color: var(--coral-text); }
.white { color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.wrap { width: 100%; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.section { padding-top: 60px; }
.section-tight { padding-top: 28px; }
main { position: relative; z-index: 1; padding-bottom: 72px; }

/* هاله‌های رنگی پس‌زمینه */
.page-bg { position: absolute; inset: 0 0 auto 0; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; }
.blob.b1 { top: -430px; right: -350px; width: 1100px; height: 1100px; background: radial-gradient(circle, rgba(127, 155, 255, .65) 0%, rgba(127, 155, 255, 0) 70%); }
.blob.b2 { top: 710px; left: -410px; width: 1000px; height: 1000px; background: radial-gradient(circle, rgba(255, 154, 176, .55) 0%, rgba(255, 154, 176, 0) 70%); }
.blob.b3 { top: 1800px; right: -400px; width: 1000px; height: 1000px; background: radial-gradient(circle, rgba(127, 224, 255, .5) 0%, rgba(127, 224, 255, 0) 70%); }
/* ---------------- نوار بالا ---------------- */
.topbar { position: relative; z-index: 3; overflow: hidden; background: linear-gradient(90deg, #121A3F 0%, #1C2C8F 50%, #121A3F 100%); color: #DCE2FF; font-size: 13px; }
.topbar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); transform: translateX(100%); animation: tb-shine 7s ease-in-out infinite; pointer-events: none; }
@keyframes tb-shine { 0%, 55% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 16px; }
.tb-items { display: flex; align-items: center; gap: 30px; }
.tb-item { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.tb-item b { color: #fff; font-weight: 700; }
.tb-ic { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.tb-ic.coral { background: linear-gradient(140deg, #FF5C7A, #FF9C86); box-shadow: 0 6px 14px rgba(255, 92, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tb-ic.blue { background: linear-gradient(140deg, #1E47FF, #7C9BFF); }
.tb-ic.violet { background: linear-gradient(140deg, #7B5CFF, #B79CFF); }
.tb-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(255, 92, 122, .2); }
.tb-bale { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 600; white-space: nowrap; transition: background .2s; }
.tb-bale:hover { background: rgba(255, 255, 255, .18); }
.tb-bale-ic { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }

/* ---------------- هدر شیشه‌ای ---------------- */
.header-wrap { position: relative; padding: 0 0 18px; z-index: 20; }
.site-header {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1.5px solid rgba(255, 255, 255, .9);
    border-radius: 0 0 30px 30px;
    padding: 16px var(--gutter);
    display: flex; flex-direction: column; gap: 14px;
    box-shadow: var(--shadow-lg);
}
.header-row { display: flex; align-items: center; gap: 22px; }
.logo img { height: 56px; width: auto; }

.search { flex: 1; display: flex; align-items: center; height: 54px; border-radius: 18px; background: #fff; border: 2px solid #C9D3FF; padding: 0 6px; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 71, 255, .13); }
.search-ic { color: var(--blue); margin: 0 10px 0 8px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; outline: none; height: 100%; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: #8890B5; }
.search-btn { height: 42px; padding: 0 22px; border: 0; border-radius: 13px; background: var(--blue); color: #fff; font-weight: 700; flex: none; }
.search-btn:hover { background: #1438D9; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--navy); flex: none; transition: transform .15s, box-shadow .15s; }
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chip-btn { height: 50px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip-btn:hover { border-color: var(--line-2); }
.avatar { width: 32px; height: 32px; border-radius: 11px; background: linear-gradient(140deg, var(--blue), #8EA6FF); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.cart-btn { position: relative; height: 50px; padding: 0 18px; border-radius: 16px; background: var(--coral); color: var(--coral-ink); display: flex; align-items: center; gap: 9px; font-weight: 800; box-shadow: 0 10px 24px rgba(255, 92, 122, .35); white-space: nowrap; transition: transform .15s; }
.cart-btn:hover { transform: translateY(-1px); }
.badge-count { background: var(--navy); color: #fff; border-radius: 99px; min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; font-size: 13px; line-height: 1; }

.nav-row { border-top: 1px solid #E3E8FB; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cat-btn { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; border: 0; }
.nav-link { padding: 9px 15px; border-radius: 12px; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-link:hover { background: var(--blue-soft); color: var(--blue); }
.nav-link.is-active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.nav-side { display: flex; gap: 8px; }
.nav-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 99px; font-weight: 800; font-size: 14px; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.nav-pill .ic { width: 20px; height: 20px; flex: none; color: #fff; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.nav-pill.track { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #3B63FF 0%, #1E47FF 55%, #2236B8 100%); box-shadow: 0 6px 16px rgba(30, 71, 255, .32); animation: nav-track-glow 3.2s ease-in-out infinite; }
.nav-pill.track::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; right: -60%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .42), transparent); transition: right .6s ease; pointer-events: none; }
.nav-pill.track:hover::after { right: 120%; }
.nav-pill.track:hover .ic { transform: translateY(-2px) rotate(-12deg) scale(1.15); }
.nav-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 71, 255, .45); animation-play-state: paused; }
.nav-pill:active { transform: translateY(0) scale(.97); }
@keyframes nav-track-glow { 0%, 100% { box-shadow: 0 6px 16px rgba(30, 71, 255, .32); } 50% { box-shadow: 0 8px 22px rgba(30, 71, 255, .5); } }

/* منوهای بازشو */
.menu { position: relative; }
.menu-pop { position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; display: flex; flex-direction: column; }
.header-actions .menu-pop { right: auto; left: 0; }
.menu-pop[hidden] { display: none; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); border: 0; background: none; width: 100%; text-align: right; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--blue-soft); color: var(--blue); }
.menu-pop form { margin: 0; }
.menu-title { padding: 8px 12px 6px; font-size: 13px; color: var(--muted); }
.cat-pop { min-width: 280px; }

/* ---------------- منوی کشویی موبایل ---------------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(18, 26, 63, .45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; border-radius: 26px 0 0 26px; animation: drawer-in .22s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head img { height: 40px; width: auto; }
.drawer-user { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.drawer-nav, .drawer-cats { display: flex; flex-direction: column; }
.drawer-nav a, .drawer-cats a { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; color: var(--ink-2); }
.drawer-nav a.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.drawer-cats a { color: var(--navy); }
.drawer-cats .ic { color: var(--blue); }
.drawer-title { font-size: 13px; color: var(--muted); padding: 4px 10px 0; }

/* ---------------- دکمه‌ها ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r); font-weight: 800; font-size: 15.5px; padding: 14px 24px; background: var(--blue); color: #fff; text-decoration: none; line-height: 1.4; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 12px 24px rgba(30, 71, 255, .28); }
.btn-coral { background: var(--coral); color: var(--coral-ink); box-shadow: 0 12px 24px rgba(255, 92, 122, .32); }
.btn-ghost, .btn.secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--line-2); box-shadow: none; }
.btn.danger { background: #FFE3EA; color: var(--coral-text); box-shadow: none; }
.btn.block, .btn-block { width: 100%; }
.btn-white { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); font-weight: 800; padding: 12px 20px; border-radius: 15px; }

/* ---------------- اسلایدر ---------------- */
.hero { position: relative; height: clamp(460px, 30.54vw, 680px); overflow: hidden; background: var(--blue); }
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero-copy { position: absolute; top: 0; bottom: 0; right: calc(var(--gutter) + 88px); width: min(480px, 44%); display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #fff; }
.hero-tag { align-self: flex-start; display: flex; gap: 6px; align-items: center; background: #fff; color: var(--coral-text); font-weight: 800; font-size: 15px; padding: 7px 16px; border-radius: 99px; transform: rotate(-2deg); box-shadow: 0 8px 20px rgba(18, 26, 63, .15); }
.hero-title { font-family: var(--display); font-weight: 800; font-size: 50px; line-height: 1.3; text-shadow: 0 6px 24px rgba(18, 26, 63, .25); }
.hero-text { font-size: 17.5px; line-height: 1.95; color: rgba(255, 255, 255, .92); max-width: 430px; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-cta { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--navy); font-weight: 800; font-size: 16px; padding: 15px 26px; border-radius: 18px; box-shadow: 0 14px 30px rgba(18, 26, 63, .22); transition: transform .15s; }
.hero-cta:hover { transform: translateY(-2px); }
.hero-note { color: #fff; font-size: 14px; opacity: .9; }
.hero-chip { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 14px 30px rgba(18, 26, 63, .22); transform: rotate(-2deg); transition: transform .2s; }
.hero-chip:hover { transform: rotate(0) translateY(-3px); }
.chip-badge { width: 38px; height: 38px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.chip-badge.is-off { background: var(--coral); color: var(--coral-ink); }
.chip-text { display: flex; flex-direction: column; line-height: 1.5; font-size: 11px; color: var(--muted); }
.chip-text strong { font-size: 13px; color: var(--navy); }
.chip-text s { color: var(--faint); font-size: 11.5px; margin-left: 4px; }
.chip-text b { font-family: var(--display); font-size: 15px; color: var(--navy); }
.hero-arrow { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--navy); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(18, 26, 63, .18); z-index: 3; transition: transform .15s; }
.hero-arrow:hover { transform: scale(1.06); }
.hero-arrow.next-side { right: 26px; }
.hero-arrow.prev-side { left: 26px; }
.hero-dots { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 30px; background: #fff; }
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; height: 40px; fill: var(--ground); z-index: 2; pointer-events: none; }

/* ---------------- مزیت‌ها ---------------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefits li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.benefits strong { display: block; font-size: 15px; }
.benefits small { font-size: 13px; color: var(--muted); }
.benefit-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.benefit-ic.blue { background: var(--blue-soft); color: var(--blue); }
.benefit-ic.coral { background: var(--coral-soft); color: var(--coral-text); }

/* ---------------- عنوان بخش‌ها ---------------- */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title h2 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.4; }
/* آیکن‌ها و حباب‌های تزئینی عمداً نمایش داده نمی‌شوند (ستاره‌ی کنار عنوان، حباب، جرقه) */
.sec-badge, .sec-spark, .sparks, .bubble, .pd-spark, .nf-spark, .pbar-spark { display: none; }
.hero-tag .ic, .promo-copy > .ic, h2 > .ic.coral, svg.ic:has(path[d^="M12 0c1 7"]) { display: none !important; }
.more { display: flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 15px; background: #fff; padding: 9px 16px; border-radius: 14px; white-space: nowrap; }
.more:hover { box-shadow: var(--shadow-sm); }

/* ---------------- دسته‌بندی‌ها ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 10px 18px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 38px rgba(30, 45, 120, .14); }
.cat-tile strong { font-size: 15px; text-align: center; line-height: 1.6; min-height: 48px; display: flex; align-items: center; }
.cat-blob { position: relative; width: 108px; height: 108px; border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; display: grid; place-items: center; }
.cat-blob img { height: 88px; width: auto; filter: drop-shadow(0 8px 10px rgba(18, 26, 63, .2)); transition: transform .25s; }
.cat-tile:hover .cat-blob img { transform: rotate(-6deg) scale(1.06); }
.cat-ic { position: absolute; bottom: -4px; right: -4px; width: 36px; height: 36px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(30, 45, 120, .15); }
.tone-blue .cat-blob { background: linear-gradient(150deg, #DDE6FF, #BFD0FF); } .tone-blue .cat-ic { color: var(--blue); }
.tone-coral .cat-blob { background: linear-gradient(150deg, #FFE0E7, #FFC2CF); } .tone-coral .cat-ic { color: var(--coral-text); }
.tone-sky .cat-blob { background: linear-gradient(150deg, #D9F4FF, #B4E6FF); } .tone-sky .cat-ic { color: #0B6E99; }
.tone-violet .cat-blob { background: linear-gradient(150deg, #EDE3FF, #D6C5FF); } .tone-violet .cat-ic { color: #5B3CC4; }

/* ---------------- کارت محصول ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(30, 45, 120, .12); }
.pcard-media { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; background: #fff; overflow: hidden; display: block; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-off { position: absolute; top: 12px; right: 12px; background: var(--coral); color: var(--coral-ink); font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 99px; }
.pcard-out { position: absolute; inset: 0; background: rgba(245, 246, 255, .72); display: grid; place-items: center; font-weight: 700; }
.pcard-fav { position: absolute; top: 22px; left: 22px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--coral-text); display: grid; place-items: center; }
.pcard-fav:hover { background: var(--coral-soft); }
.pcard-body { padding: 0 4px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-meta { font-size: 12.5px; color: var(--blue); font-weight: 500; }
.pcard-title { font-size: 15px; line-height: 1.75; font-weight: 500; height: 52px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-title a:hover { color: var(--blue); }
.pcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; }
.price-block { display: flex; flex-direction: column; gap: 2px; }
.old { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.old.is-empty { visibility: hidden; }
.price { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.4; white-space: nowrap; }
.toman { font-size: 12px; font-weight: 400; color: var(--muted); font-family: "Vazirmatn", sans-serif; }
.pcard-add { width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(30, 71, 255, .28); flex: none; transition: transform .15s; }
.pcard-add:hover { transform: scale(1.07); }

/* ---------------- پرفروش‌ترین‌ها (نوار آبی، متفاوت با «تازه‌ها») ---------------- */
.bs-band { margin-top: 60px; padding: 38px 0 44px; position: relative; overflow: hidden; background: linear-gradient(165deg, #D3DFFF 0%, #B5C8FF 100%); }
.bs-band::before { content: ""; position: absolute; top: -220px; left: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 92, 122, .28), rgba(255, 92, 122, 0) 70%); pointer-events: none; }
.bs-head { margin-bottom: 30px; position: relative; }
.bs-eyebrow { display: inline-block; margin-bottom: 6px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .65); color: var(--blue); font-size: 13px; font-weight: 700; }
.bs-head h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.4; color: var(--navy); }
.bs-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; counter-reset: bs; position: relative; }
.bs-grid .pcard { counter-increment: bs; margin-top: 12px; border-color: #fff; box-shadow: 0 10px 24px rgba(30, 45, 120, .10); }
.bs-grid .pcard::before { content: counter(bs, persian); position: absolute; top: -12px; right: 14px; z-index: 3; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #FF5C7A, #FF8FA3); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: 0 8px 18px rgba(255, 92, 122, .45); }
.bs-grid .pcard:nth-child(1)::before { background: linear-gradient(140deg, #FFB800, #FFDD66); color: #5A3B00; box-shadow: 0 8px 18px rgba(255, 184, 0, .5); }
@media (max-width: 1100px) { .bs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .bs-band { margin-top: 34px; padding: 26px 0 30px; }
    .bs-head { margin-bottom: 22px; }
    .bs-head h2 { font-size: 23px; }
    .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------------- نوار تخفیف‌ها ---------------- */
.offers { margin-top: 64px; position: relative; }
.wave { display: block; width: 100%; height: 48px; fill: var(--coral); margin-bottom: -1px; }
.wave.flip { transform: scaleY(-1); margin: -1px 0 0; }
.offers-band { background: var(--coral); padding: 26px 0 34px; position: relative; overflow: hidden; }
/* (قاعده‌ی .bubble حذف شد: بالا در «عنوان بخش‌ها» مخفی می‌شود) */
.offers-in { display: flex; gap: 18px; align-items: stretch; }
.offers-intro { flex: none; width: 230px; display: flex; flex-direction: column; justify-content: center; gap: 14px; color: var(--coral-ink); padding: 0 6px; }
.offers-intro h2 { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.35; }
.offers-intro p { font-size: 15px; line-height: 1.9; }
.offers-art { width: 150px; transform: rotate(-8deg); filter: drop-shadow(0 14px 18px rgba(18, 26, 63, .3)); }
.offers-list { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; min-width: 0; }

/* ---------------- بنرها ---------------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { position: relative; aspect-ratio: 5 / 2; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 18px 36px rgba(30, 45, 120, .14); display: block; }
.promo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; transition: transform .4s; }
.promo:hover img { transform: scale(1.04); }
.promo-copy { position: absolute; top: 0; bottom: 0; right: 40px; display: flex; flex-direction: column; justify-content: center; gap: 10px; color: #fff; }
.promo-copy strong { font-family: var(--display); font-size: 31px; font-weight: 800; line-height: 1.4; }
.promo-btn { align-self: flex-start; background: #fff; color: var(--navy); font-weight: 800; padding: 11px 20px; border-radius: 14px; font-size: 14px; }
.promo.dark-text .promo-copy { color: var(--navy); }
.promo.dark-text .promo-btn { background: var(--navy); color: #fff; }

/* ---------------- بله ---------------- */
.bale-cta, .steps { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; }
.glow.coral { top: -240px; left: -160px; background: radial-gradient(circle, rgba(255, 92, 122, .42) 0%, rgba(255, 92, 122, 0) 70%); }
.glow.blue { bottom: -280px; right: calc(25% - 110px); background: radial-gradient(circle, rgba(30, 71, 255, .58) 0%, rgba(30, 71, 255, 0) 70%); }
.bale-cta { background: var(--navy); padding: 44px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; }
.bale-main { position: relative; display: flex; align-items: center; gap: 24px; }
.bale-ic { width: 84px; height: 84px; border-radius: 26px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); flex: none; }
.bale-cta h2 { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.5; }
.bale-cta p { color: #C9D1F5; font-size: 16px; line-height: 1.9; margin-top: 6px; }
.bale-cta .btn { position: relative; flex: none; padding: 16px 30px; }

/* ---------------- سه قدم ---------------- */
.steps { color: var(--navy); padding: 38px calc(50vw - 50%) 40px; margin-inline: calc(50% - 50vw); margin-block: 64px; border-radius: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(60, 100, 255, .55), transparent 46%),
        radial-gradient(circle at 88% 85%, rgba(110, 160, 255, .5), transparent 48%),
        linear-gradient(135deg, #8FAAFF 0%, #7B9AFF 55%, #90ABFF 100%); }
.steps-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; padding: 0 8px; flex-wrap: wrap; }
.steps-head h2 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 32px; }
.steps-head span { color: var(--muted); font-size: 15px; }
.steps-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-list li { position: relative; overflow: hidden; padding: 26px 28px 24px; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .9);
    background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .3));
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 16px 36px rgba(30, 60, 160, .12), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .35); }
.step-num { position: absolute; left: 24px; top: 4px; font-family: var(--display); font-weight: 800; font-size: 64px; color: rgba(30, 71, 255, .1); line-height: 1; }
.step-ic { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; box-shadow: 0 14px 28px rgba(30, 45, 120, .22), inset 0 1px 0 rgba(255, 255, 255, .4); }
.step-ic.g1 { background: linear-gradient(140deg, var(--blue), var(--blue-2)); }
.step-ic.g2 { background: linear-gradient(140deg, #7B5CFF, #B79CFF); }
.step-ic.g3 { background: linear-gradient(140deg, var(--coral), #FF9C86); }
.steps-list strong { display: block; margin-top: 20px; font-size: 21px; }
.steps-list p { margin-top: 10px; font-size: 15px; line-height: 2; color: var(--ink-2); max-width: 330px; }

/* ---------------- برندها (حباب‌های شناور) ---------------- */
.brand-row { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: 18px; padding: 14px 0 18px; }
.brand-bubble { position: relative; justify-self: center; width: 100%; max-width: 170px; aspect-ratio: 1 / 1; animation: bob 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.6s); }
.brand-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 26%, #fff 0 40%, #F3F6FF 64%, #E3E9FF 100%); box-shadow: 0 18px 34px rgba(30, 45, 120, .14), inset 0 -10px 22px rgba(30, 71, 255, .08), inset 0 6px 14px rgba(255, 255, 255, .9); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s; }
.brand-face::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; padding: 4px; background: conic-gradient(#1E47FF, #7FE0FF, #B79CFF, #FF5C7A, #FFB3C1, #7C9BFF, #1E47FF); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .75; transition: opacity .3s; }
.brand-face::after { content: ""; position: absolute; top: 11%; left: 20%; width: 26%; height: 13%; border-radius: 50%; background: rgba(255, 255, 255, .95); transform: rotate(-35deg); filter: blur(1px); pointer-events: none; }
.brand-face img { position: relative; z-index: 1; width: 66%; height: 50%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(18, 26, 63, .16)); transition: transform .35s; }
.brand-bubble:hover, .brand-bubble:focus-visible { animation-play-state: paused; }
.brand-bubble:hover .brand-face, .brand-bubble:focus-visible .brand-face { transform: translateY(-6px) scale(1.07); box-shadow: 0 26px 44px rgba(30, 45, 120, .2), inset 0 -10px 22px rgba(30, 71, 255, .1), inset 0 6px 14px #fff; }
.brand-bubble:hover .brand-face::before { opacity: 1; animation: spin 2.4s linear infinite; }
.brand-bubble:hover img { transform: scale(1.06) rotate(-4deg); }
.brand-bubble:focus-visible { outline: none; }
.brand-bubble:focus-visible .brand-face { outline: 3px solid var(--blue); outline-offset: 6px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- فوتر ---------------- */
.site-footer { position: relative; z-index: 1; background: #fff; border-top: 1px solid var(--line); }
.footer-in { padding-top: 52px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 56px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--muted); font-size: 14.5px; line-height: 2; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 13px; background: #F1F4FF; color: var(--blue); display: grid; place-items: center; }
.social a:hover { background: var(--blue); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--muted); }
.footer-col strong { color: var(--navy); font-size: 16px; }
.footer-col a, .footer-col > span { display: flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid #EDF0FB; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------------- نوار پایین موبایل ---------------- */
.tabbar { display: none; }

/* ---------------- پیام کوتاه ---------------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s, transform .2s; z-index: 80; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%); }

/* =====================================================================
   صفحه‌های فرمی موجود (ورود، ثبت‌نام، حساب، نشانی‌ها) با همان کلاس‌های قبلی
   ===================================================================== */
.page-body { padding-top: 8px; }
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; margin-bottom: 18px; border: 0; }
.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card h1, .page-body h1 { font-family: var(--display); font-size: 28px; font-weight: 800; margin: 0 0 18px; line-height: 1.5; }
label { display: block; font-weight: 600; font-size: 14px; color: #2B3463; margin: 14px 0 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=search]), select, textarea {
    width: 100%; font-size: 15px; padding: 0 16px; height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 110px; padding: 12px 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 71, 255, .13); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--blue); }
.error { color: var(--coral-text); font-size: 13px; margin-top: 6px; }
.flash { padding: 13px 18px; border-radius: var(--r); margin-bottom: 18px; font-weight: 600; }
.flash.success { background: var(--green-soft); color: #0D5E39; }
.flash.error { background: #FFE3EA; color: #A3213D; }
.muted { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; padding: 3px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pw-field { position: relative; }
.pw-field input { padding-left: 50px !important; }
.pw-toggle { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { background: var(--blue-soft); }
.hint { font-size: 13px; margin-top: 6px; color: var(--muted); line-height: 1.8; }
.hint.ok { color: var(--green); }
.hint.warn { color: var(--coral-text); }
.rules { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--faint); }
.rules li::before { content: "○ "; }
.rules li.done { color: var(--green); }
.rules li.done::before { content: "✓ "; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-top: 10px; }
.center { text-align: center; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
input::-ms-reveal, input::-ms-clear { display: none; }
.pw-field input[readonly] { background: #fff; cursor: text; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
.otp { font-size: 24px !important; letter-spacing: 10px; text-align: center; font-family: monospace; }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 8px; text-decoration: underline; }
.link-btn:disabled { color: var(--faint); cursor: default; text-decoration: none; }
.card a:not(.btn) { color: var(--blue); font-weight: 600; }
.card p { margin: 10px 0; }

/* =====================================================================
   واکنش‌گرایی
   ===================================================================== */
.only-mobile { display: none !important; }

@media (min-width: 1600px) {
    :root { --gutter: 56px; }
}

@media (max-width: 1240px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .offers-list { grid-template-columns: repeat(4, 1fr); }
    .offers-list .pcard:nth-child(n+5) { display: none; }
    .nav-link { padding: 9px 11px; }
    .hero-copy { right: 100px; }
    .tb-wide { display: none; }
}

@media (max-width: 1024px) {
    :root { --gutter: 20px; }
    .nav-row { flex-wrap: wrap; row-gap: 10px; }
    .nav-link { padding: 9px 10px; font-size: 14.5px; }
    .header-row { gap: 14px; }
    .chip-btn .ic + * { display: none; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .offers-in { flex-direction: column; }
    .offers-intro { width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .offers-art { display: none !important; }
    .offers-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
    .offers-list::-webkit-scrollbar { display: none; }
    .offers-list .pcard { display: flex !important; flex: 0 0 220px; scroll-snap-align: start; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .bale-cta { flex-direction: column; align-items: flex-start; padding: 36px; }
    .steps-list { grid-template-columns: 1fr; gap: 14px; }
    .hero-chip { display: none; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .brand-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter) 20px; scrollbar-width: none; }
    .brand-row::-webkit-scrollbar { display: none; }
    .brand-bubble { flex: 0 0 120px; scroll-snap-align: start; }
}

@media (max-width: 720px) {
    :root { --gutter: 16px; }
    body { font-size: 14.5px; }
    main { padding-bottom: 110px; }
    .only-mobile { display: grid !important; }
    .only-desktop { display: none !important; }
    .topbar { display: none; }
    .header-wrap { padding: 0 0 12px; }
    .site-header { border-radius: 0 0 24px 24px; padding: 11px var(--gutter); gap: 10px; }
    .header-row { flex-wrap: wrap; gap: 10px; justify-content: space-between; }
    .logo { order: 2; }
    .logo img { height: 40px; }
    .header-actions { order: 3; }
    .icon-btn { width: 44px; height: 44px; border-radius: 14px; }
    .cart-btn { width: 44px; height: 44px; padding: 0; border-radius: 14px; justify-content: center; }
    .cart-btn .badge-count { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; font-size: 11.5px; }
    .search { order: 4; flex-basis: 100%; height: 46px; border-radius: 15px; border-width: 1.5px; }
    .search-btn { display: none; }
    .search input { font-size: 14px; }

    .hero { height: 300px; }
    .hero-img { object-position: 22% 50%; }
    .hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 26, 63, .35), rgba(18, 26, 63, 0) 70%); pointer-events: none; }
    .hero-copy { right: 18px; left: 18px; width: auto; top: 16px; bottom: auto; gap: 8px; z-index: 1; }
    .hero-tag { font-size: 12px; padding: 4px 11px; }
    .hero-title { font-size: 27px; line-height: 1.35; }
    .hero-text, .hero-note { display: none; }
    .hero-cta { font-size: 13px; padding: 9px 14px; border-radius: 12px; }
    .hero-arrow { width: 34px; height: 34px; margin-top: -17px; top: 58%; background: rgba(255, 255, 255, .9); }
    .hero-arrow .ic { width: 18px; height: 18px; }
    .hero-arrow.next-side { right: 8px; } .hero-arrow.prev-side { left: 8px; }
    .hero-dots { bottom: 18px; } .hero-dots button { width: 7px; height: 7px; } .hero-dots button.is-active { width: 22px; }
    .wave-bottom { height: 22px; }

    .section { padding-top: 34px; }
    .section-tight { padding-top: 18px; }
    .benefits { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .benefits li { padding: 12px; gap: 10px; border-radius: 16px; }
    .benefit-ic { width: 40px; height: 40px; border-radius: 12px; }
    .benefit-ic .ic { width: 21px; height: 21px; }
    .benefits strong { font-size: 13.5px; } .benefits small { font-size: 11.5px; line-height: 1.6; }

    .sec-head { margin-bottom: 16px; }
    .sec-title { gap: 8px; }
    .sec-title h2 { font-size: 21px; }
    .more { font-size: 13.5px; padding: 6px 10px; border-radius: 10px; }

    .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
    .cat-tile { background: none; box-shadow: none; padding: 0; gap: 6px; }
    .cat-tile:hover { transform: none; box-shadow: none; }
    .cat-blob { width: 74px; height: 74px; }
    .cat-blob img { height: 58px; }
    .cat-ic { width: 26px; height: 26px; border-radius: 9px; }
    .cat-ic .ic { width: 15px; height: 15px; }
    .cat-tile strong { font-size: 12px; min-height: 36px; line-height: 1.5; font-weight: 600; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pcard { padding: 9px; gap: 8px; border-radius: 22px; }
    .pcard-media { border-radius: 16px; }
    .pcard-off { top: 8px; right: 8px; font-size: 11.5px; padding: 2px 8px; }
    .pcard-fav { top: 16px; left: 16px; width: 32px; height: 32px; border-radius: 11px; }
    .pcard-fav .ic { width: 16px; height: 16px; }
    .pcard-meta { font-size: 11.5px; }
    .pcard-title { font-size: 13px; line-height: 1.7; height: 44px; }
    .price { font-size: 15.5px; }
    .old { font-size: 11px; }
    .toman { font-size: 10.5px; }
    .pcard-add { width: 36px; height: 36px; border-radius: 12px; }
    .pcard-add .ic { width: 18px; height: 18px; }

    .offers { margin-top: 36px; }
    .wave { height: 26px; }
    .offers-band { padding: 14px 0 22px; }
    .offers-intro h2 { font-size: 21px; }
    .offers-intro p { display: none; }
    .btn-white { padding: 6px 12px; border-radius: 10px; font-size: 13px; }
    .offers-list .pcard { flex-basis: 158px; }

    .promos { grid-template-columns: 1fr; gap: 14px; }
    .promo { border-radius: 24px; }
    .promo-copy { right: 18px; gap: 4px; }
    .promo-copy strong { font-size: 20px; }
    .promo-copy > span:not(.promo-btn) { font-size: 12.5px; }
    .promo-btn { display: none; }

    .bale-cta { padding: 24px 20px; border-radius: 26px; gap: 16px; }
    .bale-main { align-items: flex-start; gap: 14px; }
    .bale-ic { width: 52px; height: 52px; border-radius: 16px; }
    .bale-ic .ic { width: 26px; height: 26px; }
    .bale-cta h2 { font-size: 19px; }
    .bale-cta p { font-size: 13px; }
    .bale-cta .btn { padding: 10px 18px; font-size: 13.5px; border-radius: 13px; }

    .steps { padding: 26px calc(50vw - 50%) 24px; margin-block: 40px; border-radius: 0; }
    .steps-head { margin-bottom: 14px; padding: 0; }
    .steps-head h2 { font-size: 20px; }
    .steps-head span { display: none; }
    .steps-list { gap: 12px; }
    .steps-list li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 16px; border-radius: 22px; }
    .step-num { display: none; }
    .step-ic { width: 46px; height: 46px; border-radius: 16px; grid-row: span 2; }
    .step-ic .ic { width: 22px; height: 22px; }
    .steps-list strong { margin-top: 0; font-size: 15px; }
    .steps-list p { margin-top: 2px; font-size: 12.5px; line-height: 1.9; }

    .brand-bubble { flex-basis: 96px; }

    .footer-in { padding-top: 26px; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-brand img { height: 44px; }
    .footer-col { font-size: 13.5px; gap: 9px; }
    .footer-col:last-child { grid-column: 1 / -1; }
    .footer-bottom { justify-content: center; text-align: center; font-size: 12px; }

    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 24px rgba(30, 45, 120, .08); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
    .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: #6B7399; font-weight: 500; background: none; border: 0; padding: 0; }
    .tabbar span { position: relative; width: 44px; height: 32px; border-radius: 12px; display: grid; place-items: center; }
    .tabbar .is-active { color: var(--blue); font-weight: 700; }
    .tabbar .is-active span { background: var(--blue-soft); }
    .dot-count { position: absolute; top: -4px; left: 2px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--coral); color: var(--coral-ink); font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
    .toast { bottom: 96px; }

    .card { padding: 20px; border-radius: 22px; }
    .card h1, .page-body h1 { font-size: 22px; }
    .blob.b1 { width: 560px; height: 560px; top: -230px; right: -280px; }
    .blob.b2 { width: 520px; height: 520px; top: 420px; left: -250px; }
    .blob.b3 { width: 500px; height: 500px; top: 1200px; right: -310px; }

}

@media (prefers-reduced-motion: reduce) {
    .nav-pill.track { animation: none; }
        .topbar::before { display: none; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}



/* =====================================================================
   فهرست محصولات
   ===================================================================== */
.shop-page { padding-top: 4px; }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }
.crumbs .ic { color: #9AA2C6; }

.shop-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; padding: 26px 34px; border-radius: var(--r-lg); background: linear-gradient(120deg, #fff 0%, #EEF2FF 60%, #E3E9FF 100%); box-shadow: var(--shadow); margin-bottom: 22px; }
.shop-hero::after { content: ""; position: absolute; left: -60px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 92, 122, .22), transparent 70%); pointer-events: none; }
.shop-hero-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.shop-hero h1 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.4; }
.shop-hero p { color: var(--muted); font-size: 15px; margin-top: 4px; max-width: 640px; }
.shop-hero-art { position: relative; z-index: 1; height: 128px; width: auto; transform: rotate(-8deg); filter: drop-shadow(0 12px 16px rgba(18, 26, 63, .2)); margin-left: 30px; }

.shop-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }

/* فیلترها */
.filters { position: sticky; top: 16px; }
.filters-box { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px 8px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: default; font-weight: 800; font-size: 18px; padding-bottom: 12px; }
.filters-head::-webkit-details-marker { display: none; }
.filters-head > span { display: flex; align-items: center; gap: 8px; }
.filters-head .ic { color: var(--blue); }
.filters-clear { font-size: 13.5px; font-weight: 700; color: var(--coral-text); }
.filters-clear:hover { text-decoration: underline; }
.f-group { border-top: 1px solid #EEF1FB; padding: 16px 0; min-width: 0; }
.f-title { font-weight: 700; font-size: 15.5px; margin: 0 0 10px; }
.f-check { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 4px; border-radius: 10px; font-weight: 400; font-size: 14.5px; color: #2B3463; cursor: pointer; }
.f-check:hover { background: #F5F7FF; }
.f-check.is-empty { opacity: .5; }
.f-check input, .f-pill input, .f-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.f-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #C5CDEE; background: #fff; display: grid; place-items: center; color: transparent; flex: none; transition: background .15s, border-color .15s; }
.f-check input:checked + .f-box { background: var(--blue); border-color: var(--blue); color: #fff; }
.f-check input:focus-visible + .f-box { outline: 3px solid rgba(30, 71, 255, .35); outline-offset: 2px; }
.f-label { flex: 1; }
.f-count { font-size: 12.5px; color: var(--muted); background: #F1F4FF; border-radius: 99px; padding: 1px 9px; }
.f-scroll { max-height: 250px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.f-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.f-price label { margin: 0; }
.filters .f-price input[data-money] { height: 44px; padding: 0 12px; font-size: 14px; text-align: center; }
.f-apply { width: 100%; margin-top: 10px; padding: 10px 16px; font-size: 14px; }
.f-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.f-pill { position: relative; margin: 0; cursor: pointer; }
.f-pill span { display: inline-block; padding: 6px 14px; border-radius: 99px; background: #F1F4FF; color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s; }
.f-pill input:checked + span { background: var(--navy); color: #fff; }
.f-pill input:focus-visible + span { outline: 3px solid rgba(30, 71, 255, .35); outline-offset: 2px; }
.f-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 4px; font-weight: 400; font-size: 14.5px; color: #2B3463; cursor: pointer; }
.f-track { position: relative; width: 46px; height: 26px; border-radius: 99px; background: #D5DCF7; flex: none; transition: background .2s; }
.f-track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(18, 26, 63, .2); transition: right .2s; }
.f-switch input:checked + .f-track { background: var(--blue); }
.f-switch input:checked + .f-track::after { right: 23px; }
.f-switch input:focus-visible + .f-track { outline: 3px solid rgba(30, 71, 255, .35); outline-offset: 2px; }

/* نوار مرتب‌سازی */
.sortbar { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 10px 16px; margin-bottom: 16px; }
.sortbar-title { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.sorts { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.sorts::-webkit-scrollbar { display: none; }
.sorts a { padding: 7px 14px; border-radius: 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.sorts a:hover { background: var(--blue-soft); color: var(--blue); }
.sorts a.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.sortbar-count { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* برچسب فیلترهای فعال */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 600; transition: filter .15s; }
.chip:hover { filter: brightness(.95); }
.chip.tone-blue { background: var(--blue-soft); color: var(--blue); }
.chip.tone-coral { background: #FFE3EA; color: var(--coral-text); }
.chip.tone-violet { background: #EFE8FF; color: #5B3CC4; }
.chip.tone-green { background: var(--green-soft); color: var(--green); }

.shop-grid { grid-template-columns: repeat(4, 1fr); }

/* حالت خالی */
.empty { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-ic { width: 76px; height: 76px; border-radius: 26px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.empty h2 { font-family: var(--display); font-size: 24px; font-weight: 800; }
.empty p { color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* صفحه‌بندی */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager-num, .pager-step { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); }
.pager-num:hover, .pager-step:hover { color: var(--blue); }
.pager-num.is-active { background: var(--blue); color: #fff; box-shadow: 0 10px 20px rgba(30, 71, 255, .28); }
.pager-step.is-disabled { opacity: .45; pointer-events: none; }
.pager-gap { color: var(--muted); padding: 0 4px; }

@media (min-width: 1600px) {
    .shop-layout { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 1240px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-layout { grid-template-columns: 270px minmax(0, 1fr); }
}
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    .filters { position: static; }
    .filters-head { cursor: pointer; padding-bottom: 0; }
    .filters-box[open] .filters-head { padding-bottom: 12px; }
    .filters-head > span::after { content: ""; width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: 6px; transition: transform .2s; }
    .filters-box[open] .filters-head > span::after { transform: rotate(135deg); }
    .filters-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
    .crumbs { font-size: 12.5px; margin-bottom: 10px; }
    .shop-hero { min-height: 0; padding: 18px; border-radius: 22px; margin-bottom: 14px; }
    .shop-hero-copy { gap: 12px; }
    .shop-hero h1 { font-size: 22px; }
    .shop-hero p { font-size: 13px; }
    .shop-hero-art { height: 74px; margin-left: 4px; }
    .filters-box { padding: 14px 16px 4px; border-radius: 20px; }
    .filters-form { grid-template-columns: 1fr; }
    .sortbar { padding: 8px 10px; border-radius: 16px; gap: 6px; }
    .sortbar-title { display: none; }
    .sorts a { padding: 6px 10px; font-size: 13px; }
    .sortbar-count { font-size: 12.5px; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
    .pager-num, .pager-step { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; }
}
.filters-form.is-loading { opacity: .6; pointer-events: none; }



/* =====================================================================
   صفحه جزئیات محصول
   ===================================================================== */
.pill { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-violet { background: #EFE8FF; color: #5B3CC4; }
.pill-coral { background: #FFE3EA; color: var(--coral-text); }
a.pill:hover { filter: brightness(.95); }
.pd-page { padding-top: 4px; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }

/* تصاویر */
.pd-gallery { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.pd-stage { position: relative; aspect-ratio: 1 / 1; max-height: 560px; border-radius: 22px; background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #F3F5FF 55%, #E9EEFF 100%); display: grid; place-items: center; overflow: hidden; }
.pd-stage img { position: absolute; inset: 7%; width: 86%; height: 86%; max-width: none; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(18, 26, 63, .16)); }
.pd-noimg { color: #B5BEE3; }
.pd-off { position: absolute; top: 18px; right: 18px; background: var(--coral); color: var(--coral-ink); font-weight: 800; padding: 6px 15px; border-radius: 99px; transform: rotate(-4deg); box-shadow: 0 10px 20px rgba(255, 92, 122, .3); }
.pd-fav { position: absolute; top: 16px; left: 16px; width: 48px; height: 48px; border-radius: 15px; border: 0; background: #fff; color: var(--coral-text); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(30, 45, 120, .1); transition: background .15s; }
.pd-fav:hover { background: var(--coral-soft); }
.pd-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; }
.pd-thumb { flex: none; width: 76px; height: 76px; padding: 6px; border-radius: 16px; border: 2px solid var(--line); background: #fff; transition: border-color .15s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb:hover { border-color: var(--line-2); }
.pd-thumb.is-active { border-color: var(--blue); }

/* اطلاعات */
.pd-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-title { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.45; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); font-size: 14px; }
.pd-meta bdi { font-weight: 700; color: var(--ink-2); }
.pd-lead { font-size: 16px; line-height: 2; color: var(--ink-2); }
.pd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pd-tiles li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; }
.pd-tiles span { font-size: 12.5px; color: var(--muted); }
.pd-tiles strong { font-size: 14.5px; font-weight: 700; }

/* کادر خرید */
.pd-buy { background: #fff; border: 2px solid #E3E9FF; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.pd-buy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 700; }
.pd-stock.is-low { color: #A35A00; }
.pd-stock.is-out { color: var(--coral-text); }
.pd-was { display: inline-flex; align-items: center; gap: 10px; }
.pd-was .old { font-size: 15px; }
.pd-price-label { color: var(--muted); font-size: 14px; }
.pd-price { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.3; white-space: nowrap; }
.pd-price .toman { font-size: 15px; font-weight: 500; }
.pd-buy.is-out .pd-price { color: var(--faint); }
.pd-actions { display: flex; gap: 12px; }
.pd-add { flex: 1; font-size: 17px; min-height: 56px; }

.qty { display: flex; align-items: center; gap: 4px; background: #F1F4FF; border-radius: 16px; padding: 4px; flex: none; }
.qty-btn { width: 48px; height: 48px; border: 0; border-radius: 13px; background: #fff; color: var(--navy); display: grid; place-items: center; transition: color .15s, opacity .15s; }
.qty-btn:hover { color: var(--blue); }
.qty-btn:disabled { opacity: .4; cursor: default; color: var(--navy); }
.pd-actions .qty input.qty-input[type=number] { width: 44px; height: 48px; padding: 0; border: 0; background: transparent; text-align: center; font-family: var(--display); font-size: 19px; font-weight: 700; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-actions .qty input.qty-input:focus { box-shadow: none; border: 0; }

.pd-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-ship span { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: #F4F6FF; font-size: 13.5px; line-height: 1.6; }
.pd-ship .ic { color: var(--blue); }
.pd-note { font-size: 12.5px; color: var(--faint); margin-top: -6px; }

/* توضیحات، مشخصات، نظرها */
.pd-bottom { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; margin-top: 28px; align-items: start; }
.pd-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 28px; }
.pd-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; scroll-margin-top: 110px; }
.pd-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.pd-tabs a { padding: 10px 20px; border-radius: 14px; font-weight: 700; color: var(--ink-2); background: #F4F6FF; transition: background .15s, color .15s; }
.pd-tabs a:first-child, .pd-tabs a:hover { background: var(--navy); color: #fff; }
.pd-tabs:hover a:first-child:not(:hover) { background: #F4F6FF; color: var(--ink-2); }
.pd-desc p { font-size: 15.5px; line-height: 2.15; color: var(--ink-2); margin-bottom: 14px; }
.pd-desc + h2 { margin-top: 22px; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.pd-specs th, .pd-specs td { text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-specs th { width: 180px; color: var(--muted); font-weight: 500; }
.pd-specs td { font-weight: 600; }
.pd-specs tr:nth-child(odd) { background: #F8F9FF; }
.pd-specs tr:last-child th, .pd-specs tr:last-child td { border-bottom: 0; }

.pd-reviews { scroll-margin-top: 110px; }
.pd-rev-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 18px; border-radius: 20px; border: 2px dashed #C9D3FF; }
.pd-rev-empty .empty-ic { width: 66px; height: 66px; border-radius: 22px; }
.pd-rev-empty .hint { max-width: 340px; }

@media (max-width: 1240px) {
    .pd-top { gap: 22px; }
    .pd-title { font-size: 30px; }
    .pd-ship { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .pd-top, .pd-bottom { grid-template-columns: minmax(0, 1fr); }
    .pd-gallery { position: static; }
    .pd-stage { max-height: 460px; aspect-ratio: auto; height: 460px; }
    .pd-ship { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .pd-top { gap: 16px; }
    .pd-gallery { padding: 12px; border-radius: 22px; }
    .pd-stage { height: 290px; border-radius: 18px; }
    .pd-stage img { inset: 6%; width: 88%; height: 88%; }
    .pd-off { top: 12px; right: 12px; font-size: 13px; padding: 4px 12px; }
    .pd-fav { top: 12px; left: 12px; width: 42px; height: 42px; border-radius: 13px; }
    .pd-thumb { width: 62px; height: 62px; border-radius: 13px; }
    .pd-title { font-size: 24px; }
    .pd-lead { font-size: 14.5px; }
    .pd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pd-tiles li { padding: 10px 12px; border-radius: 14px; }
    .pd-buy { padding: 16px; border-radius: 22px; gap: 14px; }
    .pd-price { font-size: 28px; }
    .pd-actions { gap: 8px; }
    .qty-btn { width: 42px; height: 46px; }
    .pd-actions .qty input.qty-input[type=number] { width: 34px; height: 46px; }
    .pd-add { font-size: 15px; padding: 10px 12px; min-height: 54px; white-space: nowrap; }
    .pd-add .ic { display: none; }
    .pd-ship { grid-template-columns: 1fr; gap: 8px; }
    .pd-bottom { margin-top: 18px; gap: 16px; }
    .pd-card { padding: 18px; border-radius: 22px; }
    .pd-tabs a { padding: 8px 14px; font-size: 14px; }
    .pd-desc p { font-size: 14.5px; line-height: 2.05; }
    .pd-specs { font-size: 14px; }
    .pd-specs th { width: 112px; }
    .pd-specs th, .pd-specs td { padding: 10px; }
}




/* =====================================================================
   سبد خرید
   ===================================================================== */
.cart-page { padding-top: 4px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.cart-head h1 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.4; }
.cart-head-count { background: #fff; color: var(--muted); font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 99px; box-shadow: var(--shadow-sm); }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.cart-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 14px 18px 14px 14px; }
.cart-row.is-out { background: #FBFBFF; }
.cart-row.is-out .cart-img, .cart-row.is-out .cart-name { opacity: .55; }
.cart-img { width: 112px; height: 112px; border-radius: 18px; background: radial-gradient(circle at 50% 42%, #FFFFFF, #EEF2FF); position: relative; display: block; overflow: hidden; }
.cart-img img { position: absolute; inset: 6%; width: 88%; height: 88%; max-width: none; object-fit: contain; }
.cart-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-name { font-size: 16px; font-weight: 600; line-height: 1.75; }
.cart-name a:hover { color: var(--blue); }
.cart-unit { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cart-unit strong { color: var(--navy); font-weight: 700; }
.cart-unit .old { font-size: 12.5px; }
.cart-warn { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--coral-text); line-height: 1.7; }
.cart-warn .ic { margin-top: 2px; }
.cart-warn.is-soft { color: #A35A00; }

.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-qty .qty-btn { width: 40px; height: 40px; border-radius: 11px; }
.qty-val { min-width: 34px; text-align: center; font-family: var(--display); font-size: 18px; font-weight: 700; }
.cart-line-total { font-family: var(--display); font-weight: 700; font-size: 19px; white-space: nowrap; }
.cart-remove { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.cart-remove:hover { color: var(--coral-text); background: var(--coral-soft); }

.cart-summary { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 2px solid #E3E9FF; padding: 22px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.cart-summary h2 { font-size: 19px; font-weight: 800; }
.cart-sums { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-sums div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.cart-sums dt { color: var(--muted); }
.cart-sums dd { margin: 0; font-weight: 700; white-space: nowrap; }
.cart-sums .is-off dd, .cart-sums .is-off dt { color: var(--coral-text); }
.cart-sums .is-muted { color: var(--faint); font-weight: 500; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.cart-total span:first-child { font-weight: 700; }
.cart-total strong { font-family: var(--display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.btn.is-disabled { opacity: .6; cursor: not-allowed; }
.cart-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-ship span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #F4F6FF; font-size: 13px; }
.cart-ship .ic { color: var(--blue); }

/* افزودن به سبد با fetch */
.pcard-add.is-added, .pd-add.is-added { background: var(--green); box-shadow: 0 8px 18px rgba(18, 122, 75, .28); }
.pcard-add:disabled, .pd-add:disabled { cursor: wait; }

@media (max-width: 1240px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); }
    .cart-summary { position: static; }
}
@media (max-width: 720px) {
    .cart-head h1 { font-size: 24px; }
    .cart-head { margin-bottom: 14px; }
    .cart-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 20px; }
    .cart-img { width: 84px; height: 84px; border-radius: 14px; }
    .cart-name { font-size: 14.5px; }
    .cart-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
    .cart-side form:last-child { order: 3; }
    .cart-line-total { font-size: 17px; margin-right: auto; }
    .cart-summary { padding: 18px; border-radius: 22px; }
    .cart-total strong { font-size: 23px; }
}



/* دکمه در حال انجام کار: بدون تغییر متن، فقط کم‌رنگ و تپش ملایم */
button.is-busy { cursor: wait; animation: busy-pulse 1s ease-in-out infinite; }
button.is-busy:disabled { opacity: 1; }
@keyframes busy-pulse { 0%, 100% { filter: none; } 50% { filter: saturate(.55) brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { button.is-busy { animation: none; opacity: .7; } }


/* =====================================================================
   ثبت سفارش و صفحه سفارش
   ===================================================================== */
.co-page { padding-top: 4px; }
.co-muted { color: var(--muted); font-size: 13.5px; font-weight: 400; }

.co-steps { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; flex-wrap: wrap; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--faint); font-size: 14.5px; }
.co-steps li + li::before { content: ""; width: 42px; height: 2px; border-radius: 2px; background: var(--line-2); margin-left: 2px; }
.co-steps li > span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--faint); font-size: 14px; box-shadow: var(--shadow-sm); }
.co-steps li.is-done { color: var(--green); }
.co-steps li.is-done > span { background: var(--green); color: #fff; }
.co-steps li.is-current { color: var(--navy); }
.co-steps li.is-current > span { background: var(--blue); color: #fff; box-shadow: 0 8px 16px rgba(30, 71, 255, .28); }

.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.co-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.co-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.co-card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; }
.co-card-head h2 > .ic { color: var(--blue); }
.co-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 12px; background: var(--blue-soft); }
.co-card textarea { margin: 0; }
.co-card .error { margin-top: 10px; }

.co-options { display: flex; flex-direction: column; gap: 10px; }
.co-option { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.co-option:hover { border-color: var(--line-2); }
.co-option input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid #B8C2EA; background: #fff; transition: border-color .15s, box-shadow .15s; }
.co-option:has(input:checked) { border-color: var(--blue); background: #F6F8FF; }
.co-option:has(input:checked) .co-radio { border-color: var(--blue); box-shadow: inset 0 0 0 5px var(--blue); }
.co-option:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.co-option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; line-height: 1.8; }
.co-option-body strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.co-option-body .pill { font-size: 12px; padding: 2px 10px; }
.co-option.is-off { opacity: .45; cursor: not-allowed; }
.co-price { flex: none; font-weight: 700; font-size: 14px; color: var(--ink-2); align-self: center; }
.co-ship { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-ship .co-option { flex-wrap: wrap; }
.co-ship .co-price { width: 100%; padding-right: 36px; color: var(--muted); font-weight: 600; font-size: 13px; }

.co-summary { gap: 14px; }
.co-items { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; padding: 8px 0 2px 4px; }
.co-items li, .od-items li { display: flex; align-items: center; gap: 12px; }
.co-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; background: radial-gradient(circle at 50% 42%, #FFFFFF, #EEF2FF); }
.co-thumb img { position: absolute; inset: 6%; width: 88%; height: 88%; max-width: none; object-fit: contain; }
.co-thumb i { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--navy); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.co-item-name { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.co-item-total { flex: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.co-back { display: inline-flex; align-items: center; gap: 4px; align-self: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.co-back:hover { color: var(--blue); }

/* صفحه سفارش */
.od-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.od-head h1 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.5; }
.od-status { padding: 8px 18px; border-radius: 99px; font-weight: 800; font-size: 14.5px; }
.od-status.tone-blue { background: var(--blue-soft); color: var(--blue); }
.od-status.tone-green { background: var(--green-soft); color: var(--green); }
.od-status.tone-coral { background: #FFE3EA; color: var(--coral-text); }
.od-alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-lg); background: #EEF3FF; border: 2px solid #CFDAFF; }
.od-alert.is-coral { background: #FFF1F4; border-color: #FFD0DA; }
.od-alert-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; }
.od-alert.is-coral .od-alert-ic { color: var(--coral-text); }
.od-alert strong { display: block; font-size: 15.5px; }
.od-alert p { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.od-items { display: flex; flex-direction: column; gap: 14px; }
.od-items .co-thumb { width: 64px; height: 64px; }
.od-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 600; line-height: 1.7; }
.od-item-main a:hover { color: var(--blue); }
.od-info { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.od-info div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.8; }
.od-info dt { color: var(--muted); }
.od-info dd { margin: 0; font-weight: 600; }

@media (max-width: 1240px) {
    .co-layout { grid-template-columns: minmax(0, 1fr) 330px; }
    .co-ship { grid-template-columns: minmax(0, 1fr); }
    .co-ship .co-option { flex-wrap: nowrap; }
    .co-ship .co-price { width: auto; padding: 0; }
}
@media (max-width: 1024px) {
    .co-layout { grid-template-columns: minmax(0, 1fr); }
    .co-summary { position: static; }
}
@media (max-width: 720px) {
    .co-steps { gap: 6px; margin-bottom: 14px; }
    .co-steps li { font-size: 13px; gap: 6px; }
    .co-steps li + li::before { width: 16px; }
    .co-steps li > span { width: 26px; height: 26px; border-radius: 9px; font-size: 13px; }
    .co-card { padding: 16px; border-radius: 20px; }
    .co-card-head h2 { font-size: 16px; }
    .co-option { padding: 14px; gap: 10px; border-radius: 16px; }
    .co-option-body strong { font-size: 14.5px; }
    .co-ship .co-option { flex-wrap: wrap; }
    .co-ship .co-price { width: 100%; padding-right: 32px; }
    .od-head h1 { font-size: 21px; }
    .od-info div { grid-template-columns: 84px minmax(0, 1fr); font-size: 13.5px; }
}



/* هزینه ارسال */
.ship-hint { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #FFF6E5; color: #8A5300; font-size: 13px; font-weight: 600; line-height: 1.8; }
.ship-hint .ic { flex: none; margin-top: 3px; }
.ship-hint.is-done { background: var(--green-soft); color: var(--green); }
.co-price s { color: var(--faint); font-weight: 500; margin-left: 4px; }
.co-price .is-free { color: var(--green); }
.co-cod-note { margin-top: 12px; }



/* جمع کالاها پس از تخفیف */
.cart-sums .is-after { padding-top: 12px; border-top: 1px solid var(--line); }
.cart-sums .is-after dt { color: var(--navy); font-weight: 600; }
.cart-sums .is-after dd { font-weight: 800; }


/* زمان تحویل */
.co-delivery { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.co-delivery h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.co-delivery h3 .ic { color: var(--blue); }
.co-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.co-chip { position: relative; margin: 0; cursor: pointer; font-weight: 600; }
.co-chip input { position: absolute; opacity: 0; pointer-events: none; }
.co-chip span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: 14px; transition: border-color .15s, background .15s, color .15s; }
.co-chip:hover span { border-color: var(--line-2); }
.co-chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.co-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.co-eta { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: #F4F6FF; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.co-eta .ic { color: var(--blue); }
.co-delivery[hidden], .co-eta[hidden] { display: none; }
@media (max-width: 720px) {
    .co-chip span { padding: 9px 12px; font-size: 13px; }
}


/* =====================================================================
   ظاهر رسمی‌تر برای سبد خرید، ثبت سفارش و صفحه سفارش
   (فقط همین صفحه‌ها؛ صفحه اصلی و محصولات دست نمی‌خورند)
   ===================================================================== */
.cart-page, .co-page { --flow-r: 14px; --flow-r-sm: 10px; --flow-border: 1px solid #E3E7F3; --flow-shadow: 0 1px 2px rgba(18, 26, 63, .04), 0 4px 16px rgba(18, 26, 63, .04); }

/* سرصفحه */
.cart-head h1, .od-head h1 { font-family: inherit; font-size: 24px; font-weight: 800; letter-spacing: 0; }
.cart-head-count { box-shadow: none; border: var(--flow-border); font-size: 13px; padding: 5px 14px; }
.od-head { padding-bottom: 18px; border-bottom: var(--flow-border); }
.od-head h1 bdi { font-family: inherit; letter-spacing: .5px; }
.od-status { font-size: 13px; padding: 6px 14px; border-radius: 8px; font-weight: 700; }

/* مراحل خرید */
.co-steps { gap: 0; background: #fff; border: var(--flow-border); border-radius: var(--flow-r); padding: 12px 18px; box-shadow: var(--flow-shadow); }
.co-steps li { flex: 1; font-size: 14px; }
.co-steps li + li::before { flex: 1; width: auto; min-width: 24px; height: 2px; margin: 0 12px; background: var(--line); }
.co-steps li.is-done + li::before { background: var(--green); }
.co-steps li > span { width: 28px; height: 28px; border-radius: 50%; box-shadow: none; border: 1.5px solid var(--line-2); font-size: 13px; }
.co-steps li.is-done > span, .co-steps li.is-current > span { border-color: transparent; box-shadow: none; }

/* کارت‌ها */
.cart-page .cart-row, .co-card, .cart-summary, .cart-page .empty, .co-page .empty { border-radius: var(--flow-r); border: var(--flow-border); box-shadow: var(--flow-shadow); }
.cart-summary { border-width: 1px; }
.co-card-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: var(--flow-border); }
.co-card-head h2, .cart-summary h2 { font-size: 16px; font-weight: 800; }
.co-card-head h2 > .ic { color: var(--muted); }
.co-link { border-radius: var(--flow-r-sm); font-size: 13px; padding: 6px 12px; }

/* گزینه‌ها (نشانی و روش ارسال) */
.co-option { border-radius: 12px; border-width: 1px; padding: 14px 16px; }
.co-option:has(input:checked) { border-color: var(--blue); background: #F7F9FF; box-shadow: 0 0 0 3px rgba(30, 71, 255, .08); }
.co-radio { width: 20px; height: 20px; border-width: 1.5px; }
.co-option:has(input:checked) .co-radio { box-shadow: inset 0 0 0 4px #fff; background: var(--blue); }
.co-option-body strong { font-size: 15px; }
.co-option-body .pill { border-radius: 6px; }

/* زمان تحویل */
.co-chip span { border-radius: var(--flow-r-sm); border-width: 1px; padding: 9px 14px; }
.co-chip input:checked + span { background: #F2F5FF; color: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 71, 255, .08); }
.co-eta, .ship-hint { border-radius: var(--flow-r-sm); }

/* ردیف‌های سبد */
.cart-img, .co-thumb { background: #F6F7FB; border: var(--flow-border); border-radius: 12px; }
.cart-name { font-size: 15px; }
.cart-line-total, .co-item-total { font-family: inherit; font-weight: 800; }
.cart-qty { background: #fff; border: var(--flow-border); border-radius: 12px; padding: 3px; }
.cart-qty .qty-btn { width: 36px; height: 36px; border-radius: 9px; background: transparent; }
.cart-qty .qty-btn:hover { background: #F2F5FF; }
.qty-val { font-family: inherit; font-size: 16px; font-weight: 800; }

/* خلاصه و مبالغ */
.cart-total strong { font-family: inherit; font-size: 22px; font-weight: 900; }
.cart-sums div { font-size: 14px; }
.cart-page .btn, .co-page .btn { border-radius: 12px; font-weight: 700; font-size: 15px; padding: 13px 20px; }
.cart-page .btn-blue, .co-page .btn-blue { box-shadow: 0 6px 14px rgba(30, 71, 255, .18); }
.cart-page .btn:hover, .co-page .btn:hover { transform: none; filter: brightness(1.05); }
.cart-ship span { border-radius: var(--flow-r-sm); }

/* صفحه سفارش */
.od-alert { border-radius: var(--flow-r); border: 1px solid #D6E0FF; border-inline-start: 4px solid var(--blue); background: #F5F8FF; padding: 14px 18px; align-items: center; }
.od-alert.is-coral { border-color: #FFD0DA; border-inline-start-color: var(--coral); background: #FFF6F8; }
.od-alert-ic { width: 40px; height: 40px; border-radius: 10px; border: var(--flow-border); }
.od-timer { display: inline-block; min-width: 64px; padding: 2px 10px; margin: 0 4px; border-radius: 8px; background: #fff; border: 1px solid #D6E0FF; color: var(--blue); font-weight: 900; text-align: center; direction: ltr; }
.od-alert.is-urgent { border-inline-start-color: #E08A00; background: #FFF9EE; border-color: #FBE3B8; }
.od-alert.is-urgent .od-timer { color: #A35A00; border-color: #FBE3B8; }
.od-actions { display: flex; flex-direction: column; gap: 10px; }
.od-back-form .btn { width: 100%; }
.od-back-note { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: -2px; }
.zp-badge { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--faint); }
.zp-badge img { height: 22px; width: auto; }

@media (max-width: 720px) {
    .co-steps { padding: 10px 12px; }
    .co-steps li { font-size: 12.5px; }
    .co-steps li + li::before { margin: 0 6px; min-width: 10px; }
    .cart-head h1, .od-head h1 { font-size: 20px; }
}


/* فهرست پیشنهاد کوچک (استان) */
.suggest { position: relative; }
.suggest-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 30; max-height: 200px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 8px 24px rgba(18, 26, 63, .12); }
.suggest-list[hidden] { display: none; }
.suggest-list li { padding: 7px 10px; border-radius: 7px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.suggest-list li:hover, .suggest-list li.is-active { background: var(--blue-soft); color: var(--blue); }



/* کارت محصول: دکمه افزودن که بعد از اضافه شدن به شمارنده تبدیل می‌شود */
.cart-ctl { flex: none; }
.cart-ctl-step { display: none; align-items: center; gap: 2px; height: 44px; padding: 3px; border-radius: 14px; background: #fff; border: 1.5px solid var(--blue); box-shadow: 0 6px 14px rgba(30, 71, 255, .12); }
.cart-ctl.is-in .cart-ctl-step { display: flex; }
.cart-ctl.is-in .cart-ctl-add { display: none; }
.cart-ctl-btn { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); display: grid; place-items: center; transition: background .15s; }
.cart-ctl-btn:hover:not(:disabled) { background: var(--blue-soft); }
.cart-ctl-btn:disabled { color: #B9C2E6; cursor: not-allowed; }
.cart-ctl-qty { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; color: var(--blue); }
.cart-ctl .ic-trash { display: none; }
.cart-ctl.is-one .ic-trash { display: block; }
.cart-ctl.is-one .ic-minus { display: none; }
.cart-ctl.is-one [data-ctl-dec] { color: var(--coral-text); }
.cart-ctl.is-one [data-ctl-dec]:hover { background: var(--coral-soft); }
.cart-ctl.is-busy { opacity: .55; pointer-events: none; }
@media (max-width: 720px) {
    .cart-ctl-step { height: 36px; border-radius: 12px; padding: 2px; }
    .cart-ctl-btn { width: 28px; height: 28px; border-radius: 9px; }
    .cart-ctl-btn .ic { width: 16px; height: 16px; }
    .cart-ctl-qty { min-width: 18px; font-size: 14px; }
}
/* وقتی کالا در سبد است، شمارنده یک ردیف کامل زیر قیمت می‌گیرد تا از کارت بیرون نزند */
.pcard-foot:has(.cart-ctl.is-in) { flex-wrap: wrap; }
.cart-ctl.is-in { width: 100%; }
.cart-ctl.is-in .cart-ctl-step { width: 100%; justify-content: space-between; }

/* =====================================================================
   مراحل خرید (مثل فروشگاه‌های رایج: دایره، عنوان زیرش و خط اتصال)
   ===================================================================== */
.co-steps { display: flex; justify-content: space-between; max-width: 620px; margin: 6px auto 26px; padding: 0; gap: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
.co-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--faint); text-align: center; }
.co-steps li + li::before { content: ""; position: absolute; top: 17px; right: calc(-50% + 26px); left: calc(50% + 26px); width: auto; min-width: 0; height: 3px; margin: 0; border-radius: 3px; background: #DCE2F2; flex: none; }
.co-steps li.is-done + li::before { background: var(--green); }
.co-steps li > span { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--faint); border: 2px solid #DCE2F2; box-shadow: none; font-size: 14px; font-weight: 800; }
.co-steps li.is-done { color: var(--green); }
.co-steps li.is-done > span { background: var(--green); border-color: var(--green); color: #fff; }
.co-steps li.is-current { color: var(--navy); }
.co-steps li.is-current > span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px rgba(30, 71, 255, .14); }
@media (max-width: 720px) {
    .co-steps { margin-bottom: 18px; }
    .co-steps li { font-size: 12px; gap: 6px; }
    .co-steps li > span { width: 30px; height: 30px; font-size: 13px; }
    .co-steps li + li::before { top: 14px; right: calc(-50% + 22px); left: calc(50% + 22px); }
}

/* =====================================================================
   فیلدهای فرم (همه فرم‌ها)
   ===================================================================== */
input:not([type=checkbox]):not([type=radio]):not([type=search]), select, textarea { border: 1px solid #D9DFF0; border-radius: 12px; background: #FBFCFF; transition: border-color .15s, box-shadow .15s, background .15s; }
input:not([type=checkbox]):not([type=radio]):not([type=search]):hover, select:hover, textarea:hover { border-color: #BFC9EA; }
input:not([type=checkbox]):not([type=radio]):not([type=search]):focus, select:focus, textarea:focus { background: #fff; }
input::placeholder, textarea::placeholder { color: #A0A7C4; }

/* فرم کارتی (نشانی و فرم‌های بعدی) */
.form-page { max-width: 780px; margin-inline: auto; }
.form-card { background: #fff; border: 1px solid #E3E7F3; border-radius: 16px; box-shadow: 0 1px 2px rgba(18, 26, 63, .04), 0 8px 24px rgba(18, 26, 63, .05); }
.form-head { display: flex; gap: 14px; align-items: center; padding: 22px 26px; border-bottom: 1px solid #EEF1F8; }
.form-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, var(--blue-soft), #F4F0FF); color: var(--blue); display: grid; place-items: center; }
.form-head h1 { font-size: 20px; font-weight: 800; margin: 0; line-height: 1.5; }
.form-head p { color: var(--muted); font-size: 13.5px; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 24px 26px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { margin: 0; font-size: 13.5px; font-weight: 700; color: #2B3463; }
.field label .opt { color: var(--faint); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--faint); }
.field .error { margin: 0; }
.field.has-error input:not([type=checkbox]):not([type=radio]), .field.has-error textarea { border-color: #F0A2B3; background: #FFF8FA; }
.field.has-error input:not([type=checkbox]):not([type=radio]):focus, .field.has-error textarea:focus { border-color: var(--coral-text); box-shadow: 0 0 0 4px rgba(196, 42, 74, .12); }
.form-note { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #F5F8FF; border: 1px solid #DCE5FF; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.form-note .ic { flex: none; color: var(--blue); margin-top: 3px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid #EEF1F8; }
.form-actions .btn { border-radius: 12px; font-weight: 700; padding: 12px 22px; }
@media (max-width: 720px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
    .form-head { padding: 18px; }
    .form-actions .btn { flex: 1; }
}

/* فهرست پیشنهاد استان: جمع‌وجورتر */
.suggest-list { max-height: 172px; border-radius: 10px; }
.suggest-list li { padding: 6px 10px; font-size: 13.5px; }

/* =====================================================================
   سبد خرید و ثبت سفارش: جزئیات جذاب‌تر
   ===================================================================== */
.cart-page .cart-row { transition: border-color .15s, box-shadow .15s; }
.cart-page .cart-row:hover { border-color: #CFD8F5; box-shadow: 0 6px 20px rgba(18, 26, 63, .07); }
.cart-summary h2 { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #EEF1F8; }
.cart-summary h2::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, var(--blue), var(--blue-2)); }
.cart-total { padding: 14px 16px; border: 1px solid #DCE5FF; border-radius: 12px; background: linear-gradient(135deg, #F5F8FF, #F9F6FF); }
.cart-total strong { color: var(--navy); }
.co-card-head h2 > .ic { color: var(--blue); }


/* =====================================================================
   دکمه شناور گروه بله (پایین، سمت چپ)
   ===================================================================== */
.bale-fab { position: fixed; z-index: 60; left: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgba(18, 26, 63, .22); transition: transform .2s; }
.bale-fab::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(30, 71, 255, .35); animation: bale-ring 2.4s ease-out infinite; }
.bale-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bale-fab:hover { transform: scale(1.06); }
.bale-fab-tip { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.bale-fab:hover .bale-fab-tip, .bale-fab:focus-visible .bale-fab-tip { opacity: 1; }
@keyframes bale-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bale-fab::before { animation: none; opacity: 0; } }
@media (max-width: 1024px) {
    .bale-fab { left: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
    .bale-fab-tip { display: none; }
}

/* =====================================================================
   پیشنهادهای تخفیف‌دار: اسکرول افقی کامل در تبلت و موبایل
   ===================================================================== */
@media (max-width: 1240px) {
    .offers-list { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; gap: 12px; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .7) transparent; }
    .offers-list .pcard, .offers-list .pcard:nth-child(n+5) { display: flex !important; flex: 0 0 210px; scroll-snap-align: start; }
    .offers-list::-webkit-scrollbar { display: block; height: 6px; }
    .offers-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .7); border-radius: 6px; }
}
@media (max-width: 1024px) {
    .offers-list { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}
@media (max-width: 720px) {
    .offers-list .pcard, .offers-list .pcard:nth-child(n+5) { flex-basis: 162px; }
}


/* =====================================================================
   نوار هدیه اولین خرید
   ===================================================================== */
.pbar { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, #0F1638 0%, #1B2C8A 42%, #1E47FF 78%, #5B3CC4 100%); }
.pbar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 120px at 72% -20%, rgba(255, 92, 122, .45), transparent 70%), radial-gradient(220px 110px at 18% 130%, rgba(127, 224, 255, .4), transparent 70%); pointer-events: none; }
.pbar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; left: -160px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); transform: skewX(-20deg); animation: pbar-shine 6s ease-in-out infinite; pointer-events: none; }
@keyframes pbar-shine { 0%, 55% { left: -160px; } 100% { left: calc(100% + 160px); } }
.pbar-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding-top: 7px; padding-bottom: 7px; }
.pbar-badge { flex: none; display: inline-flex; align-items: baseline; justify-content: center; min-width: 46px; height: 38px; padding: 0 8px; border-radius: 12px; background: linear-gradient(140deg, #FF5C7A, #FF8A5C); color: #fff; font-weight: 900; font-size: 20px; line-height: 38px; box-shadow: 0 8px 18px rgba(255, 92, 122, .45); transform: rotate(-4deg); }
.pbar-badge small { font-size: 13px; margin-right: 1px; }
.pbar-text { margin: 0; display: flex; flex-direction: column; line-height: 1.55; }
.pbar-text b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; letter-spacing: -.2px; }
.pbar-text span { font-size: 13px; color: rgba(255, 255, 255, .85); }
.pbar-text em { font-style: normal; font-weight: 800; color: #FFD6DF; }
.pbar-code { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 12px; border-radius: 12px; border: 1.5px dashed rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
.pbar-code-label { font-size: 12px; color: rgba(255, 255, 255, .8); padding-right: 4px; }
.pbar-code code { font-family: inherit; font-weight: 900; font-size: 15px; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 8px; background: #fff; color: var(--navy); user-select: all; -webkit-user-select: all; cursor: text; }
@media (prefers-reduced-motion: reduce) { .pbar::after { animation: none; display: none; } }
@media (max-width: 720px) {
    .pbar-in { justify-content: space-between; gap: 10px; min-height: 48px; }
    .pbar-badge { min-width: 40px; height: 32px; line-height: 32px; font-size: 17px; border-radius: 10px; }
    .pbar-text b { font-size: 13px; }
    .pbar-text span { display: none; }
    .pbar-code { padding: 3px; gap: 0; }
    .pbar-code-label { display: none; }
    .pbar-code code { font-size: 13px; letter-spacing: 1px; padding: 3px 8px; }
}

/* =====================================================================
   اسکرول افقی با کشیدن انگشت (بدون نوار اسکرول) و بدون کارت نصفه
   ===================================================================== */
@media (max-width: 1240px) {
    .offers-list { scrollbar-width: none; scroll-snap-type: x mandatory; }
    .offers-list::-webkit-scrollbar { display: none; }
    .offers-list .pcard, .offers-list .pcard:nth-child(n+5) { flex: 0 0 calc((100% - 24px) / 3); }
}
@media (max-width: 1024px) {
    .offers-list { margin-inline: 0; padding-inline: 2px; scroll-padding-inline: 2px; }
}
@media (max-width: 480px) {
    .offers-list .pcard, .offers-list .pcard:nth-child(n+5) { flex-basis: calc((100% - 12px) / 2); }
}
@media (max-width: 1024px) {
    .brand-row { margin: 0; padding: 14px 6px 20px; gap: 14px; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; overscroll-behavior-x: contain; }
    .brand-bubble { flex: 0 0 calc((100% - 4 * 14px) / 5); max-width: none; scroll-snap-align: start; }
}
@media (max-width: 480px) {
    .brand-row { gap: 12px; }
    .brand-bubble { flex-basis: calc((100% - 3 * 12px) / 4); }
}

/* =====================================================================
   اسلایدر در موبایل: نسبت تصویر حفظ می‌شود تا محصولات بریده نشوند
   ===================================================================== */
@media (max-width: 720px) {
    .hero { height: min(calc(100vw * 10 / 13), 460px); }
    .hero-img { object-position: 50% 100%; }
}


/* =====================================================================
   اسلایدر: برای هر اندازه صفحه، تصویر مخصوص همان اندازه
   ≥۱۳۶۶ تصویر عریض | ۷۲۱ تا ۱۳۶۵ تصویر تبلت | ≤۷۲۰ تصویر مربعی موبایل
   ارتفاع با نسبت تصویر حساب می‌شود تا هیچ محصولی بریده نشود و متن روی محصول نیفتد
   ===================================================================== */
@media (min-width: 1366px) and (max-width: 1599px) {
    .hero-copy { width: min(440px, 36%); }
    .hero-title { font-size: 44px; }
}
@media (max-width: 1365px) {
    .hero { height: max(340px, calc(100vw * 700 / 1440)); }
    .hero-img { object-position: 0% 50%; }
    .hero-copy { right: calc(var(--gutter) + 56px); left: auto; width: 42%; top: 0; bottom: 0; gap: 12px; }
    .hero-title { font-size: clamp(26px, 2.9vw, 40px); }
    .hero-text { font-size: clamp(13.5px, 1.25vw, 16px); line-height: 1.85; }
    .hero-cta { font-size: 14.5px; padding: 12px 20px; border-radius: 14px; }
    .hero-chip { display: none; }
    .hero-arrow { width: 42px; height: 42px; margin-top: -21px; }
    .hero-arrow.next-side { right: 12px; } .hero-arrow.prev-side { left: 12px; }
}
@media (max-width: 900px) {
    .hero-text, .hero-note { display: none; }
}
@media (max-width: 720px) {
    .hero { height: min(100vw, 620px); }
    .hero-img { object-position: 50% 100%; }
    .hero-slide::after { background: linear-gradient(180deg, rgba(18, 26, 63, .28), rgba(18, 26, 63, 0) 55%); }
    .hero-copy { right: 18px; left: 18px; width: auto; top: 18px; bottom: auto; gap: 10px; }
    .hero-title { font-size: clamp(22px, 6.6vw, 32px); }
    .hero-cta { font-size: 13px; padding: 9px 14px; border-radius: 12px; }
    .hero-arrow { top: 62%; width: 34px; height: 34px; margin-top: -17px; }
    .hero-arrow.next-side { right: 8px; } .hero-arrow.prev-side { left: 8px; }
}

/* دکمه‌های قبلی/بعدی ردیف‌های افقی (فقط وقتی ردیف قابل اسکرول است دیده می‌شوند) */
.scroll-wrap { position: relative; min-width: 0; }
.offers-in > .scroll-wrap { flex: 1; min-width: 0; }
.scroll-nav { display: none; position: absolute; top: 50%; z-index: 4; width: 38px; height: 38px; margin-top: -19px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: var(--navy); box-shadow: 0 6px 16px rgba(18, 26, 63, .2); place-items: center; cursor: pointer; transition: opacity .2s, transform .15s; }
.scroll-nav:hover { transform: scale(1.06); }
.scroll-wrap.is-scrollable .scroll-nav { display: grid; }
.scroll-nav.is-prev { right: -8px; }
.scroll-nav.is-prev svg { transform: rotate(180deg); }
.scroll-nav.is-next { left: -8px; }
.scroll-nav:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 480px) {
    .scroll-nav { width: 34px; height: 34px; margin-top: -17px; }
    .scroll-nav.is-prev { right: -4px; }
    .scroll-nav.is-next { left: -4px; }
}



/* =====================================================================
   کد تخفیف اولین خرید در سبد خرید
   ===================================================================== */
.coupon { padding: 14px; border-radius: 18px; background: #F6F8FF; border: 1.5px dashed #C3CEF5; }
.coupon-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.coupon-label { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.coupon-label .ic, .coupon-guest .ic { flex: none; color: var(--coral-text); }
.coupon-row { display: flex; gap: 8px; }
.coupon .coupon-row input.coupon-input[name=code] { flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; box-shadow: none; }
.coupon .coupon-row input.coupon-input[name=code]:not(:placeholder-shown) { direction: ltr; text-align: left; }
.coupon .coupon-row input.coupon-input[name=code]::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--faint); }
.coupon .coupon-row input.coupon-input[name=code]:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(30, 71, 255, .12); }
.coupon .coupon-row.is-invalid input.coupon-input[name=code] { border-color: var(--coral); background: #FFF7F9; }
.coupon-btn { flex: none; height: 46px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.coupon-btn:hover { background: var(--blue); }
.coupon-btn.is-busy { opacity: .7; pointer-events: none; }
.coupon .error { margin: 0; font-size: 13px; }

.coupon-applied { display: flex; align-items: center; gap: 8px; }
.coupon-ok { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.coupon-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.7; }
.coupon-txt b { font-size: 13.5px; color: var(--green); white-space: nowrap; }
.coupon-txt bdi { font-family: inherit; letter-spacing: .05em; }
.coupon-txt small { font-size: 12.5px; color: var(--muted); }
.coupon-applied form { margin: 0; }
.coupon-remove { padding: 7px 12px; border: 0; border-radius: 11px; background: #fff; color: var(--coral-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.coupon-remove:hover { background: var(--coral-soft); }
.coupon:has(.coupon-applied) { background: #F2FBF6; border-color: #A9DDC2; border-style: solid; }

.coupon-guest { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.coupon-guest .ic { margin-top: 4px; }
.coupon-guest a { color: var(--blue); font-weight: 700; }

@media (max-width: 480px) {
    .coupon { padding: 12px; }
    .coupon-btn { padding: 0 16px; }
}


/* پرداخت: پیام موفق، کد پیگیری و بررسی دوباره */
.od-alert.is-green { border-color: #BFE8D2; border-inline-start-color: var(--green); background: #F2FBF6; }
.od-alert.is-green .od-alert-ic { color: var(--green); }
.od-ref { font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.od-check { margin-top: 10px; font-size: 14px; padding: 9px 14px; }


/* فرصت پرداخت: یک خط کوچک زیر دکمه پرداخت */
.od-deadline { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.od-deadline b { font-weight: 800; color: var(--navy); letter-spacing: .03em; }
.od-deadline.is-urgent, .od-deadline.is-urgent b { color: var(--coral-text); }


/* =====================================================================
   سفارش‌های من و پیگیری سفارش
   ===================================================================== */
.ol-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ol-head h1 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.5; }

.ol-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.ol-tabs::-webkit-scrollbar { display: none; }
.ol-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 14px; background: #fff; color: var(--ink-2); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: color .15s, background .15s; }
.ol-tab:hover { color: var(--blue); }
.ol-tab.is-active { background: var(--navy); color: #fff; }
.ol-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; display: inline-grid; place-items: center; }
.ol-tab.is-active .ol-count { background: rgba(255, 255, 255, .18); color: #fff; }

.ol-list { display: flex; flex-direction: column; gap: 14px; }
.ol-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.ol-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ol-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ol-number { font-weight: 800; font-size: 16.5px; color: var(--navy); }
.ol-number:hover { color: var(--blue); }
.ol-card .od-status { padding: 6px 14px; font-size: 13px; flex: none; }

.ol-mid { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ol-thumbs { display: flex; gap: 8px; align-items: center; min-width: 0; }
.ol-more { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-weight: 800; display: grid; place-items: center; flex: none; }
.ol-facts { display: flex; gap: 28px; margin: 0; }
.ol-facts div { display: flex; flex-direction: column; gap: 2px; }
.ol-facts dt { font-size: 12.5px; color: var(--muted); }
.ol-facts dd { margin: 0; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ol-amount { color: var(--navy); }

.ol-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ol-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.ol-hint .ic { color: var(--faint); }
.ol-hint.is-blue, .ol-hint.is-blue .ic { color: var(--blue); font-weight: 700; }
.ol-btn { padding: 9px 16px; font-size: 14px; border-radius: 13px; }
.ol-empty { margin-top: 4px; }

/* پیگیری در صفحه سفارش */
.od-track-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 4px; }
.od-track-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 0 4px; }
.od-track-steps li + li::before { content: ""; position: absolute; top: 21px; right: calc(-50% + 26px); left: calc(50% + 26px); height: 3px; border-radius: 3px; background: var(--line-2); }
.od-track-steps li.is-done + li::before, .od-track-steps li.is-done + li.is-current::before { background: var(--green); }
.od-track-dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #F1F4FF; color: var(--faint); border: 2px solid var(--line-2); }
.od-track-steps li.is-done .od-track-dot { background: var(--green); border-color: var(--green); color: #fff; }
.od-track-steps li.is-current .od-track-dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(30, 71, 255, .14); }
.od-track-steps strong { font-size: 14px; color: var(--faint); }
.od-track-steps li.is-done strong { color: var(--green); }
.od-track-steps li.is-current strong { color: var(--navy); }
.od-track-steps small { font-size: 12.5px; color: var(--muted); min-height: 20px; }

.od-tracking { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #F5F8FF; border: 1px solid #D6E0FF; }
.od-tracking > div { display: flex; flex-direction: column; gap: 2px; }
.od-tracking b { font-size: 18px; letter-spacing: .06em; color: var(--navy); text-align: right; }
.od-tracking .btn { padding: 9px 16px; font-size: 14px; }
.od-track-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
    .ol-head h1 { font-size: 22px; }
    .ol-card { padding: 16px; border-radius: 20px; gap: 12px; }
    .ol-number { font-size: 15px; }
    .ol-mid { flex-direction: column; align-items: stretch; gap: 12px; }
    .ol-facts { justify-content: space-between; gap: 12px; }
    .ol-thumbs .co-thumb, .ol-more { width: 50px; height: 50px; }
    .ol-foot { flex-wrap: wrap; }
    .ol-foot .ol-btn { flex: 1; justify-content: center; }
    .ol-hint { width: 100%; }
    .ol-foot > span:empty { display: none; }
    .od-track-dot { width: 36px; height: 36px; }
    .od-track-steps li + li::before { top: 17px; right: calc(-50% + 22px); left: calc(50% + 22px); }
    .od-track-steps strong { font-size: 12.5px; }
    .od-track-steps small { font-size: 11px; }
}


/* =====================================================================
   صفحه‌های محتوایی: پرسش‌های متداول، تماس با ما، درباره ما، قوانین
   ===================================================================== */
.pg { padding-top: 4px; padding-bottom: 12px; }
.pg-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 26px 28px; border-radius: var(--r-lg); background: linear-gradient(120deg, #fff, #F2F5FF); box-shadow: var(--shadow-sm); }
.pg-hero-ic { width: 64px; height: 64px; flex: none; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(140deg, var(--blue), #7C9BFF); color: #fff; box-shadow: 0 12px 24px rgba(30, 71, 255, .25); }
.pg-hero-ic.coral { background: linear-gradient(140deg, var(--coral), #FF9DB0); color: var(--coral-ink); box-shadow: 0 12px 24px rgba(255, 92, 122, .3); }
.pg-hero h1 { font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.4; }
.pg-hero p { color: var(--muted); margin-top: 4px; }
.pg-hero a { color: var(--blue); font-weight: 700; }

/* پرسش‌های متداول */
.faq-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.faq-nav { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.faq-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.faq-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.faq-nav a .ic { color: var(--blue); }
.faq-nav small { margin-inline-start: auto; font-size: 12px; min-width: 22px; text-align: center; padding: 0 6px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); }
.faq-groups { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.faq-group { scroll-margin-top: 110px; }
.faq-group h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.faq-group h2 .ic { color: var(--blue); }
.faq-item { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); margin-bottom: 10px; border: 1.5px solid transparent; transition: border-color .15s; }
.faq-item[open] { border-color: #CFDAFF; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px; line-height: 1.8; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { flex: none; color: var(--blue); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 18px; }
.faq-answer { padding: 0 20px 18px; color: var(--ink-2); line-height: 2; font-size: 14.5px; }
.faq-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--navy), #2A3BA8); color: #fff; }
.faq-more div { display: flex; flex-direction: column; gap: 2px; }
.faq-more strong { font-size: 18px; }
.faq-more span { color: #C9D1F5; font-size: 14px; }

/* تماس با ما */
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.ct-form .form-head h2 { font-size: 20px; font-weight: 800; margin: 0; line-height: 1.5; }
.ct-form select { width: 100%; }
.hp { position: absolute; left: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* تله ربات؛ left: -10000px قبلی در صفحه راست‌چین اسکرول افقی می‌ساخت */
.ct-side { display: flex; flex-direction: column; gap: 18px; }
.ct-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.ct-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.ct-list { display: flex; flex-direction: column; gap: 14px; }
.ct-list li { display: flex; gap: 12px; align-items: flex-start; }
.ct-ic { width: 44px; height: 44px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.ct-list div { display: flex; flex-direction: column; min-width: 0; line-height: 1.8; }
.ct-list small { color: var(--muted); font-size: 12.5px; }
.ct-list a, .ct-list b { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.ct-list a { text-align: right; }
.ct-list a:hover { color: var(--blue); }
.ct-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ct-social a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: #F4F6FF; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.ct-social a:hover { background: var(--blue-soft); color: var(--blue); }
.ct-map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: #E7ECFF; aspect-ratio: 4 / 3; }
.ct-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.ct-map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ct-map-actions .btn { flex: 1 1 160px; justify-content: center; }

@media (max-width: 1024px) {
    .faq-layout, .ct-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 8px; }
    .faq-nav::-webkit-scrollbar { display: none; }
    .faq-nav a { flex: none; }
}
@media (max-width: 720px) {
    .pg-hero { padding: 20px; gap: 14px; align-items: flex-start; }
    .pg-hero-ic { width: 52px; height: 52px; border-radius: 18px; }
    .pg-hero h1 { font-size: 23px; }
    .faq-item summary { padding: 14px 16px; font-size: 14.5px; }
    .faq-answer { padding: 0 16px 16px; font-size: 14px; }
}


/* جست‌وجوی پرسش‌های متداول */
.faq-search { position: relative; display: flex; align-items: center; gap: 10px; margin: -6px 0 22px; padding: 0 18px; height: 60px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.faq-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(30, 71, 255, .12); }
.faq-search > .ic { color: var(--blue); flex: none; }
.faq-search input[type=search] { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: 16px; color: var(--navy); }
.faq-search input[type=search]:focus { outline: none; }
.faq-search input::placeholder { color: var(--faint); }
.faq-count { flex: none; font-size: 13px; font-weight: 700; color: var(--blue); }
[data-faq][hidden], .faq-group[hidden], .faq-item[hidden], .faq-nav a[hidden], .faq-none[hidden] { display: none !important; }
@media (max-width: 720px) {
    .faq-search { height: 54px; border-radius: 18px; padding: 0 14px; }
    .faq-search input[type=search] { font-size: 15px; }
}

/* تماس با ما: فقط برای کاربر واردشده */
.ct-login { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 26px 30px; }
.ct-login-ic { width: 70px; height: 70px; border-radius: 24px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.ct-login strong { font-size: 19px; font-weight: 800; }
.ct-login p { color: var(--muted); max-width: 440px; line-height: 2; }
.ct-login-actions { display: flex; gap: 10px; margin-top: 6px; }
.ct-login-actions .btn { min-width: 120px; border-radius: 14px; padding: 12px 22px; }
.ct-login-faq { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--blue); }
.ct-sender { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: #F4F6FF; font-size: 14px; color: var(--ink-2); }
.ct-sender .ic { color: var(--blue); }

/* =====================================================================
   قدم ۴۰ — درباره ما، صفحه‌های محتوایی و ۴۰۴ (مطابق طرح تأییدشده)
   ===================================================================== */

/* ---------- درباره ما ---------- */
.about-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 50px; border-radius: var(--r-lg); background: linear-gradient(120deg, #fff, #E6ECFF); box-shadow: var(--shadow); }
.about-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about-text .sec-title h1 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.4; }
.about-body { font-size: 17px; line-height: 2.2; color: var(--ink-2); }
.about-body > * + * { margin-top: 10px; }
.about-body strong { color: var(--navy); }
.about-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.about-art { position: relative; height: 340px; border-radius: 30px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding-bottom: 30px; background: linear-gradient(150deg, var(--blue), #7B5CFF 60%, var(--coral)); }
.about-art img { position: relative; height: var(--h, 220px); width: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .3)); }

.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.why-card strong { font-size: 18px; }
.why-card span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.9; }
.why-ic { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; }
.why-ic.t-blue { background: #EAF0FF; color: var(--blue); }
.why-ic.t-coral { background: #FFE8ED; color: #E5486B; }
.why-ic.t-sky { background: #E3F6FF; color: #0B6E99; }
.why-ic.t-violet { background: #EFE8FF; color: #5B3CC4; }
.about-steps { padding-top: 50px; }

/* ---------- قوانین و روش‌های ارسال ---------- */
.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.pg-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 32px; }
.pg-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.pg-body { font-size: 15.5px; line-height: 2.15; color: var(--ink-2); }
.pg-body > * + * { margin-top: 14px; }
.pg-body h2 { font-family: var(--display); font-size: 21px; font-weight: 800; color: var(--navy); margin-top: 28px; padding-inline-start: 14px; border-inline-start: 4px solid var(--blue); line-height: 1.6; }
.pg-body h2:first-child { margin-top: 0; }
.pg-body ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-body li { position: relative; padding-inline-start: 22px; }
.pg-body li::before { content: ""; position: absolute; right: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.pg-body strong { color: var(--navy); font-weight: 800; }
.pg-links { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.pg-links strong { font-size: 16px; margin-bottom: 6px; }
.pg-links a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; font-weight: 600; color: var(--ink-2); }
.pg-links a:hover { background: var(--blue-soft); color: var(--blue); }

/* ---------- ۴۰۴ ---------- */
.nf-card { position: relative; overflow: hidden; margin-top: 26px; padding: 60px 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.nf-code { display: flex; align-items: center; gap: 6px; direction: ltr; }
.nf-code span { font-family: var(--display); font-weight: 800; font-size: 170px; line-height: 1; }
.nf-code .b { color: var(--blue); }
.nf-code .c { color: var(--coral); }
.nf-code img { height: 170px; width: auto; transform: rotate(12deg); filter: drop-shadow(0 12px 16px rgba(30, 45, 120, .18)); }
.nf-card h1 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.4; }
.nf-text { color: var(--muted); font-size: 16px; max-width: 460px; line-height: 2; }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1024px) {
    .about-hero { grid-template-columns: minmax(0, 1fr); padding: 34px; }
    .about-art { order: -1; }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-layout { grid-template-columns: minmax(0, 1fr); }
    .pg-side { position: static; }
}
@media (max-width: 720px) {
    .about-hero { padding: 0; gap: 0; background: none; box-shadow: none; overflow: visible; }
    .about-art { height: 200px; border-radius: 26px; padding-bottom: 16px; gap: 4px; }
    .about-art img { height: calc(var(--h, 220px) * .62); }
    .about-text { margin-top: 12px; padding: 22px 20px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); gap: 12px; }
    .about-text .sec-title h1 { font-size: 24px; }
    .about-body { font-size: 15px; line-height: 2.1; }
    .why-grid { gap: 12px; }
    .why-card { padding: 16px 14px; gap: 10px; border-radius: 22px; }
    .why-card strong { font-size: 14.5px; }
    .why-card span:last-child { display: none; }
    .why-ic { width: 44px; height: 44px; border-radius: 15px; }
    .why-ic .ic { width: 22px; height: 22px; }
    .about-steps { padding-top: 24px; }
    .pg-card { padding: 20px; }
    .pg-body { font-size: 14.5px; }
    .pg-body h2 { font-size: 18px; }
    .nf-card { margin-top: 14px; padding: 36px 18px 28px; gap: 12px; }
    .nf-code span { font-size: 110px; }
    .nf-code img { height: 110px; }
    .nf-card h1 { font-size: 24px; }
    .nf-text { font-size: 15px; }
    .nf-actions { flex-direction: column; align-self: stretch; }
    .nf-actions .btn { width: 100%; }
    .nf-actions .btn-ghost { display: none; }
}

/* ---------- درباره ما: کارت‌های داستان، مأموریت و ... (قدم ۴۲) ---------- */
.about-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.story-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px 30px; }
.story-card h2 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.5; margin-bottom: 12px; }
.story-card .pg-body h2 { font-size: 18px; }
.story-ic { width: 46px; height: 46px; flex: none; border-radius: 16px; display: grid; place-items: center; }
.story-ic.t-blue { background: #EAF0FF; color: var(--blue); }
.story-ic.t-coral { background: #FFE8ED; color: #E5486B; }
.story-ic.t-sky { background: #E3F6FF; color: #0B6E99; }
.story-ic.t-violet { background: #EFE8FF; color: #5B3CC4; }
@media (max-width: 1024px) {
    .about-story { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .about-story { gap: 12px; margin-top: 12px; }
    .story-card { padding: 20px; border-radius: 22px; }
    .story-card h2 { font-size: 18px; }
    .story-ic { width: 40px; height: 40px; border-radius: 14px; }
}

/* ---------- درباره ما: کاشی‌های عکس محصول و نوار ارتباط (قدم ۴۴) ---------- */
.about-art { display: block; padding: 0; }
.about-art .art-tile {
    position: absolute; top: 50%; left: 50%; height: 60%; width: auto; aspect-ratio: 1; padding: 12px; border-radius: 28px; background: #fff;
    box-shadow: 0 24px 44px rgba(18, 26, 63, .28); display: grid; place-items: center;
    animation: tileFloat 6s ease-in-out infinite;
}
.about-art .art-tile img { width: 100%; height: 100%; object-fit: contain; filter: none; border-radius: 18px; }
.about-art .art-tile.p1 { z-index: 3; --r: 0deg; height: 74%; animation-delay: -1s; }
.about-art .art-tile.p2 { z-index: 2; --r: 8deg; left: 81%; height: 56%; top: 55%; animation-delay: -3s; }
.about-art .art-tile.p3 { z-index: 2; --r: -8deg; left: 19%; height: 56%; top: 55%; animation-delay: -5s; }
.about-art .art-tile { transform: translate(var(--tx, -50%), -50%) rotate(var(--r, 0deg)); }
@keyframes tileFloat {
    0%, 100% { transform: translate(var(--tx, -50%), -50%) rotate(var(--r, 0deg)); }
    50% { transform: translate(var(--tx, -50%), calc(-50% - 8px)) rotate(var(--r, 0deg)); }
}

.reach .reach-list { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.reach-list a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, transform .2s; }
.reach-list a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.reach-list .step-ic { width: 58px; height: 58px; border-radius: 19px; flex: none; }
.reach-list small { display: block; color: #C9D1F5; font-size: 13px; }
.reach-list strong { display: block; color: #fff; font-size: 16.5px; font-weight: 800; overflow-wrap: anywhere; }
.about-contact { padding-top: 50px; }

@media (max-width: 720px) {
    .about-art .art-tile { padding: 8px; border-radius: 20px; }
    .about-art .art-tile img { border-radius: 14px; }
    .about-contact { padding-top: 24px; }
    .reach .reach-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .reach-list a { padding: 14px; }
    .reach-list .step-ic { width: 48px; height: 48px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .about-art .art-tile { animation: none; } }
/* =====================================================================
   قدم ۴۶ — نظرها و امتیازها (صفحه محصول)
   ===================================================================== */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { display: block; }
.pill-green { background: #DFF7EA; color: #127A4B; }
.pill-amber { background: #FFF1D6; color: #8A5A00; }

.pd-meta a { color: var(--blue); font-weight: 600; }
.pd-rating { display: inline-flex; align-items: center; gap: 8px; color: var(--muted) !important; font-weight: 500 !important; }

.pd-reviews { display: flex; flex-direction: column; gap: 14px; }
.pd-reviews .flash { margin: 0; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv-head h2 { margin: 0; }
.rv-score { display: inline-flex; align-items: center; gap: 8px; }
.rv-score strong { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1; }

.rv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-bars li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rv-bars b { text-align: left; color: var(--ink-2); font-weight: 700; }
.rv-bar { height: 8px; border-radius: 99px; background: #EEF1FB; overflow: hidden; }
.rv-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FFB020, #FFCB5C); }

.rv-item { padding: 18px; border-radius: 20px; background: #F7F8FF; display: flex; flex-direction: column; gap: 8px; }
.rv-item.is-mine { background: #FFFBF1; box-shadow: inset 0 0 0 1.5px #FFE2A8; }
.rv-item p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--ink-2); overflow-wrap: anywhere; }
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.rv-who { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-who .pill { padding: 3px 11px; font-size: 12.5px; }
.rv-av { width: 38px; height: 38px; flex: none; border-radius: 13px; display: grid; place-items: center; font-weight: 800; background: #DDE6FF; color: var(--blue); }
.rv-av.t1 { background: #FFE0E7; color: #E5486B; }
.rv-meta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.rv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px; }
.rv-empty .empty-ic { width: 62px; height: 62px; border-radius: 22px; }
.rv-empty .hint { max-width: 320px; margin: 0; }
.rv-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--blue); font-weight: 700; font-size: 14.5px; }

.rv-form { padding: 18px; border-radius: 20px; border: 2px dashed #C9D3FF; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 110px; }
.rv-form form { display: flex; flex-direction: column; gap: 12px; }
.rv-form .hint { margin: 0; }
.rv-form .btn { align-self: flex-start; }
.rv-form textarea { width: 100%; min-height: 104px; resize: vertical; }
.rv-form .error { margin: -6px 0 0; }

/* انتخاب ستاره: ترتیب در DOM ۵ تا ۱ است و با row-reverse، ستاره ۱ سمت راست می‌نشیند */
.rv-rate { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-rate legend { float: right; padding: 0; margin-left: 10px; font-size: 14px; color: var(--muted); }
.rv-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-stars label { cursor: pointer; padding: 2px; border-radius: 8px; line-height: 0; }
.rv-stars label svg path { fill: #E1E5F5; transition: fill .12s, transform .12s; }
.rv-stars input:checked + label svg path, .rv-stars input:checked + label ~ label svg path { fill: #FFB020; }
/* هنگام هاور: اول همه خاکستری، بعد ستاره زیر نشانگر و ستاره‌های سمت راستش زرد */
.rv-stars:hover label svg path { fill: #E1E5F5 !important; }
.rv-stars label:hover svg path, .rv-stars label:hover ~ label svg path { fill: #FFB020 !important; }
.rv-stars input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 1px; }
.rv-rate.has-error .rv-stars label svg path { fill: #F7D0D9; }

@media (max-width: 720px) {
    .rv-item { padding: 14px; border-radius: 18px; }
    .rv-score strong { font-size: 24px; }
    .rv-form { padding: 14px; }
    .rv-form .btn { align-self: stretch; }
}

/* =====================================================================
   قدم ۴۸ — علاقه‌مندی‌ها و منوی کناری حساب کاربری
   ===================================================================== */
/* قلب روشن (کالا در علاقه‌مندی‌ها است) */
.fav-form { display: contents; }
.pcard-fav.is-on, .pd-fav.is-on { background: var(--coral); border-color: var(--coral); color: #fff; }
.pcard-fav.is-on:hover, .pd-fav.is-on:hover { background: #E8486A; }
.pcard-fav.is-on .ic, .pd-fav.is-on .ic { fill: currentColor; }
.pcard-fav, .pd-fav { cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.pcard-fav.is-busy, .pd-fav.is-busy { opacity: .6; pointer-events: none; }
.pcard-fav.pop, .pd-fav.pop { animation: favPop .35s ease; }
@keyframes favPop { 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* صفحه‌های حساب: منوی کناری + محتوا */
.acc-page { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 32px; padding-bottom: 60px; }
.acc-side { position: sticky; top: 110px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; }
.acc-user { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.acc-av { width: 58px; height: 58px; flex: none; border-radius: 19px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(140deg, #5B7BFF, var(--blue)); }
.acc-user strong { display: block; font-size: 17px; }
.acc-user small { display: block; color: var(--muted); font-size: 13.5px; text-align: right; }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav a, .acc-out { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 15px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-2); text-align: right; cursor: pointer; transition: background .15s, color .15s; }
.acc-nav a .ic { color: var(--blue); }
.acc-nav a:hover { background: var(--blue-soft); }
.acc-nav a.is-active { background: var(--blue); color: #fff; box-shadow: 0 10px 20px rgba(30, 71, 255, .25); }
.acc-nav a.is-active .ic { color: #fff; }
.acc-out { color: var(--coral-text); }
.acc-nav .acc-s { display: none; }
.acc-out:hover { background: var(--coral-soft); }
.acc-main { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; min-width: 0; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.acc-head h1 { font-family: var(--display); font-size: 28px; font-weight: 800; }

.wl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wl-grid .pcard.is-leaving { opacity: 0; transform: scale(.94); transition: opacity .25s, transform .25s; }
.wl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 48px 16px; }
.wl-empty .empty-ic { background: var(--coral-soft); color: var(--coral-text); }
.wl-empty h2 { font-family: var(--display); font-size: 22px; font-weight: 800; }
.wl-empty p { color: var(--muted); max-width: 380px; }

@media (max-width: 1024px) {
    .acc-page { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
    .acc-side { position: static; padding: 8px; }
    .acc-user { display: none; }
    /* موبایل و تبلت: پنج کاشی هم‌اندازه در یک ردیف؛ آیکون بالا، نام پایین، همه کامل دیده می‌شوند */
    .acc-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .acc-nav form { display: flex; }
    .acc-nav a, .acc-out { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 4px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; text-align: center; }
    .acc-nav a.is-active { box-shadow: 0 8px 16px rgba(30, 71, 255, .22); }
}
@media (max-width: 720px) {
    .acc-nav a, .acc-out { font-size: 12px; gap: 5px; padding: 10px 2px; white-space: nowrap; }
    .acc-nav .acc-l { display: none; }
    .acc-nav .acc-s { display: inline; }
    .acc-nav .ic { width: 21px; height: 21px; }
    .acc-main { padding: 16px; border-radius: 24px; }
    .acc-head h1 { font-size: 22px; }
    .wl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   قدم ۴۹ — ورود، ثبت‌نام، رمز، پیشخوان، اطلاعات حساب و نشانی‌ها
   ===================================================================== */
.btn-sm { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: 14px; }

/* ---------- ورود، ثبت‌نام و رمز: کارت دوستونه (ستون روشن مزیت‌ها + فرم) ---------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 32px; padding-bottom: 56px; }
.auth-card { width: 100%; max-width: 1000px; display: grid; grid-template-columns: 390px minmax(0, 1fr); background: #fff; border-radius: 32px; box-shadow: 0 28px 70px rgba(30, 45, 120, .13); overflow: hidden; }

/* ستون کناری روشن با لوگوی آبی */
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 44px 36px; background: linear-gradient(165deg, #EEF2FF 0%, #E4EAFF 55%, #EFE8FF 100%); }
.as-bubble { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 55%, rgba(124, 155, 255, .18)); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset -4px -6px 12px rgba(91, 120, 255, .12); }
.as-bubble.b1 { width: 120px; height: 120px; top: -34px; left: -30px; }
.as-bubble.b2 { width: 34px; height: 34px; top: 120px; left: 46px; }
.as-bubble.b3 { width: 70px; height: 70px; bottom: 40px; left: 22px; }
.as-bubble.b4 { width: 22px; height: 22px; bottom: 130px; right: 30px; }
.auth-side .auth-brand { position: relative; display: block; width: max-content; }
.auth-side .auth-brand img { display: block; height: 60px; width: auto; }
.as-lead { position: relative; font-size: 16.5px; font-weight: 700; line-height: 2.1; color: var(--navy); }
.as-perks { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.as-perks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .78); box-shadow: 0 6px 18px rgba(30, 45, 120, .06); }
.as-perks strong { display: block; font-size: 15px; color: var(--navy); }
.as-perks small { display: block; font-size: 13px; color: var(--muted); line-height: 1.8; }
.as-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; }
.as-ic.t-blue { background: #E3EAFF; color: var(--blue); }
.as-ic.t-coral { background: #FFE6EC; color: #E5486B; }
.as-ic.t-violet { background: #EEE7FF; color: #5B3CC4; }

/* ستون فرم */
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 44px 60px; min-width: 0; }
.auth-head { margin-bottom: 24px; }
.auth-brand-m { display: none; }
.auth-card h1 { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.5; color: var(--navy); }
.auth-sub { color: var(--muted); font-size: 15px; line-height: 2; margin-top: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .field label { margin: 0; }
.auth-form .check { margin: 0; font-size: 14px; }
.auth-form .between { margin: 0; }
.auth-form .between a, .auth-switch a, .auth-resend a { color: var(--blue); font-weight: 700; }
.auth-switch a.coral { color: var(--coral-text); }
.auth-submit { min-height: 56px; font-size: 16.5px; margin-top: 6px; border-radius: 16px; box-shadow: 0 14px 28px rgba(30, 71, 255, .25); }
.auth-switch { text-align: center; color: var(--muted); margin-top: 22px; padding-top: 18px; border-top: 1px dashed #E3E7F5; font-size: 14.5px; }
.auth-resend { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }

/* کادر ورودی با آیکون سمت راست (دکمه چشم رمز سمت چپ می‌ماند) */
.in-ic { position: relative; }
.in-ic > .ic { position: absolute; right: 16px; top: 26px; transform: translateY(-50%); color: #9AA2C6; pointer-events: none; z-index: 1; }
.in-ic input:not([type=checkbox]):not([type=radio]):not([type=search]) { padding-right: 48px; min-height: 52px; border-radius: 14px; }
.in-ic input[dir=ltr] { text-align: right; }
.in-ic .pw-field { width: 100%; }
.in-ic + .hint, .pw-field + .hint { margin-top: 2px; }

/* ---------- پیشخوان ---------- */
.acc-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.acc-hello { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 30px 32px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(120deg, #2B47E0, #6A4CFF); box-shadow: 0 20px 40px rgba(43, 71, 224, .25); }
.acc-hello h1 { font-family: var(--display); font-size: 30px; font-weight: 800; }
.acc-hello p { margin-top: 6px; color: rgba(255, 255, 255, .9); }
.acc-hello-btn { position: relative; background: #fff; color: var(--navy); font-weight: 800; padding: 13px 22px; border-radius: 16px; white-space: nowrap; box-shadow: 0 10px 22px rgba(18, 26, 63, .18); }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acc-stat { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); transition: transform .15s; }
.acc-stat:hover { transform: translateY(-2px); }
.acc-stat small { display: block; color: var(--muted); font-size: 13.5px; }
.acc-stat strong { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.2; }
.acc-stat-ic { width: 54px; height: 54px; flex: none; border-radius: 18px; display: grid; place-items: center; }
.acc-stat-ic.t-blue { background: #EAF0FF; color: var(--blue); }
.acc-stat-ic.t-coral { background: #FFE8ED; color: #E5486B; }
.acc-stat-ic.t-violet { background: #EFE8FF; color: #5B3CC4; }
.acc-head h2 { font-family: var(--display); font-size: 22px; font-weight: 800; }
.acc-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acc-orders li + li { border-top: 1px solid var(--line); }
.acc-orders a { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto auto; align-items: center; gap: 16px; padding: 14px 6px; }
.acc-orders a:hover .ao-go { color: var(--blue); }
.ao-num { display: flex; flex-direction: column; font-weight: 800; }
.ao-num small { color: var(--muted); font-weight: 400; font-size: 13px; }
.ao-items { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ao-items img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: #F6F7FD; }
.ao-go { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: 14px; }

/* ---------- اطلاعات حساب ---------- */
.acc-main .form-grid { padding: 0; }
.acc-main .form-grid .field.full .btn { align-self: flex-start; }
.acc-stack > .acc-main { margin: 0; }

/* ---------- نشانی‌ها ---------- */
.addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.addr-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); background: #FBFCFF; }
.addr-card.is-default { border-color: #B9C8FF; background: #F5F8FF; }
.addr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr-top strong { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; }
.addr-top strong .ic { color: var(--blue); }
.addr-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.addr-tags .pill { padding: 3px 11px; font-size: 12.5px; }
.addr-text { line-height: 2; color: var(--ink-2); }
.addr-meta { font-size: 13.5px; color: var(--muted); }
.addr-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 4px; }
.addr-acts form { margin: 0; }
.btn-del { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--coral-text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; margin-inline-start: auto; }
.btn-del:hover { background: var(--coral-soft); }

@media (max-width: 900px) {
    .auth-card { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
    .auth-side { display: none; }
    .auth-head { text-align: center; }
    .auth-brand-m { display: block; width: max-content; margin: 0 auto 12px; }
    .auth-brand-m img { display: block; height: 56px; width: auto; }
    .auth-main { padding: 0 40px 34px; }
    .auth-head { margin: 0 -40px 24px; padding: 32px 40px 22px; background: linear-gradient(180deg, #EEF2FF, #fff); }
}

@media (max-width: 1024px) {
    .acc-stats { gap: 10px; }
}
@media (max-width: 720px) {
    .auth-wrap { padding-top: 12px; }
    .auth-card { border-radius: 26px; }
    .auth-main { padding: 0 18px 24px; }
    .auth-head { margin: 0 -18px 20px; padding: 24px 18px 18px; background: linear-gradient(180deg, #EEF2FF, #fff); }
    .auth-card h1 { font-size: 22px; }
    .auth-brand-m img { height: 48px; }
    /* سفارش‌های من و پرسش‌های متداول: زبانه‌ها در چند ردیف، بدون بریده‌شدن */
    /* سفارش‌های من: شش زبانه در دو ستون مرتب، بدون بریده‌شدن */
    .ol-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 2px 0 4px; }
    .ol-tab { justify-content: center; padding: 10px 8px; font-size: 13.5px; white-space: nowrap; }
    .ol-facts { flex-wrap: wrap; }
    /* پرسش‌های متداول و مرتب‌سازی محصولات: چند ردیف به‌جای بریده‌شدن */
    .faq-nav { flex-wrap: wrap; overflow: visible; }
    .sortbar { flex-wrap: wrap; }
    .sorts { flex-wrap: wrap; overflow: visible; flex-basis: 100%; order: 3; }
    /* مراحل پیگیری سفارش در صفحه جزئیات */
    .od-track-dot { width: 36px; height: 36px; }
    .od-track-steps li + li::before { top: 17px; right: calc(-50% + 22px); left: calc(50% + 22px); }
    .od-track-steps strong { font-size: 12.5px; }
    .od-track-steps small { font-size: 11px; }
    .acc-hello { padding: 22px 20px; border-radius: 26px; }
    .acc-hello h1 { font-size: 24px; }
    .acc-hello-btn { width: 100%; text-align: center; }
    .acc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .acc-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 22px; }
    .acc-stat-ic { width: 42px; height: 42px; border-radius: 14px; }
    .acc-stat strong { font-size: 22px; }
    .acc-stat small { font-size: 12px; }
    .acc-orders a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .ao-items { grid-row: 1; grid-column: 2; }
    .ao-go { display: none; }
    .acc-orders .pill { justify-self: start; }
    .acc-main .form-grid { grid-template-columns: minmax(0, 1fr); }
    .addr-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   قدم ۵۳ — اصلاح موبایل و تبلت: منوی حساب و نوار جست‌وجو
   ===================================================================== */
/* منوی حساب: همه گزینه‌ها و «خروج» در یک ردیف */
@media (max-width: 1024px) {
    .acc-nav { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
    .acc-nav form { display: flex; margin: 0; min-width: 0; }
    .acc-nav a, .acc-out { min-width: 0; }
}
@media (max-width: 480px) {
    .acc-side { padding: 6px; }
    .acc-nav { gap: 2px; }
    .acc-nav a, .acc-out { font-size: 11.5px; padding: 10px 0; border-radius: 14px; }
}
@media (max-width: 380px) {
    .acc-nav a, .acc-out { font-size: 10.5px; }
    .acc-nav .ic { width: 20px; height: 20px; }
}

/* تبلت و پنجره باریک: جست‌وجو یک ردیف کامل زیر لوگو و دکمه‌ها */
@media (min-width: 721px) and (max-width: 960px) {
    .header-row { flex-wrap: wrap; row-gap: 12px; }
    .header-row .search { order: 3; flex: 1 0 100%; }
    .header-row .header-actions { margin-inline-start: auto; }
}
