/* Fonts: Silly's own Poppins files (same as the rest of the site) */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap;
  src: url("/public/fonts/poppins/woff2/poppins-light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url("/public/fonts/poppins/woff2/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url("/public/fonts/poppins/woff2/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap;
  src: url("/public/fonts/poppins/woff2/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url("/public/fonts/poppins/woff2/poppins-bold.woff2") format("woff2"); }

/* =========================================================
   Silly — Shop page
   Standalone stylesheet so it doesn't touch style.css
   ========================================================= */

:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --light: #e8e8e2;   /* all 'white' text */
  --line: #cfcfcf;
  --muted: #555;
  --grey-bg: #efefeb;
  --media-bg: #8e8e8e;
  --magenta: #892847;
  --magenta-dark: #6d1f38;
  --sale: #e3120b;
  --green: #2f4a33;
  --yellow: #f2c21b;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --banner-h: 26px;
  --cols: repeat(4, minmax(0, 1fr));   /* product + features share the same 4 columns */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--banner-h)); }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
body.no-scroll { overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
/* ---------- Promo bar (top, full width) ---------- */
.promo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 55;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  background: var(--magenta); color: var(--light);
  font-size: 11.5px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.promo-bar p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.promo-bar strong { font-weight: 700; }
.pb-dot { opacity: .6; }
.promo-bar .pb-code {
  margin: 0; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; font-weight: 700; letter-spacing: inherit; text-transform: inherit; cursor: copy;
}

.site-header {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 30px;
  color: var(--light);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--black);
  border-bottom: 1px solid var(--line);
}
.site-header.is-solid .header-logo img { filter: invert(1); }
.header-left {
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-decoration: none;
}
.header-left sup { font-size: 7px; margin-right: 2px; vertical-align: 4px; }
.header-logo img { width: 40px; height: auto; }
.cart-trigger {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 6px 0;
  font-size: 13px; letter-spacing: .08em;
}
.cart-count {
  position: relative;
  min-width: 28px; height: 28px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border: 1px solid currentColor; border-radius: 4px;
  font-size: 15px; font-weight: 500;
}
.cart-count::before {   /* the little line above the box in the layout */
  content: ""; position: absolute; top: -7px; left: 4px; right: 4px;
  border-top: 1px solid currentColor;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px; max-height: 1000px;
  overflow: hidden;
  background: var(--green);
  color: var(--light);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 40%),
              linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,0) 18%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 30px 70px 52px;
}
.hero-title {
  margin: 0; font-size: clamp(16px, 1.55vw, 24px);
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.45;
}
.hero-title span { display: block; }
.hero-title .light { font-weight: 300; }
.hero-title .bold { font-weight: 700; }

.btn-outline {
  flex-shrink: 0;
  display: inline-block;
  padding: 9px 26px;
  border: 1px solid var(--light); border-radius: 3px;
  font-size: clamp(14px, 1.3vw, 20px); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--light); color: var(--black); }

/* ---------- Product ---------- */
.product {
  display: grid;
  grid-template-columns: var(--cols);
  border-bottom: 1px solid var(--line);
}
.product-aside { grid-column: 1; }
.product-media { grid-column: 2 / span 2; }
.product-info  { grid-column: 4; }
.product-col { min-width: 0; }
.product-aside {
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 30px 20px;
}
.made-in {
  margin: 0; text-align: right;
  font-size: 12px; font-weight: 500; text-transform: uppercase; line-height: 1.7;
}
.product-media {
  border-right: 1px solid var(--line);
  padding: 10px;
}
.media-main {
  position: relative;
  background: var(--media-bg);
  aspect-ratio: 3 / 4;
  /* fits the screen height and sits centred in its two columns */
  width: min(100%, calc((100vh - var(--header-h) - var(--banner-h) - 120px) * 3 / 4));
  margin: 0 auto;
  overflow: hidden;
  cursor: zoom-in;
}
.media-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .25s, transform .25s ease-out;
  transform-origin: 50% 50%;
}
@media (hover: hover) and (pointer: fine) {
  .media-main.is-zooming img { transform: scale(1.6); transition: opacity .25s; }
}
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(232,232,226,.9); color: var(--black);
  font-size: 11px; font-weight: 500; pointer-events: none;
  transition: opacity .2s;
}
.zoom-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.media-main.is-zooming .zoom-hint { opacity: 0; }
.media-main img.is-fading { opacity: 0; }
.media-thumbs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.media-thumbs:has(.thumb:only-child) { display: none; }
.thumb {
  width: 64px; aspect-ratio: 3/4; padding: 0;
  border: 1px solid transparent; background: var(--media-bg);
  opacity: .6; transition: opacity .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--black); }

