/* ==========================================================================
   GenZ Gadgetry — Components & Layout  (v1.2)
   Depends on tokens.css. Sections:
   01 Base · 02 Utilities · 03 Icons · 04 Top bar · 05 Header & search
   06 Shell & sidebar · 07 Buttons · 08 Tabs & chips · 09 Badges
   10 Forms · 11 Tiles · 12 Product cards · 13 Section heads & rails
   14 Home: picture-banner hero, used hub, shorts · 15 Flash sale · 16 Banners
   17 Home blocks · 18 Footer · 19 Overlays (drawer/modal) · 20 Cart · 21 Toast
   22 Skeleton · 23 Listing · 24 Product detail · 25 PDP modals · 26 Mobile nav
   27 Motion helpers · 28 Responsive · 29 Reduced motion · 30 PDP helpers
   31 Used-phones entry points · 32 Checkout, order & tracking
   33 Checkout: delivery or store pickup · 34 Touch devices · 35 Named helpers
   Conventions: BEM-style blocks (.pcard__title, .btn--primary), is-* states,
   data-* attributes are JS hooks only. Pure :hover rules sit inside
   @media (hover: hover) so touch screens never keep a stuck hover state.
   ========================================================================== */

/* 01 · Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Soft ambient wash from the reference — fixed layer, GPU composited, never repaints on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 100% -6%, rgba(255, 205, 214, .45), transparent 62%),
    radial-gradient(760px 620px at -10% 24%, rgba(0, 191, 242, .10), transparent 60%),
    radial-gradient(900px 640px at 106% 104%, rgba(255, 222, 205, .42), transparent 60%),
    radial-gradient(760px 520px at 28% 112%, rgba(152, 165, 255, .16), transparent 60%);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
::selection { background: var(--cyan-100); color: var(--gg-night); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }

/* 02 · Utilities ------------------------------------------------------------ */
.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: fixed; left: 16px; top: -60px; z-index: var(--z-toast);
  background: var(--gg-night); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-weight: 700; transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.muted { color: var(--color-text-muted); }
.eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.divider { height: 1px; background: var(--color-line-soft); border: 0; margin: var(--space-6) 0; }
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* 03 · Icons ------------------------------------------------------------------ */
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--sm { width: 16px; height: 16px; }
.i--xs { width: 14px; height: 14px; }
.i--lg { width: 24px; height: 24px; }
.i--fill { fill: currentColor; stroke: none; }

/* 04 · Top bar ---------------------------------------------------------------- */
.topbar {
  background: var(--gg-night);
  color: rgba(255, 255, 255, .78);
  font-size: 12.5px;
  font-weight: var(--weight-semi);
  height: var(--topbar-h);
  position: relative;
  z-index: calc(var(--z-header) + 1);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: var(--space-6); }
.topbar__marquee { flex: 1; min-width: 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__set { display: flex; gap: 56px; padding-right: 56px; } /* two equal sets → seamless -50% loop */
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.marquee__set > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.marquee__track b { color: var(--gg-spark); font-weight: var(--weight-bold); }
@keyframes marquee { to { transform: translateX(-50%); } }
.topbar__links { display: flex; align-items: center; gap: 22px; flex: none; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-2); }
@media (hover: hover) { .topbar__links a:hover { color: #fff; } }
.topbar__phone { color: #fff; }
.topbar__phone .i { color: var(--gg-spark); }

/* 05 · Header & search -------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(251, 251, 254, .80);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--color-line-soft);
  transition: box-shadow var(--dur-3) var(--ease-out), background-color var(--dur-3);
}
.header.is-scrolled { background: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px -22px rgba(18, 3, 83, .35); }
.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) auto;
  align-items: center;
}
.header__inner > .header__menu { display: none; }
.header__logo { display: inline-flex; align-items: center; width: max-content; }
.header__logo img { height: 42px; width: auto; transition: transform var(--dur-3) var(--ease-spring); }
@media (hover: hover) { .header__logo:hover img { transform: scale(1.03) rotate(-1deg); } }
.header__actions { display: flex; align-items: center; gap: 6px; padding-left: var(--space-6); }
.header__sep { width: 1px; height: 26px; background: var(--color-line); margin: 0 10px; }

.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--color-text-2);
  transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
@media (hover: hover) { .icon-btn:hover { background: var(--ink-100); color: var(--color-text); } }
.icon-btn:active { transform: scale(.94); }
.count {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--gg-spark); color: var(--gg-night);
  font-size: 10.5px; font-weight: var(--weight-black); line-height: 1;
  border: 2px solid #fff;
}
.count--primary { background: var(--color-primary); color: #fff; }
.count.is-bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-spark);
  color: #fff; font-weight: var(--weight-black); font-size: 14px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--color-line);
  transition: transform var(--dur-2) var(--ease-spring);
}
@media (hover: hover) { .avatar:hover { transform: scale(1.06); } }

.search { position: relative; max-width: 600px; width: 100%; margin-left: var(--space-6); }
.search__field {
  width: 100%; height: 48px;
  padding: 0 52px 0 20px;
  border-radius: 14px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, .92);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  transition: border-color var(--dur-2), box-shadow var(--dur-2), background-color var(--dur-2);
}
.search__field::placeholder { color: var(--color-text-faint); }
@media (hover: hover) { .search__field:hover { border-color: var(--ink-300); } }
.search__field:focus { outline: none; border-color: var(--blue-300); background: #fff; box-shadow: 0 0 0 4px rgba(0, 191, 242, .16); }
.search__btn {
  position: absolute; right: 6px; top: 6px;
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--color-text-muted);
  transition: background-color var(--dur-2), color var(--dur-2);
}
@media (hover: hover) { .search__btn:hover { background: var(--color-primary); color: #fff; } }
.search__panel {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  z-index: var(--z-dropdown);
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-height: min(70vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top center;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.search.is-open .search__panel { opacity: 1; transform: none; pointer-events: auto; }
.sp__group + .sp__group { margin-top: 16px; }
.sp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sp__head button { font-size: 12px; font-weight: var(--weight-bold); color: var(--color-primary); }
.sp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp__item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: 14px;
  transition: background-color var(--dur-1);
}
.sp__item:hover, .sp__item.is-hl { background: var(--ink-100); }
.sp__item .tile { width: 48px; height: 48px; border-radius: 12px; }
.sp__name { font-size: 14px; font-weight: var(--weight-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp__name mark { background: none; color: var(--color-primary); font-weight: var(--weight-black); }
.sp__cat { font-size: 12px; color: var(--color-text-muted); }
.sp__price { text-align: right; font-weight: var(--weight-black); font-size: 14px; }
.sp__price s { display: block; font-size: 11.5px; color: var(--color-text-faint); font-weight: var(--weight-medium); }
.sp__all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; height: 44px; border-radius: 12px;
  background: var(--color-primary-soft); color: var(--color-primary);
  font-weight: var(--weight-bold); font-size: 13.5px;
}
.sp__empty { padding: 24px 8px; text-align: center; color: var(--color-text-muted); }

/* 06 · Shell & sidebar -------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--full { grid-template-columns: minmax(0, 1fr); }
.main {
  position: relative;
  min-width: 0;
  padding: 26px 0 72px 32px;
  border-left: 1px solid var(--color-line-soft);
}
.shell--full .main { border-left: 0; padding-left: 0; }
/* Scroll-spy marker riding on the sidebar divider (the green tick in the reference) */
.spy {
  position: absolute; left: -2px; top: 0;
  width: 3px; height: 26px; border-radius: 3px;
  background: var(--gradient-spark);
  transform: translateY(var(--spy-y, 24px));
  transition: transform var(--dur-5) var(--ease-out), height var(--dur-3) var(--ease-out);
  pointer-events: none;
}

.sidebar { position: relative; z-index: 5; }
.sidebar__inner {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column;
  padding: 26px 22px 24px 0;
}
.sidebar__title {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: var(--text-lg); font-weight: var(--weight-bold);
  padding: 4px 0 10px;
}
.chev-btn {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--color-line); background: #fff;
  color: var(--color-text-2);
  transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-2);
}
@media (hover: hover) { .sidebar__title:hover .chev-btn { border-color: var(--ink-300); } }
.sidebar__title[aria-expanded="false"] .chev-btn { transform: rotate(-90deg); }
.catnav { display: grid; gap: 2px; transition: opacity var(--dur-3); }
.catnav.is-collapsed { display: none; }
.catnav__li { position: relative; }
.catnav__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0;
  color: var(--color-text-2);
  font-size: 14.5px;
  font-weight: var(--weight-medium);
  transition: color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.catnav__item .i { opacity: 0; transform: translateX(-4px); transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out); color: var(--color-text-faint); }
.catnav__item:hover, .catnav__li:focus-within > .catnav__item { color: var(--color-primary); transform: translateX(3px); }
.catnav__item:hover .i, .catnav__li:focus-within > .catnav__item .i { opacity: 1; transform: none; }
.catnav__item.is-active { color: var(--color-text); font-weight: var(--weight-black); }
.catnav__item.is-active::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--color-accent);
}
.flyout {
  position: absolute; left: calc(100% + 18px); top: -14px;
  width: 540px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateX(-8px);
  transition: opacity var(--dur-2) var(--ease-out) .12s, transform var(--dur-3) var(--ease-out) .12s, visibility 0s linear .44s;
  z-index: var(--z-dropdown);
}
.flyout::before { content: ""; position: absolute; right: 100%; top: 0; width: 22px; height: 100%; } /* hover bridge */
.catnav__li:hover > .flyout, .catnav__li:focus-within > .flyout {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur-2) var(--ease-out) .08s, transform var(--dur-3) var(--ease-out) .08s, visibility 0s;
}
.flyout__title { font-size: 12px; margin-bottom: 10px; }
.flyout__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.flyout__links a { font-size: 13.5px; font-weight: var(--weight-semi); color: var(--color-text-2); padding: 6px 0; transition: color var(--dur-1); }
@media (hover: hover) { .flyout__links a:hover { color: var(--color-primary); } }
.flyout__picks { display: grid; gap: 10px; }
.flyout__all { display: inline-flex; margin-top: 12px; }

.sidebar__links { display: grid; gap: 2px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--color-line-soft); }
.sidebar__links a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; font-weight: var(--weight-semi); color: var(--color-text-2); transition: color var(--dur-2); }
@media (hover: hover) { .sidebar__links a:hover { color: var(--color-primary); } }
.sidebar__links .i { color: var(--color-text-faint); }

.promo-card {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: auto;
  padding: 26px 18px 20px;
  border-radius: 22px;
  background: var(--gradient-brand);
  color: #fff; text-align: center;
  box-shadow: var(--shadow-md);
}
.promo-card::before {
  content: ""; position: absolute; z-index: -1;
  width: 150px; height: 130px; right: -40px; top: -26px;
  background: url("../img/bolt.svg") center / contain no-repeat;
  opacity: .22; transform: rotate(-8deg);
}
.promo-card::after {
  content: ""; position: absolute; z-index: -1; inset: auto -30% -60% -30%; height: 90%;
  background: radial-gradient(closest-side, rgba(0, 191, 242, .45), transparent);
}
.promo-card__big { font-size: 34px; font-weight: var(--weight-black); font-style: italic; letter-spacing: -.02em; line-height: 1; }
.promo-card__big span { color: var(--gg-spark); }
.promo-card p { font-size: 13px; opacity: .9; margin: 8px 0 16px; font-weight: var(--weight-semi); line-height: 1.4; }

