/* SMU Lacrosse · Pony Up!
   Dallas Hall at blue hour with the downtown Dallas skyline behind it, in SMU's own colors. A red mustang bursts
   out of the lit front doors, gallops down the steps onto the quad and stands; mustangs run the ridges below. */

:root {
  /* SMU's palette (smu.edu/brand/color-palette): blue 354CA1, red CC0035, yellow F9C80E, black 262626.
     The darker blues are shades of SMU Blue. No teal and no light blue. */
  --red: #CC0035;
  --red-deep: #a3002b;
  --royal: #354CA1;
  --blue-1: #2c4194;
  --blue-2: #23367f;
  --dusk: #1d2d6e;
  --night: #121c4a;
  --ink: #1b2348;
  --ink-2: #4b5170;
  --yellow: #F9C80E;
  --line: rgba(255, 255, 255, .14);
  --plate: #fff;
  --wide: 'Archivo', system-ui, sans-serif;
  --top-h: 72px;
  --pad: clamp(18px, 5vw, 80px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --top-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; min-height: 100vh; background: var(--blue-1); color: #fff; overflow-x: clip;
  font: 400 16px/1.5 var(--wide); font-stretch: 100%; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(14, 22, 60, .85), rgba(14, 22, 60, 0));
  transition: background-color .3s, box-shadow .3s;
}
.top.solid { background: rgba(22, 33, 84, .97); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand-tag {
  display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 4px 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.brand-tag img { height: 50px; width: auto; }
/* In the header the mark stands on the sky by itself: the store's own logo, no box, with a thin white outline
   traced around its shapes from the artwork's transparency. The logo's colours are untouched. */
.top .brand-tag { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.top .brand-tag img { filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); }
.brand-name { display: grid; line-height: 1.05; }
.brand-name b { font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.brand-name span { font-size: 12px; color: rgba(255, 255, 255, .72); letter-spacing: .08em; text-transform: uppercase; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; height: 44px;
  justify-content: center; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }
.bag-count {
  position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.bag-count:empty { display: none; }
.bag-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 720px) {
  .brand-tag img { height: 36px; }
  .top .brand-tag img { height: 40px; }
  .brand-name span { display: none; }
  .top { gap: 8px; }
  .brand-name b { font-size: 13px; }
  .icon-btn .lbl { display: none; }
  .icon-btn { padding: 0; }
}
@media (max-width: 520px) { .brand-name { display: none; } }

/* ---------- hero: the view over Dallas Hall to downtown ---------- */
/* Seen as in the photo, from above and behind Dallas Hall: its dome and roofs in front, the quad beyond, then the
   canopy and the Dallas skyline on the horizon. The scene scales with the hero's height (--s is 1% of it), so it
   keeps its proportions at every width and only shows more or less at the sides. */
.hero {
  --hz: 29%;                                                       /* the horizon */
  --h: 84%;                                                        /* the foot of Dallas Hall */
  --hx: 50%;                                                       /* the hall's centre */
  --s: calc(clamp(620px, 100svh, 1100px) * .01);
  position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1100px;
  overflow: clip; background: var(--night); isolation: isolate;
}
.scene { position: absolute; inset: 0; }
/* the far canopy, matching the campus art's bands, for wide and short heroes where that art doesn't reach the sides */
.scene::before {
  content: ''; position: absolute; left: 0; right: 0; top: var(--hz); height: calc(var(--h) - var(--hz));
  background: linear-gradient(180deg, #2b3b86 0%, #26357e 2.4%, #203074 4.6%, #1b2a68 7.6%, #16245c 12%, #132153 18%, #132153 100%);
}
.sky {
  position: absolute; inset: 0 0 calc(100% - var(--hz) - 4px) 0;
  background: linear-gradient(180deg, #0c1438 0%, #142160 34%, #22358a 66%, var(--royal) 90%, #4659aa 100%);
}
.sky::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 45%;
  background: radial-gradient(ellipse 70% 100% at 52% 100%, rgba(249, 200, 14, .3), rgba(249, 200, 14, 0) 70%);
}
.dusk-stars { position: absolute; left: 0; top: 0; width: 100%; height: 42%; }
.hero .moon { position: absolute; right: 9%; top: calc(var(--top-h) + 4%); width: clamp(26px, 2.6vw, 40px); height: auto; filter: drop-shadow(0 0 12px rgba(246, 236, 210, .35)); }
.skyline { position: absolute; height: calc(var(--s) * 16); width: auto; aspect-ratio: 1000 / 200; left: calc(var(--hx) - var(--s) * 2); bottom: calc(100% - var(--hz) - var(--s) * .4); transform: translateX(-50%); }
.campus { position: absolute; top: var(--hz); height: calc(var(--h) - var(--hz)); width: auto; aspect-ratio: 2400 / 500; left: var(--hx); transform: translateX(-50%); }
.hall { position: absolute; height: calc(var(--s) * 37); width: auto; aspect-ratio: 1500 / 480; left: var(--hx); bottom: calc(100% - var(--h) - var(--s) * .77); transform: translateX(-50%); }
.ground { position: absolute; left: 0; top: var(--h); width: 100%; height: calc(100% - var(--h)); }
.mustang { position: absolute; left: 0; top: 0; pointer-events: none; }
.hall .door-spill { transform-box: fill-box; transform-origin: center; }
.hero.burst .door-spill { animation: spill 1.8s ease-out both; }
@keyframes spill { 0% { opacity: .5; } 22% { opacity: 1; transform: scale(1.6, 1.3); } 100% { opacity: .85; transform: none; } }

.hero-copy { position: absolute; inset: 0; pointer-events: none; }
.hero-mark { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--top-h) + 2vh); display: grid; gap: 10px; justify-items: center; text-align: center; }
.hero-title {
  font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.01em;
  font-size: clamp(46px, 6.6vw, 96px); color: #fff; text-shadow: .045em .045em 0 var(--red);
}
.hero-title span { display: inline-block; }
.hero-kicker {
  font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--yellow);
  display: flex; gap: 12px; align-items: center;
}
.hero-kicker i, .hero-kicker::after { width: 36px; height: 2px; background: currentColor; display: block; }
.hero-kicker::after { content: ''; }
.hero.compact .hero-kicker::after { display: none; }
.hero-cta {
  position: absolute; left: var(--pad); top: calc(var(--h) + 2.4vh); max-width: min(760px, 56vw); pointer-events: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.hero-cta .chips { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; max-width: 100%; padding: 2px; }
.hero-cta .chips::-webkit-scrollbar { display: none; }
.hero-cta .chip { flex: none; background: rgba(18, 28, 74, .7); }

/* the mustang bursts out of the doors, then the rallying cry */
.intro .hero:not(.run) .hero-title span { transform: translateY(26%) scale(.92); opacity: 0; }
.intro .hero-title span { transition: transform .7s var(--ease) calc(1.05s + var(--w) * .12s), opacity .4s ease calc(1.05s + var(--w) * .12s); }
.intro .hero:not(.run) .hero-kicker, .intro .hero:not(.run) .hero-cta { opacity: 0; transform: translateY(14px); }
.intro .hero-kicker { transition: opacity .6s ease .85s, transform .6s var(--ease) .85s; }
.intro .hero-cta { transition: opacity .7s ease 1.7s, transform .7s var(--ease) 1.7s; }

/* a collection page: the same view, shorter, with the title in the sky beside the skyline */
.hero.compact { --hz: 40%; --h: 80%; --hx: 64%; --s: calc(clamp(400px, 54svh, 620px) * .01); height: 54vh; height: 54svh; min-height: 400px; max-height: 620px; }
.hero.compact .hero-mark { top: calc(var(--top-h) + 1.5vh); right: auto; max-width: 40vw; justify-items: start; text-align: left; }
.hero.compact .hero-title { font-size: clamp(28px, 3.4vw, 52px); line-height: .9; }
.hero.compact .hero-cta { top: calc(var(--h) + 2.5vh); max-width: none; }
.hero.compact .moon { display: none; }

@media (max-width: 720px) {
  .hero { --hz: 30%; --h: 72%; }
  .hall { height: calc(var(--s) * 31); bottom: calc(100% - var(--h) - var(--s) * .65); }
  .hero-mark { top: calc(var(--top-h) + 2vh); gap: 8px; }
  .hero-title { font-size: min(14vw, 72px); }
  .hero-kicker { font-size: 12px; letter-spacing: .16em; gap: 8px; }
  .hero-kicker i, .hero-kicker::after { width: 18px; }
  .skyline { height: calc(var(--s) * 11); left: calc(var(--hx) + var(--s) * 3); }
  .hero .moon { right: 7%; top: calc(var(--top-h) + 13vh); }
  .hero-cta { top: auto; bottom: calc(2.5vh + env(safe-area-inset-bottom)); right: var(--pad); max-width: none; align-items: stretch; }
  .hero-cta .btn { align-self: flex-start; }
  .hero-cta .chips { margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); max-width: none; }
  .hero.compact { --hz: 46%; --h: 82%; --hx: 50%; }
  .hero.compact .hero-mark { top: calc(var(--top-h) + 2vh); max-width: none; right: var(--pad); }
  .hero.compact .hero-title { font-size: min(9vw, 46px); }
  .intro .hero:not(.run) .hero-title span { transform: translateY(40px); }
}

/* ---------- buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 800; font-stretch: 112%; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 28px rgba(204, 0, 53, .35); }
.btn-red:hover { background: var(--red-deep); }
.btn-red:disabled { background: #55607d; box-shadow: none; cursor: not-allowed; }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; background: #fff; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; font-weight: 600; font-size: 14px; background: rgba(18, 28, 74, .45);
  transition: background-color .2s, border-color .2s;
}
.chip:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- sections on the range ---------- */
.home { position: relative; }
.sec { position: relative; padding: 26px 0 clamp(40px, 6vw, 72px); background: var(--tone); overflow-x: clip; }
.sec.tone-0, .coll.tone-0 { --tone: var(--royal); }
.sec.tone-1 { --tone: var(--blue-1); }
.ridge { position: absolute; left: 0; right: 0; top: -46px; height: 64px; pointer-events: none; }
.ridge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--tone); }
.ridge-herd { position: absolute; left: 0; top: 0; pointer-events: none; }
.sec-in { position: relative; padding: 0 var(--pad); max-width: 1600px; margin: 0 auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px 0 22px; }
.sec-head h2 {
  flex: 1 1 auto; min-width: 0;
  font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .95;
  font-size: clamp(28px, 4.4vw, 60px);
}
.sec-all { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--yellow); white-space: nowrap; }
.sec-all svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.sec-all:hover svg { transform: translateX(4px); }

