/*
 * scent.css — Scent landing page template only.
 */

/* ── Scent page overflow guard ─────────────────────────────────────────────── */
body.tax-scent #main-content {
  overflow-x: hidden;
}

/* ── Below-fold rendering skip ─────────────────────────────────────────────── */
/* Skip layout + paint for every section below the hero until each enters the
   near-viewport zone. contain-intrinsic-size provides a scroll-height placeholder
   so the scrollbar doesn't jump. Width 0 = let the block's own width rule apply. */
.scent-star-notes,
.scent-inspiration,
.scent-quote-stripe,
.scent-character,
.scent-products,
.scent-lifestyle,
.scent-related {
  /* content-visibility and contain-intrinsic-size removed for Safari 14 compat */
}

/* ── Shared eyebrow label (used across all scent sections) ─────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
  display: block;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.scent-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  max-height: 640px;
  overflow: hidden;
  background: var(--black);
  display: flex;
  align-items: flex-end;
}

/* Desktop height presets, set from the term's "Hero image height" field. */
.scent-hero--hgt-small  { height: 50vh; max-height: 460px; }
.scent-hero--hgt-medium { height: 70vh; max-height: 640px; }
.scent-hero--hgt-large  { height: 90vh; max-height: 900px; }

.scent-hero picture,
.scent-hero img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scent-hero__overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

.scent-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 52px;
  width: 100%;
}

.scent-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.scent-hero__title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 4.5rem;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
}

.scent-hero__subtitle {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}

.scent-hero__ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.scent-hero__trust {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

/* Mobile height presets — same 900px breakpoint as the hero <picture> image swap. */
@media (max-width: 900px) {
  .scent-hero--mobhgt-small  { height: 60vh; }
  .scent-hero--mobhgt-medium { height: 80vh; }
  .scent-hero--mobhgt-large  { height: 100vh; }
}

@media (max-width: 600px) {
  .scent-hero__content { padding: 0 20px 40px; }
  .scent-hero__title { font-size: 2.75rem; }
}

/* ── Inspiration section — full-bleed 2-col editorial ──────────────────────── */
.scent-inspiration {
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 560px;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.scent-inspiration__text {
  min-width: 0; /* prevent grid blowout from long text */
  overflow-wrap: break-word;
}

/* collapse wrapper so image + text become direct grid children */
.scent-inspiration__inner {
  display: contents;
}

.scent-inspiration__image {
  overflow: hidden;
  border-radius: 0;
  position: relative;
  min-width: 0;
}
.scent-inspiration__image picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scent-inspiration__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scent-inspiration__text {
  padding: 72px 80px 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.scent-inspiration__text .section-eyebrow { color: var(--text); }

.scent-inspiration__title {
  font-family: var(--font-head);
  font-size: 3.25rem;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 24px;
  line-height: 1.05;
}

.scent-inspiration__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Review — no box, just text */
.scent-review-block {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 32px;
}

.scent-review-block__stars {
  color: #F4A400;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.scent-review-block p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--black);
  line-height: 1.55;
  margin-bottom: 10px;
}

.scent-review-block cite {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  font-style: normal;
}

/* No image: text fills full width, centered */
.scent-inspiration--no-image {
  display: block;
}
.scent-inspiration--no-image .scent-inspiration__text {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .scent-inspiration {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .scent-inspiration__text {
    order: -1; /* text above image on mobile */
    padding: 48px 24px;
  }
  .scent-inspiration__image {
    order: 1; /* image below text on mobile */
    position: relative;
    min-height: 280px;
  }
  .scent-inspiration__title { font-size: 2.25rem; }
}
/* Aspect-ratio only on mobile (single-column layout).
   On desktop the grid min-height + stretch handles the sizing. */
@media (max-width: 900px) {
  @supports not (aspect-ratio: 1 / 1) {
    .scent-inspiration__image {
      padding-bottom: 56.25%;
      height: 0;
    }
  }
  @supports (aspect-ratio: 1 / 1) {
    .scent-inspiration__image {
      aspect-ratio: 16 / 9;
    }
  }
}

/* ── Quote stripe ──────────────────────────────────────────────────────────── */
.scent-quote-stripe {
  background: var(--black);
  padding: 40px 40px;
  text-align: center;
}

.scent-quote-stripe p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.375rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ── Star notes ────────────────────────────────────────────────────────────── */
.scent-star-notes {
  padding: 80px 40px;
  background: var(--cream);
  text-align: center;
}

.scent-star-notes__header {
  margin-bottom: 48px;
}

.scent-star-notes__header h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 12px;
}

.scent-star-notes__header p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
}

.scent-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.scent-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scent-note__image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grey3);
  flex-shrink: 0;
  position: relative;
}
.scent-note__image img,
.scent-note__image picture { width: 100%; height: 100%; object-fit: cover; }

