/* ============================================
   Sweaty Ass Towels — luxury meets cheeky
   Structure and system mirrored from the Golfy
   reference site (Fraunces + Inter, 2px radius,
   navy/cream/accent palette).
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --light-blue: #81ADDE;
  --navy: #2B3A67;
  --navy-dark: #1B2340;
  --grey: #B8BCC2;
  --grey-light: #DCDFE3;
  --sand: #E0D6C6;
  --sage: #A5C598;
  --white: #FFFFFF;

  /* UI roles (mapped onto Golfy's system) */
  --cream: #FAF8F5;
  --cream-soft: #F1ECE3;
  --accent: var(--light-blue);
  --accent-dark: #5F8BC4;
  --text: #21294A;
  --text-soft: #5B6178;

  --radius: 2px;
  --max-width: 1180px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Logo (on dark backgrounds) ---------- */
.logo-img {
  height: 26px;
  width: auto;
}
header .logo-img { height: 34px; }

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}
.footer-tagline .footer-mascot {
  height: 46px;
  width: auto;
}
.footer-tagline .eyebrow {
  margin-bottom: 0;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--navy-dark);
  color: var(--cream-soft);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 12px;
}

/* ---------- Header ---------- */
header.site {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(129,173,222,0.2);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a { position: relative; padding-bottom: 4px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--light-blue); }
.nav-links a#admin-logout-btn { color: rgba(250,248,245,0.5); font-size: 13px; }
.nav-links a#admin-logout-btn:hover { color: var(--light-blue); }

.cart-link { display: flex; align-items: center; gap: 6px; }

.cart-count {
  background: var(--grey);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--cream);
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 32px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-accent { background: var(--accent-dark); color: var(--white); }
.btn-accent:hover { background: #4a75ac; }

.btn-outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-outline-dark { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: rgba(43,58,103,0.06); }

.btn-navy { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); }

.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ----------
   Full-bleed photo (runner + car, subject framed on the left) with a
   navy gradient fading in over the right side, where the text sits, so
   the copy stays legible without fully hiding the photo. Layout is a
   two-column grid: the left column is the "image" column (min 50% of
   the hero width) and the right column holds the text, capped at
   min(560px, 46%) so it never creeps past the halfway line even on
   ultra-wide screens. Below 860px there's no room for a side-by-side
   photo focus, so it collapses to a single centered column. */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream);
  /* --chrome-height is set by main.js to the real, measured height of the
     announcement bar + sticky header. Sizing the hero to exactly the
     leftover viewport space (rather than a flat 100vh) means the
     vertically-centered text lands centered in what's actually visible
     on load, not centered in a box that's partly scrolled off-screen. */
  min-height: calc(100vh - var(--chrome-height, 96px));
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr min(560px, 46%);
  align-items: center;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Navy fade: clear over the photo on the left, easing up toward the
     right edge so the text column has enough contrast to read. (Started
     at a flatter ~40% but the light-blue accent text nearly disappeared
     against the trees/sky at that strength — ~78% at the very edge
     reads much better while still keeping the fade gradual and the
     photo clearly visible on the left two-thirds.) */
  background-image: linear-gradient(90deg,
    rgba(27,35,64,0) 0%,
    rgba(27,35,64,0) 32%,
    rgba(27,35,64,0.78) 100%
  );
  pointer-events: none;
}
.hero-inner {
  grid-column: 2;
  max-width: 560px;
  margin: 0;
  position: relative;
  z-index: 2;
  text-align: left;
  padding-left: clamp(24px, 4vw, 56px);
  text-shadow: 0 2px 18px rgba(15,20,38,0.35);
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light-blue);
  margin-bottom: 22px;
  display: block;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  margin: 0 0 22px;
  font-weight: 600;
  color: var(--white);
}
.hero h1 em { font-style: italic; color: var(--light-blue); }

.hero p.lede {
  font-size: 18px;
  color: rgba(250,248,245,0.82);
  max-width: 480px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 90px 32px 100px;
  }
  .hero-bg { object-position: 30% center; }
  .hero::before {
    /* Text now spans the full width (centered), so the fade needs to
       read as an even scrim across the whole photo instead of a
       left-to-right gradient. */
    background-image: linear-gradient(180deg, rgba(27,35,64,0.62) 0%, rgba(27,35,64,0.8) 100%);
  }
  .hero-inner {
    grid-column: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding-left: 0;
  }
  .hero p.lede { max-width: 540px; margin: 0 auto 40px; }
  .hero-ctas { justify-content: center; }
}

/* ---------- Section shared ---------- */
section { padding: 90px 32px; }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head .eyebrow { color: var(--accent-dark); }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--navy);
}
.section-head p { color: var(--text-soft); font-size: 16.5px; line-height: 1.6; }

/* ---------- Featured product card ---------- */
.featured { background: var(--cream); }
.product-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 34px;
}
.product-card {
  background: #fff;
  border: 1px solid rgba(43,58,103,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(43,58,103,0.12); }

.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--light-blue);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius);
}

/* Sized up well beyond the plain card badge (2-3x) so an active deal
   is impossible to miss on the shop landing card. */
.badge.deal-badge {
  background: var(--accent-dark); color: var(--white);
  font-size: 28px; padding: 14px 22px; top: 16px; left: 16px; letter-spacing: 0.04em;
}
.price-strike { text-decoration: line-through; color: var(--text-soft); font-weight: 400; font-size: 0.7em; margin-right: 8px; }

.product-card .info { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 8px; color: var(--navy); font-weight: 600; }
.product-card .tagline { font-style: italic; color: var(--accent-dark); font-size: 15px; margin: 0 0 14px; }
.product-card p.desc { color: var(--text-soft); font-size: 15px; line-height: 1.6; margin: 0 0 20px; flex: 1; }

.price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.price { font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 600; }
.price .unit { font-family: var(--sans); font-size: 12.5px; color: var(--text-soft); font-weight: 400; margin-left: 6px; text-transform: none; letter-spacing: 0; }

/* ---------- Shop landing page ----------
   Every active product renders with this same card, one after
   another in whatever order the admin Products list is in (drag to
   reorder there) — there's no more special "featured" vs "grid" split,
   so every product gets identical real estate on the shop page. */
.shop-landing-section { padding: 30px 32px 100px; display: flex; flex-direction: column; gap: 40px; }
.shop-hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(43,58,103,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  width: 100%;
}
.shop-hero-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(43,58,103,0.14); }
.shop-hero-media { position: relative; min-height: 380px; }
.shop-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-hero-info { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.shop-hero-info h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); font-weight: 600; margin: 8px 0 12px; }
.shop-hero-info .tagline { font-style: italic; color: var(--accent-dark); font-size: 16px; margin: 0 0 16px; }
.shop-hero-info .desc { color: var(--text-soft); font-size: 15.5px; line-height: 1.7; margin: 0 0 26px; }
.shop-hero-info .price-row { margin-bottom: 22px; }
.shop-hero-info .badge-soon { margin-bottom: 22px; }
.shop-hero-info .btn { align-self: flex-start; }

