/* ============================================================
   PIEL MALDIVES — STOREFRONT
   Brand: peach #FAC566 → coral #FF8E7A → pink #FF2272
   Inspired by PARFS / Seative Digital aesthetic
   ============================================================ */

:root {
  /* Brand gradient */
  --g-start:   #FAC566;
  --g-mid:     #FF8E7A;
  --g-end:     #FF2272;
  --gradient:  linear-gradient(135deg, #FAC566 0%, #FF8E7A 50%, #FF2272 100%);

  /* Neutrals */
  --bg:        #F9F7F3;
  --white:     #FFFFFF;
  --charcoal:  #111111;
  --mid:       #6B6560;
  --light:     #EDEBE8;
  --cream:     #F7F2EE;

  /* Accent */
  --rose:      #FF4D7D;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Fast-start, no-overshoot settle — used for hover/reveal motion that
     isn't gesture-driven (no momentum to project, so no spring bounce). */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* Bootstrap's own .container caps at 1320px from 1400px up, leaving large
   dead margins on wide desktop monitors. .container-wide (added alongside
   .container, not replacing it) raises that cap for browsing/visual pages
   (homepage, catalog, PDP, cart) while form/text-heavy pages (checkout,
   accounts, policy pages) keep Bootstrap's default width. */
@media (min-width: 1400px) {
  .container.container-wide { max-width: 1900px; }
}
a   { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }

/* ── Gradient utilities ──────────────────── */
.text-gradient {
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-brand { background: var(--gradient); }

/* ── Typography ──────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
}

.brand-logo {
  flex: 0 1 0%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.375rem;
  color: var(--charcoal) !important;
  white-space: nowrap;
}

.brand-logo-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(120deg, #FF9E6D 0%, #FF4D7D 100%);
  box-shadow: rgba(255, 90, 110, 0.5) 0px 4px 10px -3px;
}

.brand-logo img { width: 44px; height: 44px; }

/* Wordmark via CSS mask — uses alpha channel to colour the letterforms.
   Box aspect ratio must match the source PNG's own ratio (~1.88:1 as of the
   2026-07-23 artwork swap) or `contain` leaves dead space on the sides. */
.brand-wordmark {
  display: inline-block;
  width: 73px;
  height: 39px;
  flex-shrink: 0;
  background: var(--charcoal);
  -webkit-mask: url("../img/piel-wordmark-clean.14e92f5d5c65.png") no-repeat center / contain;
  mask: url("../img/piel-wordmark-clean.14e92f5d5c65.png") no-repeat center / contain;
}

/* White version for the dark footer */
.brand-wordmark--light {
  background: rgba(255, 255, 255, 0.75);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 400;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 22, 19, 0.07);
}

.nav-grid {
  display: flex;
  align-items: center;
  padding: 12px 48px;
  width: 100%;
}

.nav-left  { flex: 1 1 0%; display: flex; align-items: center; gap: 2rem; }
.nav-right { flex: 1 1 0%; display: flex; align-items: center; justify-content: flex-end; gap: 1.375rem; }

/* ── Hamburger button ────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-right: 4px;
  min-width: 44px;
  min-height: 44px;
  transition: transform 0.12s ease-out;
}
.nav-hamburger:active { transform: scale(0.9); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.28s var(--ease), opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile slide-down menu ─────────────── */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(250,250,249,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light);
  padding: 0.5rem 1.5rem 1.25rem;
  z-index: 899;
  animation: menuSlide 0.22s var(--ease) both;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--charcoal); }

/* ── Mobile "Shop" accordion (tap-to-expand, mirrors .catalog-filter-toggle) ── */
.mobile-nav-shop-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.85rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
  cursor: pointer;
}
.mobile-nav-shop-toggle:hover { color: var(--charcoal); }
.mobile-nav-shop-chevron { font-size: 0.75rem; transition: transform 0.2s; }
.mobile-nav-shop-toggle.open .mobile-nav-shop-chevron { transform: rotate(180deg); }
.mobile-nav-shop-panel { display: none; padding-left: 1rem; }
.mobile-nav-shop-panel.open { display: block; }
.mobile-nav-shop-panel a {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid var(--light);
}
.mobile-nav-shop-panel a:last-child { border-bottom: none; }
.mobile-nav-shop-panel a:hover { color: var(--charcoal); }

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive nav ──────────────────────── */
@media (max-width: 767.98px) {
  .nav-desktop { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-grid { padding: 12px 18px; }
  .brand-logo { flex: 0 0 auto; }
  .brand-logo img { width: 38px; height: 38px; }
  .brand-wordmark { width: 64px; height: 34px; }
}

.nav-link {
  font-size: 0.84rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid) !important;
  padding: 0 !important;
  transition: color 0.2s, transform 0.12s ease-out !important;
  position: relative;
  text-decoration: none !important;
  display: inline-block;
}

.nav-link-login { color: var(--charcoal) !important; }

.nav-link:hover,
.nav-link--active { color: var(--charcoal) !important; }

.nav-link:active { transform: scale(0.96); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link--active::after { transform: scaleX(1); }

/* ── "Shop" dropdown (desktop, hover-driven — no click JS, see base.html) ──
   No existing hover-dropdown pattern in this codebase; Bootstrap's own
   .dropdown-menu is click-only (data-bs-toggle), so this bypasses that JS
   entirely and toggles visibility with plain CSS. :focus-within is the
   keyboard-accessible fallback for a mouseless user tabbing through the menu. */
.nav-shop-dropdown { position: relative; display: inline-block; }
.nav-shop-chevron { font-size: 0.62rem; margin-left: 0.15rem; transition: transform 0.2s; vertical-align: 1px; }
.nav-shop-dropdown:hover .nav-shop-chevron,
.nav-shop-dropdown:focus-within .nav-shop-chevron { transform: rotate(180deg); }
.nav-shop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  margin: 0;
  padding: 0.4rem;
  z-index: 950;
}
/* Invisible bridge over the 14px gap above -- without it, that gap belongs to
   neither .nav-shop-dropdown's box (sized to just the trigger link) nor
   .nav-shop-menu's (which starts after the gap), so moving the mouse straight
   down from the trigger toward a menu item crosses a dead zone with nothing
   hovered, hover is lost mid-transit, and the menu closes before the click
   lands. This pseudo-element is a DOM descendant of .nav-shop-menu, so
   hovering it still counts as hovering .nav-shop-dropdown, keeping the menu
   open across the gap without changing its visual spacing. */
.nav-shop-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
@media (min-width: 768px) {
  .nav-shop-dropdown:hover .nav-shop-menu,
  .nav-shop-dropdown:focus-within .nav-shop-menu {
    display: block;
  }
}
.nav-shop-menu .dropdown-item {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  color: var(--mid);
}
.nav-shop-menu .dropdown-item:hover,
.nav-shop-menu .dropdown-item:focus-visible { color: var(--charcoal); }

/* ── Auth tabs (register page + checkout Step 0) ─────────────────────
   Bootstrap's .nav-pills default-blue active state collides with the
   storefront's own .nav-link rules (uppercase, 0 padding, mid color, all
   !important), so this component re-establishes pill styling at higher
   specificity with its own !importants: ghost inactive, solid gradient
   pill active, focus ring matching the sitewide 2026-07-25 treatment. */
.auth-tabs .nav-link {
  padding: 0.6rem 1rem !important;
  border-radius: 999px;
  color: var(--mid) !important;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.auth-tabs .nav-link:hover {
  color: var(--charcoal) !important;
  background-color: rgba(17, 17, 17, 0.06);
}
.auth-tabs .nav-link.active {
  color: #fff !important;
  background: var(--gradient) !important;
}
.auth-tabs .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rose);
}

/* Search */
.search-wrap { position: relative; }

.search-input {
  border: 1px solid rgba(26, 22, 19, 0.14);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  min-width: 150px;
  width: 150px;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(255,130,122,0.18); border-color: rgba(255,130,122,0.45); }
.search-input::placeholder { color: var(--mid); }

.search-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.81rem;
  color: var(--mid);
  pointer-events: none;
  line-height: 1;
}

/* Cart */
.cart-icon-link {
  position: relative;
  font-size: 1.1rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: color 0.2s;
}

.cart-icon-link:hover { color: var(--g-end); }

.cart-badge {
  position: absolute;
  /* .cart-icon-link is now a 44x44 tap target with the icon centered
     inside it, so this offsets from the icon glyph, not the box edge. */
  top: 7.75px; right: 5.75px;
  background: var(--gradient);
  color: white;
  font-size: 0.75rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* ── Buttons ──────────────────────────────── */
.btn-piel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient);
  /* Charcoal, not white: white-on-gradient measures as low as 1.6:1 across
     the peach/coral stops (need 4.5:1 for WCAG AA); charcoal clears every
     stop with room to spare (5.1–11.9:1). */
  color: var(--charcoal);
  border: none;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
}

