/* ==========================================================================
   BaliFlags — single-layer stylesheet.
   Order: tokens → base → layout → components → page blocks → responsive.
   No !important, no stacked override layers. Change the token, not the rule.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Brand — deeper, richer navy reads as premium against warm paper. */
  --navy-900: #050f22;
  --navy: #0a1a33;
  --navy-700: #14294a;
  --navy-500: #23405f;

  /* Accent — a deeper, less "safety-orange" amber. */
  --orange: #e0700f;
  --orange-600: #c96108;
  --orange-700: #a34e06;
  --orange-100: #fdf1e3;
  /* White text on --orange is only 3.23:1, so solid CTAs use this deeper fill. */
  --orange-cta: #b35406;

  /* Neutrals — warm paper, not cold blue-grey. Warmth is the premium tell. */
  --ink: #16202e;
  --muted: #5a6472;
  --faint: #68727f;
  --line: #e7e4de;
  --line-strong: #d8d3ca;
  --surface: #ffffff;
  --surface-alt: #faf8f5;
  --surface-sunk: #f3f0ea;

  /* Type — display face for headings, Inter for text. */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --h1: clamp(2.1rem, 1.35rem + 2.8vw, 3.3rem);
  --h2: clamp(1.7rem, 1.2rem + 1.9vw, 2.45rem);
  --h3: 1.1875rem;

  /* Optical tracking — large type needs less, small caps need more. */
  --track-display: -0.032em;
  --track-tight: -0.018em;
  --track-eyebrow: 0.11em;

  /* Space + shape */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 7.5vw, 6.5rem);
  --container: 1120px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation — layered micro-shadows instead of one soft blur. */
  --shadow-xs:
    0 1px 1px rgba(10, 26, 51, 0.04),
    0 1px 2px rgba(10, 26, 51, 0.04);
  --shadow-sm:
    0 1px 2px rgba(10, 26, 51, 0.04),
    0 2px 6px rgba(10, 26, 51, 0.05),
    0 8px 16px -8px rgba(10, 26, 51, 0.06);
  --shadow-md:
    0 1px 2px rgba(10, 26, 51, 0.04),
    0 6px 14px -4px rgba(10, 26, 51, 0.07),
    0 18px 34px -12px rgba(10, 26, 51, 0.10);
  --shadow-lg:
    0 2px 4px rgba(10, 26, 51, 0.04),
    0 12px 28px -8px rgba(10, 26, 51, 0.10),
    0 34px 60px -20px rgba(10, 26, 51, 0.16);
  --shadow-brand:
    0 1px 2px rgba(163, 78, 6, 0.20),
    0 6px 16px -4px rgba(224, 112, 15, 0.28);

  /* Hairline inner highlight — gives solid fills a machined edge. */
  --ring-inset: inset 0 1px 0 rgba(255, 255, 255, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 84px;
}

/* ----------------------------------------------------------------- 2. Base */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface-alt);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.68;
  letter-spacing: -0.005em;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-tight);
  line-height: 1.14;
  text-wrap: balance;
}

/* Optical sizing: the bigger the type, the tighter it wants to be. */
h1 {
  font-size: var(--h1);
  letter-spacing: var(--track-display);
  line-height: 1.06;
}
h2 {
  font-size: var(--h2);
  letter-spacing: var(--track-display);
  line-height: 1.12;
}
h3 { font-size: var(--h3); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--orange-700); }

/* Scoped, not a bare `em` override: only decorative headline emphasis. */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--orange-700);
}

button { font-family: inherit; }

/* Visible keyboard focus everywhere — the old sheet had none. */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(224, 112, 15, 0.18);
  border-radius: 5px;
}

.bf-skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -120%);
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.bf-skip-link:focus { transform: translate(-50%, 0); }

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

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

