/* ============================================================
   SCENTPRESSION — Choosing a Scent Catalog Page
   Page-specific styles for scents.html
   Reuses: product-card, product-grid, filter-bar, filter-btn
   from shop.css and utilities from design_system.css
   ============================================================ */


/* ── Scents Hero ────────────────────────────────────────── */

.scents-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: calc(120px + var(--space-10)) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.scents-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.scents-hero__content .t-label {
  color: var(--color-orange);
  margin-bottom: var(--space-4);
  display: block;
}

.scents-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.scents-hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.scents-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}


/* ── Most Popular Section ───────────────────────────────── */

.popular-section {
  background: var(--color-cream);
  padding-block: var(--space-16);
}

.popular-section__header {
  margin-bottom: var(--space-8);
}

.popular-section__header .t-label {
  color: var(--color-orange);
  margin-bottom: var(--space-3);
  display: block;
}

.popular-section__header h2 {
  margin-bottom: var(--space-2);
}


/* ── Popular Hero Card (#1 Feature) ─────────────────────── */

.popular-hero-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-orange-light);
  margin-bottom: var(--space-10);
  position: relative;
}

@media (min-width: 768px) {
  .popular-hero-card {
    grid-template-columns: 1fr 1fr;
  }
}

.popular-hero-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 1;
}

.popular-hero-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-cream-dark);
}

.popular-hero-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  color: transparent;
  font-size: 0;
}

.popular-hero-card:hover .popular-hero-card__image img {
  transform: scale(1.04);
}

.popular-hero-card__body {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .popular-hero-card__body {
    padding: var(--space-10) var(--space-8);
  }
}

.popular-hero-card__collection {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-orange);
  display: block;
  margin-bottom: var(--space-2);
}

.popular-hero-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.popular-hero-card__desc {
  font-size: var(--text-base);
  color: var(--color-gray-dark);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.popular-hero-card__notes {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-3);
}

.popular-hero-card__family {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-purple);
  background: rgba(99, 40, 134, 0.06);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.popular-hero-card__why {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-orange-dark);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-light);
  line-height: var(--leading-normal);
}


/* ── Popular Picks Grid ─────────────────────────────────── */

.popular-grid {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-2);
}

.popular-grid::-webkit-scrollbar {
  display: none;
}

.popular-grid > * {
  scroll-snap-align: start;
  flex: 0 0 260px;
}

@media (min-width: 1024px) {
  .popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .popular-grid > * {
    flex: none;
  }
}


/* ── Collection Section Headers ─────────────────────────── */

.collection-header {
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
}

.collection-header__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-orange);
  display: block;
  margin-bottom: var(--space-3);
}

.collection-header__title-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.collection-header__title-row h2 {
  font-family: var(--font-display);
  margin: 0;
}

.collection-header__desc {
  font-size: var(--text-base);
  color: var(--color-gray-dark);
  max-width: 600px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.collection-header__divider {
  height: 2px;
  background: linear-gradient(90deg, var(--color-orange) 0%, transparent 100%);
  border: none;
  margin: 0;
}


/* ── Scent Count Badge ──────────────────────────────────── */

.scent-count {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(246, 151, 31, 0.1);
  border-radius: var(--radius-full);
  white-space: nowrap;
}


/* ── Scent Search Input ─────────────────────────────────── */

.scent-search {
  position: relative;
  max-width: 360px;
  margin-left: auto;
}

.scent-search__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-gray-mid);
  pointer-events: none;
}

.scent-search__input {
  width: 100%;
  padding: 10px var(--space-4) 10px calc(var(--space-4) + 26px);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.scent-search__input::placeholder {
  color: var(--color-gray-mid);
}

.scent-search__input:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(99, 40, 134, 0.1);
}


/* ── Popular Badge (on product cards) ───────────────────── */

.popular-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant: small-caps;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-orange);
  border-radius: var(--radius-full);
  z-index: 1;
  line-height: 1.4;
}

/* Ensure parent card can contain the absolute badge */
.product-card--has-badge {
  position: relative;
}

.product-card--has-badge .product-card__image {
  position: relative;
}