/* 07 · Buttons ----------------------------------------------------------------- */
.btn {
  --btn-h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h);
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: 13.5px; font-weight: var(--weight-bold); letter-spacing: .01em;
  white-space: nowrap;
  user-select: none;
  transition:
    transform var(--dur-1) var(--ease-out),
    background-color var(--dur-2), border-color var(--dur-2),
    color var(--dur-2), box-shadow var(--dur-2);
}
.btn:active { transform: scale(.97); }
.btn .i { transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { .btn:hover .i--nudge { transform: translateX(3px); } }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-primary); }
@media (hover: hover) { .btn--primary:hover { background: var(--color-primary-hover); } }
.btn--primary:active { background: var(--color-primary-press); }
.btn--night { background: var(--gg-night); color: #fff; }
@media (hover: hover) { .btn--night:hover { background: var(--blue-900); } }
.btn--accent { background: var(--gg-spark); color: var(--gg-night); }
@media (hover: hover) { .btn--accent:hover { background: var(--cyan-300); } }
.btn--soft { background: var(--color-primary-soft); color: var(--color-primary); }
@media (hover: hover) { .btn--soft:hover { background: var(--blue-100); } }
.btn--outline { background: #fff; border-color: var(--color-line); color: var(--color-text); }
@media (hover: hover) { .btn--outline:hover { border-color: var(--color-primary); color: var(--color-primary); } }
.btn--ghost { color: var(--color-text-2); }
@media (hover: hover) { .btn--ghost:hover { background: var(--ink-100); color: var(--color-text); } }
.btn--light { background: #fff; color: var(--gg-night); box-shadow: var(--shadow-sm); }
@media (hover: hover) { .btn--light:hover { background: var(--cyan-50); } }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .22); }
@media (hover: hover) { .btn--glass:hover { background: rgba(255, 255, 255, .24); } }
.btn--sm { --btn-h: 34px; padding: 0 14px; font-size: 12.5px; }
.btn--lg { --btn-h: 54px; padding: 0 28px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--square { width: var(--btn-h); padding: 0; }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn--outline.is-loading::after, .btn--soft.is-loading::after { border-color: var(--blue-100); border-top-color: var(--color-primary); }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: var(--weight-bold); color: var(--color-primary); }
.link-arrow .i { transition: transform var(--dur-2) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .i { transform: translateX(4px); } }

/* 08 · Tabs & chips ------------------------------------------------------------ */
.tabs { position: relative; display: inline-flex; align-items: center; gap: 4px; isolation: isolate; }
.tab {
  position: relative; z-index: 1;
  height: 32px; padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: var(--weight-bold);
  color: var(--color-text-2);
  white-space: nowrap;
  transition: color var(--dur-3) var(--ease-out);
}
@media (hover: hover) { .tab:hover { color: var(--color-text); } }
.tab[aria-selected="true"] { color: #fff; }
.tabs__ink {
  position: absolute; left: 0; top: 50%; z-index: 0;
  height: 32px; margin-top: -16px; width: 0;
  border-radius: var(--radius-pill);
  background: var(--gg-night);
  box-shadow: 0 6px 14px -8px rgba(18, 3, 83, .7);
  transition: transform var(--dur-4) var(--ease-out), width var(--dur-4) var(--ease-out);
}
.tabs--dark .tab { color: rgba(255, 255, 255, .72); }
@media (hover: hover) { .tabs--dark .tab:hover { color: #fff; } }
.tabs--dark .tab[aria-selected="true"] { color: var(--gg-night); }
.tabs--dark .tabs__ink { background: #fff; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: #fff;
  font-size: 13px; font-weight: var(--weight-semi);
  color: var(--color-text-2);
  white-space: nowrap;
  transition: border-color var(--dur-2), background-color var(--dur-2), color var(--dur-2), transform var(--dur-1);
}
@media (hover: hover) { .chip:hover { border-color: var(--blue-300); color: var(--color-text); } }
.chip:active { transform: scale(.97); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--gg-night); border-color: var(--gg-night); color: #fff; }
.chip--sm { height: 30px; padding: 0 11px; font-size: 12px; }
.chip .brand-dot { width: 20px; height: 20px; font-size: 9px; }
.chiprow {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding: 2px 2px 6px;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.chiprow::-webkit-scrollbar { display: none; }

/* 09 · Badges ------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: var(--weight-black);
  letter-spacing: .02em; line-height: 1;
  white-space: nowrap;
}
.badge .i { width: 12px; height: 12px; stroke-width: 2.2; }
.badge--rate { background: #fff; color: var(--color-success-ink); box-shadow: inset 0 0 0 1.5px var(--color-success); border-radius: 5px; }
.badge--days { height: 24px; padding: 0 10px; text-transform: uppercase; letter-spacing: .06em; background: #fff; color: var(--color-success-ink); box-shadow: inset 0 0 0 1.5px var(--color-success); }
.badge--sale { background: var(--color-sale); color: #fff; }
.badge--night { background: var(--gg-night); color: #fff; }
.badge--spark { background: var(--gg-spark); color: var(--gg-night); }
.badge--soft { background: var(--color-primary-soft); color: var(--color-primary); }
.badge--success { background: var(--color-success-soft); color: var(--color-success-ink); }
.badge--warning { background: var(--color-warning-soft); color: var(--color-warning-ink); }
.badge--danger { background: var(--color-sale-soft); color: var(--color-sale-ink); }
.badge--glass { background: rgba(255, 255, 255, .92); color: var(--color-text); }
.badge--lg { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
/* Product tags (content from the reference shop: Hot, Top selling, New arrival …) */
.tag { --tag-c: var(--color-primary); --tag-bg: rgba(255, 255, 255, .94); background: var(--tag-bg); color: var(--tag-c); }
.tag--hot { --tag-c: #C2410C; }
.tag--new { --tag-c: var(--blue-600); }
.tag--top { --tag-c: #7C3AED; }
.tag--demand { --tag-c: #0E7490; }
.tag--choice { --tag-c: #BE185D; }
.tag--best { --tag-c: #A16207; }
.tag--official { --tag-c: var(--green-700); }
.tag--few { --tag-c: var(--red-700); }
.tag--offer { --tag-c: #9333EA; }
.tag--pre { --tag-c: #fff; --tag-bg: var(--gg-night); }
.tag--used { --tag-c: #fff; --tag-bg: rgba(14, 16, 48, .82); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.dot--live { position: relative; background: var(--color-success); }
.dot--live::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } 80%, to { transform: scale(3); opacity: 0; } }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: var(--weight-bold); }
.stock--in { color: var(--color-success-ink); }
.stock--low { color: var(--color-warning-ink); }
.stock--out { color: var(--color-sale-ink); }
.stock--pre { color: var(--blue-600); }

/* 10 · Forms ---------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-text-2); }
.field__label em { color: var(--color-sale); font-style: normal; }
.input, .select {
  width: 100%; height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--color-line);
  background: #fff;
  font-size: 14px; font-weight: var(--weight-semi);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.input::placeholder { color: var(--color-text-faint); font-weight: var(--weight-medium); }
@media (hover: hover) { .input:hover, .select:hover { border-color: var(--ink-300); } }
.input:focus, .select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(52, 72, 238, .12); }
.input.is-invalid, .select.is-invalid { border-color: var(--color-sale); box-shadow: 0 0 0 4px rgba(217, 45, 38, .1); }
.star-ico { color: #F5A524; }
.field__error { font-size: 12px; color: var(--color-sale-ink); font-weight: var(--weight-semi); }
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7090' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-group { display: flex; align-items: stretch; }
.input-group__addon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; border: 1.5px solid var(--color-line); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--ink-50);
  font-size: 13.5px; font-weight: var(--weight-bold);
}
.input-group .input { border-radius: 0 12px 12px 0; }

.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; font-weight: var(--weight-semi); cursor: pointer; color: var(--color-text-2); }
.check input, .radio input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink-300);
  background: #fff;
  display: grid; place-items: center;
  transition: background-color var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2);
  cursor: pointer;
}
.check input { border-radius: 6px; }
.check input::after {
  content: ""; width: 10px; height: 5px;
  border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--dur-2) var(--ease-spring);
}
.check input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
@media (hover: hover) { .check:hover input:not(:checked) { border-color: var(--blue-400); } }
.check__count { margin-left: auto; font-size: 12px; color: var(--color-text-faint); font-weight: var(--weight-semi); }
.radio input { border-radius: 50%; }
.radio input::after { content: ""; width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--dur-2) var(--ease-spring); }
.radio input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.radio input:checked::after { transform: scale(1); }

.stepper {
  display: inline-flex; align-items: center;
  height: 50px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-line); background: #fff;
}
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; border-radius: 50%; color: var(--color-text-2); transition: color var(--dur-1), transform var(--dur-1); }
@media (hover: hover) { .stepper button:hover { color: var(--color-primary); } }
.stepper button:active { transform: scale(.88); }
.stepper button:disabled { opacity: .35; pointer-events: none; }
.stepper input { width: 34px; border: 0; text-align: center; font-weight: var(--weight-black); font-size: 15px; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { height: 36px; }
.stepper--sm button { width: 32px; }
.stepper--sm input { width: 26px; font-size: 13.5px; }

/* Range (single + dual) */
.range { position: relative; height: 28px; }
.range__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--ink-150); }
.range__fill { position: absolute; top: 0; height: 100%; border-radius: 4px; background: var(--gradient-spark); }
.range input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px -2px rgba(0, 15, 158, .35);
  cursor: grab; transition: transform var(--dur-1);
}
.range input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-primary); cursor: grab;
}
.range input[type="range"]::-moz-range-track { background: none; }

/* 11 · Tiles (product media) -------------------------------------------------------- */
.tile {
  --tile-bg: var(--tile-ice);
  position: relative; isolation: isolate; overflow: hidden;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--tile-bg);
}
.tile::before { /* soft top highlight, painted beneath the product */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, .62), transparent 58%);
}
.tile[data-tile="blue"]  { --tile-bg: var(--tile-blue); }
.tile[data-tile="ice"]   { --tile-bg: var(--tile-ice); }
.tile[data-tile="sky"]   { --tile-bg: var(--tile-sky); }
.tile[data-tile="teal"]  { --tile-bg: var(--tile-teal); }
.tile[data-tile="mint"]  { --tile-bg: var(--tile-mint); }
.tile[data-tile="pink"]  { --tile-bg: var(--tile-pink); }
.tile[data-tile="lilac"] { --tile-bg: var(--tile-lilac); }
.tile[data-tile="sand"]  { --tile-bg: var(--tile-sand); }
.tile[data-tile="gray"]  { --tile-bg: var(--tile-gray); }
.tile__img {
  position: absolute; inset: 9%;
  width: 82%; height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply; /* white studio backgrounds melt into the tile */
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-3);
}
.tile--photo .tile__img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.tile__img[data-zoom] { scale: var(--zoom, 1); } /* individual property: composes with hover transforms */
.tile__img.is-loading { opacity: 0; }
.tile:empty::after { /* CDN failed → quiet brand bolt placeholder */
  content: ""; position: absolute; inset: 30%;
  background: url("../img/bolt.svg") center / contain no-repeat; opacity: .35;
}
.fly .tile { width: 100%; height: 100%; border-radius: inherit; }

/* 12 · Product cards ------------------------------------------------------------------ */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; container: pcard / inline-size; }
@container pcard (max-width: 205px) { /* narrow columns: keep brand + rating, drop review count */
  .pcard .pcard__reviews { display: none; }
  .pcard .pcard__meta { gap: 8px; }
  .pcard .price__now { font-size: 19px; }
}
.pcard__media { position: relative; aspect-ratio: 4 / 3; }
.pcard__media > .tile { position: absolute; inset: 0; }
.pcard__media .tile__img { transform: translateY(0) scale(1); }
@media (hover: hover) { .pcard:hover .pcard__media .tile__img { transform: translateY(-4%) scale(1.06); } }
@media (hover: hover) { .pcard:hover .tile--photo .tile__img { transform: scale(1.06); } }
.pcard__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; pointer-events: none; }
.pcard__wish {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9);
  color: var(--color-text-2);
  opacity: 0; transform: scale(.8);
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-spring), color var(--dur-2), background-color var(--dur-2);
}
.pcard:hover .pcard__wish, .pcard__wish:focus-visible, .pcard__wish[aria-pressed="true"] { opacity: 1; transform: none; }
@media (hover: hover) { .pcard__wish:hover { color: var(--color-sale); background: #fff; } }
.pcard__wish[aria-pressed="true"] { color: var(--color-sale); }
.pcard__wish[aria-pressed="true"] .i { fill: currentColor; }
.pcard__wish.is-pop .i { animation: heart .5s var(--ease-spring); }
@keyframes heart { 0% { transform: scale(1); } 30% { transform: scale(.7); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.pcard__add {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  height: 38px; min-width: 38px; padding: 0 11px;
  display: inline-flex; align-items: center; gap: 0;
  border-radius: var(--radius-pill);
  background: var(--gg-night); color: #fff;
  font-size: 12.5px; font-weight: var(--weight-bold);
  box-shadow: 0 10px 20px -10px rgba(18, 3, 83, .8);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-out), background-color var(--dur-2), gap var(--dur-3) var(--ease-out);
}
.pcard__add span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width var(--dur-3) var(--ease-out); }
.pcard:hover .pcard__add, .pcard__add:focus-visible { opacity: 1; transform: none; }
@media (hover: hover) { .pcard__add:hover { background: var(--color-primary); gap: 6px; } }
.pcard__add:hover span, .pcard__add:focus-visible span { max-width: 110px; }
.pcard__add.is-done { background: var(--color-success); }
.pcard__body { display: flex; flex-direction: column; flex: 1; }
.pcard__title {
  margin-top: 14px;
  font-size: 14.5px; font-weight: var(--weight-semi); line-height: 1.35;
  color: var(--ink-800);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.pcard__title a { transition: color var(--dur-2); }
@media (hover: hover) { .pcard__title a:hover, .pcard:hover .pcard__title a { color: var(--color-primary); } }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; margin-top: 10px; }
.price__old { font-size: 13px; color: var(--color-text-faint); text-decoration: line-through; font-weight: var(--weight-semi); }
.price__now { font-size: 22px; font-weight: var(--weight-black); letter-spacing: -.015em; line-height: 1.1; }
.price__emi { width: 100%; font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.pcard__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--color-line);
  font-size: 13px;
}
.pcard__seller { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; font-weight: var(--weight-bold); color: var(--ink-800); }
.pcard__seller span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__reviews { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.brand-dot {
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bc, var(--gg-night)); color: #fff;
  font-size: 10px; font-weight: var(--weight-black); letter-spacing: -.02em; text-transform: none;
}
.pcard.is-out .tile__img { filter: grayscale(.55); opacity: .7; }
.pcard.is-out .pcard__add { background: #fff; color: var(--color-text); box-shadow: var(--shadow-sm); }
.pcard__used { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.flash-meter { margin-top: 12px; }
.flash-meter__bar { height: 6px; border-radius: 6px; background: var(--ink-150); overflow: hidden; }
.flash-meter__bar i { display: block; height: 100%; width: var(--p, 50%); border-radius: inherit; background: linear-gradient(90deg, #F5A524, #F0443A); transform-origin: left; animation: grow 1.2s var(--ease-out) both; }
.flash-meter__txt { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: var(--weight-bold); color: var(--color-text-muted); margin-top: 6px; }
.flash-meter__txt b { color: var(--color-sale-ink); }
@keyframes grow { from { transform: scaleX(0); } }

/* Mini product card (reference: "Access point … $99 $29") */
.mcard { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; align-items: center; position: relative; }
.mcard + .mcard { margin-top: 22px; }
.mcard .tile { aspect-ratio: 1 / .92; }
@media (hover: hover) { .mcard:hover .tile__img { transform: translateY(-4%) scale(1.07); } }
.mcard__title { font-size: 14px; font-weight: var(--weight-semi); line-height: 1.4; color: var(--ink-800); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__title a::after { content: ""; position: absolute; inset: 0; }
.mcard .price { margin-top: 8px; }
.mcard .price__now { font-size: 20px; }

/* Brand row (reference: "Best sellers") */
.brandlist { display: grid; gap: 18px; margin-top: 16px; }
.brandrow { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.brandtile {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--bc, var(--gg-night)); color: #fff;
  font-size: 19px; font-weight: var(--weight-black); letter-spacing: -.03em;
  box-shadow: inset 0 -10px 18px -12px rgba(0, 0, 0, .35);
  transition: transform var(--dur-3) var(--ease-spring);
}
@media (hover: hover) { .brandrow:hover .brandtile { transform: scale(1.08) rotate(-4deg); } }
.brandrow__name { display: block; font-size: 14.5px; font-weight: var(--weight-bold); margin-bottom: 5px; transition: color var(--dur-2); }
@media (hover: hover) { .brandrow:hover .brandrow__name { color: var(--color-primary); } }

/* Compact row ("Clip to cart") */
.crow {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 10px; border-radius: 18px;
  background: #fff; border: 1px solid var(--color-line-soft);
  transition: box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), border-color var(--dur-2);
}
@media (hover: hover) { .crow:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; } }
.crow .tile { width: 72px; height: 72px; border-radius: 14px; }
.crow__title { font-size: 13.5px; font-weight: var(--weight-semi); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.crow__title a::after { content: ""; position: absolute; inset: 0; }
.crow .price { margin-top: 4px; }
.crow .price__now { font-size: 16px; }
.crow .icon-btn { position: relative; z-index: 2; background: var(--color-primary-soft); color: var(--color-primary); border-radius: 50%; }
@media (hover: hover) { .crow .icon-btn:hover { background: var(--color-primary); color: #fff; } }

/* 13 · Section heads & rails ------------------------------------------------------------ */
.section { margin-top: 64px; }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; flex-wrap: wrap; }
.shead__title { font-size: 26px; font-weight: var(--weight-black); letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.shead__sub { margin-top: 6px; font-size: 14px; color: var(--color-text-muted); }
.shead__right { display: flex; align-items: center; gap: 16px; }

.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: -4px -2px -8px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn {
  position: absolute; top: 34%; z-index: 4;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--color-text);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: scale(.85);
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-out), background-color var(--dur-2), color var(--dur-2);
}
.rail__btn--prev { left: -18px; }
.rail__btn--next { right: -18px; }
@media (hover: hover) { .rail:hover .rail__btn:not(:disabled) { opacity: 1; transform: none; } }
@media (hover: hover) { .rail__btn:hover { background: var(--gg-night); color: #fff; } }
.rail__btn:disabled { opacity: 0 !important; pointer-events: none; }

/* 14 · Home: picture-banner hero ------------------------------------------------------------ */
.bhero { margin-top: 2px; }
.bslider {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 1;                 /* CMS artwork 1920×480 */
  border-radius: var(--radius-xl);
  background: var(--gg-night);
  touch-action: pan-y;
  box-shadow: 0 18px 40px -26px rgba(18, 3, 83, .55);
}
.bslider__track { display: flex; height: 100%; transition: transform var(--dur-5) var(--ease-in-out); will-change: transform; }
.bslide { flex: 0 0 100%; height: 100%; display: block; }
.bslide picture, .bslide img { display: block; width: 100%; height: 100%; }
.bslide img { object-fit: cover; object-position: center; -webkit-user-drag: none; user-select: none; }
.bslider__nav {
  position: absolute; top: 50%; z-index: 3; margin-top: -21px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); color: var(--gg-night);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-out), background-color var(--dur-2);
}
@media (hover: hover) { .bslider__nav:hover { background: #fff; } }
.bslider__nav--prev { left: 14px; transform: translateX(-8px); }
.bslider__nav--next { right: 14px; transform: translateX(8px); }
.bslider:hover .bslider__nav, .bslider:focus-within .bslider__nav { opacity: 1; transform: none; }
.bslider__dots {
  position: absolute; left: 50%; bottom: 12px; z-index: 3; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px 8px; border-radius: var(--radius-pill);
  background: rgba(14, 16, 48, .32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bslider__dot { position: relative; width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .5); overflow: hidden; transition: width var(--dur-4) var(--ease-out); }
.bslider__dot.is-active { width: 28px; }
.bslider__dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotfill var(--hero-ms, 6000ms) linear forwards; }
.bslider.is-paused .bslider__dot.is-active::after, .bslider.is-offscreen .bslider__dot.is-active::after { animation-play-state: paused; }
.bslider.is-static .bslider__dot.is-active::after { animation: none; transform: none; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Used-phones hub (the store's main business; sits after the catalog + flash sale) */
.usedhub {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px; border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, #E9F7F2 0%, #E6F2FF 55%, #EFEAFF 100%);
  border: 1px solid rgba(18, 3, 83, .06);
}
.usedhub::before {
  content: ""; position: absolute; z-index: -1; right: -70px; top: -90px; width: 360px; height: 310px;
  background: url("../img/bolt.svg") center / contain no-repeat; opacity: .12; transform: rotate(-12deg);
}
.usedhub__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.usedhub__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: var(--weight-black); letter-spacing: -.025em; line-height: 1.1; margin-top: 12px; }
.usedhub__sub { color: var(--color-text-2); font-size: 14.5px; margin-top: 6px; max-width: 560px; line-height: 1.5; }
.usedhub__trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.usedhub__trust li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .72); font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); line-height: 1.35; }
.usedhub__trust b { display: block; font-size: 13.5px; color: var(--color-text); }
.usedhub__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--gg-night); color: var(--gg-spark); }
.usedhub__shop { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin: 22px 0 24px; }
.usedhub__label { margin-bottom: 10px; }
.usedhub__brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ubrand {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; border-radius: 18px;
  background: #fff; border: 1px solid transparent;
  transition: border-color var(--dur-2), box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
@media (hover: hover) { .ubrand:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); } }
.ubrand .brandtile { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }
@media (hover: hover) { .ubrand:hover .brandtile { transform: scale(1.08) rotate(-4deg); } }
.ubrand__txt { flex: 1; min-width: 0; }
.ubrand b { display: block; font-size: 14px; }
.ubrand small { font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.ubrand > .i { color: var(--color-text-faint); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2); }
@media (hover: hover) { .ubrand:hover > .i { transform: translateX(3px); color: var(--color-primary); } }
.usedhub__budgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ubudget {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 62px; padding: 10px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .72); border: 1.5px dashed rgba(18, 3, 83, .14);
  transition: background-color var(--dur-2), border-color var(--dur-2), transform var(--dur-3) var(--ease-out);
}
@media (hover: hover) { .ubudget:hover { background: #fff; border-style: solid; border-color: var(--color-primary); transform: translateY(-2px); } }
.ubudget b { font-size: 13.5px; }
.ubudget small { font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-bold); }
.usedhub .rail__track { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
.usedhub .pcard { height: 100%; padding: 10px 10px 14px; border-radius: 24px; background: #fff; transition: box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
@media (hover: hover) { .usedhub .pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); } }
.usedhub .pcard__body { padding: 0 6px; }
.usedhub .pcard__meta { margin-top: auto; }
.pcard__specs { display: grid; gap: 5px; margin: 10px 0 14px; font-size: 12.5px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.pcard__specs li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pcard__specs li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__specs .i { color: var(--color-success); stroke-width: 2.4; }

/* Short videos (placeholder slot for future use) */
.shorts-mark { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--color-sale); color: #fff; }
.rail__track.shorts { grid-auto-columns: 208px; }
.short { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.short__media {
  position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%;
  aspect-ratio: 9 / 16; border-radius: 22px; text-align: left; color: #fff;
  box-shadow: 0 16px 30px -22px rgba(18, 3, 83, .6);
}
.short__media > .tile { position: absolute; inset: 0; border-radius: 0; }
.short__media .tile__img { inset: 12% 8% 34%; width: 84%; height: 54%; transition: transform var(--dur-5) var(--ease-out); }
.short__media .tile--photo .tile__img { inset: 0; width: 100%; height: 100%; }
@media (hover: hover) { .short:hover .short__media .tile__img { transform: scale(1.06); } }
.short__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14, 16, 48, .18) 0%, transparent 30%, transparent 48%, rgba(14, 16, 48, .88) 100%); }
.short__dur { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(14, 16, 48, .6); font-size: 11px; font-weight: var(--weight-black); }
.short__soon { position: absolute; left: 10px; top: 10px; z-index: 2; height: 24px; padding: 0 8px; border-radius: 8px; display: inline-flex; align-items: center; background: var(--gg-spark); color: var(--gg-night); font-size: 11px; font-weight: var(--weight-black); letter-spacing: .02em; }
.short__play {
  position: absolute; left: 50%; top: 42%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--gg-night);
  box-shadow: 0 10px 24px -8px rgba(14, 16, 48, .6);
  transition: transform var(--dur-3) var(--ease-spring), background-color var(--dur-2);
}
.short__play .i { margin-left: 3px; }
@media (hover: hover) { .short__media:hover .short__play { transform: scale(1.12); background: #fff; } }
.short__title { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; font-size: 14px; font-weight: var(--weight-black); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short__prod { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--color-line-soft); transition: border-color var(--dur-2); }
@media (hover: hover) { .short__prod:hover { border-color: var(--blue-200); } }
.short__prod .tile { width: 44px; height: 44px; border-radius: 10px; }
.short__prod b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.short__prod span span { font-size: 12.5px; font-weight: var(--weight-black); color: var(--color-primary); }
.modal--video .modal__panel { --modal-w: 420px; }
.vplayer { position: relative; aspect-ratio: 9 / 16; max-height: calc(100dvh - 160px); background: var(--gg-night); overflow: hidden; }
.vplayer video, .vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vplayer--soon > .tile { position: absolute; inset: 0; border-radius: 0; filter: saturate(.9); }
.vplayer__soon { position: absolute; inset: auto 0 0 0; z-index: 2; display: grid; justify-items: center; gap: 8px; padding: 70px 22px 24px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(14, 16, 48, .92) 38%); }
.vplayer__soon b { font-size: 18px; }
.vplayer__soon p { font-size: 13px; opacity: .85; line-height: 1.5; max-width: 300px; }
.vplayer__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* Home catalog toolbar (reference: Popular / Cheap / Expensive / Sale · Brand · Filter) */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 44px 0 26px; flex-wrap: wrap; }
.toolbar__right { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.dropdown { position: relative; }
.select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 46px; min-width: 190px; padding: 0 8px 0 16px;
  border-radius: 12px; border: 1px solid var(--color-line); background: #fff;
  font-size: 14px; font-weight: var(--weight-semi);
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
@media (hover: hover) { .select-btn:hover { border-color: var(--ink-300); } }
.select-btn[aria-expanded="true"] { border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(0, 191, 242, .14); }
.select-btn[aria-expanded="true"] .chev-btn { transform: rotate(180deg); }
.select-btn .chev-btn { width: 30px; height: 30px; }
.select-btn__val { color: var(--color-primary); font-weight: var(--weight-black); }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-dropdown);
  width: 260px; max-height: 340px; overflow: auto; overscroll-behavior: contain;
  padding: 10px 14px;
  background: #fff; border: 1px solid var(--color-line-soft);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none;
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-out);
}
.dropdown.is-open .dropdown__menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown__foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--color-line-soft); position: sticky; bottom: -10px; background: #fff; padding-bottom: 4px; }