.btn-piel:hover { opacity: 0.88; transform: translateY(-1px); color: var(--charcoal); }
/* Press feedback on pointer-down, not release — same house pattern already
   used on .nav-link/.product-card/.quiz-opt etc.; the main CTA was missing it. */
.btn-piel:active { transform: scale(0.97); transition-duration: 0.1s; }

.btn-piel-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-piel-outline:hover { background: white; color: var(--charcoal); border-color: white; }
.btn-piel-outline:active { transform: scale(0.97); }

/* Keyboard focus rings — .btn-piel's gradient background can't guarantee
   contrast for a color-based indicator, so this uses an offset box-shadow
   ring instead, visible against any background it sits on. */
.btn-piel:focus-visible,
.btn-piel-outline:focus-visible,
.nav-link:focus-visible,
.quiz-opt:focus-visible,
.nav-hamburger:focus-visible,
.mob-search-btn:focus-visible,
.cart-icon-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rose);
}

/* ── Hero ─────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  background: var(--charcoal);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1c0a00 0%, #111 60%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.12;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 8vh;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--g-start);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  color: white;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}

.hero-title .gradient-word {
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
  max-width: 300px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Static fallback hero */
.hero-static {
  background-color: #1a1015;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 8vh;
  position: relative;
  overflow: hidden;
}

.hero-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,5,10,0.85) 0%, rgba(10,5,10,0.3) 60%, rgba(10,5,10,0.15) 100%);
}

/* ── Site notice ──────────────────────────── */
/* Takes over the marquee's slot while active, so the sticky header gains no extra
   height. Dismissing it (session-only) restores the marquee via .announce-dismissed. */
.announce-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--charcoal);
  color: white;
  padding: 0.7rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.announce-text { flex: 1; }

.announce-close {
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0;
  color: white;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.announce-close:hover { color: var(--light); }

.marquee-strip--behind-announce { display: none; }
.announce-dismissed .announce-strip { display: none; }
.announce-dismissed .marquee-strip--behind-announce { display: block; }

/* ── Marquee ──────────────────────────────── */
.marquee-strip {
  background: white;
  border-bottom: 1px solid var(--light);
  padding: 0.85rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track {
    animation: marquee 28s linear infinite;
  }
}

.marquee-star {
  color: #FF8E7A;
  margin-right: 0.5rem;
}

.marquee-item {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0 2.5rem;
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--g-mid);
  margin-left: 2.5rem;
  flex-shrink: 0;
}

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

@media (hover: hover) and (pointer: fine) {
  .marquee-strip:hover .marquee-track { animation-play-state: paused; }
}

.marquee-strip.marquee-paused .marquee-track { animation-play-state: paused; }

/* ── Sections ─────────────────────────────── */
.section    { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light);
}

.view-all-link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.view-all-link:hover { opacity: 0.6; }

.scent-section { background: var(--cream); }

/* ── Product Grid ─────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4.5rem 3rem;
}

/* Catalog sidebar pages (Men/Women/Unisex) — 3 cols, tighter gap */
.catalog-main .product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.25rem;
}
.catalog-main .product-card__name { font-size: 1.05rem; }
.catalog-main .product-card__body { padding-top: 10px; }
.catalog-main .product-card__media { border-radius: 12px; }

@media (max-width: 1024px) { .catalog-main .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .catalog-main .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { gap: 2.5rem 1.25rem; } }
@media (max-width: 380px) { .product-grid { grid-template-columns: 1fr; } }

/* Homepage Featured / Best Sellers — 4 cards per row, same treatment as catalog grid */
.home-grid-4 .product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 1.25rem;
}
.home-grid-4 .product-card__name { font-size: 1.05rem; }
.home-grid-4 .product-card__body { padding-top: 10px; }
.home-grid-4 .product-card__media { border-radius: 12px; }

@media (max-width: 1024px) { .home-grid-4 .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .home-grid-4 .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .home-grid-4 .product-grid { grid-template-columns: 1fr; } }

/* Single product in a Featured/Best Sellers rail — don't stretch it full-width */
.home-grid-4 .product-grid.product-grid--single {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}

/* ── Homepage product rail (Best Sellers / Featured) ──────
   CSS scroll-snap owns the actual scrolling/snapping. Arrow
   buttons and the progress bar are optional chrome layered on
   top by static/js/product_carousel.js — nothing here or in
   that file ever auto-advances on a timer. */
.home-grid-4 .product-rail {
  position: relative;
}

.home-grid-4 .product-grid--rail {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 1.25rem;
  padding: 4px 4px 12px;
  margin: -4px -4px -12px;
  /* Tell the browser this element only handles horizontal touch panning —
     any vertical drag is handed straight to the page instead of being
     axis-locked onto this element first. Without this, a swipe that starts
     over the rail with even a slight horizontal component gets locked to
     the rail's own horizontal scroll for the whole gesture, and the page
     underneath doesn't scroll at all until the finger lifts. */
  touch-action: pan-x;
}
.home-grid-4 .product-grid--rail::-webkit-scrollbar { display: none; }

.home-grid-4 .product-grid--rail .product-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 23%;
}

@media (max-width: 1024px) {
  .home-grid-4 .product-grid--rail .product-card { width: 30%; }
}
@media (max-width: 700px) {
  .home-grid-4 .product-grid--rail { gap: 1rem; }
  .home-grid-4 .product-grid--rail .product-card { width: 46%; }
}
@media (max-width: 640px) {
  .home-grid-4 .product-grid--rail { gap: 0.75rem; }
  .home-grid-4 .product-grid--rail .product-card { width: 44%; }
}

.rail-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.rail-arrow:hover { transform: translateY(-50%) scale(1.06); }
.rail-arrow:active { transform: translateY(-50%) scale(0.96); }
.rail-arrow--prev { left: 8px; }
.rail-arrow--next { right: 8px; }
.rail-arrow[disabled] {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keyboard focus must reveal the arrow regardless of hover capability —
   a color/hover-only reveal would leave it permanently invisible (and
   therefore unusable) for keyboard-only navigation. */
.rail-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rose);
}

/* Reveal on hover only for real mouse/trackpad pointers — touchscreens
   synthesize a :hover state on tap with no matching "unhover," which
   would otherwise leave a tapped arrow stuck visible. Matches the same
   guard already used by .marquee-strip:hover .marquee-track. */
@media (hover: hover) and (pointer: fine) {
  .product-rail:hover .rail-arrow:not([disabled]) {
    opacity: 1;
    pointer-events: auto;
  }
}

.rail-progress {
  position: relative;
  height: 2px;
  margin-top: 1.5rem;
  background: var(--light);
  border-radius: 2px;
  overflow: hidden;
}
.rail-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--charcoal);
  border-radius: 2px;
}

/* Toggled by static/js/product_carousel.js when a rail's cards already
   fit within the visible width — nothing to scroll to, so no scroll
   affordance should be shown. */
.product-rail.rail-no-overflow .rail-arrow,
.product-rail.rail-no-overflow .rail-progress {
  display: none;
}

/* ── Product Card ─────────────────────────── */
.product-card {
  position: relative;
  background: transparent;
  cursor: pointer;
}

/* !important: must always beat .js-reveal-pending.is-visible's own
   transform (3-class specificity) once a card has scrolled into view —
   press feedback should never lose to the reveal's resting state. */
.product-card:active { transform: scale(0.98) !important; }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
  background: radial-gradient(120% 100% at 70% 18%, #FFFFFF 0%, #F0E9DE 100%);
  border-radius: 20px;
  box-shadow: rgba(70, 48, 32, 0.4) 0px 26px 46px -30px;
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-spring);
}

.product-card:hover .product-card__media {
  transform: translateY(-6px);
  box-shadow: rgba(70, 48, 32, 0.45) 0px 34px 54px -28px;
}

.product-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, transparent 58%, rgba(60, 45, 30, 0.06) 72%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.product-card__img-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-card__img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.5rem 1.5rem 0;
  transition: transform 0.32s var(--ease-spring);
}

/* Parallax: the bottle lifts slightly more than the card frame around it */
.product-card:hover .product-card__img { transform: scale(1.06) translateY(-3px); }

.product-card__placeholder {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 60% 30%, #F5EFE8 0%, #EDE4D8 100%);
}

/* Scroll-in reveal — class added by static/js/scroll_reveal.js only,
   right before observing, so a card is always visible until JS decides
   to animate it. Never hidden by default in plain CSS. */