.placeholder-card { opacity: 0.7; }
.placeholder-thumb { display: flex; align-items: center; justify-content: center; background: var(--cream-soft); color: rgba(43,58,103,0.25); font-family: var(--serif); font-size: 48px; }
.badge-soon {
  display: inline-block;
  align-self: flex-start;
  background: var(--grey-light);
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius);
  margin-top: auto;
}

@media (max-width: 860px) {
  .shop-hero-card { grid-template-columns: 1fr; }
  .shop-hero-media { min-height: 260px; }
}

/* ---------- Lifestyle photo marquee (continuous right-to-left wheel) ---------- */
.collage-section { padding: 90px 0; }
.collage-section .section-head {
  max-width: var(--max-width);
  margin: 0 auto 56px;
  padding: 0 32px;
}

.marquee-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.marquee-heading-text { max-width: 560px; }
.marquee-heading-logo {
  /* ~1.5x the size that roughly matched the two-line h2 height. */
  width: clamp(102px, 14.4vw, 152px);
  height: clamp(102px, 14.4vw, 152px);
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
}

/* Reveal-on-scroll: text (and the donkey logo) start lower + faded, and
   settle into place as the section enters view. Toggling the class on/off
   (rather than a one-time animation) means scrolling back up resets it, so
   it "falls" again the next time it scrolls into view. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 640px) {
  .marquee-heading-logo { display: none; }
}

.marquee-wrap {
  overflow: hidden;
  margin-top: 50px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-track.is-ready {
  animation: marquee-scroll 75s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track .m-item {
  flex-shrink: 0;
  height: clamp(254px, 45vh, 466px);
  aspect-ratio: 5 / 4;
  width: auto;
  margin-right: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(43,58,103,0.10));
}
.marquee-track .m-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.marquee-track .m-item img:hover { transform: scale(1.04); }

/* ---------- Lightbox (click a marquee photo to enlarge) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 40px;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: #fff; transform: scale(1.06); }

@media (max-width: 780px) {
  .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 22px; }
}

/* ---------- Generic modal (checkout interstitial, etc.) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,35,64,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--cream);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 44px 36px 36px;
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box { transform: scale(1); }
.modal-box h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin: 10px 0 14px; line-height: 1.3; }
.modal-box p { color: var(--text-soft); margin: 0 0 26px; }

/* Checkout modal: title sandwiched between two eyebrow-styled lines,
   with matching spacing above and below the title, then reused again
   before the action buttons. */
#checkout-modal h3 { margin: 0 0 22px; }
#checkout-modal .eyebrow:last-of-type { margin-bottom: 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(43,58,103,0.08);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(43,58,103,0.16); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 780px) {
  .marquee-track .m-item { height: clamp(174px, 35vh, 306px); aspect-ratio: 5 / 4; width: auto; margin-right: 16px; }
  .marquee-track.is-ready { animation-duration: 58s; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .marquee-track.is-ready { animation: none; }
  .marquee-wrap { overflow-x: auto; }
}

/* ---------- Story / about section ----------
   Text on the left (normal section padding), photo full-bleed on the
   right — it runs edge-to-edge to the viewport border and stretches to
   match the text column's height, rather than sitting in an inset card. */
.story {
  background: var(--navy);
  color: var(--cream);
  padding: 0;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.story-copy {
  padding: 90px clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.story h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 20px; font-weight: 600; color: var(--white); }
.story h2 em { color: var(--light-blue); font-style: italic; }
.story p { color: rgba(250,248,245,0.78); line-height: 1.75; font-size: 16px; margin: 0 0 18px; }
.story-image { position: relative; overflow: hidden; min-height: 420px; }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% center; display: block; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-dark); color: var(--cream-soft); padding: 56px 32px 30px; }
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(129,173,222,0.15);
}
footer .logo-img { margin-bottom: 12px; }
footer p.blurb { font-size: 14px; line-height: 1.6; max-width: 320px; color: rgba(250,248,245,0.6); }
footer h4 { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light-blue); margin: 0 0 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; font-size: 14.5px; }
footer li a:hover { color: var(--light-blue); }
.footer-admin-link { color: inherit; cursor: default; }
.footer-admin-link:hover { color: inherit; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(250,248,245,0.42);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Product detail page (Shop) ---------- */
.breadcrumb { padding: 22px 32px 0; max-width: var(--max-width); margin: 0 auto; font-size: 13px; color: var(--text-soft); }
.breadcrumb a:hover { color: var(--accent-dark); }

.back-to-shop-row { max-width: var(--max-width); margin: 0 auto; padding: 26px 32px 0; }
.back-to-shop { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14px; font-weight: 600; }
.back-to-shop:hover { color: var(--accent-dark); }

.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.pd-gallery-main { position: relative; aspect-ratio: 1; background: var(--cream-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; border: 1px solid rgba(43,58,103,0.08); }
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(250,248,245,0.9);
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.pd-gallery-arrow:hover { background: var(--white); }
.pd-gallery-arrow.prev { left: 14px; }
.pd-gallery-arrow.next { right: 14px; }
.pd-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-gallery-thumbs button {
  aspect-ratio: 1;
  background: var(--cream-soft);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  width: 100%;
}
.pd-gallery-thumbs button.active { border-color: var(--accent-dark); }
.pd-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .eyebrow { color: var(--accent-dark); }
.pd-info h1 { font-family: var(--serif); font-size: 40px; margin: 6px 0 10px; color: var(--navy); font-weight: 600; }
.pd-info .tagline { font-style: italic; color: var(--accent-dark); font-size: 17px; margin-bottom: 20px; }
.pd-price { font-family: var(--serif); font-size: 30px; color: var(--navy); margin-bottom: 22px; }
.pd-price .unit {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sand); color: var(--navy); padding: 4px 10px; border-radius: var(--radius); margin-left: 10px; vertical-align: middle;
}
.pd-info p.body-copy { color: var(--text-soft); line-height: 1.75; font-size: 15.5px; margin-bottom: 22px; }

.option-block { margin: 26px 0; }
.option-label {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-weight: 600;
}
.option-label .selected-name { color: var(--text-soft); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--sans); }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid rgba(43,58,103,0.2); cursor: pointer; position: relative; padding: 0; }
.swatch.selected { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,58,103,0.15); }
/* Sage is previewable (clickable) even though it's not shipping yet —
   dimmed + labeled "soon" by default, but reads at full strength once
   picked so it's clear the preview actually worked. */
.swatch.soon { cursor: pointer; opacity: 0.6; }
.swatch.soon.selected { opacity: 1; }
.swatch.soon::after {
  content: "soon"; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap;
}

.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  min-width: 44px; padding: 9px 16px; border-radius: var(--radius); border: 1px solid rgba(43,58,103,0.25);
  background: #fff; color: var(--navy); font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer;
}
.size-btn:hover { border-color: var(--light-blue); }
.size-btn.selected { border-color: var(--navy); background: var(--navy); color: #fff; }

.qty-row { display: flex; align-items: center; gap: 18px; margin: 28px 0 22px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius); }
.qty-stepper button { width: 40px; height: 44px; background: none; border: none; font-size: 17px; cursor: pointer; color: var(--navy); }
.qty-stepper button:hover { background: var(--cream-soft); }
.qty-stepper span { width: 40px; text-align: center; font-weight: 600; }

.pd-actions { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 200px; }

.reassurance { font-size: 13px; color: var(--text-soft); display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }

