/* ============================ UNIFIT styles ============================ */
/* Brand tokens taken from the UniFit Brand Identity Deck:
   C5D200 lime · 282C65 navy · 5A76B9 blue · 8C8FA0 grey · C6CCE5 periwinkle
   Fonts: Sinera (wordmark / display) · Segoe UI (everything else)            */

:root {
  /* --- brand palette --- */
  --navy: #282C65;
  --navy-deep: #1d2049;
  --blue: #5a76b9;
  --blue-ink: #44579b;          /* darkened blue, safe for small text */
  --lime: #c5d200;
  --lime-deep: #aab600;
  --grey: #8c8fa0;
  --periwinkle: #c6cce5;
  --mint: #f6ffe2;              /* pale deck background tint */

  /* --- applied roles --- */
  --ink: var(--navy);
  --ink-soft: #565b7d;
  --ink-faint: var(--grey);
  --paper: #ffffff;
  --paper-2: var(--mint);
  --paper-3: #f4f6fc;
  --line: #e0e4f1;
  --accent: var(--lime);
  --accent-ink: var(--navy);    /* navy reads on lime; white does not */
  --wa: #25d366;
  --wa-dark: #128c4a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 44, 101, 0.12);
  --shadow-lime: 0 10px 28px rgba(197, 210, 0, 0.35);
  --font-brand: "Sinera", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Segoe UI", "Segoe UI Web (West European)", -apple-system,
                  system-ui, Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-body: var(--font-display);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

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

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--blue-ink);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-head { max-width: 620px; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
.section-head p { color: var(--ink-soft); }

/* ------------------------------ header ------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 54px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.45rem; letter-spacing: 0.12em;
  text-decoration: none; color: var(--ink);
}
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--ink-soft); padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lime); }

.cart-link {
  position: relative; display: inline-flex; align-items: center;
  padding: 0.45rem; color: var(--ink); border-radius: 10px;
}
.cart-link svg { width: 24px; height: 24px; }
.cart-link:hover { background: var(--paper-3); }
.cart-badge[hidden] { display: none; }
.cart-badge {
  position: absolute; top: -2px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.68rem; font-weight: 700; border-radius: 999px;
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .header-inner { gap: 0.75rem; }
  .brand { margin-inline: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; border-radius: 10px;
  }
  .nav-toggle-bar {
    display: block; height: 2px; width: 100%;
    background: var(--ink); border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 54px 0 auto 0; z-index: 55;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-115%);
    transition: transform 0.28s ease;
  }
  .nav-open .site-nav { transform: translateY(0); }
  .site-nav a { padding: 0.85rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* ------------------------------- hero ------------------------------- */

.hero {
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(197, 210, 0, 0.22), transparent 62%),
    radial-gradient(760px 480px at -5% 105%, rgba(198, 204, 229, 0.5), transparent 60%),
    var(--mint);
  overflow: hidden;
}
/* Text-only hero: one column, running the width of the page. */
.hero-inner {
  padding-block: clamp(0.9rem, 2.2vw, 1.6rem) clamp(2.25rem, 5.5vw, 3.75rem);
  text-align: center;
}
.hero-inner .lede { margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  letter-spacing: -0.02em; margin-bottom: 1.1rem;
  max-width: 32ch; margin-inline: auto; text-wrap: balance;
}
.hero p.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft);
  max-width: 68ch;
}
.hero p.lede + p.lede { margin-top: -0.35rem; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.9rem;
  justify-content: center;
}
@media (max-width: 560px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ----------------------------- buttons ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: 999px; border: 1.5px solid transparent;
  /* Anchors inherit the card's text-align, buttons don't — pin it so a
   * wrapped label like "View / Product" centres the same either way. */
  text-align: center;
  text-decoration: none; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: var(--lime-deep); }
