/* ============================================================
   The Trail Tales — App Stylesheet
   Utility classes, components and layout helpers.
   ============================================================ */

/* ---- Layout ---- */
.container { width: 100%; max-width: 72rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md  { max-width: 28rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hidden { display: none; }
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

/* Spacing */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-24 { margin-top: 6rem; }
.ml-auto { margin-left: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

.divide-y > * + * { border-top: 1px solid var(--border); }

/* ---- Typography ---- */
.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-base{ font-size: 1rem; line-height: 1.5rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

@media (min-width: 640px) {
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

.font-medium { font-weight: 500; }
.font-bold   { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.leading-tight   { line-height: 1.25; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase  { text-transform: uppercase; }
.truncate   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-through { text-decoration: line-through; }
.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }

/* ---- Overflow / Position ---- */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }
.top-0    { top: 0; }
.z-50     { z-index: 50; }
.inset-0  { inset: 0; }

/* ---- Sizing ---- */
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.size-4   { width: 1rem; height: 1rem; }
.size-5   { width: 1.25rem; height: 1.25rem; }
.size-7   { width: 1.75rem; height: 1.75rem; }
.size-8   { width: 2rem; height: 2rem; }
.w-8      { width: 2rem; }
.w-9      { width: 2.25rem; }
.w-48     { width: 12rem; }
.h-px     { height: 1px; }
.h-fit    { height: fit-content; }
.min-h-screen { min-height: 100vh; }
.aspect-\[3\/4\] { aspect-ratio: 3/4; }
.object-cover { object-fit: cover; }
.place-items-center { place-items: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms, opacity 150ms;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled,
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { background-color: oklch(0.52 0.2 18); }

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background-color: var(--accent); }

.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
  border-color: transparent;
}
.btn-ghost:hover { background-color: var(--accent); color: var(--foreground); }

.btn-destructive {
  background-color: transparent;
  color: var(--destructive);
  border-color: transparent;
}
.btn-destructive:hover { background-color: oklch(0.2 0.04 25); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
.btn-icon { padding: 0.5rem; }
.btn-w-full { width: 100%; }

/* ---- Forms ---- */
.form-label {
  display: block;
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}
.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
  color: var(--foreground);
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px oklch(0.82 0.11 85 / 0.2);
}
.form-textarea { resize: vertical; min-height: 5rem; }

/* ---- Cards ---- */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-color: var(--card);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 300ms ease, 
              box-shadow 300ms ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  transform-style: preserve-3d;
}
.product-card:hover {
  will-change: transform;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(212, 175, 55, 0.28);
}
.product-card__image {
  position: relative;
  aspect-ratio: 1/1.5;
  overflow: hidden;
  background-color: var(--secondary);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card__image img {
  transform: scale(1.08);
}
.product-card__body { padding: 1rem; }
.product-card__name { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__notes { font-size: 0.75rem; color: var(--muted-foreground); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; margin-top: 0.25rem; }
.product-card__pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem; }
.product-card__sizes { font-size: 0.75rem; color: var(--muted-foreground); margin-left: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-primary { background-color: var(--primary); color: var(--primary-foreground); }
.badge-gold { border: 1px solid oklch(0.82 0.11 85 / 0.5); color: var(--gold); }
.badge-off { position: absolute; left: 0.75rem; top: 0.75rem; background-color: var(--primary); color: var(--primary-foreground); border-radius: 9999px; padding: 0.25rem 0.625rem; font-size: 0.6875rem; font-weight: 500; }
.badge-new { position: absolute; right: 0.75rem; top: 0.75rem; background-color: var(--gold); color: var(--gold-foreground); border-radius: 9999px; padding: 0.25rem 0.625rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- Header ---- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.875rem 1rem;
}
@media (min-width: 640px) {
  .site-header__inner { padding: 0.875rem 1.5rem; }
}
/* ---- Brand Header Morphing Container (Text <-> Winged Emblem) ---- */
.site-header__logo {
  text-decoration: none;
  display: inline-grid;
  grid-template-areas: "brand";
  place-items: center;
  white-space: nowrap;
  position: relative;
  min-height: 34px;
}
@media (min-width: 768px) {
  .site-header__logo {
    place-items: center start;
    min-height: 42px;
  }
}

/* Brand Text: Shown at top / in hero section */
.site-header__logo .brand-text {
  grid-area: brand;
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--foreground);
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 380ms ease;
  pointer-events: auto;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .site-header__logo .brand-text {
    font-size: 1.6rem;
    font-weight: 700;
  }
}

.site-header__logo .brand-text .text-gold-gradient {
  font-weight: 800;
  font-style: normal;
}

/* Brand Winged Logo Wrap: Morph target upon scroll */
.site-header__logo .brand-logo-wrap {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(9px) scale(0.88);
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 380ms ease;
  user-select: none;
}
@media (min-width: 768px) {
  .site-header__logo .brand-logo-wrap {
    justify-content: flex-start;
  }
}

/* Scrolled state: Morph from text to winged logo */
.site-header.site-header--show-logo .site-header__logo .brand-text {
  opacity: 0;
  transform: translateY(-9px) scale(0.92);
  filter: blur(3px);
  pointer-events: none;
}

.site-header.site-header--show-logo .site-header__logo .brand-logo-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

/* Base logo image sizes */
.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  transition: transform 250ms ease, opacity 250ms ease;
  display: block;
}
.site-header__logo .brand-logo-img {
  height: 30px;
  max-width: 130px;
}
@media (min-width: 768px) {
  .brand-logo-img {
    height: 44px;
    max-width: 175px;
  }
  .site-header__logo .brand-logo-img {
    height: 36px;
    max-width: 155px;
  }
}

.site-header.site-header--show-logo .site-header__logo:hover .brand-logo-img {
  transform: scale(1.04);
}
.site-header:not(.site-header--show-logo) .site-header__logo:hover .brand-text {
  opacity: 0.9;
}

/* Light / Dark Mode logo switcher */
html.light .brand-logo-light {
  display: none !important;
}
html.light .brand-logo-dark {
  display: block !important;
}

html:not(.light) .brand-logo-dark {
  display: none !important;
}
html:not(.light) .brand-logo-light {
  display: block !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}


.site-header__nav {
  display: none;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) { .site-header__nav { display: flex; } }
.site-header__nav a {
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms;
}
.site-header__nav a:hover,
.site-header__nav a.active { color: var(--foreground); }

.site-header__actions { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }

.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -0.125rem;
  right: -0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Animated Hamburger Button */
.hamburger-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 200ms ease;
}

.hamburger-box {
  width: 20px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.25s ease, background-color 0.25s ease;
  transform-origin: center;
}

/* Morph state when open (.is-open) */
.hamburger-btn.is-open .line-top {
  transform: translateY(6px) rotate(45deg);
  background-color: var(--gold);
}
.hamburger-btn.is-open .line-mid {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.is-open .line-bot {
  transform: translateY(-6px) rotate(-45deg);
  background-color: var(--gold);
}

/* Luxury Mobile Nav Drawer */
.mobile-nav {
  border-top: 1px solid var(--border);
  background-color: var(--background);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.mobile-nav.is-open {
  max-height: 85vh;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}

.mobile-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem 1rem;
}

/* Staggered Item Cascading Entry Animation */
.mobile-nav.is-open .mobile-nav__inner > * {
  animation: navItemReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(-12px);
}

.mobile-nav.is-open .mobile-nav__inner > *:nth-child(1) { animation-delay: 0.04s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(2) { animation-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(3) { animation-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(4) { animation-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(5) { animation-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(6) { animation-delay: 0.24s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(7) { animation-delay: 0.28s; }
.mobile-nav.is-open .mobile-nav__inner > *:nth-child(8) { animation-delay: 0.32s; }

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

.mobile-nav a,
.mobile-nav button {
  font-family: inherit;
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius);
  text-decoration: none;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.mobile-nav a:hover,
.mobile-nav button:hover {
  background-color: var(--secondary);
  color: var(--gold);
  transform: translateX(4px);
}

/* ---- Footer ---- */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border); background-color: var(--secondary); }
.site-footer__inner { display: grid; gap: 2.5rem; max-width: 76rem; margin: 0 auto; padding: 3.5rem 1rem; }
@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); padding: 3.5rem 1.5rem; }
}
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1.3fr 0.9fr 1fr 1fr; padding: 3.5rem 1.5rem; }
}
.site-footer__brand { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.5rem; }
.site-footer__tagline { margin-top: 0.75rem; max-width: 18rem; font-size: 0.875rem; line-height: 1.625; color: var(--muted-foreground); }
.site-footer__links { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; font-size: 0.875rem; }
.site-footer__links a { color: var(--muted-foreground); text-decoration: none; transition: color 150ms; }
.site-footer__links a:hover { color: var(--foreground); }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; font-size: 0.875rem; }
.site-footer__contact a { color: var(--muted-foreground); display: flex; align-items: center; gap: 0.5rem; transition: color 150ms; }
.site-footer__contact a:hover { color: var(--foreground); }
.site-footer__bottom { border-top: 1px solid var(--border); padding: 1.25rem 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* ---- Flash messages ---- */
.flash-messages {
  position: fixed;
  top: 6.5rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 26rem;
  width: calc(100vw - 4rem);
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 16px -6px rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--foreground);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toast-slide-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.flash-success { border-left: 4px solid oklch(0.62 0.17 140) !important; }
.flash-error   { border-left: 4px solid var(--destructive) !important; }
.flash-info    { border-left: 4px solid var(--gold) !important; }
.flash-dismiss { background: none; border: none; cursor: pointer; color: var(--muted-foreground); opacity: 0.7; padding: 0; font-size: 1.25rem; line-height: 1; transition: color 0.15s, opacity 0.15s; }
.flash-dismiss:hover { opacity: 1; color: var(--foreground); }
@keyframes toast-slide-in { from { opacity: 0; transform: translateY(-1rem) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---- Quantity stepper ---- */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-stepper button {
  padding: 0.5rem 0.875rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 1rem;
  transition: color 150ms;
}
.qty-stepper button:hover { color: var(--foreground); }
.qty-stepper__val { width: 2.25rem; text-align: center; font-size: 0.875rem; }

/* ---- Order timeline ---- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; }
.timeline__dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline__dot {
  width: 1.75rem; height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.timeline__dot--done { border-color: var(--gold); background-color: oklch(0.82 0.11 85 / 0.15); color: var(--gold); }
.timeline__line { width: 1px; flex: 1; background-color: var(--border); }
.timeline__line--done { background-color: oklch(0.82 0.11 85 / 0.5); }
.timeline__content { padding-bottom: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.timeline__content--active { color: var(--foreground); }

/* ---- Admin tabs ---- */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.admin-tabs::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}
.admin-tab {
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 150ms, border-color 150ms;
}
.admin-tab:hover { color: var(--foreground); }
.admin-tab--active { border-color: var(--gold); color: var(--foreground); }

/* ---- Misc utils ---- */
.inline-flex { display: inline-flex; }
.block { display: block; }
.pointer-events-none { pointer-events: none; }
.cursor-not-allowed { cursor: not-allowed; }
.opacity-40 { opacity: 0.4; }
.select-none { user-select: none; }
.break-all { word-break: break-all; }
.h-px-line { height: 1px; flex: 1; background-color: var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Toggle switch ---- */
.switch { position: relative; display: inline-block; width: 2.75rem; height: 1.5rem; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute; inset: 0;
  background-color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 200ms;
}
.switch__slider::before {
  content: '';
  position: absolute;
  width: 1rem; height: 1rem;
  left: 0.2rem; top: 50%;
  transform: translateY(-50%);
  background-color: var(--muted-foreground);
  border-radius: 9999px;
  transition: transform 200ms, background-color 200ms;
}
.switch input:checked + .switch__slider { background-color: var(--primary); border-color: var(--primary); }
.switch input:checked + .switch__slider::before { transform: translate(1.25rem, -50%); background-color: white; }

/* ---- Select dropdown ---- */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ---- Page wrapper ---- */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

@keyframes page-entrance {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-main {
  flex: 1;
  animation: page-entrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bottom Navigation (Mobile Only) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5rem;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  padding: 0 0.5rem;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Make sure active theme color is respected in light mode */
html.light .mobile-bottom-nav {
  background-color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
html.light .mobile-bottom-nav__item {
  color: #555;
}
html.light .mobile-bottom-nav__item:hover,
html.light .mobile-bottom-nav__item:focus,
html.light .mobile-bottom-nav__item.active {
  color: var(--gold);
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
  gap: 0.25rem;
  transition: color 150ms;
}

.mobile-bottom-nav__item svg {
  transition: transform 150ms;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus,
.mobile-bottom-nav__item.active {
  color: var(--gold);
}

.mobile-bottom-nav__item:active svg {
  transform: scale(0.9);
}

.mobile-cart-badge {
  position: absolute;
  top: 0.25rem;
  right: 25%;
  min-width: 0.875rem;
  height: 0.875rem;
  padding: 0 0.125rem;
  border-radius: 99px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.55rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Hide on desktop, show only on mobile */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}
@media (max-width: 767px) {
  /* Prevent content overlap with bottom nav bar and fixed top header */
  body {
    padding-top: 3rem !important;
    padding-bottom: 3.5rem !important;
  }
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
  }
  /* Reduce top bar height */
  .site-header__inner {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 1rem !important;
    position: relative;
    height: 3rem;
  }
  /* Center logo absolutely */
  .site-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  /* Hide top header actions that are duplicated in the bottom nav */
  .site-header__actions .cart-btn,
  .site-header__actions #mobile-nav-toggle,
  .site-header__actions button[onclick="toggleTheme(event)"] {
    display: none !important;
  }
}

/* ---- Homepage Slideshow Carousel (Dynamic Viewport Height - Fits between Top & Bottom Bar) ---- */
.slideshow-container {
  max-width: 100%;
  margin: 0 auto 3rem auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.28);
  width: 100%;
  height: calc(100vh - 6.5rem - env(safe-area-inset-bottom, 0px));
  height: calc(100dvh - 6.5rem - env(safe-area-inset-bottom, 0px));
  min-height: calc(100vh - 6.5rem - env(safe-area-inset-bottom, 0px));
  min-height: calc(100dvh - 6.5rem - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 6.5rem - env(safe-area-inset-bottom, 0px));
  background-color: #111;
}
@media (min-width: 768px) {
  .slideshow-container {
    max-width: min(680px, 92vw);
    height: calc(100vh - 4.5rem);
    height: calc(100dvh - 4.5rem);
    min-height: calc(100vh - 4.5rem);
    min-height: calc(100dvh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    aspect-ratio: auto;
    margin: 0 auto 3.5rem auto;
  }
}
.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease-in-out;
  z-index: 1;
}
.slide-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.slide-item a {
  display: block;
  width: 100%;
  height: 100%;
}
.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms, opacity 150ms;
  opacity: 0;
  z-index: 10;
}
.slideshow-container:hover .slide-arrow {
  opacity: 1;
}
.slide-arrow:hover {
  background: var(--gold);
  color: var(--gold-foreground);
}
.slide-arrow-prev { left: 1rem; }
.slide-arrow-next { right: 1rem; }

.slide-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slide-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 150ms, transform 150ms;
}
.slide-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ==========================================================================
   Luxury Signature Animations & Atmosphere Styles
   ========================================================================== */

/* Header Scroll Glassmorphism State */
.site-header {
  transition: background-color 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.site-header--scrolled {
  background-color: var(--header-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow-card);
}

/* Hero 3D Luminous Particles Container (Visible only in Dark Mode where it looks stunning) */
#hero-particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
#hero-particles-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}
html.light #hero-particles-container {
  display: none !important;
}
html:not(.light) #hero-particles-container {
  display: block !important;
}

/* Continuously Drifting Scent Trail Text Glow */
.text-gold-trail {
  position: relative;
  display: inline-block;
  font-weight: 800 !important;
  color: var(--gold);
  background: linear-gradient(135deg, #ffd700 0%, #e5b83a 50%, #c4931a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html.light .text-gold-trail {
  color: #946800 !important;
  -webkit-text-fill-color: #946800 !important;
  background-image: linear-gradient(135deg, #b8860b 0%, #825b00 100%) !important;
  -webkit-background-clip: text !important;
  font-weight: 800 !important;
}
.text-gold-trail::after {
  content: '';
  position: absolute;
  inset: -2px -6px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.3) 0%, transparent 75%);
  filter: blur(6px);
  z-index: -1;
  animation: goldTrailGlow 4s ease-in-out infinite alternate;
}
@keyframes goldTrailGlow {
  0% {
    opacity: 0.3;
    transform: scaleX(0.95);
  }
  100% {
    opacity: 0.75;
    transform: scaleX(1.08);
  }
}

/* ==========================================
   ASYMMETRIC EDITORIAL COLLAGE SECTION
   ========================================== */
.editorial-collage-section {
  position: relative;
  max-width: 72rem;
  margin: 5rem auto;
  padding: 0 1rem;
}

.editorial-collage-container {
  position: relative;
  border-radius: 16px;
  padding: 3rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.editorial-glow {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

/* Mobile Staggered 3D Asymmetric Collage Layout (<768px) */
@media (max-width: 767px) {
  .editorial-collage-container {
    padding: 1.25rem 0.65rem;
  }

  .editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 2;
  }

  /* 1. Top-Right photo (Row 1, Cols 4-13) - Floats ABOVE text card */
  .main-bottle-card {
    grid-column: 4 / 13;
    grid-row: 1;
    z-index: 4;
    justify-self: end;
    width: 85%;
    margin-bottom: -1.75rem;
  }

  /* 2. Center-Left Typography block (Row 2, Cols 1-12) - Middle Layer */
  .editorial-typography-card {
    grid-column: 1 / 12;
    grid-row: 2;
    z-index: 3;
    padding: 1.35rem 1rem;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  }

  /* 3. Bottom-Right detail photo (Row 3, Cols 4-13) - Tucks BEHIND text card */
  .detail-photo-card {
    grid-column: 4 / 13;
    grid-row: 3;
    z-index: 1;
    justify-self: end;
    margin-top: -1.75rem;
    width: 80%;
  }

  .editorial-heading {
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
  }

  .editorial-excerpt {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.75rem !important;
  }

  .editorial-quote {
    font-size: 0.72rem !important;
    padding: 0.5rem 0.65rem !important;
    margin-bottom: 1rem !important;
  }

  .editorial-cta {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.85rem !important;
  }

  .editorial-image-tag {
    font-size: 0.5rem !important;
    padding: 0.2rem 0.5rem !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
  }

  .detail-badge {
    padding: 0.35rem 0.5rem !important;
    bottom: 0.5rem !important;
    left: 0.5rem !important;
  }

  .badge-number {
    font-size: 0.85rem !important;
  }

  .badge-text {
    font-size: 0.45rem !important;
  }
}

/* Desktop Asymmetric Overlapping Grid Layout (>= 768px) */
@media (min-width: 768px) {
  .editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 520px;
  }

  .main-bottle-card {
    grid-column: 6 / 13;
    grid-row: 1 / 2;
    z-index: 1;
    justify-self: end;
    width: 90%;
  }

  .editorial-typography-card {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    z-index: 3;
    margin-top: 1.5rem;
    padding: 2.5rem 2rem;
  }

  .detail-photo-card {
    grid-column: 8 / 12;
    grid-row: 2 / 3;
    z-index: 4;
    justify-self: end;
    margin-top: -3.5rem;
    margin-right: -1rem;
    width: 85%;
  }
}

/* Card & Image Wrappers with Clip-Path Reveal & Hover Depth */
.editorial-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  clip-path: inset(0 0 0 0 round 16px);
}

.editorial-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 22px 50px rgba(212, 175, 55, 0.25);
}

.editorial-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--secondary);
}

