/* ==========================================================================
   Monica's Little Luxuries — Global Components & UI Kit
   ========================================================================== */

/* --- 1. Floating Glassmorphic Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--duration-normal) var(--ease-slow),
              backdrop-filter var(--duration-normal) var(--ease-slow),
              border-color var(--duration-normal) var(--ease-slow),
              height var(--duration-normal) var(--ease-slow);
  border-bottom: 1px solid transparent;
}

.site-header.header-scrolled {
  background-color: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-subtle);
  height: 74px;
}

[data-theme="light"] .site-header {
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

[data-theme="light"] .brand-logo .logo-main {
  color: #1C1917;
}

[data-theme="light"] .brand-logo .logo-sub {
  color: #705104;
  font-weight: 500;
}

[data-theme="light"] .nav-link {
  color: #2C2825;
  font-weight: 500;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #B8860B;
}

[data-theme="light"] .nav-icon-btn {
  color: #1C1917;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-text-primary);
}

.brand-logo .logo-main {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-gold-light);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-logo .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
  font-weight: 400;
  transition: color var(--duration-normal) var(--ease-slow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--color-gold-primary);
  transition: width var(--duration-normal) var(--ease-slow), left var(--duration-normal) var(--ease-slow);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.15s var(--ease-slow);
  position: relative;
  touch-action: manipulation;
}

.nav-icon-btn:hover {
  color: var(--color-gold-light);
  border-color: var(--color-border-gold);
  background: rgba(212, 175, 55, 0.05);
}

.nav-icon-btn:active {
  transform: scale(0.92);
  transition: transform 60ms ease-out;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.theme-toggle-btn svg {
  transition: transform 0.4s var(--ease-slow), opacity 0.3s ease;
}

.theme-icon-sun {
  display: none !important;
  color: var(--color-gold-light);
}

.theme-icon-moon {
  display: block !important;
  color: var(--color-gold-light);
}

[data-theme="light"] .theme-icon-sun {
  display: block !important;
}

[data-theme="light"] .theme-icon-moon {
  display: none !important;
}

[data-theme="dark"] .theme-icon-sun {
  display: none !important;
}

[data-theme="dark"] .theme-icon-moon {
  display: block !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-icon-sun {
    display: block !important;
  }
  :root:not([data-theme="dark"]) .theme-icon-moon {
    display: none !important;
  }
}

.theme-toggle-btn:hover {
  transform: rotate(15deg);
  border-color: var(--color-border-gold-bright);
}

.theme-toggle-btn:active {
  transform: scale(0.92) rotate(15deg);
  transition: transform 60ms ease-out;
}

/* Mobile Theme Toggle Pill */
.mobile-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-border-gold);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s var(--ease-slow);
  box-shadow: var(--shadow-subtle);
  touch-action: manipulation;
}

.mobile-theme-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-theme-toggle:hover {
  border-color: var(--color-gold-primary);
  background: var(--color-bg-deep);
  color: var(--color-gold-light);
}

.mobile-theme-toggle:active {
  transform: scale(0.95);
  transition: transform 60ms ease-out;
}

.cart-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s var(--ease-spring-snappy);
}

.cart-counter.pop {
  animation: badgeSpring 0.4s var(--ease-spring-snappy) forwards;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  touch-action: manipulation;
}

.mobile-nav-toggle:active {
  transform: scale(0.92);
  transition: transform 60ms ease-out;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform 0.25s var(--ease-slow), opacity 0.2s ease, background-color 0.25s ease;
}

/* --- 2. Luxury Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s var(--ease-slow), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.97) !important;
  transition: transform 60ms ease-out !important;
}

.btn-gold {
  background: var(--color-gold-primary);
  color: var(--color-bg-primary);
  border: 1px solid var(--color-gold-light);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  color: #000;
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold-light);
  border: 1px solid var(--color-border-gold-bright);
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
  transition: left 0.7s var(--ease-slow);
}

.btn-outline-gold:hover::before {
  left: 100%;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

/* Light Mode Luxury Button Contrast Overrides */
[data-theme="light"] .btn-gold {
  background: #B8860B;
  color: #FFFFFF;
  border-color: #946C0B;
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.25);
}

[data-theme="light"] .btn-gold:hover {
  background: #946C0B;
  color: #FFFFFF;
  box-shadow: 0 6px 25px rgba(184, 134, 11, 0.35);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-outline-gold {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1C1917;
  border: 1.5px solid #946C0B;
  font-weight: 600;
}

[data-theme="light"] .btn-outline-gold:hover {
  background: #1C1917;
  color: #FAF7F2;
  border-color: #1C1917;
  box-shadow: 0 6px 25px rgba(28, 25, 23, 0.15);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1.15rem 2.5rem;
  font-size: 0.9rem;
}

/* --- 3. Product Cards & Grids --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem 2rem;
}

.product-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-slow),
              border-color var(--duration-normal) var(--ease-slow),
              box-shadow var(--duration-normal) var(--ease-slow);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-gold-bright);
  box-shadow: var(--shadow-glow);
}

.product-card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 105%; /* Aspect Ratio */
  overflow: hidden;
  background: #0d0d0d;
}