.btn-wa { background: var(--wa-dark); color: #fff; }
.btn-wa:hover { background: #0d7a3f; }
.btn-wa svg { width: 20px; height: 20px; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* --------------------------- product cards --------------------------- */

.grid {
  display: grid; gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.9rem; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { display: block; background: #fff; }
.card-media img {
  /* 2:3 matches the source photos, so almost nothing gets cropped away.
   * height:auto is required or the img's height attribute wins over aspect-ratio. */
  width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-category {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-faint); margin-bottom: 0.3rem; font-weight: 600;
}
.card-title { font-size: 1.02rem; margin-bottom: 0.35rem; letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-tagline {
  font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-variants { font-size: 0.78rem; color: var(--ink-faint); margin: 0 0 0.9rem; }
.card-actions { margin-top: auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card-actions .btn { padding: 0.5rem 0.7rem; font-size: 0.78rem; flex: 1; min-width: 84px; }
@media (max-width: 560px) {
  .card-body { padding: 0.75rem 0.8rem 0.9rem; }
  .card-actions .btn { min-width: 0; flex-basis: 100%; }
  .card-tagline { display: none; }
}

/* ------------------------- category strip (home) ------------------------ */

.cat-strip {
  display: grid; gap: clamp(0.7rem, 1.6vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  padding: 1.15rem 0.75rem 1rem;
  border-radius: var(--radius); text-decoration: none;
  background: #fff; border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cat-tile:hover { border-color: var(--lime); box-shadow: var(--shadow); transform: translateY(-3px); }

.cat-art {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1 / 1; max-width: 116px;
  border-radius: 50%; background: var(--mint);
  transition: background 0.25s ease;
}
.cat-tile:hover .cat-art { background: #eefbc8; }
.cat-art svg {
  width: 72%; height: auto; overflow: visible;
  animation: cat-float 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.55s);
}
.cat-art .art-body {
  fill: #fff; stroke: var(--navy); stroke-width: 3.4;
  stroke-linejoin: round; stroke-linecap: round;
}
.cat-art .art-accent {
  fill: none; stroke: var(--lime-deep); stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 150; stroke-dashoffset: 0;
  animation: cat-draw 4.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.55s);
}
.cat-tile:hover .art-body { stroke: var(--blue-ink); }

@keyframes cat-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-1.5deg); }
}
@keyframes cat-draw {
  0%, 12%  { stroke-dashoffset: 150; opacity: 0.25; }
  45%, 88% { stroke-dashoffset: 0;   opacity: 1; }
  100%     { stroke-dashoffset: 150; opacity: 0.25; }
}

.cat-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.02em; color: var(--navy);
  text-align: center; line-height: 1.25;
}
@media (max-width: 420px) {
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ----------------------------- shop page ----------------------------- */

.shop-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.search-wrap { position: relative; flex: 1 1 240px; max-width: 340px; }
.search-wrap input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; color: var(--ink);
}
.search-wrap input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(90, 118, 185, 0.18); }
.search-wrap svg {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-faint); pointer-events: none;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-soft);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--blue); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.results-count { font-size: 0.85rem; color: var(--ink-faint); margin: -1rem 0 1.25rem; }
.empty-note {
  text-align: center; color: var(--ink-soft); padding: 3rem 1rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
}

/* ---------------------------- product page ---------------------------- */

.product-layout {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }

.gallery-main {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.gallery-main img {
  width: 100%; height: auto; aspect-ratio: 2 / 3;
  object-fit: cover; object-position: center;
  background: #fff;
}
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 58px; height: 80px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); background: #fff;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--lime); }

.product-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
.product-category {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--blue-ink); font-weight: 700; margin-bottom: 0.5rem;
}
.product-tagline { color: var(--ink-soft); font-size: 1.02rem; }

.option-group { margin-top: 1.4rem; }
.option-group > label, .option-label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 0.55rem;
}
.pill-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-options .pill {
  padding: 0.5rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 0.88rem; font-weight: 500;
}
.pill-options .pill:hover { border-color: var(--blue); }
.pill-options .pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
}
.qty-stepper button {
  width: 42px; height: 42px; border: 0; background: none;
  font-size: 1.2rem; line-height: 1; color: var(--ink); border-radius: 999px;
}
.qty-stepper button:hover { background: var(--paper-3); }
.qty-stepper output {
  min-width: 2.2ch; text-align: center; font-weight: 600; font-size: 1rem; padding: 0 0.3rem;
}

.product-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
/* Size to the label so the longer button does not wrap while the
 * shorter one sits on one line; they still stack on a phone. */