/* ── Back to Top Button ─────────────────────────────────── */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.back-to-top:hover {
  background: var(--color-orange-hover);
  box-shadow: var(--shadow-lg);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top__icon {
  width: 20px;
  height: 20px;
}


/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 767px) {
  .scents-hero {
    padding: calc(100px + var(--space-8)) var(--gutter-mobile) var(--space-12);
  }

  .scents-hero h1 {
    font-size: var(--text-3xl);
  }

  .scents-hero__actions {
    flex-direction: column;
    gap: var(--space-3);
  }

  .popular-hero-card__body {
    padding: var(--space-6) var(--space-5);
  }

  .popular-hero-card__name {
    font-size: var(--text-xl);
  }

  .scent-search {
    max-width: 100%;
    margin-left: 0;
  }

  .collection-header__title-row {
    flex-direction: column;
    gap: var(--space-2);
  }

  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767px) {
  .filter-bar {
    position: relative;
  }

  .filter-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, transparent, var(--color-black));
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--duration-fast) var(--ease-out);
  }

  .filter-bar--scrolled-end::after {
    opacity: 0;
  }

  .filter-bar__inner {
    padding-inline: var(--gutter-mobile);
  }
}


/* ── Filter Bar Dark Theme Override ────────────────────── */

.filter-bar {
  background: var(--color-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-4);
}

.filter-bar .filter-btn {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-bar .filter-btn:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.filter-bar .filter-btn--active {
  color: var(--color-white);
  background: var(--color-purple);
  border-color: var(--color-purple);
}


/* ── Smart Filter Panel ─────────────────────────────────── */

.smart-filter {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.smart-filter__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}

@media (min-width: 768px) {
  .smart-filter__header {
    flex-direction: row;
    align-items: center;
  }
}

.smart-filter__toggle,
.smart-filter__assist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px var(--space-5);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-hover));
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.smart-filter__toggle:hover,
.smart-filter__assist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 151, 31, 0.35);
}

/* ── Active Filters Bar ──────────────────────────────── */
.smart-filter__active {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  flex-wrap: wrap;
}

.smart-filter__active-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.smart-filter__active-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.smart-filter__active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(246, 151, 31, 0.15);
  border: 1px solid rgba(246, 151, 31, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-orange);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.smart-filter__active-tag:hover {
  background: rgba(246, 151, 31, 0.25);
  border-color: var(--color-orange);
}

.smart-filter__active-tag--avoid {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

.smart-filter__active-tag--avoid:hover {
  background: rgba(220, 53, 69, 0.2);
}

.smart-filter__active-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--duration-fast);
  flex-shrink: 0;
}

.smart-filter__active-clear:hover {
  color: var(--color-orange);
}

.smart-filter__toggle-icon {
  font-size: 14px;
}

.smart-filter__chevron {
  transition: transform var(--duration-fast) var(--ease-out);
  opacity: 0.8;
}

.smart-filter__toggle[aria-expanded="true"] .smart-filter__chevron {
  transform: rotate(180deg);
}

.smart-filter__search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.smart-filter__input {
  width: 100%;
  padding: 12px var(--space-4) 12px 44px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.smart-filter__input:focus {
  border-color: var(--color-orange);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(246, 151, 31, 0.15);
}

.smart-filter__input::placeholder {
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.smart-filter__search-icon {
  color: rgba(255,255,255,0.4);
}

.smart-filter__search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-mid);
  pointer-events: none;
}

/* Panel body */
.smart-filter__panel {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.smart-filter__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

@media (max-width: 768px) {
  .smart-filter__row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.smart-filter__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.smart-filter__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-orange);
  font-weight: var(--weight-medium);
}

