/* ============================================================
   Velvet Nights — Brand Styling (v6 — Competitor-Enhanced)
   Mobile-first, responsive design
   Features: trust bar, promo banner, category visual grid,
             product badges, wishlist, scroll-top, newsletter
   ============================================================ */

/* --- CSS Variables (Option A: Richer Color v1) --- */
:root {
  /* Primary colors — FIXED: #B9A185 per brand standing rule (was #988168) */
  --bg-taupe: #B9A185;
  --bg-taupe-light: #D4C4A8;
  --bg-taupe-lighter: #D4C4A8;
  --bg-glow: #C9AF88;
  --burgundy: #140102;
  --burgundy-light: #210206;
  --gold: #BD9568;
  --gold-light: #C58C53;
  --skin-highlight: #CFAA7B;
  --skin-shadow: #A56F58;
  --text-dark: #140102;
  --text-muted: #361914;
  --white: #FFFFFF;
  --black: #000000;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Jost', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Layout */
  --max-width: 1400px;
  --grid-columns: 4;
  --grid-gap: 1.5rem;
}

/* --- Option B: Richer Color v2 (activated via JS) --- */
[data-brand="option-b"] {
  --bg-taupe: #A68C73;
  --bg-taupe-light: #C5A993;
  --gold: #BD9568;
  --gold-light: #C58C53;
}

/* --- Reset & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-taupe);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Header velvet texture layer (feedback round 2, P3) --- */
.header-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/heroes/hero-a-velvet-drape.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.header-inner { position: relative; z-index: 1; }

/* --- Trust strip (moved down from the header — feedback round 2, P2) --- */
.trust-strip {
  background-color: var(--burgundy);
  color: var(--white);
  padding: var(--spacing-md);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.trust-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  text-align: center;
}

/* --- 15% offer: header chip + floating card (feedback round 2, P4) --- */
.promo-chip {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 980px;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
}

.promo-chip:hover { background: var(--gold); color: var(--burgundy); }

.promo-float {
  position: fixed;
  right: var(--spacing-md);
  bottom: var(--spacing-md);
  width: 258px;
  background: var(--burgundy);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: var(--spacing-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  z-index: 140;
  text-align: center;
}

.promo-float[hidden] { display: none; }

.promo-float-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.75;
  min-width: 32px;
  min-height: 32px;
}

.promo-float-close:hover { opacity: 1; }

.promo-float-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--gold);
  margin: 0 0 2px;
}

.promo-float-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-xs);
}

.promo-float-code {
  display: inline-block;
  background: var(--gold);
  color: var(--burgundy);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin: 0 0 var(--spacing-sm);
}

.promo-float-copy {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 980px;
  padding: 0.45rem;
  font-weight: 600;
  cursor: pointer;
}

.promo-float-copy:hover { background: var(--gold); color: var(--burgundy); }

/* --- Age gate: native <dialog> (feedback round 2, P1) ---
   Deliberately a native dialog so the browser supplies role=dialog, aria-modal,
   the inert background and focus restore. Escape is NEVER suppressed: closing without
   pressing "Enter" sets no flag, so it is non-consent, not consent. */
.age-gate {
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--burgundy);
  color: var(--white);
  max-width: 440px;
  width: calc(100% - 2rem);
  padding: var(--spacing-lg);
  text-align: center;
  /* The global `* { margin: 0 }` reset kills the UA stylesheet's `margin: auto`, which is what
     centres a modal <dialog>. Without this the dialog renders flush-left (measured centreX=220
     vs viewport centre 713 at 1440). Restore it. */
  margin: auto;
}

.age-gate::backdrop { background: rgba(10, 0, 1, 0.88); }

.age-gate-mark {
  width: 92px;
  height: auto;
  margin: 0 auto var(--spacing-sm);
  display: block;
}

.age-gate h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin: 0 0 var(--spacing-sm);
}

.age-gate p { font-size: 0.9rem; opacity: 0.9; }

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