.product-card-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-slow), filter 0.8s var(--ease-slow);
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-gold);
  color: var(--color-gold-light);
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.7rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.product-scent-notes {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.product-price {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--color-gold-light);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.btn-card-add {
  padding: 0.55rem 1.15rem;
  font-size: 0.78rem;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- 4. Slide-out Sanctuary Bag Drawer --- */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-slow);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sanctuary-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg-surface);
  border-left: 1px solid var(--color-border-gold);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-apple-sheet);
  will-change: transform;
}

.sanctuary-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-subtle);
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.15s var(--ease-slow);
  touch-action: manipulation;
  cursor: pointer;
}

.drawer-close:hover {
  border-color: var(--color-border-gold);
  color: var(--color-gold-light);
}

.drawer-close:active {
  transform: scale(0.92);
  transition: transform 60ms ease-out;
}

.free-shipping-progress {
  padding: 1rem 2rem;
  background: var(--color-bg-deep);
  border-bottom: 1px solid var(--color-border-subtle);
}

.shipping-text {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.progress-bar-bg {
  width: 100%;
  height: 3px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-gold-metallic);
  width: 0%;
  transition: width 0.6s var(--ease-slow);
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 2rem 0;
}

.cart-empty-state p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-deep);
  border: 1px solid var(--color-border-subtle);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-primary);
  margin-bottom: 0.2rem;
}

.cart-item-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}

.qty-btn:hover {
  color: var(--color-gold-light);
}

.qty-num {
  font-size: 0.8rem;
  padding: 0 0.5rem;
  color: var(--color-text-primary);
}

.cart-item-price {
  font-size: 0.95rem;
  color: var(--color-gold-light);
  font-weight: 500;
}

.cart-item-remove {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  margin-top: 0.4rem;
  align-self: flex-start;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: #ff6b6b;
}

.drawer-footer {
  padding: 1.75rem 2rem;
  background: var(--color-bg-surface-elevated);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  color: var(--color-text-primary);
}

.drawer-subtotal-val {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold-light);
}

/* --- 5. Ultra-Minimal Ambient Audio Pill (Subtle Background Sound) --- */
.sanctuary-audio-pill {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  opacity: 0.85;
  box-shadow: var(--shadow-subtle);
  transition: opacity 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.sanctuary-audio-pill:hover {
  opacity: 1;
  border-color: var(--color-gold-primary);
  background: var(--color-bg-surface-elevated);
}

.audio-mute-toggle {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: transform 0.2s;
}

.audio-mute-toggle:hover {
  transform: scale(1.1);
}

.audio-svg-icon {
  width: 13px;
  height: 13px;
  stroke: var(--color-text-muted);
  transition: stroke 0.2s;
  display: block;
}

.sanctuary-audio-pill.playing .audio-svg-icon {
  stroke: var(--color-gold-primary);
}

.audio-mute-toggle:hover .audio-svg-icon {
  stroke: var(--color-gold-light);
}

.audio-track-label {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 2px 2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.audio-track-label:hover {
  color: var(--color-gold-light);
}

.sound-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 10px;
}

.sound-bar {
  width: 2px;
  height: 3px;
  background: var(--color-text-muted);
  border-radius: 1px;
  transition: all 0.2s;
}

.sanctuary-audio-pill.playing .sound-bar {
  background: var(--color-gold-primary);
}

.sanctuary-audio-pill.playing .sound-bar:nth-child(1) { animation: wave 1.2s infinite ease-in-out; }
.sanctuary-audio-pill.playing .sound-bar:nth-child(2) { animation: wave 1.2s infinite ease-in-out 0.2s; }
.sanctuary-audio-pill.playing .sound-bar:nth-child(3) { animation: wave 1.2s infinite ease-in-out 0.4s; }

@keyframes wave {
  0%, 100% { height: 2px; }
  50% { height: 10px; }
}

.audio-track-marquee-wrap {
  max-width: 160px;
  overflow: hidden;
  position: relative;
  display: inline-flex;
  white-space: nowrap;
}

.audio-track-marquee-wrap.marquee-active {
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 16px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 16px), transparent 100%);
}

.audio-track-name {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.audio-track-marquee-wrap.marquee-active .audio-track-name {
  animation: trackPingPong 7.5s ease-in-out infinite alternate;
}

@keyframes trackPingPong {
  0%, 22% {
    transform: translateX(0);
  }
  78%, 100% {
    transform: translateX(var(--scroll-dist, -50px));
  }
}

@media (max-width: 768px) {
  .sanctuary-audio-pill {
    bottom: 1rem;
    left: 1rem;
    padding: 0.3rem 0.6rem;
  }
  .audio-track-marquee-wrap {
    max-width: 120px;
  }
}

@media (max-width: 420px) {
  .audio-track-marquee-wrap {
    max-width: 98px;
  }
}

/* --- 5.5 Editorial Story & Callout Grids (Shared across pages) --- */
.legacy-grid,
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.editorial-grid.reverse {
  direction: rtl;
}

.editorial-grid.reverse > * {
  direction: ltr;
}

.legacy-img-frame,
.editorial-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-gold);
  box-shadow: var(--shadow-amber-halo);
  width: 100%;
}