/* 15 · Flash sale ------------------------------------------------------------------------ */
.flash {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--gradient-brand);
  color: #fff;
  padding: 28px 28px 30px;
}
.flash::before {
  content: ""; position: absolute; z-index: -1;
  width: 440px; height: 380px; right: -80px; top: -120px;
  background: url("../img/bolt.svg") center / contain no-repeat;
  opacity: .09; transform: rotate(-12deg);
  animation: drift 14s ease-in-out infinite alternate;
}
.flash::after {
  content: ""; position: absolute; z-index: -1;
  width: 640px; height: 640px; left: -220px; bottom: -420px;
  background: radial-gradient(closest-side, rgba(0, 191, 242, .42), transparent);
}
@keyframes drift { to { transform: rotate(-4deg) translate(-26px, 16px); } }
.flash__head { display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap; margin-bottom: 24px; }
.flash__title { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: var(--weight-black); letter-spacing: -.02em; }
.flash__bolt { width: 34px; height: 30px; filter: drop-shadow(0 0 14px rgba(0, 191, 242, .7)); animation: zap 2.8s ease-in-out infinite; }
@keyframes zap { 0%, 88%, 100% { transform: none; opacity: 1; } 90% { transform: scale(1.12) rotate(-6deg); opacity: .7; } 93% { transform: scale(.96); opacity: 1; } }
.flash__head .tabs { margin-left: auto; }
.flash__head .link-arrow { color: #fff; }
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown__label { font-size: 11px; font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; opacity: .72; margin-right: 6px; }
.countdown__box {
  position: relative; overflow: hidden;
  min-width: 46px; height: 46px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 21px; font-weight: var(--weight-black);
  font-variant-numeric: tabular-nums;
}
.countdown__box span { display: block; }
.countdown__box span.is-tick { animation: tick .45s var(--ease-out); }
@keyframes tick { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown__sep { font-weight: var(--weight-black); opacity: .6; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.countdown--light .countdown__box { background: var(--gg-night); color: #fff; border: 0; min-width: 34px; height: 30px; border-radius: 8px; font-size: 14px; }
.countdown--light .countdown__sep { color: var(--gg-night); }
.flash .pcard {
  background: #fff; color: var(--color-text);
  border-radius: 24px; padding: 10px 10px 16px;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3);
}
@media (hover: hover) { .flash .pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55); } }
.flash .pcard__body { padding: 0 6px; }
.flash .rail__btn { top: 40%; }

/* 16 · Banners (CMS banner slots) ------------------------------------------------------------ */
.promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius-xl);
  padding: 30px 32px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: var(--gg-night);
}
.promo--spark { background: linear-gradient(120deg, #0B1FB5 0%, #0F6FE0 55%, #00BFF2 100%); color: #fff; }
.promo--lilac { background: var(--gradient-lilac); }
.promo--ice { background: var(--gradient-ice); }
.promo__kicker { font-size: 11px; font-weight: var(--weight-black); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.promo__title { font-size: clamp(24px, 2.2vw, 32px); font-weight: var(--weight-black); letter-spacing: -.025em; line-height: 1.05; margin-top: 8px; max-width: 58%; }
.promo__text { font-size: 14px; font-weight: var(--weight-semi); opacity: .88; margin-top: 10px; max-width: 52%; line-height: 1.45; }
.promo .btn { margin-top: 18px; }
.promo__art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; z-index: -1; pointer-events: none; }
.promo__art img { position: absolute; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(18, 3, 83, .3)); transition: transform var(--dur-5) var(--ease-out); }
.promo__art--blend { mix-blend-mode: multiply; } /* white packshots melt into light banners */
.promo__art--blend img { filter: none; }
@media (hover: hover) { .promo:hover .promo__art img:nth-child(1) { transform: translateY(-8px) rotate(-3deg); } }
@media (hover: hover) { .promo:hover .promo__art img:nth-child(2) { transform: translateY(-4px) rotate(4deg); } }
.promo__ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .28); }
.promo__glow { position: absolute; left: -10%; right: -20%; top: 5%; bottom: -30%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(0, 191, 242, .25) 55%, transparent); }
.promo__banks { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; max-width: 60%; }
.promo__banks span { height: 26px; padding: 0 9px; border-radius: 7px; background: rgba(255, 255, 255, .7); font-size: 10.5px; font-weight: var(--weight-black); display: inline-flex; align-items: center; color: var(--gg-night); }

