/* ==========================================================
   Trinity Surfwear — site styles
   Colours: ocean black #0B0F14 · surf white · salt blue #4FA3C7 · seafoam #3FB8A5 (site) · sunset coral #FF6B4A (checkout only)
   Fonts: Space Grotesk (headings) · Inter (body)
   ========================================================== */

:root {
  --ink: #0b0f14;
  --white: #ffffff;
  --accent: #4fa3c7;
  --coral: #ff6b4a;        /* checkout only: step tracker, shipping bar, checkout buttons */
  --seafoam: #3fb8a5;      /* bright seafoam: fills and highlights across the site (dark text on top) */
  --seafoam-deep: #17806f; /* deeper seafoam: small text and numbers on white */
  --muted: #5d6673;
  --soft: #f4f4f4;
  --sand: #efe7da;        /* warm beach sand (Rip Curl feel) */
  --sand-deep: #e4d8c4;
  --ocean: #0e2a3a;       /* deep ocean blue, used instead of black for some sections */
  --bar-h: 34px;          /* announcement bar */
  --border: #e6e6e6;
  --radius: 4px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --tracking: 0.22em;
  --max: 1400px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 11px;
  letter-spacing: var(--tracking);
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow.accent { color: var(--accent); }
.muted { color: var(--muted); }
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.dark { background: var(--ink); color: var(--white); }
.dark .muted { color: rgba(255,255,255,.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px;
  font-size: 12px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase;
  border: 1px solid transparent; border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--seafoam); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--seafoam); color: var(--ink); }
