/* WearSlabs preview: shared styles */
@font-face { font-family: 'PokeSolid'; src: url('../fonts/pokemon-solid.ttf') format('truetype'); font-display: swap; }

:root {
  --ink: #07070a;
  --ink-2: #0e0e13;
  --bone: #f3f1ea;
  --muted: rgba(243, 241, 234, .62);
  --faint: rgba(243, 241, 234, .56);
  --line: rgba(243, 241, 234, .12);
  --glass: rgba(14, 14, 19, .55);
  --label-red: #e1252f;   /* hint of a grading label, never the logo */
  --gold: #e8c26a;
  --holo: linear-gradient(115deg, #ff5fa2, #ffcf5c 22%, #5cffb1 42%, #5cc8ff 62%, #a77bff 80%, #ff5fa2);
  --accent: #8fb4ff;
  --deep: #07070a;
  --gutter: 16px;
  --radius: 18px;
  --display: 'Archivo', system-ui, sans-serif;
  --tech: 'Chakra Petch', ui-monospace, monospace;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body { background: var(--ink); color: var(--bone); font: 400 16px/1.5 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.display { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; line-height: .88; }
.tech { font-family: var(--tech); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.outline { color: transparent; -webkit-text-stroke: 1.5px rgba(243, 241, 234, .55); }
.holo-text { background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holoShift 6s linear infinite; }
@keyframes holoShift { to { background-position: 200% 0; } }

/* announcement */
.ann { position: relative; z-index: 40; background: #000; border-bottom: 1px solid var(--line); overflow: hidden; height: 32px; display: flex; align-items: center; }
.ann__track { display: flex; width: max-content; white-space: nowrap; animation: annLoop var(--ann-dur, 30s) linear infinite; will-change: transform; }
.ann__set { display: flex; align-items: center; gap: 22px; padding-right: 22px; flex: none; }
.ann__set span { color: var(--muted); }
.ann__set b { color: var(--bone); font-weight: 600; }
.ann__set i { font-style: normal; font-size: 7px; color: var(--muted); opacity: .6; }
.ann:hover .ann__track { animation-play-state: paused; }
@keyframes annLoop { to { transform: translateX(calc(-1 * var(--ann-set, 50%))); } }
@media (prefers-reduced-motion: reduce) { .ann__track { animation: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; height: 60px; display: flex; align-items: center; transition: background .3s, backdrop-filter .3s; }
.hdr.is-solid { background: rgba(7, 7, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hdr__logo img { height: 24px; width: auto; }
.hdr__nav { display: none; gap: 28px; }
.hdr__nav a { color: var(--muted); transition: color .2s; }
.hdr__nav a:hover { color: var(--bone); }
.hdr__right { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--bone); color: var(--ink); font: 700 10px/16px var(--body); text-align: center; padding: 0 4px; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.cart-count.on { transform: scale(1); }
@media (min-width: 900px) { .hdr__nav { display: flex; } .menu-btn { display: none; } }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(7, 7, 10, .96); backdrop-filter: blur(18px); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); clip-path: circle(0 at calc(100% - 36px) 28px); visibility: hidden; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s; }
.menu.open { clip-path: circle(150% at calc(100% - 36px) 28px); visibility: visible; transition-delay: 0s; }
.menu a { font-size: clamp(40px, 13vw, 72px); padding: 6px 0; }
.menu__close { position: absolute; top: 10px; right: var(--gutter); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 700 15px/1 var(--body); letter-spacing: .02em; position: relative; overflow: hidden; isolation: isolate; transition: transform .2s; }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid::after { content: ''; position: absolute; inset: 0; background: var(--holo); background-size: 200% 100%; opacity: 0; z-index: -1; transition: opacity .3s; animation: holoShift 3s linear infinite; }
.btn--solid:hover::after { opacity: .55; }
.btn--ghost { border: 1px solid rgba(243, 241, 234, .3); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--block { width: 100%; }

/* section scaffolding */
section { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.eyebrow::before { content: ''; width: 18px; height: 6px; background: var(--label-red); border-radius: 1px; }
.sec-title { font-size: clamp(40px, 11vw, 112px); margin: 14px 0 0; }
.lede { color: var(--muted); max-width: 520px; font-size: 17px; margin-top: 16px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* split letters (hellohello-style) */
.split .ch { display: inline-block; transform: translateY(110%) rotate(8deg); opacity: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.split.in .ch { transform: none; opacity: 1; }
.split .mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .06em 0; }

/* ---------- holo slab (own effect, pointer + tilt driven) ---------- */
.holo { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --o: 0; position: relative; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.holo.live { transition: transform .08s linear; }
.holo__img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.holo__shine, .holo__glare { position: absolute; inset: 0; border-radius: 6px; pointer-events: none; }
.holo__shine {
  background:
    repeating-linear-gradient(110deg, rgba(255, 95, 162, .55) 0%, rgba(255, 207, 92, .5) 6%, rgba(92, 255, 177, .5) 12%, rgba(92, 200, 255, .55) 18%, rgba(167, 123, 255, .55) 24%, rgba(255, 95, 162, .55) 30%),
    repeating-linear-gradient(-30deg, rgba(255,255,255,.0) 0 3px, rgba(255,255,255,.12) 3px 4px);
  background-size: 260% 260%, 100% 100%;
  background-position: var(--mx) var(--my), 0 0;
  mix-blend-mode: color-dodge; opacity: calc(var(--o) * .55); filter: saturate(1.3) contrast(1.1);
  transition: opacity .4s;
}
.holo__glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, transparent 60%); mix-blend-mode: overlay; opacity: calc(.25 + var(--o) * .6); }

/* tilt permission chip (iOS) */
.tilt-chip { position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 45; background: rgba(14, 14, 19, .8); border: 1px solid var(--line); backdrop-filter: blur(10px); border-radius: 999px; padding: 10px 16px; display: none; align-items: center; gap: 8px; }
.tilt-chip.show { display: inline-flex; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 120px; color: var(--muted); font-size: 14px; }
.ftr__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.ftr__brand { grid-column: 1 / -1; }
.ftr__brand img { height: 44px; width: auto; margin-bottom: 12px; }
.ftr h4 { color: var(--bone); margin-bottom: 10px; }
.ftr li { list-style: none; margin: 6px 0; }
.ftr__legal { margin-top: 40px; font-size: 12px; color: var(--muted); line-height: 1.6; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .ftr__brand { grid-column: auto; } }

/* sticky bottom bar (mobile) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(7, 7, 10, .95) 60%, transparent); transform: translateY(110%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.sticky.on { transform: none; }
@media (min-width: 900px) { .sticky { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- cart drawer ---------- */
html.cart-lock { overflow: hidden; }
.cart-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(420px, 100vw); display: flex; flex-direction: column; background: #0c0c11; border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .45s cubic-bezier(.2,.8,.2,1); padding-top: env(safe-area-inset-top, 0px); }
.cart.open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 4px 16px; }
.cart__head h2 { font-size: 24px; }
/* rewards: slim bar that starts empty; dots at the free-shipping, 2nd and 3rd hoodie goals */
.perks { padding: 4px 16px 10px; border-bottom: 1px solid var(--line); }
.perks__msg { font-size: 13px; color: var(--muted); }
.perks__msg b { color: var(--bone); }
.perks__track { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin: 12px 8px 24px 0; }
.perks__fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--holo); transition: width .5s; }
.pk { position: absolute; left: var(--at); top: 50%; translate: -100% -50%; display: grid; justify-items: end; }
.pk i { width: 12px; height: 12px; border-radius: 50%; background: #0c0c11; border: 2px solid rgba(255,255,255,.25); transition: all .3s; }
.pk em { position: absolute; top: 15px; right: -4px; font: 600 10px/1 var(--body); font-style: normal; color: var(--faint); white-space: nowrap; }
.pk.on i { background: #7dffb3; border-color: #7dffb3; }
.pk.on em { color: #7dffb3; }
/* items + suggestions scroll; header, rewards and totals stay put */
.cart__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 16px; display: grid; gap: 14px; align-content: start; }
.cart__list { list-style: none; display: grid; gap: 8px; }
.ci { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); animation: ciIn .4s cubic-bezier(.2,.8,.2,1); }
@keyframes ciIn { from { opacity: 0; transform: translateX(20px); } }
.ci__img { border-radius: 8px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--bg) 70%, #fff 8%), #0b0b10); display: grid; place-items: center; aspect-ratio: 1 / 1.05; overflow: hidden; align-self: start; }
.ci__img img { width: 100%; }
.ci__body { min-width: 0; display: grid; gap: 3px; align-content: start; }
.ci__name { font-weight: 700; font-size: 13px; line-height: 1.25; }
.ci__meta { font-size: 11px; color: var(--muted); line-height: 1.35; }
.ci__meta span + span::before { content: ' · '; }
.ci__row { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.ci__row b { margin-left: auto; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 28px; height: 28px; font-size: 15px; }
.qty span { min-width: 16px; text-align: center; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ci__rm { font-size: 11px; color: var(--faint); text-decoration: underline; }
.cart__up > p { color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.cart__upRail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.up { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); font-size: 10px; line-height: 1.2; }
.up:hover { border-color: rgba(255,255,255,.3); }
.up img { width: 100%; aspect-ratio: 440 / 462; object-fit: contain; }
.up b { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.up span { color: #7dffb3; }
.cart__empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; color: var(--muted); }
.cart__empty .display { font-size: 28px; color: var(--bone); }
.cart.is-empty .cart__empty { display: flex; }
.cart.is-empty .cart__scroll, .cart.is-empty .cart__foot, .cart.is-empty .perks { display: none; }
.cart__foot { border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.cart__lines { display: grid; gap: 2px; }
.cart__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cart__row--deal { color: #7dffb3; }
.cart__go { height: 50px; }
.cart__trust { text-align: center; color: var(--faint); font-size: 9px; }
.cart__preview { color: var(--gold); font-size: 10px; text-align: center; }

/* inside the GiftBinder app: never show its header or footer around WearSlabs pages (e.g. wearslabs.com/) */
body:has(> .ws-root) > header, body:has(> .ws-root) > footer { display: none !important; }