.age-gate-enter {
  background: var(--gold);
  color: var(--burgundy);
  border: none;
  border-radius: 980px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.age-gate-leave {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 980px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

.age-gate-note { font-size: 0.72rem !important; opacity: 0.6 !important; }

/* --- Header with Logo Image --- */
.logo-img {
  height: 40px;
  width: auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.9;
}

/* --- Hero Section --- */
.site-header {
  background: rgba(0,0,0,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: inline-block;
}

.logo:hover {
  color: var(--skin-highlight);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 3px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(189, 149, 104, 0.2);
  color: var(--gold);
}

.nav-link.new-link {
  color: var(--gold);
  font-weight: 600;
}

.nav-link.bestsellers-link {
  color: var(--skin-highlight);
}

.nav-link.sale-link {
  color: #E07070;
  font-weight: 600;
}

.nav-link.rewards-link {
  color: var(--gold);
  font-weight: 600;
}

.wishlist-nav {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 980px;
  position: relative;
}

.wishlist-nav:hover {
  background: var(--gold);
  color: var(--burgundy);
}

#wishlist-count {
  font-weight: 700;
  font-size: 0.8rem;
}

.brand-toggle {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 980px;
}

.brand-toggle:hover {
  background: var(--gold);
  color: var(--burgundy);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Stacked logo in hero */
.hero-logo {
  max-width: 320px;
  margin: 0 auto var(--spacing-md);
  opacity: 0.95;
}



.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -0.28px;
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  background-color: var(--gold);
  color: var(--burgundy);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 980px;
  transition: all 0.2s ease;
  margin-right: var(--spacing-sm);
}

.hero-cta:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-cta-secondary {
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.hero-cta-secondary:hover {
  background-color: var(--gold);
  color: var(--burgundy);
}

.hero-badge {
  margin-top: var(--spacing-lg);
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.28px;
  color: var(--text-dark);
}

.view-all {
  color: #8A6A3D;   /* darker gold: var(--gold) on light bg was only 1.1-2.7:1 (WCAG fail) */
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  border-radius: 980px;
}

.view-all:hover {
  border-bottom-color: var(--gold);
}

.view-all::after {
  content: '';
}

.sale-title {
  color: #B03A3A;   /* was #E07070 — only 1.26:1 on light bg (WCAG fail); ~5.5:1 now */
}

/* Back link on the product detail page header */
.product-back {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.product-back:hover { color: var(--white); }

/* --- Seasonal Collections Section (VS Special Collections style) --- */
.seasonal-section {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background: #f5f5f7;
}

.seasonal-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.seasonal-card {
  background: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.seasonal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: var(--gold);
}

.seasonal-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.seasonal-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.seasonal-link {
  color: #8A6A3D;   /* darker gold for AA contrast on the light section */
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.seasonal-link:hover {
  border-bottom-color: var(--gold);
}


/* --- Categories Visual Grid --- */
.categories-visual {
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  text-align: center;
  background: #ffffff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  max-width: var(--max-width);
  margin: var(--spacing-lg) auto 0;
}

.category-card {
  background: var(--white);
  border-radius: 8px;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-color: var(--gold);
}

.category-card .cat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.category-card .cat-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.category-card .cat-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* --- Category Navigation --- */
.category-nav {
  background-color: rgba(20, 1, 2, 0.9);
  padding: var(--spacing-md);
  overflow-x: auto;
  white-space: nowrap;
}

.category-list {
  display: flex;
  gap: var(--spacing-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.category-item {
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-radius: 980px;
  cursor: pointer;
  white-space: nowrap;
}

.category-item:hover,
.category-item.active {
  background-color: var(--gold);
  color: var(--burgundy);
}

/* --- Horizontal Category Pill Nav (Airbnb style) --- */
.category-pill-nav {
  display: flex;
  gap: var(--spacing-sm);
  max-width: var(--max-width);
  margin: var(--spacing-lg) auto 0;
  padding: 0 var(--spacing-md);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pill-nav::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 980px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-pill:hover {
  background: var(--gold);
  color: var(--burgundy);
  border-color: var(--gold);
}

.category-pill.active {
  background: var(--gold);
  color: var(--burgundy);
  font-weight: 600;
  border-color: var(--gold);
}

/* --- Product Grid --- */
.product-section {
  background: #f5f5f7;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* Full-bleed section background with centred content (fixes the body-taupe bleed that
   made product sections a stray tan block and broke link contrast). */
.product-section > .section-header,
.product-section > .product-grid,
.product-section > .no-products {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}

/* --- Product Card (v6 — with badges & wishlist) --- */
.product-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background-color: var(--bg-taupe-light);
  transition: opacity 0.3s ease;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--bg-taupe-light);
  transition: opacity 0.3s ease;
}

.product-info {
  padding: var(--spacing-md);
}

.product-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--spacing-xs);
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.product-sizes {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.size-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 980px;
  background: rgba(189, 149, 104, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(189, 149, 104, 0.3);
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--burgundy);
}

.product-price.sale {
  color: #D4A574;
}

.product-price .original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-right: var(--spacing-xs);
}

/* Product badges */
.product-badge {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.badge-new {
  background: var(--gold);
  color: var(--burgundy);
}

.badge-sale {
  background: #D4A574;
  color: var(--white);
}

.badge-bestseller {
  background: var(--burgundy);
  color: var(--gold);
}

/* Wishlist button on product card (Adore Me style) */
.product-wishlist {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--white);
  border: 1px solid rgba(20, 1, 2, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--burgundy);
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 2;
}

.product-card:hover .product-wishlist {
  opacity: 1;
}

.product-wishlist:hover {
  background: var(--burgundy);
  color: var(--gold);
  transform: scale(1.1);
}

.product-wishlist.active {
  background: var(--burgundy);
  color: var(--gold);
  opacity: 1;
}

/* --- Toys Cross-Sell Teaser --- */
.toys-teaser {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background: #f5f5f7;
}

.toys-teaser-inner {
  max-width: 700px;
  margin: 0 auto;
}

.toys-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.toys-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.toys-teaser p {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.toys-disclaimer {
  font-size: 0.85rem;
  opacity: 0.7;
}

.toys-disclaimer a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}

.toys-disclaimer a:hover {
  opacity: 0.8;
}

/* --- Velvet Rewards Section --- */
.rewards-section {
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: var(--white);
}

.rewards-inner {
  max-width: 700px;
  margin: 0 auto;
}

.rewards-inner h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: var(--spacing-sm);
}

.rewards-inner > p {
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

.rewards-perks {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.perk {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
}

.perk-icon {
  font-size: 1.3rem;
}

.rewards-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--burgundy);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 980px;
  transition: all 0.2s ease;
}

.rewards-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* --- Newsletter Section (GDPR compliance) --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-light) 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
  color: var(--gold);
}

.newsletter-inner p {
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.gdpr-note {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: var(--spacing-md) !important;
}

.gdpr-link {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.newsletter-form input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.6);
}

.newsletter-form button {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--gold);
  color: var(--burgundy);
  border: none;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--gold-light);
}