.add-to-cart-msg { margin: 4px 0 14px; font-size: 13.5px; color: var(--navy); font-weight: 600; opacity: 0; transition: opacity .2s ease; }
.add-to-cart-msg.show { opacity: 1; }

/* Details moved to its own full-width block below the two-column layout */
.shop-details-section { background: var(--cream-soft); padding: 70px 32px 80px; }
.shop-details-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.shop-details-inner h3 { font-family: var(--serif); font-size: 24px; color: var(--navy); margin: 0 0 20px; font-weight: 600; }
.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(43,58,103,0.15); }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(43,58,103,0.15); font-size: 14.5px; }
.spec-list li span:first-child { color: var(--text-soft); }
.spec-list li span:last-child { color: var(--navy); font-weight: 600; text-align: right; }
.shop-closer { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; text-align: left; gap: 26px; }
.shop-closer-logo { width: clamp(56px, 7vw, 84px); height: auto; flex-shrink: 0; }
.shop-closer-big { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0; white-space: nowrap; }
.shop-closer-big em { color: var(--accent-dark); font-style: italic; }

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .shop-details-inner { grid-template-columns: 1fr; gap: 30px; }
  .shop-closer-logo { width: 56px; flex-shrink: 0; }
  .shop-closer-big { font-size: clamp(1.5rem, 5.2vw, 2.2rem); }
}

/* ---------- Cart page ---------- */
.cart-page { max-width: 920px; margin: 0 auto; padding: 60px 32px 120px; }
.cart-page h1 { font-family: var(--serif); font-size: 40px; color: var(--navy); margin-bottom: 40px; font-weight: 600; }

.cart-line { display: grid; grid-template-columns: 90px 1fr auto auto auto; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(43,58,103,0.1); }
.cart-line .thumb-small { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; background: var(--cream-soft); }
.cart-line .thumb-small img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 0 0 6px; font-weight: 600; }
.cart-line .meta { font-size: 13px; color: var(--text-soft); }
.cart-line .line-price { font-weight: 600; color: var(--navy); white-space: nowrap; }
.remove-link { font-size: 13px; color: var(--text-soft); text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; }
.remove-link:hover { color: #a33; }

.cart-summary { margin-top: 40px; background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); padding: 30px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 14px; color: var(--text-soft); }
.summary-row.total { font-weight: 700; color: var(--navy); font-size: 19px; padding-top: 14px; border-top: 1px solid rgba(43,58,103,0.1); }

.empty-cart { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-cart p { margin-bottom: 24px; font-size: 16px; }

@media (max-width: 780px) {
  .cart-line { grid-template-columns: 60px 1fr; grid-template-areas: "thumb name" "thumb price" "thumb remove"; }
}

/* ---------- Checkout ---------- */
.checkout-grid { max-width: var(--max-width); margin: 0 auto; padding: 50px 32px 120px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.checkout-form h1 { font-family: var(--serif); font-size: 34px; color: var(--navy); margin-bottom: 10px; font-weight: 600; }
.checkout-form .demo-note {
  background: #eef3fa; border: 1px solid var(--light-blue); color: var(--navy); font-size: 13px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 34px; line-height: 1.5;
}
.field-group { margin-bottom: 20px; }
.field-group label { display: block; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; }
.field-group input {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius); font-size: 15px; font-family: var(--sans); background: #fff;
}
.field-group input:focus { outline: none; border-color: var(--light-blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }

.order-summary { background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); padding: 30px; }
.order-summary h3 { font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 0 0 20px; font-weight: 600; }
.mini-line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(43,58,103,0.08); font-size: 14px; }
.mini-line .thumb-tiny { width: 52px; height: 52px; border-radius: var(--radius); background: var(--cream-soft); overflow: hidden; flex-shrink: 0; }
.mini-line .thumb-tiny img { width: 100%; height: 100%; object-fit: cover; }
.mini-line .grow { flex: 1; }
.mini-line .grow .name { color: var(--navy); font-weight: 600; }
.mini-line .grow .qty { color: var(--text-soft); font-size: 12.5px; }

@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- Order confirmation ---------- */
.confirmation { text-align: center; padding: 100px 32px; max-width: 560px; margin: 0 auto; }
.confirmation .check-badge {
  width: 68px; height: 68px; border-radius: 50%; background: var(--sage); color: #fff; font-size: 30px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px;
}
.confirmation h1 { font-family: var(--serif); font-size: 36px; color: var(--navy); margin-bottom: 14px; font-weight: 600; }
.confirmation p { color: var(--text-soft); line-height: 1.7; margin-bottom: 30px; }

/* ---------- FAQ page ---------- */
.page-hero { padding: 60px 32px 10px; max-width: var(--max-width); margin: 0 auto; }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); }

/* ---------- Our Story page ---------- */
.story-page-content { max-width: 1080px; margin: 0 auto; padding: 30px 32px 100px; }
.story-columns { column-width: 360px; column-gap: 60px; column-rule: 1px solid rgba(43,58,103,0.18); }
.story-columns p { margin: 0 0 22px; break-inside: avoid; color: var(--text-soft); line-height: 1.8; font-size: 15.5px; }
.story-lead { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; line-height: 1.5; }
.story-photo {
  break-inside: avoid; margin: 6px 0 26px; text-align: center;
}
.story-photo img {
  max-width: 240px; width: 100%; border-radius: 14px; box-shadow: 0 8px 24px rgba(43,58,103,0.18);
  border: 1px solid rgba(43,58,103,0.1);
  /* Images are block-level site-wide (see the global `img` rule), so
     text-align:center on the parent has no effect on the image itself
     — center it directly instead. */
  display: block; margin-left: auto; margin-right: auto;
}
.story-closer {
  font-family: var(--serif); font-size: 1.4rem; color: var(--navy); font-weight: 600; text-align: center;
  margin-top: 10px; break-inside: avoid;
}

.faq-list { max-width: 820px; margin: 0 auto; padding: 20px 32px 80px; }
.faq-item { background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 26px; font-family: var(--serif);
  font-size: 18px; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question .icon { flex-shrink: 0; font-size: 1.3rem; color: var(--accent-dark); transition: transform .2s ease; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 26px; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 22px; }
.faq-answer p { color: var(--text-soft); margin: 0; }
.faq-answer a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Photo bleeds edge-to-edge on the left (matching the About section's
   treatment on the right); the card keeps its own padding on the right. */
.contact-section { background: var(--navy); color: var(--cream); padding: 0; margin-top: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
}
.contact-image { position: relative; overflow: hidden; min-height: 420px; }
.contact-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.contact-card {
  padding: 70px clamp(32px, 6vw, 72px);
  max-width: 460px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-card h3 { color: var(--white); font-family: var(--serif); font-weight: 600; }
.contact-card p { color: rgba(250,248,245,0.75); }
.contact-card input, .contact-card textarea { border-radius: var(--radius) !important; border: none; font-family: var(--sans); }

@media (max-width: 780px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { padding: 56px 28px; }
  .story-image { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-image { min-height: 280px; }
  .contact-card { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Reviews (shop page form + list, homepage highlights) ---------- */
.reviews-section { background: var(--cream); padding: 90px 32px; }
.reviews-inner { max-width: var(--max-width); margin: 0 auto; }
.reviews-head { max-width: 640px; margin: 0 0 44px; }
.reviews-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 600; color: var(--navy); margin: 8px 0 0; }

.reviews-top-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; margin-bottom: 50px; align-items: start; }

.review-form-card {
  background: #fff;
  border: 1px solid rgba(43,58,103,0.1);
  border-radius: var(--radius);
  padding: 32px clamp(24px, 4vw, 40px);
}
.review-form-card h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 0 0 20px; font-weight: 600; }
.review-form-card textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius);
  font-size: 15px; font-family: var(--sans); background: #fff; resize: vertical;
}
.review-form-card textarea:focus, .review-form-card input:focus { outline: none; border-color: var(--light-blue); }
.char-count { text-transform: none; letter-spacing: normal; font-size: 12px; color: var(--text-soft); float: right; }
.review-msg { margin-top: 14px; font-size: 14px; color: var(--accent-dark); font-weight: 600; opacity: 0; transition: opacity 0.2s ease; }
.review-msg.show { opacity: 1; }