.legacy-img-frame img,
.editorial-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.5s var(--ease-slow);
}

.legacy-img-frame:hover img,
.editorial-image-frame:hover img {
  transform: scale(1.03);
}

.editorial-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.editorial-eyebrow {
  font-size: 0.75rem;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: var(--text-h2);
  color: var(--color-text-primary);
  line-height: 1.25;
}

.editorial-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-secondary);
}

.editorial-actions {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 1rem;
}

@media (max-width: 992px) {
  .legacy-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .legacy-grid,
  .editorial-grid {
    gap: 2.5rem;
  }
  .editorial-content {
    gap: 1rem;
  }
  .editorial-actions {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    width: 100%;
  }
  .editorial-actions .btn {
    width: 100%;
  }
}

/* --- 6. Editorial Footer --- */
.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: 2.5rem;
  font-family: var(--font-sans);
  position: relative;
  z-index: 1;
}

.footer-quote-section {
  text-align: center;
  padding-bottom: clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: var(--text-quote);
  color: var(--color-gold-light);
  font-style: italic;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 1.25rem;
  line-height: 1.45;
}

.footer-quote-author {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem 2rem;
  margin-bottom: 4rem;
}

.footer-col-brand .brand-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-col-brand .footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: 0.28em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.footer-col-brand p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-gold-light);
  margin-bottom: 1.35rem;
  line-height: 1.3;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-slow), transform 0.3s var(--ease-slow);
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--color-gold-pale);
  transform: translateX(3px);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.newsletter-input-wrap {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--color-border-gold);
}

.newsletter-input {
  font-family: var(--font-sans);
  width: 100%;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
}

.newsletter-input::placeholder {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
}

.newsletter-submit {
  font-family: var(--font-sans);
  color: var(--color-gold-light);
  padding: 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-slow), color 0.3s var(--ease-slow);
}

.newsletter-submit:hover {
  transform: translateX(4px);
  color: var(--color-gold-pale);
}

.footer-bottom {
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease-slow);
}

.footer-legal-links a:hover {
  color: var(--color-gold-pale);
}

/* --- 7. Toast Notification --- */
.luxury-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-bg-surface-elevated);
  border: 1px solid var(--color-gold-primary);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 3000;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-apple-sheet), opacity 0.25s ease, box-shadow 0.3s ease;
}

.luxury-toast.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  color: var(--color-gold-light);
  font-size: 1.1rem;
}

/* --- 8. Mobile Navigation Sheet & Responsive Drawer --- */
.mobile-nav-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-slow),
              opacity 0.4s ease,
              visibility 0.4s ease;
}

.mobile-nav-sheet.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-header {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-slow);
}

.mobile-nav-close:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  text-align: center;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  transition: color 0.3s, transform 0.3s;
  display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-gold-light);
  transform: scale(1.05);
}

.mobile-nav-footer {
  margin-top: 1rem;
  text-align: center;
}

.mobile-nav-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-gold-light);
  letter-spacing: var(--tracking-wide);
}

/* --- 9. Global Responsive Adjustments --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }

  .site-header {
    height: var(--nav-height-mobile);
  }

  .site-header.header-scrolled {
    height: 64px;
  }

  .brand-logo .logo-main {
    font-size: 1.25rem;
    letter-spacing: 0.14em;
  }

  .brand-logo .logo-sub {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.15rem;
  }

  .site-header {
    height: var(--nav-height-mobile);
  }

  .header-container {
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-icon-btn {
    width: 36px;
    height: 36px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .btn-card-add {
    width: auto !important;
    flex-shrink: 0;
    padding: 0.55rem 1.15rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .sanctuary-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .sanctuary-audio-pill {
    bottom: 1rem;
    left: 1rem;
    padding: 0.3rem 0.65rem;
    max-width: calc(100vw - 2rem);
  }

  .audio-track-marquee-wrap {
    max-width: 110px;
  }

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
  }

  .luxury-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand-logo .logo-sub {
    display: none; /* Keep header ultra clean on very small screens */
  }

  .brand-logo .logo-main {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
  }

  .btn-lg {
    padding: 0.95rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .drawer-footer .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Theme-Responsive Dual Image & Section Utilities
   ========================================================================== */
.img-dark {
  display: block;
}

.img-light {
  display: none;
}

[data-theme="light"] .img-dark {
  display: none !important;
}

[data-theme="light"] .img-light {
  display: block !important;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .img-dark {
    display: none !important;
  }
  :root:not([data-theme="dark"]) .img-light {
    display: block !important;
  }
}

/* Private Salon & Newsletter Section */
.salon-newsletter-section {
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, var(--color-bg-deep) 80%);
  border-top: 1px solid var(--color-border-subtle);
  transition: background 0.4s var(--ease-slow);
}

[data-theme="light"] .salon-newsletter-section {
  background: radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.08) 0%, var(--color-bg-deep) 85%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .salon-newsletter-section {
    background: radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.08) 0%, var(--color-bg-deep) 85%);
  }
}