/* --------------------------------------------------------------- 3. Layout */
.wrap {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.bf-section { padding-block: var(--section-y); }

.bf-section-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.bf-section-head p { color: var(--muted); }

/* ----------------------------------------------------- 4. Header / nav */
.bf-announcement {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 10px var(--gutter);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.bf-announcement strong {
  color: #f6c493;
  font-weight: 600;
}

.bf-header {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: 12px var(--gutter);
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.bf-logo { line-height: 0; }
.bf-logo img {
  display: block;
  width: 152px;
  max-height: 54px;
  object-fit: contain;
  object-position: left;
}

.bf-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  margin-inline: auto;
}
.bf-nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.008em;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.bf-nav a:hover,
.bf-nav a[aria-current="page"] { color: var(--navy); }
.bf-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: right 0.25s var(--ease);
}
.bf-nav a:hover::after,
.bf-nav a[aria-current="page"]::after { right: 0; }

.bf-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.bf-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-xs);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bf-cart:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}
.bf-cart-icon {
  position: relative;
  display: grid;
  place-items: center;
}
.bf-cart-icon .bf-icon { display: block; }
.bf-cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: var(--orange-cta);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

/* ------------------------------------------------------------ 5. Buttons */
.bf-button,
.bf-button-dark,
.bf-button-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.bf-button .bf-icon,
.bf-button-dark .bf-icon,
.bf-button-ghost .bf-icon {
  flex: 0 0 auto;
  transition: transform 0.18s var(--ease);
}
.bf-button:hover .bf-icon,
.bf-button-dark:hover .bf-icon { transform: translateX(2px); }

.bf-button {
  background: var(--orange-cta);
  border-color: var(--orange-700);
  color: #fff;
  box-shadow: var(--shadow-brand), var(--ring-inset);
}
.bf-button:hover {
  background: var(--orange-700);
  border-color: var(--orange-700);
  box-shadow:
    0 1px 2px rgba(163, 78, 6, 0.22),
    0 10px 22px -6px rgba(224, 112, 15, 0.34),
    var(--ring-inset);
}

.bf-button-dark {
  background: var(--navy);
  border-color: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md), var(--ring-inset);
}
.bf-button-dark:hover {
  background: var(--navy-700);
  box-shadow: var(--shadow-lg), var(--ring-inset);
}

.bf-button-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}
.bf-button-ghost:hover {
  border-color: var(--navy);
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

/* Press reads as depth, not as a jump. */
.bf-button:active,
.bf-button-dark:active,
.bf-button-ghost:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-xs);
}

.bf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid rgba(224, 112, 15, 0.20);
  border-radius: var(--r-pill);
  background: var(--orange-100);
  color: var(--orange-700);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}
/* Small amber dot — a quiet mark of quality on every eyebrow. */
.bf-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.65;
}
.bf-badge-light {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffd7b4;
}

/* --------------------------------------------------------------- 6. Hero */
.bf-hero {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: clamp(420px, 52vw, 620px);
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  place-items: center start;
  background: var(--navy);
  overflow: hidden;
}
.bf-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      120% 90% at 12% 50%,
      rgba(5, 15, 34, 0.94) 0%,
      rgba(5, 15, 34, 0.62) 48%,
      rgba(5, 15, 34, 0.18) 100%
    ),
    linear-gradient(180deg, rgba(5, 15, 34, 0.45) 0%, rgba(5, 15, 34, 0.1) 40%);
}
.bf-hero-content {
  width: min(var(--container), 100%);
  margin-inline: auto;
  max-width: 40rem;
  color: #fff;
}
.bf-hero h1 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);
}
.bf-hero p {
  max-width: 33rem;
  color: rgba(233, 239, 248, 0.86);
  font-size: 1.0625rem;
  line-height: 1.62;
}
.bf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.bf-hero-actions .bf-button-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.bf-hero-actions .bf-button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
}