.star-input { display: flex; gap: 6px; font-size: 26px; }
.star-input button {
  background: none; border: none; cursor: pointer; padding: 0; color: rgba(43,58,103,0.25); line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-input button:hover { transform: scale(1.1); }
.star-input button.on { color: #E8B93F; }

/* Amazon-style ratings breakdown, sits beside the "leave a review" card */
.ratings-chart-card {
  background: #fff;
  border: 1px solid rgba(43,58,103,0.1);
  border-radius: var(--radius);
  padding: 32px clamp(24px, 4vw, 40px);
  height: 100%;
  box-sizing: border-box;
}
.ratings-chart-card h3 { font-family: var(--serif); font-size: 20px; color: var(--navy); margin: 0 0 18px; font-weight: 600; }
.ratings-overall { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.ratings-overall-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--navy); }
.ratings-overall-stars { color: #E8B93F; font-size: 16px; letter-spacing: 2px; }
.ratings-overall-count { color: var(--text-soft); font-size: 13px; }
.ratings-chart { display: flex; flex-direction: column; gap: 10px; }
.ratings-chart-row { display: grid; grid-template-columns: 52px 1fr 40px 28px; align-items: center; gap: 10px; }
.ratings-chart-row .star-label { font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.ratings-chart-row .bar-track { background: rgba(43,58,103,0.08); border-radius: 999px; height: 8px; overflow: hidden; }
.ratings-chart-row .bar-fill { background: #E8B93F; height: 100%; border-radius: 999px; }
.ratings-chart-row .star-pct { font-size: 12.5px; color: var(--text-soft); text-align: right; }
.ratings-chart-row .star-arrow {
  background: none; border: none; cursor: pointer; color: var(--navy); font-size: 18px; line-height: 1;
  justify-self: center; padding: 4px; transition: color 0.15s ease, transform 0.15s ease;
}
.ratings-chart-row .star-arrow:hover { color: var(--accent-dark); transform: translateX(2px); }
.ratings-reset-row { margin-top: 18px; }
.ratings-reset-row button {
  background: none; border: none; cursor: pointer; color: var(--accent-dark); font-size: 13.5px; font-weight: 600; padding: 0;
}
.ratings-reset-row button:hover { text-decoration: underline; }
.ratings-scroll-hint { margin-top: 8px; font-size: 13px; color: var(--text-soft); }

.reviews-list-label { font-family: var(--serif); font-size: 20px; color: var(--navy); font-weight: 600; margin: 0 0 20px; }

.reviews-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: #fff;
  border: 1px solid rgba(43,58,103,0.1);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.review-stars { color: #E8B93F; font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; }
.review-text { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 0 0 14px; }
.review-name { color: var(--text-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

.home-reviews { padding: 90px 32px; background: var(--cream); text-align: center; }
.home-reviews-inner { max-width: var(--max-width); margin: 0 auto; }
.home-reviews h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 600; color: var(--navy); margin: 8px 0 44px; }
.home-reviews .reviews-list { margin-bottom: 40px; text-align: left; }

@media (max-width: 860px) {
  .reviews-list { grid-template-columns: 1fr; }
  .reviews-top-grid { grid-template-columns: 1fr; }
}

/* ---------- Sweat Club page ---------- */
.quiz-section { padding: 20px 32px 36px; }
.quiz-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--navy);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.quiz-card .eyebrow { color: var(--light-blue); }
.quiz-card h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--cream); font-weight: 600; margin: 10px 0 14px; }
.quiz-card p { color: rgba(250,248,245,0.75); max-width: 480px; margin: 0 auto 28px; }
.quiz-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.quiz-card .btn-outline { border-color: rgba(250,248,245,0.4); color: var(--cream); }
.quiz-card .btn-outline:hover { background: rgba(250,248,245,0.1); }
.quiz-progress-row {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; position: relative;
}
.quiz-progress {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-blue);
  font-weight: 600;
}
.quiz-back-btn {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(250,248,245,0.65); font-family: var(--sans);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 8px; display: flex; align-items: center; gap: 4px;
  transition: color 0.15s ease;
}
.quiz-back-btn:hover { color: var(--cream); }
.quiz-question { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 1.9rem); color: var(--cream); font-weight: 600; margin: 0 0 26px; }
.quiz-answers { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin: 0 auto; }
.quiz-answer-btn {
  background: rgba(250,248,245,0.06); border: 1px solid rgba(250,248,245,0.25); border-radius: var(--radius);
  color: var(--cream); font-family: var(--sans); font-size: 15px; padding: 14px 20px; text-align: left;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.quiz-answer-btn:hover { background: rgba(250,248,245,0.14); border-color: var(--light-blue); }
.quiz-result-name { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.8rem); color: var(--cream); font-weight: 600; margin: 10px 0 12px; }
.quiz-result-tagline { font-style: italic; color: var(--light-blue); font-size: 17px; max-width: 480px; margin: 0 auto 28px; }
.quiz-towel-match {
  background: rgba(250,248,245,0.06); border: 1px solid rgba(250,248,245,0.2); border-radius: var(--radius);
  padding: 22px 26px; max-width: 420px; margin: 0 auto 28px;
}
.quiz-towel-label {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light-blue); font-weight: 600;
}
.quiz-towel-color { font-family: var(--serif); font-size: 22px; color: var(--cream); font-weight: 600; margin: 6px 0 8px; }
.quiz-towel-reason { color: rgba(250,248,245,0.75); font-size: 14.5px; margin: 0; max-width: none; }

.signup-section { padding: 0 32px 36px; }
.signup-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--cream-soft);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
}
.signup-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: clamp(40px, 6vw, 64px);
}
.signup-card h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--navy); font-weight: 600; margin: 10px 0 26px; line-height: 1.35; }
.signup-image { position: relative; min-height: 320px; overflow: hidden; }
.signup-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transform-origin: center; }
.signup-form { display: flex; gap: 12px; max-width: 440px; margin: 0; flex-wrap: wrap; }
.signup-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid rgba(43,58,103,0.2);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--sans);
  background: #fff;
}
.signup-form input:focus { outline: none; border-color: var(--light-blue); }