/* 17 · Home blocks ---------------------------------------------------------------------------- */
.brandgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.brandcard {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 10px 16px;
  border-radius: 20px; background: rgba(255, 255, 255, .8);
  border: 1px solid var(--color-line-soft);
  text-align: center;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-2);
}
@media (hover: hover) { .brandcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; } }
@media (hover: hover) { .brandcard:hover .brandtile { transform: scale(1.08) rotate(-4deg); } }
.brandcard b { font-size: 14px; }
.brandcard small { font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: -8px; }

.crow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blogcard { position: relative; display: flex; flex-direction: column; }
.blogcard .tile { aspect-ratio: 16 / 9; }
@media (hover: hover) { .blogcard:hover .tile__img { transform: scale(1.06) rotate(-2deg); } }
.blogcard__meta { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.blogcard h3 { font-size: 18px; font-weight: var(--weight-bold); line-height: 1.3; margin-top: 8px; letter-spacing: -.01em; }
.blogcard h3 a::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) { .blogcard:hover h3 { color: var(--color-primary); } }
.blogcard .link-arrow { margin-top: 10px; }

.trust {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 24px; background: rgba(255, 255, 255, .85);
  border: 1px solid var(--color-line-soft);
  padding: 8px;
}
.trust__item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--color-line); }
.trust__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--color-primary-soft); color: var(--color-primary); }
.trust__item b { display: block; font-size: 14.5px; line-height: 1.2; }
.trust__item span { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }

.seo { border-radius: 24px; background: rgba(255, 255, 255, .85); border: 1px solid var(--color-line-soft); padding: 28px 32px; }
.seo__body { position: relative; max-height: 190px; overflow: hidden; transition: max-height var(--dur-5) var(--ease-in-out); }
.seo__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, #fff); transition: opacity var(--dur-3); }
.seo.is-open .seo__body::after { opacity: 0; }
.seo__body h2 { font-size: 20px; font-weight: var(--weight-black); letter-spacing: -.01em; margin-bottom: 10px; }
.seo__body h3 { font-size: 16px; font-weight: var(--weight-bold); margin: 18px 0 6px; }
.seo__body p { color: var(--color-text-2); font-size: 14px; line-height: 1.7; }
.seo__body a { color: var(--color-primary); font-weight: var(--weight-bold); }
.seo__toggle { margin-top: 14px; }
.price-table { width: 100%; margin-top: 14px; font-size: 14px; }
.price-table th, .price-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--color-line-soft); }
.price-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.price-table td:last-child { font-weight: var(--weight-black); text-align: right; }

/* 18 · Footer ------------------------------------------------------------------------------------ */
.newsband {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px; align-items: center;
  padding: 30px 36px;
  border-radius: 28px;
  background: var(--gradient-spark);
  color: #fff;
  margin-bottom: -58px;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}
.newsband::before { content: ""; position: absolute; z-index: -1; right: 20%; top: -70px; width: 220px; height: 190px; background: url("../img/bolt.svg") center / contain no-repeat; filter: brightness(0) invert(1); opacity: .12; transform: rotate(-10deg); }
.newsband h3 { font-size: 24px; font-weight: var(--weight-black); letter-spacing: -.02em; }
.newsband p { opacity: .9; font-size: 14px; margin-top: 4px; }
.newsband form { display: flex; gap: 8px; padding: 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28); }
.newsband input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: #fff; padding: 0 16px; font-weight: var(--weight-semi); }
.newsband input::placeholder { color: rgba(255, 255, 255, .75); }
.newsband input:focus { outline: none; }
.footer { background: var(--gg-night); color: rgba(255, 255, 255, .72); padding: 110px 0 28px; margin-top: 80px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__logo img { height: 46px; width: auto; }
.footer__about { margin-top: 16px; line-height: 1.6; max-width: 320px; }
.footer__contact { display: grid; gap: 10px; margin-top: 18px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: var(--weight-semi); }
.footer__contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact .i { color: var(--gg-spark); }
.footer h4 { color: #fff; font-size: 14.5px; font-weight: var(--weight-bold); margin-bottom: 14px; }
.footer__links { display: grid; gap: 9px; }
.footer__links a { transition: color var(--dur-2), transform var(--dur-2) var(--ease-out); display: inline-block; }
@media (hover: hover) { .footer__links a:hover { color: #fff; transform: translateX(3px); } }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color var(--dur-2), transform var(--dur-2); }
@media (hover: hover) { .footer__social a:hover { background: var(--gg-spark); color: var(--gg-night); transform: translateY(-2px); } }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.paylist { display: flex; flex-wrap: wrap; gap: 6px; }
.paylist span { height: 28px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; background: #fff; color: var(--gg-night); font-size: 11px; font-weight: var(--weight-black); letter-spacing: .02em; }
.paylist .pay--bkash { color: #D12053; }
.paylist .pay--nagad { color: #EC1C24; }
.paylist .pay--visa { color: #1A1F71; font-style: italic; }
.paylist .pay--mc { color: #EB001B; }
.paylist .pay--amex { color: #2E77BC; }

/* 19 · Overlays: drawer + modal (native <dialog>) ---------------------------------------------- */
dialog.overlay {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: inherit;
  overflow: hidden;
}
dialog.overlay::backdrop { background: transparent; }
.overlay__scrim {
  position: absolute; inset: 0;
  background: rgba(14, 16, 48, .46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--dur-4) var(--ease-out);
}
.overlay.is-open .overlay__scrim { opacity: 1; }

.drawer__panel {
  position: absolute; top: 0; right: 0;
  width: min(440px, 100%); height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(104%);
  transition: transform var(--dur-4) var(--ease-out);
}
.drawer--left .drawer__panel { right: auto; left: 0; transform: translateX(-104%); }
.overlay.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--color-line-soft); }
.drawer__head h2 { font-size: 20px; font-weight: var(--weight-black); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.drawer__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 18px 22px; }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-line-soft); background: var(--ink-50); }

.modal__panel {
  --modal-w: 640px;
  position: absolute; left: 50%; top: 50%;
  width: min(var(--modal-w), calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -46%) scale(.965);
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-3) var(--ease-out);
}
.overlay.is-open .modal__panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal--lg .modal__panel { --modal-w: 880px; }
.modal--md .modal__panel { --modal-w: 720px; }
.modal--sm .modal__panel { --modal-w: 480px; }
.modal__head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--color-line-soft); }
.modal__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff; background: var(--gradient-spark); }
.modal__title { font-size: 20px; font-weight: var(--weight-black); letter-spacing: -.015em; line-height: 1.2; }
.modal__sub { font-size: 13px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: 2px; }
.modal__close { margin-left: auto; }
.modal__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 22px 24px; }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--color-line-soft); background: var(--ink-50); }
.modal__foot-note { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.sheet-handle { display: none; }

/* 20 · Cart -------------------------------------------------------------------------------------- */
.cart-list { display: grid; gap: 14px; }
.citem { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--color-line); animation: slide-in var(--dur-4) var(--ease-out) both; }
.citem .tile { width: 76px; height: 76px; border-radius: 16px; }
.citem__name { font-size: 14px; font-weight: var(--weight-bold); line-height: 1.35; }
.citem__variant { font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: 2px; }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.citem__price { font-weight: var(--weight-black); font-size: 15px; }
.citem__remove { font-size: 12px; font-weight: var(--weight-bold); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 4px; transition: color var(--dur-1); }
@media (hover: hover) { .citem__remove:hover { color: var(--color-sale); } }
.citem.is-leaving { animation: slide-out var(--dur-3) var(--ease-in-out) forwards; }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } }
@keyframes slide-out { to { opacity: 0; transform: translateX(24px); height: 0; padding: 0; margin: 0; border: 0; } }
.cart-sum { display: grid; gap: 8px; font-size: 14px; }
.cart-sum div { display: flex; justify-content: space-between; }
.cart-sum .total { font-size: 18px; font-weight: var(--weight-black); padding-top: 8px; border-top: 1px solid var(--color-line); margin-top: 4px; }
.cart-free { margin-bottom: 14px; font-size: 12.5px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.cart-free .flash-meter__bar { margin-top: 8px; }
.cart-free .flash-meter__bar i { background: var(--gradient-spark); }
.cart-free__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--color-success-ink); font-weight: var(--weight-black); }
.cart-free__alt { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--color-text-muted); }
.cart-free__alt .i { color: var(--color-primary); }
.cart-cta { margin-top: 14px; }
.cart-pay { margin-top: 10px; font-size: 12px; text-align: center; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 12px; }
.empty-state__art { width: 110px; height: 110px; border-radius: 34px; display: grid; place-items: center; background: var(--gradient-ice); color: var(--color-primary); margin-bottom: 8px; animation: float 5s ease-in-out infinite; }
.empty-state__art .i { width: 44px; height: 44px; stroke-width: 1.5; }
.empty-state h3 { font-size: 18px; font-weight: var(--weight-black); }
.empty-state p { color: var(--color-text-muted); font-size: 14px; max-width: 300px; }

/* Flying product thumbnail (add-to-cart) */
.fly { position: fixed; z-index: var(--z-toast); width: 64px; height: 64px; border-radius: 16px; pointer-events: none; box-shadow: var(--shadow-md); overflow: hidden; }

