/* ==========================================================================
   FACET WIRE — PREVIEW DESIGN SYSTEM (preview-system.css)
   A unified, high-converting, editorial ecommerce stylesheet for 17 store
   redesign previews. Mobile-first, zero horizontal overflow, 44px+ targets.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & PER-STORE BRAND THEMING
   Override --brand, --brand-ink, --bg, --surface, --ink, --muted, --hairline
   inline on <body> or :root per store preview.
   -------------------------------------------------------------------------- */
:root {
  /* Core Brand & Surface Palette (Default: Warm Editorial Atelier) */
  --brand: #1d3b2a;
  --brand-hover: #142a1e;
  --brand-ink: #ffffff;
  --brand-soft: rgba(29, 59, 42, 0.08);
  --brand-border: rgba(29, 59, 42, 0.22);

  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3efe9;
  --surface-elevated: #ffffff;

  --ink: #161514;
  --ink-secondary: #383531;
  --muted: #69655f;
  --muted-light: #948f87;
  --hairline: #e6e1d9;
  --hairline-strong: #d4cdc2;

  /* Semantic Audit & Status Tokens */
  --audit-danger-bg: #fef2f2;
  --audit-danger-ink: #b91c1c;
  --audit-danger-border: #fecaca;
  --audit-success-bg: #ecfdf5;
  --audit-success-ink: #047857;
  --audit-success-border: #a7f3d0;
  --audit-accent: #2563eb;

  /* Typography Scale (Serif Display + Clean Sans Body) */
  --font-display: 'Playfair Display', 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md: 1.125rem;     /* 18px */
  --text-lg: 1.25rem;      /* 20px */
  --text-xl: 1.5rem;       /* 24px */
  --text-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --text-3xl: clamp(2.125rem, 4vw, 3rem);
  --text-hero: clamp(2.375rem, 5vw, 3.75rem);

  /* 8px Spacing Scale */
  --sp-1: 0.25rem;  /* 4px */
  --sp-2: 0.5rem;   /* 8px */
  --sp-3: 0.75rem;  /* 12px */
  --sp-4: 1rem;     /* 16px */
  --sp-5: 1.5rem;   /* 24px */
  --sp-6: 2rem;     /* 32px */
  --sp-7: 2.5rem;   /* 40px */
  --sp-8: 3rem;     /* 48px */
  --sp-9: 4rem;     /* 64px */
  --sp-10: 5rem;    /* 80px */
  --sp-12: 6rem;    /* 96px */

  /* Layout & Geometry */
  --container-max: 1120px;
  --container-pad: var(--sp-4);
  --header-height: 68px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows & Transitions */
  --shadow-xs: 0 1px 2px rgba(22, 21, 20, 0.04);
  --shadow-sm: 0 2px 8px -2px rgba(22, 21, 20, 0.06), 0 1px 3px rgba(22, 21, 20, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(22, 21, 20, 0.07), 0 2px 6px -1px rgba(22, 21, 20, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(22, 21, 20, 0.10), 0 4px 12px -2px rgba(22, 21, 20, 0.05);
  --shadow-card: 0 4px 14px rgba(22, 21, 20, 0.05), 0 1px 3px rgba(22, 21, 20, 0.03);
  --shadow-card-hover: 0 14px 28px -6px rgba(22, 21, 20, 0.11), 0 4px 10px -2px rgba(22, 21, 20, 0.05);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-base: 260ms;
}

@media (min-width: 768px) {
  :root {
    --container-pad: var(--sp-6);
    --header-height: 76px;
  }
}

/* --------------------------------------------------------------------------
   2. RESET, BASE & OVERFLOW GUARD
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.fw-main {
  flex: 1 0 auto;
  width: 100%;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & HYPERLINK DISCIPLINE (Zero Default Blue / Messy Underlines)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4,
.fw-h1, .fw-h2, .fw-h3, .fw-h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.fw-h1, h1 { font-size: var(--text-hero); }
.fw-h2, h2 { font-size: var(--text-3xl); }
.fw-h3, h3 { font-size: var(--text-2xl); }
.fw-h4, h4 { font-size: var(--text-xl); }

.fw-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-2);
}

.fw-subline,
.fw-lead {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

/* Global Link Reset: Banish browser #0000EE blue and raw underlines */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

a:visited {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.fw-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Editorial Body-Copy Links: Refined underline only inside prose/copy */
.fw-prose a:not(.fw-btn),
.fw-body-copy a:not(.fw-btn),
p a:not(.fw-btn):not(.fw-nav__link):not(.fw-card__link):not(.fw-footer__link),
.fw-inline-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.fw-prose a:not(.fw-btn):hover,
.fw-body-copy a:not(.fw-btn):hover,
p a:not(.fw-btn):not(.fw-nav__link):not(.fw-card__link):not(.fw-footer__link):hover,
.fw-inline-link:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

/* Standalone Section Action Link (e.g., "View All Products ->") */
.fw-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}

.fw-link-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out);
}