/* strips: one row of tiles that swipes sideways */
.strip-wrap { position: relative; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 19vw, 280px); gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad) 14px; scroll-padding: 0 var(--pad);
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: start; min-width: 0; }
.nudge {
  position: absolute; top: calc(var(--plate-mid, 120px) - 24px); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: opacity .2s ease;
}
.strip-wrap:not(.can-back) .nudge.prev, .strip-wrap:not(.can-fwd) .nudge.next { opacity: 0; pointer-events: none; visibility: hidden; }
.nudge svg { width: 20px; height: 20px; }
.nudge.prev { left: calc(var(--pad) * -.5 - 4px); }
.nudge.next { right: calc(var(--pad) * -.5 - 4px); }
@media (max-width: 1024px), (hover: none) { .nudge { display: none; } }
@media (max-width: 720px) {
  .strip { grid-auto-columns: 62vw; }
  .sec-head h2 { font-size: clamp(21px, 6.4vw, 30px); font-stretch: 112%; overflow-wrap: anywhere; }
  .sec-head { gap: 10px; }
}

/* tiles: one upright product photo on a white plate */
.tile { display: block; text-decoration: none; color: #fff; }
.plate {
  position: relative; display: block; background: var(--plate); border-radius: 14px; padding: 9%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile .plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.tile:hover .plate { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, .35); }
.tile .meta { display: grid; gap: 4px; padding: 12px 2px 0; }
.tile .t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .p { font-weight: 800; font-stretch: 112%; color: var(--yellow); font-size: 15px; }
.flag {
  position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 5px 9px; border-radius: 999px;
}
.flag.sold { background: var(--ink); }
.tile.out .plate img { opacity: .55; }
.sw { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.sw i { width: 20px; height: 20px; border-radius: 50%; background: #fff center / 230% no-repeat; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.sw b { font-size: 12px; color: rgba(255, 255, 255, .75); font-weight: 700; }
.tile.more .plate { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 0; background: rgba(255, 255, 255, .06); border: 2px dashed rgba(255, 255, 255, .28); }
.tile.more .plate > span { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px; }
.tile.more svg { width: 34px; height: 34px; color: var(--yellow); }
.tile.more b { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 20px; }
.tile.more small { color: rgba(255, 255, 255, .72); font-size: 13px; }

/* tiles arrive like a herd: from the left, one after another */
[data-rv] { opacity: 0; transform: translateX(-26px); transition: opacity .55s ease calc(var(--i, 0) * 45ms), transform .7s var(--ease) calc(var(--i, 0) * 45ms); }
[data-rv].in { opacity: 1; transform: none; }
.no-js [data-rv] { opacity: 1; transform: none; }

/* categories */
.cat-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px);
}
.cat { display: grid; gap: 12px; align-content: start; text-decoration: none; color: #fff; }
.cat .plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cat:hover .plate { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, .35); }
.cat b { font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; }
@media (max-width: 1024px) {
  .cat-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30vw; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 10px; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); }
  .cat-row::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
}
@media (max-width: 720px) { .cat-row { grid-auto-columns: 40vw; } }