.product-ctas .btn { flex: 1 1 auto; min-width: 180px; }

.product-desc { margin-top: 2.2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.product-desc h2 { font-size: 1.05rem; letter-spacing: 0.03em; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0.75rem 0 0; list-style: none; }
.feature-tags li {
  font-size: 0.8rem; padding: 0.32rem 0.8rem;
  background: var(--mint); border: 1px solid #e6f0c4; border-radius: 999px;
  color: var(--navy); font-weight: 500;
}
.fabric-note { background: var(--paper-3); border-left: 4px solid var(--lime); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 1.4rem; }
.fabric-note h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.fabric-note p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.fabric-note .composition { font-size: 0.82rem; color: var(--ink-faint); margin: 0; }

.related { border-top: 1px solid var(--line); }

/* ----------------------------- cart page ----------------------------- */

.cart-layout {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-lines { display: flex; flex-direction: column; gap: 1rem; }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem;
}
.cart-line img {
  width: 96px; height: auto; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 10px; background: #fff;
}
.cart-line h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.cart-line h3 a { text-decoration: none; }
.cart-line h3 a:hover { text-decoration: underline; }
.line-meta { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 0.6rem; }
.line-variants { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.7rem; }
.line-variants select {
  font: inherit; font-size: 0.85rem; padding: 0.35rem 0.6rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  max-width: 150px;
}
.line-controls { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.cart-line .qty-stepper button { width: 36px; height: 36px; }
.remove-btn {
  border: 0; background: none; color: var(--ink-faint);
  font-size: 0.85rem; text-decoration: underline; padding: 0.3rem;
}
.remove-btn:hover { color: var(--navy); }
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; }
  .cart-line .line-end { grid-column: 1 / -1; }
}

.cart-summary {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: sticky; top: 74px;
}
.cart-summary h2 { font-size: 1.2rem; }
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; font-size: 0.95rem; color: var(--ink-soft);
}
.summary-row.total { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.9rem; color: var(--ink); font-weight: 600; }
.cart-summary .btn { width: 100%; margin-top: 1.1rem; }
.summary-note { font-size: 0.8rem; color: var(--ink-faint); margin: 0.9rem 0 0; }
.clear-cart { margin-top: 0.6rem; width: 100%; text-align: center; }

.cart-empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem; }
.cart-empty svg { width: 64px; height: 64px; color: var(--ink-faint); margin-bottom: 1rem; }
.cart-empty h1 { font-size: 1.6rem; }
.cart-empty p { color: var(--ink-soft); }

/* -------------------------- checkout review -------------------------- */

.checkout-lines { display: flex; flex-direction: column; gap: 0.8rem; }
.checkout-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 0.9rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.9rem;
}
.checkout-line img { width: 64px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #fff; }
.checkout-line h3 { font-size: 0.95rem; margin: 0 0 0.15rem; }
.checkout-line p { font-size: 0.8rem; color: var(--ink-faint); margin: 0; }
.checkout-line .qty { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

.msg-preview {
  background: #e7f6ec; border: 1px solid #bfe6cc; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-top: 1.5rem;
  font-size: 0.88rem; white-space: pre-wrap; color: #1c3a28;
}

/* ---------------------- about / contact sections ---------------------- */

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img {
  border-radius: var(--radius); aspect-ratio: 4 / 5; height: auto; object-fit: cover; width: 100%;
  box-shadow: var(--shadow);
}
.about-copy p { color: var(--ink-soft); }

.contact-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy) 55%, #313a86 100%);
  color: #fff; border-radius: var(--radius); overflow: hidden; position: relative;
}
.contact-band::after {
  content: ""; position: absolute; inset: auto -60px -90px auto;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 210, 0, 0.4), rgba(197, 210, 0, 0) 70%);
}
.contact-band-inner {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; justify-content: space-between;
}
.contact-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.35rem; }
.contact-band p { color: var(--periwinkle); margin: 0; }

/* ------------------------------ footer ------------------------------ */