.main-bottle-card .editorial-image-wrapper {
  aspect-ratio: 16 / 11;
}

.detail-photo-card .editorial-image-wrapper {
  aspect-ratio: 1 / 1;
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card:hover .editorial-img {
  transform: scale(1.06);
}

/* Specular Light Sweep */
.editorial-specular-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 2;
  pointer-events: none;
}

.editorial-card:hover .editorial-specular-sweep {
  transform: translateX(100%);
}

.editorial-image-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: var(--card);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.detail-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.badge-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.badge-text {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--foreground);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Center Typography Block styling */
.editorial-typography-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.editorial-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--foreground);
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.editorial-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem 0;
}

.editorial-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.editorial-quote {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold);
  padding: 0.85rem 1rem;
  background: rgba(212, 175, 55, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.75rem;
}

.editorial-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* 3D Tilt Container & Specular Highlight Sweep */
.product-card, [data-tilt], .tilt-container {
  will-change: transform;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
.product-card__image {
  position: relative;
  overflow: hidden;
}
.glass-specular-sweep, .editorial-specular-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  z-index: 5;
}
@keyframes glassSweep {
  0% {
    opacity: 0;
    transform: translateX(-100%) rotate(25deg);
  }
  20% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateX(200%) rotate(25deg);
  }
}

