:root {
  --bg: #ffffff;
  --bg-alt: #f3f3f3;
  --fg: #121212;
  --muted: rgba(18, 18, 18, 0.65);
  --line: rgba(18, 18, 18, 0.12);
  --btn: #121212;
  --btn-text: #ffffff;
  --max: 1200px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Assistant', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 92px; }
.logo img { height: 60px; width: auto; }
.nav { display: flex; gap: 24px; flex: 1; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.cart-link { position: relative; text-decoration: none; display: inline-flex; padding: 8px; }
.cart-count {
  position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 11px;
  display: none; align-items: center; justify-content: center; letter-spacing: 0;
}
.cart-count.on { display: inline-flex; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 72vh; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.hero .copy {
  position: absolute; inset: auto 0 12% 0; text-align: center; color: #fff;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 400; margin: 0 0 20px; letter-spacing: 0.06em; }

.btn {
  display: inline-block; background: var(--btn); color: var(--btn-text); border: 1px solid var(--btn);
  padding: 14px 32px; font: inherit; font-size: 15px; letter-spacing: 0.08em; cursor: pointer; text-decoration: none;
}
.btn.light { background: #fff; color: #121212; border-color: #fff; }
.btn.ghost { background: transparent; color: var(--fg); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Grid */
.section { padding: 48px 0; }
.section h2 { font-size: 24px; font-weight: 400; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 12px; }
.card { text-decoration: none; }
.card .ph { background: var(--bg-alt); aspect-ratio: 1; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .ph img { transform: scale(1.03); }
.card .t { margin-top: 10px; font-size: 15px; }
.card:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.card .p { color: var(--muted); font-size: 14px; }
.center { text-align: center; margin-top: 32px; }

/* Product */
.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 36px 0 64px; }
.gallery .main { background: var(--bg-alt); aspect-ratio: 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { border: 1px solid transparent; padding: 0; background: var(--bg-alt); aspect-ratio: 1; cursor: pointer; }
.thumbs button.on { border-color: var(--fg); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 400; margin: 0 0 8px; line-height: 1.25; }
.info .price { font-size: 18px; margin-bottom: 24px; }
.opt { margin-bottom: 20px; }
.opt .lbl { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 40px;
  padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer;
}
.pill.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.na { opacity: 0.35; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid var(--line); margin-bottom: 20px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--fg); }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; background: none; color: var(--fg); }
.desc { margin-top: 28px; color: var(--muted); font-size: 15px; }
.desc table { border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.desc td, .desc th { border: 1px solid var(--line); padding: 4px 8px; }
.added { margin-top: 12px; font-size: 14px; min-height: 22px; }

/* Cart */
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row img { width: 96px; height: 96px; object-fit: cover; background: var(--bg-alt); }
.cart-row .v { color: var(--muted); font-size: 14px; }
.cart-row .rm { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.cart-foot { display: flex; justify-content: flex-end; margin-top: 32px; }
.cart-foot .box { width: min(360px, 100%); }
.cart-foot .sub { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 6px; }
.note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* Forms */
.form { max-width: 640px; display: grid; gap: 12px; }
.form input, .form textarea {
  font: inherit; padding: 14px; border: 1px solid rgba(18, 18, 18, 0.55); background: var(--bg); color: var(--fg);
}
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Newsletter + footer */
.newsletter { background: var(--bg-alt); text-align: center; padding: 56px 0; }
.newsletter h2 { font-weight: 400; margin: 0 0 8px; }
.newsletter form { display: flex; max-width: 420px; margin: 20px auto 0; }
.newsletter input { flex: 1; font: inherit; padding: 12px 14px; border: 1px solid rgba(18, 18, 18, 0.55); border-right: 0; }
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .header .wrap { gap: 16px; height: 72px; }
  .logo img { height: 44px; }
  .nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; min-height: 60vh; }
  .hero img:last-of-type { display: none; }
  .form .two { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row img { width: 72px; height: 72px; }
  .cart-row > :last-child { grid-column: 2; }
}

/* ---------- Motion — matches the Dawn theme the Shopify store used ----------
   Sections fade/slide up as they enter the viewport; cards cascade 75ms apart.
   Same keyframes, 0.6s duration and ease-out curve as Dawn's base.css. */
@keyframes slideIn { from { transform: translateY(2rem); opacity: 0.01; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0.01; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .scroll-trigger.animate--fade-in, .scroll-trigger.animate--slide-in { opacity: 0.01; }
  .scroll-trigger.animate--slide-in { transform: translateY(2rem); }
  .scroll-trigger.in.animate--fade-in { opacity: 1; animation: fadeIn 0.6s cubic-bezier(0, 0, 0.3, 1); }
  .scroll-trigger.in.animate--slide-in {
    animation: slideIn 0.6s cubic-bezier(0, 0, 0.3, 1) forwards;
    animation-delay: calc(var(--animation-order, 0) * 75ms);
  }
}

/* Product card hover: swap to the second photo + slight zoom (desktop only, like Dawn) */
.card .ph { position: relative; }
.card .ph img { position: absolute; inset: 0; }
.card .ph img + img { opacity: 0; }
@media (min-width: 990px) {
  .card .ph img { transition: transform 0.5s ease, opacity 0.5s ease; }
  .card:hover .ph img:first-child:not(:only-child) { opacity: 0; }
  .card:hover .ph img + img { opacity: 1; transform: scale(1.03); }
  .card:hover .ph img:only-child { transform: scale(1.03); }
}

/* Colour switch: main photo crossfades, new thumbnails fade in */
.gallery .main { position: relative; overflow: hidden; }
.gallery .main .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 1, 1) 0.12s; }            /* outgoing: eases out after the new one is mostly in */
.gallery .main .layer.show { opacity: 1; transition: opacity 0.4s cubic-bezier(0, 0, 0.2, 1); } /* incoming */
@media (prefers-reduced-motion: reduce) { .gallery .main .layer { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .fade-in-quick { animation: fadeIn 0.35s ease both; }
}

/* Catalog groups */
.cat-group + .cat-group { margin-top: 56px; }
.cat-title { font-size: 20px; font-weight: 400; margin: 0 0 18px; }
.cart-foot .ship-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.cart-foot .ship-to { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.cart-foot .ship-to select { font: inherit; font-size: 14px; color: var(--fg, #121212); background: transparent; border: 1px solid rgba(127, 127, 127, 0.45); border-radius: 6px; padding: 5px 8px; max-width: 60%; }
/* Policy pages + footer links */
.policy { max-width: 720px; }
.policy h1 { font-size: 40px; margin: 0 0 4px; }
.policy .updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.policy h2 { font-size: 20px; margin: 32px 0 8px; }
.policy p, .policy li { line-height: 1.65; }
.policy ul { padding-left: 20px; }
.policy a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.cart-foot .policy-note { margin-top: 10px; }
.cart-foot .policy-note a { color: inherit; text-decoration: underline; }

/* EU-only stock tag (11-13): on sale, but ships from abroad */
.ship-note{display:inline-block;margin:6px 0 2px;padding:6px 12px;border-radius:999px;font-size:13px;line-height:1.3;
  background:rgba(240,170,60,.14);color:#f0b45a;border:1px solid rgba(240,170,60,.45)}
.ship-note.sm{margin-top:4px;padding:3px 9px;font-size:12px}
.ship-note[hidden]{display:none}