/* -------------------------------------------------------------- 7. Trust */
.bf-trust {
  background: var(--navy);
  padding: 0 var(--gutter) clamp(2rem, 4vw, 3rem);
}
.bf-trust-inner {
  width: min(var(--container), 100%);
  margin: -34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.bf-trust-inner > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  color: #fff;
}
.bf-trust-inner > div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.bf-trust-icon { font-size: 1.5rem; line-height: 1; }
.bf-trust strong {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.bf-trust span {
  display: block;
  color: #b9c9e0;
  font-size: 0.75rem;
  line-height: 1.45;
}

/* -------------------------------------------------------------- 8. Intro */
.bf-intro {
  margin-block: var(--section-y);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(224, 112, 15, 0.16) 0%, rgba(224, 112, 15, 0) 52%),
    radial-gradient(100% 120% at 12% 100%, rgba(35, 64, 95, 0.55) 0%, rgba(35, 64, 95, 0) 60%),
    var(--navy-900);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.bf-intro h2 {
  margin: 18px 0 14px;
  color: #fff;
}
.bf-intro p {
  max-width: 46rem;
  margin-inline: auto;
  color: #cfdcf0;
  font-size: 1.0625rem;
}

/* ------------------------------------------------------- 9. Problem cards */
.bf-problems { background: var(--surface); }
.bf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.bf-cards article {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.bf-cards article:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.bf-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--orange-100);
  color: var(--orange-700);
  font-size: 1.25rem;
}
.bf-cards p { color: var(--muted); }

/* -------------------------------------------------------------- 10. Split */
.bf-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-block: var(--section-y);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.bf-split::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(224, 112, 15, 0.08);
}
.bf-split > * {
  position: relative;
  z-index: 1;
}
.bf-split img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.bf-split h2 { margin: 16px 0 14px; }
.bf-split p { color: var(--muted); }
.bf-split .bf-button { margin-top: 18px; }

/* ------------------------------------------------- 11. Product (storefront) */
.bf-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-block: var(--section-y);
}
.bf-product-image {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.bf-product-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-sunk);
}
.bf-product-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.bf-product h2 { margin: 16px 0 8px; }
.bf-product > div > p { color: var(--muted); }

.bf-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 0 4px;
}
.bf-price {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.bf-price-note {
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Every money figure gets tabular numerals so totals never reflow. */
.bf-price,
.bf-price-note,
.bf-sticky-price,
.bf-cart-line-price,
.bf-cart-total,
.bf-summary-subtotal,
.bf-summary-grand,
.bf-summary-total {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------- 12. Option controls */
.bf-options {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}
.bf-options fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
/* Option labels read as small-caps eyebrows, which lets the choices dominate. */
.bf-options legend,
.bf-field-label {
  display: block;
  margin-bottom: 11px;
  padding: 0;
  color: var(--faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}
.bf-colour-name {
  margin-left: 8px;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.bf-options select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6675' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E")
    no-repeat right 16px center;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  appearance: none;
  cursor: pointer;
}
.bf-options select:hover { border-color: var(--orange); }

/* The mirror selects exist only to carry a form value — keep them collapsed. */
.bf-options select.bf-visually-hidden {
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
}

/* Colour dots (storefront) */
.bf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.bf-swatches button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.bf-swatches button:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-strong); }
.bf-swatches button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy);
}

/* Labelled choice tiles (product page) */
.bf-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bf-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bf-base-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.bf-choice-grid button {
  position: relative;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-break: break-word;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease);
}
.bf-choice-grid button:hover {
  border-color: var(--navy-500);
  background: var(--surface-alt);
}
/* Selected = solid navy with a 2px ring. Unmistakable without a gradient. */
.bf-choice-grid button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--navy), var(--shadow-sm), var(--ring-inset);
}

.bf-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bf-swatch-grid button {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-start;
}
.bf-swatch-dot {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(10, 26, 51, 0.18);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .bf-size-grid, .bf-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .bf-size-grid, .bf-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .bf-choice-grid button {
    font-size: 0.8125rem;
    padding: 6px 8px;
    min-height: 44px;
  }
}