.smart-filter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.smart-filter__tag {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.smart-filter__tag:hover {
  border-color: var(--color-orange);
  color: var(--color-white);
  background: rgba(246, 151, 31, 0.1);
}

.smart-filter__tag--active {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  font-weight: var(--weight-medium);
}

.smart-filter__tag--active:hover {
  background: var(--color-orange-hover);
  color: var(--color-white);
}

/* Actions row */
.smart-filter__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.smart-filter__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.smart-filter__clear {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.smart-filter__clear:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}

/* Card hidden state for smart filter */
.product-card.smart-hidden {
  display: none !important;
}

/* Search highlight */
.product-card.search-hidden {
  display: none !important;
}

/* Section auto-hide when all cards filtered out */
[data-collection].collection-empty {
  display: none !important;
}

/* Card highlight animation (from assist panel) */
.product-card--highlighted {
  outline: 3px solid var(--color-orange);
  outline-offset: 4px;
  border-radius: var(--radius-md);
  animation: highlight-pulse 3s ease-out forwards;
}

@keyframes highlight-pulse {
  0%   { outline-color: var(--color-orange); box-shadow: 0 0 20px rgba(246,151,31,0.3); }
  70%  { outline-color: var(--color-orange); box-shadow: 0 0 10px rgba(246,151,31,0.15); }
  100% { outline-color: transparent; box-shadow: none; }
}


/* ══════════════════════════════════════════════════════════
   SCENT ASSIST PANEL
   ══════════════════════════════════════════════════════════ */

/* Overlay */
.scent-assist__overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out),
              visibility var(--duration-normal) var(--ease-out);
}

.scent-assist__overlay--visible {
  opacity: 1;
  visibility: visible;
}

/* Trigger button */
.scent-assist__trigger {
  position: fixed;
  bottom: var(--space-6);
  right: 72px;
  background: var(--color-purple);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 30px rgba(99,40,134,0.3);
  z-index: 99;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.scent-assist__trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99,40,134,0.4);
}

.scent-assist__trigger-icon {
  color: var(--color-orange);
  font-size: 16px;
}

/* Panel */
.scent-assist__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-white);
  box-shadow: -8px 0 40px rgba(26,26,26,0.15);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  padding: var(--space-8) var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
}

.scent-assist__panel--open {
  transform: translateX(0);
}

/* Close button */
.scent-assist__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-gray-mid);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.scent-assist__close:hover {
  background: var(--color-cream);
  color: var(--color-black);
}

/* Header */
.scent-assist__header {
  margin-bottom: var(--space-6);
  padding-right: var(--space-8);
}

.scent-assist__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--color-black);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

.scent-assist__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  margin: 0;
}

/* Question groups */
.scent-assist__questions {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.scent-assist__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scent-assist__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-gray-dark);
  font-weight: var(--weight-medium);
}

.scent-assist__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Option pills */
.scent-assist__opt {
  background: var(--color-white);
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--color-gray-dark);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.scent-assist__opt:hover {
  border-color: var(--color-purple-light);
  color: var(--color-purple);
}

.scent-assist__opt--active {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}

/* Submit button */
.scent-assist__submit {
  width: 100%;
  margin-bottom: var(--space-6);
}

/* Results */
.scent-assist__results-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gray-light);
}

.scent-assist__result-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-gray-light);
}

.scent-assist__result-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.scent-assist__result-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scent-assist__result-narrow {
  text-align: center;
  padding: var(--space-4);
  background: rgba(246,151,31,0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246,151,31,0.15);
  margin-bottom: var(--space-3);
}

.scent-assist__result-narrow span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  color: var(--color-orange);
}

/* Conflict disabled state for avoid options */
.scent-assist__opt--conflict {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
}

.scent-assist__result-card:last-child {
  border-bottom: none;
}

.scent-assist__result-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.scent-assist__result-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-black);
  line-height: 1.3;
}

.scent-assist__result-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-gray-mid);
}

.scent-assist__result-notes {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-gray-dark);
  line-height: 1.5;
  margin-top: 2px;
}

.scent-assist__result-reason {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-orange);
  margin-top: 4px;
  line-height: 1.4;
}

.scent-assist__result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.scent-assist__result-match {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-orange);
  font-weight: var(--weight-medium);
}

.scent-assist__result-view {
  background: none;
  border: 1px solid var(--color-purple);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--color-purple);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.scent-assist__result-view:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

/* ── Result Actions Bottom (Retry + Quiz Link) ────────── */
.scent-assist__result-actions-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-12);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.scent-assist__apply-filters {
  width: 100%;
  max-width: 280px;
  padding: 14px 24px;
  font-size: 14px;
}

.scent-assist__retry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 24px;
  background: var(--color-purple);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.scent-assist__retry:hover {
  background: var(--color-purple-dark);
  transform: translateY(-1px);
}