.btn-outline { border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--seafoam-deep); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.has-hero .site-header:not(.scrolled) { background: transparent; color: var(--white); border-color: transparent; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
@media (min-width: 768px) { .site-header .bar { height: 88px; } }
.logo { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--display); white-space: nowrap; }
.logo .t { color: var(--accent); font-weight: 700; font-size: 22px; letter-spacing: .18em; }
.logo .s { font-weight: 500; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; }
@media (min-width: 768px) { .logo .t { font-size: 26px; } .logo .s { font-size: 19px; } }
.nav-links { display: none; gap: 44px; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase;
  position: relative; padding: 6px 0; opacity: .9;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-icons { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--seafoam); color: var(--ink);
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.show { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: inline-grid; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.ig-btn { display: none; }
@media (min-width: 480px) { .ig-btn { display: inline-grid; } }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 40px;
  transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.drawer nav { display: flex; flex-direction: column; margin-top: 32px; }
.drawer nav a {
  font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer nav a:hover { color: var(--accent); }
.drawer .foot { margin-top: auto; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-bg { position: absolute; inset: -6% 0 0 0; will-change: transform; }
.hero-bg img { width: 100%; height: 106%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,15,20,.72) 0%, rgba(11,15,20,.35) 55%, rgba(11,15,20,.15) 100%),
              linear-gradient(0deg, rgba(11,15,20,.6) 0%, rgba(11,15,20,0) 40%);
}
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: calc(72px + var(--bar-h)); }
.hero h1 { font-size: clamp(52px, 11vw, 148px); font-weight: 700; line-height: .92; letter-spacing: -0.035em; margin: 24px 0 28px; }
.hero h1 .blue { color: var(--accent); display: block; }
.hero .tagline { font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,.82); max-width: 560px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.scroll-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-hint span { width: 1px; height: 48px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-hint span::after {
  content: ''; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--white);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* Hero entrance */
.rise { opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease) forwards; }
.rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .25s; } .rise.d3 { animation-delay: .4s; } .rise.d4 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--border); }
.trust .grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .trust .grid { grid-template-columns: repeat(4, 1fr); } }
.trust .item {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase;
}
.trust .item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.trust .item + .item { border-left: 1px solid var(--border); }
@media (max-width: 767px) {
  .trust .item:nth-child(3) { border-left: 0; }
  .trust .item:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; margin-top: 16px; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; gap: 32px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
/* Featured shows 4 items: 2 × 2 until there's room for a single row of 4. */
@media (min-width: 768px) and (max-width: 1023px) { .product-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img { transform: scale(1.03); }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img.main:not(:only-of-type) { opacity: 0; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--seafoam); color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px;
}
.quick-add {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--white); color: var(--ink); border-radius: 50%;
  box-shadow: 0 4px 16px rgba(11,15,20,.12);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.quick-add svg { width: 18px; height: 18px; }
.quick-add:hover { background: var(--seafoam); color: var(--ink); transform: scale(1.06); }
@media (hover: hover) {
  .quick-add { opacity: 0; transform: translateY(8px); }
  .card:hover .quick-add { opacity: 1; transform: none; }
}
.card-info { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.card-info h3 { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.card-info .cat { font-size: 12px; color: var(--muted); text-transform: capitalize; margin-top: 4px; }
.card-info .price { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---------- Split (brand story / local identity) ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 5fr; gap: 64px; } .split.flip { grid-template-columns: 5fr 7fr; } }
.split-media { overflow: hidden; aspect-ratio: 4 / 5; }
.split-media.wide { aspect-ratio: 16 / 10; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(40px, 5.5vw, 76px); font-weight: 700; line-height: .95; margin: 20px 0 24px; }
.split .lead { font-size: 17px; line-height: 1.7; max-width: 460px; margin-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.stats strong { display: block; font-family: var(--display); font-size: clamp(20px, 2.6vw, 32px); }
.stats span { font-size: 10px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); }

/* ---------- Lifestyle panel ---------- */
.lifestyle { position: relative; height: 90vh; min-height: 520px; overflow: hidden; color: var(--white); display: flex; align-items: center; }
.lifestyle .bg { position: absolute; inset: -15% 0; will-change: transform; }
.lifestyle .bg img { width: 100%; height: 100%; object-fit: cover; }
.lifestyle::after { content: ''; position: absolute; inset: 0; background: rgba(11,15,20,.5); }
.lifestyle .container { position: relative; z-index: 1; width: 100%; }
.lifestyle h2 { font-size: clamp(48px, 9vw, 128px); font-weight: 700; line-height: .92; letter-spacing: -0.035em; }
.lifestyle h2 .blue { color: var(--accent); display: block; }
.lifestyle p { margin-top: 28px; font-size: 18px; color: rgba(255,255,255,.8); max-width: 440px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 170px 0 56px; }
@media (min-width: 768px) { .page-head { padding: 210px 0 80px; } }
.page-head h1 { font-size: clamp(52px, 9vw, 120px); font-weight: 700; line-height: .92; letter-spacing: -0.035em; margin-top: 20px; }
.page-head h1 .blue { color: var(--accent); }
.page-head .lead { margin-top: 24px; font-size: 18px; max-width: 560px; }

/* Page header with the heading laid over a full-width photo.
   Starts below the menu bar (72px / 88px) so the photo never sits behind the menu. */
.image-head {
  position: relative; overflow: hidden; color: var(--white); background: var(--ink);
  margin-top: calc(72px + var(--bar-h)); height: 65vh; height: 65svh; min-height: 440px; display: flex; align-items: flex-end;
}
@media (min-width: 768px) { .image-head { margin-top: calc(88px + var(--bar-h)); } }
.image-head .bg { position: absolute; inset: -10% 0; will-change: transform; }
.image-head .bg img { width: 100%; height: 100%; object-fit: cover; }
.image-head::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,15,20,.78) 0%, rgba(11,15,20,.2) 60%, rgba(11,15,20,.1) 100%);
}
.image-head .container { position: relative; z-index: 1; width: 100%; padding-bottom: 64px; }
@media (min-width: 768px) { .image-head .container { padding-bottom: 96px; } }
.image-head h1 { font-size: clamp(56px, 10vw, 140px); font-weight: 700; line-height: .92; letter-spacing: -0.035em; margin-top: 20px; }
.image-head h1 .blue { color: var(--accent); }