.product-card.js-reveal-pending { opacity: 0; transform: translateY(20px); }
.product-card.js-reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-spring);
}

/* Slide-up overlay with key notes + add to bag */
.product-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10,8,6,0.9) 0%, rgba(10,8,6,0.72) 55%, transparent 100%);
  padding: 2.5rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: translateY(100%);
  transition: transform 0.38s var(--ease);
  pointer-events: none;
}

.product-card:hover .product-card__overlay {
  transform: translateY(0);
}

.card-kn-label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.card-kn-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.card-kn-pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  padding: 4px 10px;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
}

.btn-card-add {
  width: 100%;
  background: var(--gradient);
  /* Same white-on-gradient contrast failure as .btn-piel (2026-07-25) — charcoal clears WCAG AA at every stop. */
  color: var(--charcoal);
  border: none;
  border-radius: 100px;
  padding: 0.78rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.2s;
}

.btn-card-add:hover { opacity: 0.88; }

.card-oos-label {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  padding: 0.78rem 1rem;
}

/* Badges */
.oos-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: white;
  color: var(--charcoal);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  z-index: 2;
  border-radius: 100px;
}

.new-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: #1A1613;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 4px;
  z-index: 3;
}

.bestseller-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(120deg, #FF9E6D, #FF4D7D);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 4px;
  z-index: 3;
}

/* Card body */
.product-card__body {
  padding: 18px 2px 0;
  background: transparent;
}

.product-card__cat {
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C2185B; /* darkened from --rose (#FF4D7D, 3.18:1) to pass WCAG AA (5.87:1 on white) */
  margin-bottom: 0;
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.67rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 9px 0 4px;
}

.product-card__price {
  font-size: 1.07rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* Large placeholder */
.large-placeholder {
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  color: #ddd; font-size: 5rem;
}

/* ── Quick View Modal ─────────────────────── */
.qv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  padding: 1rem;
}

.qv-backdrop.open { display: flex; }

.qv-modal {
  background: var(--white);
  width: min(860px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: qv-in 0.35s var(--ease) both;
}

@keyframes qv-in {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@media (max-width: 600px) { .qv-modal { grid-template-columns: 1fr; } }

.qv-image-wrap {
  aspect-ratio: 3/4;
  background: var(--cream);
  overflow: hidden;
}

.qv-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.qv-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: #ddd;
}

.qv-info {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

.qv-cat  { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid); }
.qv-name { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; line-height: 1.1; }
.qv-price {
  font-size: 1rem;
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.qv-notes { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.qv-note-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--cream);
  padding: 3px 10px;
  color: var(--mid);
  border-radius: 100px;
}

.qv-divider { border: none; border-top: 1px solid var(--light); }

.qv-variant-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 0.5rem;
}

.qv-select {
  width: 100%;
  border: 1px solid var(--light);
  border-radius: 100px;
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--charcoal);
  background: white;
}

.qv-select:focus { outline: none; border-color: var(--g-mid); box-shadow: none; }

.qv-price-display {
  font-size: 0.82rem;
  color: var(--mid);
}

.qv-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }

.qv-view-link {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qv-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--mid);
  transition: color 0.15s;
  z-index: 10;
  line-height: 1;
}

.qv-close:hover { color: var(--charcoal); }

/* ── Product Detail Page ──────────────────── */
.pdp-layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 4rem;
  align-items: start;
  padding: 3.5rem 0 6rem;
}

@media (max-width: 860px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.pdp-layout--no-gallery { grid-template-columns: 1fr; max-width: 680px; }
.pdp-layout--no-gallery .pdp-gallery { display: none; }

.pdp-gallery { position: sticky; top: 90px; }

@media (max-width: 860px) {
  .pdp-gallery { position: static !important; top: auto !important; }
}

.pdp-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--cream);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin-bottom: 0.75rem;
}

.pdp-thumbs { display: flex; gap: 0.5rem; }

.pdp-thumb {
  width: 64px; height: 64px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.pdp-thumb:hover,
.pdp-thumb.active { border-color: var(--g-end); }

.pdp-eyebrow { color: var(--mid); margin-bottom: 0.6rem; }

.pdp-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.pdp-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.pdp-divider { border: none; border-top: 1px solid var(--light); margin: 1.4rem 0; }

.pdp-scent-notes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }

.scent-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: var(--cream);
  padding: 4px 12px;
  color: var(--mid);
  border-radius: 100px;
  border: 1px solid var(--light);
}

.scent-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--mid);
  vertical-align: middle;
}

.scent-tag--top { background: rgba(250, 197, 102, 0.16); border-color: rgba(250, 197, 102, 0.55); }
.scent-tag--top::before { background: var(--g-start); }

.scent-tag--mid { background: rgba(255, 142, 122, 0.16); border-color: rgba(255, 142, 122, 0.55); }
.scent-tag--mid::before { background: var(--g-mid); }

.scent-tag--base { background: rgba(255, 34, 114, 0.14); border-color: rgba(255, 34, 114, 0.5); }
.scent-tag--base::before { background: var(--g-end); }

.pdp-size-section {
  border-top: 1px solid rgba(26,22,19,0.12);
  padding-top: 24px;
  margin-bottom: 1.4rem;
}

.pdp-variant-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 10px;
}

.pdp-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-size-pill {
  padding: 14px 28px;
  border: 1.5px solid rgba(26,22,19,0.15);
  border-radius: 100px;
  background: var(--light);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s ease-out;
  line-height: 1;
}

.pdp-size-pill:hover:not(.oos):not(.active) {
  border-color: rgba(26,22,19,0.35);
  background: #fff;
}

.pdp-size-pill:active:not(.oos) { transform: scale(0.96); }

.pdp-size-pill.active {
  border: 2px solid var(--charcoal);
  background: #fff;
  font-weight: 500;
}

.pdp-size-pill.oos {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pdp-size-meta {
  margin: 10px 0 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}



.pdp-price-display {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 1rem;
}

.pdp-tagline {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ── Cart ─────────────────────────────────── */
.cart-item-img {
  width: 88px; height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream);
}

.cart-item-placeholder {
  width: 88px; height: 110px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  color: #ddd;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(26,22,19,0.18);
  border-radius: 999px;
  padding: 0 4px;
  background: white;
}

.cart-qty-btn {
  width: 34px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: rgb(110,101,92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.cart-qty-btn:hover  { color: var(--charcoal); }
.cart-qty-btn:active { transform: scale(0.92); }

.cart-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--charcoal);
  user-select: none;
}

/* ── OTP verify page ──────────────────────── */
.otp-input-wrap {
  display: flex;
  justify-content: center;
}

.otp-input {
  width: 100%;
  max-width: 320px;
  text-align: center;
  font-size: 2rem;
  font-family: monospace;
  letter-spacing: 0.45em;
  padding: 16px 20px;
  border: 1.5px solid rgba(26,22,19,0.2);
  border-radius: 14px;
  background: white;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s;
}

.otp-input:focus {
  border-color: var(--charcoal);
}

.otp-input::placeholder {
  color: rgba(26,22,19,0.2);
  letter-spacing: 0.35em;
}

.cart-summary {
  background: var(--cream);
  padding: 2rem;
  border: none !important;
  border-radius: 0 !important;
}

/* ── Checkout order summary — itemized rows with thumbnails ──────── */
.checkout-summary-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0 0 1rem;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--charcoal);
  text-align: left;
}

.checkout-summary-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
}

.checkout-summary-toggle-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.checkout-summary-chevron {
  font-size: 0.85rem;
  color: var(--mid);
  transition: transform 0.2s var(--ease);
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26,22,19,0.1);
  margin-bottom: 1rem;
}

.checkout-summary-items.is-collapsed {
  display: none;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.checkout-item-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.checkout-item-thumb {
  width: 52px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
  display: block;
}

.checkout-item-thumb--placeholder {
  background: var(--white);
  border: 1px solid rgba(26,22,19,0.1);
}

.checkout-item-qty-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.checkout-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.checkout-item-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-item-meta {
  font-size: 0.72rem;
  color: var(--mid);
  margin-bottom: 0;
}

.checkout-item-price {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.qty-input {
  width: 64px;
  text-align: center;
  border: 1px solid var(--light);
  border-radius: 100px;
  padding: 0.3rem;
  font-size: 0.85rem;
}

.qty-input:focus { outline: none; border-color: var(--g-mid); box-shadow: none; }

/* ── Cart empty state ─────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 380px;
  margin: 0 auto;
}

.cart-empty-icon {
  width: 108px;
  height: auto;
  margin-bottom: 2.2rem;
}

.cart-empty-mist circle { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .cart-empty-mist circle {
    animation: cartMistDrift 3.4s ease-in-out infinite;
  }
  .cart-empty-mist circle:nth-child(2) { animation-delay: 0.35s; }
  .cart-empty-mist circle:nth-child(3) { animation-delay: 0.7s; }
}

@keyframes cartMistDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(2.5px, -5px); }
}

.cart-empty-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #dd597e;
  font-weight: 500;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cart-empty-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gradient);
}

.cart-empty-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.cart-empty-title .gradient-word {
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.cart-empty-sub {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

/* ── Auth ─────────────────────────────────── */
.auth-card {
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--light) !important;
  border-radius: 20px !important;
  padding: 3rem 2.5rem;
  background: var(--white);
}

/* ── Reviews ──────────────────────────────── */
.review-card { padding: 1.5rem 0; border-bottom: 1px solid var(--light); }
.review-rating { color: var(--rose); background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: 0.1em; }

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 5rem 0 3rem;
}