/* Quantity + actions */
.bf-product-actions {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 28px;
}
.bf-product-actions .bf-buy-now { grid-column: 1 / -1; }
.bf-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-alt);
  box-shadow: inset 0 1px 2px rgba(10, 26, 51, 0.05);
}
.bf-qty button {
  width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.bf-qty button:hover { border-color: var(--orange); color: var(--orange-700); }
.bf-qty output {
  min-width: 2ch;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.bf-product-actions .bf-button,
.bf-product-actions .bf-button-dark {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: var(--r-md);
  font-size: 1rem;
}

.bf-inline-note {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------- 13. Benefits */
.bf-benefits {
  padding-block: var(--section-y);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(224, 112, 15, 0.16) 0%, rgba(224, 112, 15, 0) 52%),
    radial-gradient(100% 120% at 12% 100%, rgba(35, 64, 95, 0.55) 0%, rgba(35, 64, 95, 0) 60%),
    var(--navy-900);
}
.bf-benefits-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.05);
}
.bf-benefits article {
  padding: 26px 20px;
  border-radius: var(--r-lg);
  text-align: center;
  transition: background 0.25s var(--ease);
}
.bf-benefits article:hover { background: rgba(255, 255, 255, 0.07); }
.bf-benefits span { font-size: 1.75rem; }
.bf-benefits h3 {
  margin: 12px 0 4px;
  color: #fff;
  font-size: 1rem;
}
.bf-benefits p {
  color: #b9c9e0;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------- 14. Comparison */
.bf-compare {
  padding-block: var(--section-y);
  background: var(--surface);
}
.bf-table-scroll {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.bf-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}
.bf-table th,
.bf-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.bf-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.bf-table tbody th {
  color: var(--navy);
  font-weight: 700;
}
.bf-table tbody .bf-col-other { color: var(--muted); }
.bf-table .bf-col-ours {
  background: var(--orange-100);
  color: var(--navy);
  font-weight: 700;
}
.bf-table thead .bf-col-ours {
  background: var(--navy-700);
  color: #fff;
}
.bf-table tbody tr:last-child th,
.bf-table tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------- 15. Reviews */
.bf-reviews { padding-block: var(--section-y); }
.bf-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.bf-reviews article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bf-reviews article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bf-stars {
  color: var(--orange-700);
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
}
.bf-reviews blockquote {
  flex: 1;
  margin: 0;
  color: var(--muted);
}
.bf-reviews figcaption strong {
  display: block;
  color: var(--navy);
}
.bf-reviews figcaption span {
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ------------------------------------------------------------- 16. FAQ */
.bf-faq { padding-block: var(--section-y); }
.bf-faq-list {
  max-width: 52rem;
  margin: 40px auto 0;
}
.bf-faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s var(--ease);
}
.bf-faq details[open] { border-color: rgba(224, 112, 15, 0.38); }
.bf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-700);
  font-size: 1.125rem;
  line-height: 1;
}
.bf-faq details[open] summary::after { content: "−"; }
.bf-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* --------------------------------------------------------- 17. Contact */
.bf-contact {
  padding-block: var(--section-y);
  background: var(--surface);
}
.bf-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}
.bf-contact p { color: var(--muted); }
.bf-contact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
/* These rows are always white, so they carry their own ink colour. Inheriting
   it made them invisible inside the dark summary panel on the contact page. */
.bf-contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
}
.bf-contact-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.bf-contact-list a:hover { color: var(--orange-700); }