@media (max-width: 860px) {
  .signup-grid { grid-template-columns: 1fr; min-height: 0; }
  .signup-image { min-height: 260px; order: -1; }
}

.hydration-section { padding: 0 32px 90px; }
.hydration-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.hydration-intro-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--light-blue);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.hydration-intro-card .eyebrow { color: var(--navy-dark); }
.hydration-intro-card h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--navy-dark); font-weight: 600; margin: 10px 0 14px; }
.hydration-intro-card p { color: rgba(27,35,64,0.72); max-width: 480px; margin: 0 auto 28px; }
.hydration-intro-card .btn-accent { background: var(--navy); }
.hydration-intro-card .btn-accent:hover { background: var(--navy-dark); }

.hydration-calculator { text-align: center; margin-top: 50px; }

.hydration-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; text-align: left; margin-bottom: 40px; }
.sport-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sport-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 10px; border: 1px solid rgba(43,58,103,0.15); border-radius: var(--radius);
  background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sport-icon { font-size: 26px; }
.sport-btn:hover { border-color: var(--light-blue); }
.sport-btn.selected { border-color: var(--navy); background: var(--cream-soft); }
#sport-grid.sport-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
#sport-grid.sport-grid .sport-btn { padding: 12px 6px; font-size: 11.5px; gap: 5px; }
#sport-grid.sport-grid .sport-icon { font-size: 20px; }
@media (max-width: 860px) {
  #sport-grid.sport-grid { grid-template-columns: repeat(3, 1fr); }
}

.hydration-controls { display: flex; flex-direction: column; gap: 26px; }
.control-group label { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-soft); margin-bottom: 10px; }
.control-group input[type="range"] { width: 100%; accent-color: var(--light-blue); }
.pill-select { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-select button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(43,58,103,0.2);
  background: #fff; color: var(--navy); font-size: 13.5px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill-select button.selected { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.hydration-result {
  background: var(--navy);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 48px);
  color: var(--cream);
}
.hydration-amount { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 600; }
.hydration-amount .hydration-oz { font-size: 1.1rem; font-family: var(--sans); font-weight: 400; color: rgba(250,248,245,0.7); }
.hydration-tagline { color: var(--light-blue); font-weight: 600; margin: 6px 0 26px; font-size: 15.5px; }
.hydration-split { display: flex; justify-content: center; gap: clamp(20px, 6vw, 60px); margin-bottom: 22px; flex-wrap: wrap; }
.hydration-split div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hydration-split span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(250,248,245,0.6); }
.hydration-split strong { font-size: 20px; }
.hydration-electrolytes { font-size: 14.5px; color: rgba(250,248,245,0.85); margin-bottom: 20px; }
.hydration-caveat { font-size: 12.5px; color: rgba(250,248,245,0.55); max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* ---------- Sweat Club: sport poll (pie chart left, options right) ---------- */
.poll-section { padding: 0 32px 90px; text-align: center; }
.poll-inner { max-width: var(--max-width); margin: 0 auto; }
.poll-inner h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--navy); font-weight: 600; margin: 8px 0 14px; }
.poll-inner > p { color: var(--text-soft); max-width: 500px; margin: 0 auto 40px; }
.poll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; text-align: left; }
.poll-chart-side { display: flex; flex-direction: column; align-items: center; gap: 26px; }
/* Split into two layers on purpose: the outer wrap does the circular
   clipping (via overflow, not border-radius background-clipping) and
   draws the thin ring (via box-shadow, a separate paint pass), while
   the inner .poll-pie is just a plain square that JS paints the
   conic-gradient onto. Combining the circular clip + a border + a
   conic-gradient on one single element is what caused the thin
   off-color sliver at the top/bottom/left/right of the circle — a
   well-known browser anti-aliasing artifact where the border and the
   gradient's own edge rounding don't quite agree at those four points. */
.poll-pie-wrap {
  width: 320px; height: 320px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; box-shadow: 0 0 0 1px rgba(43,58,103,0.08);
}
.poll-pie { width: 100%; height: 100%; background: var(--cream-soft); }
/* Column-count (not grid) so the legend reads top-to-bottom down the
   left column, then top-to-bottom down the right column — a CSS grid
   would fill row by row and jump between columns as you read down. */
.poll-legend { column-count: 2; column-gap: 22px; width: 100%; max-width: 380px; }
.poll-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); break-inside: avoid; margin-bottom: 9px; }
.poll-legend-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.poll-legend-name { flex: 1; }
.poll-legend-pct { font-weight: 600; color: var(--navy); }
/* Flex + wrap (not grid) so a trailing incomplete row of options
   centers itself instead of hugging the left edge. */
.poll-options-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.poll-options-grid .sport-btn { flex: 0 1 calc(33.333% - 7px); min-width: 92px; padding: 13px 6px; font-size: 12px; }
.poll-options-grid .sport-btn .sport-icon { font-size: 19px; }
.poll-submit-btn { width: 100%; }

@media (max-width: 860px) {
  .poll-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 500px) {
  .poll-legend { column-count: 1; }
  .poll-options-grid .sport-btn { flex: 0 1 calc(50% - 7px); }
}

.donkey-section { padding: 80px 32px 40px; background: var(--sand); }
.donkey-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.donkey-text-side h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--navy); font-weight: 600; margin: 8px 0 14px; }
.donkey-text-side p { color: var(--text-soft); margin-bottom: 26px; }
.donkey-suggest-tag {
  display: block; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 700; margin-bottom: 10px;
}
.bulletin-board {
  background: var(--navy-dark);
  border-radius: var(--radius);
  padding: 46px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  position: relative;
}
.bulletin-board-long { min-height: 340px; padding-top: 56px; }
.bulletin-patch {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  padding: 18px 26px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transform: rotate(-2deg);
  position: relative;
}
.bulletin-patch:nth-of-type(2n) { transform: rotate(2deg); }
.bulletin-patch::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bulletin-examples-label {
  position: absolute;
  top: 16px;
  left: 20px;
  color: rgba(250,248,245,0.5);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.bulletin-expand-arrow {
  position: absolute;
  bottom: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light-blue);
  padding: 8px;
}
.bulletin-expand-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}
.bulletin-expand-arrow:hover .bulletin-expand-text,
.bulletin-expand-arrow:focus-visible .bulletin-expand-text {
  max-width: 160px;
  opacity: 1;
  margin-right: 8px;
}
.bulletin-expand-icon { font-size: 20px; line-height: 1; transition: transform 0.2s ease; }
.bulletin-expand-arrow:hover .bulletin-expand-icon { transform: translateX(3px); }

