/* نارون — صفحات داخلی (فاز ۲): همان رنگ‌ها، فاصله‌ها و گوشه‌های صفحهٔ اصلی */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pad { padding: 12px var(--pad); }
.pad-x { padding: 0 var(--pad); }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.block { display: block; }
.center { text-align: center; }
.teal { color: var(--teal); }
.coral { color: var(--coral); }
.warn { color: #B26A00; }
.h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin: 14px 0 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.no-scroll { overflow: hidden; }
.icon-btn .dot { position: absolute; top: 9px; left: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.icon-btn.sm { width: 40px; height: 40px; }
.icon-btn.sm svg { width: 20px; height: 20px; }
.ph-text { color: #8C92A0; }
a.search { text-decoration: none; }
body:has(.buybar) .app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body:has(.buybar) .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
#tabbar[hidden] { display: none; }

/* ---------- سربرگ صفحه ---------- */
.phead {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 4px; min-height: 56px;
  padding: 6px 6px 6px var(--pad); padding-inline-start: 6px; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.phead h1 { flex: 1; margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phead h1:focus { outline: none; }
.phead > h1:first-child { padding-inline-start: 10px; }
.phead-actions { display: flex; align-items: center; gap: 2px; }
.phead.overlay { position: absolute; inset-inline: 0; background: transparent; border: 0; backdrop-filter: none; max-width: 480px; margin: 0 auto; }
.phead.overlay .icon-btn { background: rgba(255, 255, 255, .88); border-radius: 50%; width: 42px; height: 42px; box-shadow: var(--shadow); }
.phead.overlay .phead-actions { margin-inline-start: auto; gap: 8px; }
.fav-big[aria-pressed="true"] { color: var(--coral); }
.fav-big[aria-pressed="true"] svg { fill: var(--coral); }
.search-head { gap: 6px; padding-inline-end: var(--pad); }
.search-head form { flex: 1; }
.search-head .search { height: 42px; }

/* ---------- دکمه‌ها ---------- */
.btn { border: 0; cursor: pointer; text-decoration: none; gap: 6px; font-size: .95rem; transition: opacity .15s; }
.btn svg { width: 20px; height: 20px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.danger { background: var(--coral); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: .85rem; margin-top: 0; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; margin-top: 0; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.btn-col .btn { margin-top: 0; }
.link { color: var(--teal); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.link svg { width: 16px; height: 16px; }
.link.danger { color: var(--coral); }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; background: var(--teal-soft); color: var(--teal); border-radius: 8px; padding: 1px 8px; margin-inline-start: 6px; }
.pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--coral); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; font-weight: 700; }
.off-pill { background: var(--coral); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .72rem; font-weight: 700; margin-inline-start: 6px; }
.status { font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 10px; white-space: nowrap; background: #EEF1F6; color: var(--navy); }
.status.ok { background: var(--teal-soft); color: #0E7F75; }
.status.bad { background: var(--coral-soft); color: #C63E2C; }
.status.warn { background: #FFF4D6; color: #8A5A00; }
.status.muted { background: #F1F2F5; color: var(--muted); }

/* ---------- چیپ ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line);
  background: #fff; font-size: .85rem; white-space: nowrap; color: var(--ink); flex: none; text-decoration: none;
}
.chip svg { width: 15px; height: 15px; }
.chip.on { border-color: var(--teal); background: var(--teal-soft); color: #0E7F75; font-weight: 700; }
.chip.na { color: #B0B5C0; text-decoration: line-through; border-style: dashed; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- حالت‌ها ---------- */
.state p { margin: 0 0 4px; }
.state .btn { margin: 10px 4px 0; }
.note { display: flex; gap: 10px; margin: 12px var(--pad); padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); font-size: .88rem; line-height: 1.7; }
.note svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.note.warn { background: #FFF6E0; }
.note.warn svg { color: #B26A00; }
.note p, .note ul { margin: 4px 0 8px; padding-inline-start: 16px; }
.note .btn-row { margin-top: 8px; }
.dev-code { font-size: 1.3rem; letter-spacing: 4px; color: var(--navy); }

/* ---------- شبکهٔ محصولات ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--pad); }
.card.g { flex: none; max-width: none; }
.card .meta { display: flex; align-items: center; gap: 6px; min-height: 18px; }
.card .meta .rate { margin: 0; }
.card-title { display: block; }
.card .img { display: block; }
.more-sentinel { padding: 8px var(--pad) 20px; text-align: center; }
.count { padding: 4px var(--pad); font-size: .8rem; color: var(--muted); }
.list-tools { display: flex; align-items: center; gap: 8px; padding: 10px 0 4px var(--pad); padding-inline-start: var(--pad); }
.tool-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: .85rem; }
.tool-btn svg { width: 18px; height: 18px; }
.sort-chips { padding: 2px 0 2px var(--pad); gap: 6px; scroll-padding-inline: 0; }
.active-chips { gap: 6px; padding: 4px var(--pad) 0; }

/* ---------- دسته‌بندی ---------- */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px var(--pad) 4px; }
.quick-links a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--bg-soft); font-size: .8rem; font-weight: 600; color: var(--navy); }
.quick-links svg { color: var(--teal); }
.cat-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; padding: 14px var(--pad); }
.cat-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cat-grid .ci { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.cat-grid img { width: 100%; height: 100%; object-fit: cover; }
.cat-grid .cn { font-size: .8rem; font-weight: 600; line-height: 1.5; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 8px var(--pad) 0; font-size: .8rem; color: var(--muted); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs a { color: var(--teal); }
.crumbs.small { padding: 0 0 6px; }
.in-search { padding: 10px var(--pad) 4px; }
.cat-banner { display: flex; align-items: center; justify-content: space-between; margin: 10px var(--pad); border-radius: 16px; overflow: hidden; min-height: 104px; }
.cat-banner > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cat-banner b { color: var(--navy); font-size: 1.1rem; }
.cat-banner img { width: 45%; align-self: stretch; object-fit: cover; }
.row-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); text-align: right; font-size: .95rem; }
.row-link > span { flex: 1; }
.row-link svg:last-child { width: 18px; height: 18px; color: var(--muted); }
.row-link.strong { color: var(--teal); font-weight: 700; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px var(--pad); }
.brand-chip.big { min-width: 0; height: 72px; }

/* ---------- جست‌وجو ---------- */
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hist a { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 46px; color: var(--ink); }
.hist svg { width: 18px; height: 18px; color: var(--muted); }
.s-h { margin: 12px var(--pad) 2px; font-size: .75rem; color: var(--muted); }
.s-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px var(--pad); border-bottom: 1px solid var(--line); font-size: .92rem; }
.s-row svg { width: 18px; height: 18px; color: var(--muted); }
.s-row img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.s-row.strong { color: var(--teal); font-weight: 700; justify-content: space-between; }
.s-price { margin-inline-start: auto; color: var(--navy); font-weight: 700; font-size: .8rem; white-space: nowrap; }

/* ---------- محصول ---------- */
.gallery { position: relative; background: #F7F8FA; }
.g-track { gap: 0; padding: 0; scroll-padding-inline: 0; }
.g-item { flex: 0 0 100%; aspect-ratio: 1 / .92; display: grid; place-items: center; background: #F7F8FA; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: contain; }
.g-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; direction: ltr; }
.g-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 41, 90, .2); }
.g-dots i.on { background: var(--teal); }
.pd-main { padding: 14px var(--pad) 0; }
.brand-link { color: var(--teal); font-weight: 700; font-size: .85rem; }
.pd-title h2 { margin: 2px 0 6px; font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; }
.pd-meta a { display: inline-flex; align-items: center; gap: 4px; }
.stars { display: inline-flex; align-items: center; gap: 3px; }
.stars svg { width: 16px; height: 16px; color: var(--gold); fill: var(--gold); stroke-width: 1; }
.stars.sm svg { width: 13px; height: 13px; }
.axis { margin-top: 16px; }
.axis-label { font-size: .88rem; margin-bottom: 8px; }
.axis-values { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.swatch i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch.on { border-color: var(--teal); }
.swatch.na { opacity: .4; }
.offer-box { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 14px 8px; }
.offer-box.oos { padding: 14px; text-align: center; }
.ob-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ob-row:last-of-type { border-bottom: 0; }
.ob-row svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.ob-row.warn svg { color: #B26A00; }
.offer-box .row-link { padding: 0; border-top: 1px solid var(--line); border-bottom: 0; color: var(--teal); font-weight: 700; font-size: .88rem; }
.pd-short { font-size: .92rem; line-height: 1.9; color: #3A4150; }
.accordions { margin-top: 10px; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; color: var(--navy); cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 20px; height: 20px; transition: transform .2s; }
.acc[open] summary svg { transform: rotate(180deg); }
.acc-body { padding-bottom: 14px; font-size: .9rem; line-height: 1.9; }
.acc-body h4 { margin: 8px 0 4px; font-size: .85rem; color: var(--muted); }
.specs { display: grid; grid-template-columns: 38% 1fr; margin: 0; }
.specs dt, .specs dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.specs dt { color: var(--muted); }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: right; }
.tbl th { color: var(--muted); font-weight: 600; }
.pd-sec { margin-top: 18px; }
.dist { display: grid; gap: 4px; margin-bottom: 10px; }
.dist-row { display: grid; grid-template-columns: 20px 1fr 32px; align-items: center; gap: 8px; font-size: .8rem; }
.dist-row i { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; }
.dist-row b { display: block; height: 100%; background: var(--gold); }
.reviews, .qa { list-style: none; margin: 0; padding: 0; }
.reviews li, .qa li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.reviews p, .qa p { margin: 6px 0; line-height: 1.8; }
.qa .ans { padding-inline-start: 14px; border-inline-start: 3px solid var(--teal-soft); color: #3A4150; }
.rev-imgs { display: flex; gap: 6px; }
.rev-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.sellers { list-style: none; margin: 0; padding: 0 var(--pad); }
.sellers li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.s-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.zoom-track { padding: 0; gap: 0; }
.zoom-item { flex: 0 0 100%; height: 70vh; overflow: auto; display: grid; place-items: center; }
.zoom-item img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s; touch-action: pinch-zoom; }
.zoom-item img.zoomed { transform: scale(2.2); cursor: zoom-out; }
.sheet.full { max-height: 96vh; }

/* ---------- نوار ثابت خرید ---------- */
.buybar {
  position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid var(--line);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(20, 41, 90, .06);
}
body[data-page="cart"] .buybar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 10px; }
body[data-page="cart"]:has(.buybar) .app { padding-bottom: calc(var(--tabbar-h) + 110px + env(safe-area-inset-bottom)); }
.buybar .btn { margin: 0; flex: 0 0 auto; min-width: 46%; min-height: 48px; }
.bb-price { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.bb-price b { font-size: 1.1rem; color: var(--navy); white-space: nowrap; }
.bb-price del { color: #9AA0AC; font-size: .8rem; }
.price-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-line del { color: #9AA0AC; font-size: .8rem; }
.price-line b { color: var(--navy); }

/* ---------- فرم ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.sheet .form { padding: 4px var(--pad) 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: #4E5566; }
.field span svg { width: 16px; height: 16px; vertical-align: -3px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #DCE0E7; border-radius: 12px; padding: 10px 12px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
input:disabled { background: var(--bg-soft); color: var(--muted); }
.invalid { border-color: var(--coral) !important; }
.form-error { color: #C63E2C; font-size: .85rem; margin: 0; min-height: 1em; }
.form-error:empty { min-height: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.check.big { align-items: center; gap: 10px; }
.check.big img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.inline-form { display: flex; gap: 8px; }
.inline-form .btn { margin: 0; flex: none; min-height: 48px; }
.otp { text-align: center; font-size: 1.5rem !important; letter-spacing: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; font-size: .92rem; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row i { flex: none; width: 46px; height: 28px; border-radius: 14px; background: #D5D9E0; position: relative; transition: .2s; }
.switch-row i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: .2s; }
.switch-row input:checked + i { background: var(--teal); }
.switch-row input:checked + i::after { right: 21px; }
.switch-row input:focus-visible + i { outline: 2px solid var(--teal); outline-offset: 2px; }
.filters fieldset { border: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.filters legend { font-weight: 800; color: var(--navy); font-size: .92rem; padding: 0; margin-bottom: 8px; }
.filters .two label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--muted); }
.filters .toggles { padding: 0; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line); font-size: .85rem; cursor: pointer; }
.chip-check .sw { position: absolute; right: 10px; top: 11px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); pointer-events: none; }
.chip-check .sw + input + span { padding-inline-start: 30px; }
.chip-check input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: #0E7F75; font-weight: 700; }
.chip-check input:focus-visible + span { outline: 2px solid var(--teal); }
.rate-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-input legend { font-size: .85rem; color: #4E5566; margin-bottom: 6px; width: 100%; }
.rate-input input { position: absolute; opacity: 0; }
.rate-input label { cursor: pointer; padding: 4px; }
.rate-input label svg { width: 32px; height: 32px; color: #C9CDD5; }
.rate-input input:checked ~ label svg, .rate-input label:hover svg, .rate-input label:hover ~ label svg { color: var(--gold); fill: var(--gold); }
.rate-input input:focus-visible + label { outline: 2px solid var(--teal); border-radius: 8px; }
.sticky-actions { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; margin-top: 8px; }
.sheet.wide .sheet-body { padding: 0 var(--pad); }
.sheet-body { padding-bottom: 8px; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: #D5D9E0; margin: 4px auto 6px; }
.confirm-text { padding: 4px var(--pad); margin: 0; font-size: .95rem; }
.sheet .btn-row { padding: 0 var(--pad); }
.list-select { list-style: none; margin: 0; padding: 0; }
.list-select button { width: 100%; display: flex; align-items: center; gap: 8px; text-align: right; padding: 12px var(--pad); min-height: 50px; border-bottom: 1px solid var(--line); }
.list-select button span { flex: 1; }
.list-select [aria-checked="true"] { color: var(--teal); font-weight: 700; }
.list-select svg { width: 20px; height: 20px; }
.vp-head { display: flex; gap: 12px; align-items: center; padding: 4px var(--pad) 8px; }
.vp-head img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #F7F8FA; }
.vp-price { margin-top: 4px; }
.vp-price del { color: #9AA0AC; font-size: .8rem; }
.vp-price b { color: var(--navy); }
#vpAxes { padding: 0 var(--pad); }
.sheet .sticky-actions { padding-inline: var(--pad); }

/* ---------- سبد ---------- */
.shipment { margin: 12px var(--pad); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 4px; }
.ship-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .95rem; margin: 0 0 4px; color: var(--navy); }
.ship-h svg { width: 20px; height: 20px; }
.ship-h .status { margin-inline-start: auto; }
.ship-eta svg { width: 16px; height: 16px; vertical-align: -3px; }
.ci-list { list-style: none; margin: 0; padding: 0; }
.ci { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ci:first-child { border-top: 0; }
.ci.na { opacity: .7; }
.ci-img { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #F7F8FA; display: grid; place-items: center; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: .9rem; }
.ci-body b { line-height: 1.6; }
.ci-body svg { width: 14px; height: 14px; vertical-align: -2px; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ci-price { display: flex; flex-direction: column; align-items: flex-end; }
.ci-price del { color: #9AA0AC; font-size: .78rem; }
.ci-price b { color: var(--navy); white-space: nowrap; }
.ci-links { display: flex; gap: 14px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 40px; }
.stepper button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--teal); }
.stepper button:disabled { color: #C9CDD5; }
.stepper svg { width: 18px; height: 18px; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.summary { margin: 12px var(--pad); padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); }
.sum-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: .9rem; }
.sum-row.total { font-weight: 800; color: var(--navy); border-top: 1px solid #E1E4EA; margin-top: 6px; padding-top: 10px; font-size: 1rem; }

/* ---------- مراحل خرید ---------- */
.steps { overflow: hidden; list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 12px var(--pad); counter-reset: s; border-bottom: 1px solid var(--line); }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); position: relative; }
.steps li::before { content: ""; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: -1; }
.steps li:first-child::before { display: none; }
.steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-style: normal; font-weight: 700; }
.steps i svg { width: 16px; height: 16px; }
.steps .on { color: var(--navy); font-weight: 700; }
.steps .on i { border-color: var(--teal); color: var(--teal); }
.steps .done i { background: var(--teal); border-color: var(--teal); color: #fff; }
.steps .done::before, .steps .on::before { background: var(--teal); }
.radio-cards { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.radio-cards li { display: flex; align-items: flex-start; gap: 4px; }
.rc { flex: 1; display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.rc.on, .rc:has(input:checked) { border-color: var(--teal); background: #F6FCFB; }
.rc input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.rc > div { flex: 1; }
.rc p { margin: 2px 0; font-size: .85rem; line-height: 1.7; }
.rc-end { white-space: nowrap; color: var(--navy); }
.ship-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; font-size: .9rem; }
.ship-card svg { width: 16px; height: 16px; vertical-align: -3px; }
.thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.thumbs img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #F7F8FA; border: 1px solid var(--line); }
.mini-items { list-style: none; margin: 8px 0 0; padding: 0; }
.mini-items li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: .85rem; }
.mini-items img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #F7F8FA; flex: none; }
.review-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; font-size: .9rem; }
.review-box p { margin: 4px 0 0; }
.review-box svg { width: 18px; height: 18px; vertical-align: -4px; }
.result { text-align: center; padding: 40px var(--pad) 20px; }
.result > svg { width: 72px; height: 72px; padding: 16px; border-radius: 50%; }
.result.ok > svg { background: var(--teal-soft); color: var(--teal); }
.result.bad > svg { background: var(--coral-soft); color: var(--coral); }
.result.wait > svg { background: #FFF4D6; color: #B26A00; }
.result h2 { color: var(--navy); margin: 14px 0 6px; }
.result p { color: #4E5566; line-height: 1.9; }
.result .btn-col { margin-top: 18px; }

/* ---------- ورود ---------- */
.auth, .auth-cta { padding: 20px var(--pad); }
.auth-logo { width: 84px; margin: 10px auto 18px; }
.auth-cta { text-align: center; }
.auth-cta h2 { color: var(--navy); margin: 0 0 6px; }

/* ---------- حساب ---------- */
.profile-card, .points-card { display: flex; align-items: center; gap: 12px; margin: 14px var(--pad) 0; padding: 14px; border-radius: var(--radius); }
.profile-card { background: var(--bg-soft); }
.profile-card > svg, .points-card > svg:last-child { margin-inline-start: auto; width: 20px; height: 20px; color: var(--muted); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); }
.points-card { background: var(--navy); color: #fff; }
.points-card > svg:first-child { width: 30px; height: 30px; color: var(--gold); }
.points-card span { display: block; font-size: .8rem; opacity: .8; }
.points-card > svg:last-child { color: #fff; }
.menu { list-style: none; margin: 10px 0 0; padding: 0; }
.menu a, .menu .mi { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); font-size: .95rem; }
.menu a > span:not(.pill), .menu .mi > span { flex: 1; }
.menu svg { width: 22px; height: 22px; color: var(--navy); }
.menu .chev { width: 18px; height: 18px; color: var(--muted); }
.menu-logout { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px var(--pad); color: var(--coral); font-weight: 700; }
.menu-logout svg { width: 22px; height: 22px; }
.tabs { display: flex; gap: 4px; padding: 8px var(--pad); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 18px; font-size: .88rem; color: var(--muted); font-weight: 600; min-height: 38px; }
.tabs a.on { background: var(--navy); color: #fff; }
.orders { list-style: none; margin: 0; padding: 0 var(--pad); }
.orders > li > a, .orders .card-in { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.od-head { border-bottom: 1px solid var(--line); }
.track { display: flex; align-items: center; gap: 6px; margin: 8px 0; padding: 8px 10px; background: var(--bg-soft); border-radius: 10px; font-size: .85rem; }
.track svg { width: 18px; height: 18px; }
.timeline { list-style: none; margin: 10px 0; padding: 0 14px 0 0; border-inline-start: 2px solid var(--teal-soft); }
.timeline li { position: relative; padding: 4px 12px 8px 0; display: flex; flex-direction: column; font-size: .85rem; }
.timeline li::before { content: ""; position: absolute; right: -21px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; }
.timeline li:last-child b { color: var(--teal); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.plain li p { margin: 4px 0; }
.ret-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 0; }
.ret-detail { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; }
.addr-list { list-style: none; margin: 0; padding: 0 var(--pad); }
.addr-list li { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.addr-list li > div:first-child { flex: 1; }
.addr-list p { margin: 4px 0; line-height: 1.8; }
.addr-actions { display: flex; flex-direction: column; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes a { display: block; padding: 12px var(--pad); border-bottom: 1px solid var(--line); }
.notes p { margin: 4px 0; font-size: .88rem; color: #4E5566; }
.notes .unread a { background: #F6FCFB; }
.notes .unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-inline-end: 6px; }
.prefs td, .prefs th { text-align: center; }
.prefs td:first-child, .prefs th:first-child { text-align: right; }
.prefs input { width: 22px; height: 22px; accent-color: var(--teal); }
.points-hero { margin: 14px var(--pad); padding: 20px; border-radius: 16px; background: var(--navy); color: #fff; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.points-hero svg { width: 36px; height: 36px; color: var(--gold); }
.points-hero b { font-size: 2rem; }
.points-hero small { opacity: .8; line-height: 1.8; margin-top: 6px; }
.coupons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.coupons li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px dashed var(--teal); border-radius: var(--radius); padding: 12px; background: #F6FCFB; }
.coupons p { margin: 2px 0; font-size: .85rem; }
.chat { list-style: none; margin: 0; padding: 12px var(--pad); display: flex; flex-direction: column; gap: 10px; }
.chat li { max-width: 86%; padding: 10px 12px; border-radius: 14px; background: var(--bg-soft); }
.chat li.user { align-self: flex-start; background: var(--teal-soft); }
.chat li.admin { align-self: flex-end; }
.chat p { margin: 0 0 4px; white-space: pre-wrap; }
.prose { line-height: 2; font-size: .95rem; }
.prose blockquote { margin: 12px 0; padding: 8px 12px; background: #FFF6E0; border-radius: 10px; font-size: .85rem; }
.wl { list-style: none; margin: 0; padding: 0 var(--pad); }
.wl-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wl-img { width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden; background: #F7F8FA; }
.wl-img img { width: 100%; height: 100%; object-fit: contain; }
.wl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.wl-body svg { width: 14px; height: 14px; vertical-align: -2px; }
.wl-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.wl-actions .btn svg { width: 16px; height: 16px; }

/* ---------- سایر ---------- */
.toast { display: flex; align-items: center; gap: 12px; justify-content: center; }
.toast a { color: #7FE3D9; font-weight: 700; white-space: nowrap; }
.offline-bar { position: sticky; top: 0; z-index: 60; background: #3A4150; color: #fff; text-align: center; font-size: .82rem; padding: 6px; }
.tab { text-decoration: none; }

@media (max-width: 350px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links a { font-size: .7rem; }
  .buybar .btn { min-width: 42%; padding: 0 12px; }
  .ci-img { width: 68px; height: 68px; }
}
@media (min-width: 481px) { .phead.overlay { left: 0; right: 0; } }
.search input:not([type=checkbox]) { border: 0 !important; background: transparent !important; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; }