.scent-assist__share {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 24px;
  background: none;
  color: var(--color-purple);
  border: 1px solid var(--color-purple);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.scent-assist__share:hover {
  background: var(--color-purple);
  color: var(--color-white);
}

.scent-assist__quiz-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-gray-mid);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.scent-assist__quiz-link:hover {
  color: var(--color-orange);
}

/* ── Skip Buttons ──────────────────────────────────────── */
.scent-assist__skip {
  background: none;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-gray-mid);
  cursor: pointer;
  margin-left: var(--space-2);
  vertical-align: middle;
  transition: all var(--duration-fast) var(--ease-out);
}

.scent-assist__skip:hover {
  border-color: var(--color-purple-light);
  color: var(--color-purple);
}

.scent-assist__group--skipped .scent-assist__options {
  opacity: 0.35;
  pointer-events: none;
}

.scent-assist__group--skipped .scent-assist__skip {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}

/* ── Optional question hint ─────────────────────────────── */
.scent-assist__optional {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: var(--weight-regular);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-gray-mid);
  margin-left: var(--space-2);
}

/* Mobile / tablet responsive */
@media (max-width: 767px) {
  .scent-assist__trigger {
    right: var(--space-4);
    bottom: var(--space-4);
    padding: 12px 18px;
    font-size: 13px;
  }

  .scent-assist__panel {
    width: 100vw;
    max-width: 100vw;
    padding: var(--space-6) var(--space-4) var(--space-8);
  }

  .scent-assist__options {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 374px) {
  .scent-assist__options {
    grid-template-columns: 1fr;
  }
}

/* ── Avoidance Filter Tags ─────────────────────────────── */
.smart-filter__tag--avoid {
  border-color: rgba(255,100,100,0.3);
  color: rgba(255,150,150,0.8);
}

.smart-filter__tag--avoid.smart-filter__tag--active {
  background: rgba(220,50,50,0.2);
  border-color: rgba(220,50,50,0.5);
  color: #ff9999;
}

/* ── Seasonal Picks ────────────────────────────────────── */
.seasonal-picks {
  background: linear-gradient(135deg, rgba(99,40,134,0.05), rgba(246,151,31,0.04));
  padding: var(--space-10) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.seasonal-picks__header {
  margin-bottom: var(--space-6);
}

.seasonal-picks__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-purple);
  margin: var(--space-2) 0 0;
}

.seasonal-picks__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 767px) {
  .seasonal-picks__cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Seasonal picks reuses .product-card styles from design_system.css */


/* ── Collection Story Cards ────────────────────────────── */
.collection-story {
  margin-top: var(--space-10);
  padding: var(--space-10) var(--space-6);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
}

.collection-story--accent {
  background: var(--color-cream);
  border: 1px solid rgba(0,0,0,0.04);
}

.collection-story__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.collection-story__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-orange);
  display: block;
  margin-bottom: var(--space-3);
}

.collection-story__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--color-black);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.collection-story__text {
  font-size: var(--text-base);
  color: var(--color-gray-mid);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.collection-story__link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-purple);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.collection-story__link:hover {
  color: var(--color-orange);
}

@media (max-width: 767px) {
  .collection-story {
    padding: var(--space-8) 0;
  }

  .collection-story__title {
    font-size: var(--text-xl);
  }
}

/* ── Compare Button on Cards ───────────────────────────── */
.product-card__compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: var(--space-3);
  padding: 12px 14px;
  min-height: 44px;
  background: rgba(99,40,134,0.06);
  border: 1px solid rgba(99,40,134,0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-purple);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: rgba(99,40,134,0.15);
}

.product-card__compare:hover {
  border-color: var(--color-purple);
  background: rgba(99,40,134,0.12);
  transform: translateY(-1px);
}

.product-card__compare:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

.product-card__compare:active {
  transform: scale(0.98);
}

.product-card__compare--active {
  background: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}

.product-card__compare--active:hover {
  background: var(--color-purple-dark);
}

/* ── Compare Bar (floating bottom) ─────────────────────── */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-3) 0;
  z-index: 900;
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.compare-bar--visible {
  transform: translateY(0);
}

.compare-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.compare-bar__items {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.compare-bar__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-gray-mid);
}

.compare-bar__item {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-cream);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
}