.fw-link-arrow:hover {
  color: var(--brand);
}

.fw-link-arrow:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. CONTAINER & SPACING UTILITIES
   -------------------------------------------------------------------------- */
.fw-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.fw-section {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}

.fw-section--sm {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.fw-section--lg {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.fw-section--surface {
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.fw-section--alt {
  background-color: var(--surface-alt);
}

@media (min-width: 768px) {
  .fw-section {
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-10);
  }
  .fw-section--lg {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
  }
}

.fw-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

@media (min-width: 640px) {
  .fw-section-header--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-4);
  }
}

/* --------------------------------------------------------------------------
   5. BUTTONS & TAP TARGETS (44px+ Minimums, 48px+ Primary CTA)
   -------------------------------------------------------------------------- */
.fw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.fw-btn:active {
  transform: translateY(1px);
}

.fw-btn--primary {
  background-color: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 2px 8px rgba(22, 21, 20, 0.12);
}

.fw-btn--primary:hover {
  background-color: var(--brand-hover);
  color: var(--brand-ink);
  box-shadow: 0 6px 16px rgba(22, 21, 20, 0.18);
  transform: translateY(-1px);
}

.fw-btn--secondary,
.fw-btn--outline {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.fw-btn--secondary:hover,
.fw-btn--outline:hover {
  border-color: var(--ink);
  background-color: var(--surface-alt);
}

.fw-btn--light {
  background-color: #ffffff;
  color: #161514;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.fw-btn--light:hover {
  background-color: #f5f3ef;
  color: #161514;
  transform: translateY(-1px);
}

.fw-btn--sm {
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  font-size: var(--text-xs);
}

.fw-btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. ANNOUNCEMENT BAR & SLIM STICKY HEADER
   Includes: Logo Left, 4-6 Desktop Nav Links, Search/Cart Affordances,
   and Mobile Hamburger + Drawer (Supports Pure CSS Checkbox AND JS Classes)
   -------------------------------------------------------------------------- */
.fw-announcement {
  background-color: var(--brand);
  color: var(--brand-ink);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: var(--sp-2) var(--sp-4);
}

.fw-announcement a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 600;
}

.fw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.94);
  background-color: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.fw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Brand Logo (Left) */
.fw-logo,
.fw-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.fw-logo img,
.fw-header__logo img {
  max-height: 36px;
  width: auto;
}

/* Desktop Horizontal Menu (4-6 Real Links) */
.fw-nav,
.fw-header__nav {
  display: none;
}

@media (min-width: 900px) {
  .fw-nav,
  .fw-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    flex: 1 1 auto;
  }
}

.fw-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.fw-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.fw-nav__link::after {
  content: "";
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: 8px;
  height: 1.5px;
  background-color: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-base) var(--ease-out);
}

.fw-nav__link:hover,
.fw-nav__link.is-active,
.fw-nav__link[aria-current="page"] {
  color: var(--ink);
}

.fw-nav__link:hover::after,
.fw-nav__link.is-active::after,
.fw-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.fw-nav__link--highlight {
  color: var(--brand);
  font-weight: 600;
}