.site-footer .brand-logo { color: white !important; }
.site-footer .brand-logo img { filter: brightness(10); }
.site-footer a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.site-footer a:hover { color: var(--g-start); }
.site-footer h3 { color: rgba(255,255,255,0.7); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 400; }
.site-footer li { font-size: 0.8rem; margin-bottom: 0.4rem; list-style: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.7rem; }

/* Was rgba(255,255,255,.25) at 0.62rem inline — ~2.2:1 contrast and below the
   11px sitewide text-size floor. 0.5 opacity matches .site-footer's own base
   color (~5.3:1, already proven safe elsewhere in this same footer). */
.footer-credit { letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ── Payment method cards ─────────────────── */
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pay-method { margin: 0; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-body {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.45rem; text-align: center; height: 100%;
  padding: 1rem 0.5rem;
  border: 1.5px solid var(--light);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pay-method-icon { font-size: 2rem; color: var(--mid); line-height: 1; }
.pay-method-name { font-size: 0.72rem; letter-spacing: 0.03em; color: var(--charcoal); }
.pay-method-check {
  position: absolute; top: 0.5rem; right: 0.5rem;
  font-size: 0.85rem; color: var(--rose);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.pay-method input:checked + .pay-method-body {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 77, 125, 0.12);
}
.pay-method input:checked + .pay-method-body .pay-method-icon { color: var(--rose); }
.pay-method input:checked + .pay-method-body .pay-method-check { opacity: 1; transform: scale(1); }
.pay-method input:focus-visible + .pay-method-body { border-color: var(--g-mid); }
@media (max-width: 400px) {
  .pay-method-check { top: 50%; right: 0.7rem; transform: translateY(-50%) scale(0.6); }
  .pay-method input:checked + .pay-method-body .pay-method-check { transform: translateY(-50%) scale(1); }
}
@media (max-width: 400px) {
  .pay-methods { grid-template-columns: 1fr; }
  .pay-method-body { flex-direction: row; justify-content: flex-start; gap: 0.7rem; padding: 0.8rem 1rem; }
}

/* ── Delivery method cards ────────────────── */
.delivery-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.delivery-card { display: flex; align-items: flex-start; gap: 0.75rem; margin: 0; cursor: pointer; }
.delivery-card input[type="radio"] {
  margin-top: 0.35rem; width: 18px; height: 18px; accent-color: var(--rose);
  flex-shrink: 0; cursor: pointer;
}
.delivery-card-check { margin-top: 0.35rem; font-size: 1.05rem; color: var(--rose); flex-shrink: 0; }
.delivery-card-body {
  display: flex; flex-direction: column; gap: 0.3rem; flex: 1;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--light);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.delivery-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.delivery-card-title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; color: var(--charcoal); }
.delivery-card-price { font-size: 0.78rem; color: var(--mid); white-space: nowrap; }
.delivery-card-desc { font-size: 0.74rem; line-height: 1.5; color: var(--mid); margin: 0; }
.delivery-card input:checked + .delivery-card-body {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 77, 125, 0.12);
}
.delivery-card input:focus-visible + .delivery-card-body { border-color: var(--g-mid); }
/* Malé/Hulhumalé informational card — no input, city selection alone
   determines it, so it's always shown in the "selected" visual state. */
.delivery-card--info { cursor: default; }
.delivery-card--info .delivery-card-body {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(255, 77, 125, 0.12);
}

.card-brands-badge { max-height: 28px; width: auto; }

/* Checkout form column stacks below Bootstrap's lg breakpoint, not the
   usual 767.98px — match that here for the mobile touch-target minimum. */
@media (max-width: 991.98px) {
  #backToShippingBtn, #placeOrderBtn { min-height: 44px; }
}

/* ── Bootstrap overrides ──────────────────── */
.form-control, .form-select {
  border-radius: 100px;
  border: 1px solid var(--light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.7rem 1.1rem;
}

.form-control:focus, .form-select:focus { border-color: var(--g-mid); box-shadow: none; }

.form-label,
.field-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.4rem; }

.checkout-field-error {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #dc3545;
  margin-top: 0.35rem;
}

.checkout-trust-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--mid);
  line-height: 1.5;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.checkout-trust-note i { color: var(--rose); margin-top: 0.15rem; }

.badge { border-radius: 100px; font-weight: 400; letter-spacing: 0.06em; }
.page-link {
  border-color: var(--light);
  color: var(--charcoal);
  padding: 10px 14px;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
}
.page-link:hover { background: var(--cream); color: var(--charcoal); border-color: var(--light); }
.page-item.active .page-link { background: var(--gradient); border: none; }
.dropdown-menu { border-color: var(--light); border-radius: 12px; font-size: 0.82rem; }
.dropdown-item:hover { background: var(--cream); }
.alert { border-radius: 12px; font-size: 0.85rem; }
.btn-outline-dark { border-radius: 100px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.btn-link { color: var(--mid); font-size: 0.78rem; }

.order-summary-box { background: var(--cream); border: none !important; border-radius: 16px !important; }

::-webkit-scrollbar { width: 3px; }

/* ── Scent Accord Chart (inline in pdp-info) ── */
.pdp-accords {
  margin-top: 30px;
  border-top: 1px solid rgba(26,22,19,0.12);
  border-bottom: 1px solid rgba(26,22,19,0.12);
}

.pdp-accords-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
}

.pdp-accords-toggle span {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.pdp-accords-chevron {
  font-size: 16px;
  color: rgba(138,127,118,1);
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.25s;
  font-style: normal;
}

.pdp-accords-toggle[aria-expanded="true"] .pdp-accords-chevron {
  transform: rotate(180deg);
}

.pdp-accord-chart {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, margin-top 0.3s ease;
}

.pdp-accord-chart.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 0.75rem;
  padding-bottom: 20px;
}

/* Accord row = gray track; bar = absolute fill from left */
.pdp-accord-row {
  position: relative;
  width: 100%;
  height: 34px;
  background: #EDEBE7;
  border-radius: 6px;
  overflow: hidden;
}

.pdp-accord-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  background: #B0AAA2;
}

.pdp-accord-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  white-space: nowrap;
  text-transform: capitalize;
  padding-left: 12px;
}