/* Full-page bulletin overlay */
.bulletin-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 300;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 90px 32px 60px;
  overflow-y: auto;
}
.bulletin-overlay.open { opacity: 1; visibility: visible; }
.bulletin-overlay-close {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(250,248,245,0.12);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.bulletin-overlay-close:hover { background: rgba(250,248,245,0.22); }
.bulletin-overlay-inner { max-width: var(--max-width); width: 100%; text-align: center; height: fit-content; }
.bulletin-overlay-inner h2 { font-family: var(--serif); color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin: 8px 0 14px; }
.bulletin-vote-instructions { color: rgba(250,248,245,0.7); max-width: 480px; margin: 0 auto 36px; font-size: 14.5px; }
.bulletin-overlay-board { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.bulletin-patch.votable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; border: 3px solid transparent; }
.bulletin-patch.votable:hover { transform: rotate(0deg) translateY(-3px); }
.bulletin-patch.votable.selected { border-color: var(--light-blue); box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(129,173,222,0.4); }
.bulletin-patch.voted-locked { opacity: 0.55; cursor: default; }
.bulletin-patch.voted-locked.selected { opacity: 1; border-color: var(--light-blue); }
.bulletin-patch-votes {
  display: block; font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em; color: var(--text-soft); margin-top: 6px;
}
.bulletin-patch-your-vote {
  position: absolute; top: -10px; right: -10px; background: var(--light-blue); color: var(--navy);
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.bulletin-vote-actions { margin-top: 40px; }
.bulletin-vote-status { color: var(--light-blue); font-weight: 600; margin: 20px 0 0; font-size: 15px; }
.bulletin-patch.bulletin-patch-long {
  min-width: 260px;
  padding: 24px 30px 30px 28px;
  text-align: left;
}
.bulletin-patch-word { display: block; font-size: 27px; }
.bulletin-patch-name {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.sticker-section { padding: 50px 32px 50px; text-align: center; border-top: 1px solid rgba(43,58,103,0.14); }
.sticker-inner { max-width: var(--max-width); margin: 0 auto; }
.sticker-inner h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--navy); font-weight: 600; margin: 8px 0 14px; }
.sticker-inner p { color: var(--text-soft); max-width: 500px; margin: 0 auto 36px; }
.sticker-examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.sticker-example { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sticker-photo { position: relative; aspect-ratio: 1; }
.sticker-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sticker-caption {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 8px 10px;
}
.sticker-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.sticker-form input[type="text"] {
  padding: 12px 16px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius);
  font-size: 14px; font-family: var(--sans); background: #fff; min-width: 200px;
}
.sticker-form input[type="text"]:focus { outline: none; border-color: var(--light-blue); }
.sticker-upload-label {
  display: inline-flex; align-items: center; padding: 12px 20px; border: 1px dashed rgba(43,58,103,0.35);
  border-radius: var(--radius); color: var(--navy); font-size: 14px; cursor: pointer; background: #fff;
}
.sticker-upload-label:hover { border-color: var(--light-blue); }
.sticker-msg-below { margin: -14px 0 24px; text-align: center; }
.sticker-gallery-link {
  display: inline-flex; align-items: center; gap: 10px;
}
.sticker-gallery-link-icon {
  display: inline-block; font-size: 18px; transition: transform 0.15s ease;
}
.sticker-gallery-link:hover .sticker-gallery-link-icon { transform: translateX(4px); }

.donkey-anon-note { color: var(--text-soft); font-size: 13px; line-height: 1.5; margin: -8px 0 20px; }

.sticker-gallery-section { padding: 20px 32px 100px; max-width: var(--max-width); margin: 0 auto; }
.sticker-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sticker-gallery-grid .sticker-photo { aspect-ratio: 4/3; }

@media (max-width: 860px) {
  .hydration-grid { grid-template-columns: 1fr; }
  .donkey-inner { grid-template-columns: 1fr; }
  .sticker-examples { grid-template-columns: repeat(2, 1fr); }
  .sticker-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sweat Club page hero (full-bleed photo, left-justified text) ---------- */
.club-hero {
  position: relative;
  overflow: hidden;
  min-height: 58vh;
  display: flex;
  align-items: center;
  padding: 100px 32px;
  box-sizing: border-box;
}
.club-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  z-index: 0;
}
.club-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Text sits on the left here (opposite of the homepage hero), so the
     fade runs strong-navy on the left, easing toward clear on the right
     where the trail photo should read clean. */
  background-image: linear-gradient(90deg,
    rgba(27,35,64,0.85) 0%,
    rgba(27,35,64,0.6) 45%,
    rgba(27,35,64,0.05) 100%
  );
}
.club-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  text-align: left;
  text-shadow: 0 2px 18px rgba(15,20,38,0.35);
}
.club-hero-inner .eyebrow { color: var(--light-blue); }
.club-hero-inner h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 3.8rem);
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 20px;
}
.club-hero-lede { color: rgba(250,248,245,0.85); font-size: 17px; line-height: 1.6; max-width: 480px; margin: 0; }

@media (max-width: 860px) {
  .club-hero { min-height: 0; padding: 70px 28px 60px; }
  .club-hero-bg { object-position: 38% center; }
  .club-hero::before {
    background-image: linear-gradient(180deg, rgba(27,35,64,0.6) 0%, rgba(27,35,64,0.82) 100%);
  }
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */

/* ---------- Passcode gate (admin-login.html) ---------- */
.admin-gate-body { background: var(--navy-dark); }
.admin-gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.admin-gate-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(15,20,38,0.4);
}
.admin-gate-logo { height: 64px; width: auto; margin: 0 auto 12px; display: block; }
.admin-gate-wordmark { height: 24px; width: auto; margin: 0 auto 24px; display: block; }
.admin-gate-card h1 { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); font-weight: 600; margin: 4px 0 8px; }
.admin-gate-sub { color: var(--text-soft); font-size: 14.5px; margin: 0 0 26px; }
.admin-gate-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.admin-gate-form input {
  padding: 14px 16px; border: 1px solid rgba(43,58,103,0.18); border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; background: #fff; width: 100%;
}
.admin-gate-form input:focus { outline: 2px solid var(--light-blue); outline-offset: 1px; }
.admin-gate-form .btn { width: 100%; }
.admin-gate-error { display: none; color: #B3423B; font-size: 13px; text-align: left; margin-top: -2px; }
.admin-gate-error.show { display: block; }
.admin-gate-back { display: block; width: 100%; font-size: 12.5px; line-height: 1.45; padding: 16px 18px; white-space: normal; text-align: center; margin-top: 6px; }

/* ---------- Admin: sticky "back to public site" banner + header wrapper ----------
   Wrapping the banner and header together in one sticky shell means the
   pair sticks as a unit, so the back-to-public link stays reachable no
   matter how far down the page you've scrolled. */
.admin-sticky-shell { position: sticky; top: 0; z-index: 60; }
.admin-sticky-shell header.site { position: static; }
.admin-topbar {
  background: var(--navy-dark);
  color: rgba(250,248,245,0.75);
  text-align: center;
  padding: 9px 24px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.admin-topbar a { color: var(--light-blue); font-weight: 600; }
.admin-topbar a:hover { color: var(--cream); }

/* ---------- Admin shell hero + start-page button grid ---------- */
.admin-hero { background: var(--navy-dark); padding: 70px 32px 60px; text-align: center; }
.admin-hero .eyebrow { color: var(--light-blue); }
.admin-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--cream); font-weight: 600; margin: 6px 0 18px; }
.admin-hero p { color: rgba(250,248,245,0.75); max-width: 520px; margin: 0 auto 28px; }
.admin-hero .btn-outline { border-color: rgba(250,248,245,0.4); color: var(--cream); }
.admin-hero .btn-outline:hover { background: rgba(250,248,245,0.1); }