.product-info {
  padding: 0 34px 40px;
  display: flex; flex-direction: column; justify-content: center;
  position: sticky; top: calc(var(--header-h) + var(--banner-h)); align-self: start;
  min-height: calc(100vh - var(--header-h) - var(--banner-h));
  max-width: 420px;
}
.tag {
  align-self: flex-start;
  font-size: 9px; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid var(--black); border-radius: 3px; padding: 1px 16px;
}
.product-title {
  margin: 12px 0 8px;
  font-size: 22px; font-weight: 700; line-height: 1.15; text-transform: uppercase;
}
.price { margin: 0; font-size: 15px; font-weight: 600; }
.price-now { color: var(--sale); }
.price-was { color: var(--black); margin-left: 4px; }
.color {
  margin: 36px 0 0; display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
}
.swatch {
  width: 18px; height: 18px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green) 50%, var(--yellow) 50%);
}
.desc { margin: 26px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 300px; }

.sizes {
  margin: 34px 0 0; padding: 0; border: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.size-btn {
  min-width: 46px; height: 32px; padding: 0 12px;
  border: 1px solid var(--black); border-radius: 999px;
  background: var(--white); font-size: 13px; font-weight: 500;
  transition: background .2s, color .2s;
}
.size-btn:hover { background: #f2f2f2; }
.size-btn[aria-pressed="true"] { background: var(--black); color: var(--light); }
.size-btn:disabled {
  color: #aaa; border-color: #ccc; cursor: not-allowed;
  background: linear-gradient(to top left, transparent calc(50% - .5px), #ccc, transparent calc(50% + .5px));
}
.size-note { width: 100%; margin: 6px 0 0; font-size: 11px; color: var(--sale); }
.size-error { margin: 8px 0 0; font-size: 12px; color: var(--sale); }
.sizes.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.btn-primary {
  width: 100%; height: 38px; margin-top: 46px;
  border: 0; border-radius: 999px;
  background: var(--magenta); color: var(--light);
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--magenta-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-primary.is-added { background: var(--green); }

.accordion { margin-top: 40px; }
.accordion details { border-bottom: 1px solid transparent; }
.accordion summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 12px; font-weight: 600; cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 16px; font-weight: 700; transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion ul, .accordion p { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.accordion ul { padding-left: 18px; }
.spec-list { margin: 0 0 6px; display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; font-size: 12px; line-height: 1.55; }
.spec-list dt { font-weight: 700; padding: 8px 0; border-bottom: 1px solid #e5e5e5; }
.spec-list dd { margin: 0; color: var(--muted); padding: 8px 0; border-bottom: 1px solid #e5e5e5; }
.spec-list dt:last-of-type, .spec-list dd:last-of-type { border-bottom: 0; }
@media (max-width: 420px) {
  .spec-list { grid-template-columns: 1fr; }
  .spec-list dt { border-bottom: 0; padding-bottom: 0; }
}
.size-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.size-table th, .size-table td { padding: 6px 4px; border-bottom: 1px solid #e5e5e5; text-align: left; }

/* ---------- Features ---------- */
.features {
  display: grid; grid-template-columns: var(--cols);
  background: var(--grey-bg);
  border-bottom: 1px solid var(--line);
}
.feature {
  padding: 60px 30px; text-align: center;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: 0; }
.feature svg {
  width: 22px; height: 22px; fill: none; stroke: var(--black); stroke-width: 1.3;
  stroke-linejoin: round; stroke-linecap: round;
}
.feature h3 { margin: 12px 0 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.feature p { margin: 0 auto; font-size: 12px; line-height: 1.45; color: var(--muted); max-width: 290px; }
.feature a { text-decoration: none; }
.feature a:hover { text-decoration: underline; }

/* ---------- Spotted gallery + footer share one background ---------- */
.silly-end {
  background:
    radial-gradient(45% 40% at 12% 72%, #f8a9d2 0%, rgba(248,169,210,0) 70%),
    radial-gradient(40% 35% at 78% 18%, #f9c3ef 0%, rgba(249,195,239,0) 70%),
    radial-gradient(45% 40% at 55% 95%, #ffc56b 0%, rgba(255,197,107,0) 70%),
    radial-gradient(35% 30% at 20% 8%, #ffd9b0 0%, rgba(255,217,176,0) 70%),
    #fde6d6;
}
.spotted-title {
  border: 0;
  margin: 0; padding: 26px 20px;
  text-align: center; font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em;
}
.spotted-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 20px 20px 0;
}
.spotted-grid figure {
  margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(0,0,0,.06);
}
.spotted-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.spotted-grid figure:hover img { transform: scale(1.04); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  padding: 70px 70px 40px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
}
.footer-logo {
  display: block; width: clamp(200px, 28vw, 400px); height: auto;
}
.footer-links {
  list-style: none; margin: 0 8% 0 0; padding: 0;
  font-size: 19px; text-transform: uppercase; line-height: 1.75;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-top: 70px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 48px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Sticky mobile bar (hidden on desktop) ---------- */
.sticky-buy { display: none; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .3s;
}
.cart-overlay.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  outline: none;
}
.cart-drawer.is-open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.cart-head h2 span { font-weight: 400; color: var(--muted); }
.cart-close { background: none; border: 0; font-size: 18px; padding: 4px 8px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-item {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid #eee;
}
.cart-item img { width: 76px; aspect-ratio: 3/4; object-fit: cover; background: var(--media-bg); }
.ci-name { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.ci-meta { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.ci-price { font-size: 13px; font-weight: 600; text-align: right; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--black); border-radius: 999px; height: 28px;
}
.qty button { width: 28px; height: 100%; background: none; border: 0; font-size: 15px; }
.qty button:disabled { color: #bbb; cursor: not-allowed; }
.qty span { min-width: 18px; text-align: center; font-size: 13px; }
.ci-remove {
  display: block; margin-top: 10px; margin-left: auto;
  background: none; border: 0; padding: 0;
  font-size: 11px; text-decoration: underline; color: var(--muted);
}
.cart-empty { text-align: center; padding: 60px 10px; }
.cart-empty p { margin: 0 0 6px; font-size: 14px; }
.cart-empty small { color: var(--muted); }
.cart-empty .btn-primary { margin-top: 26px; }
.cart-foot { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-foot[hidden] { display: none; }
.cart-row { display: flex; justify-content: space-between; font-size: 15px; text-transform: uppercase; }
.promo { margin: 10px 0 0; font-size: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.promo-pct {
  padding: 2px 8px; border-radius: 4px; background: var(--sale); color: #fff; font-weight: 700; font-size: 12px;
}
.free-ship {
  margin: 8px 0 0; text-align: center;
  font-size: 10px; letter-spacing: .04em; color: var(--muted);
}
.promo strong { color: var(--sale); }
.promo .free { color: var(--green); }
#cartShipping.is-free { color: var(--green); }
.promo-code {
  padding: 1px 8px; border: 1px dashed var(--black); border-radius: 4px; background: #fff7d6;
  font: inherit; font-weight: 600; letter-spacing: .04em; cursor: copy;
}
.ci-was { color: var(--muted); font-weight: 400; margin-right: 2px; }
.code-form { display: flex; gap: 8px; margin: 0 0 14px; }
.code-form[hidden] { display: none; }
.code-form input {
  flex: 1; min-width: 0; height: 36px; padding: 0 14px;
  border: 1px solid var(--black); border-radius: 999px; font: inherit; font-size: 13px; text-transform: uppercase;
}
.code-form button {
  height: 36px; padding: 0 16px; border: 1px solid var(--black); border-radius: 999px;
  background: var(--black); color: var(--light); font-size: 12px; font-weight: 600; text-transform: uppercase;
}
.code-form button:disabled { opacity: .5; }
.code-msg { margin: -8px 0 12px; font-size: 12px; color: var(--sale); }
.cart-row + .cart-row { margin-top: 4px; }
.cart-row[hidden] { display: none; }
.cart-disc { font-size: 13px; color: var(--sale); text-transform: none; }
.code-remove { border: 0; background: none; padding: 0 4px; font-size: 11px; color: var(--muted); }
.cart-ship { margin-top: 8px; align-items: center; gap: 10px; font-size: 13px; text-transform: none; }
.cart-ship label { white-space: nowrap; }
.cart-ship select {
  flex: 1; min-width: 0; height: 32px; padding: 0 28px 0 10px;
  border: 1px solid var(--black); border-radius: 999px; background: var(--white);
  font: inherit; font-size: 13px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat;
}
.cart-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e5e5e5; font-size: 16px; }
.cart-total > span { font-weight: 700; }
.paypal-buttons { margin-top: 14px; }
.cart-note { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.cart-error { margin: 10px 0 0; font-size: 12px; color: var(--sale); }
.cart-foot .btn-primary { margin-top: 16px; height: 44px; }
.pay-or {
  display: flex; align-items: center; gap: 10px; margin: 12px 0;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
}
.pay-or::before, .pay-or::after { content: ""; flex: 1; border-top: 1px solid #e5e5e5; }
.pay-or[hidden] { display: none; }
.paypal-buttons { min-height: 0; }
.paypal-buttons.is-busy { opacity: .5; pointer-events: none; }
.cart-terms { margin: 6px 0 0; text-align: center; font-size: 10px; color: var(--muted); }
.cart-terms a { color: inherit; }
.accordion p a { color: inherit; }
.cart-secure { margin: 10px 0 0; text-align: center; font-size: 10px; color: var(--muted); }

/* ---------- Lightbox (full-screen zoom) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(232, 232, 226, .98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}
.lb-stage img {
  max-width: 92vw; max-height: 88vh; width: auto; height: auto;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  cursor: zoom-in;
  transition: transform .25s var(--ease);
  will-change: transform;
}
.lightbox.is-zoomed .lb-stage img { cursor: grab; transition: none; }
.lightbox.is-zoomed.is-dragging .lb-stage img { cursor: grabbing; }
.lightbox.is-animating .lb-stage img { transition: transform .25s var(--ease); }
.lb-btn {
  position: absolute; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--light); border: 0;
  font-size: 18px; line-height: 1;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .1em;
}
.lb-help { position: absolute; top: 30px; left: 24px; font-size: 11px; color: var(--muted); }
@media (max-width: 720px) {
  .lb-prev, .lb-next { display: none; }   /* swipe instead */
  .lb-stage img { max-width: 100vw; max-height: 80vh; }
  .lb-help { left: 18px; top: 32px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--black); color: var(--light);
  padding: 10px 18px; border-radius: 999px; font-size: 13px;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   TABLET
   ========================================================= */
@media (max-width: 1100px) {
  .product { grid-template-columns: 1.4fr 1fr; }
  .product-media { grid-column: 1; }
  .product-info { grid-column: 2; }
  .product-aside { display: none; }
  .product-info { padding: 40px 28px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-footer { padding: 50px 40px 36px; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 720px) {
  :root { --header-h: 56px; --banner-h: 32px; }
  .promo-bar { font-size: 11.5px; letter-spacing: .04em; }
  .promo-bar p { gap: 5px; }
  .pb-wide { display: none; }
  .site-header { padding: 0 18px; }
  .header-left { font-size: 11px; }
  .header-logo img { width: 32px; }
  .cart-label { display: none; }

  .hero { height: 100vh; height: 100svh; min-height: 620px; }
  .hero-content {
    flex-direction: column; align-items: center; text-align: center; gap: 20px;
    padding: 0 20px 44px;
  }
  .hero-title { font-size: 15px; }
  .btn-outline { padding: 10px 22px; font-size: 14px; }

  .product { display: flex; flex-direction: column; border-bottom: 0; }
  .product-aside { order: 3; }
  .product-media { border-right: 0; padding: 0; }
  .media-main { aspect-ratio: 4 / 5; width: 100%; }
  .media-thumbs { padding: 0 16px; gap: 8px; }
  .thumb { width: 56px; }
  .product-info {
    position: static; min-height: 0; max-width: none;
    padding: 28px 20px 36px;
  }
  .product-title { font-size: 30px; }
  .tag { font-size: 11px; padding: 3px 18px; }
  .color { margin-top: 22px; }
  .desc { margin-top: 16px; max-width: none; font-size: 13px; }
  .sizes { margin-top: 24px; }
  .size-btn { min-width: 56px; height: 40px; font-size: 14px; }
  .btn-primary { height: 46px; margin-top: 24px; }
  .accordion { margin-top: 26px; border-top: 1px solid #e5e5e5; }
  .accordion details { border-bottom: 1px solid #e5e5e5; }
  .accordion summary { padding: 14px 0; font-size: 13px; }

  /* the "Design by / Made in" note moves under the product, small */
  .product-aside {
    display: flex; justify-content: center; border: 0;
    border-top: 1px solid var(--line); padding: 18px 20px;
  }
  .made-in { text-align: center; font-size: 11px; }

  .features { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .feature { padding: 30px 14px; }
  .feature h3 { font-size: 11px; margin: 10px 0 8px; }
  .feature p { font-size: 11px; }

  .spotted-title { font-size: 22px; padding: 22px 16px; }
  .spotted-grid {
    display: flex; gap: 10px; padding: 16px 16px 4px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .spotted-grid::-webkit-scrollbar { display: none; }
  .spotted-grid figure { flex: 0 0 72%; scroll-snap-align: center; }

  .site-footer { padding: 44px 22px calc(96px + env(safe-area-inset-bottom)); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 30px; }
  .footer-logo { width: 62%; }
  .footer-links { margin: 0; font-size: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 40px; font-size: 10px; }
  .footer-bottom nav { flex-direction: column; gap: 10px; }

  /* Sticky buy bar */
  .sticky-buy {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .35s var(--ease);
  }
  .sticky-buy.is-on { transform: none; }
  .sticky-info { display: flex; flex-direction: column; min-width: 0; }
  .sticky-name { font-size: 12px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
  .sticky-price { font-size: 13px; font-weight: 600; }
  .sticky-buy .btn-primary { margin: 0 0 0 auto; width: auto; flex: 1; max-width: 220px; height: 42px; font-size: 14px; }

  .cart-drawer { width: 100%; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.btn-primary[hidden] { display: none; }