/* Utility Affordances: Search & Cart (Right) */
.fw-header__actions,
.fw-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.fw-icon-btn,
.fw-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.fw-icon-btn:hover,
.fw-action-btn:hover {
  background-color: var(--surface-alt);
  color: var(--brand);
}

.fw-icon-btn svg,
.fw-action-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}

.fw-action-btn__label {
  display: none;
}

@media (min-width: 1024px) {
  .fw-action-btn__label {
    display: inline;
  }
}

/* Optional Compact Search Pill inside Header */
.fw-search-pill {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-3);
  background-color: var(--surface-alt);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (min-width: 1080px) {
  .fw-search-pill {
    display: inline-flex;
  }
}

.fw-search-pill input {
  width: 130px;
  font-size: var(--text-xs);
  color: var(--ink);
  outline: none;
}

.fw-search-pill input::placeholder {
  color: var(--muted);
}

/* Cart Count Badge */
.fw-cart-badge,
.fw-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-ink);
  background-color: var(--brand);
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   7. MOBILE HAMBURGER + DRAWER PATTERN
   Supports BOTH:
   A) Pure CSS Checkbox: <input type="checkbox" id="fw-nav-toggle" class="fw-nav-checkbox">
      placed Inside .fw-header or right before .fw-drawer
   B) Minimal-JS Toggle: .is-open on .fw-drawer / .fw-header / body.fw-menu-open
   -------------------------------------------------------------------------- */
.fw-nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fw-hamburger,
.fw-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  z-index: 120;
}

.fw-hamburger:hover,
.fw-menu-toggle:hover {
  background-color: var(--surface-alt);
}

@media (min-width: 900px) {
  .fw-hamburger,
  .fw-menu-toggle {
    display: none;
  }
}

.fw-hamburger__bar,
.fw-hamburger span,
.fw-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

/* Backdrop & Drawer Container */
.fw-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background-color: rgba(22, 21, 20, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base) var(--ease-out);
}

.fw-drawer,
.fw-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(86vw, 360px);
  height: 100dvh;
  background-color: var(--surface);
  border-left: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  padding: calc(var(--header-height) + var(--sp-4)) var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-6);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              visibility var(--duration-base) var(--ease-out);
}

.fw-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  margin-top: calc(-1 * var(--header-height));
  min-height: var(--header-height);
}

.fw-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

.fw-drawer__nav,
.fw-drawer__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.fw-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
}

.fw-drawer__link:hover,
.fw-drawer__link.is-active {
  color: var(--brand);
  background-color: var(--surface-alt);
}

.fw-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
}

/* OPEN STATES: Pure CSS Checkbox OR Minimal-JS Class (.is-open / .fw-menu-open) */
.fw-nav-checkbox:checked ~ .fw-drawer,
.fw-nav-checkbox:checked ~ .fw-mobile-menu,
.fw-header:has(.fw-nav-checkbox:checked) .fw-drawer,
.fw-header:has(.fw-nav-checkbox:checked) ~ .fw-drawer,
.fw-drawer.is-open,
.fw-mobile-menu.is-open,
.fw-header.is-open .fw-drawer,
.fw-header.is-open ~ .fw-drawer,
body.fw-menu-open .fw-drawer,
body.fw-menu-open .fw-mobile-menu {
  transform: translateX(0);
  visibility: visible;
}

.fw-nav-checkbox:checked ~ .fw-drawer-backdrop,
.fw-header:has(.fw-nav-checkbox:checked) .fw-drawer-backdrop,
.fw-header:has(.fw-nav-checkbox:checked) ~ .fw-drawer-backdrop,
.fw-drawer-backdrop.is-open,
.fw-header.is-open .fw-drawer-backdrop,
.fw-header.is-open ~ .fw-drawer-backdrop,
body.fw-menu-open .fw-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hamburger-to-X Animation for Both Checkbox and Class States */
.fw-nav-checkbox:checked + .fw-hamburger span:nth-child(1),
.fw-nav-checkbox:checked ~ .fw-hamburger span:nth-child(1),
.fw-header:has(.fw-nav-checkbox:checked) .fw-hamburger span:nth-child(1),
.fw-hamburger.is-open span:nth-child(1),
.fw-menu-toggle.is-open span:nth-child(1),
.fw-header.is-open .fw-hamburger span:nth-child(1),
body.fw-menu-open .fw-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.fw-nav-checkbox:checked + .fw-hamburger span:nth-child(2),
.fw-nav-checkbox:checked ~ .fw-hamburger span:nth-child(2),
.fw-header:has(.fw-nav-checkbox:checked) .fw-hamburger span:nth-child(2),
.fw-hamburger.is-open span:nth-child(2),
.fw-menu-toggle.is-open span:nth-child(2),
.fw-header.is-open .fw-hamburger span:nth-child(2),
body.fw-menu-open .fw-hamburger span:nth-child(2) {
  opacity: 0;
}