/* ---------------------------------------------------------- 18. Footer */
.bf-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(224, 112, 15, 0.16) 0%, rgba(224, 112, 15, 0) 52%),
    radial-gradient(100% 120% at 12% 100%, rgba(35, 64, 95, 0.55) 0%, rgba(35, 64, 95, 0) 60%),
    var(--navy-900);
  color: rgba(226, 232, 240, 0.78);
}
.bf-footer-inner {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.bf-footer h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.bf-footer p { color: #a9bcd6; font-size: 0.9375rem; }
.bf-footer-logo {
  width: 168px;
  max-height: 60px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left;
}
.bf-footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bf-footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.9375rem;
  text-decoration: none;
}
.bf-footer-links a:hover { color: #ffb877; }

.bf-newsletter {
  display: flex;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
}
.bf-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
}
.bf-newsletter input::placeholder { color: #93a8c4; }
.bf-newsletter input:focus { outline: none; }
.bf-newsletter:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(224, 112, 15, 0.18);
}
.bf-newsletter button {
  flex: 0 0 auto;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--orange-cta);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
}
.bf-newsletter button:hover { background: var(--orange-700); }

.bf-copyright {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding: 20px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #93a8c4;
  font-size: 0.8125rem;
  text-align: center;
}

/* ------------------------------------------------------ 19. Cart drawer */
.bf-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 22, 49, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.bf-cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.bf-cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  padding: 26px;
  background: #fff;
  box-shadow: -14px 0 50px rgba(5, 15, 34, 0.26);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}
.bf-cart-drawer.is-open .bf-cart-panel { transform: translateX(0); }
.bf-cart-panel h2 {
  margin: 0 44px 20px 0;
  font-size: 1.5rem;
}
.bf-cart-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.bf-cart-close:hover { border-color: var(--orange); color: var(--orange-700); }
.bf-cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.bf-cart-empty {
  padding: 48px 0;
  color: var(--muted);
  text-align: center;
}
.bf-cart-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.bf-cart-item img {
  width: 68px;
  height: 68px;
  border-radius: var(--r-sm);
  background: var(--surface-sunk);
  object-fit: cover;
}
.bf-cart-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.9375rem;
}
.bf-cart-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
.bf-cart-item .bf-cart-line-price {
  color: var(--navy);
  font-weight: 700;
}
.bf-cart-remove {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.bf-cart-remove:hover { border-color: #ef4444; color: #ef4444; }
.bf-cart-footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bf-cart-footer strong {
  display: flex;
  justify-content: space-between;
  color: var(--navy);
  font-size: 1.0625rem;
}
.bf-cart-footer .bf-button {
  width: 100%;
  margin-top: 14px;
}

/* Toast confirmation after add-to-cart */
.bf-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(340px, calc(100% - 40px));
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.bf-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------- 20. Product page */
.bf-product-page {
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gutter) var(--section-y);
}
.bf-breadcrumb {
  width: min(1440px, 100%);
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.bf-breadcrumb a { color: var(--muted); text-decoration: none; }
.bf-breadcrumb a:hover { color: var(--orange-700); }

.bf-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.9fr);
  align-items: start;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  width: min(1440px, 100%);
  margin-inline: auto;
}
.bf-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.bf-main-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-sunk);
}
/* Hairline over the image so it sits in the frame instead of floating. */
.bf-main-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 26, 51, 0.07);
  pointer-events: none;
}
.bf-main-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bf-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bf-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--surface-sunk);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bf-thumb:hover {
  border-color: var(--line-strong);
}
.bf-thumb.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy), var(--shadow-sm);
}
.bf-product-config {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.bf-product-config h1 {
  margin: 12px 0 6px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem);
}
.bf-product-config hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.bf-product-details {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  width: min(1080px, 100% - (var(--gutter) * 2));
  margin: var(--section-y) auto;
}
.bf-product-details h2 { margin: 14px 0; }
.bf-product-details h3 { margin: 30px 0 10px; }
.bf-product-details p,
.bf-product-details li { color: var(--muted); }
.bf-product-details ul {
  margin: 0;
  padding-left: 1.25rem;
}
.bf-product-details li { margin: 6px 0; }
.bf-product-details aside {
  align-self: start;
  padding: 30px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(224, 112, 15, 0.16) 0%, rgba(224, 112, 15, 0) 52%),
    radial-gradient(100% 120% at 12% 100%, rgba(35, 64, 95, 0.55) 0%, rgba(35, 64, 95, 0) 60%),
    var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.bf-product-details aside h3 {
  margin-top: 0;
  color: #fff;
}
.bf-product-details aside p { color: rgba(226, 232, 240, 0.78); }
.bf-product-details aside .bf-button { margin-top: 8px; }

