/* =====================================================
   THE COMMON PEOPLE — Landing Page Styles
   Color system derived from brand reference image:
   deep near-black ground, jewel-toned teal + burgundy
   drapery, warm gold/amber accents, cream typography.
   ===================================================== */

:root {
  /* Core brand palette */
  /* LIGHT THEME. The names are kept from the old dark theme because the admin colour panel and the scripts
     use them, so read them by their job:
       --dark-color       = page background          --dark-color-deep = second background (alternate sections)
       --light-color      = headings / strongest ink  --text-color      = body text
       --primary-color    = gold, links + accents     --primary-color-light = darker gold, for hover + prices
       --accent-color     = wine, buttons + sale tags --secondary-color = deep emerald, bands */
  --primary-color: #8c6212;
  --primary-color-light: #6f4d0b;
  --secondary-color: #12483f;
  --secondary-color-light: #1f6b5d;
  --accent-color: #8a2335;
  --accent-color-light: #a63348;
  --dark-color: #fbf8f2;
  --dark-color-deep: #f2ece0;
  --light-color: #1e1a16;
  --text-color: #3a342c;
  --text-muted: #6b6358;
  --border-soft: rgba(80, 58, 20, 0.2);

  /* surfaces and lines that the admin colours do not change */
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.7);
  --line: rgba(80, 58, 20, 0.12);
  --shadow-card: 0 1px 2px rgba(60, 40, 10, 0.06), 0 12px 28px -14px rgba(60, 40, 10, 0.22);
  --shadow-lift: 0 2px 4px rgba(60, 40, 10, 0.06), 0 26px 44px -22px rgba(60, 40, 10, 0.34);
  --on-accent: #ffffff;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;

  --transition-base: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-pad: 1.5rem;

  /* Set at runtime by js/announcement.js to the announcement bar's actual
     rendered height (0px when disabled/dismissed) — the fixed navbar and
     hero's top offset both read this, so nothing needs to change here when
     the bar is toggled on/off. */
  --announcement-height: 0px;

  /* The space every page leaves under the fixed navbar. --nav-height is the navbar's real height, measured by
     js/layout.js (the number here is only what shows before that runs). One gap for all pages. */
  --nav-height: 4.75rem;
  --page-gap: 2.25rem;
  --page-top: calc(var(--announcement-height, 0px) + var(--nav-height) + var(--page-gap));
}
@media (min-width: 992px) { :root { --nav-height: 9.5rem; } }

/* =================== BASE =================== */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The vertical scrollbar is always there. Without it the page is a scrollbar's width wider while it is still
     short (loading) and jumps narrower the moment it grows, which showed as a flicker on every page open. */
  overflow-y: scroll;
  /* Links like #philosophy (the About link) stop below the fixed navbar instead of under it. */
  scroll-padding-top: calc(var(--announcement-height, 0px) + var(--nav-height) + 0.75rem);
}
/* A modal / the photo viewer locks the page's scrolling, but the scrollbar's space stays so nothing moves.
   (Bootstrap's own "pad the page by the scrollbar width" is therefore switched off.) */
html:has(body.modal-open), html.lb-open { overflow-y: hidden; scrollbar-gutter: stable; }
body.modal-open, body.modal-open .fixed-top, body.modal-open .fixed-bottom, body.modal-open .sticky-top { padding-right: 0 !important; }

body {
  background-color: var(--dark-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .brand-name {
  font-family: var(--font-display);
  color: var(--light-color);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

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

::selection {
  background: var(--primary-color);
  color: #ffffff;
}
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary-color) 60%, transparent); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.88rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.6rem;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--primary-color);
}

.eyebrow-light { color: var(--primary-color); }

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Scroll-reveal (progressive enhancement via jQuery) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =================== BUTTONS =================== */
.btn-primary-cta,
.btn-secondary-cta,
.btn-nav-cta {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.btn-primary-cta {
  background: var(--accent-color);
  color: var(--on-accent);
  border: 1px solid var(--accent-color);
}
.btn-primary-cta:hover {
  background: var(--accent-color-light);
  border-color: var(--accent-color-light);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(138, 35, 53, 0.5);
}

.btn-secondary-cta {
  background: var(--surface);
  color: var(--light-color);
  border: 1px solid rgba(80, 58, 20, 0.32);
}
.btn-secondary-cta:hover {
  background: var(--light-color);
  border-color: var(--light-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-nav-cta {
  background: var(--light-color);
  color: #ffffff;
  border: 1px solid var(--light-color);
  padding: 0.65rem 1.5rem;
}
.btn-nav-cta:hover {
  background: transparent;
  color: var(--light-color);
  transform: translateY(-1px);
}

.btn-lg-cta {
  padding: 1.1rem 2.6rem;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

/* =================== NAVBAR =================== */
.navbar-brand-custom {
  padding: 0;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base), top var(--transition-base);
  top: var(--announcement-height, 0px);
}

.navbar-brand-custom.scrolled {
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -20px rgba(60, 40, 10, 0.4);
  border-bottom: 1px solid var(--line);
}

/* Bootstrap's .navbar > .container is a flex row by default;
   force our two stacked rows (top / bottom) into a column. */
.navbar-brand-custom > .container {
  flex-direction: column;
  align-items: stretch;
}

/* ---- Row 1: brand / search / logo placeholder ---- */
.nav-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  transition: padding var(--transition-base);
}
.navbar-brand-custom.scrolled .nav-row-top { padding: 0.75rem 0; }

.nav-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 640px;
  margin: 0 auto;
}

.nav-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(80, 58, 20, 0.28);
  border-radius: 30px;
  padding: 0.7rem 3rem 0.7rem 1.3rem;
  color: var(--light-color);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-base);
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(140, 98, 18, 0.16);
}

.nav-search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--light-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  transition: background var(--transition-base);
}
.nav-search-btn:hover { background: var(--primary-color); }

.nav-logo-placeholder {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px dashed var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  display: none !important;   /* placeholder only: hidden until a real logo exists */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-logo-placeholder i { font-size: 1rem; color: var(--primary-color); }

/* ---- Row 2: centered links / explore CTA ---- */
.nav-row-bottom {
  width: 100%;
  border-top: 1px solid var(--border-soft);
  padding: 0.7rem 0;
}

.nav-links-center {
  margin: 0;
}

.navbar-brand-block {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.brand-title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
}

.brand-the {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--light-color);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--light-color);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.35rem;
}

.navbar-nav .nav-link {
  color: var(--light-color);
  font-size: 0.98rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--accent-color);
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
  width: 24px;
  height: 2px;
  background: var(--light-color);
  display: block;
}

@media (min-width: 992px) {
  /* Row 1: symmetric 1fr/auto/1fr grid means the search box centers on
     the true row width, regardless of the brand block and logo circle
     being different widths (a flex + margin:auto approach only centers
     within their leftover space, which is NOT the same thing). */
  .nav-row-top {
    display: grid;
    /* The center track is capped with minmax(0, <fluid width>) so the
       search box grows to fill it (up to the cap) instead of an "auto"
       track, which would just shrink-wrap to the input's intrinsic size.
       The cap itself is a clamp() — it shrinks smoothly on narrower
       desktop widths and grows smoothly on wider ones, rather than
       jumping between fixed breakpoints. The outer columns get a
       guaranteed minimum (matching the brand block's and logo circle's
       natural size) so THEY never give up width to the search box —
       it's the search box that flexes to fit whatever's left. */
    grid-template-columns: minmax(190px, 1fr) minmax(0, clamp(300px, 38vw, 640px)) minmax(56px, 1fr);
    align-items: center;
    column-gap: 1.5rem;
  }
  .navbar-brand-block { grid-column: 1; justify-self: start; }
  .nav-search:not(.nav-search-mobile) { grid-column: 2; justify-self: stretch; width: 100%; margin: 0; }
  .nav-logo-placeholder, .nav-toggler-slot { grid-column: 3; justify-self: end; }

  /* Row 2: same 1fr/auto/1fr grid, but the links AND the Explore button
     are wrapped in one group so the whole cluster centers as a unit —
     centering the links alone while the button hangs off to the side
     reads as visually off-balance even though the links are on-center. */
  .nav-row-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 1rem;
  }

  .nav-bottom-group {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-self: center;
    gap: 1.5rem;
  }

  .nav-links-center {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-links-center .nav-item { position: relative; }
  .nav-links-center .nav-item .nav-link { padding: 0 0.85rem !important; }
  .nav-links-center .nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--border-soft);
  }
}

/* ---- Search Bar / Navbar position swap (admin-controlled) ----
   .navbar-brand-custom > .container is already flex-direction:column
   with exactly two direct children — .nav-row-top (brand/search/logo)
   and #navMain (the nav-links/Explore row). Swapping which one appears
   first is therefore a pure `order` flip: no duplicate markup, no JS
   DOM surgery. js/layout.js toggles the one class this depends on.
   Scoped to the same >=992px breakpoint where these render as two
   persistent stacked rows — below that, the navbar collapses into the
   existing hamburger + dropdown pattern, which is unaffected. */
@media (min-width: 992px) {
  .nav-row-top { order: 1; }
  #navMain { order: 2; }

  html.layout-nav-swapped .nav-row-top { order: 2; }
  html.layout-nav-swapped #navMain { order: 1; }

  /* The divider must stay at the seam between the two rows regardless
     of which one is visually on top. */
  html.layout-nav-swapped .nav-row-bottom { border-top: none; }
  html.layout-nav-swapped .nav-row-top { border-top: 1px solid var(--border-soft); }
}

/* =================== HERO =================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--page-top) + 2.5rem);   /* the home page's big hero gets a little more air */
  padding-bottom: 4rem;
  background:
    radial-gradient(55% 55% at 88% 30%, rgba(176, 125, 30, 0.2) 0%, transparent 70%),
    radial-gradient(50% 50% at 8% 90%, rgba(18, 72, 63, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, var(--dark-color) 0%, var(--dark-color-deep) 100%);
  overflow: hidden;
}
/* The top space only animates later (when the announcement bar is closed), never while the page is opening. */
html.nav-settled .hero { transition: padding-top var(--transition-base); }

/* Pages built around a card (sign in, account, orders…): the card keeps its top edge fixed, so when its
   content gets taller it only grows downwards instead of jumping up and down around the page centre. */
.hero.hero-top { align-items: flex-start; padding-top: var(--page-top); }

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.8), transparent 50%);
  pointer-events: none;
}