.site-footer { background: var(--mint); border-top: 3px solid var(--lime); margin-top: clamp(3rem, 8vw, 5rem); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
.brand-footer { font-size: 1.3rem; }
.footer-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.6rem; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-contact h3 { font-size: 0.95rem; letter-spacing: 0.04em; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--wa-dark); font-weight: 600; text-decoration: none; font-size: 1rem;
}
.footer-wa:hover { text-decoration: underline; }
.footer-wa svg { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--ink-faint); }

/* -------------------------- floating WhatsApp -------------------------- */

.wa-float {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(18, 140, 74, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(18, 140, 74, 0.55); }

/* ------------------------------- toast ------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 5.5rem; z-index: 80;
  transform: translate(-50%, 1rem);
  background: var(--navy); color: #fff; border: 1px solid rgba(197,210,0,0.5);
  padding: 0.7rem 1.3rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 2rem); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------ page head ----------------------------- */

.page-head { padding-block: clamp(0.85rem, 2vw, 1.3rem) 0; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.01em; }
.page-head p { color: var(--ink-soft); max-width: 60ch; }

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

/* ==================== brand identity layer (UniFit deck) ==================== */

/* --- logo lockup in header / footer --- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 30px; width: auto; display: block; }
.site-footer .brand-logo { height: 38px; }
.brand-tag {
  font-family: var(--font-brand);
  font-size: 0.95rem; font-style: italic; letter-spacing: 0.02em;
  color: var(--blue-ink); white-space: nowrap;
}
.brand-tag b { font-style: normal; font-weight: 700; color: var(--navy); }
@media (max-width: 980px) { .brand-tag { display: none; } }
@media (max-width: 760px) { .brand-logo { height: 26px; } }

/* --- serif display for brand statements --- */
.display-serif {
  font-family: var(--font-brand);
  font-weight: 600; letter-spacing: 0.005em; line-height: 1.08;
}
.hero h1 .you, .statement .you { font-weight: 700; }
.underline-lime {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 97%;
  background-size: 100% 0.22em;
  padding-inline: 0.06em;
}

/* --- brand promise strip --- */
.promise-strip {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.promise {
  background: #fff; padding: 1.4rem 1.35rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.promise svg { width: 26px; height: 26px; color: var(--lime-deep); }
.promise h3 { font-size: 0.98rem; margin: 0.2rem 0 0; letter-spacing: 0.01em; }
.promise p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* --- full-bleed brand statement band --- */
.statement {
  background: var(--navy);
  color: #fff; text-align: center;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  position: relative; overflow: hidden;
}
.statement::before,
.statement::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 210, 0, 0.45), rgba(197, 210, 0, 0) 70%);
}
.statement::before { width: 320px; height: 320px; top: -130px; left: -90px; }
.statement::after  { width: 240px; height: 240px; bottom: -120px; right: -60px; }
.statement .container { position: relative; z-index: 1; }
.statement p.kicker {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.24em; font-size: 0.72rem; font-weight: 600;
  color: var(--lime); margin-bottom: 1rem;
}
.statement h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin: 0 auto; max-width: 26ch; line-height: 1.14; text-wrap: balance;
}
.statement .sub {
  color: var(--periwinkle); margin: 1.1rem auto 0; max-width: 44ch; font-size: 1.02rem;
}

/* --- mission / vision cards --- */
.mv-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mv-card {
  background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--lime);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.6rem;
}
.mv-card:nth-child(2) { border-top-color: var(--blue); }
.mv-card h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--blue-ink); margin-bottom: 0.6rem;
}
.mv-card p { margin: 0; color: var(--ink-soft); }
.mv-card p strong { color: var(--navy); }

/* --- palette swatch row (brand footer touch) --- */
.brand-bar { display: flex; height: 6px; width: 100%; }
.brand-bar span { flex: 1; }
.brand-bar span:nth-child(1) { background: var(--lime); }
.brand-bar span:nth-child(2) { background: var(--navy); }
.brand-bar span:nth-child(3) { background: var(--blue); }
.brand-bar span:nth-child(4) { background: var(--grey); }
.brand-bar span:nth-child(5) { background: var(--periwinkle); }