/* --------------------------------------------------- 20b. Post / page */
.bf-entry-page { padding-block: var(--section-y); }
.bf-entry {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.bf-entry h1 { margin-bottom: 1rem; }
.bf-entry-content { color: var(--muted); }
.bf-entry-content h2,
.bf-entry-content h3 { margin-top: 1.75rem; }
.bf-entry-content img {
  border-radius: var(--r-md);
}

/* -------------------------------------------------------- 21. Checkout */
.bf-checkout-page {
  width: min(1120px, 100% - (var(--gutter) * 2));
  margin: clamp(2rem, 5vw, 3.5rem) auto var(--section-y);
}
.bf-checkout-head {
  margin-bottom: 36px;
  text-align: center;
}
.bf-checkout-head h1 { margin: 14px 0 8px; }
.bf-checkout-head p { color: var(--muted); }
.bf-checkout-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
  gap: 28px;
}
.bf-checkout-form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.bf-checkout-form section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.bf-checkout-form h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}
.bf-checkout-form label {
  display: block;
  margin: 14px 0;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
}
.bf-checkout-form input,
.bf-checkout-form select {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
}
.bf-checkout-form input:hover,
.bf-checkout-form select:hover { border-color: var(--orange); }
.bf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bf-checkout-form .bf-demo-payment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--orange);
  border-radius: var(--r-md);
  background: var(--orange-100);
  cursor: pointer;
}
.bf-demo-payment input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--orange-600);
}
.bf-demo-payment span { flex: 1; }
.bf-demo-payment small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
}
.bf-demo-payment b {
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--orange-700);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}
.bf-card-fields { padding: 0 4px; }
.bf-place-order {
  width: 100%;
  margin-top: 8px;
}

.bf-order-summary {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  padding: 28px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(224, 112, 15, 0.16) 0%, rgba(224, 112, 15, 0) 52%),
    radial-gradient(100% 120% at 12% 100%, rgba(35, 64, 95, 0.55) 0%, rgba(35, 64, 95, 0) 60%),
    var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.bf-order-summary h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 1.25rem;
}
.bf-checkout-items > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.bf-checkout-items strong { display: block; }
.bf-checkout-items span {
  display: block;
  margin-top: 2px;
  color: #b9c9e0;
  font-size: 0.8125rem;
}
.bf-summary-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.9375rem;
}
.bf-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.125rem;
  font-weight: 800;
}
.bf-order-summary > p {
  margin-top: 14px;
  color: #93a8c4;
  font-size: 0.8125rem;
}

.bf-order-success {
  width: min(560px, 100%);
  margin: clamp(3rem, 7vw, 5rem) auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.bf-order-success > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--orange-cta);
  color: #fff;
  font-size: 1.75rem;
  box-shadow: var(--shadow-brand);
}
.bf-order-success p { color: var(--muted); }
.bf-order-success .bf-button { margin-top: 20px; }