/* Accord colour map */
.accord-vanilla        { background: #C8A800; }
.accord-floral         { background: #E8789A; }
.accord-yellow-floral  { background: #D4A000; }
.accord-white-floral   { background: #B8B0A8; }
.accord-sweet          { background: #D43030; }
.accord-woody          { background: #6B4226; }
.accord-citrus         { background: #E87830; }
.accord-powdery        { background: #A8A0B8; }
.accord-fresh-spicy    { background: #7A9040; }
.accord-warm-spicy     { background: #9A8070; }
.accord-musk           { background: #A8A098; }
.accord-oud            { background: #5A2E10; }
.accord-fresh          { background: #58C8D8; }
.accord-aquatic        { background: #3090C0; }
.accord-amber          { background: #D07000; }
.accord-rose           { background: #E86888; }
.accord-lavender       { background: #8878C8; }
.accord-sandalwood     { background: #B07830; }
.accord-patchouli      { background: #4A6828; }
.accord-bergamot       { background: #90C030; }
.accord-green          { background: #58A860; }
.accord-spicy          { background: #A84820; }
.accord-musky          { background: #A898C8; }
.accord-earthy         { background: #906820; }
.accord-cinnamon       { background: #986040; }
.accord-tobacco        { background: #7A5030; }
.accord-leather        { background: #805030; }
.accord-balsamic       { background: #7A5828; }

/* ── Mobile filter button ────────────────── */
.mob-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--light);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 6px 14px;
  cursor: pointer;
}

/* ── Mobile filter drawer ────────────────── */
.mob-filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
}
.mob-filter-backdrop.open { display: block; }

.mob-filter-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0 0 2rem;
  z-index: 1041;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.25,0.46,0.45,0.94);
  max-height: 80vh;
  overflow-y: auto;
}
.mob-filter-drawer.open { transform: translateY(0); }

.mob-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--light);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  background: var(--white);
}

.mob-filter-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--mid);
  cursor: pointer;
  padding: 4px;
}

.mob-filter-body { padding: 0.5rem 1.25rem; }
::-webkit-scrollbar-thumb { background: var(--light); }

@media (min-width: 861px) {
  .mob-filter-drawer,
  .mob-filter-backdrop { display: none !important; }
}

/* ── Split Hero ───────────────────────────── */
.hero-split {
  background: var(--bg);
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.hero-split-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop: the on-image CTA is mobile-only, the copy column keeps its own */
.hero-bottle-cta { display: none; }

@media (max-width: 860px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 100%;
  }
  .hero-split-right { order: -1; }

  /* Primary CTA moves onto the hero image itself on mobile (see
     .hero-bottle-cta below) — hide the copy-column's duplicate so it
     isn't shown twice. "Explore Scents" stays where it is. */
  .hero-split-actions .btn-piel { display: none; }

  .hero-bottle-cta {
    display: inline-flex;
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
  }
}

/* ── Hero: full-bleed video mode ──────────────
   Active only when a hero video is uploaded (.hero-split--video). The video
   + a dark gradient scrim sit behind the whole section as an absolutely
   positioned background layer; .hero-split-inner's copy column renders on
   top of it, single-column, in light text. The boxed bottle-card layout
   (.hero-bottle-card etc.) is untouched for every other hero state. */
.hero-split--video {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.4) 0%, rgba(17,17,17,0.18) 45%, rgba(17,17,17,0.62) 100%);
  z-index: 1;
}

/* Fallback affordance for when autoplay is blocked (iOS Low Power Mode
   blocks it outright with no error, some in-app browsers do too) -- shown/
   hidden by JS mirroring the video's real play/pause state, hidden by
   default via the `hidden` attribute so it never flashes on the normal
   autoplay-succeeds path. */
.hero-video-playbtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 4.5rem;
  height: 4.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(17,17,17,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-video-playbtn i { margin-left: 3px; } /* optically recenter the play glyph */

.hero-video-playbtn:hover { background: rgba(17,17,17,0.75); }
.hero-video-playbtn:active { transform: translate(-50%, -50%) scale(0.94); }

.hero-video-playbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-video-playbtn[hidden] { display: none; }

.hero-split--video .hero-split-inner {
  position: relative;
  z-index: 2;
  grid-template-columns: 1fr;
  width: 100%;
  /* Taller than the edge-fade below is deep, so the fade's light cream tone
     never reaches up into the white copy/stats text and hurts contrast. */
  padding-bottom: 7.5rem;
  justify-items: center;
}

.hero-split--video .hero-split-right { display: none; }

/* Minimal, bottom-anchored, centered copy block — deliberately sparser than
   the boxed-hero state's copy (no sub-paragraph, no secondary link, no
   visible headline — just the eyebrow + CTA) per the owner's request to pare
   the overlaid text down. */
.hero-split--video .hero-split-text { text-align: center; max-width: 480px; }
.hero-split--video .hero-eyebrow-dark { color: #FFD9E4; justify-content: center; }
.hero-split--video .hero-eyebrow-dark::before { background: #fff; }
.hero-split--video .hero-split-actions { justify-content: center; margin-bottom: 2rem; }

/* Solid white box instead of the sitewide gradient pill — matches the
   reference's plain rectangular CTA rather than the brand's usual button. */
.hero-split--video .hero-split-actions .btn-piel {
  background: #fff;
  color: var(--charcoal);
  border-radius: 0;
}
.hero-split--video .hero-split-actions .btn-piel:hover {
  background: rgba(255,255,255,0.85);
  color: var(--charcoal);
}

/* Stats shrunk down (owner's request), still shared content with the boxed
   hero state — just visually much quieter here. */
.hero-split--video .hero-stats {
  justify-content: center;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top-color: rgba(255,255,255,0.25);
}
.hero-split--video .hero-stat { text-align: center; }
.hero-split--video .hero-stat-num { color: #fff; font-size: 1.3rem; }
.hero-split--video .hero-stat-label { color: rgba(255,255,255,0.75); font-size: 0.58rem; }
.hero-split--video .hero-stat-divider { background: rgba(255,255,255,0.25); height: 1.75rem; }

@media (max-width: 860px) {
  /* Video mode has no on-image mobile CTA (the bottle card doesn't render
     at all in this mode) — keep the copy column's own button visible
     instead of hiding it the way the boxed layout does above. */
  .hero-split--video .hero-split-actions .btn-piel { display: inline-flex; }
}

.hero-eyebrow-dark {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* #dd597e measured 3.4:1 on --bg (need 4.5:1); reuse the same darkened-rose
     precedent already used for .product-card__cat (5.5:1). */
  color: #C2185B;
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-eyebrow-dark::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gradient);
}

.hero-split-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-split-title .gradient-word {
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  display: block;
  margin-top: 0.1em;
  padding-bottom: 0.18em;
}

.hero-split-sub {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.95;
  max-width: 400px;
  margin-bottom: 2rem;
}

.hero-split-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-split-actions .btn-piel {
  padding: 1rem 2.4rem;
  font-size: 0.7rem;
  box-shadow: 0 8px 28px rgba(255, 130, 122, 0.4);
}

.hero-explore-link {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(0,0,0,0.22);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.hero-explore-link:hover {
  color: var(--g-end);
  text-decoration-color: var(--g-end);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--light);
}

.hero-stat { text-align: left; }

.hero-stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-num sup {
  font-size: 0.75rem;
  vertical-align: super;
  font-family: var(--font-sans);
  font-weight: 300;
}

.hero-stat-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.hero-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--light);
  flex-shrink: 0;
}

/* ── Hero bottle card ─────────────────────── */
.hero-split-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bottle-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1.04;
  border-radius: 34px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 68% 22%, #FFFFFF 0%, #EFE6D8 100%);
  box-shadow: rgba(70, 48, 32, 0.42) 0px 50px 90px -46px;
}

/* Diagonal light rays */
.hero-bottle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 46%, rgba(60,45,30,0.07) 58%, transparent 60%),
    linear-gradient(128deg, transparent 62%, rgba(60,45,30,0.06) 74%, transparent 77%);
  pointer-events: none;
  z-index: 0;
}

/* Wrapper handles centering so img has no transform — avoids float animation conflict */
.hero-bottle-img-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-bottle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── CSS bottle illustration (placeholder) ── */
.hero-bottle-illus-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-bottle-illus {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bottle-illus__cap {
  width: 76px; height: 62px;
  background: linear-gradient(160deg, #E8D4B0, #C6A675);
  border-radius: 9px 9px 4px 4px;
  box-shadow: rgba(120, 90, 50, 0.28) 0px 8px 16px;
}

.hero-bottle-illus__neck {
  width: 56px; height: 9px;
  background: linear-gradient(#ECDCB9, #CBB083);
  border-radius: 2px;
  margin-top: -2px;
}

.hero-bottle-illus__body {
  width: 162px; height: 198px;
  margin-top: 7px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(244,232,208,0.96), rgba(206,168,108,0.92));
  box-shadow:
    rgba(255,255,255,0.55) 8px 8px 30px inset,
    rgba(150,115,60,0.28) -6px -8px 24px inset,
    rgba(120,90,50,0.4) 0px 30px 46px -22px;
  position: relative;
  overflow: hidden;
}

.hero-bottle-illus__shine {
  position: absolute;
  top: 12px; left: 18px;
  width: 26px; height: 150px;
  border-radius: 14px;
  background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0));
}

.hero-bottle-illus__label {
  position: absolute;
  left: 50%; top: 58%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.hero-bottle-illus__name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: rgb(124, 96, 51);
  line-height: 1;
}

.hero-bottle-illus__sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  color: rgb(154, 124, 72);
  margin-top: 2px;
}

/* Float animation — starts visible, floats DOWN, returns */
@keyframes bottleFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(14px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .js-float {
    animation: bottleFloat 4s ease-in-out infinite;
  }
}

/* ── Reduced motion: neutralize genuine spatial-motion transitions ──
   (card lift/zoom, Add to Bag slide, accordion expand, mobile filter
   drawer, Quick View entrance). Short color/border/opacity fades and
   small press-feedback scales elsewhere in this file are left alone —
   they're immediate-response feedback that keeps the UI feeling
   responsive and carry no vestibular risk. Scroll-reveal (below) handles
   its own reduced-motion case in JS, skipping the reveal class entirely. */
@media (prefers-reduced-motion: reduce) {
  .product-card:hover .product-card__media,
  .product-card:hover .product-card__img {
    transition-duration: 0.01ms !important;
    transform: none !important; /* box-shadow feedback still applies, just no lift/zoom */
  }
  /* Duration only, on the base selectors — these toggle between two real
     transform values (hidden/shown, collapsed/expanded) via a state class;
     forcing transform: none here would break the resting hidden state, so
     only the animated transition itself is removed, not the state change. */
  .product-card__overlay,
  .pdp-accord-chart,
  .mob-filter-drawer {
    transition-duration: 0.01ms !important;
  }
  .qv-modal { animation: none !important; }
}

/* ── Reduced transparency: solid fallback for translucent chrome ──
   Each surface's blur exists to convey material depth; readability must
   not depend on it. */
@media (prefers-reduced-transparency: reduce) {
  .site-header    { background: rgb(250, 247, 242); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-nav     { background: rgb(250, 250, 249); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .qv-backdrop    { background: rgba(0, 0, 0, 0.88); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mob-search-bar { background: rgb(250, 247, 242); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .quiz-backdrop  { background: rgba(10, 8, 6, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── Product card: inspired + savings ─────── */
.product-card__inspired {
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  color: #8A7F76;
  font-style: normal;
  margin-bottom: 0;
  line-height: 1.4;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-card__save-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.92);
  color: #FF4D7D;
  border: 1px solid rgba(255, 77, 125, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.product-card__orig-price {
  font-size: 0.87rem;
  color: #B3A99E;
  text-decoration: line-through;
}

/* ── PDP: price row with savings ──────────── */
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.pdp-orig-price {
  font-size: 0.9rem;
  color: var(--mid);
  text-decoration: line-through;
}

.pdp-save-badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  background: var(--gradient);
  /* Same white-on-gradient contrast failure as .btn-piel (2026-07-25) — charcoal clears WCAG AA at every stop. */
  color: var(--charcoal);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── PDP: qty stepper ─────────────────────── */
.pdp-qty-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 0.75rem;
  align-items: stretch;
}

.pdp-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(26,22,19,0.18);
  border-radius: 999px;
  padding: 0 6px;
  background: white;
  flex-shrink: 0;
}

.pdp-qty-btn {
  width: 44px;
  height: 52px;
  border: none;
  background: none;
  font-size: 20px;
  color: rgb(110,101,92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.pdp-qty-btn:hover  { color: var(--charcoal); }
.pdp-qty-btn:active { transform: scale(0.92); }

.pdp-qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--charcoal);
  user-select: none;
}

.pdp-qty-row .btn-piel {
  flex: 1 1 0%;
  font-size: 13px;
  letter-spacing: 0.18em;
  box-shadow: rgba(255,90,110,0.7) 0px 16px 30px -14px;
}

.pdp-qty-warning {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--rose);
  margin: 0.4rem 0 0;
}

.cart-item-stock-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--rose);
  margin: 0.4rem 0 0;
}

.flex-1 { flex: 1; }

/* ── PDP: trust list ──────────────────────── */
.pdp-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--mid);
}

.pdp-trust-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
  margin-right: 0.6rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── PDP: comparison tabs ─────────────────── */
.pdp-compare-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgb(240, 234, 225);
  border: 1px solid rgba(26, 22, 19, 0.06);
  margin-bottom: 18px;
  max-width: 440px;
}

.pdp-compare-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 11px 8px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.pdp-compare-tab.active {
  background: linear-gradient(120deg, #FF9E6D 0%, #FF4D7D 100%);
  /* White-on-gradient measured 2.03:1/3.18:1 across these stops (need 4.5:1) —
     charcoal clears both at 9.32:1/5.94:1, same treatment as .btn-piel (2026-07-25). */
  color: var(--charcoal);
  box-shadow: rgba(255, 90, 110, 0.7) 0px 8px 18px -8px;
}

/* ── PDP: comparison panel (new 3-col design) */
.pdp-compare-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 66% 16%, #FFFFFF 0%, #EFE6D8 100%);
  box-shadow: rgba(70, 48, 32, 0.4) 0px 44px 80px -46px;
  aspect-ratio: 1 / 1.04;
}

.pdp-compare-rays {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 50%, rgba(60,45,30,0.06) 64%, transparent 67%),
    linear-gradient(130deg, transparent 66%, rgba(60,45,30,0.05) 78%, transparent 81%);
  pointer-events: none;
}

.pdp-compare-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 24px 16px;
}

.pdp-cmp-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdp-cmp-img-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-cmp-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Dupe bottle photo is cropped tighter than the original's, so at equal
   max-width/height it visually overpowers the comparison — scale it down. */
.pdp-cmp-img-wrap.js-float img {
  max-width: 60%;
  max-height: 60%;
}

.pdp-cmp-vs {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pdp-cmp-vs-line {
  width: 1px;
  height: 70px;
  background: rgba(26, 22, 19, 0.12);
}

.pdp-cmp-vs-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--mid);
  line-height: 1;
}

.pdp-cmp-meta {
  margin-top: 16px;
  text-align: center;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.pdp-cmp-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.pdp-cmp-tag--ours { color: #FF4D7D; }

.pdp-cmp-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 4px 0 2px;
  line-height: 1.2;
}

.pdp-cmp-price {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
}

.pdp-cmp-price--orig {
  text-decoration: line-through;
  color: #B3A99E;
  font-weight: 300;
}

.pdp-cmp-watermark {
  position: absolute;
  left: 20px;
  bottom: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(169, 154, 134, 0.6);
  pointer-events: none;
}

/* ── Scent family grid ────────────────────── */
.scent-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

@media (max-width: 767px) {
  .scent-family-grid { grid-template-columns: repeat(2, 1fr); }
}

.scent-family-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: var(--charcoal);
  border: 1px solid var(--light);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scent-family-card:hover {
  border-color: var(--g-mid);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  color: var(--charcoal);
}

.scent-family-icon {
  font-size: 1.3rem;
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scent-family-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.scent-family-count {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

/* ── Why Piel grid ────────────────────────── */
.why-piel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 767px) {
  .why-piel-grid { grid-template-columns: repeat(2, 1fr); }
}

.why-piel-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }

.why-piel-icon {
  font-size: 1.4rem;
  color: var(--rose); /* fallback if background-clip:text is unsupported */
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.why-piel-desc { font-size: 0.78rem; color: var(--mid); }


/* ── Section background utilities ────────── */
.section--white { background: white; }
.section--cream { background: var(--cream); }

/* ── User icon: match cart icon (one dropdown handles both auth
   states now -- Login/Register vs. My Account/My Orders/Logout --
   so the top-right slot never goes empty depending on auth state) ── */
.nav-right .dropdown-toggle {
  font-size: 1.1rem !important;
  color: var(--charcoal) !important;
  transition: color 0.2s !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.nav-right .dropdown-toggle:hover { color: var(--g-end) !important; }
.nav-right .dropdown-toggle::after { display: none; }

/* On mobile, nav-left holds just hamburger+search and nav-right holds just
   account+cart (desktop search input and nav-left's text links are hidden) --
   each icon already reserves a 44px tap target, so the 2rem/1.375rem gaps
   sized for desktop content read as too much air between them. Tighten both;
   the 44px boxes (untouched) keep tap targets safe. */
@media (max-width: 767.98px) {
  .nav-left { gap: 0.375rem; }
  .nav-right { gap: 0.375rem; }
}

/* ── Mobile search ────────────────────────── */
.mob-search-btn {
  background: none;
  border: none;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 44px;
  min-height: 44px;
  transition: color 0.2s, transform 0.12s ease-out;
}
.mob-search-btn:active { transform: scale(0.9); }
.mob-search-btn:hover { color: var(--g-end); }

.mob-search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--light);
  padding: 0.75rem 1.5rem;
  z-index: 898;
  animation: menuSlide 0.22s var(--ease) both;
}
.mob-search-bar.open { display: block; }

.mob-search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mob-search-input {
  flex: 1;
  border: 1px solid rgba(26,22,19,0.14);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mob-search-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(255,130,122,0.18); border-color: rgba(255,130,122,0.45); }
.mob-search-input::placeholder { color: var(--mid); }

.mob-search-close {
  background: none;
  border: none;
  color: var(--mid);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.mob-search-close:hover { color: var(--charcoal); }

@media (min-width: 768px) { .mob-search-bar { display: none !important; } }

/* ── Product card: vs comparison layout ──── */
.product-card__compare {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-card__compare::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8%; bottom: 8%;
  width: 1px;
  background: rgba(0,0,0,0.09);
  z-index: 1;
  pointer-events: none;
}

.product-card__compare::after {
  content: 'vs';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--mid);
  background: #eee7db;
  padding: 0.28rem 0.5rem;
  z-index: 2;
  pointer-events: none;
  border-radius: 2px;
}

.product-card__compare-side {
  position: relative;
  overflow: hidden;
}

.product-card__compare-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem 0.6rem 2rem;
}

.product-card__compare-lbl {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  /* Was 0.44rem (7.04px) — well under any readable floor. Sized up and given
     a solid backing chip (same technique as the sibling "vs" marker above)
     so it stays legible over photo content instead of relying on
     photo-dependent color contrast. */
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  background: #eee7db;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  white-space: nowrap;
  z-index: 1;
}

/* #FF4D7D measured 2.6:1 on the chip background (need 4.5:1); reuse the same
   darkened-rose precedent as .product-card__cat / .hero-eyebrow-dark. */
.product-card__compare-lbl--ours { color: #C2185B; }

/* On hover the Key Notes overlay text sits over this image — a bright bottle
   photo can fight the overlay gradient behind the text and make it
   illegible. Darken only the compare image itself, not plain single-image
   cards, so Key Notes stays readable regardless of the underlying photo. */
.product-card:hover .product-card__compare {
  filter: brightness(0.55);
  transition: filter 0.38s var(--ease);
}

/* ── Catalog directory ─────────────────── */
.brands-page { background: var(--bg); }
.brands-hero {
  background: var(--cream);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--light);
}
.brands-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 0.8rem;
}
.brands-hero-sub { font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; color: var(--mid); margin: 0; }
.brands-hero-count { margin: 1.4rem 0 0; color: var(--mid); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.brands-section-heading h2 { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 500; margin: 0 0 0.7rem; }
.brands-search { position: relative; display: flex; align-items: center; width: min(100%, 330px); margin-top: 2rem; border-bottom: 1px solid var(--charcoal); }
.brands-search i { color: var(--mid); font-size: 0.85rem; }
.brands-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0.75rem 0.65rem; font: inherit; color: var(--charcoal); }
.brands-search a { color: var(--mid); font-size: 1.35rem; text-decoration: none; line-height: 1; }
.brands-popular, .brands-directory { padding-bottom: 4.5rem; }
.brands-popular { padding-top: 4rem; }
.brands-directory:first-child { padding-top: 4rem; }
.brands-section-heading { margin-bottom: 1.5rem; }
.brands-section-heading .eyebrow { margin-bottom: 0.4rem; }
.brands-section-heading--directory { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.brands-search-result { color: var(--mid); font-size: 0.8rem; margin: 0 0 0.45rem; }
.brands-popular-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.brand-popular-card { position: relative; min-height: 150px; padding: 1.25rem; background: var(--white); border: 1px solid var(--light); border-radius: 16px; color: var(--charcoal); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.brand-popular-card:hover, .brand-directory-row:hover { color: var(--charcoal); border-color: var(--charcoal); }
.brand-popular-card:hover { transform: translateY(-3px); box-shadow: rgba(70,48,32,.12) 0 14px 28px -18px; }
.brand-popular-initial { display: block; color: var(--rose); font-family: var(--font-serif); font-size: 2rem; line-height: 1; margin-bottom: 1rem; }
.brand-popular-logo { display: block; height: 2.75rem; max-width: 70%; object-fit: contain; object-position: left center; margin-bottom: 1rem; }
.brand-popular-name { display: block; font-family: var(--font-serif); font-size: 1.25rem; }
.brand-popular-count { display: block; color: var(--mid); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; }
.brand-popular-arrow { position: absolute; right: 1.1rem; bottom: 1rem; color: var(--mid); }
.brands-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4rem 4rem; }
.brand-group-letter { color: var(--rose); font-family: var(--font-serif); font-size: 2rem; font-weight: 500; margin: 0 0 .55rem; }
.brand-group-list { border-top: 1px solid var(--light); }
.brand-directory-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--light); padding: .78rem 0; color: var(--charcoal); text-decoration: none; transition: color .15s, border-color .15s; }
.brand-directory-name { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-size: 1.2rem; }
.brand-directory-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.brand-directory-meta { color: var(--mid); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.brand-directory-meta span { margin-left: .55rem; }
.brands-empty { border-top: 1px solid var(--light); padding: 3rem 0; color: var(--mid); }
@media (max-width: 800px) {
  .brands-hero { padding: 3.5rem 0 2.8rem; }
  .brands-search { width: 100%; }
  .brands-popular { padding-top: 2.5rem; }
  .brands-directory:first-child { padding-top: 2.5rem; }
  .brands-popular-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-groups { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 420px) {
  .brands-popular-grid { grid-template-columns: 1fr; }
  .brands-section-heading--directory { display: block; }
  .brands-search-result { margin-top: 1rem; }
}

.catalog-hero {
  background: var(--cream);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--light);
}
.catalog-hero-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.catalog-hero-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0;
}

/* Card mode's (Men/Women/Unisex) editorial header — same weight as
   .catalog-hero above, so the two catalog view modes share one page identity
   instead of card mode landing with no title at all. */
.catalog-card-hero {
  background: var(--cream);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--light);
  text-align: center;
}
.catalog-card-hero-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.catalog-card-hero-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0;
}

.catalog-filterbar {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--light);
  padding: 0.6rem 0;
}
.catalog-filterbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.catalog-tabs {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.catalog-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s ease-out;
  white-space: nowrap;
}
.catalog-tab:hover { border-color: var(--light); color: var(--charcoal); }
.catalog-tab:active { transform: scale(0.96); }
.catalog-tab.active {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.catalog-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.catalog-search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--mid);
  font-size: 0.8rem;
  pointer-events: none;
}
.catalog-search-input {
  border: 1px solid var(--light);
  border-radius: 20px;
  padding: 0.3rem 1rem 0.3rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--charcoal);
  background: var(--bg);
  width: 200px;
  outline: none;
  transition: border-color 0.15s;
}
.catalog-search-input:focus { border-color: var(--charcoal); }
.catalog-sort-select {
  border: 1px solid var(--light);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--mid);
  background: var(--bg);
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6560'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.catalog-directory-wrap { padding-top: 2rem; padding-bottom: 5rem; }

.catalog-directory {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: rgba(70, 48, 32, 0.12) 0px 10px 24px -16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.catalog-row:hover, .catalog-row:focus-within {
  transform: translateY(-2px);
  box-shadow: rgba(70, 48, 32, 0.18) 0px 16px 32px -18px;
}

.catalog-row-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.catalog-row-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--light);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.catalog-row-thumb img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.catalog-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.catalog-row-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
}
.catalog-row-inspired {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--mid);
}

.catalog-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}
.catalog-row-price {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}
.catalog-row-add {
  background: var(--gradient);
  /* Same white-on-gradient contrast failure as .btn-piel (2026-07-25) — charcoal clears WCAG AA at every stop. */
  color: var(--charcoal);
  border: none;
  border-radius: 100px;
  padding: 0.6rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.catalog-row-add:hover { opacity: 0.88; }
.catalog-row-oos {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
  border: 1px solid var(--light);
  border-radius: 20px;
  padding: 0.22rem 0.65rem;
}

@media (max-width: 600px) {
  .catalog-filterbar-inner { gap: 0.75rem; }
  .catalog-controls { margin-left: 0; width: 100%; }
  .catalog-search-input { width: 100%; flex: 1; }
  .catalog-row { gap: 0.85rem; padding: 0.75rem; }
  .catalog-row-link { gap: 0.85rem; }
  .catalog-row-thumb { width: 64px; height: 64px; border-radius: 12px; }
  .catalog-row-name { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════
   CATALOG SIDEBAR LAYOUT (card mode)
   ═══════════════════════════════════════════════════════ */

.catalog-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* ── Sidebar ── */
.catalog-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.csb-section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--light);
}
.csb-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.csb-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 0.9rem;
}

/* Search inside sidebar */
.csb-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--light);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.csb-search-icon { color: var(--mid); font-size: 0.8rem; }
.csb-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--charcoal);
  width: 100%;
}
.csb-search-input::placeholder { color: var(--mid); }