/* --- WhatsApp float keeps brand ring --- */
.wa-float { border: 2px solid #fff; }

/* --- section on mint --- */
.section-mint { background: var(--mint); }

/* ============================= pricing ============================= */

/* Card price sits between title and tagline. */
.card-price {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; color: var(--navy);
  margin: 0 0 .45rem;
}

/* Product page */
.product-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem;
  margin: 1.1rem 0 .25rem;
}
.product-price .amount {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 700;
  color: var(--navy); letter-spacing: -0.01em;
}
.product-price .unit {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--grey);
}
.product-price .line-total {
  font-size: .84rem; font-weight: 600; color: var(--navy);
  background: var(--mint); border: 1px solid #e6f0c4;
  border-radius: 999px; padding: .2rem .7rem;
}
.product-price .line-total[hidden] { display: none; }

/* Cart lines */
.cart-line .line-unit { color: var(--ink-soft); font-weight: 500; }
.cart-line .line-total {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.02rem; color: var(--navy);
  margin: 0; text-align: right; white-space: nowrap;
}
.cart-line .line-tbc { font-size: .82rem; font-weight: 500; color: var(--grey); }
@media (max-width: 520px) {
  .cart-line .line-total { text-align: left; margin-top: .5rem; }
}

/* Checkout review lines */
.checkout-line .qty {
  display: flex; flex-direction: column; align-items: flex-end; gap: .1rem;
  color: var(--ink-soft);
}
.checkout-line .qty b {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; color: var(--navy);
}

/* Summary rows: the priced total gets the brand accent. */
.cart-summary .summary-row.total span:last-child { color: var(--navy); font-size: 1.1rem; }
.cart-summary .summary-row.total { border-top: 2px solid var(--lime); }

/* ========================= stock availability ========================= */

.pill-options .pill-out {
  color: var(--grey); background: var(--paper-3);
  border-color: var(--line); border-style: dashed;
  cursor: not-allowed; position: relative; opacity: 0.75;
}
.pill-options .pill-out:hover { border-color: var(--line); }
/* A quiet strike-through reads as "gone" faster than colour alone. */
.pill-options .pill-out::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50%;
  height: 1px; background: currentColor; opacity: 0.65;
}
.option-note {
  font-size: 0.76rem; color: var(--ink-faint);
  margin: 0.5rem 0 0;
}
.sold-out-banner {
  background: var(--paper-3); border-left: 4px solid var(--grey);
  border-radius: 10px; padding: 0.75rem 1rem; margin: 1rem 0 0;
  font-size: 0.88rem; color: var(--ink-soft);
}
.card-soldout {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey);
  margin: -0.15rem 0 0.5rem;
}
.line-variants select option:disabled { color: var(--grey); }

/* =============================== FAQs =============================== */

/* Give the answers more room than the photo. */
.faq-grid-wrap { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 860px) { .faq-grid-wrap { grid-template-columns: 1fr; } }

.faq-grid { gap: 1rem; }
/* Questions read as questions, not as labels. */
.faq-card h3 {
  font-size: 1rem; text-transform: none; letter-spacing: 0;
  color: var(--navy); line-height: 1.3; margin-bottom: 0.55rem;
}
.faq-card p { font-size: 0.92rem; }
.faq-card:nth-child(2) { border-top-color: var(--lime); }
.faq-card:nth-child(even) { border-top-color: var(--blue); }

/* ===================== brand line, sets, FAQ layout ===================== */

/* Brand sits directly under the product name, in place of the old tagline. */
.card-brand {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue-ink);
  margin: 0 0 0.4rem;
}
.product-brand {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue-ink);
  margin: 0.35rem 0 0;
}

/* What's in a set. */
.included { margin-top: 1.1rem; }
.included-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.05em; margin: 0 0 0.45rem;
}
.included ul { margin: 0; padding-left: 1.1rem; }
.included li {
  font-size: 0.92rem; color: var(--ink-soft);
  margin-bottom: 0.25rem; padding-left: 0.15rem;
}
.included li::marker { color: var(--lime-deep); }

.desc-bullets { margin: 0; padding-left: 1.15rem; }
.desc-bullets li {
  color: var(--ink-soft); margin-bottom: 0.45rem; padding-left: 0.15rem;
}
.desc-bullets li::marker { color: var(--lime-deep); }

/* Match the "greyed out sizes" line directly above it. */
.size-note { color: var(--ink-faint); }