.admin-button-grid-section { padding: 60px 32px 90px; max-width: var(--max-width); margin: 0 auto; }
.admin-button-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.admin-panel-card {
  background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.admin-panel-card:hover { box-shadow: 0 16px 34px rgba(43,58,103,0.12); transform: translateY(-3px); }
.admin-panel-icon { font-size: 2.1rem; }
.admin-panel-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); font-weight: 600; margin: 0; }
.admin-panel-card p { font-size: 13px; color: var(--text-soft); margin: 0; }
@media (max-width: 860px) { .admin-button-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .admin-button-grid { grid-template-columns: 1fr; } }

/* ---------- Moderation pages: shared section/head ---------- */
.admin-section { max-width: var(--max-width); margin: 0 auto; padding: 20px 32px 60px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-section-head h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; margin: 0; }
.admin-count { font-size: 13px; color: var(--text-soft); }

/* Undecided strip (max 5) + expand-to-all arrow */
.admin-undecided-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.admin-undecided-cards { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.admin-expand-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; color: var(--navy);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px;
}
.admin-expand-arrow .admin-expand-icon { font-size: 22px; transition: transform .2s ease; }
.admin-expand-arrow:hover .admin-expand-icon { transform: translateX(4px); }

/* Full-page expand overlay (mirrors the public bulletin overlay pattern) */
.admin-overlay {
  position: fixed; inset: 0; background: var(--navy-dark); z-index: 400;
  display: flex; justify-content: center; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 90px 32px 60px; overflow-y: auto;
}
.admin-overlay.open { opacity: 1; visibility: visible; }
.admin-overlay-close {
  position: fixed; top: 24px; right: 28px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: rgba(250,248,245,0.12); color: var(--cream); font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.admin-overlay-close:hover { background: rgba(250,248,245,0.22); }
.admin-overlay-inner { max-width: var(--max-width); width: 100%; text-align: center; height: fit-content; }
.admin-overlay-inner h2 { font-family: var(--serif); color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; margin: 8px 0 40px; }
.admin-overlay-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.admin-overlay-grid .admin-card { max-width: 280px; cursor: default; }
.admin-overlay-empty { color: rgba(250,248,245,0.6); }

/* Submission card — used in the undecided strip, the 3-column board, and the overlay */
.admin-card {
  background: #fff; border: 1px solid rgba(43,58,103,0.12); border-radius: var(--radius);
  padding: 18px 18px 16px; width: 100%; max-width: 260px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; cursor: grab;
}
.admin-card:active { cursor: grabbing; }
.admin-card.dragging { opacity: 0.4; }
.admin-card-name { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); font-weight: 600; }
.admin-card-meta { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.admin-card-photo { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--cream-soft); cursor: zoom-in; }
.admin-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-card-actions { display: flex; gap: 8px; margin-top: 6px; }
.admin-action-btn {
  flex: 1; border: none; border-radius: var(--radius); padding: 9px 0; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: opacity .15s ease;
}
.admin-action-btn:hover { opacity: 0.82; }
.admin-action-approve { background: #3F7D53; color: #fff; }
.admin-action-deny { background: #B3423B; color: #fff; }
.admin-action-unsure { background: #9aa0ab; color: #fff; }

/* 3-column board: Approved / Denied / Not Sure */
.admin-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.admin-board-col { background: var(--cream-soft); border-radius: var(--radius); padding: 20px 16px; min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.admin-board-col.drag-over { outline: 2px dashed var(--accent-dark); outline-offset: -4px; }
.admin-board-col-head { display: flex; justify-content: space-between; align-items: center; }
.admin-board-col-head h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); font-weight: 600; margin: 0; }
.admin-board-cards { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.admin-board-cards .admin-card { max-width: none; cursor: grab; }
.admin-board-empty { font-size: 13px; color: var(--text-soft); text-align: center; padding: 20px 0; }
.admin-clear-btn {
  align-self: center; margin-top: auto; background: none; border: 1px solid rgba(43,58,103,0.2);
  color: var(--text-soft); border-radius: var(--radius); padding: 8px 18px; font-size: 12.5px; cursor: pointer;
}
.admin-clear-btn:hover { background: rgba(43,58,103,0.05); }
@media (max-width: 900px) { .admin-board { grid-template-columns: 1fr; } }

/* Winner section (donkey names page only) */
.admin-winner-section { max-width: 640px; margin: 60px auto 0; background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); padding: 30px 28px; }
.admin-winner-section h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin: 0 0 16px; }
.admin-winner-search { position: relative; margin-bottom: 18px; }
.admin-winner-search input { width: 100%; padding: 14px 16px; border: 1px solid rgba(43,58,103,0.18); border-radius: var(--radius); font-family: var(--sans); font-size: 15px; }
.admin-winner-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff;
  border: 1px solid rgba(43,58,103,0.15); border-radius: var(--radius); max-height: 220px; overflow-y: auto;
  z-index: 20; box-shadow: 0 12px 26px rgba(43,58,103,0.12);
}
.admin-winner-option { padding: 11px 16px; cursor: pointer; font-size: 14.5px; color: var(--navy); }
.admin-winner-option:hover, .admin-winner-option.active { background: var(--cream-soft); }
.admin-winner-empty { padding: 11px 16px; font-size: 13.5px; color: var(--text-soft); }
.admin-winner-selected { font-size: 13.5px; color: var(--text-soft); margin-bottom: 16px; }
.admin-winner-selected strong { color: var(--navy); }

/* ---------- Banner editor page ---------- */
.admin-banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: var(--max-width); margin: 0 auto; padding: 20px 32px 80px; }
.admin-banner-block { background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); padding: 30px 28px; }
.admin-banner-block h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin: 0 0 16px; }
.admin-banner-current { background: var(--navy-dark); color: var(--cream-soft); padding: 16px 18px; border-radius: var(--radius); font-size: 14.5px; text-align: center; }
.admin-banner-block textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(43,58,103,0.18); border-radius: var(--radius);
  font-family: var(--sans); font-size: 14.5px; resize: vertical; min-height: 90px; margin-bottom: 16px;
}
.admin-banner-saved-msg { margin-top: 14px; font-size: 13.5px; color: #3F7D53; font-weight: 600; opacity: 0; transition: opacity .2s ease; }
.admin-banner-saved-msg.show { opacity: 1; }
@media (max-width: 800px) { .admin-banner-grid { grid-template-columns: 1fr; } }

/* ---------- Counters page ---------- */
.admin-counters-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: var(--max-width); margin: 0 auto; padding: 20px 32px 80px;
}
.admin-counter-card {
  background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
}
.admin-counter-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); font-weight: 600;
}
.admin-counter-value {
  font-family: var(--serif); font-size: 2.6rem; color: var(--navy); font-weight: 600; margin: 10px 0 6px;
}
.admin-counter-sub { font-size: 13px; color: var(--text-soft); }
@media (max-width: 900px) { .admin-counters-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .admin-counters-grid { grid-template-columns: 1fr; } }

/* ---------- Products page stub (kept for reference; superseded by the CRUD system below) ---------- */
.admin-stub-section { max-width: 640px; margin: 0 auto; padding: 40px 32px 100px; text-align: center; }
.admin-stub-section p { color: var(--text-soft); line-height: 1.7; font-size: 15.5px; }
.admin-stub-badge {
  display: inline-block; background: var(--sand); color: var(--navy); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius); margin-bottom: 20px;
}