/* Staggered Viewport Reveal - Noticeable Luxury Entrance for All Section Images & Cards */
.reveal-prepare {
  opacity: 0 !important;
  transform: translateY(28px) scale(0.97) !important;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity, transform;
}
.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  will-change: auto !important; /* Releases GPU layer memory immediately once settled */
}

/* Image reveal Ken Burns aperture settle */
.reveal-prepare img {
  transform: scale(1.05);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-visible img {
  transform: scale(1);
}

/* Fragrance Notes Storytelling */
.fragrance-notes-card {
  position: relative;
  overflow: hidden;
}
.fragrance-note-row {
  opacity: 0.3;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fragrance-note-row.note-row--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Magnetic CTAs - enable will-change only on active hover to preserve VRAM */
[data-magnetic], .btn-primary {
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-magnetic]:hover, .btn-primary:hover {
  will-change: transform;
}

/* Cart Badge Pulse Animation */
@keyframes cartBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.45); color: var(--gold); }
  100% { transform: scale(1); }
}
.cart-badge-pulse {
  animation: cartBadgePulse 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product Detail Purchase Form & Buttons Layout */
.product-purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.product-buttons-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  flex: 1;
  min-width: 240px;
}
@media (max-width: 480px) {
  .product-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }
  .qty-stepper {
    width: 100%;
    justify-content: space-between;
  }
  .qty-stepper__val {
    flex: 1;
  }
  .product-buttons-group {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   Combo Offer Spotlight Banner (Homepage)
   ============================================================ */
.combo-spotlight-banner {
  margin: 0 0 3rem 0;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.combo-banner-text-block {
  max-width: 34rem;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.combo-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  max-width: 100%;
  min-width: 0;
}

/* Dark Mode (Default) */
.combo-spotlight-banner {
  background: linear-gradient(135deg, oklch(0.22 0.04 25) 0%, oklch(0.16 0.02 25) 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.55);
}
.combo-spotlight-banner .combo-banner-title {
  color: #ffffff;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  word-break: break-word;
}
.combo-spotlight-banner .combo-banner-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
}
.combo-spotlight-banner .combo-banner-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}
.combo-spotlight-banner .combo-banner-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold);
  color: #0b0b0b;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.combo-spotlight-banner .combo-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px -5px rgba(212, 175, 55, 0.35);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.combo-spotlight-banner .combo-banner-subnote {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
  word-break: break-word;
}