.compare-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.compare-bar__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-gray-mid);
}

.compare-bar__btn {
  padding: 8px 20px;
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.compare-bar__btn:hover:not(:disabled) {
  background: var(--color-orange-hover);
}

.compare-bar__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.compare-bar__clear {
  background: none;
  border: none;
  color: var(--color-gray-mid);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.compare-bar__clear:hover {
  color: var(--color-white);
}

@media (max-width: 767px) {
  .compare-bar__inner {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .compare-bar__items {
    justify-content: center;
  }

  .compare-bar__actions {
    justify-content: center;
    width: 100%;
  }

  .compare-bar__btn {
    flex: 1;
  }
}

/* ── Compare Modal ─────────────────────────────────────── */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal), visibility var(--duration-normal);
}

.compare-modal--open {
  opacity: 1;
  visibility: visible;
}

.compare-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.compare-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  width: 90vw;
  max-width: 960px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
}

.compare-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-gray-mid);
  cursor: pointer;
  line-height: 1;
}

.compare-modal__close:hover {
  color: var(--color-black);
}

.compare-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-black);
  margin-bottom: var(--space-6);
}

.compare-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.compare-modal__card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.compare-modal__collection {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-orange);
}

.compare-modal__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-black);
  margin: var(--space-2) 0 var(--space-4);
}

.compare-modal__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.compare-modal__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-gray-mid);
}

.compare-modal__value {
  font-size: var(--text-sm);
  color: var(--color-black);
  text-align: right;
  text-transform: capitalize;
}

.compare-modal__notes {
  margin-top: var(--space-3);
}

.compare-modal__notes p {
  font-size: var(--text-sm);
  color: var(--color-gray-mid);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-1);
}

/* Compare CTA */
.compare-modal__cta {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-6) var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.compare-modal__cta-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gray-mid);
  margin: 0 0 var(--space-4);
}

.compare-modal__cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}

.compare-modal__cta-btn:hover {
  background: var(--color-orange-hover);
}

@media (max-width: 767px) {
  .compare-modal__content {
    width: 95vw;
    max-height: 90vh;
    padding: var(--space-5);
  }

  .compare-modal__grid {
    grid-template-columns: 1fr;
  }

  .compare-modal__title {
    font-size: var(--text-xl);
    padding-right: var(--space-8);
  }

  .compare-modal__close {
    top: var(--space-3);
    right: var(--space-3);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* ══════════════════════════════════════════════════════════
   SIMILAR SCENTS FEATURE
   ══════════════════════════════════════════════════════════ */

.product-card__similar-btn {
  background: none;
  border: none;
  color: var(--color-purple);
  cursor: pointer;
  padding: 0;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  opacity: 0.7;
  transition: opacity var(--duration-fast) var(--ease-out);
  display: block;
}

.product-card__similar-btn:hover {
  opacity: 1;
}

.similar-popover {
  position: fixed;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  width: 280px;
  max-width: calc(100vw - 32px);
  z-index: 1000;
}

.similar-popover__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.similar-popover__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.similar-popover__item {
  display: block;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--color-black);
  transition: color var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.similar-popover__item:last-child {
  border-bottom: none;
}

.similar-popover__item:hover {
  color: var(--color-purple);
}

.similar-popover__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
}

.similar-popover__family {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-gray-mid);
  margin-top: 2px;
}

.similar-popover__collection {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-orange);
  margin-top: 2px;
}

/* ── Focus & Touch States (Accessibility) ──────────────── */

.scent-assist__opt:focus-visible,
.scent-assist__trigger:focus-visible,
.scent-assist__close:focus-visible,
.scent-assist__submit:focus-visible,
.compare-bar__btn:focus-visible,
.compare-bar__clear:focus-visible,
.compare-modal__close:focus-visible,
.product-card__similar-btn:focus-visible,
.similar-popover__close:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.scent-assist__opt:active,
.scent-assist__trigger:active {
  transform: scale(0.97);
}

/* ── Reduced Motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .scent-assist__panel,
  .compare-bar,
  .compare-modal,
  .similar-popover,
  .back-to-top,
  .product-card__compare,
  .scent-assist__trigger {
    transition-duration: 0.01ms !important;
  }
}