/* The white glow must sit behind the page content — on the card pages (contact, orders, account…) the
   content is a plain .container, which used to be painted underneath the glow and looked washed out on the right. */
.hero > .container, .hero-container { position: relative; z-index: 2; }

.hero-title {
  /* Sized down further from the original clamp(2.6rem, 5.5vw, 4.2rem) —
     the current headline is a long, multi-word phrase rather than a short
     2-line punchline, so at the old poster-sized type it wrapped into
     many ragged, unevenly-short lines (an orphaned "out" on its own line,
     jagged right edge) that read as messy rather than intentional. This
     size reads as a confident but proportionate editorial headline. */
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.25;
  color: var(--light-color);
  margin-bottom: 1.25rem;
  /* Distributes words evenly across lines instead of greedily filling each
     line — no jagged edge, no lonely last word. Modern browsers only;
     unsupported browsers just get ordinary (still fine) wrapping. */
  text-wrap: balance;
}

.hero-subtext {
  color: var(--text-color);
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 2.2rem;
}

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

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(60, 40, 10, 0.3));
  animation: floatBottle 6s ease-in-out infinite;
}

@keyframes floatBottle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-side-text {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  z-index: 2;
}

@media (min-width: 1200px) {
  .hero-side-text { display: flex; }
}

.side-label {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--light-color);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.side-divider {
  width: 1px;
  height: 50px;
  background: var(--border-soft);
  margin-bottom: 0.75rem;
}

.side-caption {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  max-width: 130px;
}

@media (min-width: 1200px) {
  .hero-container { padding-right: 150px; }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-color);
  font-size: 1.4rem;
  animation: bounceCue 2.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bounceCue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 10px); opacity: 1; }
}

/* =================== SIGNATURE COLLECTION =================== */
.signature-collection {
  padding: 6.5rem 0;
  background: var(--dark-color);
}

.section-heading { margin-bottom: 3.5rem; }
.section-heading .eyebrow { padding-left: 0; }
.section-heading .eyebrow::before { display: none; }

.scent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.scent-card:hover {
  transform: translateY(-10px);
  border-color: rgba(140, 98, 18, 0.45);
  box-shadow: var(--shadow-lift);
}