/* ---------- Shop filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; margin-bottom: 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  min-height: 40px; padding: 0 18px; border: 1px solid var(--border); white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.sort select { min-height: 40px; padding: 0 12px; border: 1px solid var(--border); background: var(--white); color: var(--ink); border-radius: 0; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 40px; padding-top: 136px; padding-bottom: 80px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 7fr 5fr; gap: 64px; padding-top: 160px; } }
.back { display: inline-block; font-size: 11px; letter-spacing: var(--tracking); text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.gallery-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-main.zoom img { transform: scale(1.8); cursor: zoom-out; }
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs button { width: 84px; aspect-ratio: 4 / 5; overflow: hidden; opacity: .5; border: 1px solid transparent; transition: opacity .2s; }
.thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { align-self: start; }
@media (min-width: 900px) { .pdp-info { position: sticky; top: 150px; } }
.pdp-info h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; margin: 12px 0 14px; }
.pdp-info .price { font-size: 22px; font-weight: 600; }
.pdp-info .desc { margin: 24px 0 32px; color: var(--muted); }
.size-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sizes button { min-width: 56px; height: 48px; padding: 0 14px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; transition: all .2s var(--ease); }
.sizes button:hover { border-color: var(--ink); }
.sizes button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); height: 52px; }
.qty button { width: 44px; height: 100%; font-size: 18px; }
.qty span { min-width: 32px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 12px; }
.buy-row .btn { flex: 1; }
.trust-lines { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; font-size: 14px; }
.trust-lines li { display: flex; gap: 10px; align-items: center; }
.trust-lines svg { width: 16px; height: 16px; color: var(--accent); }
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  padding: 20px 0; font-size: 12px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 20px; font-weight: 400; transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }
.sticky-buy {
  position: fixed; inset: auto 0 0 0; z-index: 40; padding: 12px var(--gutter);
  background: var(--white); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .btn { flex: 1; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- About ---------- */
.quote { font-family: var(--display); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -0.02em; max-width: 1000px; }
.chapters { display: grid; gap: 56px; }
@media (min-width: 900px) { .chapters { grid-template-columns: 1fr 1fr; gap: 80px 64px; } }
.chapter .num { font-family: var(--display); color: var(--accent); font-size: 14px; font-weight: 600; }
.chapter h3 { font-size: 32px; font-weight: 700; margin: 12px 0 16px; }
.chapter p { color: var(--muted); font-size: 16px; line-height: 1.75; }

/* ---------- Local ---------- */
.spots { display: grid; gap: 1px; background: var(--sand-deep); border: 1px solid var(--sand-deep); }
@media (min-width: 768px) { .spots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .spots { grid-template-columns: repeat(4, 1fr); } }
.spot { background: var(--sand); padding: 36px 28px; }
.spot .n { font-family: var(--display); color: var(--accent); font-size: 13px; }
.spot h3 { font-size: 24px; font-weight: 700; margin: 28px 0 8px; }
.spot p { color: var(--muted); }
.promise { display: grid; gap: 8px; }
.promise li { list-style: none; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 80px); line-height: 1.05; letter-spacing: -0.03em; }
.promise li:nth-child(2) { color: var(--accent); }
.promise { padding: 0; margin: 32px 0 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form .row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 0; background: var(--white);
  transition: border-color .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field .err { display: none; color: #c0392b; font-size: 12px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.hidden { display: none !important; }
.note { font-size: 13px; color: var(--muted); }
.alert { padding: 14px 16px; border-left: 3px solid var(--coral); background: #fff4f1; font-size: 14px; }
.success { text-align: center; padding: 40px 0; animation: fade .5s var(--ease); }
.success svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 20px; }
.success h2 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.contact-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }
.contact-block { padding: 28px 0; border-top: 1px solid var(--border); }
.contact-block a { font-family: var(--display); font-size: 24px; font-weight: 600; }
.contact-block a:hover { color: var(--accent); }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; gap: 48px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; } }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.line:first-child { border-top: 1px solid var(--border); }
.line img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft); }
.line h3 { font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.line .meta { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.line .qty { height: 40px; }
.line .qty button { width: 36px; }
.line .right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line .remove { font-size: 12px; color: var(--muted); text-decoration: underline; }
.line .remove:hover { color: var(--ink); }
.summary { background: var(--soft); padding: 32px 28px; }
@media (min-width: 900px) { .summary { position: sticky; top: 150px; } }
.summary h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.summary .r { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary .r.total { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 16px; font-weight: 700; font-size: 18px; }
.summary .btn { margin-top: 24px; }
.summary .mini { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 14px; }
.summary .mini img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; }
.summary .mini small { display: block; color: var(--muted); }
.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s;
}
.pay-option:has(input:checked) { border-color: var(--ink); }
.pay-option input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; }
.pay-option strong { display: block; font-size: 15px; }
.pay-option span { font-size: 13px; color: var(--muted); }
.step-title { font-size: 24px; font-weight: 700; margin: 8px 0 20px; }

