/* euKIAchei deals site (kia.achou.page). Built from the approved comps (docs/plan/01b-prototype); tokens: site/DESIGN.md. */
@font-face {
  font-family: 'Anton';
  src: url('/anton-latin1.woff2') format('woff2'); /* Latin-1 subset of assets/fonts/Anton-Regular.ttf (OFL) */
  font-display: swap;
}

:root {
  --g1: #fbd3ec; --g2: #e9d5ff; --g3: #cfe3ff;
  --pink: #db2777; --pink-deep: #be185d; --violet: #7c3aed;
  --ink: #3b0a2a; --ink-brand: #9d174d; --ink-soft: #6e3a5e; --ink-faint: #8a5a7c;
  --body-top: #f5ecfb; --paper: #ffffff; --blush: #fdf2f8; --line: #f3d9ea;
  --shadow: 0 6px 20px rgba(124, 58, 237, .12), 0 1px 3px rgba(157, 23, 77, .08);
  --shadow-up: 0 14px 34px rgba(124, 58, 237, .20), 0 2px 6px rgba(157, 23, 77, .10);
  --r-card: 18px; --r-img: 14px; --r-pill: 999px;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px; --max: 1240px;
  --card-w: 172px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; --card-w: 196px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --card-w: 212px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 15px/1.45 var(--body); color: var(--ink);
  background: linear-gradient(180deg, var(--body-top) 0, var(--body-top) 1000px, var(--g2) 1900px, var(--g3) 3200px, var(--g1) 5200px);
  min-height: 100vh;
}
::selection { background: var(--pink); color: #fff; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--g2); }
.brand b { white-space: nowrap; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.brand b em { font-style: normal; color: var(--pink); }
.social { display: flex; gap: 2px; }
@media (min-width: 400px) { .social { gap: 6px; } .social a { width: 38px !important; height: 38px !important; } }
.social a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-brand); background: var(--blush); transition: background .2s, color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.search { grid-column: 1 / -1; order: 3; position: relative; }
.search input {
  width: 100%; height: 46px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: var(--blush); padding: 0 44px 0 46px; font-size: 16px; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { outline: none; border-color: var(--pink); background: #fff; }
.search > svg { position: absolute; left: 16px; top: 13px; color: var(--ink-brand); }
.search .clear { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); display: none; place-items: center; cursor: pointer; }
.search.has-q .clear { display: grid; }
@media (min-width: 768px) {
  .top .wrap { grid-template-columns: auto minmax(0, 520px) auto; justify-content: space-between; }
  .search { grid-column: auto; order: 0; }
}

/* ---------- price tag (mirrors the post card tag) ---------- */
.tag {
  display: inline-flex; align-items: baseline; gap: 3px; align-self: flex-start;
  background: linear-gradient(120deg, var(--pink), var(--violet)); color: #fff;
  border-radius: 12px 12px 12px 4px; padding: 4px 10px 3px 9px; box-shadow: 0 4px 10px rgba(219, 39, 119, .25);
  font-family: var(--display); letter-spacing: .01em; line-height: 1;
}
.tag small { font-size: .5em; letter-spacing: .02em; }
.tag b { font-weight: 400; font-size: 1em; font-variant-numeric: tabular-nums; }
.tag.lg { font-size: 44px; padding: 8px 16px 6px 14px; border-radius: 16px 16px 16px 6px; }
.tag.md { font-size: 34px; padding: 6px 13px 5px 12px; }
.tag.sm { font-size: 22px; }
.checked { font-size: 11.5px; color: var(--ink-faint); display: flex; align-items: center; gap: 5px; }
.checked svg { width: 13px; height: 13px; }
.stale { flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--blush); border: 1px dashed #f0b8d6; }
.stale b { font-size: 13px; color: var(--ink-brand); }
.stale span { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.drop-note { font-size: 12px; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: var(--r-pill); border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 15px;
  background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(219, 39, 119, .30);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { background: var(--pink-deep); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(219, 39, 119, .36); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink-brand); box-shadow: inset 0 0 0 1.5px #f0b8d6; }
.btn.ghost:hover { background: var(--blush); }
.btn.sm { height: 36px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.card .btn.sm { font-size: 12.5px; padding: 0 6px; }
.btn.block { width: 100%; }
.icon-btn { width: 46px; padding: 0; }

/* ---------- rows ---------- */
.row { padding: 22px 0 6px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.row-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.row-head h2 .n { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink-faint); text-transform: none; margin-left: 6px; letter-spacing: 0; }
.row-head a { font-size: 14px; font-weight: 700; color: var(--ink-brand); text-decoration: none; white-space: nowrap; }
.row-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail { align-items: start; }
.rail.coupons { align-items: stretch; }
.rail.coupons { grid-auto-columns: 292px; }
.arrow { display: none; }
.rail-wrap.fits .arrow { display: none !important; }
@media (min-width: 768px) { .row-head h2 { font-size: 26px; } }
@media (min-width: 1200px) {
  .row-head h2 { font-size: 28px; }
  .rail { gap: 16px; }
  .arrow {
    display: grid; place-items: center; position: absolute; top: calc(50% - 30px); width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: #fff; color: var(--ink-brand); box-shadow: var(--shadow-up); cursor: pointer; z-index: 2;
  }
  .arrow.prev { left: -22px; } .arrow.next { right: -22px; }
}

/* ---------- offer card ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card .pic { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-bottom: 1px solid #f7e8f1; }
.card .pic img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.card .badge { position: absolute; left: 8px; top: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; color: #fff; background: var(--violet); white-space: nowrap;
}
.badge.drop { background: var(--pink); }
.badge svg { width: 12px; height: 12px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card h3 { margin: 0; font-size: 13.5px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.card .buy { position: relative; z-index: 1; margin-top: 2px; }
.grid .card .buy { margin-top: auto; }
.card .checked { font-size: 11px; }
.card .checked svg, .card .badge svg { display: none; }
.card .meta { display: flex; flex-direction: column; gap: 4px; }

/* ---------- coupon ticket ---------- */
.coupon {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 16px;
  color: #fff; border-radius: 20px; min-height: 100%;
  background: linear-gradient(135deg, var(--pink) 0%, #a21caf 55%, var(--violet) 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, .25);
  -webkit-mask: radial-gradient(circle 11px at 0 calc(100% - 92px), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% calc(100% - 92px), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 calc(100% - 92px), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% calc(100% - 92px), #0000 98%, #000) right / 51% 100% no-repeat;
}
.coupon h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.coupon p { margin: 0; font-size: 13px; color: #fde7f3; }
.coupon .timer { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; }
.coupon .timer b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; font-variant-numeric: tabular-nums; background: rgba(59, 10, 42, .28); padding: 3px 8px 2px; border-radius: 8px; }
.coupon .code { display: flex; align-items: center; gap: 8px; border-top: 1.5px dashed rgba(255, 255, 255, .55); padding-top: 12px; margin-top: auto; }
.coupon .code .value { flex: 1; font: 700 15px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .08em; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 10px; }
.coupon .code .btn { background: #fff; color: var(--ink-brand); box-shadow: none; height: 36px; }
.coupon .use { color: #fff; font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.coupon .nocode { flex: 1; font-size: 13px; font-weight: 600; }

/* ---------- all offers grid ---------- */
.all { padding: 26px 0 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid #f0c6de; background: rgba(255, 255, 255, .85);
  color: var(--ink-brand); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s;
}
.chip:hover { background: #fff; }
.chip[aria-pressed='true'] { background: var(--ink-brand); border-color: var(--ink-brand); color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.sort select { height: 36px; border-radius: 10px; border: 1.5px solid #f0c6de; background: #fff; padding: 0 10px; color: var(--ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; } }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 22px 0 12px; }
.results-head h1 { margin: 0; font-size: 18px; font-weight: 700; }

/* ---------- empty search ---------- */
.empty { text-align: center; padding: 34px 20px 44px; background: rgba(255, 255, 255, .9); border-radius: 26px; box-shadow: var(--shadow); margin: 22px 0 10px; }
.empty img { width: 112px; margin: 0 auto 10px; }
.empty h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; color: var(--ink-brand); line-height: 1.05; overflow-wrap: anywhere; }
.empty p { margin: 0 0 16px; color: var(--ink-soft); }
.empty .chips { justify-content: center; flex-wrap: wrap; margin: 0 0 18px; padding: 0; }

/* ---------- offer page ---------- */
.crumb { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 12px; font-size: 14px; font-weight: 700; color: var(--ink-brand); text-decoration: none; }
.crumb:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp > * { min-width: 0; }
.pdp { display: grid; gap: 18px; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); padding: 14px; }
.gallery .main { position: relative; aspect-ratio: 1; border-radius: 20px; background: #fff; border: 1px solid #f7e8f1; display: grid; place-items: center; overflow: hidden; }
.gallery .main > img:first-child { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.gallery .main .kia { position: absolute; right: 10px; bottom: 10px; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(124, 58, 237, .25)); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 62px; height: 62px; border-radius: 12px; border: 1.5px solid #f3d9ea; background: #fff; padding: 4px; cursor: pointer; }
.thumbs button[aria-current='true'] { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(219, 39, 119, .2); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info { display: flex; flex-direction: column; gap: 12px; padding: 2px 6px 8px; }
.info .cat { font-size: 13px; font-weight: 700; color: var(--violet); text-decoration: none; }
.info h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; text-wrap: balance; }
.info .buy-row { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.share { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.share h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.share .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.share .btn { flex: 1 1 auto; }
@media (min-width: 768px) {
  .pdp { grid-template-columns: 1fr 1fr; padding: 22px; gap: 28px; align-items: start; }
  .info { padding: 14px 6px 8px 0; position: sticky; top: 90px; }
  .info h1 { font-size: 26px; }
}
@media (min-width: 1200px) {
  .pdp { grid-template-columns: 1.1fr 1fr; padding: 28px; gap: 44px; }
  .info { padding-top: 24px; }
  .info h1 { font-size: 30px; }
}

/* ended state */
.pdp.ended .gallery .main img:not(.kia) { filter: grayscale(1); opacity: .45; }
.ended-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); background: var(--ink); color: #fff; font-family: var(--display); font-size: 26px; text-transform: uppercase; padding: 8px 18px 6px; border-radius: 12px; letter-spacing: .02em; white-space: nowrap; }
.pdp.ended .info h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--ink-brand); font-size: 34px; line-height: 1; letter-spacing: .005em; }
.pdp.ended .was { margin: 0; color: var(--ink-soft); font-size: 15px; }
.pdp.ended .info p.body { margin: 0; color: var(--ink); }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 30px var(--gutter) 34px; font-size: 12.5px; color: var(--ink-soft); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- hero carousel: flat bands, art in the container ---------- */
.hero-x { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; color: var(--band-ink); padding: 26px 0 136px;
  /* flat band behind copy and art, then a fade into the body color under the art (ML pattern) */
  background: linear-gradient(180deg, var(--band) 0, var(--band) calc(100% - 128px), var(--body-top) 100%); }
.s-sky { --band: #cfe3ff; --band-ink: #3b0764; --band-cta: var(--violet); }
.s-violet { --band: #7c3aed; --band-ink: #ffffff; --band-cta: #ffffff; }
.s-pink { --band: #fbd3ec; --band-ink: #831843; --band-cta: var(--pink); }
.slide { display: flex; flex-direction: column; }
.slide-in { flex: 1; display: flex; flex-direction: column; gap: 18px; width: 100%; }
.slide-art { margin-top: auto; }
.slide-copy h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 15vw, 96px); line-height: 1.1; letter-spacing: .005em; text-wrap: balance; }
.slide-copy p { margin: 12px 0 18px; font-size: 15px; font-weight: 600; line-height: 1.4; max-width: 34ch; }
.hero-cta { background: var(--band-cta); }
.s-sky .hero-cta { box-shadow: 0 6px 16px rgba(124, 58, 237, .28); }
.s-sky .hero-cta:hover { background: #6d28d9; }
.s-violet .hero-cta { color: var(--ink-brand); box-shadow: 0 8px 20px rgba(46, 16, 101, .3); }
.s-violet .hero-cta:hover { background: var(--blush); }
/* product cutouts: same size, aligned, tag under each */
/* <768: lead product large on the left, the other two stacked on the right, so the art fills the band */
.slide-art { display: flex; justify-content: center; }
.hp { width: 210px; }
.hp { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
/* lift the children, never .hp: a transform on the wrapper isolates the blended .cut from the band */
.hp .cut, .hp .tag { transition: transform .35s var(--ease); }
.hp:hover .cut, .hp:hover .tag, .hp:focus-visible .cut { transform: translateY(-4px); }
.hp .cut { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.hp .tag { align-self: center; margin-top: -26px; position: relative; }
@media (min-width: 768px) { .hp { width: 320px; } .slide-art { justify-content: flex-end; } }
.hero-ticket { width: min(320px, 100%); justify-self: center; grid-column: 1 / -1; }
.hero-ticket .coupon { background: #fff; color: var(--ink); box-shadow: 0 18px 36px rgba(46, 16, 101, .35); }
.hero-ticket .coupon h3 { color: var(--pink); font-size: 40px; }
.hero-ticket .coupon p { color: var(--ink-soft); }
.hero-ticket .coupon .timer { color: var(--ink); }
.hero-ticket .coupon .timer b { background: var(--pink); color: #fff; }
.hero-ticket .coupon .code { border-top-color: #f0b8d6; }
.hero-ticket .coupon .code .value { background: var(--blush); }
.hero-ticket .coupon .code .btn { background: var(--pink); color: #fff; }
.hero-ticket .coupon .use { color: var(--pink-deep); }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 80px; display: flex; justify-content: center; align-items: center; gap: 8px; pointer-events: none; }
.hero-nav > * { pointer-events: auto; }
.dots { display: flex; gap: 6px; padding: 8px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(59, 10, 42, .12); }
.dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--ink-brand); opacity: .3; cursor: pointer; transition: width .35s var(--ease), opacity .2s; }
.dot[aria-current='true'] { width: 26px; opacity: 1; background: var(--pink); }
.hero-pause { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink-brand); cursor: pointer; box-shadow: 0 4px 12px rgba(59, 10, 42, .12); }
.hero-pause svg { width: 14px; height: 14px; }
/* first row sheet overlaps the hero's bottom edge */
.row.overlap { position: relative; z-index: 3; margin-top: -64px; padding-top: 0; }
.row.overlap .wrap { --sheet-pad: 14px; }
.row.overlap .row-head { margin: 0; padding: 16px var(--sheet-pad) 10px; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 24px rgba(124, 58, 237, .10); }
.row.overlap .rail-wrap { background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 18px 30px rgba(124, 58, 237, .10); }
.row.overlap .rail { margin: 0; padding: 4px var(--sheet-pad) 16px; scroll-padding: 0 var(--sheet-pad); }
.row.overlap .rail .card { box-shadow: 0 2px 10px rgba(124, 58, 237, .10); border: 1px solid #f6e3ef; }
@media (min-width: 768px) {
  .slide { padding: 40px 0 124px; }
  .slide-in { grid-template-columns: 1fr 1.1fr; min-height: 300px; gap: 32px; }
  .slide-copy p { font-size: 17px; }
  .slide-copy h2 { font-size: clamp(64px, 9vw, 96px); }
  .slide-in { grid-template-columns: 1fr 1fr; }
  .hero-nav { bottom: 90px; }
  .row.overlap { margin-top: -72px; }
  .row.overlap .wrap { --sheet-pad: 22px; }
}
@media (min-width: 1200px) {
  .slide { padding: 48px 0 132px; }
  .slide-in { grid-template-columns: 1fr 1fr; min-height: 340px; }
  .hp { width: 380px; }
  .hp .tag { font-size: 44px; }
  .hero-ticket { width: 360px; }
  .hero-nav { bottom: 96px; }
  .row.overlap { margin-top: -80px; }
  .row.overlap .wrap { --sheet-pad: 28px; }
}

/* <768 hero: art sits on one baseline right above the dots */
@media (max-width: 767px) { .slide { padding-bottom: 122px; } .hero-nav { bottom: 74px; } }
@media (min-width: 768px) { .slide-in { display: grid; align-items: center; } .slide-art { margin-top: 0; } }
/* fix 6: card CTA outline, solid on card hover/focus */
.card .btn.sm { height: 34px; background: #fff; color: var(--pink); box-shadow: inset 0 0 0 1.5px var(--pink); }
.card:hover .btn.sm, .card:focus-within .btn.sm { background: var(--pink); color: #fff; box-shadow: 0 6px 14px rgba(219, 39, 119, .25); }
/* fix 7: breadcrumb with category */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; color: var(--ink-faint); font-weight: 700; }
.crumbs .crumb { margin: 0; }
.crumbs .crumb.cat { color: var(--violet); }
/* fix 5: sticky buy bar <768 */
.buybar { display: none; }
@media (max-width: 767px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .buybar .btn { flex: 1; height: 44px; }
  .buybar.on { transform: none; }
}

/* ---------- production states ---------- */
[hidden] { display: none !important; }
body.searching .home-only { display: none; }
.results-head h1.results { margin: 0; font-size: 18px; font-weight: 700; }
.all .row-head.results-head { padding: 0; }
body.searching .all { padding-top: 22px; }
.empty .chips a.chip { display: inline-grid; place-items: center; text-decoration: none; }

/* Fresh vs stale price (client re-checks every minute; > 60 min = stale).
   Cards: both states share one grid cell, so a stale card keeps the exact height of a fresh one
   and its button sits at the same y as the neighbours' (owner 2026-11-20: one line, no box). */
.card .meta, .card .buy { display: grid; }
.card .meta > *, .card .buy > * { grid-area: 1 / 1; }
.card .buy { place-items: center; }
.card .stale-only, .card.is-stale .live { visibility: hidden; }
.card.is-stale .stale-only { visibility: visible; }
.card .meta > .live { display: flex; flex-direction: column; gap: 4px; }
.stale-line {
  margin: 0; align-self: start; justify-self: start; max-width: 100%; height: 29px; display: flex; align-items: center; padding: 0 10px;
  border-radius: 12px 12px 12px 4px; background: var(--blush); color: var(--ink-brand);
  font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stale-line { display: block; line-height: 29px; }
/* offer page, hero and buy bar: the stale state removes the price outright */
.pdp .stale-only, .buybar .stale-only, .pdp.is-stale .live, .is-stale > .buybar .live, .hp.is-stale .tag { display: none; }
.pdp.is-stale .stale { display: flex; }
.pdp.is-stale .stale-only:not(.stale), .is-stale > .buybar .stale-only { display: inline; }
.pdp .price { display: flex; flex-direction: column; gap: 6px; }
.pdp .badges { display: flex; gap: 6px; }
.pdp.ended .gallery .main img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
/* 2-column grid at 360: the checked line stays on one line */
@media (max-width: 399px) { .grid .card .body { padding: 10px 10px 12px; } .card .checked { font-size: 10.5px; white-space: nowrap; } }
/* chips: one horizontal scrolling row at every width (review round 1) */
.toolbar { flex-wrap: nowrap; }
.toolbar .chips { flex: 1 1 auto; min-width: 0; }
@media (max-width: 767px) { .toolbar { flex-wrap: wrap; } .toolbar .chips { flex-basis: 100%; } }
/* group names stay on one line in row titles, chips and the breadcrumb */
.row-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs { min-width: 0; white-space: nowrap; }
.crumbs .crumb.cat { overflow: hidden; text-overflow: ellipsis; }
/* stale card button: the short label below 200px of card width, never past its border */
.card { container-type: inline-size; }
.card .buy .narrow { display: none; }
.card .buy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@container (max-width: 199px) { .card .buy .wide { display: none; } .card .buy .narrow { display: block; } }
@media (min-width: 768px) { .toolbar .chips { margin: 0; padding: 2px 0; } }
