/* Find Your Cap v10 · Gift Wall. Warm, dark, ember-lit landing with the snow globe → a full-bleed wall
   of caps per recipient → focus view, collections (search results), sheets and menus.
   Theme colours (--ember, --ember-deep, --bg0, --glow) arrive from the theme file.
   Performance: nothing that sits over the moving wall uses backdrop-filter (solid, semi-opaque
   backgrounds instead); blur is kept only on static full-screen overlays (scrim, focus backdrop). */

:root {
  --bg0: #0d0a08;
  --bg1: #1c130e;
  --ember: #f88749;
  --ember-deep: #e5672a;
  --glow: 248, 135, 73;
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .14);
  --txt: #fff7f0;
  --txt-dim: rgba(255, 240, 228, .62);
  --tile: #ece8e2;
  --paper: var(--hs-paper);
  --ink: var(--hs-ink);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --r: 22px;
  --ease: var(--hs-ease);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--hs-body);
  color: var(--txt);
  background: var(--bg0);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* ---------- Atmosphere ---------- */
.atmo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 44%, rgba(248, 135, 73, .30), transparent 70%),
    radial-gradient(90% 60% at 50% 110%, rgba(229, 103, 42, .28), transparent 70%),
    radial-gradient(70% 50% at 50% -10%, rgba(120, 70, 45, .35), transparent 70%),
    linear-gradient(180deg, #17100c 0%, #0d0a08 55%, #140d09 100%);
  transition: opacity .6s var(--ease);
}
.atmo::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* Snow only on the landing (the app also stops its loop elsewhere). */
#snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; transition: opacity .6s; }
body:not([data-screen="globe"]) #snow { opacity: 0; }

/* ---------- Delivery strip ---------- */
.strip {
  position: fixed; z-index: 35; left: 0; right: 0; top: 0; height: 28px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; overflow: hidden;
  background: var(--ember); color: #1a0f08; font-size: 12px; font-weight: 700;
}
.strip span { min-width: 0; overflow: hidden; text-overflow: clip; }
.strip b, .strip a { flex: none; padding: 2px 8px; border-radius: 99px; background: #1a0f08; color: #fff; font: 800 10.5px/1.3 var(--hs-display); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
@media (max-width: 420px) { .strip { font-size: 11px; } }

/* ---------- Top bar ---------- */
.top {
  position: fixed; z-index: 30; left: 0; right: 0; top: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 10px) 14px 10px;
  pointer-events: none;
}
body.has-strip .top { top: 28px; }
.top > * { pointer-events: auto; }
.top .left { grid-column: 1; }
.top-r { display: flex; align-items: center; gap: 6px; grid-column: 3; justify-self: end; }
.ibtn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(38, 32, 28, .9); border: 1px solid var(--glass-line);
  transition: transform .2s var(--ease), background .2s;
}
.ibtn:active { transform: scale(.92); }
.ibtn svg { width: 20px; height: 20px; }
.top .ibtn[hidden] { display: none; }
body[data-screen="col"] .ibtn { background: rgba(255, 255, 255, .85); border-color: var(--hs-line); color: var(--ink); }
body[data-screen="col"] .top .ibtn { background: rgba(255, 255, 255, .9); }
.top .ctx {
  justify-self: center; max-width: 100%; overflow: visible; text-overflow: ellipsis; white-space: nowrap;
  font: 800 12px/1 var(--hs-display); letter-spacing: .14em; text-transform: uppercase; color: var(--txt-dim);
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease);
}
body[data-screen="wall"] .top .ctx, body[data-screen="col"] .top .ctx { opacity: 1; transform: none; }
.top .ctx b { color: var(--ember); font-weight: 900; }
.ctx-q { font: 800 12px/1 var(--hs-display); letter-spacing: .1em; text-transform: uppercase; color: var(--txt-dim); }
.ctx-q b { color: var(--ember); }
@media (max-width: 899px) {
  /* Phones: the caption sits under the top bar; on the wall the recipient pill sits in the bar. */
  .top .ctx { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 56px); display: flex; justify-content: center; pointer-events: none; }
  .top .ctx > * { pointer-events: auto; }
  body[data-screen="globe"] .top .ctx { display: none; }
  body[data-screen="wall"] .top .ctx { position: static; display: block; justify-self: center; }
}
@media (min-width: 900px) {
  .top { padding: 18px 24px; }
  .top .left { display: flex; align-items: center; gap: 14px; }
}