/* FAQs run the full width now that the photo is gone. */
.faq-section { max-width: 980px; }
.faq-head { max-width: none; margin-bottom: clamp(1.25rem, 3vw, 1.9rem); }
/* A clean 2x2 rather than three across with an orphan on the second row. */
.faq-section .faq-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 680px) { .faq-section .faq-grid { grid-template-columns: 1fr; } }
.faq-cta { text-align: center; margin: 1.9rem 0 0; }

/* ===================== sets: two sizes, one product ===================== */

.size-group + .size-group { margin-top: 0.85rem; }
.size-group-label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 0.4rem;
}
.size-group-label strong { color: var(--navy); font-weight: 700; }
.line-chosen {
  font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 0.6rem;
}

/* ====================== video in the product gallery ====================== */

.gallery-main video {
  display: block; width: 100%; height: auto;
  aspect-ratio: 2 / 3; object-fit: cover;
  background: #000;
}

/* Play badge on the video thumbnail so it reads as a clip, not a photo. */
.gallery-thumbs button { position: relative; }
.gallery-thumbs .thumb-play {
  position: absolute; inset: 0; margin: auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(40, 44, 101, 0.82);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.gallery-thumbs .thumb-play::after {
  content: ""; position: absolute;
  top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--lime);
}
.gallery-thumbs button[aria-current="true"] .thumb-play { background: var(--navy); }

/* ======================= last-chance notice ======================= */

.last-chance {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 1rem 0 0; padding: 0.7rem 0.95rem;
  background: #fff8ed; border: 1px solid #f3d9b0;
  border-left: 4px solid #e8641a;
  border-radius: 10px;
  font-size: 0.88rem; line-height: 1.45; color: #6b3b12;
}
.last-chance strong { color: #8a3f0b; }
.last-chance .flame {
  flex: 0 0 auto; width: 18px; height: 18px;
  color: #e8641a; margin-top: 1px;
  animation: flame-flicker 2.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes flame-flicker {
  0%, 100% { transform: scale(1)    rotate(0deg); opacity: 1; }
  40%      { transform: scale(1.12) rotate(-3deg); opacity: 0.9; }
  70%      { transform: scale(0.96) rotate(2deg);  opacity: 1; }
}

/* ================= floating social buttons + checkout tip ================= */

.social-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 70;
  display: flex; align-items: center; gap: 0.6rem;
}

.ig-float {
  width: 52px; height: 52px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  /* Instagram's own gradient, so the icon is recognisable at a glance. */
  background:
    radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ig-float svg { width: 27px; height: 27px; }
.ig-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(214, 36, 159, 0.5); }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(18, 140, 74, 0.55); }