/* Light Mode Overrides */
html.light .combo-spotlight-banner {
  background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 35px -10px rgba(212, 175, 55, 0.16), 0 4px 18px rgba(0, 0, 0, 0.04);
}
html.light .combo-spotlight-banner .combo-banner-title {
  color: oklch(0.2 0.015 20);
}
html.light .combo-spotlight-banner .combo-banner-desc {
  color: oklch(0.42 0.02 40);
}
html.light .combo-spotlight-banner .combo-banner-glow {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, transparent 70%);
}
html.light .combo-spotlight-banner .combo-banner-badge {
  background: rgba(212, 175, 55, 0.15);
  color: #7d5e12;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
html.light .combo-spotlight-banner .combo-banner-btn {
  box-shadow: 0 8px 22px -5px rgba(180, 40, 40, 0.32);
}
html.light .combo-spotlight-banner .combo-banner-subnote {
  color: oklch(0.5 0.02 40);
}

/* Mobile & Small Screens: Combo Banner responsive wrap & no overflow */
@media (max-width: 768px) {
  .combo-spotlight-banner {
    padding: 1.5rem 1.15rem !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
  }
  .combo-banner-text-block {
    width: 100% !important;
    max-width: 100% !important;
  }
  .combo-banner-actions {
    width: 100% !important;
    align-items: stretch !important;
  }
  .combo-banner-btn {
    width: 100% !important;
    white-space: normal !important;
    padding: 0.75rem 1rem !important;
    font-size: clamp(0.8125rem, 3.4vw, 0.9375rem) !important;
    line-height: 1.3 !important;
  }
  .combo-banner-subnote {
    text-align: center !important;
    width: 100% !important;
    font-size: clamp(0.6875rem, 2.5vw, 0.75rem) !important;
  }
}

@media (max-width: 320px) {
  .combo-spotlight-banner {
    padding: 1.15rem 0.65rem !important;
    border-radius: var(--radius) !important;
  }
  .combo-banner-btn {
    padding: 0.65rem 0.5rem !important;
    font-size: 0.75rem !important;
    gap: 0.35rem !important;
  }
}

/* ============================================================
   Stats Cards Grid (Fixed 2 Columns on Mobile)
   ============================================================ */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.stat-card {
  padding: 1.5rem 1rem;
  background: var(--card);
  border: 1px solid oklch(0.32 0.03 25 / 0.7);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  transition: border-color 300ms, transform 300ms;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  box-sizing: border-box;
}
html.light .stat-card {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.15;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* Fixed 2 Columns on Mobile / Tablets */
@media (max-width: 860px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 2.25rem !important;
  }
  .stat-card {
    padding: 1.15rem 0.65rem !important;
    border-radius: var(--radius) !important;
  }
  .stat-card .stat-number {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
  }
  .stat-card .stat-label {
    font-size: clamp(0.625rem, 2.5vw, 0.725rem) !important;
  }
}

@media (max-width: 340px) {
  .stats-cards-grid {
    gap: 0.45rem !important;
  }
  .stat-card {
    padding: 0.85rem 0.35rem !important;
  }
  .stat-card .stat-icon {
    width: 20px !important;
    height: 20px !important;
  }
}

/* ============================================================
   Cookie & Privacy Notice Banner (Responsive & Mobile-Aware)
   ============================================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 28rem;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  z-index: 10002;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

.cookie-consent-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cookie-consent-banner__icon {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.125rem;
}

.cookie-consent-banner__content {
  flex: 1;
  min-width: 0;
}

.cookie-consent-banner__title {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.cookie-consent-banner__text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.45;
  word-break: break-word;
}

.cookie-consent-banner__actions {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-consent-banner__link {
  font-size: 0.75rem;
  color: var(--gold);
  text-decoration: underline;
}

.cookie-consent-banner__btn {
  font-size: 0.75rem !important;
  padding: 0.35rem 0.95rem !important;
  min-height: 32px !important;
  border-radius: var(--radius-sm) !important;
}

/* Mobile responsive adjustments: sit cleanly above mobile-bottom-nav */
@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: calc(3.85rem + env(safe-area-inset-bottom, 0px)) !important;
    left: 0.65rem !important;
    right: 0.65rem !important;
    width: auto !important;
    max-width: calc(100vw - 1.3rem) !important;
    margin: 0 auto !important;
    padding: 0.85rem 1rem !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
  }
  .cookie-consent-banner__text {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
  }
}