/* Radio group (sort) */
.csb-radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.csb-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.15s;
}
.csb-radio input[type="radio"] { accent-color: var(--rose); cursor: pointer; }
.csb-radio.active { font-weight: 600; color: var(--rose); }

/* Checkbox group (curated) */
.csb-checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; }
.csb-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.15s;
}
.csb-checkbox input[type="checkbox"] { accent-color: var(--rose); cursor: pointer; }
.csb-checkbox.active { font-weight: 600; color: var(--rose); }
.csb-cb-icon { font-size: 0.7rem; color: var(--mid); }
.csb-checkbox.active .csb-cb-icon { color: var(--rose); }

/* Scent pills */
.csb-scent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.csb-scent-pill {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--light);
  border-radius: 999px;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s ease-out;
}
.csb-scent-pill:active { transform: scale(0.96); }
.csb-scent-pill:hover {
  background: var(--cream);
  border-color: var(--mid);
}
.csb-scent-pill.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.csb-clear-scent {
  background: none;
  border: none;
  font-size: 0.72rem;
  color: var(--mid);
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
  text-decoration: underline;
}
.csb-clear-scent:hover { color: var(--charcoal); }

/* Clear all */
.csb-section--clear { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.csb-clear-all {
  font-size: 0.78rem;
  color: var(--mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.csb-clear-all:hover { color: var(--rose); }

/* ── Main content ── */
.catalog-main { flex: 1; min-width: 0; }

.catalog-main-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.catalog-result-count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--mid);
}
.catalog-active-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  background: var(--cream);
  border: 1px solid var(--light);
  border-radius: 999px;
  color: var(--charcoal);
}
.chip-x {
  cursor: pointer;
  color: var(--mid);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s, transform 0.12s ease-out;
}
.chip-x:hover { color: var(--rose); }
.chip-x:active { transform: scale(0.85); }