/* --- the "follow us" bubble on the checkout page --- */
.social-tip {
  position: absolute; right: 0; bottom: calc(100% + 0.7rem);
  width: max-content; max-width: min(17rem, calc(100vw - 2.5rem));
  padding: 0.8rem 2.1rem 0.8rem 1rem;
  background: var(--navy); color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(40, 44, 101, 0.3);
  opacity: 0; transform: translateY(8px) scale(0.96);
  transform-origin: 85% 100%;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.social-tip.show { opacity: 1; transform: translateY(0) scale(1); }
.social-tip[hidden] { display: none; }
.social-tip p {
  margin: 0; font-size: 0.88rem; line-height: 1.35; font-weight: 500;
}
.social-tip-link {
  display: inline-block; margin-top: 0.3rem;
  color: var(--lime); font-weight: 700; font-size: 0.85rem;
  text-decoration: none;
}
.social-tip-link:hover { text-decoration: underline; }

/* little pointer down toward the Instagram button */
.social-tip::after {
  content: ""; position: absolute;
  right: 74px; bottom: -6px;
  width: 14px; height: 14px; background: var(--navy);
  transform: rotate(45deg); border-radius: 3px;
}
.social-tip-close {
  position: absolute; top: 4px; right: 6px;
  width: 26px; height: 26px; padding: 0;
  background: none; border: 0; color: var(--periwinkle);
  font-size: 1.2rem; line-height: 1; border-radius: 50%;
}
.social-tip-close:hover { color: #fff; }

@media (max-width: 520px) {
  .social-float { right: 0.8rem; bottom: 0.8rem; gap: 0.5rem; }
  .ig-float { width: 48px; height: 48px; }
  .ig-float svg { width: 25px; height: 25px; }
  .wa-float { width: 48px; height: 48px; }
  .social-tip::after { right: 66px; }
}

/* Instagram in the footer, under the WhatsApp number. */
.footer-ig {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 0.55rem;
  color: var(--blue-ink); font-weight: 600; text-decoration: none; font-size: 0.95rem;
}
.footer-ig:hover { text-decoration: underline; }
.footer-ig svg { width: 21px; height: 21px; }
/* Stack the two contact links rather than letting them run together. */
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact .footer-wa { display: inline-flex; }

/* ===================== hero points (home) ===================== */

.hero-points {
  list-style: none; margin: 1.35rem auto 0; padding: 0;
  max-width: 44rem;
  display: grid; gap: 0.7rem;
  text-align: center;
}
.hero-points li {
  font-size: clamp(0.95rem, 1.5vw, 1.06rem);
  line-height: 1.45; color: var(--ink-soft);
}
.hero-points b { color: var(--navy); font-weight: 700; }
@media (max-width: 520px) {
  .hero-points { gap: 0.8rem; }
  .hero-points li { font-size: 0.95rem; }
}

/* ================= "also sold as a set" cross-sell ================= */

/* Deliberately quiet: a single line under the buy buttons, not a banner. */
.in-set {
  display: flex; align-items: center; gap: 0.55rem;
  margin: 1.1rem 0 0; padding: 0.6rem 0.85rem;
  background: var(--paper-3); border-radius: 10px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.in-set svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--blue-ink); }
.in-set a {
  color: var(--navy); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--lime);
  text-underline-offset: 2px; text-decoration-thickness: 2px;
}
.in-set a:hover { text-decoration-color: var(--navy); }

/* ---------------------------------------------------------------
   Sold-out cards: grey the whole tile so it reads as unavailable
   from the grid, without a click.
   --------------------------------------------------------------- */