/* more to explore */
.rest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.rest-link {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 18px 10px 10px;
  border-radius: 16px; background: rgba(255, 255, 255, .06); text-decoration: none; min-height: 96px; transition: background-color .2s;
}
.rest-link:hover { background: rgba(255, 255, 255, .12); }
.rest-link .plate { padding: 6px; border-radius: 10px; }
.rest-link img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.rest-link b { font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: 17px; }
.rest-link svg { width: 20px; height: 20px; color: var(--yellow); }

/* ---------- collection page ---------- */
.coll { position: relative; background: var(--tone); padding: 26px 0 72px; min-height: 50vh; overflow-x: clip; }
.coll-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 18px; }
.coll-bar .filters { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); min-width: 0; }
.coll-bar .filters::-webkit-scrollbar { display: none; }
.coll-bar .chip { flex: none; }
.sort { display: flex; align-items: center; gap: 10px; flex: none; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.sort select {
  min-height: 44px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(18, 28, 74, .45); color: #fff; padding: 0 14px;
}
.count { font-size: 14px; color: rgba(255, 255, 255, .7); margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 720px) {
  .coll-bar { flex-direction: column; align-items: stretch; }
  .sort { justify-content: flex-end; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tile .t { font-size: 14px; }
}

/* ---------- dialogs ---------- */
body.locked { overflow: hidden; }
.layer { position: fixed; inset: 0; z-index: 60; display: grid; }
.scrim { position: absolute; inset: 0; background: rgba(3, 9, 28, .62); opacity: 0; transition: opacity .25s ease; }
.layer.open .scrim { opacity: 1; }
.sheet {
  position: relative; background: #fff; color: var(--ink); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .25s ease, transform .35s var(--ease);
}
.layer.open .sheet { opacity: 1; transform: none; }
.sheet:focus { outline: none; }
.x {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(13, 26, 61, .14);
}
.x svg { width: 20px; height: 20px; }
.x:hover { background: #eef1f7; }
/* product: centred on desktop, a full sheet on phones */
.product { place-items: center; padding: 24px; }
.product .sheet { width: min(1120px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 22px; transform: translateY(18px) scale(.985); }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100%; }
.p-gallery { position: relative; padding: 26px 26px 58px; background: linear-gradient(180deg, #f3f5fa 0%, #e9edf5 70%, #f6e9e2 100%); display: grid; align-content: start; gap: 14px; }
.p-gallery::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; pointer-events: none;
  background: #dfe4f0; clip-path: polygon(0 55%, 14% 38%, 30% 50%, 48% 30%, 66% 46%, 84% 28%, 100% 40%, 100% 100%, 0 100%);
}
.p-stage .plate { padding: 6%; border-radius: 16px; }
.pic { position: relative; display: block; }
.pic img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.p-print { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.p-stage.kit-on .pic { display: none; }
.p-kit { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.p-kit > svg { width: 100%; height: 100%; }
.p-kit .loupe { position: absolute; left: 4%; bottom: 4%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--royal), 0 10px 26px rgba(13, 26, 61, .2); overflow: hidden; }
.p-kit .loupe svg { width: 100%; height: 100%; }
.p-kit .kit-note { position: absolute; right: 4%; bottom: 6%; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.p-thumbs { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px; }
.p-thumbs::-webkit-scrollbar { display: none; }
.p-thumbs button { flex: none; width: 64px; height: 64px; border-radius: 12px; background: #fff; padding: 4px; box-shadow: 0 0 0 1.5px #d6dbe6; }
.p-thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--royal); }
.p-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.kit-thumb { display: grid; place-items: center; background: var(--red) !important; color: #fff; font-weight: 900; font-stretch: 112%; font-size: 20px; }
.p-info { padding: 34px 34px 28px; display: grid; align-content: start; gap: 18px; }
.p-kicker { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.p-info h2 { font-stretch: 118%; font-weight: 900; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.005em; padding-right: 40px; }
.p-price { font-weight: 800; font-stretch: 112%; font-size: 24px; color: var(--royal); margin-top: -6px; }
.p-price s { color: var(--ink-2); font-weight: 500; font-size: 18px; margin-right: 6px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.field > span em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); margin-left: 4px; }
.field input, .field select {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1.5px solid #c8cfdd; background: #fff; color: var(--ink); padding: 0 14px; font-size: 17px;
}
.field input:focus, .field select:focus { border-color: var(--royal); outline: 3px solid rgba(53, 76, 161, .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff5f6; }
.field.pair > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .chip { color: var(--ink); border-color: #c8cfdd; background: #fff; min-width: 52px; justify-content: center; }
.sheet .chip:hover { border-color: var(--ink); background: #fff; }
.sheet .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sheet .chip.na { color: #8a93a8; border-style: dashed; }
.sheet .chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.colors { display: flex; flex-wrap: wrap; gap: 6px; }
.color { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.color i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(13, 26, 61, .22); }
.color.on { box-shadow: 0 0 0 2.5px var(--ink); }
.color.na i { opacity: .45; }
.color:disabled { opacity: .35; cursor: not-allowed; }
.styles { display: flex; flex-wrap: wrap; gap: 8px; }
.style { width: 64px; height: 64px; border-radius: 12px; background: #fff; padding: 4px; box-shadow: 0 0 0 1.5px #d6dbe6; }
.style.on { box-shadow: 0 0 0 2.5px var(--ink); }
.style img { width: 100%; height: 100%; object-fit: contain; }
.pers { border: 0; margin: 0; padding: 18px; border-radius: 16px; background: #f1f4fa; display: grid; gap: 14px; min-width: 0; }
.pers legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-stretch: 118%; font-weight: 900; text-transform: uppercase; font-size: 15px; color: var(--royal); }
.note { font-size: 13px; color: var(--ink-2); margin-top: -6px; }
.note.bad { color: var(--red-deep); font-weight: 700; }
.p-err { color: var(--red-deep); font-weight: 700; font-size: 14px; }
.p-err:empty { display: none; }
.p-buy { display: flex; gap: 12px; align-items: center; }
.p-buy .add { flex: 1; min-height: 54px; font-size: 16px; justify-content: space-between; padding: 0 22px; }
.p-buy .add .sum { font-stretch: 100%; opacity: .9; }
.p-buy .add:disabled { justify-content: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #c8cfdd; border-radius: 999px; height: 54px; }
.qty button { width: 46px; height: 100%; display: grid; place-items: center; border-radius: 999px; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty svg { width: 18px; height: 18px; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.qty.small { height: 44px; }
.qty.small button { width: 44px; }
.p-desc { border-top: 1px solid #e3e7ef; padding-top: 6px; }
.p-desc summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; cursor: pointer; }
.rich { font-size: 14px; line-height: 1.6; color: var(--ink-2); overflow-x: auto; overflow-y: hidden; }
.rich img { height: auto; }
.rich table { border-collapse: collapse; font-size: 13px; }
.rich td, .rich th { border: 1px solid #e3e7ef; padding: 4px 8px; }
.tracks { display: flex; gap: 14px; color: #c8cfdd; padding: 12px 0; }
.tracks svg { width: 22px; height: 22px; animation: track 1.2s ease-in-out infinite; }
.tracks svg:nth-child(2) { animation-delay: .2s; transform: translateY(8px); }
.tracks svg:nth-child(3) { animation-delay: .4s; }
@keyframes track { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.pack-items { display: grid; gap: 12px; }
.pack-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.pack-item .plate { padding: 6px; border-radius: 10px; box-shadow: 0 0 0 1.5px #e3e7ef; }
.pack-item .chips { margin-top: 8px; }
@media (max-width: 860px) {
  .product { padding: 0; align-items: end; }
  .product .sheet { width: 100%; max-height: 100%; height: 100%; border-radius: 0; transform: translateY(40px); }
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .p-gallery { padding: 64px 16px 14px; }
  .p-info { padding: 22px 18px 0; gap: 16px; }
  .p-buy { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(13, 26, 61, .1); }
  .p-desc { margin-bottom: 18px; }
}

/* drawers: bag and menu slide in from the right */
.drawer { justify-items: end; }
.drawer .sheet { width: min(440px, 100%); height: 100%; transform: translateX(40px); display: flex; flex-direction: column; }
.bag-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px 24px; background: #fff; border-bottom: 1px solid #e3e7ef; }
.bag-head .x { position: static; box-shadow: none; }
.bag-head h2 { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 22px; }
.bag-head h2 em { font-style: normal; font-stretch: 100%; font-weight: 600; font-size: 14px; color: var(--ink-2); text-transform: none; margin-left: 6px; }
.lines { list-style: none; margin: 0; padding: 8px 18px; display: grid; gap: 4px; flex: 1; align-content: start; }
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef1f6; }
.line.bad { background: #fff5f6; border-radius: 12px; padding: 14px 10px; }
.line .plate { padding: 6px; border-radius: 12px; box-shadow: 0 0 0 1.5px #e3e7ef; align-self: start; }
.line .plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.line-main { display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); align-content: start; min-width: 0; }
.line-main b { color: var(--ink); font-size: 15px; line-height: 1.3; }
.line-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.remove { min-height: 44px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.line-price { font-size: 15px; font-weight: 800; }
.bag-foot { position: sticky; bottom: 0; background: #fff; padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #e3e7ef; display: grid; gap: 10px; }
.bag-foot .sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.bag-foot .sum strong { font-size: 22px; font-stretch: 112%; }
.bag-foot .note { margin: 0; }
.pay { min-height: 62px; display: grid; gap: 0; justify-items: center; align-content: center; line-height: 1.15; }
.pay .pony { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; }
.pay span:last-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .04em; opacity: .92; }
.pay svg { width: 14px; height: 14px; }
.empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 40px 24px; text-align: center; }
.empty p { font-weight: 700; font-size: 17px; }
.lone-empty { display: block; }
/* menu */
.menu .sheet { background: var(--blue-2); color: #fff; }
.menu .bag-head { background: var(--blue-2); border-color: var(--line); }
.menu .x { background: rgba(255, 255, 255, .1); color: #fff; }
.menu-list { display: grid; padding: 10px 14px 32px; }
.menu-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: 17px; }
.menu-list a:hover { background: rgba(255, 255, 255, .08); }
.menu-list small { font-stretch: 100%; font-weight: 600; font-size: 13px; color: rgba(255, 255, 255, .55); }
.menu-sub { padding: 18px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
/* search */
.search { place-items: start center; padding: 24px; }
.search .sheet { width: min(1100px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); border-radius: 22px; background: var(--dusk); color: #fff; transform: translateY(-14px); padding: 0 24px 28px; }
.search-head { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: center; padding: 20px 0 14px; background: var(--dusk); }
.search-head .x { position: static; flex: none; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); }
.search-box svg { width: 22px; height: 22px; flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 18px; background: none; color: var(--ink); min-height: 50px; }
.search .count { margin: 4px 0 16px; }
.results.chips { display: flex; }
@media (max-width: 720px) {
  .search { padding: 0; }
  .search .sheet { max-height: 100%; height: 100%; border-radius: 0; padding: 0 16px 24px; }
  .drawer .sheet { width: 100%; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; width: min(460px, calc(100% - 24px));
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 12px 30px; overflow: clip;
  background: var(--royal); color: #fff; border-radius: 18px; box-shadow: 0 18px 44px rgba(3, 9, 28, .45);
  transform: translate(-50%, 24px); opacity: 0; transition: opacity .3s ease, transform .4s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .plate { padding: 4px; border-radius: 10px; }
.toast .plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.toast p { display: grid; gap: 2px; font-size: 13px; min-width: 0; }
.toast p b { font-size: 15px; }
.toast p span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-run { position: absolute; left: 0; bottom: 3px; pointer-events: none; }
.toast::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .14); }

/* ---------- footer: the range at night ---------- */
.foot { position: relative; background: var(--night); color: #fff; overflow-x: clip; }
.night { position: relative; height: clamp(220px, 30vw, 360px); background: linear-gradient(180deg, #0c1438 0%, #16246a 70%, #22358a 100%); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.night-ridge { position: absolute; left: 0; width: 100%; top: -46px; height: 64px; fill: #0c1438; }
.moon { position: absolute; right: 22%; top: 18%; width: clamp(28px, 3vw, 44px); height: auto; filter: drop-shadow(0 0 12px rgba(246, 236, 210, .35)); }
.foot-city { position: absolute; right: 2%; bottom: 40px; height: clamp(70px, 11vw, 140px); width: auto; aspect-ratio: 1000 / 200; filter: brightness(1.7); }
.foot-ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--night); clip-path: polygon(0 40%, 18% 22%, 36% 34%, 55% 18%, 74% 36%, 100% 20%, 100% 100%, 0 100%); }
.lone-night { position: absolute; left: 14%; bottom: 30px; z-index: 1; }
@media (max-width: 720px) { .lone-night { left: 4%; } .foot-city { right: -30%; } }
.foot-in { background: var(--night); padding: 18px var(--pad) 40px; display: grid; gap: 28px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand .brand-tag img { height: 52px; }
.foot-brand p { display: grid; }
.foot-brand b { font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 18px; }
.foot-brand span { color: rgba(255, 255, 255, .62); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; text-decoration: none; color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 600; }
.foot-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.powered { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: rgba(255, 255, 255, .62); font-size: 13px; font-weight: 600; justify-self: start; min-height: 44px; }
.powered img { width: 150px; height: auto; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-rv] { opacity: 1; transform: none; }
}