/* ── Mobile filter toggle ── */
.catalog-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
}
.catalog-filter-toggle-label { display: inline-flex; align-items: center; gap: 0.55rem; }
.catalog-filter-toggle-badge {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  display: inline-block;
}
.catalog-filter-toggle-chevron { color: var(--mid); font-size: 0.75rem; transition: transform 0.2s; }
.catalog-filter-toggle.open .catalog-filter-toggle-chevron { transform: rotate(180deg); }

/* Responsive */
@media (max-width: 900px) {
  .catalog-layout { flex-direction: column; padding: 1.5rem 1rem 4rem; }
  .catalog-sidebar {
    width: 100%;
    position: static;
    /* Collapsed by default -- opened via the Filters & Sort toggle above.
       Was always-expanded before, which pushed the product grid ~800px
       down the page behind a full dump of every filter section. */
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light);
  }
  .catalog-sidebar.open { display: grid; }
  .csb-section { border-bottom: none; margin-bottom: 0; padding-bottom: 1rem; }
  .csb-scent-pills { gap: 0.35rem; }
}
@media (max-width: 600px) {
  .catalog-sidebar { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .catalog-filter-toggle { display: none; }
}

/* ══════════════════════════════════════════════
   DRAG-TO-COMPARE SLIDER  (PDP)
   ══════════════════════════════════════════════ */
.pdp-slider-wrap {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 1 / 1.1;
  background: radial-gradient(120% 100% at 66% 16%, #FFFFFF 0%, #EFE6D8 100%);
  box-shadow: rgba(70, 48, 32, 0.4) 0px 44px 80px -46px;
  cursor: ew-resize;
  user-select: none;
}

.pdp-slider-left,
.pdp-slider-right {
  position: absolute;
  inset: 0;
}

.pdp-slider-left img,
.pdp-slider-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.8rem 1.8rem 4.5rem;
  display: block;
}

/* Right side is clipped; JS moves the clip */
.pdp-slider-right {
  clip-path: inset(0 0 0 50%);
}

/* Subtle tint difference so the divide is always readable */
.pdp-slider-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,77,125,0.04);
  pointer-events: none;
  z-index: 0;
}

