/*
 * Aurelia final storefront polish
 * Loaded after the existing theme layers. It keeps the admin theme colour
 * controls intact while normalising layout, spacing and responsive behaviour.
 */
:root {
  --lux-surface: color-mix(in srgb, var(--ink) 87%, #191209);
  --lux-surface-2: color-mix(in srgb, var(--ink) 73%, #352312);
  --lux-panel: rgba(22, 18, 13, .88);
  --lux-line: rgba(239, 201, 126, .22);
  --lux-line-strong: rgba(239, 201, 126, .48);
  --lux-muted: color-mix(in srgb, var(--cream) 72%, #857766);
  --lux-shadow: 0 26px 80px rgba(0, 0, 0, .48);
  --lux-radius: 18px;
}

html { scroll-padding-top: 96px; }
body {
  min-width: 320px;
  background:
    radial-gradient(950px 500px at 92% -14%, color-mix(in srgb, var(--gold) 19%, transparent), transparent 68%),
    radial-gradient(720px 460px at -10% 46%, rgba(111, 67, 20, .16), transparent 76%),
    var(--ink);
}
::selection { background: var(--gold); color: #170f07; }
body.menu-open, body.filters-open { overscroll-behavior: none; }
main { overflow: clip; }
img { max-width: 100%; }
button, input, select, textarea { min-width: 0; }
:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}
.container { width: min(1320px, calc(100% - clamp(28px, 5vw, 76px))); }

/* Announcement and navigation */
.announcement-bar {
  min-height: 34px;
  height: auto;
  padding: 7px 16px;
  background: linear-gradient(90deg, #080706 0%, #1c1309 50%, #080706 100%);
  color: color-mix(in srgb, var(--champagne) 87%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.02px;
}
.site-header {
  height: auto;
  min-height: 82px;
  background: color-mix(in srgb, var(--header) 92%, transparent);
  border-bottom-color: rgba(255, 255, 255, .085);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.site-header.is-scrolled {
  height: auto;
  min-height: 70px;
  background: color-mix(in srgb, var(--header) 98%, transparent);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .35);
}
.header-shell { min-height: inherit; gap: clamp(10px, 1.5vw, 28px); }
.brand { width: clamp(138px, 13vw, 188px); flex: 0 0 auto; }
.brand img { height: 52px; width: 100%; object-fit: contain; object-position: left center; }
.desktop-nav { gap: clamp(10px, 1.28vw, 24px); min-width: 0; }
.desktop-nav > a, .nav-dropdown > a {
  min-height: 82px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--cream) 85%, #aaa);
  font-size: clamp(9px, .7vw, 11px);
  letter-spacing: .75px;
}
.site-header.is-scrolled .desktop-nav > a,
.site-header.is-scrolled .nav-dropdown > a { min-height: 70px; }
.desktop-nav > a::after, .nav-dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width .22s ease;
}
.desktop-nav > a, .nav-dropdown > a { position: relative; }
.desktop-nav > a:hover::after, .desktop-nav > a.active::after, .nav-dropdown > a:hover::after { width: 100%; }
.nav-popover {
  top: 100%;
  width: min(430px, 62vw);
  padding: 14px;
  border: 1px solid var(--lux-line);
  border-radius: 0 0 14px 14px;
  background: rgba(16, 13, 10, .98);
  box-shadow: var(--lux-shadow);
}
.nav-popover-grid a { border-radius: 8px; }
.header-actions { gap: 3px; flex: 0 0 auto; }
.icon-button, .mobile-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--cream);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.icon-button:hover, .mobile-toggle:hover {
  color: var(--champagne);
  background: rgba(255, 228, 173, .09);
  transform: translateY(-1px);
}
.cart-button span {
  width: 18px;
  height: 18px;
  right: 0;
  top: 1px;
  border: 1px solid rgba(22, 16, 9, .6);
  background: linear-gradient(135deg, var(--champagne), var(--gold));
}
.search-drawer { background: rgba(11, 9, 7, .98); }
.search-drawer.open { max-height: 112px; border-bottom-color: var(--lux-line); }
.search-form { min-height: 82px; height: auto; }
.search-form input { min-height: 48px; }

/* Mobile drawer */
.mobile-menu {
  width: min(405px, 91vw);
  padding: 22px clamp(20px, 5vw, 34px) 34px;
  background:
    radial-gradient(420px 280px at 100% 0%, rgba(207, 160, 69, .14), transparent 72%),
    #100e0b;
  border-right: 1px solid var(--lux-line);
  box-shadow: 24px 0 70px rgba(0, 0, 0, .58);
}
.mobile-menu-top { color: var(--champagne); letter-spacing: 1.4px; font-size: 10px; }
.mobile-menu > a, .mobile-menu summary { line-height: 1.12; }
.mobile-menu > a { font-size: clamp(28px, 8vw, 36px); }
.mobile-menu summary { font-size: clamp(27px, 7.6vw, 35px); }
.mobile-menu a:focus-visible, .mobile-menu summary:focus-visible { outline-offset: 6px; }
.mobile-overlay { background: rgba(0, 0, 0, .68); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* Hero */
.hero-section {
  min-height: 620px;
  height: min(800px, calc(100svh - 34px));
  isolation: isolate;
  background: #080706;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(48% 55% at 72% 49%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 72%),
    linear-gradient(0deg, rgba(0,0,0,.65) 0%, transparent 30%);
}
.hero-carousel { z-index: 0; }
.hero-slide { min-height: 100%; }
.hero-art img, .hero-slide .hero-art img {
  object-position: 67% center;
  transform-origin: 68% center;
  filter: brightness(.78) saturate(.92) contrast(1.06);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(3, 3, 2, .985) 0%, rgba(3, 3, 2, .93) 25%, rgba(3, 3, 2, .62) 50%, rgba(3, 3, 2, .18) 79%, rgba(3, 3, 2, .34) 100%);
}
.hero-content { z-index: 2 !important; padding-block: 66px 105px; }
.hero-content h1 {
  max-width: min(800px, 65vw);
  margin-bottom: 22px;
  font-size: clamp(58px, 6.25vw, 98px);
  line-height: .86;
  letter-spacing: -.036em;
  text-wrap: balance;
  text-shadow: 0 9px 48px rgba(0, 0, 0, .42);
}
.hero-copy { max-width: 545px; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.7; }
.hero-eyebrow { margin-bottom: 18px; }
.btn-gold, .btn-outline-gold {
  min-height: 50px;
  border-radius: 7px;
  padding: 14px 22px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn-gold {
  border-color: color-mix(in srgb, var(--champagne) 73%, transparent);
  background: linear-gradient(135deg, var(--champagne), var(--button) 62%, var(--gold));
  box-shadow: 0 12px 32px color-mix(in srgb, var(--gold) 23%, transparent);
}
.btn-gold:hover { box-shadow: 0 18px 42px color-mix(in srgb, var(--gold) 35%, transparent); }
.btn-outline-gold { border-color: color-mix(in srgb, var(--gold) 80%, transparent); background: rgba(12, 10, 7, .42); backdrop-filter: blur(8px); }
.hero-proof { margin-top: 29px; }
.hero-carousel-controls { z-index: 4; bottom: 34px; }
.hero-carousel-arrow { background: rgba(12,10,7,.54); border-color: var(--lux-line-strong); backdrop-filter: blur(9px); }
.hero-carousel-dots button { background: rgba(255,255,255,.36); }
.hero-carousel-dots button.is-active { background: var(--champagne); }
.scroll-cue { z-index: 3; }

/* Core home sections */
.section-space { padding-block: clamp(72px, 9vw, 126px); }
.section-heading { margin-bottom: clamp(28px, 3.5vw, 50px); }
.section-heading h2, .editorial-copy h2, .notes-panel h2, .content-prose h2 {
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-heading.with-link { align-items: end; }
.text-link { color: var(--champagne); }
.text-link:hover { color: var(--cream); border-color: var(--champagne); }

/* Scent story */
.scent-story {
  min-height: 690px;
  height: 100svh;
  background:
    radial-gradient(640px 440px at 50% 45%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 68%),
    linear-gradient(135deg, #15100b, #070706 74%);
}
.story-grid { gap: clamp(26px, 4.2vw, 68px); }
.story-copy h2 { max-width: 11ch; }
.story-copy p { max-width: 34ch; }
.story-bottle-wrap { height: min(66vh, 610px); }
.story-bottle { height: min(66vh, 585px); max-width: 440px; }
.story-step { border-left-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.story-step p { max-width: 31ch; }
.story-progress span { background: rgba(255, 255, 255, .17); }

/* Trust, collection and product cards */
.benefits-bar { background: linear-gradient(90deg, #0b0a08, #17120c 50%, #0b0a08); border-block-color: rgba(255, 255, 255, .10); }
.benefits-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.benefit { min-height: 105px; border-right-color: var(--lux-line); padding: 23px 20px; }
.benefit > i { color: var(--champagne); }
.collection-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(11px, 1.3vw, 19px); }
.collection-card {
  height: clamp(335px, 29vw, 455px);
  border-color: var(--lux-line-strong);
  border-radius: var(--lux-radius);
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}
.collection-card:hover { border-color: var(--champagne); box-shadow: 0 24px 54px rgba(0,0,0,.35); }
.collection-card img { filter: brightness(.78) contrast(1.06); }
.collection-card > div { padding-right: 18px; }
.product-grid, .shop-product-grid, .account-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.35vw, 20px); }
.product-card {
  min-width: 0;
  background: linear-gradient(180deg, rgba(31,25,19,.92), rgba(15,12,9,.96));
  border-color: var(--lux-line);
  border-radius: var(--lux-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}
.product-card:hover { border-color: var(--lux-line-strong); box-shadow: 0 24px 48px rgba(0, 0, 0, .38); }
.product-media {
  height: clamp(275px, 25vw, 380px);
  background:
    radial-gradient(circle at 50% 32%, rgba(198, 147, 57, .17), transparent 42%),
    linear-gradient(145deg, #282018, #100e0b 73%);
}
.product-media img { object-fit: contain; padding: 10px; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-info { min-height: 150px; padding: 18px 17px 17px; }
.product-info h3 { font-size: clamp(23px, 1.7vw, 30px); line-height: .98; }
.product-actions { z-index: 3; }
.round-action { background: rgba(14, 11, 8, .86); border-color: var(--lux-line); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.round-action:hover, .round-action.is-active { background: var(--champagne); color: #1d1409; }
.product-cart-form, .product-configure-link { z-index: 3; }
.product-cart-form button, .product-configure-link { min-height: 46px; }
.product-price strong { color: var(--champagne); }
.product-rating span { color: var(--champagne); }

/* Promo, editorial, social, newsletter and footer */
.promo-grid { gap: clamp(12px, 1.3vw, 20px); }
.promo-card, .promo-card.wide { border-radius: var(--lux-radius); border-color: var(--lux-line-strong); overflow: hidden; }
.promo-card { min-height: clamp(305px, 28vw, 450px); }
.promo-card.wide { min-height: clamp(320px, 28vw, 430px); }
.promo-card:hover { border-color: var(--champagne); }
.promo-content { max-width: min(82%, 540px); }
.editorial-split { width: min(1440px, 100%); }
.editorial-image { min-height: clamp(420px, 42vw, 620px); }
.editorial-copy { padding: clamp(55px, 8vw, 138px) clamp(26px, 8vw, 150px); }
.testimonial, .fragrance-gallery-card { border-color: var(--lux-line); border-radius: var(--lux-radius); }
.fragrance-gallery-card { overflow: hidden; }
.newsletter-panel {
  border-top-color: var(--lux-line);
  border-bottom-color: var(--lux-line);
  background: radial-gradient(560px 300px at 78% 50%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 75%), linear-gradient(110deg, #161008, #2d1b0c);
}
.newsletter-form { border-color: color-mix(in srgb, var(--champagne) 32%, transparent); }
.site-footer { background: radial-gradient(700px 330px at 12% 0%, rgba(179,126,46,.10), transparent 72%), var(--footer); }
.footer-grid { gap: clamp(28px, 5vw, 78px); }
.footer-brand img { max-width: 180px; }
.footer-newsletter { border-color: var(--lux-line); }

/* Shop, product, cart, checkout, account and auth */
.page-hero { background: radial-gradient(700px 330px at 78% 10%, rgba(203,151,56,.14), transparent 72%), linear-gradient(180deg, #17120d, #0b0a08); }
.shop-layout { gap: clamp(24px, 4vw, 56px); }
.filters-panel { border-color: var(--lux-line); border-radius: 12px; background: rgba(19, 15, 11, .94); }
.filter-group input, .filter-group select, .sort-form select { border-color: rgba(255,255,255,.14); background: rgba(7,6,5,.55); color: var(--cream); }
.filter-group input:focus, .filter-group select:focus, .sort-form select:focus { border-color: var(--champagne); }
.detail-main-image { background: radial-gradient(circle at 50% 30%, rgba(205,153,63,.16), transparent 47%), #12100d; border-color: var(--lux-line); border-radius: var(--lux-radius); }
.thumbnail-strip { gap: 10px; }
.thumb { border-color: var(--lux-line); border-radius: 10px; }
.thumb.active { border-color: var(--champagne); }
.product-detail-copy h1 { letter-spacing: -.03em; }
.variant-pill span { border-color: var(--lux-line); }
.variant-pill input:checked + span { border-color: var(--champagne); background: rgba(219,172,83,.11); }
.notes-panel, .order-summary, .account-panel, .contact-form, .auth-card { border-color: var(--lux-line); border-radius: var(--lux-radius); }
.cart-row { border-color: var(--lux-line); }
.checkout-item { min-width: 0; }
.payment-option { border-color: var(--lux-line); }
.payment-option:has(input:checked) { border-color: var(--champagne); }

/* Modals */
.quick-modal { border-color: var(--lux-line-strong); border-radius: var(--lux-radius); overflow: hidden; background: #14110d; }
.quick-media { background: radial-gradient(circle at 50% 36%, rgba(206,154,60,.17), transparent 48%), #100e0b; }
.quick-media img { object-fit: contain; padding: 20px; }
.modal-backdrop.show { opacity: .78; }

/* Responsive improvements */
@media (max-width: 1180px) {
  html { scroll-padding-top: 86px; }
  .site-header { min-height: 74px; }
  .site-header.is-scrolled { min-height: 68px; }
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-actions .d-md-inline-flex { display: none !important; }
  .brand { width: 154px; }
  .story-grid { grid-template-columns: 1fr; gap: 18px; }
  .story-copy { max-width: 650px; }
  .story-bottle-wrap { height: 410px; margin-block: 4px; }
  .story-bottle { height: 405px; }
  .story-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .story-step p { max-width: none; }
  .story-progress { display: none; }
  .scent-story { height: auto; min-height: 0; }
  .story-stage { padding: 86px 0; }
}

@media (max-width: 991px) {
  .container { width: min(780px, calc(100% - 40px)); }
  .hero-section { min-height: 575px; height: min(730px, calc(100svh - 34px)); }
  .hero-content h1 { max-width: 620px; font-size: clamp(52px, 8.5vw, 78px); }
  .hero-art img, .hero-slide .hero-art img { object-position: 64% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3,3,2,.96), rgba(3,3,2,.77) 54%, rgba(3,3,2,.24)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection-card { height: clamp(300px, 42vw, 385px); }
  .product-grid, .shop-product-grid, .account-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-media { height: clamp(255px, 32vw, 335px); }
  .product-detail-grid, .contact-grid, .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
}

@media (max-width: 699px) {
  html { scroll-padding-top: 78px; }
  .container { width: calc(100% - 28px); }
  .announcement-bar { min-height: 30px; padding-block: 6px; font-size: 8.5px; letter-spacing: .45px; white-space: nowrap; overflow: hidden; }
  .site-header { min-height: 68px; }
  .site-header.is-scrolled { min-height: 64px; }
  .brand { width: 126px; }
  .brand img { height: 43px; }
  .icon-button, .mobile-toggle { width: 36px; height: 36px; font-size: 18px; }
  .hero-section { min-height: 535px; height: 585px; }
  .hero-art img, .hero-slide .hero-art img { object-position: 62% center; }
  .hero-content { padding-block: 48px 43px; }
  .hero-content h1 { max-width: 350px; font-size: clamp(45px, 13.3vw, 58px); letter-spacing: -.03em; }
  .hero-copy { max-width: 330px; margin-bottom: 22px; font-size: 12.5px; }
  .hero-buttons { width: min(238px, 100%); display: grid; grid-template-columns: 1fr; }
  .btn-gold, .btn-outline-gold { min-height: 47px; padding-inline: 14px; font-size: 9px; }
  .hero-proof { margin-top: 20px; max-width: 280px; font-size: 8.5px; letter-spacing: .57px; }
  .hero-carousel-controls { bottom: 16px; gap: 8px; }
  .hero-carousel-arrow { width: 31px; height: 31px; }
  .scroll-cue { display: none; }
  .section-space { padding-block: 68px; }
  .section-heading.with-link { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: clamp(39px, 12vw, 50px); }
  .scent-story .story-stage { padding: 68px 0; }
  .story-copy h2 { font-size: 45px; }
  .story-bottle-wrap { height: 340px; }
  .story-bottle { width: 290px; height: 335px; }
  .story-orbit { width: 250px; height: 150px; }
  .orbit-two { width: 168px; height: 250px; }
  .story-steps { grid-template-columns: 1fr; gap: 16px; }
  .story-step { padding-left: 14px; }
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { min-height: 0; padding: 17px 8px; border-top: 1px solid var(--lux-line); border-right: 1px solid var(--lux-line); }
  .benefit > i { font-size: 20px; }
  .benefit h3 { font-size: 9px; }
  .benefit p { font-size: 9px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-card { height: 267px; border-radius: 10px; }
  .collection-card > div { left: 13px; right: 12px; bottom: 13px; }
  .collection-card h3 { font-size: 22px; }
  .collection-card p { display: none; }
  .product-grid, .shop-product-grid, .account-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { border-radius: 10px; }
  .product-media { height: min(59vw, 252px); min-height: 188px; }
  .product-media img { padding: 5px; }
  .product-actions { opacity: 1; transform: none; right: 7px; top: 7px; gap: 5px; }
  .round-action { width: 31px; height: 31px; font-size: 12px; }
  .product-cart-form { position: relative; transform: none; }
  .product-cart-form button, .product-configure-link { min-height: 44px; padding: 9px 7px; font-size: 8px; }
  .product-info { min-height: 118px; padding: 12px 10px 13px; }
  .product-info h3 { font-size: 20px; }
  .product-meta { font-size: 8px; letter-spacing: .7px; }
  .product-rating { font-size: 9px; }
  .product-rating small, .product-price del { display: none; }
  .product-price strong { font-size: 11px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card, .promo-card.wide, .promo-card.tall { grid-column: auto; min-height: 260px; }
  .promo-content { max-width: 80%; padding: 25px; }
  .promo-content h2 { font-size: 35px; }
  .editorial-image { min-height: 290px; }
  .editorial-copy { padding: 48px 14px; }
  .newsletter-panel { padding: 50px 0; }
  .newsletter-form { display: grid; padding: 0; gap: 9px; border: 0; background: none; }
  .newsletter-form input { min-height: 48px; padding: 14px; background: #fff0d2; }
  .newsletter-form .btn-gold { width: 100%; }
  .filters-panel { width: min(355px, 92vw); }
  .detail-main-image { height: min(420px, 108vw); }
  .product-detail-copy h1 { font-size: 48px; }
  .notes-grid, .reviews-grid { grid-template-columns: 1fr; gap: 14px; }
  .cart-row { position: relative; grid-template-columns: 78px 1fr; gap: 12px; }
  .cart-image { height: 90px; }
  .cart-quantity { grid-column: 2; }
  .cart-total { position: absolute; right: 0; bottom: 16px; }
  .purchase-row { flex-wrap: wrap; }
  .purchase-row .quantity-control { width: 100%; justify-content: center; }
  .purchase-actions { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom { display: grid; gap: 8px; font-size: 8px; }
  .quick-copy { padding: 30px 21px; }
  .quick-media { min-height: 270px; }
  .flash { top: 77px; right: 12px; }
}

@media (max-width: 390px) {
  .brand { width: 115px; }
  .header-actions { gap: 0; }
  .icon-button, .mobile-toggle { width: 33px; }
  .hero-content h1 { font-size: 44px; }
  .product-media { min-height: 173px; }
  .product-info h3 { font-size: 18px; }
}

@media (hover: none) {
  .product-actions { opacity: 1; transform: none; }
  .product-cart-form { position: relative; transform: none; }
  .product-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