.scent-note__type {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.scent-note__name {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--black);
}

.scent-note__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  max-width: 180px;
}

@media (max-width: 600px) {
  .scent-notes-grid { grid-template-columns: 1fr; gap: 32px; }
  .scent-star-notes { padding: 60px 20px; }
}

/* ── Scent character / family ──────────────────────────────────────────────── */
.scent-character {
  background: var(--cream);
  padding: 80px 0;
}

.scent-character__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.scent-character__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.scent-character__title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 20px;
}

.scent-character__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
}

.scent-mood-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.scent-mood-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--grey3);
}

.scent-room-labels {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
}

.scent-room-labels strong {
  color: var(--black);
  font-weight: 500;
}

.scent-character__image {
  border-radius: 4px;
  overflow: hidden;
}
/* Fallback for Safari <15 */
@supports not (aspect-ratio: 1 / 1) {
  .scent-character__image {
    padding-bottom: 125%;
    height: 0;
  }
}
@supports (aspect-ratio: 1 / 1) {
  .scent-character__image {
    aspect-ratio: 4 / 5;
  }
}
.scent-character__image img,
.scent-character__image picture { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .scent-character__inner { grid-template-columns: 1fr; padding: 0 20px; }
  .scent-character { padding: 60px 0; }
}

/* ── Products section ──────────────────────────────────────────────────────── */
.scent-products {
  padding: 60px 0;
  background: var(--white);
}

.scent-products .section-header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 40px;
}
.scent-products .section-header h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
}

/* ── Lifestyle banner ──────────────────────────────────────────────────────── */
.scent-lifestyle {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
}

.scent-lifestyle picture,
.scent-lifestyle img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scent-lifestyle__overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.45);
}

.scent-lifestyle__content {
  position: relative;
  z-index: 1;
  padding: 0 40px;
}

.scent-lifestyle__quote {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  max-width: 560px;
  margin: 0 auto 24px;
}

.scent-lifestyle__delivery {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

/* ── Related scents ────────────────────────────────────────────────────────── */
.scent-related {
  background: var(--cream);
  padding: 48px 0 56px;
}

.scent-related .section-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 0 40px;
}

.scent-related h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black);
}

.related-scents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 700px) {
  .scent-related .section-header { padding: 0 20px; }
  .related-scents-grid { grid-template-columns: 1fr 1fr; padding: 0 20px; gap: 10px; }

  /* Card: flex column so image sits on top, text strip sits below */
  .scent-term-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
  }

  /* Image: square, contained — no overflow so text isn't overlaid */
  .scent-term-card__image {
    flex-shrink: 0;
    overflow: hidden;
  }

  /* Overlay: break out of absolute positioning — becomes a solid text strip below image */
  .scent-term-card__overlay {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: #1e1e1e;
    background-image: none;
    padding: 10px 12px 12px;
  }

  .scent-term-card__name  { font-size: 1.125rem; }
  .scent-term-card__desc  { font-size: 0.6875rem; margin-bottom: 6px; }

  /* Third card (odd last child = alone on its row) — full width, taller image */
  .related-scents-grid .scent-term-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
/* Fallback for Safari <15 — mobile square cards */
@supports not (aspect-ratio: 1 / 1) {
  @media (max-width: 700px) {
    .scent-term-card__image {
      padding-bottom: 100%;
      height: 0;
    }
    .related-scents-grid .scent-term-card:last-child:nth-child(odd) .scent-term-card__image {
      padding-bottom: 56.25%;
    }
  }
  @media (max-width: 400px) {
    .scent-term-card__image {
      padding-bottom: 56.25%;
      height: 0;
    }
  }
}
@supports (aspect-ratio: 1 / 1) {
  @media (max-width: 700px) {
    .scent-term-card__image {
      aspect-ratio: 1 / 1;
    }
    .related-scents-grid .scent-term-card:last-child:nth-child(odd) .scent-term-card__image {
      aspect-ratio: 16 / 9;
    }
  }
  @media (max-width: 400px) {
    .scent-term-card__image {
      aspect-ratio: 16 / 9;
    }
  }
}
@media (max-width: 400px) {
  .related-scents-grid { grid-template-columns: 1fr; }
}

/* ── Products section header ───────────────────────────────────────────────── */
.scent-products {
  padding: 60px 0;
  background: var(--white);
}