/* 21 · Toast -------------------------------------------------------------------------------------- */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  background: var(--ink-950); color: #fff;
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--dur-4) var(--ease-out) both;
}
.toast .tile { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.toast__ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--color-success); }
.toast__ico--info { background: var(--color-primary); }
.toast__ico--warn { background: var(--amber-400); color: var(--gg-night); }
.toast__txt { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.toast__txt b { display: block; font-size: 14px; }
.toast__txt span { opacity: .75; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__action { font-size: 12.5px; font-weight: var(--weight-black); color: var(--gg-spark); padding: 6px 8px; border-radius: 8px; }
@media (hover: hover) { .toast__action:hover { background: rgba(255, 255, 255, .08); } }
.toast.is-leaving { animation: toast-out var(--dur-3) var(--ease-in-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px) scale(.96); } }

/* 22 · Skeleton ----------------------------------------------------------------------------------- */
.skel { position: relative; overflow: hidden; background: var(--ink-150); border-radius: 10px; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card .skel:first-child { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.skel-line { height: 14px; margin-top: 12px; }
.skel-line--short { width: 55%; }
.skel-line--price { height: 22px; width: 40%; }

/* 23 · Listing (PLP) ----------------------------------------------------------------------------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; font-weight: var(--weight-semi); color: var(--color-text-muted); }
.crumbs a { transition: color var(--dur-1); }
@media (hover: hover) { .crumbs a:hover { color: var(--color-primary); } }
.crumbs .i { width: 14px; height: 14px; color: var(--color-text-faint); }
.crumbs [aria-current] { color: var(--color-text); }
.plp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.plp-title { font-size: 34px; font-weight: var(--weight-black); letter-spacing: -.025em; line-height: 1.1; }
.plp-count { font-size: 14px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: 6px; }
.plp-count b { color: var(--color-text); }
.plp-banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; border-radius: 24px; margin-bottom: 22px;
  background: var(--gradient-ice);
}
.plp-banner h2 { font-size: 20px; font-weight: var(--weight-black); letter-spacing: -.01em; }
.plp-banner p { font-size: 13.5px; color: var(--color-text-2); margin-top: 2px; }
.plp-banner__imgs { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.plp-banner__imgs img { height: 100%; width: auto; mix-blend-mode: multiply; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 6px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft); color: var(--color-primary);
  font-size: 12.5px; font-weight: var(--weight-bold);
  animation: pop-in var(--dur-3) var(--ease-spring) both;
}
.fchip button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; transition: background-color var(--dur-1); }
@media (hover: hover) { .fchip button:hover { background: #fff; } }
.fchip button .i { width: 12px; height: 12px; stroke-width: 2.4; }
.clear-link { font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .clear-link:hover { color: var(--color-sale); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.8); } }
.filters .fgroup { padding: 18px 0; border-bottom: 1px solid var(--color-line-soft); }
.filters .fgroup:first-child { padding-top: 4px; }
.fgroup__title { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; font-weight: var(--weight-black); margin-bottom: 12px; }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 14px; }
.price-inputs .input { height: 40px; font-size: 13.5px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sw, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 4px var(--color-line);
  transition: box-shadow var(--dur-2), transform var(--dur-2) var(--ease-spring);
}
@media (hover: hover) { .swatch:hover { transform: scale(1.08); } }
.swatch[aria-pressed="true"], .swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--color-primary); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: grid; justify-items: center; gap: 12px; margin-top: 44px; }
.pager__txt { font-size: 13px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.pager__bar { width: 240px; height: 4px; border-radius: 4px; background: var(--ink-150); overflow: hidden; }
.pager__bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--gradient-spark); border-radius: inherit; transition: width var(--dur-5) var(--ease-out); }
.empty {
  grid-column: 1 / -1;
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 64px 20px; border-radius: 28px;
  background: rgba(255, 255, 255, .85); border: 1.5px dashed var(--color-line);
}

/* 24 · Product detail (PDP) -------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: start; margin-top: 16px; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: 30px; cursor: zoom-in; }
.gallery__main .tile__img { inset: 10%; width: 80%; height: 80%; transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3); }
.gallery__main.is-zoom .tile__img { transform: scale(2); }
.gallery__main.is-zoom { cursor: zoom-out; }
.gallery__badges { position: absolute; left: 18px; top: 18px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gallery__tools { position: absolute; right: 16px; top: 16px; z-index: 2; display: grid; gap: 8px; }
.gallery__tools .icon-btn { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 50%; }
.gallery__tools .icon-btn[aria-pressed="true"] { color: var(--color-sale); }
.gallery__tools .icon-btn[aria-pressed="true"] .i { fill: currentColor; }
.gallery__hint { position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .8); font-size: 11.5px; font-weight: var(--weight-bold); color: var(--color-text-2); transition: opacity var(--dur-2); pointer-events: none; }
.gallery__main.is-zoom .gallery__hint { opacity: 0; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; }
.gallery__thumb { width: 78px; aspect-ratio: 1; border-radius: 18px; padding: 0; border: 2px solid transparent; transition: border-color var(--dur-2), transform var(--dur-2); }
.gallery__thumb .tile { width: 100%; height: 100%; border-radius: 15px; }
@media (hover: hover) { .gallery__thumb:hover { transform: translateY(-2px); } }
.gallery__thumb[aria-current="true"] { border-color: var(--color-primary); }

.pinfo__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--weight-black); color: var(--color-primary); }
.pinfo__brand .brand-dot { width: 22px; height: 22px; }
.pinfo__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: var(--weight-black); letter-spacing: -.025em; line-height: 1.12; margin-top: 10px; }
.pinfo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 13px; font-weight: var(--weight-semi); color: var(--color-text-muted); }
.stars { display: inline-flex; align-items: center; gap: 2px; color: #F5A524; }
.stars .i { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars b { color: var(--color-text); margin-left: 6px; font-size: 13.5px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px 0 12px;
  border-radius: var(--radius-pill);
  background: var(--color-warning-soft); color: var(--color-warning-ink);
  font-size: 12.5px; font-weight: var(--weight-bold);
}
.live-pill b { font-variant-numeric: tabular-nums; }
.pricebox { margin-top: 20px; padding: 22px 24px; border-radius: 26px; background: #fff; border: 1px solid var(--color-line-soft); box-shadow: var(--shadow-sm); }
.pricebox__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.pricebox__now { font-size: 38px; font-weight: var(--weight-black); letter-spacing: -.03em; line-height: 1; }
.pricebox__old { font-size: 17px; font-weight: var(--weight-semi); color: var(--color-text-faint); text-decoration: line-through; }
.pricebox__emi { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; font-size: 13.5px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.pricebox__emi button { color: var(--color-primary); font-weight: var(--weight-black); text-decoration: underline; text-underline-offset: 3px; }
.keyspecs { display: grid; gap: 11px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--color-line); }
.keyspecs li { display: grid; grid-template-columns: 30px 96px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.45; }
.keyspecs .i { width: 18px; height: 18px; color: var(--color-primary); margin-top: 1px; }
.keyspecs b { font-weight: var(--weight-black); }
.keyspecs span { color: var(--color-text-2); }
.keyspecs__note { font-size: 11.5px; color: var(--color-text-faint); font-style: italic; margin-top: 4px; }

.opt { margin-top: 22px; }
.opt__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: var(--weight-black); margin-bottom: 10px; }
.opt__label span { color: var(--color-text-muted); font-weight: var(--weight-semi); }
.opt__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 46px; padding: 6px 16px;
  border-radius: 14px; border: 1.5px solid var(--color-line); background: #fff;
  font-size: 13.5px; font-weight: var(--weight-black);
  transition: border-color var(--dur-2), background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-1);
}
.choice small { font-size: 11px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
@media (hover: hover) { .choice:hover { border-color: var(--blue-300); } }
.choice:active { transform: scale(.97); }
.choice[aria-checked="true"] { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary); box-shadow: 0 0 0 3px var(--blue-100); }
.choice[aria-checked="true"] small { color: var(--blue-500); }
.choice.is-na { opacity: .5; text-decoration: line-through; }
.variant-line { margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--ink-50); font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-text-2); }


.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.feat {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 20px;
  color: #fff; text-align: left;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3);
}
.feat::after { /* shine sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .8s var(--ease-out);
}
@media (hover: hover) { .feat:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -16px var(--feat-shadow, rgba(18, 3, 83, .5)); } }
@media (hover: hover) { .feat:hover::after { left: 120%; } }
.feat:active { transform: translateY(-1px) scale(.98); }
.feat__ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #fff; color: var(--feat-c); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .35); }
.feat__t { display: block; font-size: 14.5px; font-weight: var(--weight-black); line-height: 1.15; }
.feat__s { display: block; font-size: 11.5px; font-weight: var(--weight-bold); opacity: .88; margin-top: 2px; }
.feat--exchange { --feat-c: var(--cyan-600); --feat-shadow: rgba(0, 134, 176, .6); background: linear-gradient(120deg, #00BFF2 0%, #0B8FD8 55%, #1628D0 100%); }
.feat--emi { --feat-c: var(--blue-500); --feat-shadow: rgba(52, 72, 238, .6); background: linear-gradient(120deg, #1628D0 0%, #3448EE 45%, #7B5CF5 100%); }
.feat--price { --feat-c: var(--gg-night); --feat-shadow: rgba(18, 3, 83, .55); background: linear-gradient(120deg, #120353 0%, #1D1A8C 55%, #0B6FC2 100%); }
.feat__s .dot { width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; }
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.tool {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 6px 10px;
  border-radius: 16px; background: var(--ink-100); color: var(--ink-800);
  font-size: 12.5px; font-weight: var(--weight-bold); text-align: center; line-height: 1.2;
  transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-1);
}
@media (hover: hover) { .tool:hover { background: var(--color-primary-soft); color: var(--color-primary); } }
.tool:active { transform: scale(.97); }
.tool .i { width: 17px; height: 17px; }

.pinfo-list { margin-top: 18px; border-radius: 20px; background: var(--ink-50); padding: 4px 18px; }
.pinfo-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 13.5px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.pinfo-list li + li { border-top: 1px dashed var(--color-line); }
.pinfo-list b { color: var(--color-text); font-weight: var(--weight-black); font-size: 15px; white-space: nowrap; }
.pinfo-list small { display: block; font-size: 11.5px; color: var(--color-text-muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.stat { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--color-line-soft); }
.stat span { display: block; font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-bold); }
.stat b { display: block; font-size: 16px; font-weight: var(--weight-black); margin-top: 2px; }

.buy { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.buy .btn { --btn-h: 52px; font-size: 14.5px; }
.also { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; font-size: 13px; font-weight: var(--weight-semi); color: var(--color-text-muted); }
.also a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--color-line); color: var(--color-text); font-weight: var(--weight-bold); font-size: 12.5px; transition: border-color var(--dur-2), transform var(--dur-1); }
@media (hover: hover) { .also a:hover { border-color: var(--blue-300); transform: translateY(-1px); } }
.also .i { width: 16px; height: 16px; }
.also .wa .i { color: #25A244; }
.also .ms .i { color: #3B6BF6; }
.also .call .i { color: var(--color-primary); }
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.delivery__item { display: flex; gap: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--color-line-soft); background: #fff; }
.delivery__item .i { color: var(--color-primary); margin-top: 2px; }
.delivery__item b { display: block; font-size: 13.5px; }
.delivery__item span { display: block; font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); line-height: 1.45; }
.delivery__item em { font-style: normal; color: var(--color-sale-ink); font-weight: var(--weight-bold); }

.ptabs {
  position: sticky; top: var(--header-h); z-index: calc(var(--z-sticky) - 1);
  margin-top: 64px;
  background: rgba(251, 251, 254, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.ptabs__list { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; padding: 0; }
.ptabs__list::-webkit-scrollbar { display: none; }
.ptabs a { position: relative; padding: 16px 0 14px; font-size: 14.5px; font-weight: var(--weight-bold); color: var(--color-text-muted); white-space: nowrap; transition: color var(--dur-2); }
@media (hover: hover) { .ptabs a:hover { color: var(--color-text); } }
.ptabs a.is-active { color: var(--color-text); }
.ptabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--color-primary); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.ptabs a.is-active::after { transform: scaleX(1); }
.pdp-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; margin-top: 30px; align-items: start; }
.pdp-section + .pdp-section { margin-top: 52px; }
.pdp-section > h2 { font-size: 24px; font-weight: var(--weight-black); letter-spacing: -.02em; margin-bottom: 18px; }
.spec-group + .spec-group { margin-top: 22px; }
.spec-group h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-black); text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary); margin-bottom: 10px; }
.spec-table { border-radius: 18px; overflow: hidden; border: 1px solid var(--color-line-soft); background: #fff; }
.spec-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 18px; font-size: 14px; }
.spec-row:nth-child(even) { background: var(--ink-50); }
.spec-row dt { color: var(--color-text-muted); font-weight: var(--weight-bold); }
.spec-row dd { font-weight: var(--weight-semi); color: var(--color-text); line-height: 1.5; }
.prose { font-size: 15px; line-height: 1.75; color: var(--color-text-2); }
.prose h3 { font-size: 18px; font-weight: var(--weight-black); color: var(--color-text); margin: 26px 0 8px; letter-spacing: -.01em; }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 10px; margin-top: 12px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--gradient-spark); transform: rotate(45deg); }
.prose strong { color: var(--color-text); font-weight: var(--weight-black); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--color-line-soft); overflow: hidden; transition: box-shadow var(--dur-3), border-color var(--dur-2); }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--blue-100); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: var(--weight-bold); font-size: 14.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform var(--dur-3) var(--ease-out); color: var(--color-text-muted); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--color-primary); }
.faq__a { padding: 0 18px 16px; color: var(--color-text-2); font-size: 14px; line-height: 1.65; }
.reviews-sum { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--color-line-soft); }
.reviews-sum__avg { text-align: center; }
.reviews-sum__avg b { display: block; font-size: 52px; font-weight: var(--weight-black); line-height: 1; letter-spacing: -.03em; }
.reviews-sum__avg span { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.rbar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
.rbar + .rbar { margin-top: 8px; }
.rbar__track { height: 8px; border-radius: 8px; background: var(--ink-150); overflow: hidden; }
.rbar__track i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: #F5A524; transform-origin: left; animation: grow 1s var(--ease-out) both; }
.review { padding: 18px 0; border-bottom: 1px dashed var(--color-line); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tile-lilac); color: var(--gg-night); font-weight: var(--weight-black); font-size: 13px; }
.review__name { font-weight: var(--weight-black); font-size: 14px; }
.review__meta { font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.review p { margin-top: 10px; color: var(--color-text-2); font-size: 14px; line-height: 1.6; }
.aside-card { position: sticky; top: calc(var(--header-h) + 72px); padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--color-line-soft); box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 16px; font-weight: var(--weight-black); }
.aside-card p { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; line-height: 1.5; }
.aside-card .crow { border: 0; padding: 8px 0; background: none; border-radius: 0; }
@media (hover: hover) { .aside-card .crow:hover { box-shadow: none; transform: none; } }
.aside-card .crow + .crow { border-top: 1px dashed var(--color-line); }
.help-card { margin-top: 16px; padding: 18px; border-radius: 20px; background: var(--gradient-brand); color: #fff; }
.help-card b { display: block; font-size: 15px; }
.help-card span { font-size: 12.5px; opacity: .85; }
.help-card .btn { margin-top: 12px; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--color-line-soft);
  box-shadow: 0 -14px 34px -24px rgba(18, 3, 83, .45);
  transform: translateY(110%);
  transition: transform var(--dur-4) var(--ease-out);
}
.buybar.is-visible { transform: none; }
.buybar__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 86px; }
.buybar__prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.buybar__prod .tile { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.buybar__prod b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__prod span { display: block; font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__ship { display: flex; gap: 22px; }
.buybar__ship div { display: flex; gap: 10px; font-size: 12px; font-weight: var(--weight-semi); color: var(--color-text-muted); line-height: 1.35; }
.buybar__ship b { display: block; color: var(--color-text); font-size: 13px; }
.buybar__ship em { font-style: normal; color: var(--color-sale-ink); }
.buybar__ship .i { color: var(--color-primary); }
.buybar__price b { display: block; font-size: 22px; font-weight: var(--weight-black); letter-spacing: -.02em; line-height: 1.1; }
.buybar__price span { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.buybar__price button { display: flex; align-items: center; gap: 2px; white-space: nowrap; font-size: 12px; font-weight: var(--weight-black); color: var(--color-primary); margin-top: 2px; }
.buybar__cta { display: flex; align-items: center; gap: 10px; }

/* 25 · PDP modals ---------------------------------------------------------------------------------- */
.xsteps { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-bottom: 1px solid var(--color-line-soft); background: var(--ink-50); }
.xstep-dot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-text-faint); white-space: nowrap; }
.xstep-dot i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--color-line); background: #fff; font-style: normal; font-size: 12px; font-weight: var(--weight-black); transition: background-color var(--dur-3), border-color var(--dur-3), color var(--dur-3), box-shadow var(--dur-3); }
.xstep-dot.is-active { color: var(--color-text); }
.xstep-dot.is-active i { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.xstep-dot.is-done { color: var(--color-success-ink); }
.xstep-dot.is-done i { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.xstep-line { flex: 1; min-width: 16px; height: 2px; border-radius: 2px; background: var(--color-line); position: relative; overflow: hidden; }
.xstep-line::after { content: ""; position: absolute; inset: 0; background: var(--color-success); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-4) var(--ease-out); }
.xstep-line.is-done::after { transform: scaleX(1); }
.xpane { display: none; }
.xpane.is-active { display: block; animation: pane-in var(--dur-4) var(--ease-out) both; }
.xpane.is-back { animation-name: pane-back; }
@keyframes pane-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes pane-back { from { opacity: 0; transform: translateX(-22px); } }
.xlabel { font-size: 12px; font-weight: var(--weight-black); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 10px; }
.xlabel + .optgrid, .xlabel + .chip-grid { margin-bottom: 20px; }
.optgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.optcard {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px;
  border-radius: 16px; border: 1.5px solid var(--color-line); background: #fff;
  text-align: left; font-weight: var(--weight-black); font-size: 14px;
  transition: border-color var(--dur-2), background-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-1);
}
.optcard small { display: block; font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); line-height: 1.35; }
.optcard .i { color: var(--color-primary); }
@media (hover: hover) { .optcard:hover { border-color: var(--blue-300); } }
.optcard:active { transform: scale(.98); }
.optcard[aria-checked="true"] { border-color: var(--color-primary); background: var(--color-primary-soft); box-shadow: 0 0 0 3px var(--blue-100); }
.optcard[aria-checked="true"]::after { content: ""; position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; animation: pop-in var(--dur-3) var(--ease-spring); }
.model-list { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding-right: 4px; }
.model-list .optcard { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 44px 12px 14px; }
.cond-list { display: grid; gap: 10px; }
.cond-list .optcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 14px 16px; }
.cond-list .optcard[aria-checked="true"]::after { display: none; }
.cond-val { font-size: 17px; font-weight: var(--weight-black); color: var(--color-success-ink); }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 8px; }
.xest {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 16px 18px;
  border-radius: 18px; background: var(--color-success-soft);
}
.xest span { font-size: 13px; font-weight: var(--weight-bold); color: var(--color-success-ink); }
.xest b { font-size: 26px; font-weight: var(--weight-black); color: var(--color-success-ink); letter-spacing: -.02em; }
.quote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.quote__card { border-radius: 22px; border: 1px solid var(--color-line-soft); padding: 18px 20px; background: #fff; }
.quote__line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.quote__line + .quote__line { border-top: 1px dashed var(--color-line); }
.quote__line b { color: var(--color-text); font-weight: var(--weight-black); white-space: nowrap; }
.quote__line--minus b { color: var(--color-success-ink); }
.quote__total { margin-top: 8px; padding: 16px 18px; border-radius: 18px; background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote__total span { font-size: 13px; font-weight: var(--weight-bold); opacity: .85; }
.quote__total--credit { background: linear-gradient(120deg, #0B7A3E, #12A150 60%, #00BFF2); }
.quote__total b { font-size: 30px; font-weight: var(--weight-black); letter-spacing: -.02em; }
.quote__emi { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: 10px; }
.quote__bar { display: flex; height: 14px; border-radius: 14px; overflow: hidden; margin: 14px 0 8px; background: var(--ink-150); }
.quote__bar i { display: block; height: 100%; transition: width var(--dur-5) var(--ease-out); }
.quote__bar .q-old { background: var(--color-success); }
.quote__bar .q-bonus { background: var(--gg-spark); }
.quote__bar .q-pay { background: var(--gg-night); }
.quote__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
.quote__legend span { display: inline-flex; align-items: center; gap: 6px; }
.howto { display: grid; gap: 12px; }
.howto li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; font-weight: var(--weight-semi); color: var(--color-text-2); line-height: 1.45; }
.howto li b { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); font-weight: var(--weight-black); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.success { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 0 6px; }
.success__ico { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--color-success); color: #fff; box-shadow: 0 0 0 10px var(--color-success-soft); animation: pop-in var(--dur-4) var(--ease-spring); }
.success__ico .i { width: 40px; height: 40px; stroke-width: 2.6; }
.success h3 { font-size: 22px; font-weight: var(--weight-black); margin-top: 8px; }
.success p { color: var(--color-text-muted); font-size: 14px; max-width: 420px; }
.success__id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: var(--ink-100); }

.emi { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 460px; }
.emi__banks { border-right: 1px solid var(--color-line-soft); padding: 16px; display: flex; flex-direction: column; min-height: 0; background: var(--ink-50); }
.emi__search { position: relative; margin-bottom: 10px; }
.emi__search .i { position: absolute; left: 12px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: var(--color-text-faint); }
.emi__search .input { padding-left: 38px; height: 42px; }
.banklist { flex: 1; overflow-y: auto; overflow-x: hidden; display: grid; align-content: start; gap: 2px; max-height: 470px; padding-right: 4px; overscroll-behavior: contain; }
.bank { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; font-weight: var(--weight-semi); text-align: left; transition: background-color var(--dur-1), color var(--dur-1); }
@media (hover: hover) { .bank:hover { background: #fff; } }
.bank[aria-selected="true"] { background: #fff; color: var(--color-primary); font-weight: var(--weight-black); box-shadow: var(--shadow-xs), inset 3px 0 0 var(--color-primary); }
.bank__logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--bc, var(--gg-night)); color: #fff; font-size: 9.5px; font-weight: var(--weight-black); letter-spacing: -.02em; }
.bank__zero { margin-left: auto; }
.emi__main { padding: 18px 22px; min-width: 0; }
.emi__prod { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--ink-50); }
.emi__prod .tile { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.emi__prod b { display: block; font-size: 14px; }
.emi__prod span { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.emi__table { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0 6px; font-size: 13.5px; }
.emi__table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); font-weight: var(--weight-black); padding: 0 12px 2px; }
.emi__table td { padding: 12px; background: #fff; border-top: 1px solid var(--color-line-soft); border-bottom: 1px solid var(--color-line-soft); font-weight: var(--weight-semi); transition: background-color var(--dur-1); }
.emi__table td:first-child { border-left: 1px solid var(--color-line-soft); border-radius: 14px 0 0 14px; }
.emi__table td:last-child { border-right: 1px solid var(--color-line-soft); border-radius: 0 14px 14px 0; text-align: right; }
.emi__table tr { cursor: pointer; animation: slide-in var(--dur-4) var(--ease-out) both; }
@media (hover: hover) { .emi__table tbody tr:hover td { background: var(--ink-50); } }
.emi__table tr[aria-selected="true"] td { background: var(--color-primary-soft); border-color: var(--blue-200); }
.emi__table .mo { font-size: 17px; font-weight: var(--weight-black); color: var(--color-text); }
.emi__table .radio { pointer-events: none; padding: 0; }
.emi__note { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--color-warning-soft); color: var(--color-warning-ink); font-size: 12.5px; font-weight: var(--weight-semi); line-height: 1.5; }
.emi__note .i { flex: none; margin-top: 1px; }

.pc-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 22px; background: var(--gradient-ice); }
.pc-hero span { font-size: 13px; font-weight: var(--weight-bold); color: var(--color-text-2); }
.pc-hero b { display: block; font-size: 34px; font-weight: var(--weight-black); letter-spacing: -.03em; color: var(--color-success-ink); line-height: 1.05; }
.pc-hero .badge { margin-top: 6px; }
.pc-list { display: grid; gap: 8px; margin-top: 16px; }
.pc-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 1.5px solid transparent; animation: slide-in var(--dur-4) var(--ease-out) both; }
.pc-row:nth-child(odd) { background: var(--ink-50); }
.pc-row.is-you { background: var(--color-primary-soft); border-color: var(--blue-200); }
.pc-rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 12px; font-weight: var(--weight-black); box-shadow: var(--shadow-xs); }
.is-you .pc-rank { background: var(--color-primary); color: #fff; }
.pc-name { display: flex; align-items: center; gap: 8px; font-weight: var(--weight-black); font-size: 14.5px; }
.pc-upd { font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.pc-bar { height: 6px; border-radius: 6px; background: rgba(18, 3, 83, .08); margin-top: 8px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--ink-300); transform-origin: left; animation: grow 1s var(--ease-out) both; }
.is-you .pc-bar i { background: var(--gradient-spark); }
.pc-price { text-align: right; }
.pc-price b { display: block; font-size: 16px; font-weight: var(--weight-black); }
.pc-diff { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: var(--weight-black); color: var(--color-sale-ink); background: var(--color-sale-soft); border-radius: 6px; padding: 3px 7px; }
.pc-loading { display: grid; justify-items: center; gap: 16px; padding: 30px 0 10px; text-align: center; }
.radar { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--color-primary-soft); display: grid; place-items: center; color: var(--color-primary); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue-300); animation: ripple 1.8s var(--ease-out) infinite; }
.radar::after { animation-delay: .9s; }
@keyframes ripple { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.pc-progress { width: 240px; height: 4px; border-radius: 4px; background: var(--ink-150); overflow: hidden; }
.pc-progress i { display: block; height: 100%; background: var(--gradient-spark); transform-origin: left; animation: load 1.6s var(--ease-in-out) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.meter { display: grid; gap: 14px; }
.meter__row { display: flex; justify-content: space-between; font-size: 14px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.meter__row b { color: var(--color-text); font-weight: var(--weight-black); }
.meter__stack { display: flex; height: 18px; border-radius: 18px; overflow: hidden; background: var(--ink-150); }
.meter__stack i { display: block; height: 100%; animation: grow 1s var(--ease-out) both; transform-origin: left; }

/* 26 · Mobile bottom nav ------------------------------------------------------------------------ */
.mnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--color-line-soft);
}
.mnav__item { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 10.5px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
.mnav__item.is-active { color: var(--color-primary); }
.mnav__item.is-active::before { content: ""; position: absolute; top: -6px; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-primary); }
.mnav__item .count { top: 0; right: calc(50% - 22px); }
.mnav__deal { color: var(--gg-night); }
.mnav__deal .mnav__bolt { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-brand); box-shadow: 0 10px 20px -8px rgba(0, 15, 158, .6), 0 0 0 4px #fff; }
.mnav__deal .mnav__bolt .i { color: #fff; width: 22px; height: 22px; }
.mcats { display: grid; gap: 4px; }
.mcats a { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; font-weight: var(--weight-bold); border-bottom: 1px solid var(--color-line-soft); }
.mcats a .i { color: var(--color-text-faint); }

/* 27 · Motion helpers --------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-5) var(--ease-out), transform var(--dur-5) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.stagger-in { animation: rise var(--dur-4) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }

/* 28 · Responsive -------------------------------------------------------------------------------- */
@media (min-width: 1024px) and (max-height: 880px) { .sidebar__links { display: none; } .catnav__item { padding: 7px 0; } }
@media (min-width: 1024px) and (max-height: 700px) { .promo-card { display: none; } }
@media (max-width: 1279px) {
  :root { --sidebar-w: 200px; }
  .main { padding-left: 24px; }
  .grid-products { gap: 30px 18px; }
  .brandgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .brandgrid > :nth-child(n + 13) { display: none; }
  .trust__item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .footer__grid { grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr)); gap: 24px; }
  .pdp-body { grid-template-columns: minmax(0, 1fr); }
  .pdp-body aside { display: none; }
  .features { grid-template-columns: 1fr 1fr 1fr; }
  .buybar__ship { display: none; }
  .usedhub__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usedhub .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .buybar__inner { grid-template-columns: minmax(0, 1fr) auto auto; }
}
@media (max-width: 1100px) {
  .usedhub__shop { grid-template-columns: minmax(0, 1fr); }
  .used-pill { padding: 0 12px; }
  .crow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crow-grid > :nth-child(9) { display: none; }
  .emi { grid-template-columns: 230px minmax(0, 1fr); }
  .grid-products { gap: 28px 16px; }
}
@media (max-width: 1023px) {
  :root { --sidebar-w: 0px; }
  .used-pill { display: none; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .usedhub__brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: relative; top: 0; max-width: 620px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { border-left: 0; padding-left: 0; }
  .spy { display: none; }
  .header__inner { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; }
  .header__inner > .header__menu { display: grid; margin-left: -8px; }
  .header__logo img { height: 36px; }
  .header__actions { padding-left: 8px; }
  .search { margin-left: 16px; }
  .topbar__links a:not(.topbar__phone) { display: none; }
  .mnav { display: grid; }
  body { padding-bottom: 76px; }
  .toasts { bottom: 90px; }
  .promos { grid-template-columns: minmax(0, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid > :nth-child(3) { display: none; }
  .newsband { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__item:nth-child(4)::before { display: none; }
  .buybar { bottom: 0; }
  .page-pdp .mnav { display: none; }
  .page-pdp { padding-bottom: 0; }
}
@media (max-width: 767px) {
  .topbar { font-size: 11.5px; }
  .topbar__links { display: none; }
  .header__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .header__logo img { height: 32px; }
  .search { grid-column: 1 / -1; grid-row: 2; margin: 0; max-width: none; }
  .header { height: auto; }
  .header__inner { padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .search__field { height: 44px; }
  .header__actions .hide-sm, .header__sep { display: none; }
  .header__actions { gap: 2px; }
  .avatar { width: 36px; height: 36px; font-size: 12px; }
  .main { padding-top: 18px; }
  .bslider { border-radius: 16px; }
  .bslider--art { aspect-ratio: 2 / 1; } /* every slide has 1080×540 mobile artwork via <source media> */
  .bslider__nav { display: none; }
  .bslider__dots { bottom: 6px; padding: 4px 6px; }
  .bslider__dot { width: 6px; height: 6px; }
  .bslider__dot.is-active { width: 18px; }
  .usedhub { padding: 20px 16px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
  .usedhub__head .btn { width: 100%; }
  .usedhub__trust { gap: 8px; }
  .usedhub__trust li { padding: 10px; gap: 10px; }
  .usedhub__ico { width: 32px; height: 32px; }
  .usedhub__brands, .usedhub__budgets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .ubrand { padding: 8px; gap: 8px; }
  .ubrand > .i { display: none; }
  .ubrand .brandtile { width: 36px; height: 36px; }
  .ubrand b { font-size: 13px; }
  .ubrand small { font-size: 11px; }
  .usedhub .rail__track { grid-auto-columns: 72%; }
  .rail__track.shorts { grid-auto-columns: 156px; }
  .short__title { font-size: 12.5px; left: 10px; right: 10px; bottom: 10px; }
  .short__play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .toolbar { margin-top: 32px; }
  .toolbar .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolbar__right { width: 100%; justify-content: space-between; }
  .select-btn { min-width: 0; flex: 1; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .pcard__media { aspect-ratio: 1 / 1; }
  .pcard__title { font-size: 13.5px; }
  .price__now { font-size: 18px; }
  .price__old { font-size: 12px; }
  .pcard__meta { gap: 8px; }
  .pcard__reviews { display: none; }
  .pcard__seller { font-size: 12px; }
  .brand-dot { width: 22px; height: 22px; }
  .pcard__add, .pcard__wish { opacity: 1; transform: none; }
  .pcard__add { height: 34px; min-width: 34px; padding: 0 9px; }
  .section { margin-top: 48px; }
  .shead__title { font-size: 22px; }
  .rail__track { grid-auto-columns: 72%; }
  .flash { padding: 22px 16px; margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .flash__title { font-size: 24px; }
  .flash__head .tabs { margin-left: 0; }
  .flash .rail__track { grid-auto-columns: 62%; }
  .rail__btn { display: none; }
  .promo { min-height: 210px; padding: 24px 22px; }
  .promo__title { max-width: 62%; }
  .promo__text { max-width: 60%; font-size: 13px; }
  .brandgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .brandgrid > :nth-child(n + 9) { display: none; }
  .brandcard { padding: 14px 6px 12px; }
  .brandcard small { display: none; }
  .crow-grid { grid-template-columns: minmax(0, 1fr); }
  .crow-grid > :nth-child(n + 7) { display: none; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-grid > :nth-child(n + 2) { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item::before { display: none; }
  .trust__item:last-child { grid-column: 1 / -1; }
  .trust__item { padding: 12px; gap: 10px; }
  .trust__ico { width: 40px; height: 40px; }
  .seo { padding: 22px 18px; }
  .newsband { padding: 24px 20px; border-radius: 24px; }
  .footer { padding-top: 96px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .plp-title { font-size: 28px; }
  .plp-banner { flex-direction: column; align-items: flex-start; }
  .pinfo__title { font-size: 26px; }
  .pricebox { padding: 18px; }
  .pricebox__now { font-size: 32px; }
  .keyspecs li { grid-template-columns: 26px 80px minmax(0, 1fr); font-size: 13px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .buy { grid-template-columns: auto minmax(0, 1fr); }
  .buy .btn--primary { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 10px; }
  .stat b { font-size: 14px; }
  .delivery { grid-template-columns: minmax(0, 1fr); }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .reviews-sum { grid-template-columns: minmax(0, 1fr); }
  .buybar { transform: none; }
  .buybar__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; min-height: 72px; padding-block: 10px calc(10px + env(safe-area-inset-bottom)); }
  .buybar__prod, .buybar__ship { display: none; }
  .buybar__cta .btn--outline { display: none; }
  .buybar__price b { font-size: 20px; }
  .page-pdp .footer { padding-bottom: 110px; }
  .page-pdp .toasts { bottom: 96px; }
  /* Modals become bottom sheets */
  .modal__panel {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    opacity: 1;
    transform: translateY(104%);
  }
  .overlay.is-open .modal__panel { transform: none; }
  .sheet-handle { display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--ink-300); margin: 10px auto -6px; }
  .modal__head { padding: 16px 18px 14px; }
  .modal__body { padding: 18px; }
  .modal__foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal__foot .btn { flex: 1; }
  .xsteps { padding: 12px 18px; overflow-x: auto; }
  .xstep-dot span { display: none; }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .checks-grid { grid-template-columns: minmax(0, 1fr); }
  .emi { grid-template-columns: minmax(0, 1fr); }
  .emi__banks { border-right: 0; border-bottom: 1px solid var(--color-line-soft); }
  .banklist { display: flex; overflow-x: auto; gap: 6px; max-height: none; padding-bottom: 4px; }
  .bank { width: auto; flex: none; background: #fff; border: 1px solid var(--color-line-soft); }
  .bank__zero { display: none; }
  .emi__main { padding: 16px 18px; }
  .emi__table th:nth-child(3), .emi__table td:nth-child(3) { display: none; }
  .toasts { right: 16px; left: 16px; align-items: stretch; }
  .toast { width: auto; }
}

/* 29 · Reduced motion -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 30 · PDP gallery crops & wizard helpers ----------------------------------------------------------- */
.g-crop {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(255, 255, 255, .62), transparent 58%), var(--tile-bg);
  transform: scale(var(--crop, 1)); transform-origin: var(--co, 50% 50%);
  transition: transform var(--dur-5) var(--ease-out);
}
.tile--photo .g-crop { background: var(--tile-bg); }
.gallery__main.tile--photo .tile__img { inset: 0; width: 100%; height: 100%; }
.xpane.is-static { animation: none; }
/* Loading shimmer while remote product photos decode */
.tile:has(> .tile__img.is-loading)::after,
.g-crop:has(> .tile__img.is-loading)::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

/* 31 · Used-phones entry points ---------------------------------------------------------------- */
.used-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; margin-right: 6px;
  border-radius: var(--radius-pill);
  background: var(--gg-night); color: #fff;
  font-size: 13px; font-weight: var(--weight-bold); white-space: nowrap;
  box-shadow: 0 8px 18px -10px rgba(18, 3, 83, .7);
  transition: background-color var(--dur-2), transform var(--dur-1) var(--ease-out);
}
.used-pill .i { color: var(--gg-spark); }
@media (hover: hover) { .used-pill:hover { background: var(--blue-800); } }
.used-pill:active { transform: scale(.97); }
.catnav__item--used {
  margin: 0 -10px 6px; padding: 10px 10px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--cyan-50), var(--blue-50));
  color: var(--gg-night); font-weight: var(--weight-bold);
}
.catnav__item--used:hover, .catnav__li:focus-within > .catnav__item--used { transform: none; color: var(--color-primary); background: linear-gradient(120deg, var(--cyan-100), var(--blue-100)); }
.catnav__item--used.is-active { color: var(--gg-night); box-shadow: inset 0 0 0 1.5px var(--blue-300); }
.catnav__item--used.is-active::before { display: none; }
.catnav__used { display: inline-flex; align-items: center; gap: 8px; }
.catnav__used .i { opacity: 1 !important; transform: none !important; color: var(--color-primary) !important; }
.catnav__item--used .badge { height: 20px; font-size: 10px; padding: 0 7px; }
.mused {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px; border-radius: 18px; background: var(--gradient-brand); color: #fff;
}
.mused__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--gg-spark); }
.mused b { display: block; font-size: 15px; }
.mused span span { font-size: 12px; opacity: .82; font-weight: var(--weight-semi); }
.flag { width: 20px; height: 12px; border-radius: 2px; flex: none; }

/* Segmented control (New · Used) */
.segment { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: var(--ink-150); }
.segment button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: var(--weight-bold); color: var(--color-text-2);
  transition: background-color var(--dur-2), color var(--dur-2), box-shadow var(--dur-2);
}
@media (hover: hover) { .segment button:hover { color: var(--color-text); } }
.segment button[aria-checked="true"] { background: #fff; color: var(--color-text); box-shadow: var(--shadow-xs), 0 2px 6px -2px rgba(18, 3, 83, .18); }
.segment button[data-v="used"] .i { color: var(--color-primary); }

/* Listing: used-mode header */
.usedhead {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: 24px; margin-bottom: 18px;
  background: var(--gradient-brand); color: #fff;
}
.usedhead::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 240px; height: 210px; background: url("../img/bolt.svg") center / contain no-repeat; opacity: .16; transform: rotate(-12deg); }
.usedhead h2 { font-size: 20px; font-weight: var(--weight-black); letter-spacing: -.01em; }
.usedhead ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; font-weight: var(--weight-semi); opacity: .92; }
.usedhead li { display: inline-flex; align-items: center; gap: 6px; }
.usedhead li .i { color: var(--gg-spark); }
.budget-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.budget-chips .eyebrow { align-self: center; margin-right: 4px; }

/* 32 · Checkout ------------------------------------------------------------------------------------- */
.page-checkout { background: var(--color-bg); }
.cohead { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--color-line-soft); }
.cohead__inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.cohead__logo img { height: 38px; width: auto; }
.cohead__secure { display: inline-flex; align-items: center; gap: 6px; padding-left: 18px; border-left: 1px solid var(--color-line); font-size: 13.5px; font-weight: var(--weight-bold); color: var(--color-success-ink); }
.cohead__help { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-weight: var(--weight-black); font-size: 14px; }
.cohead__help .i { width: 36px; height: 36px; padding: 9px; border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary); }
.cohead__help small { display: block; font-size: 11px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.cofoot { margin-top: 64px; padding: 22px 0 28px; border-top: 1px solid var(--color-line-soft); font-size: 13px; color: var(--color-text-muted); }
.cofoot__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cofoot a { text-decoration: underline; text-underline-offset: 3px; }
.cofoot .paylist span { box-shadow: inset 0 0 0 1px var(--color-line); }

.costeps { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; }
.costep { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--weight-bold); color: var(--color-text-faint); white-space: nowrap; }
.costep i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--color-line); background: #fff; font-style: normal; font-size: 12px; font-weight: var(--weight-black); }
.costep.is-done { color: var(--color-success-ink); }
.costep.is-done i { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.costep.is-active { color: var(--color-text); }
.costep.is-active i { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.costep-line { flex: 1; min-width: 20px; max-width: 120px; height: 2px; border-radius: 2px; background: var(--color-line); }
.costep-line.is-done { background: var(--color-success); }
.cotitle { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 22px; }
.cotitle h1 { font-size: clamp(26px, 3vw, 34px); font-weight: var(--weight-black); letter-spacing: -.025em; }
.cotitle p { color: var(--color-text-muted); font-size: 14px; margin-top: 4px; }
.guest-note { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--color-success-soft); color: var(--color-success-ink); font-size: 13px; font-weight: var(--weight-bold); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.cosec { padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--color-line-soft); }
.cosec + .cosec { margin-top: 16px; }
.cosec__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cosec__num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--gg-night); color: #fff; font-size: 13px; font-weight: var(--weight-black); }
.cosec__head h2 { font-size: 17px; font-weight: var(--weight-black); letter-spacing: -.01em; }
.cosec__head p { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.cosec__head > .i { margin-left: auto; color: var(--color-text-faint); }
.field--grow { grid-column: 1 / -1; }
.textarea { min-height: 84px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.remember { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--color-line); }
.optrow { display: grid; gap: 10px; }
.optrow--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ropt {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--color-line); background: #fff; cursor: pointer;
  transition: border-color var(--dur-2), background-color var(--dur-2), box-shadow var(--dur-2), opacity var(--dur-2);
}
@media (hover: hover) { .ropt:hover { border-color: var(--blue-300); } }
.ropt:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); box-shadow: 0 0 0 3px var(--blue-100); }
.ropt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.ropt__name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-black); }
.ropt__desc { display: block; font-size: 12px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: 2px; line-height: 1.4; }
.ropt__side { text-align: right; font-size: 14px; font-weight: var(--weight-black); white-space: nowrap; }
.ropt__side small { display: block; font-size: 11px; font-weight: var(--weight-bold); color: var(--color-success-ink); }
.ropt--stack { grid-template-columns: 20px minmax(0, 1fr); }
.ropt--stack .ropt__side { grid-column: 2; text-align: left; margin-top: 2px; }
.ropt .i { color: var(--color-primary); }
.paymark { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--color-line); font-size: 11px; font-weight: var(--weight-black); letter-spacing: .01em; }
.paymark--bkash { color: #D12053; }
.paymark--nagad { color: #EC1C24; }
.paymark--visa { color: #1A1F71; font-style: italic; }
.paymark--mc { color: #EB001B; }
.paymark--amex { color: #2E77BC; }
.paymarks { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pay-extra { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--blue-200); display: none; }
.ropt:has(input:checked) .pay-extra { display: block; animation: pane-in var(--dur-4) var(--ease-out); }
.pay-extra .form-grid { gap: 10px; }
.pay-extra__note { font-size: 12.5px; color: var(--color-text-2); font-weight: var(--weight-semi); line-height: 1.5; }
.pay-extra__note b { color: var(--color-text); }
.tenures { display: flex; flex-wrap: wrap; gap: 6px; }
.tenures .chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); }
.cod-warn { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--color-warning-soft); color: var(--color-warning-ink); font-size: 12.5px; font-weight: var(--weight-semi); line-height: 1.5; }
.cod-warn .i { flex: none; margin-top: 1px; }

.cosum { position: sticky; top: 90px; padding: 22px; border-radius: 26px; background: #fff; border: 1px solid var(--color-line-soft); box-shadow: var(--shadow-sm); }
.cosum__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cosum__head h2 { font-size: 17px; font-weight: var(--weight-black); }
.cosum__head button { font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-primary); display: inline-flex; align-items: center; gap: 4px; }
.cosum__items { display: grid; gap: 12px; max-height: 320px; overflow: auto; padding-right: 4px; overscroll-behavior: contain; }
.coitem { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.coitem__media { position: relative; }
.coitem .tile { width: 58px; height: 58px; border-radius: 14px; }
.coitem__qty { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--gg-night); color: #fff; font-size: 11px; font-weight: var(--weight-black); border: 2px solid #fff; }
.coitem__name { font-size: 13.5px; font-weight: var(--weight-bold); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coitem__var { font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); margin-top: 2px; }
.coitem__price { font-size: 14px; font-weight: var(--weight-black); white-space: nowrap; }
.coupon { display: flex; gap: 8px; margin: 16px 0; padding-top: 16px; border-top: 1px dashed var(--color-line); }
.coupon .input { height: 44px; text-transform: uppercase; }
.coupon__ok { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--color-success-soft); color: var(--color-success-ink); font-size: 12.5px; font-weight: var(--weight-bold); }
.coupon__ok button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cosum__lines { display: grid; gap: 9px; font-size: 14px; font-weight: var(--weight-semi); color: var(--color-text-2); }
.cosum__lines div { display: flex; justify-content: space-between; gap: 10px; }
.cosum__lines b { color: var(--color-text); }
.cosum__lines .is-save b { color: var(--color-success-ink); }
.cosum__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--color-line); }
.cosum__total span { font-size: 15px; font-weight: var(--weight-black); }
.cosum__total b { font-size: 26px; font-weight: var(--weight-black); letter-spacing: -.02em; }
.cosum__emi { margin-top: 6px; text-align: right; font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.place { margin-top: 16px; }
.place .btn { --btn-h: 56px; font-size: 15.5px; }
.cosum__legal { margin-top: 12px; font-size: 11.5px; color: var(--color-text-muted); line-height: 1.5; text-align: center; }
.cosum__legal a { text-decoration: underline; text-underline-offset: 2px; }
.cotrust { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--color-line); }
.cotrust li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: var(--weight-bold); color: var(--color-text-2); }
.cotrust .i { color: var(--color-success); }
.coempty { text-align: center; padding: 64px 20px; border-radius: 28px; background: #fff; border: 1.5px dashed var(--color-line); display: grid; justify-items: center; gap: 12px; }
.mobile-place { display: none; }

/* Order confirmation + tracking */
.oksuccess { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 24px 34px; border-radius: 32px; background: #fff; border: 1px solid var(--color-line-soft); margin-top: 28px; }
.oksuccess::before { content: ""; position: absolute; z-index: -1; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, rgba(18, 161, 80, .14), transparent); }
.oksuccess h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: var(--weight-black); letter-spacing: -.025em; margin-top: 6px; }
.oksuccess p { color: var(--color-text-2); max-width: 520px; font-size: 15px; line-height: 1.6; }
.okid { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 8px 8px 16px; border-radius: var(--radius-pill); background: var(--ink-100); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; font-size: 15px; }
.okid button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-xs); color: var(--color-text-2); }
@media (hover: hover) { .okid button:hover { color: var(--color-primary); } }
.okgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.okcard { padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--color-line-soft); }
.okcard h2 { font-size: 16px; font-weight: var(--weight-black); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.okcard h2 .i { color: var(--color-primary); }
.okmeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.okmeta div { padding: 12px 14px; border-radius: 16px; background: var(--ink-50); }
.okmeta span { display: block; font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-bold); }
.okmeta b { display: block; font-size: 14px; margin-top: 2px; line-height: 1.4; }
.okpay { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; }
.okpay--cod { background: var(--color-warning-soft); color: var(--color-warning-ink); }
.okpay--paid { background: var(--color-success-soft); color: var(--color-success-ink); }
.okpay b { display: block; font-size: 14px; }
.okpay span { font-size: 12.5px; font-weight: var(--weight-semi); }
.okactions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.timeline { display: grid; gap: 0; }
.tl { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--color-line); }
.tl:last-child::before { display: none; }
.tl.is-done::before { background: var(--color-success); }
.tl__dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--color-line); color: var(--color-text-faint); }
.tl__dot .i { width: 16px; height: 16px; }
.tl.is-done .tl__dot { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.tl.is-current .tl__dot { border-color: var(--color-primary); color: var(--color-primary); box-shadow: 0 0 0 5px var(--blue-100); }
.tl.is-current .tl__dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(52, 72, 238, .45); pointer-events: none; animation: pulse-ring 2s var(--ease-out) infinite; }
@keyframes pulse-ring { from { transform: scale(1); opacity: 1; } 80%, to { transform: scale(1.6); opacity: 0; } }
.tl b { display: block; font-size: 14px; padding-top: 6px; }
.tl span { font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.trackform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--color-line-soft); box-shadow: var(--shadow-sm); }
.trackhero { position: relative; isolation: isolate; overflow: hidden; padding: 30px 28px; border-radius: 28px; background: var(--gradient-brand); color: #fff; margin: 26px 0 -40px; padding-bottom: 70px; }
.trackhero::after { content: ""; position: absolute; z-index: -1; right: -50px; top: -60px; width: 300px; height: 260px; background: url("../img/bolt.svg") center / contain no-repeat; opacity: .16; transform: rotate(-12deg); }
.trackhero h1 { font-size: clamp(26px, 3vw, 34px); font-weight: var(--weight-black); letter-spacing: -.02em; }
.trackhero p { opacity: .85; margin-top: 6px; max-width: 520px; }
.trackwrap { position: relative; z-index: 1; padding: 0 16px; }
.trackres { margin-top: 18px; }

@media (max-width: 1100px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 340px; }
  .optrow--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .cosum { position: relative; top: 0; }
  .okgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .used-pill { display: none; }
  .usedhead { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .segment button { padding: 0 12px; }
  .cohead__secure { display: none; }
  .cohead__help span { display: none; }
  .costep span { display: none; }
  .cosec { padding: 18px 16px; border-radius: 20px; }
  .ropt { padding: 12px; gap: 10px; }
  .cosum { padding: 18px 16px; border-radius: 22px; }
  .page-checkout .place { display: none; }
  .mobile-place { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--color-line-soft); box-shadow: 0 -12px 30px -24px rgba(18, 3, 83, .4); }
  .mobile-place div { flex: 1; min-width: 0; }
  .mobile-place span { display: block; font-size: 11.5px; color: var(--color-text-muted); font-weight: var(--weight-bold); }
  .mobile-place b { font-size: 20px; font-weight: var(--weight-black); }
  .page-checkout .cofoot { padding-bottom: 100px; }
  .okmeta { grid-template-columns: minmax(0, 1fr); }
  .trackform { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .trackhero { padding: 24px 20px 64px; }
  .trackwrap { padding: 0; }
}
.okcheck { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--color-success); color: #fff; box-shadow: 0 18px 32px -14px rgba(18, 161, 80, .75), 0 0 0 8px var(--color-success-soft); animation: pop-in .6s var(--ease-spring) both; }
.okcheck svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.okcheck path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw-check .45s .35s var(--ease-out) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
.okid span { font-family: var(--font-sans); font-size: 12px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
.trackhint { margin-top: 12px; padding: 0 4px; font-size: 13px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.trackhint button { color: var(--color-primary); font-weight: var(--weight-bold); text-decoration: underline; text-underline-offset: 3px; }
.trackres__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.trackres__head span:not(.badge) { display: block; font-size: 12px; font-weight: var(--weight-bold); color: var(--color-text-muted); }
.trackres__head b { font-size: 20px; font-weight: var(--weight-black); letter-spacing: -.01em; }
.trackres__eta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border-radius: 14px; background: var(--color-primary-soft); color: var(--color-text-2); font-size: 13.5px; font-weight: var(--weight-semi); }
.trackres__eta .i { color: var(--color-primary); flex: none; }
.trackres__eta b { color: var(--color-text); }
.trackres__empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 24px; }
.trackres__empty h2 { font-size: 19px; font-weight: var(--weight-black); }
.trackres__empty p { max-width: 460px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .okcheck, .okcheck path { animation: none; stroke-dashoffset: 0; } }

/* 33 · Checkout: home delivery or store pickup ------------------------------------------------ */
.optrow--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.optrow__empty { grid-column: 1 / -1; font-size: 13.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.ropt__main { cursor: pointer; }
.ropt--method { padding: 16px 18px; }
.ropt--method .ropt__name { font-size: 15px; }
.cosec__sub { margin: 22px 0 12px; font-size: 14px; font-weight: var(--weight-black); }
.cosec__hint { margin: -6px 0 12px; font-size: 12.5px; color: var(--color-text-muted); font-weight: var(--weight-semi); }
.fulfil-panel.is-in { animation: pane-in var(--dur-4) var(--ease-out); }
.storecard {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  margin-top: 18px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(120deg, var(--cyan-50), var(--blue-50)); border: 1px solid var(--blue-100);
}
.storecard__ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--gg-night); color: var(--gg-spark); }
.storecard__txt b { display: block; font-size: 15px; font-weight: var(--weight-black); }
.storecard__txt > span { display: block; font-size: 13px; color: var(--color-text-2); font-weight: var(--weight-semi); margin-top: 2px; }
.storecard__meta { display: inline-flex !important; align-items: center; gap: 6px; color: var(--color-text-muted) !important; }
.pickup-steps { display: grid; gap: 10px; margin-top: 14px; }
.pickup-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--color-text-2); font-weight: var(--weight-semi); line-height: 1.45; }
.pickup-steps .i { flex: none; margin-top: 1px; color: var(--color-primary); }
.pickup-steps b { color: var(--color-text); }
.emi-sum { margin-top: 10px; }
.field__error--block { display: block; margin-top: 4px; }
.coempty__title { font-size: 22px; font-weight: var(--weight-black); }
.cosum__agree { margin-top: 14px; font-size: 12.5px; align-items: flex-start; }
.cosum__agree a, .link { text-decoration: underline; text-underline-offset: 3px; }
.coitem__body { min-width: 0; }
.cosum__items--all { max-height: none; }
.cosum__lines--sep { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--color-line); }
.cosum__legal--left { text-align: left; }
.okstack { display: grid; gap: 18px; align-content: start; }
.okmeta small { display: block; margin-top: 2px; font-size: 13px; font-weight: var(--weight-semi); color: var(--color-text-2); line-height: 1.45; }
.okmeta--gap { margin-top: 14px; }
.oknote { margin-top: 14px; }
@media (max-width: 767px) {
  .storecard { grid-template-columns: 44px minmax(0, 1fr); padding: 14px; }
  .storecard__ico { width: 44px; height: 44px; }
  .storecard .btn { grid-column: 1 / -1; }
  .ropt--method { padding: 14px 12px; }
}