.card.card-out {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, .07);
  box-shadow: none;
}
.card.card-out .card-media { background: #f4f4f5; }
.card.card-out .card-media img {
  filter: grayscale(1) contrast(.9);
  opacity: .5;
}
.card.card-out:hover .card-media img { transform: none; }
.card.card-out .card-category,
.card.card-out .card-brand,
.card.card-out .card-variants { color: #9a9aa2; }
.card.card-out .card-title a { color: #77777f; }
.card.card-out .card-title a:hover { color: #77777f; }
.card.card-out .card-price {
  color: #9a9aa2;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.card.card-out .btn-ghost {
  color: #77777f;
  border-color: rgba(0, 0, 0, .14);
}

/* "Sold out" chip sitting on the photo */
.card-media { position: relative; }
.card-out-chip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  display: inline-block;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: rgba(30, 30, 34, .82);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
/* The chip on the photo and the disabled button already say it. */
.card.card-out .card-soldout { display: none; }

/* ---------------------------------------------------------------
   Set bundle pricing: the pieces-bought-separately price struck
   through, plus the saving spelled out.
   --------------------------------------------------------------- */
.was {
  margin-left: .45rem;
  color: #9a9aa2;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.card-price .was { font-size: .85em; }
.product-price .was { font-size: .5em; vertical-align: middle; }

.save-chip,
.card-deal-chip {
  display: inline-block;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: var(--lime, #C6D92E);
  color: #26262b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.product-price .save-chip { margin-left: .6rem; vertical-align: middle; }
.card-deal-chip {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
}
.save-line {
  margin: .35rem 0 0;
  color: #6c6c76;
  font-size: .88rem;
}

/* The saving called out on a single piece's "also sold as a set" line */
.in-set .set-save { color: #3f7a2e; font-weight: 700; }
.in-set .was { font-size: .92em; }

/* Cart line: trade up to the set */
.line-set-offer {
  margin: .4rem 0 0;
  padding: .45rem .6rem;
  border-radius: 8px;
  background: rgba(198, 217, 46, .16);
  color: #4a4a52;
  font-size: .84rem;
  line-height: 1.45;
}
.line-set-offer a { color: inherit; font-weight: 700; }

/* Toast can carry a link through to the set */
.toast-link {
  margin-left: .5rem;
  color: var(--lime, #C6D92E);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   Brand filter: the first thing on the shop page, so a customer who
   came for one label can get there in a single click.
   --------------------------------------------------------------- */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.brand-filter-label {
  margin-right: .35rem;
  color: var(--ink-faint);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.brand-tab:hover { border-color: var(--blue); color: var(--navy); }
.brand-tab[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.brand-tab-count {
  min-width: 1.4rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}
.brand-tab[aria-pressed="true"] .brand-tab-count {
  background: var(--lime);
  color: #26262b;
}
@media (max-width: 560px) {
  .brand-filter { gap: .4rem; }
  .brand-filter-label { flex: 1 0 100%; margin-bottom: .1rem; }
  .brand-tab { padding: .45rem .85rem; font-size: .88rem; }
}

/* ---------------------------------------------------------------
   Header: "Shop" keeps working as a link, with a caret beside it
   that opens the brand menu.
   --------------------------------------------------------------- */
.nav-group { position: relative; display: inline-flex; align-items: center; gap: .15rem; }
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  transition: transform .18s ease, color .15s ease;
}
.nav-caret svg { width: 16px; height: 16px; }
.nav-caret:hover { color: var(--ink); }
.nav-group.open .nav-caret { transform: rotate(180deg); color: var(--ink); }

.nav-menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  min-width: 172px;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 22, 48, .13);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-group.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
/* A hover bridge, so the menu survives the gap under the caret. */
.nav-menu::before {
  content: "";
  position: absolute;
  top: -.6rem;
  left: 0;
  right: 0;
  height: .6rem;
}
.site-nav .nav-menu a {
  padding: .5rem .7rem;
  border-radius: 8px;
  border-bottom: 0;
  font-size: .92rem;
  white-space: nowrap;
}
.site-nav .nav-menu a:hover { background: var(--paper-3); color: var(--ink); }

@media (max-width: 760px) {
  /* Inside the drawer the menu is just an indented list, always visible. */
  .nav-group { display: block; }
  .nav-caret { display: none; }
  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0 0 .5rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .nav-menu::before { display: none; }
  .site-nav .nav-group > a { border-bottom: 0; }
  .site-nav .nav-menu a {
    padding: .5rem .25rem;
    font-size: .95rem;
    color: var(--ink-faint);
    border-bottom: 0;
  }
}

/* ---------------------------------------------------------------
   Free-delivery threshold: a progress nudge in the cart and at
   checkout, so the gap to free shipping is a number, not a rule.
   --------------------------------------------------------------- */
.ship-note {
  margin: .9rem 0 1.1rem;
  padding: .75rem .85rem;
  border-radius: 10px;
  background: var(--paper-3);
  font-size: .85rem;
  color: var(--ink-soft);
}
.ship-note p { margin: 0; }
.ship-note b { color: var(--navy); font-weight: 700; }
.ship-bar {
  height: 6px;
  margin: .55rem 0 .35rem;
  border-radius: 999px;
  background: rgba(20, 22, 48, .09);
  overflow: hidden;
}
.ship-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
  transition: width .35s ease;
}
.ship-bar-foot {
  font-size: .76rem;
  color: var(--ink-faint);
}
.ship-note.is-free {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: rgba(63, 122, 46, .1);
  color: #2f6323;
}
.ship-note.is-free b { color: #2f6323; }
.ship-note.is-free svg { flex: 0 0 auto; width: 17px; height: 17px; }
.free-ship { color: #3f7a2e; font-weight: 700; }

/* Per-piece prices in a set's "This set includes" list */
.included li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.incl-price {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: .92em;
}

/* Stock is one of each: the cart says so rather than showing a quantity */
.line-qty {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: #8a3f0b;
}
.line-qty .flame {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #e8641a;
  animation: flame-flicker 2.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}

/* A styling cue: this piece was made to go with another one */
.in-set.match-note { background: rgba(198, 217, 46, .13); }
.in-set.match-note a { color: var(--navy); font-weight: 700; }