.scent-card-image {
  position: relative;
  background: radial-gradient(circle at 50% 35%, #ffffff, var(--dark-color-deep) 85%);
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.scent-card-image img {
  max-width: 160px;
  margin: 0 auto;
  transition: transform var(--transition-base);
}

.scent-card:hover .scent-card-image img {
  transform: scale(1.06) translateY(-4px);
}

/* The mood pill at the top of a product card's text. It flows with the card (an absolutely positioned
   version had no positioned parent, so every card's pill piled up in the page's top-left corner). */
.scent-tag {
  position: static;
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  color: var(--light-color);
  background: var(--dark-color-deep);
  border: 1px solid var(--border-soft);
}
.tag-citrus { border-color: #c98a2e; }
.tag-floral { border-color: #8a3d3f; }
.tag-woody  { border-color: #6b4423; }
.tag-aquatic{ border-color: #1c5c53; }
.tag-fresh  { border-color: #1c5c53; }
.tag-sweet  { border-color: #c98a2e; }
.tag-dark   { border-color: #6b4423; }
.tag-bold   { border-color: #8a3d3f; }

.scent-card-body {
  padding: 1.5rem;
  border-top: 1px solid var(--border-soft);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.scent-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.scent-card-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.scent-link {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.scent-link i { transition: transform var(--transition-base); }
.scent-link:hover i { transform: translateX(4px); }

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.category-card:hover {
  transform: translateY(-10px);
  border-color: rgba(140, 98, 18, 0.45);
  box-shadow: var(--shadow-lift);
}
.category-card-image {
  background: radial-gradient(circle at 50% 35%, #ffffff, var(--dark-color-deep) 85%);
  padding: 2.5rem 1.5rem 1.25rem;
}
.category-card-image img {
  max-width: 130px;
  margin: 0 auto;
  transition: transform var(--transition-base);
}
.category-card:hover .category-card-image img { transform: scale(1.06) translateY(-4px); }
.category-card-body {
  padding: 1.75rem;
  border-top: 1px solid var(--border-soft);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.category-card-body h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.category-card-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  flex-grow: 1;
  margin-bottom: 1.4rem;
}
.category-shop-btn { align-self: center; }

/* =================== FEATURED PRODUCTS =================== */
.featured-products {
  padding: 6.5rem 0;
  background: var(--dark-color-deep);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.featured-filter-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 2rem;
}
.featured-filter-note strong { color: var(--primary-color-light); text-transform: capitalize; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), opacity var(--transition-base);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(140, 98, 18, 0.45);
  box-shadow: var(--shadow-lift);
}
.product-col.is-filtered-out { display: none; }

.featured-status {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.product-card-media {
  position: relative;
  background: radial-gradient(circle at 50% 35%, #ffffff, var(--dark-color-deep) 85%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-align: center;
}
/* A 4:5 portrait frame, edge to edge: a 4:5 photo (a cut-out bottle on a transparent background, or an artistic
   ingredient background) fills it exactly; a photo of any other shape sits inside without stretching or cropping. */
.product-card-link { display: block; width: 100%; height: 100%; }
.product-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}
.product-card:hover .product-card-media img { transform: scale(1.06) translateY(-4px); }

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  color: var(--light-color);
  font-weight: 600;
}
.badge-sale { background: var(--accent-color); color: var(--on-accent); }
.badge-outofstock { background: #ffffff; border: 1px solid var(--border-soft); color: var(--text-muted); }

.product-gender-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--primary-color);
}

.product-wishlist-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}
.product-wishlist-btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.product-wishlist-btn.is-active { color: var(--accent-color); border-color: var(--accent-color); background: #fff1f3; }

.product-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  border-top: 1px solid var(--border-soft);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-size: 1.15rem;
  margin: 0.6rem 0 0.3rem;
}
.product-concentration {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.size-pill {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.3rem 0.8rem;
  transition: all var(--transition-base);
}
.size-pill:hover { border-color: var(--light-color); color: var(--light-color); }
.size-pill.active { background: var(--light-color); border-color: var(--light-color); color: #ffffff; }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.price-current { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--light-color); }
.price-old { font-size: 0.92rem; color: var(--text-muted); text-decoration: line-through; }

.product-delivery {
  color: var(--secondary-color-light);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.product-delivery-none { color: var(--text-muted); }

.product-cart-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  align-self: flex-start;
}
.qty-btn {
  background: transparent;
  border: none;
  color: var(--light-color);
  width: 32px;
  height: 34px;
  font-size: 1rem;
  line-height: 1;
}
.qty-btn:hover { background: var(--dark-color-deep); }
.qty-btn:disabled { color: var(--text-muted); cursor: not-allowed; }
.qty-input {
  width: 34px;
  height: 34px;
  border: none;
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  background: transparent;
  color: var(--light-color);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.qty-input:focus { outline: none; }
.btn-add-cart { width: 100%; }
.btn-add-cart:disabled { opacity: 0.5; cursor: not-allowed; }

/* =================== BRAND STATEMENT =================== */
.brand-statement {
  padding: 6.5rem 0;
  background:
    radial-gradient(50% 70% at 0% 50%, rgba(18, 72, 63, 0.1), transparent 70%),
    radial-gradient(50% 70% at 100% 50%, rgba(176, 125, 30, 0.14), transparent 70%),
    var(--dark-color-deep);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.statement-heading {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-style: italic;
}

.statement-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88rem;
  color: var(--light-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.3rem;
}
.brand-link:hover { color: var(--accent-color); border-color: var(--accent-color); }

.brand-story-toggle {
  background: none;
  border: none;
  padding: 0 0 0.3rem;
  cursor: pointer;
}
.brand-story-toggle .toggle-label-less { display: none; }
.brand-story-toggle[aria-expanded="true"] .toggle-label-more { display: none; }
.brand-story-toggle[aria-expanded="true"] .toggle-label-less { display: inline; }
.brand-story-toggle[aria-expanded="true"] i { transform: rotate(90deg); }
.brand-story-toggle i { transition: transform var(--transition-base); }

.founder-story {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.founder-story p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.3rem;
}
.founder-signoff {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--primary-color) !important;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* =================== PROMO CTA =================== */
.promo-cta {
  padding: 7rem 0;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(140, 98, 18, 0.22), transparent 70%),
    linear-gradient(160deg, var(--secondary-color) 0%, #0b2e28 100%);
  text-align: center;
}

.promo-cta h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0.5rem 0 1.2rem;
  color: #ffffff;
}
.promo-cta .eyebrow, .promo-cta .eyebrow-light { color: #f0c878; }
.promo-cta .btn-primary-cta { background: #f0c878; border-color: #f0c878; color: #1e1a16; }
.promo-cta .btn-primary-cta:hover { background: #ffffff; border-color: #ffffff; color: #1e1a16; }

.promo-text {
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

/* =================== SCENT FINDER =================== */
.scent-finder {
  padding: 6.5rem 0;
  background: var(--dark-color);
}

.finder-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 2.75rem 2.25rem;
}

.finder-progress {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.finder-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
}
.finder-step.active {
  border-color: var(--light-color);
  color: var(--light-color);
}
.finder-step.completed {
  background: var(--light-color);
  border-color: var(--light-color);
  color: #ffffff;
}

.finder-question h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1.75rem;
}

.finder-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.finder-option {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text-color);
  padding: 1rem 1.1rem;
  font-size: 0.98rem;
  text-align: left;
  transition: all var(--transition-base);
}
.finder-option:hover {
  border-color: var(--light-color);
  color: var(--light-color);
  transform: translateY(-2px);
}
.finder-option.selected {
  background: var(--light-color);
  border-color: var(--light-color);
  color: #ffffff;
}

.finder-results { text-align: center; }
.finder-results h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.finder-results-lead { color: var(--text-muted); margin-bottom: 2rem; }
.finder-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
}
.finder-restart { margin: 0 auto; }

/* Compact product card used inside the Scent Finder results */
.finder-result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  padding: 1rem;
  /* bottle on the left, name and price on its right, the button across the whole card underneath */
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "img name" "img price" "btn btn";
  column-gap: 0.9rem;
  row-gap: 0.1rem;
  align-items: center;
  min-width: 0;
  text-align: left;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.finder-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.finder-result-link { display: contents; color: inherit; text-decoration: none; }   /* the picture and the name both open the perfume's page */
.finder-result-card img { grid-area: img; width: 56px; height: 56px; object-fit: contain; }
.finder-result-card h4 { grid-area: name; align-self: end; font-size: 0.98rem; margin: 0; overflow-wrap: anywhere; }
.finder-result-link:hover h4 { color: var(--primary-color); }
.finder-result-card .price-current { grid-area: price; align-self: start; font-size: 0.95rem; font-weight: 600; }
.finder-result-card .btn-add-cart {
  grid-area: btn;
  margin-top: 0.75rem;
  width: 100%;
  font-size: 0.8rem;
  padding: 0.6rem 0.6rem;
  white-space: nowrap;
  justify-content: center;
}
html.no-anim-cardHover .finder-result-card:hover { transform: none; }

/* =================== SIGN IN FLOWS (verify email / forgot / reset) =================== */
.auth-tabs[hidden] { display: none; }
.auth-flow-title { font-size: 1.35rem; text-align: center; margin: 0.25rem 0 0.6rem; }
.auth-flow-text { color: var(--text-muted); font-size: 0.98rem; text-align: center; margin-bottom: 1.4rem; }
.auth-flow-text strong { color: var(--light-color); font-weight: 600; word-break: break-all; }
.auth-flow-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1.1rem; }
.auth-otp-input {
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
}
.auth-link-btn:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }

/* =================== ACCOUNT MENU (navbar) =================== */
.nav-user { position: relative; }
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  background: var(--surface);
  color: var(--light-color);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-base);
}
.nav-user-btn:hover,
.nav-user-btn[aria-expanded="true"] { border-color: var(--light-color); color: var(--light-color); }
.nav-user-btn .bi-chevron-down { font-size: 0.72rem; color: var(--primary-color); transition: transform var(--transition-base); }
.nav-user-btn[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.nav-user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-color);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-user .nav-user-menu {
  min-width: 250px;
  right: 0;
  left: auto;
  margin-top: 0.6rem !important;
  padding: 0.5rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
}
.nav-user-head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 1rem 0.75rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-soft);
}
.nav-user-head strong { color: var(--light-color); font-weight: 500; font-size: 1rem; }
.nav-user-head span { color: var(--text-muted); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; }
.nav-user-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--text-color);
  font-size: 0.92rem;
}
.nav-user-menu .dropdown-item i { color: var(--primary-color); }
.nav-user-menu .dropdown-item:hover,
.nav-user-menu .dropdown-item:focus { background: var(--dark-color-deep); color: var(--light-color); }
.nav-user-menu .dropdown-divider { margin: 0.4rem 0; border-color: var(--border-soft); opacity: 1; }

@media (max-width: 991.98px) {
  .nav-user { width: 100%; margin-top: 1rem; }
  .nav-user-btn { width: 100%; justify-content: center; padding: 0.4rem 1rem; }
  .nav-user .nav-user-menu { position: static; width: 100%; margin-top: 0.5rem !important; }
}

/* =================== ACCOUNT SETTINGS PAGE =================== */
.account-card { padding: 2rem 2.25rem; }
.account-card [hidden] { display: none !important; }
.account-title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); text-align: center; margin-bottom: 0.5rem; }
.account-card .auth-subtext { text-align: center; margin-bottom: 1.5rem; }
.auth-alert.auth-alert-success {
  background: #e6f3ee;
  border-color: #8cc3b3;
  color: #14503f;
}

/* The message line keeps its place whether or not there is a message, so showing / clearing it never moves the
   page (it used to pop in and out, pushing the picture and the form down and up). */
.account-card #accountAlert { box-sizing: border-box; min-height: 3.1rem; display: block !important; }
.account-card #accountAlert[hidden] { visibility: hidden; }

.account-avatar-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.account-avatar {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.9rem;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.account-avatar-actions .btn { width: auto; padding: 0.55rem 1.2rem; font-size: 0.8rem; }
.account-hint { flex-basis: 100%; margin: 0; color: var(--text-muted); font-size: 0.84rem; }

@media (max-width: 575.98px) {
  .account-card { padding: 1.5rem 1.25rem; }
  .account-avatar-block { flex-direction: column; text-align: center; }
  .account-avatar-actions { justify-content: center; }
}

/* =================== ACCOUNT: EMAIL CHANGE, ADDRESSES =================== */
.auth-divider[hidden], .auth-social-row[hidden], .auth-social-btn[hidden] { display: none; }

.account-email-row { display: flex; gap: 0.6rem; align-items: center; }
.account-email-row .auth-input { flex: 1; min-width: 0; }
.account-email-row .btn { width: auto; padding: 0.7rem 1.1rem; font-size: 0.8rem; }
.email-change-panel {
  margin-top: 0.9rem;
  padding: 1rem;
  background: var(--dark-color-deep);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.email-change-panel .auth-input { margin-bottom: 0.7rem; }
.email-change-panel .auth-password-field { margin-bottom: 0.2rem; }
.email-change-panel .account-hint { margin-bottom: 0.7rem; }
.email-change-panel .account-hint strong { color: var(--light-color); font-weight: 600; word-break: break-all; }
.email-change-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.8rem; }
.email-change-actions .btn { width: auto; padding: 0.6rem 1.3rem; font-size: 0.82rem; }

.account-section { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--border-soft); }
.account-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.account-section-title { font-size: 1.15rem; margin: 0; }
.account-section-head .btn { width: auto; padding: 0.55rem 1.1rem; font-size: 0.8rem; }

.address-list { display: grid; gap: 0.8rem; margin: 1rem 0; }
.address-card { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); border-radius: 10px; }
.address-card-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; color: var(--light-color); }
.address-default {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.15rem 0.55rem; border-radius: 20px;
  color: var(--primary-color-light); border: 1px solid var(--border-soft); font-weight: 600;
}
.address-card p { margin: 0 0 0.6rem; font-size: 0.96rem; color: var(--text-muted); line-height: 1.6; }
.address-card-actions { display: flex; gap: 1.1rem; }
.address-form { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.address-form-title { font-size: 1.05rem; margin-bottom: 1rem; }
.address-form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.address-form-actions .btn { width: auto; padding: 0.65rem 1.5rem; font-size: 0.82rem; }

/* =================== MY ORDERS =================== */
.orders-list { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.orders-status { text-align: center; color: var(--text-muted); margin: 1.5rem 0; }
.orders-empty { text-align: center; padding: 2rem 0 1rem; color: var(--text-muted); }
.orders-empty i { display: block; font-size: 2.4rem; color: var(--primary-color); margin-bottom: 0.8rem; }
.orders-empty .btn { width: auto; }

.order-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.order-card.is-open { border-color: rgba(140, 98, 18, 0.5); }
.order-card-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; background: transparent; border: none; color: var(--text-color); text-align: left;
}
.order-card-main { display: flex; flex-direction: column; gap: 0.15rem; }
.order-card-main strong { color: var(--light-color); font-weight: 500; letter-spacing: 0.03em; }
.order-date { font-size: 0.84rem; color: var(--text-muted); }
.order-card-side { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
.order-total { color: var(--light-color); font-family: var(--font-display); font-weight: 600; }
.order-card-head .bi-chevron-down { color: var(--primary-color); transition: transform var(--transition-base); }
.order-card.is-open .bi-chevron-down { transform: rotate(180deg); }
.order-status {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem; border-radius: 20px; border: 1px solid var(--border-soft); white-space: nowrap;
}
.order-status-pending { color: var(--primary-color-light); }
.order-status-confirmed, .order-status-shipped { color: #1d4f91; border-color: rgba(29, 79, 145, 0.45); background: #eef4fc; }
.order-status-delivered { color: #176b3e; border-color: rgba(23, 107, 62, 0.45); background: #eaf6ef; }
.order-status-cancelled { color: #a32233; border-color: rgba(163, 34, 51, 0.4); background: #fdeef0; }
.order-status-pending { background: #fbf3df; }
.order-card-body { padding: 0 1.15rem 1.1rem; border-top: 1px solid var(--border-soft); }
.order-items { width: 100%; margin: 0.9rem 0; font-size: 0.96rem; border-collapse: collapse; }
.order-items th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 500; padding: 0.4rem 0; }
.order-items td { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.order-items small { color: var(--text-muted); }
.order-items-total td { color: var(--light-color); font-weight: 600; }
.order-address { font-size: 0.94rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 0.6rem; }
.order-address strong { color: var(--light-color); font-weight: 500; }

/* =================== INFORMATION PAGES (privacy / terms / contact) =================== */
.page-body { margin-top: 1.5rem; color: var(--text-color); font-size: 1.02rem; line-height: 1.8; }
.page-body p { margin-bottom: 1rem; }
.page-body ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.page-body li { margin-bottom: 0.4rem; }
.page-heading { font-size: 1.25rem; color: var(--light-color); margin: 1.9rem 0 0.7rem; }
.contact-details { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.7rem; }
.contact-details li { display: flex; align-items: center; gap: 0.75rem; }
.contact-details i { color: var(--primary-color); font-size: 1.1rem; width: 1.4rem; text-align: center; }
.contact-details a { color: var(--light-color); }
.contact-details a:hover { color: var(--accent-color); }
.contact-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); }
.contact-form textarea.auth-input { resize: vertical; min-height: 120px; }
.contact-website { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Category cards show a type's first product photo inside a fixed frame. */
.category-card-image img { width: 100%; max-width: 220px; height: 190px; object-fit: contain; }

/* =================== CART =================== */
.nav-cart-btn {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: var(--surface);
  color: var(--light-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--transition-base);
}
.nav-cart-btn:hover { background: var(--light-color); color: #ffffff; }
.nav-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent-color);
  color: var(--on-accent);
  font-size: 0.78rem;
  line-height: 18px;
  text-align: center;
}

.tcp-cart {
  background: var(--dark-color);
  color: var(--text-color);
  border-left: 1px solid var(--line);
  width: min(430px, 100vw);
}
.tcp-cart .offcanvas-header { border-bottom: 1px solid var(--border-soft); }
.tcp-cart .offcanvas-title { font-family: var(--font-display); color: var(--light-color); }

.cart-msg {
  background: #fdeef0;
  border: 1px solid #e3a3ad;
  border-radius: 8px;
  color: #7a1f2d;
  font-size: 0.92rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.cart-empty { text-align: center; padding: 3rem 0; color: var(--text-muted); }
.cart-empty i { display: block; font-size: 2.2rem; color: var(--primary-color); margin-bottom: 0.8rem; }

.cart-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-item img {
  width: 56px;
  height: 72px;
  flex: none;
  object-fit: contain;
  padding: 4px;
  background: var(--dark-color-deep);
  border-radius: 8px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 1rem; margin: 0 0 0.15rem; }
.cart-item-size { font-size: 0.84rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.95rem; color: var(--light-color); font-weight: 600; margin: 0.3rem 0 0.5rem; }
.cart-item-price s { color: var(--text-muted); font-size: 0.84rem; margin-left: 0.3rem; }
.cart-item-warn { display: block; color: var(--accent-color); font-size: 0.82rem; margin-bottom: 0.4rem; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-item-side strong { font-size: 0.98rem; color: var(--light-color); font-weight: 500; }
.cart-remove { background: none; border: none; color: var(--text-muted); font-size: 1rem; }
.cart-remove:hover { color: var(--accent-color); }

.cart-summary { padding: 1.2rem 0; }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 0.98rem; margin-bottom: 0.5rem; }
.cart-summary .cart-summary-total {
  color: var(--light-color);
  font-family: var(--font-display);
  font-size: 1.15rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.8rem;
  margin-top: 0.6rem;
}

.cart-checkout-title { font-size: 1.15rem; margin-bottom: 1.25rem; }
.cart-payment-note { color: var(--text-muted); font-size: 0.92rem; margin: 0.5rem 0 1rem; }
.cart-payment-note i { color: var(--primary-color); margin-right: 0.3rem; }
.cart-back { display: block; margin: 1rem auto 0; }

.cart-confirm { text-align: center; padding: 2rem 0; }
.cart-confirm-icon { font-size: 3rem; color: var(--primary-color); line-height: 1; margin-bottom: 0.8rem; }
.cart-confirm h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.cart-confirm-number { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; color: var(--light-color); }
.cart-confirm-note { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 1.5rem; }

@media (max-width: 991.98px) {
  .nav-cart-btn { display: flex; margin: 1rem auto 0; }
}

/* =================== INSTAGRAM FEED =================== */
.instagram-feed {
  padding: 6rem 0;
  background: var(--dark-color-deep);
  border-top: 1px solid var(--border-soft);
}

.instagram-handle {
  color: var(--light-color);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.instagram-handle:hover { color: var(--accent-color); }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.instagram-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 35%, #ffffff, var(--dark-color-deep) 85%);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-tile img {
  max-width: 55%;
  max-height: 55%;
  transition: transform var(--transition-base);
}
.instagram-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 26, 22, 0.55);
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.instagram-tile:hover .instagram-overlay { opacity: 1; }
.instagram-tile:hover img { transform: scale(1.08); }

@media (max-width: 767.98px) {
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .finder-options { grid-template-columns: 1fr; }
  .finder-card { padding: 2rem 1.25rem; }
}

/* =================== SIGN IN / SIGN UP =================== */
/* signin.html reuses .hero verbatim for its background/nav-clearance/
   glow — the auth card is just centered content inside it, so this
   section only needs to style the card itself. */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem 2.25rem;
  box-shadow: var(--shadow-lift);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-heading {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--light-color);
  margin-bottom: 0.75rem;
}

.auth-subtext {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

.auth-tabs {
  display: flex;
  background: var(--dark-color-deep);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 1.75rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 26px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
}
.auth-tab.active {
  background: var(--light-color);
  color: #ffffff;
}

.auth-alert {
  background: #fbf3df;
  border: 1px solid #e2c98a;
  color: #5c4108;
  font-size: 0.98rem;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
}

.auth-field { margin-bottom: 1.2rem; }
.auth-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.auth-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(80, 58, 20, 0.3);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--light-color);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-base);
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(140, 98, 18, 0.16);
}

.auth-password-field { position: relative; }
.auth-password-field .auth-input { padding-right: 2.8rem; }
.auth-password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}
.auth-password-toggle:hover { color: var(--primary-color); }

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.auth-checkbox input {
  accent-color: var(--primary-color);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.auth-terms {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.auth-terms input { margin-top: 0.2rem; }

.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
}
.auth-link-btn:hover { color: var(--accent-color); }

.auth-switch-text {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-note {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ---- Social sign-up (Google / Facebook) ----
   Design-only for now — see js/auth.js: both buttons just show the same
   "coming soon" preview message until real OAuth is wired up. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

.auth-social-row {
  display: flex;
  gap: 0.75rem;
}

.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface);
  color: var(--light-color);
  border: 1px solid rgba(80, 58, 20, 0.3);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}
.auth-social-btn i {
  font-size: 1.05rem;
  color: var(--primary-color);
}
.auth-social-btn:hover {
  border-color: var(--light-color);
  background: var(--dark-color-deep);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .auth-card { padding: 1.25rem 1.5rem; }
  .auth-options { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* =================== FOOTER =================== */
.site-footer {
  background: var(--dark-color-deep);
  padding: 5.5rem 0 2rem;
  border-top: 1px solid var(--border-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all var(--transition-base);
}
.footer-socials a:hover {
  background: var(--light-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-divider {
  border-color: var(--border-soft);
  margin: 2.5rem 0 1.5rem;
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Simplified single-row footer (index.html + signin.html) ---- */
.footer-simple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-simple .footer-brand { margin-bottom: 0; }

.footer-links-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: 0;
  margin: 0;
}
.footer-links-inline a {
  color: var(--text-color);
  font-size: 0.95rem;
}
.footer-links-inline a:hover { color: var(--accent-color); }

/* =================== BACK TO TOP =================== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 999;
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--light-color);
  color: #ffffff;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--surface);
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
  .nav-row-bottom { border-top: none; padding: 0; }
  .nav-search-mobile { margin-bottom: 1.25rem; }
  .navbar-nav .nav-link { padding: 0.7rem 0 !important; }
  .navbar-nav li:not(:last-child) .nav-link {
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-explore-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
  .hero-image { max-width: 300px; }
}

@media (max-width: 767.98px) {
  .hero { text-align: left; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .signature-collection, .brand-statement, .promo-cta, .featured-products, .scent-finder, .instagram-feed {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 575.98px) {
  .btn-primary-cta, .btn-secondary-cta { width: 100%; justify-content: center; }
}

/* =====================================================
   Discount code (cart), product ratings & reviews, wishlist page
   ===================================================== */
.cart-discount { display: flex; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.cart-discount .auth-input { flex: 1; min-width: 0; text-transform: uppercase; }
.cart-discount .btn { width: auto; padding: 0.55rem 1.1rem; }
.cart-discount-applied {
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border: 1px dashed var(--primary-color);
  border-radius: 8px;
  font-size: 0.96rem;
  color: var(--light-color);
}
.cart-discount-applied i { color: var(--primary-color); }
.cart-discount-msg { color: var(--accent-color-light); font-size: 0.9rem; margin: 0.5rem 0 0; }
.cart-summary .cart-summary-discount { color: var(--primary-color-light); }

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.product-rating i { color: var(--primary-color); }
.product-rating strong { color: var(--light-color); font-weight: 600; }
.product-rating:hover span { color: var(--accent-color); text-decoration: underline; }

.tcp-review-modal .modal-content {
  background: var(--surface);
  color: var(--text-color);
  border: 1px solid var(--border-soft);
}
.tcp-review-modal .modal-header { border-bottom: 1px solid var(--border-soft); }
.tcp-review-modal .modal-title { font-family: var(--font-display); color: var(--light-color); }
.review-summary { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; font-size: 0.98rem; }
.review-average { font-family: var(--font-display); font-size: 2rem; color: var(--light-color); line-height: 1; }
.review-stars i { color: var(--primary-color); font-size: 0.92rem; margin-right: 1px; }
.review { padding: 1rem 0; border-top: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.3rem; color: var(--light-color); }
.review-text { margin: 0.2rem 0 0.4rem; white-space: pre-line; overflow-wrap: anywhere; }
.review-by { margin: 0; font-size: 0.84rem; color: var(--text-muted); }
.review-verified i { color: var(--primary-color); }
.review-mine .review-by { color: var(--primary-color-light); font-weight: 600; }
.review-note { color: var(--text-muted); font-size: 0.96rem; margin: 1rem 0 0; }
.review-form { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border-soft); }
.review-form-title { font-size: 1.1rem; margin-bottom: 0.8rem; }
.review-star-picker { display: flex; gap: 0.2rem; margin-bottom: 1rem; }
.review-star-btn { background: none; border: none; padding: 0.1rem; font-size: 1.6rem; color: var(--primary-color); line-height: 1; }
.review-star-btn:hover { color: var(--accent-color); }
.review-alert, .review-hidden-note { color: var(--accent-color); font-size: 0.92rem; margin-bottom: 0.8rem; }
.review-form .btn { width: auto; }

.order-review-link { margin-left: 0.5rem; font-size: 0.84rem; color: var(--primary-color); white-space: nowrap; }

.wish-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.wish-image img { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; background: var(--dark-color-deep); }
.wish-info h3 { font-size: 1.1rem; margin: 0 0 0.25rem; }
.wish-info h3 a { color: var(--light-color); text-decoration: none; }
.wish-info h3 a:hover { color: var(--accent-color); }
.wish-meta { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.wish-rating i { color: var(--primary-color); }
.wish-size { max-width: 260px; padding: 0.4rem 0.7rem; font-size: 0.92rem; }
.wish-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; }
.wish-actions .btn { white-space: nowrap; }
.wish-remove { text-align: center; }
@media (max-width: 575.98px) {
  .wish-row { grid-template-columns: 72px 1fr; }
  .wish-image img { width: 72px; height: 72px; }
  .wish-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =====================================================
   Animations — each can be switched off in Admin → Animations.
   js/animations.js puts html.no-anim-<name> on the page for every
   animation that is off (all of them when animations are off, or the
   visitor's device asks for reduced motion).
   ===================================================== */

/* -- switches for the animations that already existed -- */
html.no-anim-scrollReveal .reveal { opacity: 1; transform: none; transition: none; }
html.no-anim-heroFloat .hero-image,
html.no-anim-heroFloat .scroll-cue { animation: none; }
html.no-anim-cardHover .product-card:hover,
html.no-anim-cardHover .category-card:hover { transform: none; }
html.no-anim-cardHover .product-card:hover .product-card-media img,
html.no-anim-cardHover .category-card:hover .category-card-image img { transform: none; }

/* -- fly to cart -- */
.fx-fly {
  position: fixed;
  z-index: 2000;
  object-fit: contain;
  pointer-events: none;
  border-radius: 10px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

/* -- cart icon bounce + count pop -- */
@keyframes fxBump {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.28) rotate(-8deg); }
  60% { transform: scale(0.92) rotate(5deg); }
}
@keyframes fxPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.75); }
  100% { transform: scale(1); }
}
.nav-cart-btn.fx-bump { animation: fxBump 0.65s ease; }
.nav-cart-count.fx-pop { animation: fxPop 0.55s ease; }

/* -- Add to Cart button pulse -- */
@keyframes fxPulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 98, 18, 0.65); transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { box-shadow: 0 0 0 16px rgba(140, 98, 18, 0); transform: scale(1); }
}
.btn.fx-added { animation: fxPulse 0.7s ease-out; }
html.no-anim-addedPulse .btn.fx-added { animation: none; }

/* -- wishlist heart -- */
@keyframes fxHeartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); }
  55% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.fx-heart-pop { animation: fxHeartPop 0.55s ease; }
html.no-anim-heartPop .fx-heart-pop { animation: none; }

/* -- cart item sliding away -- */
.cart-item { transition: opacity 0.25s ease, transform 0.25s ease; }
.cart-item.fx-leaving { opacity: 0; transform: translateX(36px); }
html.no-anim-cartItemExit .cart-item { transition: none; }

/* -- order placed: the tick animates in, confetti falls -- */
@keyframes fxCheckIn {
  0% { transform: scale(0.2) rotate(-25deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes fxRing {
  0% { box-shadow: 0 0 0 0 rgba(140, 98, 18, 0.6); }
  100% { box-shadow: 0 0 0 28px rgba(140, 98, 18, 0); }
}
.cart-confirm-icon { display: inline-block; border-radius: 50%; animation: fxCheckIn 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) both, fxRing 1.2s ease-out 0.25s 1; }
html.no-anim-orderCelebration .cart-confirm-icon { animation: none; }
.fx-confetti { position: fixed; inset: 0; z-index: 2100; pointer-events: none; overflow: hidden; }
.fx-confetti span { position: absolute; top: 0; border-radius: 2px; }

/* =====================================================
   Mobile menu animation (switch: Admin → Animations → "Mobile menu")
   The menu button turns into a cross, and the items slide in one after another each time it opens.
   js/animations.js adds .is-opening to the menu on every open.
   ===================================================== */
@keyframes menuItemIn {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}
@keyframes menuPanelIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

html:not(.no-anim-mobileMenu) .toggler-bar { transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease; transform-origin: center; }
html:not(.no-anim-mobileMenu) .navbar-toggler[aria-expanded='true'] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html:not(.no-anim-mobileMenu) .navbar-toggler[aria-expanded='true'] .toggler-bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
html:not(.no-anim-mobileMenu) .navbar-toggler[aria-expanded='true'] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  html:not(.no-anim-mobileMenu) #navMain.is-opening { animation: menuPanelIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-search-mobile,
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > li,
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-explore-btn,
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-user,
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-cart-btn {
    animation: menuItemIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-search-mobile { animation-delay: 0.08s; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(1) { animation-delay: 200ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(2) { animation-delay: 270ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(3) { animation-delay: 340ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(4) { animation-delay: 410ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(5) { animation-delay: 480ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(6) { animation-delay: 550ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(7) { animation-delay: 620ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-links-center > :nth-child(8) { animation-delay: 690ms; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-explore-btn,
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-user { animation-delay: 0.36s; }
  html:not(.no-anim-mobileMenu) #navMain.is-opening .nav-cart-btn { animation-delay: 0.44s; }
}

/* Dropdown lists on the website (checkout address, wishlist size…): the open list is drawn by the browser,
   white by default, which hid the light text. Dark list, readable text, gold for the chosen item. */
select.auth-input { color-scheme: light; }
select.auth-input option,
select.auth-input optgroup {
  background-color: #ffffff;
  color: #1e1a16;
}
select.auth-input option:checked { background-color: #f2ece0; color: #1e1a16; }
select.auth-input option:disabled { color: #9a9186; }

/* Admin Panel shortcut in the profile menu (admins only) */
.nav-user-menu .nav-admin-link { color: var(--primary-color-light); font-weight: 600; }
.nav-user-menu .nav-admin-link i { color: var(--primary-color); }

/* Switching the product list (Signature Blends / Impressions / Attars, search): the old products dim while the new
   ones load, then the new ones rise in one after another. Plain class names here; products.js only adds them
   when the "Product list transition" animation is on. */
#featuredProductsGrid .product-col { transition: opacity 0.2s ease, transform 0.2s ease; }
#featuredProductsGrid.is-switching .product-col { opacity: 0.25; transform: translateY(6px); pointer-events: none; }
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
#featuredProductsGrid .product-col.card-enter { animation: cardEnter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* =====================================================
   Sign-in pop-up (js/auth-modal.js): the sign-in card over the current page
   ===================================================== */
.tcp-auth-modal .modal-dialog { max-width: 500px; margin-left: auto; margin-right: auto; }
.tcp-auth-modal .modal-content { background: transparent; border: none; position: relative; }
.tcp-auth-modal .auth-card-modal { margin: 0; background: var(--surface); }
.tcp-auth-modal .auth-modal-close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 3; opacity: 0.7; }
.tcp-auth-modal .auth-modal-close:hover { opacity: 1; }
.tcp-auth-modal.fade .modal-dialog { transform: translateY(24px) scale(0.97); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tcp-auth-modal.show .modal-dialog { transform: none; }
html.anim-off .tcp-auth-modal.fade .modal-dialog { transform: none; transition: none; }
.tcp-auth-modal .auth-card-header { padding-right: 1.5rem; }

/* =====================================================
   Search suggestions (js/search.js): the list that drops down while typing
   ===================================================== */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1060;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--shadow-lift);
  animation: searchSuggestIn 0.18s ease-out;
}
.search-suggest[hidden] { display: none; }
@keyframes searchSuggestIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.anim-off .search-suggest { animation: none; }

.search-suggest-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  text-align: left;
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-suggest-row:hover,
.search-suggest-row.is-active { background: var(--dark-color-deep); }
.search-suggest-row img {
  flex: none;
  width: 44px;
  height: 52px;
  object-fit: contain;
  padding: 3px;
  border-radius: 6px;
  background: var(--dark-color-deep);
  border: 1px solid var(--line);
}
.search-suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.search-suggest-text strong { color: var(--light-color); font-weight: 500; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest-text strong mark { background: #f6e3b0; color: var(--light-color); padding: 0 1px; border-radius: 2px; }
.search-suggest-text small { color: var(--text-muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest-price { flex: none; font-size: 0.98rem; font-weight: 600; color: var(--light-color); white-space: nowrap; }
.search-suggest-price.is-sold-out { color: var(--text-muted); }
.search-suggest-all {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 0.6rem;
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  color: var(--accent-color);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}
.search-suggest-all:hover { text-decoration: underline; }
.search-suggest-empty { padding: 0.9rem 0.8rem; color: var(--text-muted); font-size: 0.96rem; }

/* The search box (and its suggestion list) must sit above the menu items that follow it. */
.nav-search { z-index: 30; }

/* =====================================================
   SHOP PAGE — filter sidebar on the left, products on the right (js/shop.js)
   Every group has its own colour (--g), every option chip its own (--chip).
   ===================================================== */
.shop-hero {
  padding: var(--page-top) 0 1.5rem;
  background:
    radial-gradient(55% 90% at 12% 0%, rgba(18, 72, 63, 0.1), transparent 70%),
    radial-gradient(50% 90% at 92% 10%, rgba(176, 125, 30, 0.16), transparent 70%),
    var(--dark-color-deep);
  border-bottom: 1px solid var(--line);
}
.shop-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.shop { padding: 2.5rem 0 5rem; }

/* ---- toolbar above the products ---- */
.shop-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-count { margin: 0; color: var(--text-muted); font-size: 1rem; flex: 1; }
.shop-count strong { color: var(--light-color); font-weight: 700; font-size: 1.1rem; }
.shop-sort { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.shop-sort .auth-input { width: auto; padding: 0.45rem 0.9rem; }
.shop-filter-toggle { position: relative; width: auto; padding: 0.55rem 1.1rem; }
.shop-filter-badge { margin-left: 0.4rem; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent-color); color: var(--on-accent); font-size: 0.82rem; line-height: 20px; text-align: center; display: inline-block; }
.shop-filter-badge[hidden] { display: none; }

/* ---- the "what is filtered" chips ---- */
.shop-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.shop-chips[hidden] { display: none; }
.shop-active-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.75rem; border-radius: 30px;
  background: color-mix(in srgb, var(--chip) 16%, transparent);
  border: 1px solid var(--chip); color: var(--light-color); font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.shop-active-chip i { font-size: 0.72rem; opacity: 0.8; }
.shop-active-chip:hover { background: color-mix(in srgb, var(--chip) 30%, transparent); transform: translateY(-1px); }
.shop-active-clear { background: none; border: none; color: var(--accent-color); font-size: 0.92rem; padding: 0.3rem 0.5rem; text-decoration: underline; }

/* ---- the sidebar ---- */
.shop-sidebar { background: transparent; border: none; }
@media (min-width: 992px) {
  .shop-sidebar { position: sticky; top: calc(var(--announcement-height, 0px) + var(--nav-height) + 1rem); max-height: calc(100vh - var(--announcement-height, 0px) - var(--nav-height) - 2rem); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding-right: 0; scroll-behavior: smooth; }
  .shop-sidebar::-webkit-scrollbar { display: none; }   /* no scroll bar: two small arrows scroll the list instead (js/shop.js) */
  .shop-sidebar .offcanvas-body { padding: 0; overflow: visible; }
}
@media (max-width: 991.98px) {
  .shop-sidebar { background: var(--dark-color); border-right: 1px solid var(--line); width: min(360px, 92vw); color: var(--text-color); }
  .shop-sidebar .offcanvas-header { border-bottom: 1px solid var(--border-soft); }
  .shop-sidebar .offcanvas-title { font-family: var(--font-display); color: var(--light-color); }
}
.shop-show-results { margin-top: 1rem; }

.shop-filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #2fa27a, #d9a23a, #d9608f, #8e6bd6, #4d86e8) 1;
  padding: 0.4rem 1.1rem 1rem;
  box-shadow: var(--shadow-card);
}
.shop-filters-loading { color: var(--text-muted); padding: 1.2rem 0; margin: 0; font-size: 0.98rem; }
.shop-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0 0.7rem; }
.shop-filters-head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 0.55rem; }
.shop-filters-head h2 i { color: var(--primary-color); }
.shop-clear { background: none; border: 1px solid var(--accent-color); color: var(--accent-color); border-radius: 20px; font-size: 0.88rem; padding: 0.25rem 0.8rem; }
.shop-clear[hidden] { display: none; }
.shop-clear:hover { background: var(--accent-color); color: var(--on-accent); }

/* a group: coloured icon + title, collapsible */
.shop-group { border-top: 1px solid var(--line); padding: 0.15rem 0; }
.shop-group-head {
  width: 100%; display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0; background: none; border: none;
  color: var(--light-color); font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: left;
}
.shop-group-icon {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.98rem;
  color: var(--g); background: color-mix(in srgb, var(--g) 16%, transparent); border: 1px solid color-mix(in srgb, var(--g) 45%, transparent);
}
.shop-group-title { flex: 1; }
.shop-group-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--g); color: #ffffff; font-size: 0.82rem; font-weight: 600; line-height: 20px; text-align: center; }
.shop-group-count[hidden] { display: none; }
.shop-group-chev { font-size: 0.82rem; color: var(--text-muted); transition: transform 0.25s ease; }
.shop-group:not(.is-open) .shop-group-chev { transform: rotate(-90deg); }
.shop-group-body { padding: 0 0 0.9rem; }
.shop-group:not(.is-open) .shop-group-body { display: none; }

/* option chips */
.shop-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.38rem 0.8rem; border-radius: 30px; font-size: 0.9rem;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--chip) 60%, #ffffff); color: var(--text-color);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.shop-chip i { color: var(--chip); font-size: 0.98rem; }
.shop-chip small { color: var(--text-muted); font-size: 0.78rem; }
.shop-chip-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chip); }
.shop-chip:hover { background: color-mix(in srgb, var(--chip) 16%, transparent); transform: translateY(-1px); }
.shop-chip.is-on { background: var(--chip); border-color: var(--chip); color: #ffffff; font-weight: 600; box-shadow: 0 6px 16px -8px var(--chip); }
.shop-chip.is-on i, .shop-chip.is-on small { color: #ffffff; }
.shop-chip.is-on .shop-chip-dot { background: #ffffff; box-shadow: none; }
.shop-chip-removable i { font-size: 0.72rem; }

/* options that would show nothing with the current choices */
.shop-chip.is-empty { opacity: 0.4; pointer-events: none; }
.shop-combo-item.is-empty { opacity: 0.4; pointer-events: none; }
.shop-switch small { transition: opacity 0.2s ease; }

/* rating */
.shop-stars { display: inline-flex; gap: 1px; }
.shop-stars i { font-size: 0.84rem; }
.shop-rating-hint { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--text-muted); }
.shop-chip.is-on .shop-stars i { color: #ffffff; }

/* in stock switch */
.shop-switch { display: flex; align-items: center; gap: 0.7rem; margin: 0; cursor: pointer; color: var(--text-color); font-size: 0.98rem; }
.shop-switch input { position: absolute; opacity: 0; pointer-events: none; }
.shop-switch-track { flex: none; width: 42px; height: 24px; border-radius: 12px; background: #d9d1c1; position: relative; transition: background 0.25s ease; }
.shop-switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s ease; }
.shop-switch input:checked ~ .shop-switch-track { background: #1f8f69; }
.shop-switch input:checked ~ .shop-switch-track .shop-switch-thumb { transform: translateX(18px); background: #fff; }
.shop-switch input:focus-visible ~ .shop-switch-track { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.shop-switch small { margin-left: auto; color: var(--text-muted); }

/* notes: searchable dropdown */
.shop-notes-chosen { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.shop-notes-chosen:not(:empty) { margin-bottom: 0.7rem; }
.shop-combo { position: relative; }
.shop-combo > i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: #b87d12; font-size: 0.92rem; pointer-events: none; }
.shop-combo-input {
  width: 100%; padding: 0.6rem 0.9rem 0.6rem 2.3rem; border-radius: 10px; font-size: 0.92rem;
  background: var(--surface); border: 1px solid rgba(80, 58, 20, 0.3); color: var(--light-color);
}
.shop-combo-input::placeholder { color: var(--text-muted); }
.shop-combo-input:focus { outline: none; border-color: #b87d12; box-shadow: 0 0 0 4px rgba(184, 125, 18, 0.18); }
.shop-combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 240px; overflow-y: auto; padding: 0.35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift);
}
.shop-combo-list[hidden] { display: none; }
.shop-combo-item { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.65rem; border: none; border-radius: 7px; background: transparent; color: var(--text-color); font-size: 0.92rem; text-align: left; }
.shop-combo-item small { color: var(--text-muted); }
.shop-combo-item:hover, .shop-combo-item.is-active { background: var(--dark-color-deep); color: var(--light-color); }
.shop-combo-empty { margin: 0; padding: 0.6rem 0.65rem; color: var(--text-muted); font-size: 0.9rem; }

/* price slider: two handles on one track */
.shop-price-values { display: flex; justify-content: space-between; margin-bottom: 0.9rem; font-size: 0.92rem; color: var(--light-color); }
.shop-price-values span { padding: 0.2rem 0.6rem; border-radius: 8px; background: #fbf3df; border: 1px solid #e2c98a; font-weight: 600; }
.shop-range { position: relative; height: 24px; margin: 0 6px; }
.shop-range::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: #d9d1c1; }
.shop-range-fill { position: absolute; top: 10px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #d9a23a, #d9608f); }
.shop-range input[type="range"] { position: absolute; left: -6px; width: calc(100% + 12px); top: 0; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.shop-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
  background: #b87d12; border: 3px solid #ffffff; box-shadow: 0 0 0 1px #b87d12, 0 4px 10px rgba(60, 40, 10, 0.4);
}
.shop-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; cursor: pointer; background: #b87d12; border: 3px solid #ffffff; box-shadow: 0 0 0 1px #b87d12;
}
.shop-range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.shop-range input[type="range"]::-moz-range-track { background: none; }

html.anim-off .shop-chip, html.anim-off .shop-active-chip, html.anim-off .shop-switch-track, html.anim-off .shop-switch-thumb { transition: none; }

@media (max-width: 991.98px) {
  /* the drawer already says "Filters" in its own header */
  .shop-filters-head h2 { display: none; }
  .shop-filters-head { justify-content: flex-end; padding-top: 0.6rem; }
}

/* Cancelling your own order (orders page) */
.order-cancel-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.order-cancel-row .btn { width: auto; padding: 0.5rem 1.1rem; }
.order-cancel-row small { color: var(--text-muted); }
.order-cancel-note { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--text-muted); }
.order-cancel-note i { color: var(--primary-color); margin-right: 0.3rem; }
.order-cancel-note a { color: var(--accent-color); text-decoration: underline; }

/* =====================================================
   PRODUCT PAGE (product.html, js/product.js)
   ===================================================== */
.pdp { padding: var(--page-top) 0 5rem; }

.pdp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem; font-size: 0.92rem; color: var(--text-muted); }
.pdp-crumbs a { color: var(--text-color); }
.pdp-crumbs a:hover { color: var(--accent-color); }
.pdp-crumbs i { font-size: 0.65rem; opacity: 0.7; }
.pdp-crumbs span { color: var(--light-color); font-weight: 600; }

.pdp-top { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .pdp-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; } }

/* ---- photos ---- */
.pdp-gallery { min-width: 0; }
/* On a wide screen the 4:5 gallery never grows taller than the window (the thumbnails stay in view). */
@media (min-width: 992px) { .pdp-gallery { position: sticky; top: calc(var(--announcement-height, 0px) + var(--nav-height) + 1rem); max-width: max(340px, calc((100vh - var(--announcement-height, 0px) - var(--nav-height) - 9rem) * 0.8)); margin-left: auto; margin-right: auto; width: 100%; } }
.pdp-stage { position: relative; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #ffffff, var(--dark-color-deep) 90%); border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; touch-action: pan-y; }
.pdp-zoom { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; aspect-ratio: 4 / 5; }
.pdp-zoom img { width: 100%; height: 100%; object-fit: contain; padding: 0; transition: transform 0.4s ease; user-select: none; -webkit-user-drag: none; }
.pdp-zoom:hover img { transform: scale(1.04); }
.pdp-zoom-hint { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 30px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); font-size: 0.82rem; color: var(--text-color); pointer-events: none; }
.pdp-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.95); color: var(--light-color); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); transition: background 0.2s ease, color 0.2s ease; }
.pdp-arrow:hover { background: var(--light-color); color: #fff; }
.pdp-prev { left: 0.8rem; }
.pdp-next { right: 0.8rem; }
.pdp-counter { position: absolute; right: 1rem; bottom: 1rem; padding: 0.3rem 0.75rem; border-radius: 30px; background: rgba(30, 26, 22, 0.78); color: #fff; font-size: 0.82rem; font-weight: 500; }
.pdp-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; overflow-x: auto; padding: 0.3rem 0.2rem 0.5rem; scrollbar-width: thin; }
.pdp-thumb { flex: none; width: 64px; height: 80px; padding: 3px; border-radius: 12px; border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow-card); opacity: 0.75; transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.pdp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pdp-thumb.is-on { opacity: 1; border-color: var(--light-color); }

/* ---- the text next to them ---- */
.pdp-info { min-width: 0; }
.pdp-kicker { margin: 0 0 0.4rem; color: var(--primary-color); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; }
.pdp-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 0.9rem; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 1.3rem; }
.pdp-rating { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-color); font-size: 0.95rem; }
.pdp-rating:hover { color: var(--accent-color); }
.pdp-stars { color: #c98a0e; letter-spacing: 1px; }
.pdp-tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.8rem; border-radius: 30px; border: 1px solid var(--border-soft); background: var(--surface); font-size: 0.85rem; color: var(--text-color); }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.7rem 1rem; margin-bottom: 0.4rem; }
.pdp-now { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--light-color); line-height: 1; }
.pdp-was { font-size: 1.15rem; color: var(--text-muted); text-decoration: line-through; }
.pdp-off { padding: 0.25rem 0.7rem; border-radius: 30px; background: var(--accent-color); color: var(--on-accent); font-size: 0.85rem; font-weight: 600; }
.pdp-stock { margin: 0 0 1.4rem; font-size: 0.95rem; font-weight: 500; }
.pdp-stock.is-in { color: #176b3e; }
.pdp-stock.is-low { color: #b0620d; }
.pdp-stock.is-out { color: var(--accent-color); }
.pdp-block { margin-bottom: 1.4rem; }
.pdp-label { display: block; margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-color); }
.pdp-sizes { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pdp-size { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-width: 96px; padding: 0.65rem 1rem; border-radius: 12px; border: 2px solid var(--border-soft); background: var(--surface); color: var(--light-color); transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.pdp-size strong { font-size: 1.05rem; }
.pdp-size small { color: var(--text-muted); font-size: 0.85rem; }
.pdp-size:hover { border-color: var(--light-color); transform: translateY(-2px); }
.pdp-size.is-on { border-color: var(--light-color); background: var(--light-color); color: #fff; }
.pdp-size.is-on small { color: rgba(255, 255, 255, 0.8); }
.pdp-size.is-out:not(.is-on) { opacity: 0.55; text-decoration: line-through; }
.pdp-buy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.8rem; margin-bottom: 1.5rem; }
.pdp-qty { align-self: stretch; border-radius: 10px; }
.pdp-qty .qty-btn { width: 44px; height: 100%; min-height: 54px; font-size: 1.2rem; }
.pdp-qty .qty-input { width: 52px; height: 100%; min-height: 54px; font-size: 1.05rem; }
.pdp-add { flex: 1 1 220px; min-height: 54px; justify-content: center; font-size: 0.92rem; }
.pdp-add:disabled { opacity: 0.55; cursor: not-allowed; }
.pdp-heart { flex: none; width: 54px; border-radius: 10px; border: 1px solid rgba(80, 58, 20, 0.3); background: var(--surface); color: var(--light-color); font-size: 1.3rem; transition: all 0.2s ease; }
.pdp-heart:hover { border-color: var(--accent-color); color: var(--accent-color); }
.pdp-heart.is-active { border-color: var(--accent-color); color: var(--accent-color); background: #fff1f3; }
.pdp-perks { list-style: none; margin: 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; font-size: 0.98rem; }
.pdp-perks i { color: var(--primary-color); margin-right: 0.5rem; font-size: 1.1rem; vertical-align: -2px; }

/* ---- sections under the photos ---- */
.pdp-tabs { display: flex; gap: 0.4rem; margin-top: 3.5rem; border-bottom: 1px solid var(--line); position: sticky; top: calc(var(--announcement-height, 0px) + var(--nav-height)); z-index: 20; background: var(--dark-color); overflow-x: auto; }
.pdp-tabs a { padding: 0.9rem 1.2rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pdp-tabs a:hover { color: var(--light-color); }
.pdp-tabs a.is-on { color: var(--light-color); border-bottom-color: var(--accent-color); }
.pdp-section { padding: 2.6rem 0 0.5rem; scroll-margin-top: 12rem; }
.pdp-section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.2rem; }
.pdp-prose { max-width: 820px; font-size: 1.08rem; line-height: 1.8; color: var(--text-color); }
.pdp-prose p { margin-bottom: 1rem; }
.pdp-prose h2, .pdp-prose h3, .pdp-prose h4 { margin: 1.6rem 0 0.7rem; }
.pdp-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.pdp-prose ul, .pdp-prose ol { padding-left: 1.3rem; margin-bottom: 1rem; }
#reviews .review { padding: 1.1rem 0; }
#reviews .review-form { max-width: 620px; }

.pdp-related { margin-top: 4rem; }
.pdp-related h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.4rem; }
.related-card { display: flex; flex-direction: column; height: 100%; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); overflow: hidden; color: var(--text-color); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); color: var(--text-color); }
.related-media { position: relative; display: block; background: radial-gradient(circle at 50% 35%, #ffffff, var(--dark-color-deep) 85%); aspect-ratio: 4 / 5; overflow: hidden; }
.related-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.related-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 1.1rem 1.2rem; }
.related-body strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--light-color); }
.related-body small { color: var(--text-muted); }
.related-price { margin-top: 0.3rem; font-weight: 600; color: var(--light-color); }
.related-price s { color: var(--text-muted); font-weight: 400; margin-left: 0.3rem; }

/* phones: price + Add to Cart pinned to the bottom */
.pdp-sticky { display: none; }
@media (max-width: 767.98px) {
  .pdp { padding-bottom: 7rem; }
  .pdp-sticky { display: flex; align-items: center; gap: 1rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -14px rgba(60, 40, 10, 0.3); }
  .pdp-sticky[hidden] { display: none; }
  .pdp-sticky-price { display: flex; flex-direction: column; line-height: 1.2; }
  .pdp-sticky-price span { font-size: 0.8rem; color: var(--text-muted); }
  .pdp-sticky-price strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--light-color); }
  .pdp-sticky .pdp-add { flex: 1; min-height: 48px; }
  .back-to-top { bottom: 5.5rem; }
  .pdp-zoom-hint { display: none; }
  .pdp-arrow { width: 38px; height: 38px; }
}

/* ---- the photo viewer (js/lightbox.js) ---- */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; background: rgba(18, 14, 8, 0.96); color: #fff; }
.lb[hidden] { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem; }
.lb-count { font-size: 0.95rem; opacity: 0.85; }
.lb-tools { display: flex; gap: 0.5rem; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn:disabled { opacity: 0.35; cursor: default; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb.is-zoomed .lb-stage { cursor: grab; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #ffffff; border-radius: 6px; user-select: none; -webkit-user-drag: none; transform-origin: center center; transition: transform 0.18s ease, opacity 0.2s ease; will-change: transform; }
.lb-img.is-loading { opacity: 0.25; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; z-index: 2; }
.lb-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.lb-arrow[hidden] { display: none; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-thumbs { display: flex; gap: 0.5rem; justify-content: center; padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom)); overflow-x: auto; }
.lb-thumbs[hidden] { display: none; }
.lb-thumb { flex: none; width: 60px; height: 60px; padding: 3px; border-radius: 8px; border: 2px solid transparent; background: #fff; opacity: 0.55; transition: opacity 0.2s ease, border-color 0.2s ease; }
.lb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lb-thumb:hover { opacity: 0.9; }
.lb-thumb.is-on { opacity: 1; border-color: var(--primary-color); }
@media (max-width: 575.98px) { .lb-arrow { width: 42px; height: 42px; } .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; } }
html.anim-off .lb-img, html.anim-off .pdp-zoom img { transition: none; }

/* product cards: the picture and the name are links to the product page */
.product-card-link { display: block; }
.product-card-body h3 a, .cart-item-info h4 a { color: inherit; }
.product-card-body h3 a:hover, .cart-item-info h4 a:hover { color: var(--accent-color); }
.product-delivery { color: #176b3e; font-weight: 500; }

/* Accords (coloured bars, strongest on top) and notes (top / heart / base) on the product page */
.notes-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .notes-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } }
.accords h3, .notes h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; color: var(--text-color); }
.accord-row { margin-bottom: 0.45rem; }
.accord-bar { display: flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 8px; font-weight: 600; font-size: 1rem; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 1px 2px rgba(60, 40, 10, 0.12); transition: width 0.6s ease; }
.accord-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-layer { margin-bottom: 1.8rem; }
.note-layer h4 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.note-layer h4 small { font-family: var(--font-body); font-weight: 400; font-size: 0.88rem; color: var(--text-muted); }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.1rem 1rem; }
.note-item { width: 84px; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; }
.note-pic { width: 72px; height: 72px; border-radius: 50%; background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 0.25s ease; }
.note-item:hover .note-pic { transform: translateY(-3px) scale(1.05); }
.note-pic img { width: 100%; height: 100%; object-fit: contain; }
.note-initial { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary-color); }
.note-name { font-size: 0.9rem; line-height: 1.25; color: var(--text-color); font-weight: 500; }
html.anim-off .accord-bar, html.anim-off .note-pic { transition: none; }

/* Search boxes inside the filter list (notes with pictures, accords with colour dots) */
.shop-combo-label { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; }
.shop-combo-label img { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.shop-combo-label .shop-chip-dot { flex: none; }
.shop-combo-input { font-size: 0.95rem; }
.shop-switch .bi-lightning-charge-fill { color: #d9a23a; }

/* Scent profile: how long it lasts, the filter groups, and the customers' votes */
.pdp-tag-lasts { border-color: rgba(176, 98, 13, 0.4); background: #fff7ea; color: #7a4308; }
.pdp-flash { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.7rem; padding: 0.4rem 0.9rem; border-radius: 30px; background: #fff1f3; border: 1px solid #e8a9b4; color: var(--accent-color); font-size: 0.95rem; }
.pdp-flash[hidden] { display: none; }
.pdp-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.badge-flash { background: linear-gradient(135deg, var(--accent-color), #d9531e); }
.prof-list { display: grid; gap: 0.6rem; max-width: 760px; margin-bottom: 2.2rem; }
.prof-row { display: grid; grid-template-columns: minmax(150px, 0.45fr) 1fr; gap: 0.6rem 1.2rem; align-items: center; padding: 0.8rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.prof-name { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--light-color); }
.prof-name i { color: var(--g, var(--primary-color)); }
.prof-values { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.prof-values small { color: var(--text-muted); }
.prof-pill { padding: 0.25rem 0.85rem; border-radius: 30px; border: 1px solid color-mix(in srgb, var(--g, var(--primary-color)) 55%, #ffffff); background: color-mix(in srgb, var(--g, var(--primary-color)) 12%, #ffffff); color: var(--light-color); font-weight: 600; font-size: 0.95rem; }
.prof-pill-big { font-size: 1.1rem; --g: #b0620d; }
@media (max-width: 575.98px) { .prof-row { grid-template-columns: 1fr; } }

.votes { max-width: 760px; }
.votes h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; color: var(--text-color); }
.vote-group { margin-bottom: 1.8rem; padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.vote-group h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; margin-bottom: 0.8rem; }
.vote-row { display: grid; grid-template-columns: minmax(130px, 0.5fr) 1fr 46px; gap: 0.7rem; align-items: center; margin-bottom: 0.4rem; }
.vote-row:not(:has(.vote-bar)) { grid-template-columns: 1fr; }
.vote-label, .vote-btn { font-size: 0.98rem; color: var(--text-color); }
.vote-btn { text-align: left; padding: 0.4rem 0.8rem; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--dark-color); transition: all 0.2s ease; }
.vote-btn:hover:not(:disabled) { border-color: var(--light-color); background: #ffffff; }
.vote-row.is-mine .vote-btn { background: var(--light-color); border-color: var(--light-color); color: #fff; font-weight: 600; }
.vote-bar { height: 12px; border-radius: 8px; background: var(--dark-color-deep); overflow: hidden; }
.vote-bar span { display: block; height: 100%; border-radius: 8px; transition: width 0.6s ease; }
.vote-pct { font-size: 0.9rem; font-weight: 600; text-align: right; color: var(--text-color); }
.vote-note, .vote-help { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 575.98px) { .vote-row { grid-template-columns: minmax(100px, 1fr) 80px 40px; } }

/* =================== PHONE NUMBER FIELDS (flag + country format, js/phone.js) =================== */
.tcp-iti { display: block; width: 100%; }
.tcp-iti .auth-input { width: 100%; }
.tcp-iti { --iti-border-color: var(--line); --iti-dialcode-color: var(--text-muted); --iti-hover-color: rgba(140, 98, 18, 0.1); --iti-arrow-color: var(--text-muted); }
.iti__selected-country-primary { border-radius: 8px 0 0 8px; }
.iti__dropdown-content { background: var(--surface, #fff); color: var(--text-color); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lift, 0 12px 30px rgba(60, 40, 10, 0.18)); overflow: hidden; }
.iti__search-input { font-family: inherit; font-size: 0.95rem; color: var(--text-color); background: var(--surface, #fff); border-bottom: 1px solid var(--line); }
.iti__country { font-size: 0.95rem; }
.iti--container { z-index: 4000; }   /* above the cart drawer and the pop-ups */
.phone-error { margin: 0.4rem 0 0; font-size: 0.86rem; color: #a32233; line-height: 1.4; }
.phone-error[hidden] { display: none; }
.auth-input.is-invalid-phone { border-color: #a32233; }
/* The dial code (+92) and the number typed next to it use exactly the same size and line height, so they sit on one line. */
.tcp-iti .iti__selected-dial-code { font-size: 1rem; line-height: 1.65; color: var(--text-color); }
.tcp-iti .iti__selected-country-primary { align-items: center; }
.tcp-iti .iti__tel-input { line-height: 1.65; }

/* =================== COUNTRY / CITY SUGGESTIONS (js/places.js) =================== */
.tcp-combo-host { position: relative; }
.tcp-combo { position: absolute; left: 0; right: 0; top: calc(100% - 0.2rem); z-index: 30; margin: 0; padding: 0.3rem 0; list-style: none; max-height: 15rem; overflow-y: auto;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lift, 0 12px 30px rgba(60, 40, 10, 0.18)); }
.tcp-combo[hidden] { display: none; }
.tcp-combo li { padding: 0.5rem 1rem; font-size: 0.97rem; color: var(--text-color); cursor: pointer; }
.tcp-combo li b { color: var(--primary-color); font-weight: 700; }
.tcp-combo li:hover, .tcp-combo li.is-active { background: rgba(140, 98, 18, 0.12); }

/* =================== CUSTOMER VERDICT (the votes, as bars) =================== */
.pdp-lead { color: var(--text-muted); margin: -0.4rem 0 1.4rem; max-width: 640px; }
.vote-group { border-left: 4px solid var(--g, var(--primary-color)); }
.vote-group h4 i { color: var(--g, var(--primary-color)); }
.vote-bar { position: relative; height: 14px; background: color-mix(in srgb, var(--g, #8c6212) 12%, #efe8da); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g, #8c6212) 18%, transparent); }
.vote-bar span { background: color-mix(in srgb, var(--g, #8c6212) 58%, #ffffff); }
.vote-row.is-top .vote-bar span { background: var(--g, #8c6212); }
.vote-row.is-top .vote-label, .vote-row.is-top .vote-btn { font-weight: 700; }
.vote-row.is-top .vote-pct { color: var(--g, var(--light-color)); font-weight: 800; }
.vote-bar.is-ghost { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--g, #8c6212) 14%, #efe8da) 0 8px, color-mix(in srgb, var(--g, #8c6212) 7%, #f6f1e6) 8px 16px); }
.vote-row { grid-template-columns: minmax(130px, 0.5fr) 1fr 46px !important; }
@media (max-width: 575.98px) { .vote-row { grid-template-columns: minmax(96px, 1fr) minmax(70px, 1fr) 40px !important; } }

/* The two small arrows of the filter list (they only show when there is more above / below). */
.shop-scrollbtn { display: none; }
@media (min-width: 992px) {
  .shop-scrollbtn { display: block; position: sticky; height: 0; z-index: 6; text-align: center; pointer-events: none; }
  .shop-scrollbtn[hidden] { display: none; }
  .shop-scrollbtn-up { top: 0; }
  .shop-scrollbtn-down { bottom: 0; }
  .shop-scrollbtn button { pointer-events: auto; position: absolute; left: 50%; transform: translateX(-50%); width: 34px; height: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-muted);
    box-shadow: var(--shadow-card); font-size: 0.8rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .shop-scrollbtn button:hover { color: var(--primary-color); border-color: var(--primary-color); }
  .shop-scrollbtn-up button { top: 4px; }
  .shop-scrollbtn-down button { bottom: 4px; }
}

/* Scent finder: the rest of the collection under the best matches */
.finder-more { margin: 0 0 1.5rem; }
.finder-more .finder-more-btn { margin-bottom: 1.25rem; }
.finder-more-grid[hidden] { display: none; }


/* =================== ACCORDS + NOTES: hover and a fine outline =================== */
/* The accord bars lift on hover, the same way the note pictures do. */
.accord-bar { transform-origin: left center; transition: width 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.accord-row:hover .accord-bar { transform: translateY(-2px) scale(1.02); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(60, 40, 10, 0.35); }
/* A thin, clear outline round every note picture so it stands out on the page. */
.note-pic { border: 1.5px solid color-mix(in srgb, var(--primary-color) 55%, #ffffff); box-shadow: 0 0 0 3px #ffffff, 0 4px 12px -4px rgba(60, 40, 10, 0.3); }
.note-item:hover .note-pic { border-color: var(--primary-color); }
html.no-anim-cardHover .accord-row:hover .accord-bar { transform: none; }
html.anim-off .accord-bar { transition: none; }


/* =================== HOME HERO: centred, compact, no picture =================== */
.hero.hero-home { min-height: 0; display: block; padding-top: var(--page-top); padding-bottom: 3rem; text-align: center; }
.hero-home .hero-copy { max-width: 880px; margin: 0 auto; }
.hero-home .eyebrow { padding-left: 0; margin-bottom: 0.9rem; }
.hero-home .eyebrow::before { display: none; }
.hero-home .hero-title { margin-bottom: 1rem; }
.hero-home .hero-subtext { max-width: 640px; margin: 0 auto 1.6rem; }
.hero-home .hero-actions { justify-content: center; }
@media (max-width: 767.98px) {
  .hero.hero-home { padding-bottom: 2.4rem; text-align: center; }
  .hero-home .hero-actions { flex-direction: row; align-items: center; }
  .hero-home .hero-actions .btn { width: auto; }
}


/* =================== HOME: compact hero, so the first perfumes show at once =================== */
.hero.hero-home { padding-top: calc(var(--announcement-height, 0px) + var(--nav-height) + 1.2rem); padding-bottom: 1.3rem; }
.hero-home .eyebrow { font-size: 0.78rem; margin-bottom: 0.55rem; }
.hero-home .hero-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.22; margin-bottom: 0.7rem; }
.hero-home .hero-subtext { font-size: 1rem; line-height: 1.55; max-width: 620px; margin: 0 auto 1rem; }
.hero-home .hero-copy { margin: 0 auto; text-align: center; }
.hero-home .hero-copy > * { margin-left: auto; margin-right: auto; }
.hero-home .container { padding-left: 1rem; padding-right: 1rem; }

/* the featured scents: a tight heading and tiny tabs */
.featured-products { padding: 1.9rem 0 4.5rem; }
.featured-products .section-heading { margin-bottom: 0.9rem; }
.featured-products .section-heading .eyebrow { margin-bottom: 0.3rem; font-size: 0.78rem; }
.featured-products .section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0; }
.scent-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.6rem; margin: 0 0 1.5rem; }
.scent-tab { background: none; border: none; border-bottom: 1.5px solid transparent; padding: 0.3rem 0.15rem; font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--text-muted); transition: color 0.2s ease, border-color 0.2s ease; cursor: pointer; }
.scent-tab:hover { color: var(--primary-color); }
.scent-tab.is-on { color: var(--light-color); border-bottom-color: var(--primary-color); }

/* a hero picture set by the admin: fills the hero below the navbar; the veil keeps the text readable */
.hero-bg { display: none; }
.hero.hero-has-image { display: flex; align-items: center; min-height: clamp(380px, 52vh, 560px); padding-bottom: 1.3rem; }
.hero-has-image .hero-bg { display: block; position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--announcement-height, 0px) + var(--nav-height));
  background: linear-gradient(var(--hero-veil), var(--hero-veil)), var(--hero-image) center / cover no-repeat; z-index: 0; }
.hero-has-image .hero-glow { display: none; }
.hero-has-image .hero-container { margin-top: calc(var(--nav-height) * 0); }
.hero-tone-light .eyebrow, .hero-tone-light .hero-title, .hero-tone-light .hero-subtext { color: #ffffff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero-tone-light .hero-actions .btn { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; color: #ffffff; backdrop-filter: blur(3px); }
.hero-tone-light .hero-actions .btn:hover { background: #ffffff; color: var(--light-color); }
.hero-tone-dark .eyebrow, .hero-tone-dark .hero-title, .hero-tone-dark .hero-subtext { color: var(--light-color); }
@media (max-width: 767.98px) {
  .hero.hero-home { padding-top: calc(var(--announcement-height, 0px) + var(--nav-height) + 0.9rem); }
  .hero.hero-has-image { min-height: 340px; }
  .featured-products { padding-top: 1.5rem; }
}


/* Accord bars: as wide as the accord's strength. A bar too thin for its name shows the name just after the bar. */
.accord-bar { position: relative; min-width: 8px; }
.accord-bar.is-narrow { padding: 0; }
.accord-bar.is-narrow span { position: absolute; left: 100%; margin-left: 0.7rem; overflow: visible; text-overflow: clip; color: var(--text-color); }