/* ---------- Join the Club ---------- */
.club { background: var(--sand); padding: 72px 0; scroll-margin-top: 120px; }
@media (min-width: 768px) { .club { padding: 96px 0; } }
.club-inner { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .club-inner { grid-template-columns: 5fr 7fr; gap: 64px; } }
.club h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; margin: 16px 0 16px; }
.club .muted { max-width: 420px; font-size: 16px; }
.club-form { display: grid; gap: 12px; }
@media (min-width: 640px) { .club-form { grid-template-columns: 1fr 1.4fr auto; align-items: end; } }
.club-form .field input { background: var(--white); }
.club-form .field input { height: 54px; min-height: 0; }
.club-form .btn { height: 54px; min-height: 0; }
.club .note { margin-top: 12px; }
.club-done { display: flex; gap: 14px; align-items: center; animation: fade .5s var(--ease); }
.club-done svg { width: 40px; height: 40px; color: var(--accent); flex: none; }
.club-done strong { display: block; font-family: var(--display); font-size: 22px; }
.club-done span { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 80px 0 32px; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .logo { flex-direction: column; gap: 6px; }
.site-footer .logo .t { font-size: 36px; }
.site-footer .logo .s { font-size: 18px; }
.site-footer .tag { margin-top: 20px; color: rgba(255,255,255,.6); max-width: 340px; }
.site-footer h4 { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 16px;
  background: var(--ink); color: var(--white); padding: 14px 18px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(11,15,20,.25); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .rise { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================
   Brand touches — colour, energy and checkout polish
   (Hurley energy · Rip Curl warmth · Ferrari precision)
   ========================================================== */

/* ---------- Section colours ---------- */
.sand { background: var(--sand); }
.ocean { background: var(--ocean); color: var(--white); }
.ocean .muted { color: rgba(255,255,255,.7); }
.eyebrow.seafoam { color: var(--seafoam-deep); }

/* ---------- Announcement bar ---------- */
.announce {
  height: var(--bar-h); display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 16px; background: var(--ink); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.announce .sep { color: var(--seafoam); }
.announce a { color: var(--accent); }
.announce a:hover { color: var(--seafoam); }
@media (max-width: 600px) { .announce .sep, .announce a { display: none; } }

/* ---------- Scrolling banner ---------- */
.marquee { background: var(--seafoam); color: var(--ink); overflow: hidden; padding: 9px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span, .marquee i {
  font-family: var(--display); font-weight: 700; font-style: normal; text-transform: uppercase;
  font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .04em; white-space: nowrap; padding: 0 18px;
}
.marquee i { color: var(--white); padding: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Shop by category tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand-deep); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,15,20,.75) 0%, rgba(11,15,20,0) 55%); }
.tile:hover img { transform: scale(1.05); }
.tile-label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; color: var(--white); }
.tile-label .n { font-family: var(--display); font-size: 12px; color: var(--seafoam); }
.tile-label h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; text-transform: capitalize; margin: 4px 0 10px; }
.tile-label .go { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking); text-transform: uppercase; }
.tile-label .go svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.tile:hover .go { color: var(--seafoam); }
.tile:hover .go svg { transform: translateX(4px); }