/* Recipient pill (top bar on the wall) and its dropdown */
.rec-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 14px; border-radius: 99px; max-width: 46vw;
  background: var(--ember); color: #1a0f08; font: 900 12px/1 var(--hs-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(var(--glow), .35);
}
.rec-pill svg { width: 15px; height: 15px; flex: none; transition: transform .2s var(--ease, ease); }
.rec-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
.rec-menu {
  position: fixed; z-index: 55; padding: 6px; border-radius: 18px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(20, 15, 11, .96); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transform-origin: top center; animation: recdd .18s var(--ease, ease) both;
}
@keyframes recdd { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.rec-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px;
  color: #fff; font: 800 14px/1 var(--hs-display); text-align: left; white-space: nowrap; cursor: pointer;
}
.rec-menu button:hover, .rec-menu button:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.rec-menu button[aria-checked="true"] { color: var(--ember, #f88749); }
.rec-menu button svg { width: 16px; height: 16px; flex: none; }

/* Version switcher (shared script): solid instead of its backdrop blur. */
#fyc-switch .fyc-sw > button { background: rgba(20, 20, 20, .9); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-screen="col"] #fyc-switch .fyc-sw > button { background: rgba(38, 38, 38, .9); }
@media (max-width: 420px) {
  #fyc-switch .fyc-sw > button { font-size: 0; gap: 4px; padding: 0 9px; }
  #fyc-switch .fyc-sw > button b { font-size: 12px; }
}

/* ---------- Screens ---------- */
.screen { position: fixed; inset: 0; z-index: 2; }
.screen[hidden], .wall-status[hidden] { display: none !important; }

/* ---------- Landing: headline, one question, recipient buttons, the globe ---------- */
#globe-screen {
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--safe-t) + 54px) 0 calc(var(--safe-b) + 18px);
  transition: opacity .5s var(--ease);
}
body.has-strip #globe-screen { padding-top: calc(var(--safe-t) + 80px); }
.hero { text-align: center; padding: 0 22px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 11px/1 var(--hs-display); letter-spacing: .22em; text-transform: uppercase; color: var(--ember);
}
.eyebrow img { width: 18px; height: 18px; border-radius: 50%; }
.hero h1 {
  margin: 6px 0 2px; padding-block: .04em; font: 900 clamp(32px, 10vw, 62px)/1 var(--hs-display);
  letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--ember); }
.aud { margin: 12px auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 640px; }
.who-q {
  margin: 0; font: 800 13.5px/1.45 var(--hs-display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--txt-dim); text-wrap: balance;
}
.rc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 620px; margin: 0 auto; padding: 0 var(--gut, 16px); }
.rc-btn {
  height: 46px; padding: 0 20px; border-radius: 99px; white-space: nowrap; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  font: 800 14px/1 var(--hs-display); letter-spacing: .01em;
  transition: background .2s, border-color .2s, transform .15s var(--ease, ease);
}
.rc-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); }
.rc-btn:active { transform: scale(.97); }
.rc-btn[aria-checked="true"] { background: var(--ember, #f88749); border-color: var(--ember, #f88749); color: #1a0f08; box-shadow: 0 8px 24px rgba(var(--glow, 248, 135, 73), .35); }
.rc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 420px) { .rc-btns { gap: 7px; } .rc-btn { height: 42px; padding: 0 16px; font-size: 13px; } }
@media (max-height: 720px) {
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 28px; }
}

/* The globe takes whatever height is left, so the pedestal never runs into the text above. */
.globe-stage { flex: 1 1 auto; width: 100%; min-height: 120px; display: grid; place-items: center; position: relative; container-type: size; }
.globe-wrap {
  --d: max(110px, min(84vw, calc(100cqh / 1.17), 540px));
  position: relative; width: var(--d); height: calc(var(--d) * 1.12);
  transition: transform .7s cubic-bezier(.6, 0, .2, 1), opacity .55s, filter .6s;
}
.globe-wrap::before { /* ember glow behind the glass */
  content: ""; position: absolute; left: -18%; right: -18%; top: -14%; height: 120%;
  background: radial-gradient(closest-side, rgba(248, 135, 73, .34), rgba(248, 135, 73, .08) 60%, transparent);
  filter: blur(8px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; transform: scale(.96); } }
.globe-wrap canvas { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); touch-action: none; cursor: grab; z-index: 2; }
.globe-wrap canvas:active { cursor: grabbing; }
.globe-base {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  top: calc(var(--d) * .86); width: calc(var(--d) * .66); height: calc(var(--d) * .25);
  pointer-events: none;
}
.globe-base .lip {
  position: absolute; left: 0; right: 0; top: 0; height: 26%;
  border-radius: 50%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255, 186, 140, .55), transparent 70%), linear-gradient(180deg, #4a3427, #1d1410);
  box-shadow: 0 0 0 1px rgba(255, 210, 180, .16) inset, 0 -6px 24px rgba(248, 135, 73, .25);
}
.globe-base .body {
  position: absolute; left: 3%; right: 3%; top: 13%; bottom: 0;
  border-radius: 0 0 22px 22px / 0 0 18px 18px;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55), transparent 22%, rgba(255, 190, 150, .14) 50%, transparent 78%, rgba(0, 0, 0, .55)),
    linear-gradient(180deg, #2a1d16, #120c09);
  display: grid; place-items: center;
}
.globe-base .plate {
  display: flex; align-items: center; gap: 6px; margin-top: 8%;
  font: 900 calc(var(--d) * .026)/1 var(--hs-display); letter-spacing: .32em; color: rgba(248, 135, 73, .9);
  text-shadow: 0 0 12px rgba(248, 135, 73, .45);
}
.globe-base .plate img { width: calc(var(--d) * .3); height: auto; filter: drop-shadow(0 0 10px rgba(248, 135, 73, .35)); }
.globe-base::after { /* floor shadow */
  content: ""; position: absolute; left: -12%; right: -12%; bottom: -16%; height: 26%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); z-index: -1;
}
body.diving .globe-wrap { transform: scale(2.8); opacity: 0; filter: blur(6px); }
body.diving .hero, body.diving .chips { opacity: 0; transition: opacity .3s; }

/* The (empty) chip row under the globe keeps its space. */
.chips {
  width: 100%; max-width: 760px; display: flex; justify-content: center; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px 6px; scroll-padding: 16px; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { width: auto; max-width: min(1100px, 100vw); } }

