/* DELTA MOBILE storefront — one stylesheet for every page. RTL, mobile-first. */
:root {
  --accent: #1f5bff;
  --accent-ink: #1f5bff;
  --accent-light: #7499ff;
  --accent-tint: #edf2ff;
  --accent-line: #c5d5ff;
  --glow: rgba(31, 91, 255, .42);
  --glow-soft: rgba(31, 91, 255, .25);
  --ink: #0b1a3f; /* navy (سرمه‌ای) — header buttons, chips, countdown, footer */
  --navy-card: #0f2152;
  --navy-tile: #132a66;
  --on-navy-muted: #a9b8e0;
  --muted: #4b5563;
  --muted-2: #6b7280;
  --line: #ecedef;
  --line-2: #d5d8de;
  --soft: #f4f5f7;
  --ok: #067647;
  --warn: #b54708;
  --danger: #b42318;
  --radius: 20px;
  --pad: clamp(16px, 3vw, 32px);
  --font: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.latin { font-family: "Space Grotesk", var(--font); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.row-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > * { flex: 0 0 clamp(164px, 44vw, 196px); scroll-snap-align: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

/* ── demo bar & header ── */
.demo-bar { background: var(--ink); color: #c9d3ff; font-size: 12.5px; text-align: center; padding: 6px 16px; line-height: 1.6; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 12px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; order: 1; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-en { font-family: "Space Grotesk", var(--font); font-weight: 700; font-size: 18px; letter-spacing: 2.4px; direction: ltr; }
.logo-fa { font-size: 11.5px; color: var(--muted); }
.search { flex: 1 1 360px; position: relative; order: 2; min-width: 0; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 14px; padding: 0 14px; height: 48px; }
.search-box:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 14px; }
.suggest { position: absolute; top: 56px; right: 0; left: 0; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(10,10,11,.45); padding: 8px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; min-height: 44px; }
.suggest a:hover, .suggest a.active { background: var(--soft); }
.suggest .s-title { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s-head { font-size: 12px; color: var(--muted); padding: 6px 10px 2px; }
.suggest .s-foot { border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 10px 4px; font-size: 12px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 6px; order: 3; }
.btn-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 0; background: transparent; }
.btn-icon.dark { background: var(--ink); color: #fff; }
.badge { position: absolute; top: -5px; left: -5px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent-ink); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.badge:empty { display: none; }
.account-link { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid #e3e5e9; border-radius: 12px; font-size: 13.5px; white-space: nowrap; }
.cat-nav { padding-bottom: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.plain { background: #fff; color: #374151; }
.chip.on, .chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip.outline { background: #fff; border-color: var(--line-2); }
.chip.outline[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── buttons & forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; border: 0; font-weight: 700; font-size: 14.5px; background: var(--accent-ink); color: #fff; white-space: nowrap; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.dark { background: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost { background: transparent; color: var(--accent-ink); padding: 0 8px; }
.btn.block { width: 100%; }
.btn.big { height: 54px; font-size: 15.5px; border-radius: 16px; }
.btn.ok { background: var(--ok); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.input, .select, .textarea { width: 100%; height: 48px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px; background: #fff; font-size: 14.5px; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.8; background: var(--soft); }
.alert.error { background: #fef3f2; color: var(--danger); }
.alert.ok { background: #ecfdf3; color: var(--ok); }
.alert.info { background: var(--accent-tint); color: #1f2937; }
.err { color: var(--danger); font-size: 13px; min-height: 0; }

/* ── sections ── */
.section { padding-top: 44px; }
.section.first { padding-top: 22px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.section-head h2, .h2 { margin: 0; font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; line-height: 1.5; }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 13.5px; font-weight: 700; color: var(--accent-ink); }
.card-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; display: flex; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.hero-text { flex: 1 1 340px; padding: clamp(26px, 4.5vw, 56px); display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.eyebrow { align-self: flex-start; font-size: 12.5px; color: var(--accent-light); border: 1px solid #2e2e38; border-radius: 999px; padding: 3px 12px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.4; }
.hero p { margin: 0; color: #b7bcc8; font-size: 16px; max-width: 460px; line-height: 1.85; }
.hero .btn.outline { background: transparent; border: 1px solid #34343e; color: #fff; font-weight: 500; }
.scene { flex: 1 1 300px; align-self: stretch; position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scene-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), rgba(10,10,11,0)); }
.scene-box { position: relative; width: 340px; height: 280px; }
.dm-hero-scale { position: relative; }

/* ── category tiles ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 22px; background: var(--navy-tile); color: #fff; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(11,26,63,.75); }
.tile-art { display: block; width: 100%; max-width: 104px; aspect-ratio: 1 / 1; }
.tile-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tile-name { font-size: 13.5px; font-weight: 700; line-height: 1.5; color: #fff; }
.tile-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 12px auto; }

/* ── phone picker ── */
.picker { background: var(--accent-tint); border-radius: 28px; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.picker-head { display: flex; gap: 12px; align-items: flex-start; }
.picker-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-ink); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.picker .chip { background: #fff; border-color: var(--line-2); }
.picker .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.picker .model[aria-checked="true"] { background: var(--accent-ink); border-color: var(--accent-ink); }
.picker-result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; border-top: 1px solid var(--accent-line); padding-top: 12px; font-weight: 700; }

/* ── product card ── */
.pcard { position: relative; height: 100%; min-height: 340px; display: flex; flex-direction: column; background: var(--navy-card); color: #fff; border: 1px solid var(--navy-card); border-radius: 20px; padding: 8px 8px 12px; transition: transform .25s ease, box-shadow .25s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(11,26,63,.75); }
.pcard-link { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; }
.pcard-img { position: relative; height: 160px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.pcard-img img { width: 82%; height: 82%; object-fit: contain; }
.pcard.out .pcard-img img { opacity: .45; }
.off-badge { position: absolute; top: 8px; right: 8px; background: var(--accent-ink); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 9px; line-height: 1.7; }
.demo-badge { position: absolute; bottom: 7px; left: 8px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.92); border-radius: 999px; padding: 0 8px; }
.pcard-title { margin: 4px 0 0; padding: 0 4px; font-size: 13.5px; font-weight: 600; line-height: 1.7; height: 46px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 4px; min-height: 20px; font-size: 12px; color: var(--on-navy-muted); }
.pcard-meta span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dots { display: flex; gap: 4px; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,255,255,.45); }
.pcard-tag { padding: 0 4px; min-height: 19px; font-size: 11.5px; font-weight: 700; color: #9db8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding: 6px 4px 0; min-height: 50px; }
.was { font-size: 12px; color: var(--muted-2); text-decoration: line-through; line-height: 1.4; display: block; }
.price { font-size: 16px; font-weight: 800; white-space: nowrap; line-height: 1.5; }
.toman { font-size: 11px; font-weight: 500; color: var(--muted); margin-right: 3px; }
.pcard .was { color: #8395c9; }
.pcard .toman { color: var(--on-navy-muted); }
.pcard .price { color: #fff; }
.add-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; transition: background .2s ease; }
.add-btn.done { background: var(--ok); }
.out-label { align-self: center; font-size: 13.5px; font-weight: 700; color: var(--muted-2); }

/* ── deals / countdown ── */
.countdown { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 16px; direction: ltr; }
.countdown span { min-width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.countdown span:last-child { background: var(--accent-ink); }
.countdown i { color: #9ca3af; font-style: normal; }
/* special offers: red cards and countdown */
.deals { --deal: #b91c1c; --deal-2: #ef4444; --on-deal-muted: #fdd5d5; }
.deals .countdown span { background: var(--deal); }
.deals .countdown span:last-child { background: var(--deal-2); }
.deals .pcard { background: var(--deal); border-color: var(--deal); }
.deals .pcard:hover { box-shadow: 0 20px 36px -22px rgba(185,28,28,.75); }
.deals .pcard-meta, .deals .pcard .toman { color: var(--on-deal-muted); }
.deals .pcard .was { color: #f9a8a8; }
.deals .pcard-tag { color: #ffe1e1; }
.deals .off-badge { background: var(--deal-2); }
.deals .add-btn { background: #fff; color: var(--deal); }

/* ── dark strip ── */
.strip { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.strip p { color: #b7bcc8; margin: 0; }
.tier-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: #17171c; border: 1px solid #2a2a33; font-size: 13.5px; }
.tier-pill b { color: var(--accent-light); }

/* ── benefits & footer ── */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.benefit { display: flex; gap: 12px; background: var(--soft); border-radius: 20px; padding: 18px; }
.benefit-icon { width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.benefit h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.benefit p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.site-footer { background: var(--ink); color: #fff; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 44px; padding-bottom: 24px; }
.footer-grid h2 { font-size: 14.5px; margin: 0 0 4px; }
.footer-grid a { display: flex; align-items: center; min-height: 40px; font-size: 13px; color: #b7bcc8; }
.footer-grid p, .footer-grid li { font-size: 13px; color: #b7bcc8; }
.footer-bottom { border-top: 1px solid #1c1c22; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; color: #a1a7b3; }
.seal { width: 84px; height: 92px; border: 1.5px dashed #3a3a44; border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 11px; color: #a1a7b3; padding: 6px; line-height: 1.6; }
.bottom-nav { display: none; }

/* ── breadcrumb & category ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 0; font-size: 13px; color: var(--muted); }
.crumbs a { min-height: 32px; display: inline-flex; align-items: center; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.cat-hero { margin-top: 4px; }
.cat-hero h1 { font-size: clamp(28px, 3.6vw, 42px); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips span { font-size: 12.5px; background: #17171c; border: 1px solid #2a2a33; border-radius: 10px; padding: 4px 10px; color: #e4e7ee; }
.toolbar { padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.toolbar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.sorts { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.sorts a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; color: #374151; }
.sorts a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-ink); }
.vsep { flex-shrink: 0; width: 1px; background: #e3e5e9; margin: 8px 4px; }
.empty { margin-top: 14px; border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pager { display: flex; justify-content: center; gap: 6px; padding-top: 24px; }
.pager a, .pager span { min-width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); font-weight: 700; }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── product page ── */
.pd { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; }
.pd-gallery { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-stage { position: relative; height: clamp(320px, 40vw, 470px); border-radius: 26px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.pd-stage img { max-width: 78%; max-height: 82%; object-fit: contain; transition: transform .35s ease; animation: dmFloat 6s ease-in-out infinite; }
.pd-stage.zoom img { transform: scale(1.45); animation: none; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs button { width: 84px; height: 84px; border-radius: 16px; border: 2px solid transparent; background: var(--soft); padding: 8px; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--accent-ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.zoom-btn { position: absolute; top: 12px; left: 12px; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 4px 14px -6px rgba(10,10,11,.3); display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.pd-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pd-info h1 { margin: 0; font-size: clamp(21px, 2.5vw, 27px); font-weight: 800; line-height: 1.5; }
.opt-label { font-size: 14px; font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 46px; padding: 0 14px; border-radius: 14px; border: 2px solid #e3e5e9; background: #fff; font-size: 13.5px; font-weight: 700; }
.opt[aria-checked="true"] { border-color: var(--accent-ink); background: var(--accent-tint); }
.opt.na { color: var(--muted-2); text-decoration: line-through; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #e3e5e9; padding: 3px; background: #fff; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,10,11,.2); }
.swatch[aria-checked="true"] { border-color: var(--accent-ink); }
.buybox { border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 50px -36px rgba(10,10,11,.35); }
.big-price { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.timer { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 12px; padding: 6px 10px; font-size: 12px; }
.stock { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--danger); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.tier { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 6px; text-align: center; font-size: 12.5px; }
.tier b { display: block; font-size: 13.5px; }
.tier.on { border-color: var(--accent-ink); background: var(--accent-tint); color: var(--accent-ink); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 20px; }
.stepper output { min-width: 36px; text-align: center; font-weight: 800; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.specs div { display: flex; gap: 12px; padding: 12px 16px; font-size: 13.5px; }
.specs div:nth-child(odd) { background: #f8f9fa; }
.specs dt { flex: 0 0 140px; color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.prose { font-size: 14.5px; line-height: 2.1; color: #1f2937; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.stars { color: #f5a524; letter-spacing: 2px; }
.sticky-buy { display: none; }

/* ── cart & checkout ── */
.layout-2 { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 8px; }
.layout-2 > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.layout-2 > .side { flex: 1 1 300px; position: sticky; top: 140px; }
.cart-line { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; }
.cart-line img { width: 84px; height: 84px; border-radius: 14px; background: var(--soft); object-fit: contain; padding: 8px; flex-shrink: 0; }
.cart-line .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line .title { font-weight: 700; font-size: 14px; }
.cart-line .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 16px; font-weight: 800; }
.sum-row.save { color: var(--ok); }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-tint); }
.choice input { margin-top: 5px; accent-color: var(--accent-ink); width: 18px; height: 18px; flex-shrink: 0; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.steps { display: flex; gap: 6px; margin-bottom: 12px; }
.step { flex: 1 1 0; min-width: 0; text-align: center; padding: 10px 6px; border-radius: 14px; background: var(--soft); font-size: 13px; font-weight: 700; color: var(--muted); }
.step.on { background: var(--accent-tint); color: var(--accent-ink); }

/* ── account ── */
.acc { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 8px; }
.acc-menu { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 20px; padding: 10px; }
.acc-menu a, .acc-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14px; border: 0; background: none; text-align: start; }
.acc-menu [aria-current="page"] { background: var(--accent-tint); color: var(--accent-ink); font-weight: 700; }
.acc-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.order-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--soft); }
.status.ok { background: #ecfdf3; color: var(--ok); } .status.warn { background: #fffaeb; color: var(--warn); } .status.bad { background: #fef3f2; color: var(--danger); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; gap: 10px; font-size: 13.5px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-ink); margin-top: 8px; flex-shrink: 0; }

.toast { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); max-width: calc(100% - 32px); }

/* ── responsive ── */
@media (max-width: 767px) {
  .search { order: 3; flex-basis: 100%; }
  .actions { order: 2; margin-inline-start: auto; }
  .account-link span { display: none; }
  .account-link { width: 44px; padding: 0; justify-content: center; border: 0; }
  .scene { min-height: 250px; }
  .scene .dm-hero-scale, .scene .scene-box { transform: scale(.8); }
  .bottom-nav { display: flex; position: sticky; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 64px; min-height: 52px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .bottom-nav a[aria-current="page"] { color: var(--accent-ink); }
  .bottom-nav .badge { top: 3px; left: 14px; }
  .site-footer { margin-top: 40px; }
  .sticky-buy { display: flex; position: sticky; bottom: 0; z-index: 46; background: #fff; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .has-sticky-buy .bottom-nav { display: none; }
  .layout-2 > .side { position: static; }
  .specs dt { flex-basis: 110px; }
}

/* ── animations (shared with the approved design) ── */
@keyframes dmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes dmWave { 0% { transform: scale(.55); opacity: .85; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes dmEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes dmFlow { to { stroke-dashoffset: -48; } }
@keyframes dmDash { to { background-position: 20px 0; } }
@keyframes dmFill { 0% { width: 12%; } 75%, 100% { width: 100%; } }
@keyframes dmRing { 0% { stroke-dashoffset: 163.4; } 80%, 100% { stroke-dashoffset: 0; } }
@keyframes dmPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.16); opacity: .8; } }
@keyframes dmLed2 { 0%, 24% { opacity: .2; } 25%, 100% { opacity: 1; } }
@keyframes dmLed3 { 0%, 49% { opacity: .2; } 50%, 100% { opacity: 1; } }
@keyframes dmLed4 { 0%, 74% { opacity: .2; } 75%, 100% { opacity: 1; } }
@keyframes dmPlug { 0%, 10% { transform: translateX(-46px); } 35%, 75% { transform: translateX(0); } 95%, 100% { transform: translateX(-46px); } }
@keyframes dmSpark { 0%, 33% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.15); } 60%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes dmSpeed { 0% { transform: translateX(-30px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateX(60px); opacity: 0; } }
@keyframes dmSwing { 0%, 100% { transform: perspective(700px) rotateY(-26deg) rotate(-4deg); } 50% { transform: perspective(700px) rotateY(26deg) rotate(4deg); } }
@keyframes dmCaseColor { 0%, 20% { background-color: #1f2a44; } 25%, 45% { background-color: #5b6b4f; } 50%, 70% { background-color: #f4b6c2; } 75%, 95% { background-color: #1b1b1b; } 100% { background-color: #1f2a44; } }
@keyframes dmGlassDrop { 0% { transform: translateY(-80px); opacity: 0; } 22%, 88% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes dmShine { 0%, 30% { transform: translateX(-160px) rotate(20deg); } 55%, 100% { transform: translateX(220px) rotate(20deg); } }
@keyframes dmTap { 0%, 58% { transform: scale(.2); opacity: 0; } 64% { opacity: .9; } 82%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes dmBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 26% { transform: scale(1); } }
@keyframes dmNote { 0% { transform: translate(0, 0) rotate(0deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-18px, -90px) rotate(-12deg); opacity: 0; } }
@keyframes dmRoad { from { transform: translateY(-40px); } to { transform: translateY(0); } }
@keyframes dmRoute { 0% { stroke-dashoffset: 300; } 70%, 100% { stroke-dashoffset: 0; } }
@keyframes dmBump { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes dmTBlink { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes dmTBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes dmTEq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes dmTFill { 0% { transform: scaleX(.12); } 75%, 100% { transform: scaleX(1); } }
@keyframes dmTPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes dmTDash { to { stroke-dashoffset: -18; } }
@keyframes dmTPlug { 0%, 10% { transform: translateX(-8px); } 35%, 75% { transform: translateX(8px); } 95%, 100% { transform: translateX(-8px); } }
@keyframes dmTSpark { 0%, 33% { opacity: 0; transform: scale(.4); } 40% { opacity: .9; transform: scale(1.2); } 60%, 100% { opacity: 0; transform: scale(1.8); } }
@keyframes dmTLed2 { 0%, 24% { opacity: .2; } 25%, 100% { opacity: 1; } }
@keyframes dmTLed3 { 0%, 49% { opacity: .2; } 50%, 100% { opacity: 1; } }
@keyframes dmTLed4 { 0%, 74% { opacity: .2; } 75%, 100% { opacity: 1; } }
@keyframes dmTSwing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes dmTCase { 0%, 20% { fill: #1f2a44; } 25%, 45% { fill: #5b6b4f; } 50%, 70% { fill: #f4b6c2; } 75%, 95% { fill: #1b1b1b; } 100% { fill: #1f2a44; } }
@keyframes dmTDrop { 0% { transform: translateY(-30px); opacity: 0; } 25%, 85% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes dmTShine { 0%, 35% { transform: translateX(-40px); } 60%, 100% { transform: translateX(40px); } }
@keyframes dmTBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 26% { transform: scale(1); } }
@keyframes dmTNote { 0% { transform: translate(0, 6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-6px, -14px); opacity: 0; } }
@keyframes dmTRoad { to { stroke-dashoffset: -15; } }
@keyframes dmTBump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes dmTSpin { to { transform: rotate(360deg); } }
.dm-float { animation: dmFloat 6s ease-in-out infinite; }
.fade-in { animation: dmFade .35s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
