/* ==========================================================================
   Goodee — base styles
   ========================================================================== */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --text: #15151a;
  --muted: #6b6b76;
  --line: #e6e2d9;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --dark: #15151a;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 88px; }
.sr-only {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow.light { color: #ffd2c6; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgb(255 90 54 / .35); }
.btn-primary:hover { background: #ff4519; }
.btn-ghost { border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-light { background: #fff; color: var(--dark); }
.link-arrow { font-weight: 600; white-space: nowrap; }
.link-arrow:hover { color: var(--accent); }

/* Announcement ticker ------------------------------------------------------ */
.announce { background: var(--dark); color: #fff; font-size: .82rem; font-weight: 500; overflow: hidden; }
.ticker { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.announce:hover .ticker { animation-play-state: paused; }
.ticker-track { display: flex; list-style: none; margin: 0; padding: 9px 0; }
.ticker-track li { display: flex; align-items: center; white-space: nowrap; }
.ticker-track li::after { content: "✦"; color: var(--accent); margin: 0 28px; font-size: .7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 250 247 / .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(0 0 0 / .06); background: rgb(251 250 247 / .9); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; transition: height .3s var(--ease); }
.is-scrolled .nav { height: 68px; }

.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffd84d, #5b3fd1);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.4rem/1 var(--font-display); letter-spacing: -.035em; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--dark);
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), border-radius .4s var(--ease);
}
.logo-mark svg { width: 34px; height: 34px; overflow: visible; }
.logo-tee { animation: tee-cycle 12s ease-in-out infinite; }
.logo-ink { fill: var(--dark); transform-origin: 20px 21px; transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); border-radius: 50%; }
.logo:hover .logo-ink { transform: scale(1.5); }

/* "goodee" wordmark: eyes blink every few seconds; on hover the brows lift and the smile widens */
.logo-wordmark { display: block; height: 44px; width: auto; overflow: visible; }
.gw-eye, .gw-brow, .gw-smile { transform-box: fill-box; }
.gw-eye { transform-origin: 50% 50%; animation: gw-blink 5.5s ease-in-out infinite; }
.gw-eye-r { animation-delay: .05s; }
@keyframes gw-blink { 0%, 90%, 100% { transform: scaleY(1); } 92.5% { transform: scaleY(.1); } 95% { transform: scaleY(1); } }
.gw-brow { transform-origin: 50% 100%; animation: gw-brow 5.5s ease-in-out infinite; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes gw-brow { 0%, 86%, 100% { transform: none; } 89%, 95% { transform: translateY(-14px); } }
.gw-smile { transform-origin: 50% 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .gw-eye { animation: gw-double-blink .7s ease-in-out 1; }
@keyframes gw-double-blink { 0%, 100% { transform: scaleY(1); } 20%, 60% { transform: scaleY(.1); } 40% { transform: scaleY(1); } }
.logo:hover .gw-brow { animation: none; }
.logo:hover .gw-brow-l { transform: translateY(-26px) rotate(-7deg); }
.logo:hover .gw-brow-r { transform: translateY(-26px) rotate(7deg); }
.logo:hover .gw-smile { transform: scale(1.12, 1.22); }
@media (prefers-reduced-motion: reduce) {
  .gw-eye, .gw-brow, .logo:hover .gw-eye { animation: none !important; }
}

/* Bigger logo in the header; eases down a little when the header compacts on scroll */
.site-header .logo { gap: 12px; }
.site-header .logo-wordmark { height: 62px; margin-top: 4px; transition: height .3s var(--ease); }
.site-header.is-scrolled .logo-wordmark { height: 52px; }
@media (max-width: 1120px) {
  .site-header .logo-wordmark { height: 52px; }
  .site-header.is-scrolled .logo-wordmark { height: 46px; }
}
.site-footer .logo-wordmark { height: 52px; }
.site-header .logo-mark { width: 52px; height: 52px; border-radius: 15px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), border-radius .4s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.site-header .logo-mark svg { width: 44px; height: 44px; transition: width .3s var(--ease), height .3s var(--ease); }
.site-header.is-scrolled .logo-mark { width: 44px; height: 44px; border-radius: 13px; }
.site-header.is-scrolled .logo-mark svg { width: 37px; height: 37px; }
@keyframes tee-cycle {
  0%, 16%  { fill: #ff5a36; }
  20%, 36% { fill: #ffd84d; }
  40%, 56% { fill: #9cc9f5; }
  60%, 76% { fill: #a78bfa; }
  80%, 96% { fill: #4ade80; }
  100%     { fill: #ff5a36; }
}

.logo-light { color: #fff; }
.logo-light .logo-mark { background: #2a2a33; }
.logo-light .logo-ink { fill: #2a2a33; }

/* Nav pill with sliding indicator */
.nav-links {
  position: relative; display: flex; gap: 10px; padding: 5px;
  background: rgb(255 255 255 / .7); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .95rem;
}
.nav-links { align-items: center; }
.nav-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; transition: color .25s; white-space: nowrap; }
.nav-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .75; transition: transform .3s var(--ease), opacity .25s; }
.nav-links a:hover .nav-icon, .nav-links a.is-current .nav-icon { opacity: 1; transform: translateY(-1px) rotate(-6deg); }

/* "Design Yours": a normal menu item with an animated colourful border */
.nav-featured::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle), #ff5a36, #ffd84d, #4ade80, #9cc9f5, #a78bfa, #ff5a36);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; /* keep only the 2px ring */
  animation: ring 4s linear infinite;
}
.nav-featured .nav-icon { color: var(--accent); opacity: 1; }
.nav-featured.is-current .nav-icon { color: #ffd84d; }
.nav-featured:hover .nav-icon { transform: rotate(180deg) scale(1.15); }
.nav-links a.is-current { color: var(--bg); }
.nav-indicator {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px; background: var(--text);
  opacity: 0;
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), opacity .25s;
}
.nav-indicator.is-visible { opacity: 1; }

.nav-actions { display: flex; align-items: center; gap: 4px; }

/* Animated gradient ring (used by the "Design yours" menu item) */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ring { to { --angle: 360deg; } }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: none; border: 0; cursor: pointer;
  transition: background .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Cart: a clear pill button; turns dark when it has items */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--line);
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 4px 14px rgb(0 0 0 / .06);
  transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease), box-shadow .25s;
}
.cart-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn:hover { transform: translateY(-1px); border-color: var(--text); box-shadow: 0 8px 22px rgb(0 0 0 / .1); }
.cart-btn.has-items { padding-right: 8px; background: var(--dark); color: #fff; border-color: var(--dark); }
.cart-btn.has-items:hover { background: #000; }
.cart-btn[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.cart-count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .82rem; font-weight: 700; line-height: 1;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35) rotate(-8deg); } }
.cart-btn.bump { animation: cart-pop .5s var(--ease); }
.cart-btn.bump svg { animation: cart-wiggle .6s var(--ease); }
@keyframes cart-pop { 40% { transform: scale(1.08); } }
@keyframes cart-wiggle { 20% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-5deg); } }
/* Narrow desktops: bag + count only, so the menu keeps its room */
@media (max-width: 1120px) {
  .cart-label { display: none; }
  .cart-btn { padding: 0 12px; }
  .cart-btn.has-items { padding: 0 8px 0 12px; }
}

/* Burger → X */
.menu-btn { display: none; }
.burger { position: relative; width: 20px; height: 12px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .burger span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:last-child { top: 5px; transform: rotate(-45deg); }

/* T-shirt SVG -------------------------------------------------------------- */
.tee { width: 100%; height: auto; overflow: visible; }
.tee-body { stroke: rgb(0 0 0 / .12); stroke-width: 1.5; stroke-linejoin: round; transition: fill .35s var(--ease); filter: drop-shadow(0 10px 18px rgb(0 0 0 / .12)); }
.tee-seams { fill: none; stroke: rgb(0 0 0 / .12); stroke-width: 1.5; }
.tee text { font-family: var(--font-display); letter-spacing: .02em; transition: fill .35s; }

/* Hero / designer ---------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 96px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: .98; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); position: relative; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--muted); }
.trust strong { color: var(--text); display: block; font: 700 1.2rem var(--font-display); }

.price { font: 700 1.15rem var(--font-display); }

/* Garment SVG (studio + showcase) ----------------------------------------- */
.garment { width: 100%; height: auto; overflow: visible; }
.g-body { stroke: rgb(0 0 0 / .14); stroke-width: 1.5; stroke-linejoin: round; transition: fill .35s var(--ease); filter: drop-shadow(0 12px 20px rgb(0 0 0 / .14)); }
.g-details { fill: none; stroke: rgb(0 0 0 / .14); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.garment[data-dark] .g-details { stroke: rgb(255 255 255 / .18); }
.g-area { fill: rgb(255 255 255 / .06); stroke: rgb(0 0 0 / .35); stroke-width: 1.2; stroke-dasharray: 5 4; }
.garment[data-dark] .g-area { stroke: rgb(255 255 255 / .45); }
.g-area.is-active { stroke: var(--accent); stroke-width: 1.8; fill: rgb(255 90 54 / .08); }
.garment[data-dark] .g-area.is-active { stroke: #ffb4a3; }
.g-art { transition: opacity .25s; }

/* Hero showcase ------------------------------------------------------------ */
.hero-visual { position: relative; aspect-ratio: 1 / .92; }
.gcard {
  position: absolute; margin: 0; width: 54%;
  padding: 7% 7% 12%;
  border-radius: 26px;
  background: radial-gradient(65% 65% at 50% 42%, color-mix(in srgb, var(--tee) 22%, transparent), transparent 72%), var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.gcard figcaption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-alt); white-space: nowrap;
}
.gcard:nth-child(-n+2) { padding: 12% 7% 7%; }
.gcard:nth-child(-n+2) figcaption { top: 14px; bottom: auto; }
.gcard:nth-child(1) { left: 0; top: 4%; rotate: -6deg; }
.gcard:nth-child(2) { right: 0; top: 0; rotate: 5deg; }
.gcard:nth-child(3) { left: 23%; bottom: 0; rotate: -1deg; z-index: 2; animation: float 6s ease-in-out infinite; }
.hero-visual:hover .gcard:nth-child(1) { transform: translate(-8px, -4px); }
.hero-visual:hover .gcard:nth-child(2) { transform: translate(8px, -4px); }
@keyframes float { 50% { translate: 0 -8px; } }

/* Design studio ------------------------------------------------------------ */
.studio-section { background: var(--bg-alt); }
.section-sub { max-width: 36ch; margin: 0; }
.studio {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.studio-stage {
  --tee: #ff6b4a;
  position: relative;
  display: grid; place-items: center;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 48px);
  min-height: 100%;
  background: radial-gradient(60% 60% at 50% 48%, color-mix(in srgb, var(--tee) 24%, transparent), transparent 70%), var(--bg);
}
.garment-studio { max-width: 460px; }
.view-toggle {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; padding: 4px; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.view-toggle button {
  border: 0; background: none; cursor: pointer;
  padding: 6px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.view-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.studio-panel { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; align-content: start; border-left: 1px solid var(--line); }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.opt legend {
  padding: 0; margin-bottom: 10px;
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.studio-panel .opt legend span {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-size: .7rem; letter-spacing: 0;
}
.hint { font-size: .8rem; color: var(--muted); margin: 0; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg button {
  display: grid; gap: 2px; justify-items: center;
  padding: 10px 8px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.seg button:hover { border-color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--text); }
.seg-name { font-weight: 600; font-size: .9rem; }
.seg-meta { font-size: .8rem; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c); border: 1px solid rgb(0 0 0 / .15);
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--text); }

.design-for { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.design-for::before { content: "Designing:"; align-self: center; font-size: .82rem; color: var(--muted); margin-right: 2px; }
.design-for button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.design-for button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.df-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; }
.design-for .has-art .df-dot { background: #22c55e; border-color: #22c55e; opacity: 1; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.design-tile {
  position: relative; aspect-ratio: 1;
  display: grid; place-items: center; align-content: center; gap: 2px;
  padding: 8px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .15s, transform .15s var(--ease);
}
.design-tile:hover { border-color: var(--muted); }
.design-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.design-tile img { width: 100%; height: 100%; object-fit: contain; }
.upload-tile { border-style: dashed; color: var(--muted); font-size: .72rem; font-weight: 600; }
.upload-tile svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-tile:hover, .upload-tile:focus-within { color: var(--accent); border-color: var(--accent); }
.tile-spinner { display: none; }
.design-tile.is-uploading img { opacity: .4; }
.design-tile.is-uploading .tile-spinner {
  display: block; position: absolute; width: 22px; height: 22px;
  border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.studio-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.studio-foot > div { display: grid; }
.studio-foot .price { font-size: 1.4rem; }
.btn:disabled { opacity: .55; cursor: progress; }

/* Categories --------------------------------------------------------------- */
/* Product badges ----------------------------------------------------------- */
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgb(0 0 0 / .08);
}
.badge-bestseller { background: var(--dark); color: #fff; }
.badge-new { background: var(--accent); color: #fff; }

/* Category tiles (home) ---------------------------------------------------- */
.cat-tiles { grid-template-columns: repeat(4, 1fr); }
.cat-tile {
  position: relative; display: grid; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-tile-media {
  aspect-ratio: 4 / 3; padding: 10% 22%;
  background: radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--tee) 30%, transparent), transparent 72%), var(--bg-alt);
}
.cat-tile-media .tee { transition: transform .4s var(--ease); }
.cat-tile:hover .cat-tile-media .tee { transform: scale(1.08) rotate(3deg); }
.cat-tile-body { padding: 14px 16px 16px; }
.cat-tile-body h3 { margin: 0 0 2px; }
.cat-tile-arrow {
  position: absolute; right: 14px; bottom: 16px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); font-weight: 700; transition: background .2s, color .2s, transform .25s var(--ease);
}
.cat-tile:hover .cat-tile-arrow { background: var(--accent); color: #fff; transform: translateX(3px); }

/* Shop page ---------------------------------------------------------------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 10px 0 8px; }
.page-head p { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

.shop { padding: 24px 0 clamp(48px, 6vw, 80px); }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 12px 0;
}
.shop-cats { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.shop-cats::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 500; font-size: .92rem; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip-count { font-size: .75rem; opacity: .6; }

.shop-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.search-field, .select-field { position: relative; display: flex; align-items: center; }
.search-field svg {
  position: absolute; left: 14px; width: 18px; height: 18px;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.search-field input, .select-field select {
  height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: .92rem;
}
.search-field input { width: 220px; padding: 0 16px 0 40px; }
.select-field select {
  appearance: none; padding: 0 38px 0 16px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.search-field input:focus, .select-field select:focus { outline: none; border-color: var(--accent); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.pagination a:hover { border-color: var(--text); }
.pagination a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.empty-state { text-align: center; padding: 64px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty-state .hero-ctas { justify-content: center; margin-bottom: 0; }

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { margin: 0; }

.grid { display: grid; gap: 20px; }
.products { grid-template-columns: repeat(4, 1fr); }

.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-media {
  position: relative; aspect-ratio: 1; padding: 14%;
  background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, var(--tee) 18%, transparent), transparent 70%), var(--bg-alt);
}
.card-media .tee { transition: transform .4s var(--ease); }
.card:hover .card-media .tee { transform: scale(1.06) rotate(-2deg); }
.card-body { padding: 14px 16px 18px; display: grid; gap: 2px; }
.card-body h3 { margin: 0; font-size: 1.02rem; }
.card-body .price { font-size: 1rem; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable */
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-colors { display: flex; align-items: center; gap: 3px; }
.card-colors i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1px solid rgb(0 0 0 / .15); }
.card-colors small { font-size: .72rem; color: var(--muted); margin-left: 2px; }
/* Product page ------------------------------------------------------------- */
.product-page { padding: clamp(20px, 3vw, 32px) 0 clamp(48px, 6vw, 80px); }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 20px; align-items: start; }
.product-gallery { position: sticky; top: 84px; display: grid; gap: 12px; }
.product-stage {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 8%;
  border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(60% 60% at 50% 48%, color-mix(in srgb, var(--tee) 26%, transparent), transparent 70%), var(--bg-alt);
  transition: background .4s;
}
.product-stage .badge { top: 18px; left: 18px; }
.product-garment { max-width: 520px; }
.g-text { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; transition: fill .35s; }
.product-views { display: flex; gap: 10px; }
.product-views button {
  width: 84px; padding: 8px 8px 6px; display: grid; gap: 4px; justify-items: center;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-alt); cursor: pointer;
  font-size: .75rem; font-weight: 600; color: var(--muted);
}
.product-views button[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.product-views .g-body { filter: none; }

.buybox h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 8px; }
.buybox-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 24px; }
.buybox-price .price { font-size: 1.7rem; }
.buy-form { display: grid; gap: 22px; padding: 22px 0; border-block: 1px solid var(--line); }
.buy-form .opt legend { margin-bottom: 10px; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.buy-form .opt legend strong { color: var(--text); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.legend-row { display: flex !important; justify-content: space-between; align-items: center; width: 100%; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--text); text-transform: none; letter-spacing: 0; }
.link-btn:hover { color: var(--accent); }

.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.size {
  display: grid; justify-items: center; align-content: center; gap: 1px;
  height: 52px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg);
  font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.size small { font-size: .68rem; font-weight: 500; color: var(--muted); }
.size:hover { border-color: var(--muted); }
.size[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.size[aria-pressed="true"] small { color: inherit; opacity: .7; }
.field-error { margin: 8px 0 0; color: #d92d20; font-size: .85rem; font-weight: 600; }

.buy-row { display: flex; gap: 12px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; border-radius: 999px; }
.qty button:hover { background: var(--bg-alt); }
.qty input { width: 36px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.btn-block { flex: 1; }

.perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 8px; font-size: .92rem; }
.perks span { color: var(--accent); margin-right: 6px; }

.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > :not(summary) { margin: 0 0 16px; color: var(--muted); }
.accordion ul { padding-left: 18px; }

.size-guide {
  width: min(480px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / .25);
}
.size-guide::backdrop { background: rgb(21 21 26 / .45); backdrop-filter: blur(3px); }
.size-guide-head { display: flex; justify-content: space-between; align-items: center; }
.size-guide-head h2 { margin: 0; font-size: 1.4rem; }
.size-guide table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.size-guide th, .size-guide td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.size-guide th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }


/* Steps -------------------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step-num { font: 700 2.4rem var(--font-display); color: var(--accent); display: block; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* Promo -------------------------------------------------------------------- */
.promo {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  background: var(--dark); color: #fff;
  border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.promo p { color: #c9c9d1; max-width: 44ch; margin-bottom: 24px; }
.promo-tees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promo-tees .tee:nth-child(2) { transform: translateY(-16px) scale(1.12); }

/* Reviews ------------------------------------------------------------------ */
.reviews { grid-template-columns: repeat(3, 1fr); }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: grid; gap: 16px; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review figcaption { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* Newsletter --------------------------------------------------------------- */
.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
}
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 14px 18px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg);
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: #d6d6dc; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .muted { color: #9a9aa5; max-width: 32ch; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a:not(.logo) { display: block; padding: 4px 0; color: #b4b4bd; }
.site-footer a:not(.logo):hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2b2b33; margin-top: 48px; padding-top: 20px; font-size: .85rem; color: #8a8a95; }

/* Toast -------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--dark); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 500;
  box-shadow: 0 10px 30px rgb(0 0 0 / .2);
  transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1000px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .cart-btn, .cart-btn.has-items { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .cart-label { display: none; }
  .cart-btn .cart-count { position: absolute; top: -5px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .72rem; box-shadow: 0 0 0 2px var(--bg); }
  .nav-indicator { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 12px 16px 24px;
    background: var(--bg); border: 0; border-radius: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(0 0 0 / .08);
    font: 700 1.6rem/1.2 var(--font-display); letter-spacing: -.02em;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .nav-links.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav-links { align-items: stretch; }
  .nav-links a { gap: 14px; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-8px); }
  .nav-links a.is-current { color: var(--accent); }
  .nav-links a .nav-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--bg-alt); opacity: 1; stroke-width: 1.8; }
  .nav-links a.is-current .nav-icon { background: color-mix(in srgb, var(--accent) 14%, transparent); }
  .nav-links .nav-featured::before { display: none; }
  .nav-links .nav-featured .nav-icon {
    border: 2px solid transparent; padding: 7px;
    background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
                conic-gradient(from var(--angle), #ff5a36, #ffd84d, #4ade80, #9cc9f5, #a78bfa, #ff5a36) border-box;
    animation: ring 4s linear infinite;
  }
  .nav-links.open a { animation: menu-in .45s var(--ease) both; animation-delay: calc(80ms + var(--i) * 55ms); }
}
@keyframes menu-in { to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .hero-grid, .promo, .newsletter, .studio, .product { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .studio-panel { border-left: 0; border-top: 1px solid var(--line); }
  .garment-studio { max-width: 340px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tiles { gap: 12px; }
  .shop-controls { width: 100%; }
  .search-field { flex: 1; }
  .search-field input { width: 100%; }
  .steps, .reviews { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.2rem; gap: 8px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-mark svg { width: 28px; height: 28px; }
  .site-header .logo, .site-header.is-scrolled .logo { gap: 10px; }
  .site-header .logo-wordmark, .site-header.is-scrolled .logo-wordmark { height: 40px; }
  .site-header .logo-mark, .site-header.is-scrolled .logo-mark { width: 42px; height: 42px; border-radius: 12px; }
  .site-header .logo-mark svg, .site-header.is-scrolled .logo-mark svg { width: 35px; height: 35px; }
  .icon-btn { width: 38px; height: 38px; }
  .newsletter-form { flex-direction: column; }
  .hero-ctas .btn { flex: 1; }
  .card-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .nav-links a { opacity: 1 !important; transform: none !important; }
}

/* Toast action ------------------------------------------------------------- */
.toast { display: flex; align-items: center; gap: 14px; }
.toast-action {
  flex: none; border: 0; background: none; padding: 4px 2px; cursor: pointer;
  color: #ffb4a3; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.toast-action:hover { color: #fff; }

/* Cart page ---------------------------------------------------------------- */
.cart-page { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cart-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
.cart-head-count { color: var(--muted); font-weight: 500; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }

.ship-progress {
  padding: 14px 18px; margin-bottom: 16px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
}
.ship-progress p { margin: 0 0 10px; font-size: .92rem; }
.ship-bar { height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.ship-bar span {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ffb03a);
  transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease);
}
.ship-progress.is-done .ship-bar span { background: linear-gradient(90deg, #22c55e, #4ade80); }

.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: opacity .22s, transform .22s var(--ease), border-color .2s;
}
.cart-line.is-leaving { opacity: 0; transform: translateX(24px); }
.cart-line.needs-size { border-color: #f5b800; box-shadow: inset 3px 0 0 #f5b800; }
.cart-line.is-broken { opacity: .75; }
.line-thumb { display: block; aspect-ratio: 1; border-radius: 14px; background: var(--bg-alt); padding: 10px; }
.line-thumb .garment .g-body { filter: none; }
.line-info { display: grid; gap: 4px; min-width: 0; }
.line-title { font: 700 1.05rem/1.25 var(--font-display); }
.line-title:hover { color: var(--accent); }
.line-variant { margin: 0; color: var(--muted); font-size: .9rem; }
.line-details { list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.line-details:empty { display: none; }
.line-error { margin: 4px 0 0; color: #b42318; font-size: .88rem; font-weight: 600; }
.line-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.line-size select {
  appearance: none; height: 40px; padding: 0 34px 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b76' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
}
.needs-size .line-size select { border-color: #f5b800; background-color: #fff8db; }
.line-size select:focus { outline: none; border-color: var(--accent); }
.qty-sm button { width: 38px; height: 40px; font-size: 1.05rem; }
.qty-sm button:disabled { opacity: .35; cursor: default; }
.qty-sm input { width: 30px; }
.line-side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.line-total { font: 700 1.1rem var(--font-display); }
.line-remove {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 8px 10px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.line-remove svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line-remove:hover { background: #fee4e2; color: #b42318; }

.cart-summary {
  position: sticky; top: 88px;
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cart-summary h2 { font-size: 1.3rem; margin-bottom: 16px; }
.cart-summary dl { margin: 0; display: grid; gap: 10px; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; }
.summary-total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.summary-total dt, .summary-total dd { color: var(--text); font: 700 1.3rem var(--font-display); }
.summary-issue {
  margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius-sm);
  background: #fff8db; color: #7a5b00; font-size: .88rem; font-weight: 600;
}
.summary-paused { margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: #eef3ff; color: #1f3f8a; font-size: .88rem; font-weight: 600; }
.btn-checkout { width: 100%; margin-top: 18px; padding: 16px; font-size: 1.05rem; }
.btn-checkout svg, .cart-bar .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
[data-checkout][aria-disabled="true"] { opacity: .55; box-shadow: none; }
.summary-trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.summary-trust li::before { content: "✓ "; color: #22a35a; font-weight: 700; }

.cart-loading { display: grid; gap: 12px; }
.skeleton-line {
  height: 140px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--surface) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.cart-loading[hidden] { display: none; }
.cart-alert { padding: 20px; border-radius: var(--radius); background: #fee4e2; color: #7a271a; }
.cart-alert p { margin: 0 0 12px; font-weight: 600; }

.cart-empty { text-align: center; padding: clamp(32px, 6vw, 64px) 16px; }
.cart-empty-art { width: 160px; margin: 0 auto 8px; }
.cart-empty .hero-ctas { justify-content: center; margin-bottom: 0; }

.cart-bar { display: none; }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; box-shadow: none; }

  /* Sticky checkout bar for thumbs */
  .cart-bar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(0 0 0 / .06);
    transition: transform .3s var(--ease);
  }
  .cart-bar > div { display: grid; line-height: 1.2; }
  .cart-bar strong { font: 700 1.25rem var(--font-display); }
  .cart-bar .btn { flex: 1; max-width: 240px; padding: 14px 20px; }
  .cart-bar.is-tucked { transform: translateY(110%); }
  body.has-cart-bar .site-footer { padding-bottom: 96px; }
  body.has-cart-bar .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  /* Thumb + title block on top, then a full-width controls row, then price row */
  .cart-line { grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px; align-items: start; }
  .line-info { display: contents; }
  .line-thumb { grid-row: 1 / span 4; padding: 6px; border-radius: 12px; }
  .line-title, .line-variant, .line-details, .line-error { grid-column: 2; }
  .line-controls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; margin-top: 12px; }
  .line-size select { width: 100%; }
  .line-side {
    grid-column: 1 / -1; grid-template-columns: 1fr auto auto; align-items: center; justify-items: start;
    padding-top: 10px; border-top: 1px solid var(--line); text-align: left;
  }
  .line-side [data-unit] { justify-self: end; }
  .line-remove { margin: 0; }
  .line-size select, .qty-sm button { height: 44px; }  /* 44px touch targets */
  .qty-sm button { width: 44px; }
  .cart-head .link-arrow { display: none; }
}

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout-page { padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

.checkout-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.checkout-steps li { display: flex; align-items: center; gap: 8px; }
.checkout-steps li + li::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--line); }
.checkout-steps .is-done { color: var(--text); }
.checkout-steps .is-done a:hover { color: var(--accent); }
.checkout-steps [aria-current] { color: var(--accent); }

.checkout-note { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: #eef3ff; color: #1f3f8a; font-weight: 500; }
.checkout-note-test { background: #fff8db; color: #7a5b00; }
.checkout-closed { text-align: center; padding: clamp(40px, 8vw, 90px) 16px; }
.checkout-closed p { max-width: 46ch; margin: 0 auto 24px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.checkout-summary { grid-column: 2; grid-row: 1; position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.checkout-form { grid-column: 1; grid-row: 1; max-width: 560px; }
.checkout-form h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.summary-toggle > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; }
.summary-toggle > summary::-webkit-details-marker { display: none; }
.summary-toggle > summary::after { content: ""; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 2px 0 0; transition: transform .2s; order: 3; }
.summary-toggle[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.summary-toggle > summary strong { margin-left: auto; font-size: 1.1rem; }
.summary-body { padding: 0 20px 20px; }
.summary-body .skeleton-line { height: 64px; margin-bottom: 10px; }

.co-items { list-style: none; margin: 0; padding: 0; }
.co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-item.is-problem .co-info small { color: #b42318; }
.co-thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; background: var(--bg-alt); display: grid; place-items: center; }
.co-thumb > span { width: 58px; }
.co-thumb .g-body { filter: none; }
.co-qty { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--text); color: #fff; font-size: .74rem; display: grid; place-items: center; }
.co-info { display: grid; min-width: 0; }
.co-info strong { font-size: .95rem; }
.co-info small { font-size: .8rem; }
.co-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.co-totals { margin: 14px 0; display: grid; gap: 8px; }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; }
.co-totals dt { color: var(--muted); }
.co-totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.co-total { padding-top: 12px; border-top: 1px solid var(--line); }
.co-total dt, .co-total dd { color: var(--text); font: 700 1.25rem var(--font-display); }

.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.checkout-form legend { font: 700 1.1rem var(--font-display); margin-bottom: 12px; padding: 0; }
.co-field { display: grid; gap: 6px; margin-bottom: 14px; }
.co-field label { font-weight: 600; font-size: .9rem; }
.co-field input, .co-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; /* 16px stops iOS zooming in */
  border: 1px solid #d6d1c5; border-radius: 12px; background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.co-field textarea { resize: vertical; min-height: 90px; }
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgb(21 21 26 / .1); }
.co-field.has-error input { border-color: #d92d20; box-shadow: 0 0 0 3px rgb(217 45 32 / .1); }
.co-field .field-error { margin: 0; }
.co-field small.muted { font-size: .8rem; }
#co-postcode { text-transform: uppercase; }
/* Two fields side by side: equal halves (name + email…); the postcode row keeps a narrow second column */
.co-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-row.co-row-postcode { grid-template-columns: minmax(0, 1fr) 160px; }
.co-note { margin: 0 0 22px; }
.co-note summary { cursor: pointer; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.co-note summary:hover { color: var(--text); }
.checkout-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fdecea; color: #9a2417; font-weight: 600; }

.btn-pay { width: 100%; min-height: 58px; font-size: 1.08rem; }
.btn-pay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn-pay.is-busy { cursor: progress; opacity: .8; }
.btn-pay.is-busy svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.pay-note { margin: 12px 0 18px; text-align: center; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 18px; }
  .checkout-summary { grid-column: 1; position: static; }
  .checkout-form { grid-row: 2; max-width: none; }
}
@media (max-width: 480px) {
  .co-row, .co-row.co-row-postcode { grid-template-columns: 1fr; }
  .checkout-steps { font-size: .82rem; }
}

/* Order complete -------------------------------------------------------------- */
.order-complete { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.container.narrow { max-width: 860px; }
.oc-hero { text-align: center; margin-bottom: 32px; }
.oc-hero .lead { margin: 0 auto; }
.oc-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.oc-check { display: inline-block; width: 72px; height: 72px; margin-bottom: 14px; }
.oc-check svg { width: 100%; height: 100%; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oc-check circle { stroke: #22a35a; fill: #e6f5ee; stroke-dasharray: 151; stroke-dashoffset: 151; animation: oc-draw .6s var(--ease) forwards; }
.oc-check path { stroke: #22a35a; stroke-dasharray: 40; stroke-dashoffset: 40; animation: oc-draw .4s .45s var(--ease) forwards; }
.oc-check.is-waiting circle, .oc-check.is-waiting path { stroke: #d18a00; }
.oc-check.is-waiting circle { fill: #fff8db; }
@keyframes oc-draw { to { stroke-dashoffset: 0; } }

.oc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: step; }
.oc-steps li { position: relative; display: grid; gap: 2px; padding: 16px 16px 16px 52px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.oc-steps li::before { content: counter(step); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--bg-alt); color: var(--muted); }
.oc-steps .is-done::before { content: "✓"; background: #22a35a; color: #fff; }
.oc-steps .is-next::before { background: var(--accent); color: #fff; }

.oc-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.oc-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.oc-card h2 { font-size: 1.15rem; }
.oc-card h3 { font-size: .95rem; margin-top: 18px; }
.oc-card address { font-style: normal; line-height: 1.7; }
.oc-ctas { justify-content: center; }
@media (max-width: 720px) {
  .oc-steps, .oc-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-check circle, .oc-check path { animation: none; stroke-dashoffset: 0; }
}

/* Information pages (shipping, privacy, terms) --------------------------------- */
.info-page { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 88px); }
.info-head { max-width: 760px; margin-bottom: clamp(24px, 4vw, 44px); }
.info-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.info-head .lead { margin-bottom: 8px; }
.info-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(24px, 5vw, 64px); align-items: start; }
.info-side { position: sticky; top: 96px; display: grid; gap: 24px; }
.info-toc ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.info-toc a { font-size: .9rem; color: var(--muted); }
.info-toc a:hover { color: var(--accent); }
.info-others { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.info-others a { font-weight: 600; font-size: .9rem; }
.info-others a:hover { color: var(--accent); }
.prose { font-size: 1.02rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 2em 0 .6em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .info-layout { grid-template-columns: 1fr; }
  .info-side { position: static; order: 2; }
  .info-toc { display: none; }
}
.cat-intro { max-width: 68ch; margin: 4px 0 10px; color: var(--muted); font-size: 1.02rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-social a { font-weight: 600; }

/* Reviews ------------------------------------------------------------------------ */
.stars { --size: 18px; position: relative; display: inline-block; width: calc(var(--size) * 5); height: var(--size); vertical-align: middle; flex: none;
  background: linear-gradient(90deg, var(--accent) var(--rating), #ddd7cc var(--rating));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6Z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6Z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; }
.stars-sm { --size: 14px; }
.stars-lg { --size: 26px; }
.rating-link { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: .92rem; }
.rating-link:hover span { text-decoration: underline; }
.card-rating { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: -2px 0 6px; }

.reviews-section { scroll-margin-top: 88px; }
.reviews-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.review-summary { position: sticky; top: 96px; display: grid; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.review-avg { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.review-avg strong { font: 700 3rem/1 var(--font-display); }
.review-avg span { color: var(--muted); }
.review-bars { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.review-bars li { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.review-bars .bar { height: 8px; border-radius: 4px; background: var(--bg-alt); overflow: hidden; }
.review-bars .bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.review-bars li > span:last-child { text-align: right; }
.review-empty { margin: 0 0 6px; }
.review-thanks { padding: 14px 16px; border-radius: var(--radius-sm); background: #e6f5ee; color: #145c3c; font-weight: 600; margin: 0 0 18px; }

.review-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.review-list { display: grid; transition: opacity .2s; }
.review-list.is-loading { opacity: .4; }
.review-item { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.review-item:first-child { padding-top: 6px; }
.review-item header { display: grid; gap: 6px; }
.review-item h3 { font-size: 1.05rem; margin: 0; }
.review-body { margin: 0; line-height: 1.7; }
.review-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); }
.review-meta strong { color: var(--text); }
.verified { color: #1f8a5b; font-weight: 600; }
.review-reply { margin-top: 6px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 10px 10px 0; font-size: .92rem; }
.review-reply p { margin: 4px 0 0; }
.review-more { margin-top: 18px; }

.review-form { padding: 24px; margin-bottom: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.review-form h3 { margin-bottom: 14px; }
.review-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Star picker: radios in reverse order so hovering lights up the stars to the left */
.star-input { border: 0; padding: 0; margin: 0 0 14px; }
.star-input legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.star-picker { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-picker label { width: 40px; height: 40px; cursor: pointer; background: #ddd7cc; transition: background-color .15s, transform .15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6Z'/%3E%3C/svg%3E") center / 34px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6Z'/%3E%3C/svg%3E") center / 34px no-repeat; }
.star-picker input:checked ~ label, .star-picker label:hover, .star-picker label:hover ~ label { background: var(--accent); }
.star-picker label:hover { transform: scale(1.1); }
.star-picker input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
.star-input.has-error legend { color: #d92d20; }

/* Verified review page */
.verified-review { display: grid; gap: 16px; margin-top: 20px; }
.vr-item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.vr-item.is-done { opacity: .7; }
.vr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vr-head > div { display: grid; }

@media (max-width: 860px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .review-summary { position: static; }
}
.star-input .field-error { display: block; margin-top: 4px; }


/* Design it for me ----------------------------------------------------------------- */
.help-tile { display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; font-size: .66rem; font-weight: 700; line-height: 1.1; color: var(--accent); border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.help-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-tile:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

.dfm-hero { padding: clamp(40px, 6vw, 88px) 0; background: radial-gradient(circle at 10% 0%, #ffe2d8, transparent 45%), radial-gradient(circle at 100% 100%, #e7defc, transparent 45%), var(--bg); }
.dfm-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dfm-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.dfm-hero h1 em { font-style: normal; color: var(--accent); }
.dfm-facts { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 8px; }
.dfm-facts li::before { content: "✦ "; color: var(--accent); }
.dfm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dfm-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dfm-steps li > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 1.2rem var(--font-display); color: #fff; background: var(--accent); }
.dfm-steps li:nth-child(2) > span { background: #5b3fd1; }
.dfm-steps li:nth-child(3) > span { background: #1f8a5b; }
.dfm-steps li:nth-child(4) > span { background: var(--dark); }
.dfm-steps p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

.dfm-form { display: grid; gap: 6px; margin-top: 18px; }
.dfm-block { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.dfm-block legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #d6d1c5; background: var(--surface); font-weight: 500; font-size: .92rem; transition: border-color .15s, background-color .15s, color .15s; }
.pick:hover span { border-color: var(--text); }
.pick input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.pick input:checked + span::before { content: "✓ "; margin-right: 4px; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dfm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.dfm-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; border: 2px dashed #d6d1c5; border-radius: 14px; background: var(--surface); cursor: pointer; color: var(--muted); font-weight: 500; transition: border-color .2s, background-color .2s; }
.dfm-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.dfm-drop svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dfm-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dfm-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.dfm-previews:empty { display: none; }
.dfm-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dfm-contact { padding-top: 10px; border-top: 1px solid var(--line); }
.dfm-faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dfm-faq summary { cursor: pointer; font-weight: 600; }
.dfm-faq p { margin: 8px 0 0; color: var(--muted); }

/* Design request conversation */
.dr-welcome { line-height: 1.6; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dr-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.dr-status { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .85rem; background: var(--bg-alt); }
.dr-status.dr-ready { background: #e6f5ee; color: #145c3c; }
.dr-status.dr-waiting { background: #e7f0fb; color: #1f5fae; }
.dr-status.dr-designing { background: #efeafd; color: #5b3fd1; }
.dr-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 26px; counter-reset: s; }
.dr-progress li { position: relative; padding-top: 14px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.dr-progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--bg-alt); }
.dr-progress .is-done::before { background: #22a35a; }
.dr-progress .is-current { color: var(--text); }
.dr-progress .is-current::before { background: var(--accent); }
.dr-final { padding: 22px; margin-bottom: 26px; border-radius: var(--radius); background: #e6f5ee; border: 1px solid #bfe3d1; }
.dr-final-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 8px; }
.dr-final figure { margin: 0; display: grid; gap: 10px; }
.dr-final .dr-img { width: 100%; height: auto; aspect-ratio: 1; }
.dr-thread { display: grid; gap: 16px; margin-bottom: 22px; }
.dr-msg { display: grid; gap: 4px; max-width: 86%; }
.dr-msg header { font-size: .8rem; color: var(--muted); }
.dr-msg.from-customer { justify-self: end; }
.dr-msg.from-customer header { text-align: right; }
.dr-bubble { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.dr-bubble p { margin: 0 0 6px; line-height: 1.6; }
.dr-bubble p:last-child { margin-bottom: 0; }
.from-customer .dr-bubble { background: var(--dark); color: #fff; border-color: var(--dark); border-bottom-right-radius: 6px; }
.from-designer .dr-bubble { border-bottom-left-radius: 6px; }
.from-system .dr-bubble { background: var(--bg-alt); font-size: .9rem; }
.dr-brief { display: grid; gap: 4px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .15); font-size: .85rem; }
.dr-brief div { display: flex; gap: 8px; }
.dr-brief dt { opacity: .65; min-width: 76px; }
.dr-brief dd { margin: 0; }
.dr-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dr-img { position: relative; display: block; width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/14px 14px; border: 1px solid var(--line); }
.dr-img img { width: 100%; height: 100%; object-fit: contain; }
.dr-img.is-final { outline: 3px solid #22a35a; outline-offset: -3px; }
.dr-img span { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 6px; background: #22a35a; color: #fff; font-size: .7rem; font-weight: 700; }
.dr-waiting { text-align: center; padding: 18px; border-radius: var(--radius); border: 1px dashed var(--line); }
.dr-reply { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dr-reply textarea { width: 100%; min-height: 90px; padding: 12px 14px; font-size: 16px; border: 1px solid #d6d1c5; border-radius: 12px; resize: vertical; font-family: inherit; }
.dr-reply textarea:focus { outline: none; border-color: var(--text); }
.dr-reply-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dr-attach { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); }
.dr-attach:hover { color: var(--text); background: var(--bg-alt); }
.dr-attach svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dr-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

@media (max-width: 860px) {
  .dfm-hero-inner, .dfm-grid { grid-template-columns: 1fr; }
  .dr-msg { max-width: 100%; }
  .dr-progress li { font-size: .72rem; }
}
.dr-final h2 { font-size: 1.3rem; margin-bottom: 14px; }
.bulk-hero { background: radial-gradient(circle at 0% 0%, #fff3c4, transparent 45%), radial-gradient(circle at 100% 100%, #d9ecff, transparent 45%), var(--bg); }
.pick-input input { min-height: 42px; width: 150px; padding: 0 16px; border-radius: 999px; border: 1px solid #d6d1c5; background: var(--surface); font: inherit; font-size: .92rem; }
.pick-input input:focus { outline: none; border-color: var(--text); }
.dfm-block.has-error legend { color: #d92d20; }

/* Home: "Design Yours" promo (the studio has its own page) ------------------------- */
.studio-promo { background: radial-gradient(circle at 85% 20%, #ffe2d8, transparent 45%), radial-gradient(circle at 10% 90%, #e7defc, transparent 40%); }
.studio-promo-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.studio-promo h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.studio-promo-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.studio-promo-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.studio-promo-points span { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 700 .9rem var(--font-display); color: #fff; background: var(--dark); }
.studio-promo-points li:nth-child(1) span { background: var(--accent); }
.studio-promo-points li:nth-child(2) span { background: #5b3fd1; }
.studio-promo-visual { position: relative; aspect-ratio: 1.15; }
.promo-garment { position: absolute; width: 58%; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .14)); transition: transform .5s var(--ease); }
.promo-garment .g-body { filter: none; }
.promo-garment.g1 { left: 0; top: 14%; transform: rotate(-8deg); z-index: 2; }
.promo-garment.g2 { left: 22%; top: 0; z-index: 3; }
.promo-garment.g3 { right: 0; top: 18%; transform: rotate(8deg); z-index: 1; }
.studio-promo-visual:hover .g1 { transform: rotate(-12deg) translateX(-10px); }
.studio-promo-visual:hover .g3 { transform: rotate(12deg) translateX(10px); }

/* Design Yours page */
.studio-head { padding-bottom: 0; }
.studio-page { padding-top: 24px; }
.studio-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.studio-help article { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; align-content: start; gap: 6px; }
.studio-help h2 { font-size: 1.25rem; margin: 0; }
.studio-help p { margin: 0 0 10px; }
.studio-help .btn { justify-self: start; }
.studio-help ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }

@media (max-width: 820px) {
  .studio-promo-inner, .studio-help { grid-template-columns: 1fr; }
  .studio-promo-visual { max-width: 420px; width: 100%; margin-inline: auto; order: -1; }
}

/* How it works ----------------------------------------------------------------- */
.how { position: relative; overflow: hidden; }
.how .section-sub { margin: 6px auto 0; max-width: 60ch; }
.how-steps { position: relative; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
/* the journey: a dotted line that flows through the numbers */
.how-steps::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 189px; height: 3px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
  animation: how-flow 1.2s linear infinite;
}
@keyframes how-flow { to { background-position: 18px 0; } }
.how-step {
  --tone: #ff5a36; --tint: #fff0eb;
  position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 18px 24px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(0 0 0 / .03), 0 14px 34px rgb(0 0 0 / .05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.how-print { --tone: #5b3fd1; --tint: #efeafd; }
.how-ship  { --tone: #1f8a5b; --tint: #e6f5ee; }
.how-step:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tone) 35%, var(--line)); box-shadow: 0 24px 50px color-mix(in srgb, var(--tone) 18%, transparent); }
.how-art { width: 100%; height: 170px; margin-bottom: 2px; border-radius: 18px; background: linear-gradient(160deg, var(--tint), color-mix(in srgb, var(--tint) 30%, #fff)); display: grid; place-items: center; overflow: hidden; }
.how-art svg { width: 100%; max-width: 260px; height: 100%; overflow: visible; }
.how-num {
  width: 46px; height: 46px; margin-top: -32px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.25rem var(--font-display); color: #fff; background: var(--tone);
  box-shadow: 0 0 0 6px var(--surface), 0 10px 20px color-mix(in srgb, var(--tone) 35%, transparent);
}
.how-step h3 { font-size: 1.35rem; margin: 6px 0 0; }
.how-step p { color: var(--muted); margin: 0; max-width: 34ch; }
.how-fact { margin-top: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--tone); background: var(--tint); }
.how-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin-top: 36px; }

/* Illustrations */
.how-blob { fill: #fff; opacity: .7; }
.how-tee { fill: #ff6b4a; stroke: rgb(0 0 0 / .15); stroke-width: 3; }
.how-design .how-tee { animation: how-tee-colour 6s ease-in-out infinite; }
@keyframes how-tee-colour { 0%, 20% { fill: #ff6b4a; } 25%, 45% { fill: #ffd84d; } 50%, 70% { fill: #5b3fd1; } 75%, 95% { fill: #9cc9f5; } 100% { fill: #ff6b4a; } }
.how-print-area { fill: none; stroke: #fff; stroke-width: 5; stroke-dasharray: 14 10; opacity: .9; animation: how-dash 2s linear infinite; }
@keyframes how-dash { to { stroke-dashoffset: -48; } }
.how-spark { fill: #fff; transform-origin: 110px 67px; animation: how-twinkle 2.4s ease-in-out infinite; }
@keyframes how-twinkle { 50% { transform: scale(.7) rotate(45deg); opacity: .7; } }
.how-swatches circle { stroke: #fff; stroke-width: 3; }
.how-cursor { fill: var(--dark); stroke: #fff; stroke-width: 2; stroke-linejoin: round; transition: transform .5s var(--ease); }
.how-design:hover .how-cursor { transform: translate(-50px, -22px); }

/* Step 2: heat press applying a DTF transfer */
.how-plate rect { fill: var(--dark); }
.how-plate { animation: how-press 3s ease-in-out infinite; }
@keyframes how-press { 0%, 20% { transform: translateY(0); } 35%, 65% { transform: translateY(26px); } 80%, 100% { transform: translateY(0); } }
.how-film { fill: #ff5a36; animation: how-film 3s ease-in-out infinite; }
@keyframes how-film { 0%, 30% { fill: #ffd0c2; opacity: .85; } 45%, 100% { fill: #5b3fd1; opacity: 1; } }
.how-steam path { fill: none; stroke: #a78bfa; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: how-steam 3s ease-out infinite; }
.how-steam path:nth-child(2) { animation-delay: .15s; }
@keyframes how-steam { 0%, 40% { opacity: 0; transform: translateY(6px); } 55% { opacity: .9; } 75%, 100% { opacity: 0; transform: translateY(-8px); } }
.how-plate .how-light { fill: #4ade80; animation: how-blink 1.4s steps(2) infinite; }
@keyframes how-blink { 50% { fill: #1f8a5b; } }
.how-print .how-tee { fill: #fff; stroke: rgb(0 0 0 / .18); }
.how-platen { fill: rgb(0 0 0 / .12); }
.how-badge circle { fill: #ffd84d; }
.how-badge text { font: 700 15px var(--font-display); fill: var(--dark); }
.how-badge { transform-origin: 176px 56px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.how-print:hover .how-badge { transform: rotate(-12deg) scale(1.15); }

.how-route { fill: none; stroke: #1f8a5b; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; opacity: .6; }
.how-box rect { fill: #e8c79a; stroke: #b98d55; stroke-width: 2; }
.how-box path { fill: none; stroke: #b98d55; stroke-width: 2; }
.how-pin path { fill: #ff5a36; }
.how-pin circle { fill: #fff; }
.how-pin { transform-origin: 190px 72px; animation: how-bob 2s ease-in-out infinite; }
@keyframes how-bob { 50% { transform: translateY(-5px); } }
.how-van { offset-path: path("M38 118C70 118 70 70 110 70s50 34 80-6"); offset-rotate: auto; animation: how-drive 4.5s ease-in-out infinite; }
.how-van rect, .how-van path { fill: #1f8a5b; }
.how-van circle { fill: var(--dark); }
@keyframes how-drive { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 80% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

@media (max-width: 820px) {
  .how-steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 22px; }
  .how-steps::before { left: 50%; right: auto; top: 40px; bottom: 40px; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 10px, transparent 10px 18px); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .how-steps::before, .how-design .how-tee, .how-print-area, .how-spark, .how-light, .how-plate, .how-film, .how-steam path, .how-pin, .how-van { animation: none !important; }
  .how-film { fill: #5b3fd1; }
  .how-van { offset-distance: 60%; }
}

/* Section label with fading lines either side (used on "How it works") — reads as a heading, not a button */
.eyebrow-lined {
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 14px;
  font: 700 1.25rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow-lined::before, .eyebrow-lined::after { content: ""; width: clamp(28px, 7vw, 80px); height: 3px; border-radius: 3px; }
.eyebrow-lined::before { background: linear-gradient(90deg, transparent, var(--accent)); }
.eyebrow-lined::after { background: linear-gradient(90deg, #a78bfa, transparent); }
/* gradient letters (falls back to plain orange where unsupported) */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .eyebrow-lined { color: transparent; background: linear-gradient(90deg, var(--accent), #f59e0b 55%, #a78bfa); -webkit-background-clip: text; background-clip: text; }
  .eyebrow-lined::before, .eyebrow-lined::after { -webkit-background-clip: border-box; background-clip: border-box; }
}
.how .section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