/* Pill buttons ("Surprise me", search suggestions) */
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: 99px; white-space: nowrap; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line);
  transition: transform .2s var(--ease), background .2s;
}
.chip:active { transform: scale(.95); }
.chip svg { width: 16px; height: 16px; flex: none; }
.chip.hot { background: var(--ember); border-color: var(--ember); color: #1a0f08; font-size: 15px; font-weight: 800; }

/* ---------- Bottom bar (wall only): flag left, "Surprise me" centred, search + saved right ---------- */
.bottom {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 12px 16px calc(var(--safe-b) + 14px);
  pointer-events: none;
}
.bottom > * { pointer-events: auto; }
body:not([data-screen="wall"]) .bottom { display: none; }
body.focusing .bottom { opacity: 0; pointer-events: none; }
.bottom .ibtn {
  width: 52px; height: 52px; background: rgba(28, 20, 15, .88); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), opacity .3s, width .3s var(--ease), margin .3s;
}
.bottom .ibtn svg { width: 22px; height: 22px; }
#btn-surprise { height: 52px; padding: 0 22px; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
#btn-surprise svg { width: 18px; height: 18px; }
#btn-search { position: absolute; right: calc(max(14px, env(safe-area-inset-right)) + 62px); bottom: calc(var(--safe-b, 0px) + 14px); }
#btn-lists { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: calc(var(--safe-b, 0px) + 14px); }
.lists-btn svg { color: var(--ember); }
.lists-btn .n { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; background: var(--ember); color: #1a0f08; font: 900 10px/1 var(--hs-display); }
.lists-btn .n:empty { display: none; }
.lists-btn.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.08); } }
@media (max-width: 480px) { /* keep "Surprise me" between the flag and the search/saved pair */
  .bottom { justify-content: flex-start; padding-left: calc(max(14px, env(safe-area-inset-left)) + 58px); }
}
@media (max-width: 420px) {
  #btn-search, #btn-lists { width: 46px; height: 46px; }
  #btn-search { right: calc(max(14px, env(safe-area-inset-right)) + 54px); }
  #btn-surprise { height: 46px; padding: 0 16px; font-size: 14px; }
}