/* ------------------------------------------------------ 22. Responsive */
@media (max-width: 1080px) {
  .bf-product-layout { grid-template-columns: 1fr; }
  .bf-product-config { position: static; }
  .bf-benefits-inner { grid-template-columns: repeat(2, 1fr); }
  .bf-product-details { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .bf-menu-toggle { display: block; }
  .bf-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px var(--gutter) 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .bf-nav.is-open { display: flex; }
  .bf-nav a { padding: 12px 4px; }
  .bf-nav a::after { display: none; }
  .bf-logo img { width: 128px; }

  .bf-cards,
  .bf-split,
  .bf-product,
  .bf-contact-inner,
  .bf-review-grid,
  .bf-checkout-grid { grid-template-columns: 1fr; }
  .bf-split img { order: -1; }
  .bf-trust-inner { grid-template-columns: 1fr; }
  .bf-trust-inner > div { justify-content: flex-start; }
  .bf-trust-inner > div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .bf-footer-inner { grid-template-columns: 1fr 1fr; }
  .bf-order-summary { position: static; order: -1; }
}

@media (max-width: 640px) {
  .bf-hero { min-height: 0; place-items: center; text-align: center; }
  .bf-hero p { margin-inline: auto; }
  .bf-hero-actions { justify-content: center; }
  .bf-hero-actions .bf-button,
  .bf-hero-actions .bf-button-ghost { flex: 1 1 100%; }

  .bf-benefits-inner { grid-template-columns: 1fr; }
  .bf-footer-inner { grid-template-columns: 1fr; }
  .bf-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-product-actions { grid-template-columns: 120px minmax(0, 1fr); }
  .bf-form-grid { grid-template-columns: 1fr; }
  .bf-cart-panel { padding: 22px 18px; }
  .bf-cart-panel h2 { font-size: 1.25rem; }
  .bf-table th,
  .bf-table td { padding: 13px 16px; }

  /* Icon-only cart: the label would crowd the logo and menu button. */
  .bf-cart-text { display: none; }
  .bf-cart { padding: 10px 14px; }

  /* Touch targets: nothing tappable smaller than 44px. */
  .bf-menu-toggle,
  .bf-cart { min-height: 44px; }
  .bf-cart-close {
    width: 44px;
    height: 44px;
  }
  .bf-swatches button {
    width: 44px;
    height: 44px;
  }
  .bf-qty button {
    width: 44px;
    height: 44px;
  }
  .bf-cart-remove {
    width: 40px;
    height: 40px;
  }
}

/* -------------------------------------------------------- 22. Contact form */
.bf-contact-page .bf-checkout-grid { grid-template-columns: 1.25fr 0.75fr; }
.bf-contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  resize: vertical;
}
.bf-contact-form textarea:hover { border-color: var(--orange); }
.bf-contact-form section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 20px;
  border-bottom: 0;
}
.bf-contact-form .bf-button { width: 100%; }
.bf-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--surface);
}
.bf-form-notice p { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
.bf-form-notice > span {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}
.bf-form-notice-ok { border-left-color: #1f9254; }
.bf-form-notice-ok > span { background: #1f9254; }
.bf-form-notice-error { border-left-color: #d33a2c; }
.bf-form-notice-error > span { background: #d33a2c; }
@media (max-width: 900px) {
  .bf-contact-page .bf-checkout-grid { grid-template-columns: 1fr; }
  .bf-contact-page .bf-order-summary { order: 1; }
}

/* ------------------------------------------------ 23. Auth Drawer & Policy Modal */
.bf-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.bf-account-btn:hover {
  border-color: var(--orange);
  color: var(--orange-700);
  transform: translateY(-1px);
}

.bf-auth-drawer, .bf-policy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  background: rgba(5, 15, 34, 0.44);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.bf-auth-drawer.is-open, .bf-policy-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.bf-auth-panel {
  width: min(420px, 100vw);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.bf-auth-drawer.is-open .bf-auth-panel {
  transform: translateX(0);
}

.bf-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.bf-auth-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.bf-auth-close, .bf-policy-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.bf-auth-close:hover, .bf-policy-close:hover {
  background: var(--surface-sunk);
  color: var(--navy);
}

.bf-shop-login-btn {
  width: 100%;
  padding: 14px 20px;
  background: #5c31f6;
  color: #ffffff;
  border: none;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bf-shop-login-btn:hover {
  background: #4b23df;
}

.bf-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.bf-auth-divider::before, .bf-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.bf-auth-divider span {
  padding: 0 12px;
}

.bf-auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.bf-auth-input-group input {
  width: 100%;
  padding: 13px 45px 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s ease;
}
.bf-auth-input-group input:focus {
  border-color: var(--navy);
}
.bf-auth-input-group button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.bf-auth-input-group button:hover {
  color: var(--navy);
}

.bf-auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 30px;
}
.bf-auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.bf-auth-policy-links {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bf-auth-policy-links button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: var(--surface);
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}
.bf-auth-policy-links button:last-child {
  border-bottom: none;
}
.bf-auth-policy-links button:hover {
  background: var(--surface-alt);
  color: var(--orange-700);
}

/* Policy Modal Center Panel */
.bf-policy-modal {
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.bf-policy-panel {
  position: relative;
  width: min(750px, 95vw);
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px var(--gutter);
  overflow-y: auto;
}
.bf-policy-close {
  position: absolute;
  top: 20px;
  right: 20px;
}
.bf-policy-content h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--navy);
}
.bf-policy-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--navy);
}
.bf-policy-content p, .bf-policy-content ul {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.7;
}

/* ------------------------------------------- 24. Floating Sticky Add to Cart Bar */
.bf-sticky-add-cart {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 80;
  width: min(680px, calc(100vw - 32px));
  transform: translate(-50%, 140%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.bf-sticky-add-cart.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bf-sticky-inner {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.bf-sticky-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex: none;
  background: var(--surface-alt);
}

.bf-sticky-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 14px;
  padding-right: 16px;
  overflow: hidden;
  flex: 1;
}

.bf-sticky-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.bf-sticky-variant {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.bf-sticky-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.bf-sticky-price {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.bf-sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--orange-cta);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 112, 15, 0.28);
  transition: all 0.2s ease;
}

/* ------------------------------------------- 25. Search Modal (Image media_1787570736542.png) */
.bf-search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 15, 34, 0.48);
  backdrop-filter: blur(6px);
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(40px, 8vw, 90px);
}
.bf-search-modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.bf-search-panel {
  width: min(620px, calc(100vw - 32px));
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(10, 26, 51, 0.20);
  overflow: hidden;
  transform: translateY(-16px);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bf-search-modal.is-open .bf-search-panel {
  transform: translateY(0);
}

.bf-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.bf-search-field-icon {
  color: var(--muted);
  flex: none;
}
.bf-search-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
}
.bf-search-input-wrapper input::placeholder {
  color: #8b95a3;
}
.bf-search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  flex: none;
  transition: color 0.2s ease;
}
.bf-search-close:hover {
  color: var(--navy);
}

.bf-search-results-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(80vh - 80px);
  overflow-y: auto;
}

.bf-search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.bf-clear-recent-btn {
  background: none;
  border: none;
  font-size: 0.825rem;
  color: #8b95a3;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.bf-clear-recent-btn:hover {
  color: var(--navy);
}

.bf-recent-items, .bf-product-search-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bf-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.bf-search-item:hover {
  background: var(--surface-alt);
}
.bf-search-item img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #f4f6f8;
}
.bf-search-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bf-search-item-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}
.bf-search-item-info span {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
.bf-sticky-btn:hover {
  background: #d1620d;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .bf-sticky-add-cart {
    bottom: 16px;
    width: calc(100vw - 24px);
  }
  .bf-sticky-inner {
    padding: 6px 8px;
  }
  .bf-sticky-img {
    width: 44px;
    height: 44px;
  }
  .bf-sticky-info {
    padding-left: 10px;
    padding-right: 8px;
  }
  .bf-sticky-title {
    font-size: 0.85rem;
  }
  .bf-sticky-variant {
    font-size: 0.75rem;
  }
  .bf-sticky-price {
    display: none;
  }
  .bf-sticky-btn {
    padding: 10px 16px;
    font-size: 0.825rem;
  }
}


