/* ================================================================
   NeoVTO Demo — Stylesheet
   ================================================================
   A reference implementation showing how to build a product
   browsing page that integrates with the NeoVTO virtual try-on SDK.

   Sections:
     1. Reset & Base
     2. Header
     3. Loading & Error States
     4. Layout
     5. Product Detail — Desktop
     6. Shared UI Components (labels, swatches, buttons)
     7. Model Gallery — Desktop
     8. Curated Looks
     9. Navigation (category / subcategory / product line)
    10. Mobile Overrides
    11. Lead Popup
   ================================================================ */

/* ─── 1. Reset & Base ──────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Open Sans',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #faf9f7;
  color: #333;
  line-height: 1.6;
  /* Brand tokens shared by every button */
  --ink: #1a1a1a;
  --cta-gradient: linear-gradient(105deg, #d54c90, #e8890f);
  --cta-glow: 213, 76, 144;
  /* The glossy top sheen every filled pill shares — active category, Book
     your demo, Find My Shade — so they read as one family */
  --gloss: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0) 55%
  );
}

/* ─── 2. Header ────────────────────────────────────────────────── */

.header {
  height: 64px;
  display: flex;
  align-items: center;
  /* Logo and category nav sit together on the left; the business actions
     are pinned right */
  justify-content: flex-start;
  gap: 32px;
  padding: 0 24px;
  /* Frosted glass: products scrolling under it show through, softened */
  background: rgba(250, 249, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

/* Lifts off the page once content scrolls under it (set by JS) */
.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Logo pinned left, tiles flex-centered in the remaining space */
.header > a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* 40px keeps "BY HOLITION" legible; at the old 28px it was ~4px tall */
.header img {
  height: 40px;
  width: auto;
}

/* Header actions — "Pricing & plans" + "Book your demo", pinned right.
   Book is the glossy ink pill with a calendar icon, the brand gradient
   arriving only as a ring on hover; Pricing is a quiet text link so the eye
   still lands on Book. Both speak the page's button language (uppercase,
   letter-spaced). Below 980px they move behind the menu button. */
.header-actions {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Uppercase and letter-spaced like every other button on the page (and
   holitionbeauty.com's own nav), only smaller for the header */
.header-link {
  color: #555;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-link:hover {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px 0 13px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    var(--gloss) padding-box,
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(var(--ink), var(--ink)) border-box;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.header-cta svg {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.header-cta-dot {
  fill: #e8890f;
  stroke: none;
}

.header-cta:hover {
  background:
    var(--gloss) padding-box,
    linear-gradient(var(--ink), var(--ink)) padding-box,
    var(--cta-gradient) border-box;
  box-shadow: 0 6px 18px rgba(var(--cta-glow), 0.28);
  transform: translateY(-1px);
}

#header-categories::-webkit-scrollbar {
  display: none;
}

#header-categories.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
}

/* Client previews (?clientId=<brand>, html.is-client-preview, set in the page <head>) swap the
   sales actions for one quiet "Contact us", inline at every width — a
   single link needs no menu. */
/* `.header >` to outrank the logo's `.header > a` rule */
.header > .header-contact {
  display: none;
  margin-left: auto;
}

.is-client-preview .header > .header-contact {
  display: inline;
}

.is-client-preview .header-actions,
.is-client-preview .header-menu-btn {
  display: none;
}

/* Menu button — two bars like holitionbeauty.com's own; turns into an X */
.header-menu-btn {
  display: none;
  flex-shrink: 0;
  margin: 0 -6px 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.header-menu-btn span {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: #1a1a1a;
  transition: transform 0.25s ease;
}

.header-menu-btn[aria-expanded='true'] span:first-child {
  transform: translateY(4.75px) rotate(45deg);
}

.header-menu-btn[aria-expanded='true'] span:last-child {
  transform: translateY(-4.75px) rotate(-45deg);
}

@media (max-width: 980px) {
  .header-menu-btn {
    display: flex;
  }

  /* The actions become a panel dropping from under the header: Book first
     and full width, Pricing beneath it. */
  .header-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    /* Solid, not glass: it holds text, and a backdrop-filter nested inside the
       header's own lets the page read through it in Chrome. */
    background: #faf9f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .header-actions.is-open {
    display: flex;
  }

  .header-cta {
    height: 46px;
    font-size: 12.5px;
  }

  .header-actions .header-link {
    padding: 12px 0;
    text-align: center;
    font-size: 12.5px;
  }
}

/* Category navigation — the same vocabulary as holitionbeauty.com's own
   product nav (a floating white track, letter-spaced uppercase labels, the
   active item a solid black pill), finished as glass: a translucent track
   with a top highlight, and a glossy sheen on the active pill. Sits beside
   the logo; with one category (e.g. ?filterTags=neoshade) it is still the
   way to switch products, through its dropdown. */
/* Hugs its tiles — a single category (?filterTags=neoshade) is just its pill —
   and shrinks to scroll, with a trailing fade (.has-more, set by JS), only
   when they don't fit beside the actions. */
#header-categories {
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  gap: 2px;
  /* 3px + 28px tiles + 3px + 1px borders = 36px, Book your demo's height */
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-cat-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-cat-tile:not(.active):hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Shadow sized to fit the track's 3px padding — the track scrolls, so it clips */
.header-cat-tile.active {
  background: var(--gloss), #1a1a1a;
  color: #fff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Label + subtitle stacked */
.tile-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.tile-label {
  display: block;
}

.tile-sub {
  font-size: 9px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.03em;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  max-width: 90px;
  text-overflow: ellipsis;
}

.tile-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  opacity: 0.45;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.header-cat-tile:hover .tile-chevron {
  opacity: 0.6;
}

/* The chevron flips while its menu is open */
.header-cat-tile[aria-expanded='true'] .tile-chevron {
  transform: rotate(180deg);
  opacity: 0.75;
}

.header-cat-tile.active .tile-chevron {
  opacity: 0.75;
}

/* ── Subcategory dropdown ── */
.cat-dropdown {
  position: fixed;
  z-index: 200;
  min-width: 170px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.11),
    0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  /* visibility, not just opacity, so a closed panel's items leave the tab
     order — switched only after the closing animation has played */
  visibility: hidden;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.15s ease,
    visibility 0s linear 0.22s;
}

.cat-dropdown.open {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

/* Single-line subcategory item */
.cat-dd-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px 13px 9px 13px;
  background: none;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s,
    padding-left 0.15s;
}

.cat-dd-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

.cat-dd-item.active {
  font-weight: 600;
  color: #1a1a1a;
  padding-left: 24px;
}

.cat-dd-item.active::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d54c90, #f1b301);
}

/* Multi-line subcategory accordion */
.cat-dd-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 13px;
  background: none;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}

.cat-dd-subhead:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

.cat-dd-group.expanded .cat-dd-subhead {
  color: #1a1a1a;
  font-weight: 500;
}

.dd-chev {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.35;
  transition:
    transform 0.22s ease,
    opacity 0.2s;
}

.cat-dd-group.expanded .dd-chev {
  transform: rotate(180deg);
  opacity: 0.6;
}

/* Product lines — hidden until expanded */
.cat-dd-lines {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-dd-group.expanded .cat-dd-lines {
  max-height: 400px;
}

.cat-dd-line {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 13px 7px 24px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  color: #777;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}

.cat-dd-line:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

.cat-dd-line.active {
  font-weight: 600;
  color: #1a1a1a;
  padding-left: 32px;
}

.cat-dd-line.active::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d54c90, #f1b301);
}

/* ─── 3. Loading & Error States ────────────────────────────────── */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  font-size: 14px;
}

.error {
  text-align: center;
  padding: 60px 20px;
  color: #c00;
}

/* ─── 4. Layout ────────────────────────────────────────────────── */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ─── 5. Product Detail — Desktop ──────────────────────────────── */
/* Two-column grid: product image on left, details on right.       */

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 60px;
}

.product-image-container {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.product-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-details {
  padding-top: 20px;
}

.product-line {
  font-family: 'Open Sans', sans-serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.product-shade-name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 32px;
  background: linear-gradient(90deg, #d54c90, #e8890f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 6. Shared UI Components ──────────────────────────────────── */

/* Section labels — used for "Select Shade" and "About The Product" */
.shade-label,
.about-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #aaa;
  margin-bottom: 14px;
}

.shade-label span {
  font-weight: 600;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: normal;
}

/* Spacing for shade selector and about sections */
.shade-selector,
.about-product {
  margin-bottom: 30px;
}

/* Colour swatches — clickable shade selectors */
.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.color-swatch {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    width 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    flex-basis 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.2s ease;
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.color-swatch:hover {
  opacity: 0.85;
}

.color-swatch.active {
  flex-basis: 72px;
  width: 72px;
  border-radius: 10px;
}

/* Look swatches carry their photo as an <img> (see lookSwatchesHTML) */
.look-swatch {
  padding: 0;
  overflow: hidden;
  background: #f5f3f0;
}

.look-swatch > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Finish & palette grid overlays → see neovto-finish-overlays.css */

.about-description {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* "Try On" CTA — ghost gradient border, shared by the product and
   look pages ("Try On" / "Try On Look"). The brand gradient and its glow
   are defined ONCE here and inherited by every CTA flavour (hover, active,
   the filled Find My Shade twin). */
.try-on-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  /* One product-button size: 52px (48px on phones), fully rounded */
  border-radius: 999px;
  gap: 11px;
  min-height: 52px;
  padding: 0 32px;
  font-size: 13px;
  margin-bottom: 12px;
  /* Outline — Find My Shade carries the colour, so the row stays light */
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  box-shadow: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

/* Find My Shade and Try On share one row: on foundation/concealer pages
   they split it evenly; on every other line the row holds Try On alone at
   full width. The buttons keep their own bottom margin for the Add to Bag
   below. */
.cta-row {
  display: flex;
  gap: 12px;
}

.cta-row .try-on-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}

/* "Find My Shade" CTA (Neo Shade journey) — Try On's filled twin: same
   geometry, gradient + gloss so the journey reads as the hero action on
   foundation/concealer pages. */
.find-my-shade-btn {
  color: #fff;
  background: var(--gloss), var(--cta-gradient);
  /* Size the gradient to the border box, or it repeats into the 2px
     transparent border as a seam at each end */
  background-origin: border-box;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(var(--cta-glow), 0.28);
}

.find-my-shade-btn:hover {
  box-shadow: 0 8px 24px rgba(var(--cta-glow), 0.4);
  transform: translateY(-1px);
}

.find-my-shade-btn .find-my-shade-icon {
  /* The widget's three-stars.svg (38×42) — height leads, width follows.
     Capped to the Try On camera icon's height (17px) so the two buttons
     in the CTA row stay exactly the same height. */
  height: 17px;
  width: auto;
}

/* Hover: fills with the brand gradient */
.try-on-btn:not(.find-my-shade-btn):hover {
  color: #fff;
  background: var(--cta-gradient);
  background-origin: border-box;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(var(--cta-glow), 0.32);
  transform: translateY(-1px);
}

.try-on-btn svg {
  width: 22px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

/* "Add to Bag" (desktop & mobile) — a tonal button: a soft ink tint with
   dark text. Still plainly a button, but quieter than the try-on actions
   this page exists to show. */
.add-to-bag,
.mobile-add-to-bag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(26, 26, 26, 0.06);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.add-to-bag:hover,
.mobile-add-to-bag:hover {
  background: rgba(26, 26, 26, 0.1);
}

.add-to-bag {
  min-height: 52px;
  padding: 0 32px;
  font-size: 13px;
}

.mobile-add-to-bag {
  min-height: 48px;
  padding: 0 24px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
}

/* Shared states for every button on the page — header and product. Kept
   after all the button rules so reduced motion outranks their :hover. */
.header-link:focus-visible,
.header-cta:focus-visible,
.header-menu-btn:focus-visible,
.try-on-btn:focus-visible,
.add-to-bag:focus-visible,
.mobile-add-to-bag:focus-visible {
  outline: 2px solid #d54c90;
  outline-offset: 2px;
}

/* Inside the tile: the scrolling track would clip an outer ring */
.header-cat-tile:focus-visible {
  outline: 2px solid #d54c90;
  outline-offset: -2px;
}

/* A slight press — tactile, and shows the tap landed. Try On's class is
   doubled to outrank its :not(...):hover lift, which also matches mid-press. */
.header-cta:active,
.try-on-btn.try-on-btn:active,
.add-to-bag:active,
.mobile-add-to-bag:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header-cta,
  .header-menu-btn span,
  .tile-chevron,
  .try-on-btn,
  .add-to-bag,
  .mobile-add-to-bag {
    transition: none;
  }
  .header-cta.header-cta:hover,
  .header-cta.header-cta:active,
  .try-on-btn.try-on-btn:hover,
  .try-on-btn.try-on-btn:active,
  .add-to-bag:active,
  .mobile-add-to-bag:active {
    transform: none;
  }
}

/* ─── 7. Model Gallery — Desktop ───────────────────────────────── */
/* Row of model images shown below the product hero.               */

.model-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.model-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #e8e5e0;
}

/* Mobile-only elements — hidden on desktop, shown via media query */
.mobile-carousel-container,
.mobile-product-info,
.mobile-shade-selector,
.mobile-about-product,
.mobile-try-on-btn,
.mobile-add-to-bag {
  display: none;
}

/* ─── 8. Curated Looks ─────────────────────────────────────────── */
/* The Looks tab reuses the PDP layout: the model photo as hero,    */
/* look thumbnails in the shade-selector slot, and an "In This      */
/* Look" grid of the products applied together via                  */
/* NeoVTO.applyProducts().                                          */

/* Look rows in the header dropdown — thumbnail + name */
.look-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.look-dd-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f3f0;
}

/* Look hero: model photo fills the square the packshots sit in */
.look-hero-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 8px;
}

/* "In This Look" — grid of the products the look applies */
.look-products {
  margin-bottom: 60px;
}

.look-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.look-product-card {
  display: block;
  padding: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.look-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.look-product-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f5f3f0;
}

.look-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.look-product-info {
  padding: 12px 14px 16px;
}

.look-product-line {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #aaa;
  margin-bottom: 2px;
}

.look-product-shade {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.look-product-price {
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(90deg, #d54c90, #e8890f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 9. Navigation ────────────────────────────────────────────── */
/* Three-tier nav: Category (Lips/Eyes/Face/Looks) →               */
/* Subcategory (Lipstick/Lipliner) → Product Line (Satin Edit).   */

#navbar-container {
  position: sticky;
  top: 64px; /* = .header height */
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

/* navbar-container now holds only the line-nav strip */

/* Product line pills (third tier) — always a single scrollable row */
.line-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 32px;
  background: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.line-nav::-webkit-scrollbar {
  display: none;
}

/* Shared scrollbar hiding for horizontally-scrollable elements */
.mobile-carousel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-carousel::-webkit-scrollbar {
  display: none;
}

.line-nav-item {
  flex-shrink: 0;
  padding: 6px 16px;
  background: none;
  border: 1px solid #e2e2e2;
  border-radius: 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #777;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.line-nav-item:hover {
  border-color: #bbb;
  color: #333;
}

.line-nav-item.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

/* ─── 10. Mobile Overrides (≤ 768px) ───────────────────────────── */

@media (max-width: 768px) {
  /* Header */
  .header {
    height: 58px;
    padding: 0 16px;
    gap: 12px;
  }

  .header img {
    height: 30px;
  }

  /* Menu button joins the flow on the right so the scrolling tiles never
     sit under it */
  /* 32px tap targets (were 23px) */
  .header-cat-tile {
    min-height: 32px;
    padding: 0 12px;
    gap: 5px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .main-content {
    padding: 20px 16px;
  }

  /* Hide desktop-only sections */
  .product-hero,
  .model-gallery,
  .product-details {
    display: none;
  }

  /* Show mobile product info */
  .mobile-product-info {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }

  .mobile-product-info .product-line {
    font-size: 32px;
  }

  .mobile-product-info .product-shade-name {
    font-size: 11px;
  }

  .mobile-product-info .product-price {
    font-size: 16px;
    margin-bottom: 0;
  }

  /* Show mobile elements */
  .mobile-carousel-container,
  .mobile-shade-selector,
  .mobile-about-product,
  .mobile-try-on-btn {
    display: block;
  }

  /* flex, like the desktop button, so its label stays centred */
  .mobile-add-to-bag {
    display: flex;
  }

  /* Image carousel (swipeable) */
  .mobile-carousel-container {
    margin-bottom: 24px;
  }

  .mobile-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    background: #f5f3f0;
  }

  .carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
  }

  .carousel-slide.model-slide {
    background: #f5f3f0;
    padding: 0;
  }

  .carousel-slide.model-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }

  /* Carousel dot indicators */
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .carousel-dot.active {
    background: #333;
  }

  /* Shade selector & about section (centred on mobile) */
  .mobile-shade-selector {
    margin-bottom: 24px;
  }

  .mobile-shade-selector .shade-label,
  .mobile-shade-selector .color-swatches {
    justify-content: center;
    text-align: center;
  }

  .mobile-shade-selector .color-swatch {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .mobile-shade-selector .color-swatch.active {
    flex-basis: 88px;
    width: 88px;
    border-radius: 12px;
  }

  .mobile-about-product {
    margin-bottom: 24px;
    text-align: center;
  }

  .mobile-about-product .about-description {
    font-size: 14px;
  }

  /* CTA buttons (smaller on mobile) */
  .mobile-try-on-btn {
    margin-bottom: 12px;
  }

  .mobile-try-on-btn .try-on-btn {
    /* Same 48px / 11.5px as the phone Add to Bag */
    min-height: 48px;
    padding: 0 10px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    gap: 7px;
  }

  /* Navigation */
  #navbar-container {
    top: 58px; /* = mobile .header height */
  }

  .line-nav {
    padding: 7px 16px;
  }

  .line-nav-item {
    padding: 5px 13px;
    font-size: 11px;
  }

  /* "In This Look" grid (two columns on mobile) */
  .look-products {
    margin-bottom: 24px;
  }

  .look-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ─── 11. Lead Popup ───────────────────────────────────────────── */
/* "See it with your own products" (neovto-lead.js). A native <dialog>
   opened with showModal(), so it sits in the top layer above the try-on;
   a bottom sheet on phones. The fan of shades is the one flourish. */

html.lead-open {
  overflow: hidden;
}

.lead-dialog {
  --field: #f3f2f0;
  --muted: #6b6b6b;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px 28px 20px;
  overflow-y: auto;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 24px 60px -12px rgba(40, 20, 30, 0.28);
}

.lead-dialog::backdrop {
  background: rgba(24, 18, 22, 0.38);
  backdrop-filter: blur(6px) saturate(120%);
}

.lead-dialog[open] {
  animation: lead-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lead-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.lead-close svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lead-close:hover {
  background: #e6e4e1;
}

/* The fan of shades: overlapping swatches that spread once on open */
.lead-shades {
  display: flex;
  margin-bottom: 18px;
}

.lead-shades span {
  width: 26px;
  height: 26px;
  margin-right: -8px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(255, 255, 255, 0.45),
      transparent 45%
    ),
    var(--shade);
  box-shadow: 0 0 0 2.5px #fff;
}

.lead-dialog[open] .lead-shades span {
  animation: lead-fan 520ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.lead-shades span:nth-child(2) {
  animation-delay: 40ms;
}
.lead-shades span:nth-child(3) {
  animation-delay: 80ms;
}
.lead-shades span:nth-child(4) {
  animation-delay: 120ms;
}
.lead-shades span:nth-child(5) {
  animation-delay: 160ms;
}
.lead-shades span:nth-child(6) {
  animation-delay: 200ms;
}
.lead-shades span:nth-child(7) {
  animation-delay: 240ms;
}

@keyframes lead-fan {
  from {
    opacity: 0;
    transform: translateX(-14px) scale(0.6);
  }
}

.lead-done,
.lead-dialog.is-done .lead-ask {
  display: none;
}

.lead-dialog.is-done .lead-done {
  display: block;
}

.lead-title {
  margin-bottom: 6px;
  padding-right: 36px; /* clear of the close button */
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  outline: none; /* focused on open (autofocus) so nothing else is */
}

.lead-intro {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.lead-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.lead-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lead-field {
  margin-bottom: 12px;
}

.lead-field label,
.lead-chips legend {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.lead-chips legend span {
  font-weight: 400;
  color: var(--muted);
}

.lead-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.lead-field input::placeholder {
  color: #9a9a9a;
}

.lead-field input:hover {
  background: #eceae7;
}

.lead-field input:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(var(--cta-glow), 0.14);
}

.lead-field input[aria-invalid='true'] {
  background: #fff;
  border-color: #c0392b;
}

.lead-error {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #b3261e;
}

.lead-error a {
  color: inherit;
}

.lead-form-error {
  margin: 0 0 10px;
}

.lead-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Two labelled sections of one radio group, on a shared 4-column grid so
   every chip lines up: four try-on areas, then two shade-finder chips that
   span two columns each */
.lead-chips {
  margin: 4px 0 18px;
  border: 0;
}

.lead-chip-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lead-chip-group + .lead-chip-group {
  margin-top: 10px;
}

.lead-chip-label {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}

.lead-chip-group:last-child .lead-chip {
  grid-column: span 2;
}

.lead-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #dddbd8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

/* The radio stays in the DOM (keyboard, screen readers); the chip shows it */
.lead-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-chip:hover {
  border-color: var(--ink);
}

/* Selected: inked, with a tick so the state is not colour alone */
.lead-chip:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.lead-chip:has(input:checked)::before {
  content: '';
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border: solid currentColor;
  border-width: 0 0 1.6px 1.6px;
  transform: rotate(-45deg);
}

.lead-chip:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.lead-submit:focus-visible,
.lead-close:focus-visible,
.lead-later:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Same family as the header's Book your demo: ink pill, brand glow on hover */
.lead-submit {
  display: block;
  width: 100%;
  height: 48px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    var(--gloss) padding-box,
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(var(--ink), var(--ink)) border-box;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.lead-submit:hover:not(:disabled) {
  background:
    var(--gloss) padding-box,
    linear-gradient(var(--ink), var(--ink)) padding-box,
    var(--cta-gradient) border-box;
  box-shadow: 0 8px 22px rgba(var(--cta-glow), 0.3);
  transform: translateY(-1px);
}

.lead-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.lead-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.lead-note a {
  color: var(--muted);
}

.lead-later {
  display: block;
  margin: 8px auto 0;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.lead-later:hover {
  color: var(--ink);
  text-decoration: underline;
}

.lead-done-close {
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .lead-dialog[open],
  .lead-dialog[open] .lead-shades span {
    animation: none;
  }
}

/* Phones: a bottom sheet, single-column fields */
@media (max-width: 600px) {
  .lead-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    padding: 22px 20px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .lead-dialog[open] {
    animation-name: lead-up;
  }

  @keyframes lead-up {
    from {
      transform: translateY(100%);
    }
  }

  .lead-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