/* 34 · Touch devices ------------------------------------------------------------------------------ */
/* Frosted glass must be re-blurred on every scroll frame; phones get solid bars instead.
   (Pure :hover rules above are wrapped in @media (hover: hover), so taps never leave a "stuck" hover.) */
@media (hover: none) {
  .header, .ptabs, .buybar, .mnav, .mobile-place, .cohead, .overlay__scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header, .header.is-scrolled, .ptabs { background: rgba(251, 251, 254, .98); }
  .buybar, .mnav, .mobile-place, .cohead { background: rgba(255, 255, 255, .98); }
  .pcard__add, .pcard__wish { opacity: 1; transform: none; } /* tablets too, not only phones */
}

/* 35 · Named helpers (these replaced inline styles, so markup stays clean) ------------------------ */
.u-min0 { min-width: 0; }
.text-strong { color: var(--color-text); }
.t-right { text-align: right; }
.req { color: var(--color-sale); font-style: normal; }
.num--save { color: var(--color-success-ink); }
.dot--success { color: var(--color-success); }
.dot--spark { color: var(--gg-spark); }
.dot--night { color: var(--gg-night); }
.sp__count { font-size: 12px; }
.chip__count { font-size: 11.5px; color: var(--color-text-muted); }
.empty-state--sm { padding: 18px 6px; }
.empty-state--sm .empty-state__art { width: 72px; height: 72px; border-radius: 22px; }
.empty__title { font-size: 20px; font-weight: var(--weight-black); }
.empty__text { max-width: 420px; }
.plp-banner__side { display: flex; align-items: center; gap: 18px; }
.price-table a { font-weight: var(--weight-bold); }
.catalog__more { display: flex; justify-content: center; margin-top: 40px; }
.toolbar--plp { margin: 18px 0 22px; }
.count--inline { position: static; border: 0; margin-left: 2px; }
.fgroup__meta { font-size: 12.5px; font-weight: var(--weight-bold); }
.drawer__foot--row { display: flex; gap: 10px; }
.drawer__label { margin-top: 22px; }
.modal__body--flush { padding: 0; }
.modal__actions { display: flex; gap: 10px; }
.modal__ico--emi { background: linear-gradient(120deg, #1628D0, #7B5CF5); }
.modal__ico--price { background: linear-gradient(120deg, #12A150, #00BFF2); }
.modal__ico--ok { width: 56px; height: 56px; border-radius: 18px; background: #fff; color: var(--color-success); }
.xval { font-size: 15px; }
.fbt { margin-top: 10px; }
.reviews-sum__avg .stars { justify-content: center; }
.rbar__label { display: inline-flex; align-items: center; gap: 3px; }
.review__name .badge { margin-left: 6px; }
.review-cta { margin-top: 18px; }
.xlabel--gap { margin-top: 20px; }
.xlabel__note { text-transform: none; letter-spacing: 0; font-weight: var(--weight-bold); }
.quote__sub { display: block; }
.quote__card--done { width: 100%; max-width: 460px; margin-top: 10px; text-align: left; }
.emi__empty { padding: 10px; font-size: 13px; }
.emi__pick { width: 44px; }
.pc-skels { display: grid; gap: 8px; width: 100%; margin-top: 6px; }
.pc-skels .skel { height: 58px; border-radius: 16px; }
.pc-row { animation-delay: calc(var(--i, 0) * 70ms); }
.meter__seg--cost { background: var(--gg-night); }
.meter__seg--margin { background: var(--gg-spark); }
.meter__stack .meter__seg--margin { animation-delay: .15s; }
.meter__seg--save { background: var(--color-success); }
.meter__stack .meter__seg--save { animation-delay: .3s; }
.meter__row--save, .meter__row--save b { color: var(--color-success-ink); }
.meter__note { font-size: 13px; line-height: 1.55; }
.trackpage { padding-bottom: 40px; }
.trackpage .crumbs { margin-top: 22px; }