/* Flag button (bottom left) and the country dropdown that opens upwards from it */
.flag-btn {
  position: fixed; z-index: 32; left: max(14px, env(safe-area-inset-left)); bottom: calc(var(--safe-b, 0px) + 14px);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(28, 20, 15, .88); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  transition: transform .15s var(--ease, ease), border-color .2s;
}
.flag-btn:hover { border-color: rgba(255, 255, 255, .36); }
.flag-btn:active { transform: scale(.94); }
.flag-btn[aria-expanded="true"] { border-color: var(--ember, #f88749); }
.flag-btn .flag { font-size: 24px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
body[data-screen="col"] .flag-btn { background: rgba(255, 255, 255, .92); border-color: rgba(38, 38, 38, .14); }
body:has(.focus:not([hidden])) .flag-btn, body:has(.sheet.on) .flag-btn { display: none; }
.loc-menu {
  position: fixed; z-index: 56; left: max(14px, env(safe-area-inset-left)); bottom: calc(var(--safe-b, 0px) + 70px);
  width: min(320px, calc(100vw - 28px)); max-height: min(70dvh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 20px; background: rgba(20, 15, 11, .97); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  transform-origin: bottom left; animation: locdd .18s var(--ease, ease) both;
}
@keyframes locdd { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.lm-lab { padding: 10px 10px 6px; font: 800 10.5px/1 var(--hs-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.lm-list { display: flex; flex-direction: column; gap: 1px; }
.lm-row {
  display: grid; grid-template-columns: 26px 1fr 16px; align-items: center; gap: 10px; min-height: 50px; padding: 6px 10px;
  border-radius: 12px; text-align: left; color: #fff; font: 700 14px/1 var(--hs-body, system-ui); cursor: pointer;
}
.lm-row .flag { font-size: 20px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.lm-row .nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lm-row .nm b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-row small { font-size: 11.5px; line-height: 1.2; color: rgba(255, 255, 255, .5); font-weight: 600; }
.lm-row svg { width: 16px; height: 16px; color: var(--ember, #f88749); }
.lm-row:hover, .lm-row:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.lm-row[aria-checked="true"] { color: var(--ember, #f88749); }
.lm-fine { margin: 6px 10px 6px; font-size: 11px; line-height: 1.4; color: rgba(255, 255, 255, .45); }

/* ---------- Wall ---------- */
#wall-screen { transition: opacity .5s var(--ease), transform .7s var(--ease); }
#wall-screen.enter { opacity: 0; transform: scale(.82); }
/* Edges fade into the dark atmosphere (top and bottom bars stay readable). */
#wall-screen::before, #wall-screen::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
#wall-screen::before { top: 0; height: calc(var(--safe-t) + 150px); background: linear-gradient(180deg, var(--bg0) 30%, rgba(13, 10, 8, .55) 70%, transparent); }
#wall-screen::after { bottom: 0; height: calc(var(--safe-b) + 110px); background: linear-gradient(0deg, var(--bg0) 12%, rgba(13, 10, 8, .7) 45%, transparent); }
.wall { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.wall.dragging { cursor: grabbing; }
.wall:focus, .wall:focus-visible { outline: none; }
.wall-plane { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .25s; } /* never transition transform: it must follow the finger */
.wall-plane.out { opacity: 0; }

/* Product tiles (like v3): image + a black price pill. Packshots sit large and centred. */
.wt {
  position: absolute; left: 0; top: 0; border-radius: 20%; overflow: hidden;
  background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  contain: strict; container-type: inline-size;
}
.wall[data-zoom="0"] .wt { border-radius: 18%; }
.wt img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s; -webkit-user-drag: none; pointer-events: none; }
.wall .wt img { padding: 7% 7% 17%; }
.wall[data-zoom="2"] .wt img { padding: 7% 8% 15%; }
.wt img.ok { opacity: 1; }
.wt .in { position: absolute; inset: 0; transition: transform .25s var(--ease); }
.wt:hover .in { transform: scale(1.05); }
.wt.pop .in { animation: pop .55s var(--spring) both; animation-delay: var(--dl, 0ms); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.wt .pp {
  position: absolute; left: 50%; bottom: 5.5%; transform: translateX(-50%); padding: .38em .7em; border-radius: 99px; white-space: nowrap;
  background: #141414; color: #fff; font: 800 clamp(8.5px, 9cqw, 13px)/1 var(--hs-display); letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transition: opacity .2s;
}
/* Lifestyle / AI photos fill the tile, with the same pill on a soft bottom gradient. */
.wt.photo .in img, .f-c.photo img, .f-n.photo img { object-fit: cover; padding: 0 !important; mix-blend-mode: normal; }
.wt.photo .in::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .38), transparent);
}
.wt.photo .pp { z-index: 1; }

/* Shortcut tiles: ember or dark (never paper like product tiles), art at the top, kicker + title below. */
.wt.wc.v0, .wt.wc.v1 { background: linear-gradient(145deg, #fa9459, var(--ember) 45%, var(--ember-deep)); color: #1a0f08; }
.wt.wc.v2 { background: #2a1e17; color: #fff; box-shadow: 0 0 0 1.5px rgba(248, 135, 73, .55) inset, 0 10px 26px rgba(0, 0, 0, .35); }
.wt.wc .in { display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding: 7% 8% 8%; text-align: left; }
.wt.wc .in small, .wt.wc .in b { z-index: 1; }
.wc small {
  position: relative; margin: 0 0 3%; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: clip;
  font: 800 clamp(6.5px, 6cqw, 10px)/1 var(--hs-display); letter-spacing: .12em; text-transform: uppercase; opacity: .7;
}
.wt.wc.v0 small, .wt.wc.v1 small { color: #1a0f08; }
.wt.wc.v2 small { color: var(--ember); opacity: 1; }
/* Titles get their font size inline (sized so the longest word fits the tile). */
.wc b {
  position: relative; max-width: 100%; font-weight: 900; font-family: var(--hs-display); line-height: 1.05;
  text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: normal; hyphens: manual; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wt.wc:not(.gc):not(.ds) b { letter-spacing: -.01em; }
.wc em { position: relative; display: block; margin-top: 3%; font-style: normal; font-size: clamp(7px, 6.2cqw, 11px); line-height: 1.2; opacity: .75; }
.wall[data-zoom="0"] .wc small, .wall[data-zoom="0"] .wc em { display: none; }
/* One cap on a tilted white card cropping out of the top-right corner (v3), … */
.wt.wc .in > img.ci {
  position: absolute; right: -8%; top: -6%; width: 70%; height: auto; aspect-ratio: 1; padding: 6%;
  object-fit: contain; transform: rotate(-12deg); border-radius: 16%; background: #fff; opacity: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22); z-index: 0;
}
/* … or a collage of three caps on a tilted white card. */
.wc .cl {
  position: absolute; left: 10%; right: 6%; top: 6%; height: 52%; border-radius: 16%; background: #fff; overflow: hidden;
  transform: rotate(-6deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}
.wc .cl img {
  position: absolute; top: 8%; height: 84%; width: auto; aspect-ratio: 1; padding: 0; margin: 0;
  object-fit: contain; mix-blend-mode: multiply; opacity: 1;
}
.wc .cl.n3 img { height: 70%; top: 15%; }
.wc .cl.n3 img:nth-child(1) { left: -6%; }
.wc .cl.n3 img:nth-child(3) { right: -6%; left: auto; }
.wc .cl.n3 img:nth-child(2) { left: 50%; transform: translateX(-50%); height: 86%; top: 7%; z-index: 1; }

/* Gift-card tile: a photo of the real gift cards on a tilted white card cropping out of the top-right
   corner (the photo's white background is the card), kicker + title in ink on the ember tile. */
.wt.wc.gc { background: linear-gradient(140deg, var(--ember), var(--ember-deep)); color: #1a0f08; }
.wt.wc.gc .in > img.gci {
  position: absolute; right: -12%; top: -7%; width: 92%; height: auto; aspect-ratio: 1.25; padding: 0;
  object-fit: cover; object-position: 50% 42%; transform: rotate(-9deg); border-radius: 14%; background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); z-index: 0;
}
/* "Design your own": a full-bleed photo, the copy in white over a soft dark bottom gradient. */
.wt.wc.ds { background: #2a2724; color: #fff; box-shadow: 0 0 0 1px rgba(var(--glow), .5) inset, 0 6px 16px rgba(0, 0, 0, .35); }
.wt.wc.ds .in > img.dsi { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; object-fit: cover; object-position: 58% 30%; z-index: 0; }
.wt.wc.ds .in::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 66%; pointer-events: none; z-index: 0;
  background: linear-gradient(0deg, rgba(10, 7, 5, .9) 0%, rgba(10, 7, 5, .62) 48%, transparent);
}
.wt.wc.ds small, .wt.wc.ds b, .wt.wc.ds em { z-index: 1; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.wt.wc.ds small { white-space: normal; line-height: 1.15; font-size: clamp(6.5px, 5.6cqw, 9.5px); color: #ffb28a; opacity: 1; }
.wt.wc.ds em { opacity: .85; }

/* Empty result (filters too narrow) and the search caption */
.wall-empty10 { position: fixed; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 18px; border-radius: 16px; background: rgba(20, 15, 11, .9); border: 1px solid var(--glass-line); color: var(--txt); font-size: 14px; font-weight: 600; text-align: center; max-width: calc(100vw - 48px); }
.wall-status {
  position: fixed; z-index: 31; left: 50%; top: calc(var(--safe-t) + 62px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 16px; border-radius: 99px;
  background: rgba(28, 20, 15, .9); border: 1px solid var(--glass-line); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.wall-status b { color: var(--ember); }
.wall-status button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.wall-status svg { width: 14px; height: 14px; }
@media (max-width: 899px) { .wall-status { top: calc(var(--safe-t) + 104px); } }
@media (min-width: 900px) { .wall-status { top: 96px; } }

/* ---------- Chip bar: Filter button, quick chips (kids: ages), active filters below ---------- */
.chipbar { position: fixed; z-index: 29; left: 0; right: 0; top: calc(var(--safe-t) + 60px); }
.chipbar[hidden] { display: none; }
body.has-strip .chipbar { top: calc(var(--safe-t) + 88px); }
.cb-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 8px; scrollbar-width: none; scroll-padding: 14px; }
.cb-row::-webkit-scrollbar { display: none; }
.cb {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; white-space: nowrap;
  background: rgba(28, 20, 15, .88); border: 1px solid var(--glass-line); color: var(--txt); font-size: 13px; font-weight: 700;
  transition: background .2s, color .2s;
}
.cb[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.cb.age[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #1a0f08; }
.cb.fbtn { gap: 6px; padding: 0 12px; position: sticky; left: 0; z-index: 2; box-shadow: 6px 0 12px rgba(13, 10, 8, .6); }
.cb.fbtn svg { width: 15px; height: 15px; }
.cb.fbtn b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: var(--ember); color: #1a0f08; font: 900 10.5px/1 var(--hs-display); }
.cb.fbtn.on { border-color: var(--ember); }
.fp-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 0 14px 8px; scrollbar-width: none; }
.fp-row::-webkit-scrollbar { display: none; }
.fpill { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 10px; border-radius: 99px; background: var(--ember); color: #1a0f08; font-size: 12px; font-weight: 800; white-space: nowrap; }
.fpill svg { width: 12px; height: 12px; }
.fpill .sw, .swb i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.fclear { flex: none; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--txt); background: rgba(28, 20, 15, .72); border: 1px solid var(--glass-line); }
.fcount { flex: none; font-size: 12px; font-weight: 700; color: var(--txt); white-space: nowrap; padding: 0 4px 0 0; }
@media (min-width: 900px) {
  .chipbar { top: 76px; }
  body.has-strip .chipbar { top: 104px; }
  .cb-row { justify-content: safe center; padding: 4px 24px 8px; }
  .fp-row { justify-content: safe center; padding: 0 24px 8px; }
}

/* Filter dropdown (anchored under the chip bar; not a modal) */
.filter-menu {
  position: fixed; z-index: 48; left: 10px; right: 10px; top: calc(var(--safe-t) + 112px); max-height: min(72dvh, 640px);
  display: flex; flex-direction: column; border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .2s var(--ease);
}
body.has-strip .filter-menu { top: calc(var(--safe-t) + 140px); }
.filter-menu.on { opacity: 1; transform: none; }
.fm-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 6px; }
.fm-body section + section { margin-top: 16px; }
.fm-body h3 { margin: 0 0 8px; font: 800 11px/1 var(--hs-display); letter-spacing: .14em; text-transform: uppercase; color: var(--hs-muted); }
/* Colour swatches: pills that size to their label (no words split across lines). */
.fsw { display: flex; flex-wrap: wrap; gap: 6px; }
.swb { flex: none; display: flex; align-items: center; gap: 7px; min-width: 0; height: 34px; padding: 0 11px 0 9px; border-radius: 99px; background: #fff; border: 1.5px solid var(--hs-line); font-size: 12.5px; font-weight: 600; text-align: left; }
.swb i { flex: none; width: 16px; height: 16px; }
.swb span { flex: none; min-width: 0; white-space: nowrap; overflow-wrap: break-word; line-height: 1.1; }
.swb small, .fc2 small, .fo small { font-size: 10.5px; color: var(--hs-muted); font-weight: 600; }
.swb[aria-pressed="true"], .fc2[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.swb[aria-pressed="true"] small, .fc2[aria-pressed="true"] small { color: rgba(255, 255, 255, .6); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc2 { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: #fff; border: 1.5px solid var(--hs-line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fsearch { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; margin-bottom: 4px; border-radius: 12px; background: #fff; border: 1.5px solid var(--hs-line); }
.fsearch svg { width: 15px; height: 15px; color: var(--hs-muted); flex: none; }
.fsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 14px/1 var(--hs-body); color: var(--ink); }
.flist { display: flex; flex-direction: column; }
.fo { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 4px; border-bottom: 1px solid var(--hs-line); text-align: left; font-size: 14px; font-weight: 600; }
.fo span { flex: 1; min-width: 0; overflow-wrap: break-word; }
.fo svg { width: 16px; height: 16px; color: var(--ember-deep); opacity: 0; flex: none; }
.fo[aria-pressed="true"] span { color: var(--ember-deep); font-weight: 800; }
.fo[aria-pressed="true"] svg { opacity: 1; }
.fnone { margin: 6px 4px; font-size: 13px; color: var(--hs-muted); }
.fm-foot { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--hs-line); }
.fm-foot .btn { flex: 1; height: 44px; font-size: 12px; }
.fm-foot .btn:disabled { opacity: .4; }
@media (min-width: 900px) {
  .filter-menu { left: 24px; right: auto; width: 440px; top: 124px; }
  body.has-strip .filter-menu { top: 152px; }
}

/* ---------- Collection screen (search results with few hits) ---------- */
#col-screen {
  z-index: 4; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; transition: transform .55s var(--ease), opacity .4s;
}
#col-screen.enter { transform: translateY(40px); opacity: 0; }
.col-head { max-width: 1180px; margin: 0 auto; padding: calc(var(--safe-t) + 74px) 16px 18px; }
body.has-strip .col-head { padding-top: calc(var(--safe-t) + 100px); }
.col-head .tag {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px;
  background: #fff; border: 1px solid var(--hs-line); font-size: 12.5px; font-weight: 700;
}
.col-head .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.col-head h1 {
  margin: 14px 0 8px; padding-block: .04em; font: 900 clamp(36px, 11vw, 80px)/1 var(--hs-display);
  letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.col-head p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.45; color: #5d5750; text-wrap: pretty; }
.col-head .meta { margin-top: 12px; font-size: 12.5px; color: var(--hs-muted); }
.masonry { max-width: 1180px; margin: 0 auto; padding: 4px 10px 30px; display: flex; gap: 8px; align-items: flex-start; }
.masonry > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cc { position: relative; animation: rise .6s var(--ease) both; animation-delay: var(--dl, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.cc .im { position: relative; display: block; width: 100%; border-radius: 18px; background: var(--tile); overflow: hidden; }
.cc .im img { width: 100%; height: 100%; object-fit: contain; padding: 10% 7%; mix-blend-mode: multiply; opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
.cc .im img.ok { opacity: 1; }
.cc .im:hover img { transform: scale(1.04); }
.price {
  position: absolute; left: 8px; top: 8px; padding: 5px 9px; border-radius: 99px; background: #fff;
  font: 800 11.5px/1 var(--hs-display); letter-spacing: .01em; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.heart {
  position: absolute; right: 7px; bottom: 7px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .1); transition: transform .2s var(--ease);
}
.heart svg { width: 17px; height: 17px; }
.heart:active { transform: scale(.85); }
.heart.on { color: var(--ember-deep); }
.heart.on svg { animation: heartpop .45s var(--spring); }
@keyframes heartpop { 30% { transform: scale(1.35); } }
.cc .lbl { padding: 7px 4px 0; }
.cc .lbl small { display: block; font: 800 9.5px/1.2 var(--hs-display); letter-spacing: .1em; text-transform: uppercase; color: var(--hs-muted); }
.cc .lbl span { display: block; overflow-wrap: break-word; font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.more { max-width: 1180px; margin: 0 auto; padding: 10px 0 calc(var(--safe-b) + 110px); }
.more h2 { margin: 0 16px 12px; padding-block: .04em; font: 900 22px/1 var(--hs-display); text-transform: uppercase; letter-spacing: -.01em; }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 16px; }
.rail::-webkit-scrollbar { display: none; }
.cov { flex: none; width: 168px; scroll-snap-align: start; text-align: left; }
.cov .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--tile); }
.cov .grid span { background: var(--tile) center/78% no-repeat; background-blend-mode: multiply; }
.cov b {
  display: block; margin-top: 8px; font: 900 13.5px/1.08 var(--hs-display); text-transform: uppercase;
  overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; text-wrap: balance;
}
@media (min-width: 900px) {
  .col-head { padding: 100px 24px 24px; }
  .masonry { padding: 4px 24px 40px; gap: 12px; }
  .masonry > div { gap: 12px; }
  .more h2 { margin-left: 24px; padding-left: 24px; }
  .rail { padding-left: 24px; margin-left: 0; scroll-padding: 24px; }
  .cov { width: 200px; }
}

/* Gift card block (collection screen) */
.gc-wrap { max-width: 1180px; margin: 0 auto; padding: 6px 10px 18px; }
.gcard { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 24px; background: var(--ink); color: #fff; }
.gcard.first { box-shadow: 0 0 0 3px var(--ember), 0 16px 40px rgba(var(--glow), .3); }
.gc-visual { aspect-ratio: 1.6; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, var(--ember), var(--ember-deep)); color: #1a0f08; transform: rotate(-4deg); box-shadow: 0 12px 24px rgba(0, 0, 0, .3); margin-top: 4px; }
.gc-visual img { width: 52%; border-radius: 3px; }
.gc-visual span { font: 900 9px/1 var(--hs-display); text-transform: uppercase; }
.gc-copy h3 { margin: 0 0 6px; padding-block: .04em; font: 900 20px/1 var(--hs-display); text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }
.gc-copy p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.late-tag { display: block; margin-bottom: 6px; font: 800 10.5px/1.2 var(--hs-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ember); }
@media (min-width: 700px) { .gcard { grid-template-columns: 220px 1fr; align-items: center; padding: 26px; } .gc-visual { padding: 14px; border-radius: 16px; } .gc-visual span { font-size: 13px; } .gc-wrap { padding: 6px 24px 24px; } }
/* Phones: visual on top, copy full width (no squeezed, hyphenated headline). */
@media (max-width: 559px) {
  .gcard { grid-template-columns: 1fr; }
  .gcard .gc-visual { width: 132px; padding: 10px; border-radius: 12px; }
  .gc-copy h3 { hyphens: manual; -webkit-hyphens: manual; }
}

/* ---------- Buttons ---------- */
.btn {
  flex: 1; height: 54px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 900 13.5px/1 var(--hs-display); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.pri { background: var(--ember); color: #1a0f08; box-shadow: 0 10px 24px rgba(248, 135, 73, .35); }
.btn.pri:hover { background: #ff9a60; }
.btn.sec { background: var(--ink); color: #fff; flex: 0 0 auto; padding: 0 20px; }
.btn.sec.on { background: #fff; color: var(--ember-deep); box-shadow: 0 0 0 1.5px var(--ember) inset; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1.5px var(--hs-line) inset; }
.btn.light { background: #fff; color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; color: inherit; }
.lab { margin: 18px 0 8px; font: 800 11px/1 var(--hs-display); letter-spacing: .14em; text-transform: uppercase; color: var(--hs-muted); }

/* ---------- Sheets (saved list, shared list) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(8, 5, 3, .55); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: calc(100dvh - var(--safe-t) - 28px);
  margin: 0 auto; width: 100%; max-width: 600px;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .4);
  transform: translateY(105%); transition: transform .5s cubic-bezier(.2, .9, .25, 1);
}
.sheet.on { transform: translateY(var(--drag, 0px)); }
.sheet.dragging { transition: none; }
.sheet .grab { flex: none; padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet .grab::before { content: ""; width: 40px; height: 5px; border-radius: 9px; background: rgba(38, 38, 38, .18); }
.sheet .body { overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px calc(var(--safe-b) + 24px); }
.sheet .x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(38, 38, 38, .07); z-index: 2; }
.sheet .x svg { width: 18px; height: 18px; }
.sheet h2 {
  margin: 6px 0 4px; padding: .04em 40px .04em 0; font: 900 28px/1 var(--hs-display); text-transform: uppercase; letter-spacing: -.015em;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance;
}
.sheet .lede { margin: 0 0 18px; color: #6b655e; font-size: 14.5px; line-height: 1.45; }
@media (min-width: 700px) {
  .sheet { bottom: 50%; border-radius: 28px; transform: translateY(calc(50% + 40px)) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s; max-height: min(86dvh, 820px); }
  .sheet.on { transform: translateY(50%); opacity: 1; }
  .sheet .grab { visibility: hidden; height: 14px; padding: 0; }
}
.cta-row { display: flex; gap: 10px; margin-top: 22px; position: sticky; bottom: 0; padding: 12px 0 2px; background: linear-gradient(180deg, transparent, var(--paper) 30%); }
.lgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .lgrid { grid-template-columns: repeat(3, 1fr); } }
.litem { position: relative; min-width: 0; }
.litem .im { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--tile); overflow: hidden; }
.litem .im img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.litem .heart { top: 7px; bottom: auto; }
.litem small { display: block; margin-top: 6px; font: 800 9.5px/1.2 var(--hs-display); letter-spacing: .1em; text-transform: uppercase; color: var(--hs-muted); }
.litem span { display: block; overflow-wrap: break-word; font-size: 12.5px; line-height: 1.3; }
.litem b { display: block; margin-top: 3px; font: 900 14px/1 var(--hs-display); }
.litem .shop { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ember-deep); text-decoration: none; }
.litem .shop svg { width: 12px; height: 12px; }
.lsum { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 0; font-size: 14px; color: #6b655e; }
.lsum b { font: 900 20px/1 var(--hs-display); color: var(--ink); }
.share-url { width: 100%; margin-top: 10px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--hs-line); font-size: 13px; }
.empty { text-align: center; padding: 26px 10px 10px; color: #6b655e; font-size: 14.5px; line-height: 1.5; }
.empty .big { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #fff; color: var(--ember); }
.empty .big svg { width: 28px; height: 28px; }

/* ---------- Search ---------- */
.search-panel { position: fixed; z-index: 52; left: 0; right: 0; top: 0; padding: calc(var(--safe-t) + 12px) 14px 16px; background: linear-gradient(180deg, rgba(13, 10, 8, .96) 70%, rgba(13, 10, 8, 0)); transform: translateY(-110%); transition: transform .45s var(--ease); }
.search-panel.on { transform: none; }
.search-box { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line); }
.search-box svg { width: 20px; height: 20px; color: var(--ember); flex: none; }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff; font: 700 17px/1 var(--hs-body); }
.search-box input::placeholder { color: var(--txt-dim); font-weight: 500; }
.search-box button { height: 40px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--txt-dim); }
.search-sugg { max-width: 640px; margin: 12px auto 0; display: flex; flex-wrap: wrap; gap: 7px; }
.search-sugg .chip { height: 34px; font-size: 13px; padding: 0 13px; }

/* ---------- Toast, loading ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--safe-b) + 84px); transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 99px; background: #fff; color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .35s var(--spring); pointer-events: none;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast button { height: 34px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }
body[data-screen="globe"] .toast { bottom: calc(var(--safe-b) + 140px); }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--hs-muted); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(248, 135, 73, .25); border-top-color: var(--ember); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Focus view: centre cap + rings of similar caps ---------- */
.focus { position: fixed; inset: 0; z-index: 45; opacity: 0; transition: opacity .3s var(--ease); }
.focus.on { opacity: 1; }
/* Static backdrop (the wall is paused while the focus view is open), so the blur is cheap. */
.f-bg { position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 32%, rgba(var(--glow), .28), transparent 70%), rgba(10, 7, 5, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.f-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.f-plane { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: transform .45s var(--ease); }
.f-c {
  position: absolute; border-radius: 26%; background: #fff; overflow: hidden; z-index: 3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .5), 0 0 90px rgba(var(--glow), .35);
  transition: transform .55s cubic-bezier(.2, .9, .25, 1);
}
.f-c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 9%; -webkit-user-drag: none; }
.f-c img.hi { opacity: 0; transition: opacity .3s; }
.f-c img.hi.ok { opacity: 1; }
.f-n {
  position: absolute; border-radius: 24%; background: #fff; overflow: hidden; opacity: var(--o); z-index: 2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4); animation: fpop .55s var(--spring) both; animation-delay: var(--dl, 0ms);
  transition: opacity .25s, transform .25s var(--ease);
}
.f-n:hover { opacity: 1; transform: scale(1.06); }
.f-n.out { animation: none; opacity: 0; transform: scale(.6); }
.f-n img { width: 100%; height: 100%; object-fit: contain; padding: 9%; opacity: 0; transition: opacity .3s; -webkit-user-drag: none; pointer-events: none; }
.f-n img.ok { opacity: 1; }
.f-n .pp { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 3px 6px; border-radius: 99px; background: rgba(20, 14, 10, .82); color: #fff; font: 800 9px/1 var(--hs-display); white-space: nowrap; pointer-events: none; }
.f-c.photo, .f-n.photo { background: #222; }
@keyframes fpop { from { opacity: 0; transform: scale(.3); } }
.f-x { position: absolute; z-index: 6; right: 14px; top: calc(var(--safe-t) + 12px); width: 42px; height: 42px; background: rgba(255, 255, 255, .14); }
body.has-strip .focus .f-x { top: calc(var(--safe-t) + 40px); }
/* Phones: the product card is pinned to the bottom; desktop: beside the inner ring (left set by the app). */
.f-detail {
  position: absolute; z-index: 5; left: 10px; right: 10px; bottom: calc(var(--safe-b, 0px) + 12px); max-width: 520px; margin: 0 auto;
  padding: 14px 16px 12px; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 -10px 50px rgba(0, 0, 0, .45);
  transform: translateY(30px); opacity: 0; transition: transform .45s var(--ease) .05s, opacity .3s .05s;
}
.focus.on .f-detail { transform: none; opacity: 1; }
.fd-top { display: flex; align-items: flex-start; gap: 12px; }
.fd-txt { flex: 1; min-width: 0; }
.fd-txt small { display: block; font: 800 10px/1.2 var(--hs-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ember-deep); }
.fd-txt h2 {
  margin: 3px 0 0; padding-block: .04em; font: 900 16px/1 var(--hs-display); text-transform: uppercase;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance;
}
.fd-price { font: 900 22px/1 var(--hs-display); white-space: nowrap; }
.fd-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; min-height: 28px; }
.fd-sizes .lab { margin: 0 4px 0 0; }
.fd-sizes .sz { padding: 5px 9px; border-radius: 9px; background: #fff; border: 1px solid var(--hs-line); font-size: 12px; font-weight: 700; }
.fd-sizes.fitted .sz { font-size: 13px; padding: 6px 10px; }
.fd-cta { display: flex; gap: 8px; margin-top: 12px; }
.fd-cta .btn { height: 48px; }
.fd-cta .btn.sec { flex: 0 0 48px; padding: 0; }
.fd-cta .btn.pri { flex: 1; min-width: 0; font-size: 12px; }
/* The ring label is a quiet caption, not a control. */
.fd-sim { margin: 10px 0 0; text-align: center; font: 700 10px/1 var(--hs-display); letter-spacing: .16em; text-transform: uppercase; color: var(--hs-muted); pointer-events: none; }
@media (min-width: 900px) {
  .f-detail { left: auto; right: auto; top: 50%; bottom: auto; width: min(380px, 30vw); transform: translate(30px, -50%); padding: 22px; }
  .focus.on .f-detail { transform: translate(0, -50%); }
  .fd-txt h2 { font-size: 20px; }
  .fd-top { flex-direction: column; }
  .fd-price { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .rec-menu, .loc-menu { animation: none; }
}

/* Panning performance: no soft drop shadows on wall tiles (hundreds of blurred shadows are costly to
   paint on phones and barely visible on the dark wall); keep the thin inset rings. */
.wall .wt { box-shadow: none; }
.wall .wt.wc.v2 { box-shadow: 0 0 0 1.5px rgba(248, 135, 73, .55) inset; }
.wall .wt.wc.ds { box-shadow: 0 0 0 1px rgba(var(--glow), .5) inset; }
@media (hover: none) { .wt:hover .in { transform: none; } }
.wall .wt .pp { box-shadow: none; }

.strip[hidden] { display: none; }