/* Vertical divider line + knob */
.pdp-slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,0.9);
  z-index: 12;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.12);
}

.pdp-slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
}

/* Invisible range input covers the full area — handles drag/touch */
.pdp-slider-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  z-index: 20;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Labels row below the slider */
.pdp-slider-labels {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 0.5rem 0;
}

.pdp-slider-label {
  flex: 1;
  text-align: center;
}

.pdp-slider-label--orig .pdp-cmp-tag { color: var(--mid); }

/* ══════════════════════════════════════════════
   SCENT QUIZ  (Homepage)
   ══════════════════════════════════════════════ */
.quiz-section {
  background: var(--charcoal);
  padding: 6rem 0;
}

/* rgba(255,255,255,0.4) on --charcoal measured ~3.8:1 (need 4.5:1); 0.7
   matches .site-footer h3's own already-passing color on the same background. */
.quiz-section .eyebrow { color: rgba(255,255,255,0.7); }

.quiz-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  color: white;
  line-height: 1.18;
  margin: 0.5rem 0 1rem;
}

.quiz-section-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 420px;
  margin: 0 auto;
}

/* Backdrop */
.quiz-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.quiz-backdrop.open { display: flex; }

/* Modal card */
.quiz-modal {
  background: #FDFAF6;
  border-radius: 28px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.quiz-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.quiz-close:hover { color: var(--charcoal); }

.quiz-question {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.22;
  margin: 0.4rem 0 1.8rem;
  color: var(--charcoal);
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quiz-options--4 { grid-template-columns: 1fr 1fr; }

.quiz-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.6rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--light);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
}
.quiz-opt:hover {
  border-color: #FF4D7D;
  background: #FFF5F8;
  transform: translateY(-2px);
}
.quiz-opt:active { transform: scale(0.97); }

.quiz-opt-icon { font-size: 1.8rem; line-height: 1; }

.quiz-opt-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
}

.quiz-opt-sub {
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Progress dots */
.quiz-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.quiz-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--light);
  transition: background 0.2s;
}
.quiz-dot.active { background: #FF4D7D; width: 18px; border-radius: 3px; }

/* Result screen */
.quiz-result {
  text-align: center;
  padding: 1rem 0;
}
.quiz-result-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #FF4D7D;
}
.quiz-result-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.quiz-result-sub {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.quiz-result-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.quiz-result-loading {
  font-size: 0.85rem;
  color: var(--mid);
  text-align: center;
  padding: 1rem 0;
}

.quiz-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  background: var(--cream);
  border: 1.5px solid var(--light);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.quiz-result-item:hover {
  border-color: #FF4D7D;
  background: #FFF5F8;
}

.quiz-result-thumb,
.quiz-result-thumb-ph {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--light);
  flex-shrink: 0;
}

.quiz-result-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.quiz-result-rank {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FF4D7D;
}

.quiz-result-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.25;
}

.quiz-result-cat {
  font-size: 0.7rem;
  color: var(--mid);
}

.quiz-result-price {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-left: auto;
  flex-shrink: 0;
}

.quiz-result-more {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: underline;
  margin-bottom: 0.5rem;
}
.quiz-result-more:hover { color: var(--charcoal); }

.quiz-restart {
  background: none;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: underline;
}
.quiz-restart:hover { color: var(--charcoal); }

/* ── Policy / compliance pages ─────────────────────────────────────────────── */
.policy-body p { margin-bottom: 1rem; line-height: 1.8; }
.policy-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.policy-body h3 { font-family: 'Jost', sans-serif; font-size: 1.05rem; font-weight: 500; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.policy-body ul, .policy-body ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.policy-body li { margin-bottom: 0.4rem; line-height: 1.7; }

@media (max-width: 480px) {
  .quiz-modal { padding: 2.2rem 1.5rem 2rem; }
  .quiz-question { font-size: 1.5rem; }
  .quiz-opt { padding: 1.1rem 0.6rem; }

  /* Price already shown in .pdp-price-row above; drop it from the button
     label so "ADD TO BAG — MVR X" doesn't wrap onto two lines. */
  .pdp-add-btn-price { display: none; }
}

/* ── Sitewide loading screen ─────────────────────────────────────────────── */
/* Independent from .cart-empty / cartMistDrift on purpose: same bottle+mist
   motif, separate class names + keyframe, so neither feature can regress
   the other. Dormant until a future feature toggles .is-active via
   showLoadingScreen()/hideLoadingScreen() (see static/js/loading_screen.js). */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1200; /* above .quiz-backdrop (1100), the highest existing overlay */
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.loading-screen.is-active { display: flex; }

.loading-screen-icon {
  width: 72px;
  height: auto;
}

.loading-screen-mist circle { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .loading-screen-mist circle {
    animation: loadingMistDrift 3.4s ease-in-out infinite;
  }
  .loading-screen-mist circle:nth-child(2) { animation-delay: 0.35s; }
  .loading-screen-mist circle:nth-child(3) { animation-delay: 0.7s; }
}

@keyframes loadingMistDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(2.5px, -5px); }
}