.newsletter-note {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--burgundy);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--gold);
}

.footer-col p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: var(--spacing-xs);
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-cta {
  color: var(--gold) !important;
  font-weight: 600;
  opacity: 1 !important;
}

.trust-signal {
  margin-top: var(--spacing-md);
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 1 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-legal {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: var(--spacing-xs);
}

.footer-logo {
  max-width: 80px;
  margin-bottom: var(--spacing-sm);
}

.discreet-text {
  font-size: 0.8rem;
  opacity: 0.6;
  font-style: italic;
  margin-top: var(--spacing-sm);
}

/* --- Quick View Modal --- */
.quick-view-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}

.quick-view-overlay.active {
  display: flex;
}

.quick-view-panel {
  background: var(--white);
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--spacing-lg);
}

.qv-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  z-index: 1;
}

.qv-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.qv-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-taupe-light);
}

.qv-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.qv-details h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-dark);
}

.qv-details .qv-brand {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
}

.qv-details .qv-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--burgundy);
}

.qv-details .qv-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.qv-details .qv-sizes {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.qv-details .qv-colors {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.qv-size-btn, .qv-color-swatch {
  border: 1px solid #ccc;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
}

.qv-size-btn:hover, .qv-color-swatch:hover {
  border-color: var(--gold);
}

.qv-add-btn {
  background: var(--burgundy);
  color: var(--gold);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: none;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  margin-top: var(--spacing-sm);
  transition: all 0.2s ease;
}

.qv-add-btn:hover {
  background: var(--burgundy-light);
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  background: var(--burgundy);
  color: var(--gold);
  border: 1px solid var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--burgundy);
  transform: translateY(-2px);
}

/* --- No Products Message --- */
.no-products {
  text-align: center;
  padding: var(--spacing-xl);
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  :root {
    --grid-columns: 3;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --grid-columns: 2;
    --grid-gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-cta {
    display: block;
    margin-bottom: var(--spacing-sm);
    margin-right: 0;
  }
  
  .header-nav {
    gap: var(--spacing-xs);
  }
  
  .logo-img {
    height: 32px;
  }
  
  .nav-link {
    display: none;
  }

  /* Higher specificity than the later base rule `.mobile-menu-btn { display: none }`
     (source-order bug: the base rule at the end of the file was overriding this one). */
  .header-nav .mobile-menu-btn {
    display: flex;
  }
  
  .nav-link.new-link {
    display: inline-block;
  }
  
  .trust-strip-inner {
    gap: var(--spacing-sm);
    font-size: 0.65rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .seasonal-grid {
    grid-template-columns: 1fr;
  }
  
  .rewards-perks {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .qv-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --grid-columns: 2;
  }
  
  .product-info {
    padding: var(--spacing-sm);
  }
  
  .product-title {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .promo-float {
    left: var(--spacing-md);
    right: var(--spacing-md);
    width: auto;
  }
  
  .hero-logo {
    max-width: 200px;
  }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 1, 2, 0.95);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.mobile-nav-link {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 400;
  padding: var(--spacing-sm) var(--spacing-lg);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--gold);
}

/* --- Notification Toast --- */
.notification-toast {
  position: fixed;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  background: var(--burgundy);
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 980px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: 90%;
  text-align: center;
  font-size: 0.9rem;
}

.notification-toast.active {
  opacity: 1;
  visibility: visible;
}

.notification-toast strong {
  color: var(--gold);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.notification-toast p {
  margin: 0;
  opacity: 0.9;
}

/* --- Accessibility & polish (v8) --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Comfortable minimum target sizes for icon-only controls */
.mobile-menu-btn,
.mobile-menu-close {
  min-width: 44px;
  min-height: 44px;
}

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

/* ============================================================
   mockup-v9 — AI hero banner layer
   (hero C = main hero · A = sale band · B = editorial · D = divider)
   Assets are optimised JPEGs (~166KB total; was ~3.13MB of PNG).
   ============================================================ */

/* Hero with photographic background */
.hero--image { background: var(--burgundy); }

.hero--image .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;                 /* its own layer, BELOW the scrim */
  background-size: cover;
  background-position: center;
  opacity: 1;
}

/* Legibility scrim.
   Must sit ABOVE .hero-bg. The first version had z-index:auto on both, and because
   ::before is generated content (the element's first child) it painted UNDER the
   photo — so the scrim did nothing at all. Scrutiny proved it: hiding it produced
   byte-identical hero pixels. Values are also lighter now so the photo actually reads
   as a photograph instead of faint dark texture. */
.hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(20, 1, 2, 0.55) 0%,
    rgba(20, 1, 2, 0.18) 40%,
    rgba(20, 1, 2, 0.62) 100%);
}

.hero--image .hero-logo,
.hero--image .hero-content,
.hero--image .hero-badge { position: relative; z-index: 2; }

/* Ornamental Art Nouveau filigree divider.
   Uses a band pre-cropped to the rendered aspect (1024x108 ≈ 9.5:1) so background-size:cover
   no longer discards ~81% of a 16:9 source, and the height is responsive rather than a
   fixed 150px at every viewport. The background colour is marginally darker than the hero
   so the band reads as a distinct seam. */
.ornament-divider {
  height: clamp(96px, 11vw, 150px);
  background-color: #170103;
  background-image: url('assets/heroes/hero-d-filigree-band.jpg');
  background-size: cover;
  background-position: center;
}

/* Editorial feature block */
.editorial-section {
  background: #ffffff;   /* matches the Categories block above it; #f5f5f7 made a near-white seam */
  padding: var(--spacing-xl) var(--spacing-md);
}

.editorial-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
}

.editorial-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.editorial-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #8A6A3D;
  margin-bottom: var(--spacing-xs);
}

.editorial-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.editorial-text {
  color: var(--text-dark);
  opacity: 0.85;
  margin-bottom: var(--spacing-md);
}

.editorial-cta {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  padding: 0.75rem 1.6rem;
  border-radius: 980px;
  font-weight: 600;
  text-decoration: none;
}

.editorial-cta:hover { background: var(--burgundy-light); }

/* Sale section over the velvet-drape image (option A) */
.sale-section {
  background-image:
    linear-gradient(rgba(20, 1, 2, 0.88), rgba(20, 1, 2, 0.88)),
    url('assets/heroes/hero-a-velvet-drape.jpg');
  background-size: cover;
  background-position: center;
}

/* These colours are only valid ON the dark sale band. If the sale section is ever
   reverted to a light background, .sale-title must go back to the base rule's #B03A3A
   (chosen for WCAG on light) or contrast silently fails. */
.sale-section .section-title { color: var(--white); }
.sale-section .sale-title { color: #E9A0A0; }
.sale-section .view-all { color: #E6C79C; }
.sale-section .view-all:hover { border-bottom-color: #E6C79C; }