/* ---------- Admin: Products list ---------- */
.admin-product-list-section { max-width: var(--max-width); margin: 0 auto; padding: 20px 32px 90px; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.admin-product-card {
  background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease; position: relative; cursor: grab;
}
.admin-product-card:hover { box-shadow: 0 16px 34px rgba(43,58,103,0.12); transform: translateY(-3px); }
.admin-product-card.dragging { opacity: 0.4; }
.admin-product-card.drag-over { box-shadow: 0 0 0 2px var(--light-blue); }
.admin-product-drag-handle {
  position: absolute; top: 8px; left: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.85); color: var(--navy); font-size: 13px; line-height: 24px; text-align: center;
  letter-spacing: -2px;
}
.admin-product-thumb { aspect-ratio: 4/3; background: var(--cream-soft); position: relative; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-product-status-tag {
  position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius);
}
.admin-product-status-tag.active { background: #3F7D53; color: #fff; }
.admin-product-status-tag.inactive { background: #9aa0ab; color: #fff; }
.admin-product-card-info { padding: 16px 18px 20px; flex: 1; }
.admin-product-card-info h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin: 0 0 4px; }
.admin-product-card-info .meta { font-size: 12.5px; color: var(--text-soft); }
.admin-add-product-card {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  border: 1px dashed rgba(43,58,103,0.3); border-radius: var(--radius); min-height: 180px;
  color: var(--navy); text-decoration: none; font-weight: 600;
}
.admin-add-product-card:hover { border-color: var(--light-blue); background: rgba(129,173,222,0.06); }
.admin-add-product-card .plus { font-size: 2rem; line-height: 1; }

/* ---------- Admin: product Add/Edit form ---------- */
.admin-form-section { background: #fff; border: 1px solid rgba(43,58,103,0.1); border-radius: var(--radius); padding: 30px 28px; margin-bottom: 22px; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.admin-form-section h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin: 0 0 20px; }
.admin-form-section textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius);
  font-size: 15px; font-family: var(--sans); background: #fff; resize: vertical;
}
.admin-form-section textarea:focus, .admin-form-section input:focus { outline: none; border-color: var(--light-blue); }
.admin-form-hint { font-size: 12.5px; color: var(--text-soft); margin: -10px 0 18px; }

.admin-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(43,58,103,0.08); }
.admin-toggle-row:last-child { border-bottom: none; }
.admin-toggle-row .label { font-weight: 600; color: var(--navy); font-size: 14.5px; }
.admin-toggle-row .sub { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.admin-toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; display: inline-block; }
.admin-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.admin-toggle .track { position: absolute; inset: 0; background: rgba(43,58,103,0.2); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.admin-toggle .track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.admin-toggle input:checked + .track { background: #3F7D53; }
.admin-toggle input:checked + .track::before { transform: translateX(20px); }

.admin-dropzone {
  border: 1px dashed rgba(43,58,103,0.35); border-radius: var(--radius); padding: 24px; text-align: center;
  cursor: pointer; background: var(--cream-soft); transition: border-color .15s ease;
}
.admin-dropzone:hover, .admin-dropzone.drag-over { border-color: var(--light-blue); }
.admin-dropzone input[type="file"] { display: none; }
.admin-dropzone-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-dropzone-thumb { position: relative; width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid rgba(43,58,103,0.15); }
.admin-dropzone-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-dropzone-thumb .remove-x {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(27,35,64,0.75); color: #fff; border: none; font-size: 12px; cursor: pointer; line-height: 1;
}

.admin-colorway-row { display: grid; grid-template-columns: 2fr 1fr auto auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.admin-colorway-row input[type="text"] { padding: 11px 14px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius); font-size: 14px; width: 100%; }
.admin-colorway-row input[type="color"] { width: 44px; height: 40px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius); padding: 2px; cursor: pointer; }
.admin-colorway-soon { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); white-space: nowrap; }
.admin-remove-row-btn { background: none; border: none; color: #B3423B; cursor: pointer; font-size: 18px; line-height: 1; padding: 6px; }
.admin-add-row-btn { background: none; border: 1px dashed rgba(43,58,103,0.3); border-radius: var(--radius); padding: 10px 16px; color: var(--navy); font-size: 13.5px; cursor: pointer; }
.admin-add-row-btn:hover { border-color: var(--light-blue); }

.admin-colorway-photo-block {
  border: 1px solid rgba(43,58,103,0.14); border-radius: var(--radius); padding: 20px 20px 4px; margin-bottom: 16px; background: var(--cream-soft);
}
.admin-colorway-photo-block h4 { font-family: var(--serif); font-size: 1rem; color: var(--navy); margin: 0 0 14px; }

.admin-detail-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.admin-detail-row input[type="text"] { padding: 11px 14px; border: 1px solid rgba(43,58,103,0.2); border-radius: var(--radius); font-size: 14px; width: 100%; }

.admin-deal-fields { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(43,58,103,0.08); display: none; }
.admin-deal-fields.show { display: block; }

.admin-form-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.admin-save-error {
  max-width: var(--max-width); margin: 14px auto 0; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(179,66,59,0.08); border: 1px solid rgba(179,66,59,0.3); color: #8a3230; font-size: 14px;
}
.admin-remove-section {
  margin-top: 10px; padding: 24px 28px; text-align: center; max-width: var(--max-width); margin-left: auto; margin-right: auto;
  border: 1px solid rgba(179,66,59,0.25); border-radius: var(--radius); background: rgba(179,66,59,0.03);
}
.admin-remove-section p { color: var(--text-soft); font-size: 13.5px; margin-bottom: 14px; }

.admin-preview-overlay { position: fixed; inset: 0; background: var(--cream); z-index: 500; overflow-y: auto; display: none; }
.admin-preview-overlay.open { display: block; }
.admin-preview-close {
  position: fixed; top: 20px; left: 24px; width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(43,58,103,0.12); color: var(--navy); font-size: 24px; cursor: pointer; z-index: 501;
  display: flex; align-items: center; justify-content: center;
}
.admin-preview-close:hover { background: rgba(43,58,103,0.2); }
.admin-preview-banner { background: var(--sand); color: var(--navy); text-align: center; padding: 10px; font-size: 13px; font-weight: 600; }

.preview-cart-inner { max-width: 720px; margin: 0 auto; padding: 50px 32px 100px; }
.preview-cart-inner h2 { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); margin: 0 0 24px; }
.preview-cart-line {
  display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid rgba(43,58,103,0.1);
}
.preview-cart-line .thumb-small { width: 70px; height: 70px; border-radius: var(--radius); overflow: hidden; background: var(--cream-soft); }
.preview-cart-line .thumb-small img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-cart-line-info h4 { font-family: var(--serif); font-size: 17px; color: var(--navy); margin: 0 0 4px; font-weight: 600; }
.preview-cart-line-info .meta { font-size: 13px; color: var(--text-soft); }
.preview-cart-line .line-price { font-weight: 600; color: var(--navy); white-space: nowrap; }

@media (max-width: 700px) {
  .admin-colorway-row { grid-template-columns: 1fr; }
  .admin-detail-row { grid-template-columns: 1fr; }
}