.fw-nav-checkbox:checked + .fw-hamburger span:nth-child(3),
.fw-nav-checkbox:checked ~ .fw-hamburger span:nth-child(3),
.fw-header:has(.fw-nav-checkbox:checked) .fw-hamburger span:nth-child(3),
.fw-hamburger.is-open span:nth-child(3),
.fw-menu-toggle.is-open span:nth-child(3),
.fw-header.is-open .fw-hamburger span:nth-child(3),
body.fw-menu-open .fw-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .fw-drawer,
  .fw-mobile-menu,
  .fw-drawer-backdrop {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   8. HERO SECTION (Full-Width Image, Soft Overlay, Headline, Subline, 48px+ CTA)
   -------------------------------------------------------------------------- */
.fw-hero {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 68vh, 660px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1c1b1a;
  color: #ffffff;
}

.fw-hero__media,
.fw-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.fw-hero__media img,
.fw-hero__bg img,
.fw-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Soft Editorial Scrim Overlay for High-Contrast Readability */
.fw-hero__overlay,
.fw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(16, 15, 14, 0.76) 0%,
    rgba(16, 15, 14, 0.52) 52%,
    rgba(16, 15, 14, 0.24) 100%
  );
  pointer-events: none;
}

.fw-hero--center::before,
.fw-hero--center .fw-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(16, 15, 14, 0.45) 0%,
    rgba(16, 15, 14, 0.65) 100%
  );
}

.fw-hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-9) var(--container-pad);
}

.fw-hero__content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.fw-hero--center .fw-hero__content {
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.fw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
}

.fw-hero__title,
.fw-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
}

.fw-hero__subline,
.fw-hero p {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.fw-hero__actions,
.fw-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.fw-hero .fw-btn--primary {
  min-height: 52px;
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* --------------------------------------------------------------------------
   9. TRUST STRIP (Value Props, Ratings, Guarantees)
   -------------------------------------------------------------------------- */
.fw-trust,
.fw-trust-strip {
  background-color: var(--surface);
  border-bottom: 1px solid var(--hairline);
  padding: var(--sp-4) 0;
}

.fw-trust__inner,
.fw-trust-strip__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .fw-trust,
  .fw-trust-strip {
    padding: var(--sp-5) 0;
  }
  .fw-trust__inner,
  .fw-trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
  }
}

.fw-trust__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.fw-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.fw-trust__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.fw-trust__text {
  display: flex;
  flex-direction: column;
}

.fw-trust__title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.fw-trust__sub {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. PRODUCT GRID & 4:5 CARDS
   2 Columns Mobile / 3 or 4 Desktop, Equal-Ratio 4:5 Media, Object-Fit Cover,
   12px Radius, Soft Shadow, Subtle Hover Lift, Clear Name/Price Hierarchy
   -------------------------------------------------------------------------- */
.fw-grid,
.fw-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .fw-grid,
  .fw-product-grid {
    gap: var(--sp-5);
  }
}

@media (min-width: 768px) {
  .fw-grid--3,
  .fw-product-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  /* Default 4-col on desktop unless .fw-grid--3 is specified */
  .fw-grid:not(.fw-grid--3),
  .fw-product-grid:not(.fw-product-grid--3),
  .fw-grid--4,
  .fw-product-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Product Card */
.fw-card,
.fw-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md); /* 12px */
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.fw-card:hover,
.fw-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--hairline-strong);
}