/* ---------- Product specs (Ferrari-style numbered details) ---------- */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); margin: -8px 0 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border); }
.specs div { padding: 14px 12px 14px 0; }
.specs div + div { padding-left: 12px; border-left: 1px solid var(--border); }
.specs dt { font-family: var(--display); font-size: 11px; font-weight: 600; color: var(--seafoam-deep); }
.specs dd { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }

/* ---------- Checkout step tracker ---------- */
.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 28px 0 0; max-width: 560px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 10px; position: relative; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--border); margin-right: 10px; }
.steps li.done:not(:last-child)::after { background: var(--ink); }
.steps .dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); background: var(--white); font-family: var(--display); font-size: 13px;
}
.steps .dot svg { width: 15px; height: 15px; stroke-width: 2.4; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--ink); border-color: var(--ink); color: var(--white); }
.steps li.current { color: var(--ink); }
.steps li.current .dot { background: var(--coral); border-color: var(--coral); color: var(--white); box-shadow: 0 0 0 5px rgba(255,107,74,.18); }
@media (max-width: 560px) { .steps .label { display: none; } .steps li.current .label { display: inline; } }
.steps-center .steps { margin: 0 auto 48px; }

/* ---------- Free-shipping progress ---------- */
.ship-progress { margin: 0 0 22px; font-size: 13px; }
.ship-progress p { margin-bottom: 10px; }
.ship-progress .track { height: 6px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
.ship-progress .track span { display: block; height: 100%; background: var(--coral); border-radius: 3px; transition: width .6s var(--ease); }
.ship-progress.unlocked .track span { background: var(--accent); }
.ship-progress.unlocked strong { color: var(--accent); }

/* ---------- Order summary: bold ocean panel ---------- */
.summary { background: var(--ocean); color: var(--white); }
.summary .r { color: rgba(255,255,255,.8); }
.summary .r.total { color: var(--white); border-top-color: rgba(255,255,255,.18); }
.summary .mini { border-bottom: 1px solid rgba(255,255,255,.1); }
.summary .mini small { color: rgba(255,255,255,.6); }
.summary-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.7); text-decoration: underline; }
.summary-link:hover { color: var(--white); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--white); color: var(--ink); }
#checkout-form .btn-coral:hover { background: var(--ink); color: var(--white); }