.scent-products .section-header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 40px;
}

.scent-products .section-header .section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.scent-products .section-header h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--black);
}

/* ── Scent term cards (related-scents.php) ─────────────────────────────────── */
.scent-related .section-header .section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Scent category cards ───────────────────────────────────────────────── */
.scent-term-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.scent-term-card__image {
  position: relative;
  overflow: hidden;
  background: var(--grey3);
}
/* Fallback for Safari <15 */
@supports not (aspect-ratio: 1 / 1) {
  .scent-term-card__image {
    padding-bottom: 56.25%;
    height: 0;
  }
}
@supports (aspect-ratio: 1 / 1) {
  .scent-term-card__image {
    aspect-ratio: 16 / 9;
  }
}

.scent-term-card__image img,
.scent-term-card__image picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scent-term-card:hover .scent-term-card__image img {
  transform: scale(1.05);
}

.scent-term-card__footer { display: none; }

.scent-term-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 56px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 65%, transparent 100%);
}

.scent-term-card__name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.scent-term-card__desc {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin-bottom: 10px;
}

.scent-term-card__arrow {
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s, transform 0.25s;
}

.scent-term-card__arrow svg {
  width: 18px;
  height: 18px;
}

.scent-term-card:hover .scent-term-card__arrow {
  color: var(--white);
  transform: translateX(4px);
}

/* ── Sticky buy bar ─────────────────────────────────────────────────────────── */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--white);
  border-top: 1px solid var(--grey3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.sticky-buy-bar.is-visible {
  transform: translateY(0);
}

.sticky-buy-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
}

.sticky-buy-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sticky-buy-bar__name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
}

.sticky-buy-bar__price {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
}

.sticky-buy-bar__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sticky-buy-bar__trust {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .sticky-buy-bar__trust { display: none; }
  .sticky-buy-bar__actions { gap: 12px; }
}

/* ── Hero secondary (ghost on dark background) ─────────────────────────────── */
.scent-hero__btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.scent-hero__btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* ── Inspiration — text column ─────────────────────────────────────────────── */
.scent-inspiration__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow-wrap: break-word;
}
.scent-inspiration__text .section-eyebrow { color: var(--text); }

.scent-review-block__stars {
  color: #F4A400;
  font-size: 0.875rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* ── Products section header ───────────────────────────────────────────────── */
.scent-products__header {
  text-align: center;
  padding: 0 40px;
  margin-bottom: 40px;
}
.scent-products__header h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
}
.scent-products__sub {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 300;
}

/* ── Divider bar (inside product grid) ─────────────────────────────────────── */
.scent-divider-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--grey1);
  border-radius: 4px;
  padding: 22px 40px;
  flex-wrap: wrap;
}
.scent-divider-bar__item {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.scent-divider-bar__item svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.75);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.scent-divider-bar__item span {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
}

/* ── Room labels (character section) ──────────────────────────────────────── */
.scent-room-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
.scent-room-labels__lead {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  width: 100%;
  margin-bottom: 2px;
}
.scent-room-labels__room {
  color: var(--text);
  font-weight: 300;
}
.scent-room-labels__room + .scent-room-labels__room::before {
  content: '·';
  margin-right: 6px;
  color: var(--text);
}

@media (max-width: 600px) {
  .scent-products__header { padding: 0 20px; }
  .scent-divider-bar { gap: 16px; padding: 18px 20px; justify-content: flex-start; }
}

/* ── Scent-page skeleton loaders ──────────────────────────────────────────── */
@keyframes scent-sk {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Inspiration image shimmer */
.scent-insp-sk {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  background: linear-gradient(90deg, #e8e8e8 0%, #d8d8d8 40%, #e8e8e8 80%);
  background-size: 300% 100%;
  animation: scent-sk 1.4s ease-in-out infinite;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* Star note circle shimmer */
.scent-note-sk {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  border-radius: 50%;
  background: linear-gradient(90deg, #e8e8e8 0%, #d8d8d8 40%, #e8e8e8 80%);
  background-size: 300% 100%;
  animation: scent-sk 1.4s ease-in-out infinite;
  transition: opacity 0.3s;
  pointer-events: none;
}

/* Related scent card image shimmer */
.scent-card-sk {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
  background: linear-gradient(90deg, #e8e8e8 0%, #d8d8d8 40%, #e8e8e8 80%);
  background-size: 300% 100%;
  animation: scent-sk 1.4s ease-in-out infinite;
  transition: opacity 0.3s;
  pointer-events: none;
}