/* Equal-Ratio 4:5 Media Container */
.fw-card__media,
.fw-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--surface-alt);
  overflow: hidden;
}

.fw-card__media img,
.fw-product-card__media img,
.fw-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 480ms var(--ease-out);
}

.fw-card:hover .fw-card__media img,
.fw-product-card:hover .fw-product-card__media img,
.fw-card:hover .fw-card__img {
  transform: scale(1.04);
}

/* Optional Product Badge (e.g. "Bestseller", "New", "Save 15%") */
.fw-card__badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 2;
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

.fw-card__badge--brand {
  background-color: var(--brand);
  color: var(--brand-ink);
}

/* Card Body & Name/Price Hierarchy */
.fw-card__body,
.fw-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-3);
}

@media (min-width: 640px) {
  .fw-card__body,
  .fw-product-card__body {
    padding: var(--sp-4);
  }
}

.fw-card__category,
.fw-card__vendor {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fw-card__title,
.fw-product-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .fw-card__title,
  .fw-product-card__title {
    font-size: var(--text-base);
  }
}

.fw-card__link {
  color: inherit;
  text-decoration: none;
}

.fw-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fw-card__meta,
.fw-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-1);
}

.fw-card__price,
.fw-price {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

@media (min-width: 640px) {
  .fw-card__price,
  .fw-price {
    font-size: var(--text-base);
  }
}

.fw-card__compare,
.fw-price--compare {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted-light);
  text-decoration: line-through;
}

.fw-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.fw-card__stars {
  color: #d97706;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   11. EDITORIAL STORY / COLLECTION BANNER (Optional Mid-Page Merchandising)
   -------------------------------------------------------------------------- */
.fw-split,
.fw-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
}

@media (min-width: 768px) {
  .fw-split,
  .fw-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
  }
}

.fw-split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

.fw-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fw-split__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

/* --------------------------------------------------------------------------
   12. SEO REPORT-CARD PANEL (.facet-panel)
   Visually distinct audit card for Stephen's outreach pitch:
   - Badge line (.facet-panel__badge / .facet-badge)
   - Found-vs-Fixed scorecard rows with ✕ / ✓ styling (.facet-row, .facet-found, .facet-fixed)
   - Closing line (.facet-panel__closing / .facet-closing)
   -------------------------------------------------------------------------- */
.facet-panel-wrap {
  padding: var(--sp-8) var(--container-pad);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  border-top: 1px solid var(--hairline);
}

.facet-panel {
  position: relative;
  max-width: var(--container-max);
  margin: var(--sp-7) auto;
  background-color: #ffffff;
  color: #161514;
  border: 1.5px solid #cbd5e1;
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12),
              0 4px 12px -2px rgba(15, 23, 42, 0.06);
  padding: var(--sp-5);
  overflow: hidden;
  font-family: var(--font-sans);
}

@media (min-width: 768px) {
  .facet-panel {
    padding: var(--sp-7);
    margin: var(--sp-9) auto;
  }
}

/* Header & Badge Line */
.facet-panel__header,
.facet-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
  .facet-panel__header,
  .facet-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.facet-panel__badge,
.facet-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  padding: 0.375rem 0.875rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f172a;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
}

.facet-panel__badge::before,
.facet-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.facet-panel__title,
.facet-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.facet-panel__subtitle,
.facet-subtitle {
  font-size: var(--text-sm);
  color: #475569;
}

/* Scorecard Rows Container */
.facet-panel__scorecard,
.facet-scorecard,
.facet-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Individual Found-vs-Fixed Row */
.facet-panel__row,
.facet-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  align-items: stretch;
}