/* ---------- Checkout details ---------- */
.step-title { display: flex; align-items: baseline; gap: 12px; }
.step-title .num { font-size: 14px; color: var(--coral); }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.pay-badges { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pb {
  display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 44px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 4px; background: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
}
.pb.visa { color: #1a1f71; font-style: italic; font-weight: 800; letter-spacing: .04em; }
.pb.mc i { width: 14px; height: 14px; border-radius: 50%; background: #eb001b; display: block; }
.pb.mc i + i { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }
.pb.apple { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pb.gpay { color: #3c4043; }
.pb.eft { color: var(--ocean); }
.trust-row { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--border); font-size: 13px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--coral); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
/* Hide the scroll hint when the screen is too short for it to clear the buttons */
@media (max-height: 760px) { .scroll-hint { display: none; } }

/* ---------- Hero photo framing ----------
   Keep the surfer's head in view: wide screens anchor the photo to the top,
   and on portrait screens (phones) the text moves to the bottom so it sits over the sand, not his face. */
.hero-bg img { object-position: 56% 0%; }   /* anchor to the top so his head is never cropped */
@media (max-aspect-ratio: 4/5) {
  .hero-bg img { object-position: 56% 20%; }
  .hero-content { justify-content: flex-end; padding-bottom: 56px; }
  .hero::after {
    background: linear-gradient(0deg, rgba(11,15,20,.85) 0%, rgba(11,15,20,.45) 45%, rgba(11,15,20,.1) 70%, rgba(11,15,20,.25) 100%);
  }
}.hero-bg picture { display: block; width: 100%; height: 100%; }
@media (max-aspect-ratio: 4/5) { .scroll-hint { display: none; } }

/* ---------- Fonts with a different feel ----------
   Story text (not headings): Lora, a warm natural serif.
   Checkout page: DM Sans + Sora, close cousins of Inter + Space Grotesk, a little rounder. */
:root { --story: 'Lora', Georgia, serif; }
.story-text, .quote, .chapter p { font-family: var(--story); }
.story-text { font-size: 18px; line-height: 1.75; }
.quote { font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1.35; }
.chapter p { font-size: 17px; line-height: 1.85; }

body[data-page="checkout"] main { font-family: 'DM Sans', var(--body); }
body[data-page="checkout"] main :is(h1, h2, .step-title, .summary h2, .r.total) { font-family: 'Sora', var(--display); letter-spacing: -0.03em; }
body[data-page="checkout"] main .step-title .num { letter-spacing: 0; }
/* ---------- Logo wordmark: Unbounded (thick, rounded, premium surf-brand feel) ---------- */
.logo { font-family: 'Unbounded', var(--display); align-items: baseline; gap: 10px; }
.logo .t { font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.logo .s { font-weight: 600; font-size: 12px; letter-spacing: .14em; }
@media (min-width: 768px) { .logo .t { font-size: 23px; } .logo .s { font-size: 14px; } }
.site-footer .logo { align-items: flex-start; gap: 8px; }
.site-footer .logo .t { font-size: 34px; }
.site-footer .logo .s { font-size: 15px; }
/* Taller letters, same stroke thickness: stretch vertically only. */
.logo .t, .logo .s { display: inline-block; transform: scaleY(1.22); transform-origin: 50% 100%; }
/* TRINITY and SURFWEAR the same size */
.logo .s { font-size: 17px; letter-spacing: .02em; }
.logo .t { font-size: 17px; }
@media (min-width: 768px) { .logo .t, .logo .s { font-size: 23px; } }
.site-footer .logo .t, .site-footer .logo .s { font-size: 34px; }
/* SURFWEAR as thick as TRINITY */
.logo .s { font-weight: 800; }

/* Closing Trinity line on each surf spot */
.spot .spot-tag { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sand-deep); color: var(--seafoam-deep); font-family: var(--story); font-style: italic; font-size: 15px; }

/* ---------- Product colours ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c);
  border: 1px solid rgba(11,15,20,.18); box-shadow: inset 0 0 0 3px var(--white);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .2s var(--ease), transform .2s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { outline-color: var(--ink); }
/* Bigger tap area on phones */
@media (hover: none) { .swatch { width: 42px; height: 42px; } }

/* Sold-out sizes: greyed out with a red line through */
.sizes button.sold-out {
  color: #9aa1a9; cursor: not-allowed; border-color: var(--border);
  background: linear-gradient(to top right, transparent calc(50% - 1px), #d0312d calc(50% - 1px), #d0312d calc(50% + 1px), transparent calc(50% + 1px));
}
.sizes button.sold-out:hover { border-color: var(--border); }

/* Colour with no photos yet */
.coming-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); text-align: center; cursor: default;
}
.coming-soon .dot { width: 120px; height: 120px; border-radius: 50%; background: var(--c); margin-bottom: 12px; }
.coming-soon strong { font-family: var(--display); font-size: 24px; }
.coming-soon span:last-child { color: var(--muted); font-size: 14px; }

/* Colour dots on product cards */
.card-swatches { display: flex; gap: 5px; margin-top: 8px; }
.card-swatches span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(11,15,20,.2); }

/* Cart thumbnail for a colour with no photos yet */
.thumb-swatch { display: block; aspect-ratio: 4 / 5; }
.line .thumb-swatch { width: 96px; }
.summary .mini .thumb-swatch { width: 56px; }

/* Product photos are on pure white now */
.gallery-main, .card-media { background: var(--white); }
.card-media { border: 1px solid #f0f0f0; }
/* Orders paused notice */
.closed-note { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--coral); background: #fff3ef; color: var(--ink); font-size: 14px; font-weight: 500; }
.summary .closed-note { margin-top: 20px; color: var(--ink); }