@media (min-width: 768px) {
  .facet-panel__row,
  .facet-row {
    grid-template-columns: minmax(140px, 0.9fr) 1.55fr 1.55fr;
    gap: var(--sp-4);
    padding: var(--sp-4);
    align-items: center;
  }

  /* Support 2-column (Found | Fixed) markup when category label is omitted */
  .facet-panel__row--2col,
  .facet-row--2col,
  .facet-panel__row:not(:has(.facet-row__label, .facet-metric)),
  .facet-row:not(:has(.facet-row__label, .facet-metric)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facet-row__label,
.facet-metric {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
}

/* Found (Issue / Live Site) Cell — X Styling */
.facet-found,
.facet-row__found,
.facet-cell--found {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background-color: var(--audit-danger-bg);
  color: #7f1d1d;
  border: 1px solid var(--audit-danger-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.facet-found::before,
.facet-row__found::before,
.facet-cell--found::before,
.facet-icon--x {
  content: "✕";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fee2e2;
  color: var(--audit-danger-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Suppress duplicate pseudo-icon if explicit .facet-icon--x element is used inside */
.facet-found:has(.facet-icon--x)::before,
.facet-row__found:has(.facet-icon--x)::before,
.facet-cell--found:has(.facet-icon--x)::before {
  display: none;
}

/* Fixed (Preview Upgrade) Cell — Check Styling */
.facet-fixed,
.facet-row__fixed,
.facet-cell--fixed {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background-color: var(--audit-success-bg);
  color: #064e3b;
  border: 1px solid var(--audit-success-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.45;
  font-weight: 500;
}

.facet-fixed::before,
.facet-row__fixed::before,
.facet-cell--fixed::before,
.facet-icon--check {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: var(--audit-success-ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Suppress duplicate pseudo-icon if explicit .facet-icon--check element is used inside */
.facet-fixed:has(.facet-icon--check)::before,
.facet-row__fixed:has(.facet-icon--check)::before,
.facet-cell--fixed:has(.facet-icon--check)::before {
  display: none;
}

.facet-found strong,
.facet-fixed strong {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

/* Closing Line / Callout Footer */
.facet-panel__closing,
.facet-closing,
.facet-panel__footer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: #334155;
}

@media (min-width: 640px) {
  .facet-panel__closing,
  .facet-closing,
  .facet-panel__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.facet-panel__closing p,
.facet-closing p {
  font-weight: 500;
  color: #1e293b;
}

/* --------------------------------------------------------------------------
   13. MULTI-COLUMN FOOTER
   -------------------------------------------------------------------------- */
.fw-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-7);
  margin-top: auto;
}

.fw-footer--dark {
  background-color: #161514;
  color: #f5f3ef;
  border-top-color: #2c2a28;
}

.fw-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.fw-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--hairline);
}

.fw-footer--dark .fw-footer__grid {
  border-bottom-color: #2c2a28;
}

@media (min-width: 640px) {
  .fw-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .fw-footer__grid {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: var(--sp-7);
  }
}

.fw-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.fw-footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.fw-footer__desc {
  font-size: var(--text-sm);
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
}

.fw-footer--dark .fw-footer__desc {
  color: #a8a29e;
}

.fw-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.fw-footer__heading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: var(--sp-1);
}

.fw-footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fw-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

@media (min-width: 768px) {
  .fw-footer__link {
    min-height: 36px;
    padding: 4px 0;
  }
}

.fw-footer__link:hover {
  color: var(--brand);
}

.fw-footer--dark .fw-footer__link {
  color: #a8a29e;
}

.fw-footer--dark .fw-footer__link:hover {
  color: #ffffff;
}

/* Newsletter Form inside Footer */
.fw-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
  margin-top: var(--sp-2);
}

@media (min-width: 480px) {
  .fw-newsletter {
    flex-direction: row;
  }
}

.fw-newsletter__input {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 var(--sp-3);
  background-color: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--ink);
}

.fw-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  font-size: var(--text-xs);
  color: var(--muted);
}

@media (min-width: 640px) {
  .fw-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fw-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.fw-footer__legal a {
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.fw-footer__legal a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. HELPER & ACCESSIBILITY UTILITIES
   -------------------------------------------------------------------------- */
.fw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fw-text-center { text-align: center; }
.fw-text-muted { color: var(--muted); }
.fw-mt-4 { margin-top: var(--sp-4); }
.fw-mt-6 { margin-top: var(--sp-6); }
.fw-mb-4 { margin-bottom: var(--sp-4); }
.fw-mb-6 { margin-bottom: var(--sp-6); }

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