:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --ink: #111111;
  --ink-soft: #333333;
  --paper: #ffffff;
  --paper-dim: #555555;
  --muted: #595959;
  --line: #eaeaea;
  --primary: #111111;
  --primary-hover: #333333;
  --accent: #b89a6c; /* Elegant gold/bronze */
  --accent-text: #7d5d28; /* WCAG AA+ accessible antique gold text on light backgrounds (5.6:1 on white) */
  --accent-light: #f4efeb;
  --wine: #8b2332;
  --sage: #455a4e;
  --radius: 0px; /* Sharp corners for premium look */
  --radius-sm: 0px;
  --shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
  --shadow-sm: 0 10px 20px -5px rgba(0,0,0,0.05);
  --ease: cubic-bezier(.25, .8, .25, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

h1, h2, h3, h4, .display {
  font-family: 'Playfair Display', 'Roboto', serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font-family: 'Roboto', sans-serif; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.pt-5 { padding-top: 64px; }
.border-top { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  padding: 8px 16px;
  background: #111111;
  color: #eeeeee;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
  word-break: keep-all;
}
@media (max-width: 600px) {
  .topbar {
    font-size: 10.5px;
    padding: 7px 10px;
  }
}
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo {
  font-family: 'Roboto', sans-serif;
  color: var(--ink);
  letter-spacing: 0.12em;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.logo:hover { opacity: 0.92; transform: translateY(-1px); }
.logo-mark {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(220,165,76,0.3));
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: scale(1.05); }
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.logo-text span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.logo em { font-style: normal; font-weight: 300; color: var(--accent-text); letter-spacing: 0.08em; }
.logo small { font-family: 'Roboto', sans-serif; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 500; }

.nav-main { display: flex; gap: 32px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.nav-main a { color: var(--ink-soft); position: relative; }
.nav-main a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-main a:hover::after, .nav-main a.active::after { width: 100%; }
.nav-main a.active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); position: relative; width: 40px; height: 40px; background: none; border: none; padding: 0; font-size: 18px; cursor: pointer; flex-shrink: 0; }
.cart-count {
  position: absolute; top: 3px; right: 1px; background: var(--accent-text); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.search-box { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
.search-box input { border: none; background: transparent; font-size: 12px; font-family: 'Roboto', sans-serif; width: 150px; outline: none; }
.search-box svg { opacity: 0.5; margin-right: 8px; width: 16px; height: 16px; }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500; transition: all 0.3s var(--ease); border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost.light:hover { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 85vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 24px; }
.hero h1, .hero .hero-slide-title { font-size: clamp(40px, 6vw, 72px); color: #fff; line-height: 1.1; margin-bottom: 24px; font-weight: 700; }
.hero h1 em, .hero .hero-slide-title em { font-style: italic; font-weight: 300; }
.hero .lead { font-size: 16px; font-weight: 300; margin-bottom: 40px; opacity: 0.9; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; }

/* ---------- Category Section ---------- */
.category-section { padding: 40px 0; background: var(--bg-alt); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card { position: relative; height: 300px; overflow: hidden; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%); }
.cat-card:hover img { transform: scale(1.05); }
.cat-content { position: absolute; bottom: 30px; left: 30px; z-index: 1; color: #fff; }
.cat-content h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.cat-content span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 4px; }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: 36px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 14px; }

/* ---------- Product Grid & Card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.card { display: flex; flex-direction: column; text-align: center; min-width: 0; max-width: 100%; }
.card-body { min-width: 0; max-width: 100%; }
.card-media { aspect-ratio: 3/4; position: relative; overflow: hidden; background: var(--bg-alt); margin-bottom: 20px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 4px; z-index: 6; box-shadow: 0 4px 10px rgba(0,0,0,0.18); }
.badge.sale { background: var(--wine); color: #fff; }

.card-brand { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.card-name { font-family: 'Roboto', sans-serif; font-size: 18px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }
.card-notes { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.price { font-size: 14px; font-weight: 500; color: var(--ink); }
.price .old { color: var(--muted); text-decoration: line-through; margin-right: 8px; font-size: 12px; }
.price .now { color: var(--wine); }

.card-footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; opacity: 0; transform: translateY(10px); transition: all 0.3s var(--ease); }
.card:hover .card-footer { opacity: 1; transform: translateY(0); }
.add-btn { background: var(--primary); color: #fff; border: none; padding: 10px 24px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.add-btn:hover { background: var(--accent); }

/* ---------- Banner ---------- */
.full-banner { background: var(--primary); color: #fff; text-align: center; padding: 100px 0; background-image: url('/images/banners/banner1.jpg'); background-size: cover; background-position: center; position: relative; }
.full-banner::before { content: ''; position: absolute; inset: 0; background: rgba(17,17,17,0.7); }
.banner-inner { position: relative; z-index: 1; max-width: 600px; }
.banner-text h2 { color: #fff; font-size: 42px; margin-bottom: 20px; }
.banner-text p { font-size: 16px; font-weight: 300; margin-bottom: 30px; opacity: 0.9; line-height: 1.8; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.feature-item .icon { font-size: 32px; margin-bottom: 16px; }
.feature-item h3 { font-family: 'Roboto', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; font-weight: 600; }
.feature-item p { font-size: 13px; color: var(--muted); }
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #0e0e0e; color: #ffffff; padding: 80px 0 40px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 60px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
.site-footer .logo { color: #ffffff; align-items: center; margin-bottom: 24px; }
.site-footer .logo .logo-text span { color: #ffffff !important; }
.site-footer .logo em { color: var(--accent) !important; }
.site-footer .logo-mark { height: 46px; }
.footer-grid p { color: #aaaaaa; font-size: 13px; }
.footer-grid h5 { font-family: 'Roboto', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 24px; font-weight: 700; }
.footer-grid a { display: block; color: #aaaaaa; font-size: 13px; margin-bottom: 12px; }
.footer-grid a:hover { color: var(--accent); }

.newsletter { display: flex; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 8px; margin-top: 24px; }
.newsletter input { flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; font-family: 'Roboto', sans-serif; outline: none; }
.newsletter button { background: none; border: none; color: #fff; text-transform: uppercase; font-size: 11px; letter-spacing: 0.1em; font-weight: 600; }
.newsletter button:hover { color: var(--accent); }

.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; color: #777; font-size: 12px; }

/* ---------- Shop / Product Detail / Cart Layouts ---------- */
/* Keeping logic from previous style, updating aesthetic */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.shop-layout > * { min-width: 0; }
.shop-layout.cart-layout { grid-template-columns: 1.6fr 1fr; }
.cart-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shop-mobile-filter-bar { display: none; }
@media (max-width: 860px) { 
  .shop-layout, .shop-layout.cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shop-mobile-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .shop-mobile-filter-bar select {
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
  }
  .shop-filter-aside {
    display: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .shop-filter-aside.active {
    display: block;
  }
  .shop-toolbar select {
    display: none;
  }
  .shop-toolbar {
    margin-bottom: 18px;
  }
}
.filter-block { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 24px; }
.filter-block h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 16px; }
.filter-opt { display: flex; align-items: center; gap: 12px; font-size: 13px; padding: 6px 0; color: var(--paper-dim); cursor: pointer; }
.filter-opt input { accent-color: var(--primary); }
.filter-opt:hover { color: var(--ink); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.shop-toolbar select { background: transparent; border: 1px solid var(--line); padding: 8px 16px; font-size: 12px; font-family: 'Roboto', sans-serif; border-radius: 4px; color: var(--ink); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); font-style: italic; }

/* ---------- Customer Reviews ---------- */
.review-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}
.review-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #aa7728 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.verified-badge {
  font-size: 11px;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-weight: 500;
}
html.dark-theme .verified-badge {
  color: #4ade80;
}
.review-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.review-content-body {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 0;
}

.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.pd-layout > * { min-width: 0; }
@media (max-width: 860px) {
  .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pd-media { position: relative; top: auto; padding: 20px; max-width: 100%; }
}
.pd-media {
  background: var(--bg-alt);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  max-height: 520px;
}
.pd-media img {
  width: 100%;
  max-width: 380px;
  max-height: 440px;
  object-fit: contain;
}
.breadcrumb { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 24px; }
.pd-brand { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; margin-bottom: 12px; font-weight: 600; }
.pd-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; line-height: 1.1; }
.pd-rating { font-size: 13px; color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.stars { color: var(--accent); }
.pd-price { font-size: 24px; margin-bottom: 32px; font-weight: 500; }
.pd-price .old { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-right: 12px; }
.pd-desc { color: var(--paper-dim); margin-bottom: 32px; font-size: 15px; line-height: 1.8; }
.notes-block { margin-bottom: 40px; }
.notes-row { display: flex; font-size: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notes-row b { width: 120px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.qty-row { display: flex; gap: 20px; margin-bottom: 32px; }
.qty-control { display: flex; border: 1px solid var(--line); }
.qty-control button { width: 40px; height: 48px; background: none; border: none; font-size: 16px; }
.qty-control span { width: 40px; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.pd-layout .add-btn { height: 48px; padding: 0 48px; font-size: 12px; }
.meta-table { width: 100%; font-size: 13px; margin-top: 48px; border-top: 1px solid var(--line); }
.meta-table td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.meta-table td:first-child { color: var(--muted); width: 120px; }

/* Tabs */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: 64px 0 32px; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tab-btn { background: none; border: none; padding: 0 0 16px; font-family: 'Roboto', sans-serif; font-size: 18px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; flex-shrink: 0; }
.tab-btn.active { color: var(--ink); border-color: var(--ink); }
@media (max-width: 640px) {
  .tabs { gap: 18px; margin: 40px 0 24px; }
  .tab-btn { font-size: 15px; padding-bottom: 12px; }
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Forms */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select { border: 1px solid var(--line); padding: 12px 16px; font-family: 'Roboto', sans-serif; font-size: 14px; background: transparent; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--ink); outline: none; }

/* Cart Table */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 24px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 24px; align-items: center; }
.cart-item .thumb { width: 80px; height: 100px; background: var(--bg-alt); display: flex; justify-content: center; align-items: center; }
.cart-item .thumb img { width: 80%; height: 80%; object-fit: contain; }
.cart-item-name { font-family: 'Roboto', sans-serif; font-size: 20px; margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--muted); }
.remove-link { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; cursor: pointer; }
.remove-link:hover { color: var(--wine); }

.summary-box { background: var(--bg-alt); padding: 32px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 16px; }
.summary-row.total { border-top: 1px solid var(--line); padding-top: 16px; font-size: 20px; font-family: 'Roboto', sans-serif; color: var(--ink); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; }
.checkout-layout > * { min-width: 0; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.pay-opt {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: var(--paper);
}
.pay-opt:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
}
.pay-opt.selected {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}
.pay-opt input[type="radio"] {
  accent-color: var(--accent);
  margin-top: 4px;
}
.pay-opt-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay-opt-text b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.pay-opt-text small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Haute Parfumerie Glassmorphic Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: rgba(18, 16, 14, 0.94);
  color: #f7f4ee;
  padding: 14px 22px;
  font-size: 13.5px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 24px rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(140%) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 100000;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.toast-gold-crest {
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.7));
  animation: crestPulse 2s infinite ease-in-out;
}
@keyframes crestPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}
.toast-text {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Admin Shell & Components */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--bg); }
.admin-side { background: #141414; color: #fff; padding: 32px 20px; border-right: 1px solid #242424; }
.admin-side a { display: block; color: rgba(255,255,255,0.7); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 14px; margin-bottom: 6px; border-radius: 6px; transition: all 0.2s ease; border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none; white-space: nowrap; }
.admin-side a:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: transparent; }
.admin-side a.active { color: #121212 !important; background: var(--accent); font-weight: 700; border-color: transparent; }
.admin-main { padding: 40px; background: var(--bg-alt); min-height: 100vh; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 1024px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { background: var(--paper); padding: 24px; border: 1px solid var(--line); border-radius: 12px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.stat-card span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.stat-card b { display: block; font-size: 30px; font-family: 'Roboto', sans-serif; margin-top: 8px; color: var(--ink); font-weight: 700; }

table.admin-table { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; border-collapse: collapse; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,0.03); }
table.admin-table th { text-align: left; padding: 14px 16px; background: #1c1c1c; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid #333; white-space: nowrap; }
table.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; }
table.admin-table tr:hover td { background: rgba(220, 165, 76, 0.05); }

.login-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-alt); }
.login-box { background: var(--paper); padding: 44px; width: 400px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* Form Grid & Modal System */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 20px;
}
.form-grid .form-field {
  margin-bottom: 0;
}
.form-grid .form-field.full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-box {
  background: var(--paper);
  padding: 36px 40px;
  width: 720px;
  max-width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.55), 0 0 30px rgba(212, 175, 55, 0.12);
}
.mono { font-variant-numeric: tabular-nums; font-family: 'Roboto', sans-serif; letter-spacing: 0.05em; font-weight: 500; }
.fade-up { animation: fadeUp 0.8s cubic-bezier(.25, .8, .25, 1) forwards; opacity: 0; transform: translateY(30px); } @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.zoom-container { overflow: hidden; position: relative; cursor: zoom-in; } .zoom-container img { transition: transform 0.3s ease; transform-origin: center center; } .zoom-container:hover img { transform: scale(1.5); }
.btn-sm { padding: 8px 16px; font-size: 11px; }
.bump { animation: popBump 0.3s ease-out; } @keyframes popBump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
/* Sidecart */
.sidecart-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none; transition: 0.3s; z-index: 999;
}
.sidecart-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.sidecart {
  position: fixed; top: 0; right: 0; width: min(400px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh;
  background: #fff; z-index: 1000; box-shadow: -5px 0 24px rgba(0,0,0,0.18);
  transform: translate3d(105%, 0, 0);
  visibility: hidden;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.36s ease;
  display: flex; flex-direction: column;
}
.sidecart.open { transform: translate3d(0, 0, 0); visibility: visible; }

.sidecart-header { padding: 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.sidecart-header h3 { font-size: 18px; margin: 0; }
.sidecart-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.sidecart-close:hover { color: var(--wine); }

.sidecart-body { flex: 1; overflow-y: auto; padding: 24px; }
.sidecart-item { display: flex; gap: 16px; margin-bottom: 24px; }
.sidecart-item img { width: 70px; height: 90px; object-fit: contain; background: var(--bg-alt); }
.sidecart-item-info { flex: 1; }
.sidecart-item-title { font-weight: 500; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.sidecart-item-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sidecart-item-price { font-weight: 500; }
.sidecart-item-remove { font-size: 11px; color: var(--wine); text-transform: uppercase; cursor: pointer; display: block; margin-top: 8px;}

.sidecart-footer { padding: 24px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.sidecart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 16px; }
.mt-2 { margin-top: 12px; }
/* Upgraded Product Card */
.card {
  border: none;
  background: transparent;
  transition: transform 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); }

.card-media-wrap {
  position: relative;
}
.card-media-wrap .quick-add-btn {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 10; cursor: pointer; color: var(--ink);
}
.card-media-wrap:hover .quick-add-btn {
  opacity: 1; transform: translateY(0);
}
@media (hover: none), (max-width: 768px) {
  .card-media-wrap .quick-add-btn {
    opacity: 0.95; transform: translateY(0);
    width: 40px; height: 40px; bottom: 10px; right: 10px;
  }
}
.card-media-wrap .quick-add-btn:hover {
  background: var(--ink);
  color: #fff;
}
.card-name {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  margin: 6px 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  text-wrap: balance;
}
.card-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-notes {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Search Autocomplete */
.search-box { position: relative; }
.search-results {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1001;
  max-height: 400px; overflow-y: auto;
  display: none;
}
.search-results.active { display: block; }
.search-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background 0.2s;
}
.search-item:hover { background: var(--bg-alt); }
.search-item img { width: 40px; height: 50px; object-fit: contain; }
.search-item-info { flex: 1; }
.search-item-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.search-item-brand { font-size: 11px; color: var(--muted); }
.search-item-price { font-size: 12px; font-weight: 500; }
.wishlist-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--muted);
  cursor: pointer; z-index: 10;
  transition: all 0.2s;
}
.wishlist-btn:hover { background: #fff; color: var(--wine); }
.wishlist-btn.active { color: var(--wine); background: #fff; }

/* ---------- SWIPER HERO SLIDER ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #111;
}
.hero-slider .swiper {
  width: 100%;
  height: 85vh;
  min-height: 580px;
}
.hero-slider .swiper-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
/* Fallback: ensure the first slide is visible even if Swiper JS hasn't run yet */
.hero-slider .swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none !important;
}
.hero-slider .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slider .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}
.hero-slider .swiper-slide-active .hero-bg img {
  transform: scale(1.08);
}
.hero-slider .hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(12, 12, 12, 0.45) 0%, rgba(12, 12, 12, 0.6) 50%, rgba(10, 10, 10, 0.85) 100%),
    radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 2;
}
.hero-slider .hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  padding: 0 40px;
  margin: 0 auto;
}
.hero-slider .hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(18, 18, 18, 0.68);
  border: 1px solid rgba(220, 165, 76, 0.5);
  border-radius: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.hero-slider .hero-content h1,
.hero-slider .hero-content .hero-slide-title {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.95);
  letter-spacing: -0.01em;
  text-wrap: balance;
  word-break: keep-all;
}
.hero-slider .hero-content .hero-slide-title {
  font-size: clamp(30px, 4.4vw, 58px);
}
.hero-slider .hero-content h1 em,
.hero-slider .hero-content .hero-slide-title em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 2px 14px rgba(220, 165, 76, 0.4);
  white-space: nowrap;
  display: inline-block;
}
.hero-slider .hero-content .lead {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  color: #f5f5f5;
  margin: 0 auto 36px auto;
  max-width: 700px;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 1px 3px rgba(0,0,0,0.9);
}
.hero-slider .hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.hero-slider .hero-ctas .btn {
  padding: 13px 28px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}
.hero-slider .hero-ctas .btn-primary {
  background: var(--accent);
  color: #121212;
  border: 1px solid var(--accent);
}
.hero-slider .hero-ctas .btn-primary:hover {
  background: #e5b660;
  border-color: #e5b660;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(220, 165, 76, 0.4);
}
.hero-slider .hero-ctas .btn-ghost.light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
}
.hero-slider .hero-ctas .btn-ghost.light:hover {
  background: #ffffff;
  color: #121212;
  border-color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-slider .swiper {
    height: 70vh;
    min-height: 480px;
  }
  .hero-slider .hero-content {
    padding: 0 20px;
  }
  .hero-slider .swiper-button-prev,
  .hero-slider .swiper-button-next {
    display: none !important;
  }
  .hero-slider .hero-content .eyebrow {
    font-size: 11px;
    padding: 5px 14px;
    margin-bottom: 16px;
  }
  .hero-slider .hero-content h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .hero-slider .hero-content .hero-slide-title {
    font-size: 30px;
    margin-bottom: 16px;
  }
  .hero-slider .hero-content .lead {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 26px;
  }
  .hero-slider .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }
  .hero-slider .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

/* Swiper Controls */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: all 0.3s var(--ease);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-slider .swiper-button-prev:after,
.hero-slider .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}
.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.hero-slider .swiper-pagination {
  bottom: 24px !important;
}
.hero-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: all 0.3s;
  margin: 0 6px !important;
}
.hero-slider .swiper-pagination-bullet-active {
  background: var(--accent) !important;
  width: 28px;
  border-radius: 8px;
}

/* DARK MODE */
html.dark-theme {
  --bg: #121212;
  --bg-alt: #1a1a1a;
  --ink: #f0f0f0;
  --ink-soft: #cccccc;
  --paper: #1c1c1c;
  --paper-dim: #aaaaaa;
  --muted: #b0b0b0;
  --line: #2a2a2a;
  --primary: #ffffff;
  --primary-hover: #dddddd;
  --accent: #dca54c; /* luxury gold */
  --accent-text: #e8c37a; /* WCAG AAA accessible gold text in dark mode */
  --wine: #f26674; /* vibrant coral red in dark mode for readable prices & highlights */
}
html.dark-theme body { background: var(--bg); color: var(--ink-soft); }
html.dark-theme .site-header { background: rgba(18,18,18,0.95); border-bottom-color: var(--line); }
html.dark-theme .topbar { background: #000; color: #fff; border-bottom: 1px solid #222; }

/* Dark mode logo enhancement */
html.dark-theme .logo .logo-mark,
html.dark-theme .logo-mark {
  filter: drop-shadow(0 0 16px rgba(245, 199, 109, 0.85)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.45)) brightness(1.5) contrast(1.25) !important;
}
html.dark-theme .logo .logo-text span,
html.dark-theme .logo-text span {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
html.dark-theme .logo .logo-text em,
html.dark-theme .logo-text em {
  color: #f7d070 !important;
  font-weight: 400;
  text-shadow: 0 0 14px rgba(247, 208, 112, 0.6);
}
html.dark-theme .logo .logo-text small,
html.dark-theme .logo-text small {
  color: #e5b660 !important;
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-shadow: 0 0 8px rgba(229, 182, 96, 0.3);
}

/* Dark mode buttons & product cards */
html.dark-theme .btn-primary { background: var(--accent); color: #121212; border: 1px solid var(--accent); }
html.dark-theme .btn-primary:hover { background: #e5b660; color: #121212; border-color: #e5b660; }
html.dark-theme .btn-ghost { border-color: var(--line); color: var(--ink); }
html.dark-theme .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
html.dark-theme .btn-outline { border-color: var(--line); color: var(--ink); }
html.dark-theme .btn-outline:hover { background: var(--ink); color: var(--bg); }
html.dark-theme .card-media { background: #181818; border: 1px solid #282828; border-radius: 8px; }
html.dark-theme .quick-add-btn { background: #262626; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
html.dark-theme .quick-add-btn:hover { background: var(--accent); color: #121212; }
html.dark-theme .wishlist-btn { background: rgba(30,30,30,0.85); color: #888; }
html.dark-theme .wishlist-btn:hover, html.dark-theme .wishlist-btn.active { background: #2a2a2a; color: var(--wine); }

/* Dark mode prices & badges */
html.dark-theme .price .now { color: #f26674; font-weight: 700; }
html.dark-theme .price .old { color: #777777; }
html.dark-theme .badge { background: var(--accent); color: #121212; }
html.dark-theme .badge.sale { background: #c23348; color: #ffffff; }

/* Dark mode footer */
html.dark-theme .site-footer { background: #0a0a0a; border-top: 1px solid #222222; }
html.dark-theme .site-footer .logo .logo-text span { color: #ffffff !important; }
html.dark-theme .site-footer .logo .logo-text em { color: #f5c76d !important; }
html.dark-theme .site-footer .logo .logo-text small { color: #dca54c !important; }

/* Admin in Dark Mode */
html.dark-theme .admin-shell { background: #101010; }
html.dark-theme .admin-side { background: #161616; border-right: 1px solid #262626; }
html.dark-theme .admin-side a { color: #a0a0a0; border-bottom: 1px solid rgba(255,255,255,0.06); }
html.dark-theme .admin-side a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); border-color: transparent; }
html.dark-theme .admin-side a.active { color: #121212 !important; background: var(--accent); font-weight: 700; border-color: transparent; }
html.dark-theme .admin-side .logo .logo-mark {
  filter: drop-shadow(0 0 16px rgba(245, 199, 109, 0.85)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.45)) brightness(1.5) contrast(1.25) !important;
}
html.dark-theme .admin-side .logo .logo-text span { color: #ffffff !important; }
html.dark-theme .admin-side .logo .logo-text em { color: #f5c76d !important; }
html.dark-theme .admin-side .logo .logo-text small { color: #dca54c !important; }

html.dark-theme .admin-main { background: #101010; color: #f0f0f0; }
html.dark-theme .stat-card { background: #181818; border: 1px solid #282828; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
html.dark-theme .stat-card span { color: #888888; }
html.dark-theme .stat-card b { color: #ffffff; }

html.dark-theme table.admin-table { background: #181818; border: 1px solid #282828; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
html.dark-theme table.admin-table th { background: #202020; color: #ffffff; border-bottom: 2px solid #333333; }
html.dark-theme table.admin-table td { border-bottom: 1px solid #252525; color: #cccccc; }
html.dark-theme table.admin-table tr:hover td { background: rgba(220, 165, 76, 0.08); }
html.dark-theme table.admin-table .btn-ghost {
  background: #242424;
  border: 1px solid #333333;
  color: #dddddd;
  padding: 6px 12px;
  border-radius: 4px;
}
html.dark-theme table.admin-table .btn-ghost:hover {
  background: #2e2e2e;
  border-color: var(--accent);
  color: var(--accent);
}
html.dark-theme table.admin-table select {
  background: #1a1a1a;
  border: 1px solid #333333;
  color: #ffffff;
}

/* Admin search inputs */
html.dark-theme #admin-search,
html.dark-theme #admin-product-search,
html.dark-theme #admin-order-search {
  background: #1a1a1a !important;
  border: 1px solid #333333 !important;
  color: #ffffff !important;
}
html.dark-theme #admin-search::placeholder,
html.dark-theme #admin-product-search::placeholder,
html.dark-theme #admin-order-search::placeholder {
  color: #777777;
}

html.dark-theme .login-shell { background: #101010; }
html.dark-theme .login-box { background: #181818; border: 1px solid #282828; border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,0.4); color: #f0f0f0; }
html.dark-theme .login-box .logo .logo-mark {
  filter: drop-shadow(0 0 16px rgba(245, 199, 109, 0.85)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.45)) brightness(1.5) contrast(1.25) !important;
}

/* Admin Modals in Dark Mode */
html.dark-theme .modal-box {
  background: #181614;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  color: #f5f2eb;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), 0 0 30px rgba(212, 175, 55, 0.15);
}
html.dark-theme .modal-box label {
  color: #dca54c;
  font-weight: 600;
}
html.dark-theme .modal-box input,
html.dark-theme .modal-box textarea,
html.dark-theme .modal-box select {
  background: #201d1a !important;
  border: 1px solid #36322d !important;
  color: #f5f2eb !important;
  border-radius: 8px;
}
html.dark-theme .modal-box input:focus,
html.dark-theme .modal-box textarea:focus,
html.dark-theme .modal-box select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}
html.dark-theme select option {
  background: #1e1b18;
  color: #f5f2eb;
}

html.dark-theme input, html.dark-theme textarea, html.dark-theme select { color: var(--ink); border-color: var(--line); background: var(--bg-alt); }
html.dark-theme .sidecart { background: var(--bg); }
html.dark-theme .sidecart-header, html.dark-theme .sidecart-footer { border-color: var(--line); background: var(--bg-alt); }
html.dark-theme .search-results { background: var(--bg); border-color: var(--line); }
html.dark-theme .search-item:hover { background: var(--bg-alt); }
html.dark-theme .summary-box { background: var(--bg-alt); border: 1px solid var(--line); }
html.dark-theme .cart-item .thumb { background: var(--bg-alt); }

/* Checkout & VietQR in Dark Mode */
html.dark-theme .pay-opt {
  background: #181818;
  border: 1px solid #282828;
  color: #e0e0e0;
}
html.dark-theme .pay-opt.selected {
  background: rgba(220, 165, 76, 0.08);
  border-color: var(--accent);
}
html.dark-theme .vietqr-box {
  background: #181818;
  border: 1px solid #282828;
}
html.dark-theme .vietqr-info-row {
  border-bottom-color: #282828;
  color: #cccccc;
}
html.dark-theme .btn-copy-chip {
  background: #242424;
  border-color: #383838;
  color: #e0e0e0;
}
html.dark-theme .btn-copy-chip:hover {
  background: var(--accent);
  color: #121212;
}
html.dark-theme .shipping-progress-card {
  background: #181818;
  border-color: #282828;
}
html.dark-theme .sidecart-shipping-banner {
  background: #181818;
  border-color: #282828;
}

/* Mobile Nav Drawer in Dark Mode */
html.dark-theme .mobile-nav-drawer {
  background: #161616;
  border-right-color: #262626;
}
html.dark-theme .mobile-nav-header,
html.dark-theme .mobile-nav-footer {
  border-color: #262626;
  background: #121212;
}
html.dark-theme .mobile-nav-links a {
  border-bottom-color: #222222;
  color: #e0e0e0;
}
html.dark-theme .mobile-nav-links a:hover {
  color: var(--accent);
}

/* ---------- Back to Top Floating Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(220, 165, 76, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220, 165, 76, 0.4);
}
html.dark-theme .back-to-top {
  background: rgba(30, 30, 30, 0.85);
  border-color: rgba(220, 165, 76, 0.5);
  color: var(--accent);
}
html.dark-theme .back-to-top:hover {
  background: var(--accent);
  color: #121212;
}

/* ---------- Product Trust Badges ---------- */
.product-trust-box {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.trust-item i {
  color: var(--accent);
  font-size: 15px;
  width: 18px;
  text-align: center;
}

/* ---------- VietQR Checkout Box ---------- */
.vietqr-box {
  margin: 24px auto 0;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  text-align: center;
}
html.dark-theme .vietqr-box {
  background: #1e1e1e;
  border-color: #333333;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.vietqr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 16px auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
  display: block;
}
.vietqr-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.vietqr-info-row span:first-child {
  color: var(--muted);
}
.vietqr-info-row span:last-child {
  font-weight: 600;
  color: var(--ink);
}

.btn-copy-chip {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-copy-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Free Shipping Progress Bar ---------- */
.shipping-progress-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.shipping-progress-text {
  font-size: 13.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.shipping-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(197, 160, 89, 0.18);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.shipping-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c5a059, #e6ca65, #d4af37);
  background-size: 200% 100%;
  animation: shimmerProgress 3s infinite linear;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.shipping-progress-fill.completed {
  background: linear-gradient(90deg, #10b981, #34d399);
}
@keyframes shimmerProgress {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sidecart-shipping-banner {
  padding: 12px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.sidecart-shipping-text {
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* ---------- Brands Showcase Marquee ---------- */
.brands-showcase-section {
  padding: 40px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.brands-marquee-wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}
.brands-marquee-wrap::-webkit-scrollbar { display: none; }
.brand-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.brand-pill:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
html.dark-theme .brand-pill:hover {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
}

/* ---------- VIP Gold Voucher Banner ---------- */
.vip-voucher-banner {
  background: linear-gradient(135deg, #1f1b18 0%, #2e261f 50%, #171412 100%);
  border-radius: 16px;
  padding: 40px 48px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid rgba(212,175,55,0.3);
}
.vip-voucher-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.vip-voucher-content h3 {
  font-size: 26px;
  font-weight: 700;
  color: #f7d58b;
  margin-bottom: 8px;
}
.vip-voucher-content p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.6;
  max-width: 580px;
}
.vip-code-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px dashed #d4af37;
  padding: 6px 16px;
  border-radius: 8px;
  margin-top: 14px;
  font-family: var(--mono);
  font-weight: 700;
  color: #f7d58b;
  letter-spacing: 0.1em;
}

/* ---------- Fragrance Finder / Scent Quiz ---------- */
.quiz-section {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 48px 40px;
  border: 1px solid var(--line);
  margin: 40px 0;
}
.quiz-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
}
.quiz-header h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.quiz-steps-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.quiz-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  transition: all 0.3s;
}
.quiz-step-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.quiz-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.quiz-opt-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.quiz-opt-card:hover, .quiz-opt-card.selected {
  border-color: var(--accent);
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.quiz-opt-card .quiz-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.quiz-opt-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.quiz-opt-card p {
  font-size: 12px;
  color: var(--muted);
}
.quiz-result-box {
  display: none;
  animation: fadeIn 0.4s ease;
}

/* ---------- Visual Scent Pyramid & Longevity Meter ---------- */
.scent-pyramid-box {
  margin: 28px 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.pyramid-header {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pyramid-level {
  display: flex;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
  gap: 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pyramid-level:hover {
  background: rgba(212, 175, 55, 0.06);
  transform: translateX(4px);
}
.pyramid-level:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.level-badge {
  flex-shrink: 0;
  width: 110px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pyramid-level:hover .level-badge {
  transform: scale(1.04);
}
.level-badge.top { background: #e0f2fe; color: #0369a1; }
.level-badge.heart { background: #fce7f3; color: #be185d; }
.level-badge.base { background: #fef3c7; color: #b45309; }
html.dark-theme .level-badge.top { background: #0c4a6e; color: #7dd3fc; }
html.dark-theme .level-badge.heart { background: #831843; color: #f472b6; }
html.dark-theme .level-badge.base { background: #78350f; color: #fde68a; }

.level-notes {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.perf-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.perf-metric-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.perf-bar-track {
  height: 6px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.perf-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transition: width 0.8s ease;
}
.perf-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
}

/* ---------- Sticky Add To Cart Bar ---------- */
.sticky-add-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 998;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.25s ease, visibility 0.3s ease;
}
.sticky-add-bar.visible {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.sticky-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sticky-bar-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.sticky-bar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.sticky-bar-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.sticky-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Brand Filter Search & Chips on shop.html ---------- */
.brand-search-box {
  margin-bottom: 12px;
}
.brand-search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
}
.brand-filter-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}
.brand-filter-list::-webkit-scrollbar {
  width: 4px;
}
.brand-filter-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.filter-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ink);
}
.filter-chip-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: var(--muted);
}
.filter-chip-remove:hover {
  color: var(--wine);
}

/* ---------- Order Tracking Timeline ---------- */
.order-tracking-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0 40px;
  padding: 0 10px;
}
.order-tracking-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--line);
  z-index: 1;
}
.tracking-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 25%;
}
.tracking-step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.3s;
}
.tracking-step-item.active .tracking-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  box-shadow: 0 0 12px rgba(212,175,55,0.4);
}
.tracking-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.tracking-step-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- Home Blog Grid ---------- */
.home-blog-section {
  padding-top: 20px;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .home-blog-grid { grid-template-columns: 1fr; }
  .vip-voucher-banner { flex-direction: column; text-align: center; padding: 30px 24px; }
  .perf-metrics-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile Header & Navigation Drawer ---------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-right: 4px;
  flex-shrink: 0;
}
@media (max-width: 960px) {
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-main { display: none; }
  .site-header .search-box { width: 140px; }
  .site-header .logo-mark { height: 36px; }
  .site-header .logo-text span { font-size: 17px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .header-main { padding: 10px 0; gap: 4px; }
  .site-header .search-box { display: none; }
  .site-header .logo-mark { height: 28px; }
  .site-header .logo-text span { font-size: 14.5px; letter-spacing: 0.06em; }
  .site-header .logo-text small { font-size: 9px; letter-spacing: 0.12em; }
  .logo { gap: 6px; min-width: 0; }
  .header-actions { gap: 2px; }
  .header-actions .icon-btn { width: 34px; height: 34px; font-size: 16px; }
  .header-actions .icon-btn svg { width: 18px; height: 18px; }
  .card { padding: 10px; }
}
@media (max-width: 420px) {
  .site-header .logo-text small { display: none; }
  .header-actions .icon-btn { width: 32px; height: 32px; font-size: 15px; }
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--paper);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0,0,0,0.15);
  border-right: 1px solid var(--line);
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
}
.mobile-nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-links a.active {
  color: var(--accent);
  font-weight: 700;
}
.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 12px;
  color: var(--muted);
}

/* Responsive Visibility Utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   LUXURY MORPHING & SPECULAR INTERACTION SUITE
   ========================================================================== */

/* ---------- Top Scroll Reading Progress Bar ---------- */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #b89a6c, #f5c76d, #dca54c);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(220, 165, 76, 0.6);
  pointer-events: none;
}

/* ---------- Organic Scent Morphing Blobs ---------- */
@keyframes morphBlob {
  0%, 100% {
    border-radius: 54% 46% 68% 32% / 62% 43% 57% 38%;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  25% {
    border-radius: 42% 58% 46% 54% / 48% 62% 38% 52%;
    transform: translate3d(24px, -18px, 0) rotate(70deg) scale(1.06);
  }
  50% {
    border-radius: 65% 35% 38% 62% / 55% 42% 58% 45%;
    transform: translate3d(-18px, 22px, 0) rotate(150deg) scale(0.95);
  }
  75% {
    border-radius: 38% 62% 58% 42% / 52% 70% 30% 48%;
    transform: translate3d(15px, 12px, 0) rotate(240deg) scale(1.04);
  }
}

@keyframes morphPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15) rotate(180deg);
    opacity: 0.85;
  }
}

.morph-blob {
  position: absolute;
  pointer-events: none;
  animation: morphBlob 18s ease-in-out infinite;
  will-change: border-radius, transform;
  filter: blur(60px);
  z-index: 1;
}

/* Hero morphing auras */
.hero-morph-aura-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(220, 165, 76, 0.28) 0%, rgba(184, 154, 108, 0.12) 50%, transparent 75%);
  top: 15%;
  left: 8%;
  animation: morphBlob 20s ease-in-out infinite alternate;
}
.hero-morph-aura-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 199, 109, 0.25) 0%, rgba(139, 35, 50, 0.14) 55%, transparent 80%);
  bottom: 10%;
  right: 10%;
  animation: morphBlob 24s ease-in-out infinite reverse;
}

/* Product Detail Scent Halo */
.pd-scent-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 95%);
  height: min(420px, 95%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(220, 165, 76, 0.22) 0%, rgba(245, 199, 109, 0.1) 45%, transparent 70%);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: morphBlob 14s ease-in-out infinite;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Card hover morphing fragrance aura */
.card-media-wrap .card-aura {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(220, 165, 76, 0.35) 0%, rgba(245, 199, 109, 0.15) 50%, transparent 75%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  filter: blur(25px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 1;
}
.card:hover .card-aura {
  opacity: 1;
  transform: scale(1.1);
  animation: morphBlob 10s ease-in-out infinite;
}

/* Card Glass Light Specular Sheen */
.card-media-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 80%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 3;
  transition: left 0.85s cubic-bezier(0.19, 1, 0.22, 1);
}
.card:hover .card-media-wrap::before {
  left: 200%;
}

/* ---------- 24K Gold Foil Shimmer ---------- */
.gold-shimmer-text {
  background: linear-gradient(
    120deg,
    #b89a6c 0%,
    #dca54c 25%,
    #fff3d1 50%,
    #dca54c 75%,
    #b89a6c 100%
  );
  background-size: 200% auto;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: goldShimmer 4s linear infinite;
  display: inline-block;
}
@keyframes goldShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ---------- Interactive 3D Tilt Cards ---------- */
.card, .cat-card, .quiz-opt-card, .vip-voucher-banner {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
}
.card-media img {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover .card-media img {
  transform: scale(1.05);
}

/* ---------- Quick Add Button Morph & Micro-interaction ---------- */
.quick-add-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.quick-add-btn:active {
  transform: scale(0.88);
}
.quick-add-btn.added {
  background: #2e7d32 !important;
  color: #ffffff !important;
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 0 16px rgba(46, 125, 50, 0.6) !important;
}

/* ---------- Wishlist Floating Heart Sparkle Burst ---------- */
@keyframes floatHeartBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -25px))) scale(1.25) rotate(var(--rot, 15deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px) * 1.5), calc(-50% + var(--dy, -25px) * 1.8)) scale(0.2) rotate(var(--rot, 15deg));
  }
}
.heart-sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 16px;
  color: var(--wine);
  animation: floatHeartBurst 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  z-index: 9999;
  filter: drop-shadow(0 2px 8px rgba(226, 92, 106, 0.6));
}

/* ---------- Luxury Button Ripple & Fluid Hover ---------- */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn:hover {
  box-shadow: 0 8px 24px rgba(220, 165, 76, 0.25);
}
.btn .btn-ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleAnimation 0.65s linear;
  pointer-events: none;
}
@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Atomizer Scent Mist Canvas in Hero ---------- */
#scent-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
}

/* ---------- Luxury Statistics Section ---------- */
/* ==========================================================================
   HAUTE PARFUMERIE EDITORIAL DESIGN SYSTEM
   ========================================================================== */

/* ---------- Luxury Typography & Dividers ---------- */
.luxury-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}
.editorial-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.editorial-subtitle {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.luxury-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 36px;
  max-width: 260px;
}
.luxury-divider .line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.luxury-divider .diamond {
  color: var(--accent);
  font-size: 9px;
  opacity: 0.85;
}

/* ---------- Luxury Statistics Showcase Pavilion ---------- */
.luxury-stats-section {
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 16px; }
}
.stat-card-luxury {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card-luxury::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card-luxury:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}
.stat-card-luxury:hover::before {
  opacity: 1;
}
.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.stat-card-luxury:hover .stat-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  background: rgba(212, 175, 55, 0.16);
}
.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-plus {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Haute Parfumerie Product Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1), 0 0 20px rgba(212, 175, 55, 0.08);
}
.card-media-wrap {
  aspect-ratio: 1 / 1.15;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.card-media-wrap > a {
  width: 100%;
  height: 100%;
  display: block;
}
.card-media-wrap .card-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
}
.card-media-wrap img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-media-wrap img {
  transform: scale(1.08);
}
.card-brand {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-name a:hover {
  color: var(--accent);
}
.card-notes {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.price {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.price .old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}
.price .now {
  color: var(--wine);
  font-size: 16px;
}

/* ---------- Fragrance Finder Quiz Pavilion ---------- */
.quiz-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 44px;
  margin: 60px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.quiz-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.quiz-card-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}
@media (max-width: 860px) {
  .quiz-card-group { grid-template-columns: 1fr; }
  .quiz-section { padding: 36px 20px; }
}
.quiz-opt-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}
.quiz-opt-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.12);
}
.quiz-opt-icon,
.quiz-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.quiz-opt-icon svg,
.quiz-icon svg {
  width: 30px;
  height: 30px;
}
.quiz-opt-card:hover .quiz-opt-icon,
.quiz-opt-card:hover .quiz-icon {
  transform: scale(1.12);
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--accent);
}
.quiz-opt-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.quiz-opt-card .sub-title {
  font-size: 11.5px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}
.quiz-opt-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.quiz-opt-card .hint-notes {
  font-size: 11.5px;
  color: var(--paper-dim);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  display: block;
}

/* ---------- DANN Privé VIP Salon Banner ---------- */
.vip-voucher-banner {
  background: linear-gradient(135deg, #181512 0%, #241d18 50%, #151210 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 52px 48px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  margin: 60px auto;
}
@media (max-width: 960px) {
  .vip-voucher-banner { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; text-align: center; }
}
.vip-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 24px;
  text-align: left;
}
.vip-perk-item {
  font-size: 13.5px;
  color: #d8d8d8;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vip-perk-item i {
  color: #f5c76d;
  font-size: 14px;
}
.vip-tickets-container,
.vip-tickets-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.gold-ticket {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(26, 22, 18, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.gold-ticket::before {
  content: '';
  position: absolute;
  top: -8px; left: calc(55% - 8px);
  width: 16px; height: 16px;
  background: #181512;
  border-radius: 50%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}
.gold-ticket::after {
  content: '';
  position: absolute;
  bottom: -8px; left: calc(55% - 8px);
  width: 16px; height: 16px;
  background: #181512;
  border-radius: 50%;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
}
.ticket-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ticket-type {
  font-family: 'Playfair Display', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #d4af37;
  font-weight: 700;
}
.ticket-value {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}
.ticket-cond {
  font-size: 10.5px;
  color: #a8a8a8;
}
.ticket-divider {
  width: 1px;
  height: 38px;
  border-left: 1px dashed rgba(212, 175, 55, 0.35);
  margin: 0 4px;
}
.ticket-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ticket-code-badge {
  background: linear-gradient(135deg, #d4af37, #aa8210);
  color: #0c0b0a;
  font-family: 'Roboto', monospace;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}
.ticket-code-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}
.ticket-code-badge.copied {
  background: #2e7d32;
  color: #ffffff;
}
.ticket-hint {
  font-size: 9.5px;
  color: #999999;
}

/* 3D Black Metal VIP Member Card */
.vip-card-visual {
  background: linear-gradient(145deg, #1b1917 0%, #0d0c0a 60%, #151311 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.7), inset 0 0 24px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
  text-align: left;
  aspect-ratio: 1.58 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vip-card-visual::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 85% 15%, rgba(212, 175, 55, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.vip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vip-card-chip {
  width: 44px;
  height: 32px;
  background: linear-gradient(135deg, #f5c76d, #d4af37, #9b792b);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.vip-card-logo {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #d4af37;
}
.vip-card-number {
  font-family: 'Roboto', monospace;
  font-size: 16px;
  letter-spacing: 0.28em;
  color: #f5c76d;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  margin: 16px 0 10px;
}
.vip-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.vip-card-holder span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #888888;
}
.vip-card-holder strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  color: #ffffff;
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.vip-card-seal {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}
.vip-card-seal svg {
  width: 18px;
  height: 18px;
}

/* ---------- 4 Royal Pillars of Haute Parfumerie ---------- */
.royal-pillars-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.royal-pillars-grid,
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .royal-pillars-grid,
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 580px) {
  .royal-pillars-grid,
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
}
.royal-pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 22px;
  text-align: center;
  transition: all 0.35s var(--ease);
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}
.royal-pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.pillar-crest-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.royal-pillar-card:hover .pillar-crest-icon {
  transform: scale(1.12) rotate(4deg);
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--accent);
}
.royal-pillar-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 6px;
}
.royal-pillar-card .pillar-subtitle {
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 12px;
  display: block;
}
.royal-pillar-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Dark Mode Harmonization */
html.dark-theme .luxury-stats-section {
  background: #0e0e0e;
  border-color: #222222;
}
html.dark-theme .stat-card-luxury {
  background: #141414;
  border-color: #242424;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
html.dark-theme .stat-card-luxury:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6), 0 0 25px rgba(212, 175, 55, 0.12);
}
html.dark-theme .stat-label {
  color: #ffffff;
}
html.dark-theme .quiz-section {
  background: #121212;
  border-color: #262626;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
html.dark-theme .quiz-opt-card {
  background: #161616;
  border-color: #282828;
}
html.dark-theme .quiz-opt-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--accent);
}
html.dark-theme .royal-pillars-section {
  background: #0d0d0d;
  border-color: #222222;
}
html.dark-theme .royal-pillar-card {
  background: #141414;
  border-color: #242424;
}
html.dark-theme .royal-pillar-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

/* ==========================================================================
   HAUTE PARFUMERIE MORPH & LUXURY DYNAMIC EFFECTS
   ========================================================================== */

/* Morphing Olfactory Aura */
.morph-aura-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.morph-aura {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(150, 93, 29, 0.12) 50%, transparent 75%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: morphAura 14s ease-in-out infinite alternate;
}
.morph-aura-secondary {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(194, 51, 72, 0.22) 0%, rgba(120, 20, 40, 0.08) 50%, transparent 75%);
  border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%;
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
  animation: morphAuraReverse 16s ease-in-out infinite alternate;
}
@keyframes morphAura {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(40px, -30px) rotate(45deg) scale(1.12);
  }
  66% {
    border-radius: 70% 30% 50% 50% / 30% 40% 60% 70%;
    transform: translate(-35px, 35px) rotate(90deg) scale(0.94);
  }
  100% {
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 50%;
    transform: translate(30px, 20px) rotate(140deg) scale(1.06);
  }
}
@keyframes morphAuraReverse {
  0% {
    border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    border-radius: 70% 30% 40% 60% / 40% 60% 40% 60%;
    transform: translate(-35px, -25px) rotate(-60deg) scale(1.1);
  }
  100% {
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    transform: translate(30px, 25px) rotate(-120deg) scale(0.95);
  }
}

/* Morphing Button Sheen */
.btn-primary, .btn-vip-gold {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .btn-vip-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::before, .btn-vip-gold:hover::before {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

/* Scent Note Interactive Morph Card */
.scent-level-row {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
  padding: 10px 14px;
}
.scent-level-row:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(6px);
}
.scent-level-row:hover .level-badge {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

/* Zero Arbitrary Wrapping Utility Rules */
.no-wrap,
.white-space-nowrap {
  white-space: nowrap !important;
}
.topbar-content,
.filter-header,
.filter-opt,
.status-pill,
.brand-pill,
.badge,
.card-brand,
.card-price,
.mono,
.tracking-step-label,
.price,
.price .now,
.price .old,
.cart-item-meta,
.card-notes,
.summary-row span.mono {
  white-space: nowrap;
}
.card-brand,
.card-notes {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.showroom-info-row span {
  white-space: normal;
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
}

/* Table scroll wrapper on mobile */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Haute Parfumerie Luxury Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px auto 24px;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #d4af37 100%);
  color: #121212 !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
  border-color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.page-btn.page-nav {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 500;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-dots {
  padding: 0 6px;
  color: var(--muted);
  font-size: 14px;
  user-select: none;
}
html.dark-theme .pagination {
  background: #181614;
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
html.dark-theme .page-btn {
  color: #e5e5e5;
}
html.dark-theme .page-btn.page-nav {
  background: #201d1a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #d1cfc7;
}






/* ==========================================================================
   HAUTE PARFUMERIE SUITE EXTENSIONS: TRENDING NOTES, COMPARE & INVOICE
   ========================================================================== */

/* Trending Olfactory Notes Bar */
.trending-notes-section {
  margin-bottom: 24px;
}
.trending-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.trending-notes-head span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.trending-notes-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
}
.trending-notes-bar::-webkit-scrollbar { display: none; }
.note-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  user-select: none;
}
.note-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.note-pill.active {
  background: linear-gradient(135deg, rgba(220,165,76,0.2) 0%, rgba(201,146,58,0.1) 100%);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(220,165,76,0.15);
}

/* Fragrance Comparison Suite */
.card-media-wrap .compare-card-btn {
  position: absolute;
  top: 48px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s var(--ease);
  z-index: 3;
}
.card:hover .compare-card-btn {
  opacity: 1;
  transform: translateX(0);
}
.compare-card-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.compare-card-btn.active {
  opacity: 1;
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
}
html.dark-theme .card-media-wrap .compare-card-btn {
  background: rgba(28, 28, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e0e0e0;
}
html.dark-theme .compare-card-btn.active {
  background: var(--accent);
  color: #121212;
}

/* Compare Dock */
.compare-dock {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25), 0 0 20px rgba(212,175,55,0.2);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.3s ease, opacity 0.25s ease, visibility 0.35s ease;
  max-width: 92vw;
}
.compare-dock.visible {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
html.dark-theme .compare-dock {
  background: #1a1816;
  border-color: rgba(212, 175, 55, 0.4);
}
.compare-dock-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare-dock-thumb {
  position: relative;
  width: 44px;
  height: 52px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-dock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compare-dock-thumb .remove-item {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--wine);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.compare-dock-info {
  display: flex;
  flex-direction: column;
}
.compare-dock-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.compare-dock-desc {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.compare-dock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Compare Modal */
.compare-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.compare-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.compare-modal-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
html.dark-theme .compare-modal-box {
  background: #161514;
  border-color: #2b2824;
}
.compare-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.compare-modal-header h3 {
  font-size: 18px;
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: var(--ink);
}
.compare-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}
.compare-modal-close:hover { color: var(--wine); }
.compare-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
}
.compare-table th {
  width: 160px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  background: var(--bg-alt);
  white-space: nowrap;
}
.compare-prod-head {
  text-align: center;
  padding-bottom: 12px;
}
.compare-prod-thumb {
  width: 90px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
}

/* Printable Luxury Invoice */
#printable-luxury-invoice {
  display: none;
}
@media print {
  body * {
    visibility: hidden;
  }
  #printable-luxury-invoice, #printable-luxury-invoice * {
    visibility: visible;
  }
  #printable-luxury-invoice {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #121212 !important;
    padding: 30px;
    font-family: 'Playfair Display', serif;
  }
  .print-invoice-box {
    border: 2px solid #c5a059;
    padding: 28px;
    border-radius: 8px;
    position: relative;
  }
  .print-invoice-box::before {
    content: "DANN PERFUME";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px;
    color: rgba(197, 160, 89, 0.06);
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
  }
  .print-table th, .print-table td {
    border: 1px solid #e0d0b0;
    padding: 10px 14px;
    font-size: 13px;
    color: #121212;
  }
  .print-table th {
    background: #fbf7ee;
    color: #8c6d2c;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
}

/* ==========================================================================
   HAUTE PARFUMERIE SUITE EXTENSIONS: VIP TIERS & PWA BANNER
   ========================================================================== */

/* VIP Loyalty Tiers Grid */
.vip-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .vip-tiers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .vip-tiers-grid { grid-template-columns: 1fr; }
}
.vip-tier-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.vip-tier-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.vip-tier-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(220,165,76,0.15);
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(220,165,76,0.05) 100%);
}
.tier-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tier-icon {
  font-size: 32px;
  margin: 10px auto 14px;
  color: var(--accent);
}
.vip-tier-card h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}
.tier-req {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.tier-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier-perks li i {
  color: var(--accent);
  font-size: 11px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.2), 0 0 15px rgba(220,165,76,0.18);
  z-index: 997;
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 420px;
}
.pwa-install-banner.visible {
  transform: translateY(0);
}
.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
html.dark-theme .pwa-install-banner {
  background: #181614;
  border-color: rgba(220,165,76,0.4);
}
@media (max-width: 600px) {
  .pwa-install-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* ==========================================================================
   HAUTE PARFUMERIE v4.4 EXTENSIONS: AMBIENT SOUNDSCAPE & OLFACTORY WHEEL
   ========================================================================== */

/* Ambient Boutique Soundscape Button & Equalizer */
.ambient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.25s ease;
  position: relative;
}
.ambient-btn:hover {
  background: var(--bg-alt);
}
.ambient-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  padding: 0 2px;
}
.ambient-waves .wave-bar {
  width: 2.5px;
  height: 6px;
  background: var(--muted);
  border-radius: 2px;
  transition: height 0.3s ease, background 0.3s ease;
}
.ambient-waves.active .wave-bar {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(220,165,76,0.5);
  animation: ambientWaveAnim 1.1s ease-in-out infinite alternate;
}
.ambient-waves.active .wave-bar:nth-child(1) {
  animation-delay: 0s;
}
.ambient-waves.active .wave-bar:nth-child(2) {
  animation-delay: 0.22s;
}
.ambient-waves.active .wave-bar:nth-child(3) {
  animation-delay: 0.44s;
}
@keyframes ambientWaveAnim {
  0% { height: 4px; }
  50% { height: 16px; }
  100% { height: 7px; }
}

/* Shipping Upsell Box (Cart & Sidecart) */
.shipping-upsell-box {
  background: linear-gradient(135deg, rgba(220,165,76,0.08) 0%, rgba(220,165,76,0.02) 100%);
  border: 1px dashed rgba(220,165,76,0.45);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}
.shipping-upsell-box:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(220,165,76,0.12);
}
.sidecart-upsell-chip {
  animation: fadeIn 0.3s ease;
}

/* Interactive Olfactory Wheel (Bánh Xe Mùi Hương) */
.olfactory-wheel-section {
  padding: 40px 0 60px;
  position: relative;
}
.olfactory-wheel-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .olfactory-wheel-container {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
}
.wheel-svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.wheel-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.wheel-slice {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  transform-origin: 200px 200px;
}
.wheel-slice:hover, .wheel-slice.active {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(220,165,76,0.6));
  transform: scale(1.03);
}
.wheel-slice text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  fill: #ffffff;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.wheel-center-hub {
  cursor: pointer;
}

/* Olfactory Family Information Card */
.olfactory-info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  transition: all 0.35s ease;
  position: relative;
}
.olfactory-info-card.active-family {
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(220,165,76,0.15);
}
.olfactory-family-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.olfactory-info-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}
.olfactory-spirit {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.olfactory-materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.material-tag {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

/* Dedicated Fragrance Quiz Suite (fragrance-quiz.html) */
.quiz-bespoke-shell {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.quiz-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  margin: 20px 0 36px;
  position: relative;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent) 0%, #ecd09a 100%);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(220,165,76,0.4);
}
.quiz-q-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 12px;
}
.quiz-q-subtitle {
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}
.quiz-opt-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.quiz-opt-card-v2 {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.quiz-opt-card-v2:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.quiz-opt-card-v2.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(220,165,76,0.06) 100%);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(220,165,76,0.18);
}
.quiz-opt-card-v2 .check-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.2s ease;
}
.quiz-opt-card-v2.selected .check-indicator {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
}
.quiz-opt-card-v2 .opt-icon-v2 {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
}
.quiz-opt-card-v2 h4 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}
.quiz-opt-card-v2 p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Quiz Recommendation Results */
.quiz-results-view {
  animation: fadeIn 0.5s ease;
}
.quiz-persona-banner {
  background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(220,165,76,0.1) 100%);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  box-shadow: 0 10px 30px rgba(220,165,76,0.1);
}
.quiz-persona-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}
.quiz-persona-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 10px;
}
.quiz-persona-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.quiz-match-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .quiz-match-card-grid {
    grid-template-columns: 1fr;
  }
}
.quiz-match-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}
.quiz-match-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.quiz-match-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #b8860b 100%);
  color: #121212;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}
.quiz-match-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}
.quiz-match-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.quiz-match-card:hover .quiz-match-img-wrap img {
  transform: scale(1.06);
}

/* ==========================================================================
   HAUTE PARFUMERIE v4.5 EXTENSIONS: BESPOKE ENGRAVING & LAYERING ART
   ========================================================================== */

/* VIP Bespoke Bottle Engraving Box & Live Plaque */
.engraving-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0;
  transition: all 0.3s ease;
}
.engraving-box:hover {
  border-color: rgba(220,165,76,0.5);
}
.btn-font-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-font-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-font-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220,165,76,0.3);
}
.engraving-live-preview {
  margin-top: 14px;
  padding: 18px 12px;
  background: radial-gradient(circle at center, rgba(220,165,76,0.08) 0%, transparent 70%);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.engraving-plaque {
  position: relative;
  background: linear-gradient(135deg, #d8ab5d 0%, #ecd09a 30%, #b8860b 70%, #d8ab5d 100%);
  border: 2px solid #997327;
  border-radius: 6px;
  padding: 14px 28px;
  min-width: 240px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.6), inset 0 -1px 2px rgba(0,0,0,0.4);
}
.plaque-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7a5a17;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.6);
}
.plaque-screw.top-left { top: 4px; left: 4px; }
.plaque-screw.top-right { top: 4px; right: 4px; }
.plaque-screw.bottom-left { bottom: 4px; left: 4px; }
.plaque-screw.bottom-right { bottom: 4px; right: 4px; }
.plaque-text {
  color: #2b1f07;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 1px rgba(255,255,255,0.7), 0 -1px 1px rgba(0,0,0,0.3);
  word-break: break-word;
  transition: all 0.2s ease;
}
.plaque-subtext {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #574015;
  margin-top: 3px;
  font-weight: 600;
}

/* Fragrance Layering Duo Ritual */
.layering-duo-container {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .layering-duo-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.layering-bottle-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}
.layering-bottle-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.layering-plus-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.layering-plus-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 14px rgba(220,165,76,0.3);
}
.layering-alchemy-card {
  background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(220,165,76,0.06) 100%);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

/* 5-D Olfactory Sensory Spectrum */
.olfactory-spectrum-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}
.spectrum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}
.spectrum-row:last-child {
  margin-bottom: 0;
}
.spectrum-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  width: 170px;
}
.spectrum-track {
  flex: 1;
  height: 7px;
  background: var(--bg-alt);
  border-radius: 4px;
  margin: 0 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.spectrum-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #b8860b 0%, var(--accent) 50%, #f3d49b 100%);
  box-shadow: 0 0 8px rgba(220,165,76,0.5);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.spectrum-val {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  width: 36px;
  text-align: right;
}

/* ==========================================================================
   HAUTE PARFUMERIE v4.6 EXTENSIONS: VIP SCENT PASS, CONCENTRATION & ENCYCLOPEDIA
   ========================================================================== */

/* VIP Scent Suite Invitation Card */
.vip-invitation-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(220,165,76,0.15);
}
.invitation-gold-border {
  border: 1px solid rgba(220,165,76,0.3);
  border-radius: 10px;
  padding: 16px;
}

/* Concentration & Longevity Guide Grid (about.html) */
.concentration-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .concentration-guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .concentration-guide-grid { grid-template-columns: 1fr; }
}
.concentration-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.concentration-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.concentration-card.featured-conc {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(220,165,76,0.15);
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(220,165,76,0.05) 100%);
}
.flask-visual {
  width: 48px;
  height: 72px;
  margin: 0 auto 16px;
  position: relative;
  border: 2px solid var(--accent);
  border-radius: 4px 4px 12px 12px;
  padding: 3px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper);
}
.flask-cap {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
}
.flask-liquid-fill {
  width: 100%;
  background: linear-gradient(180deg, #ecd09a 0%, var(--accent) 100%);
  border-radius: 2px 2px 8px 8px;
  transition: height 1s ease;
  box-shadow: 0 0 10px rgba(220,165,76,0.5);
}
.concentration-pct {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.concentration-card h4 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}
.concentration-hours {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.concentration-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Haute Olfactory Encyclopedia Modal (shop.html) */
.encyclopedia-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.encyclopedia-modal-overlay.active {
  display: flex;
}
.encyclopedia-modal-box {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 18px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.encyclopedia-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.encyclopedia-body {
  padding: 24px;
  overflow-y: auto;
}
.encyclopedia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .encyclopedia-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .encyclopedia-grid { grid-template-columns: 1fr; }
}
.encyclopedia-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.encyclopedia-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.encyclopedia-origin {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.encyclopedia-card h4 {
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
}
.encyclopedia-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Print Styles for VIP Pass */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-vip-pass, #printable-vip-pass * {
    visibility: visible;
  }
  #printable-vip-pass {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 30px;
    border: 2px solid #8c6d2c !important;
    background: #ffffff !important;
    color: #121212 !important;
  }
}

/* ==========================================================================
   v4.7 Olfactory Longevity & Sillage Simulator
   ========================================================================== */
.sillage-simulator-box {
  margin-top: 36px;
  padding: 32px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.simulator-controls-row {
  margin-bottom: 28px;
}
.sim-env-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}
.sim-env-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sim-env-btn.active {
  background: rgba(220,165,76,0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.sim-slider-container {
  max-width: 680px;
  margin: 16px auto 0;
  background: var(--paper);
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.luxury-range {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  accent-color: var(--accent);
}
.luxury-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.luxury-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}
.sim-timeline-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.sim-timeline-ticks span {
  cursor: pointer;
  transition: color 0.2s ease;
}
.sim-timeline-ticks span:hover {
  color: var(--accent);
  font-weight: 600;
}

.sim-dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 768px) {
  .sim-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.sim-radar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sim-radar-visual {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.radar-c1 { width: 45px; height: 45px; }
.radar-c2 { width: 90px; height: 90px; }
.radar-c3 { width: 135px; height: 135px; }
.radar-c4 { width: 180px; height: 180px; }

.radar-circle.active {
  border-color: var(--accent);
  border-style: solid;
  background: rgba(220,165,76,0.06);
  box-shadow: 0 0 14px rgba(220,165,76,0.25);
}
.radar-center-bottle {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-metrics-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.sim-oil-track {
  height: 8px;
  background: var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.sim-oil-fill {
  height: 100%;
  background: linear-gradient(90deg, #dca54c, #e6be75);
  border-radius: 6px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(220,165,76,0.4);
}

/* ==========================================================================
   v4.7 VIP Client Loyalty Tier Status & Privilege Unlocker Widget
   ========================================================================== */
.vip-tier-indicator {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.vip-tier-indicator:hover {
  border-color: var(--accent);
}
.vip-tier-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.vip-tier-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(220,165,76,0.15);
  color: var(--accent);
  border: 1px solid rgba(220,165,76,0.3);
}
.vip-tier-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 8px;
}
.vip-tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dca54c, #f3d48d);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.vip-tier-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: 1px dashed var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
}
.vip-tier-action-btn:hover {
  background: var(--accent);
  color: #121212;
}

/* ==========================================================================
   v4.8 Ambient Soundscape Controller Popover
   ========================================================================== */
.ambient-sound-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ambient-sound-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 295px;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.22);
  padding: 16px;
  z-index: 1002;
  display: none;
  animation: popoverFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ambient-sound-popover.active {
  display: block;
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ambient-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.ambient-popover-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.ambient-popover-close:hover {
  color: var(--ink);
}
.ambient-mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ambient-mode-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}
.ambient-mode-btn:hover {
  border-color: var(--accent);
  background: rgba(220,165,76,0.06);
}
.ambient-mode-btn.active {
  border-color: var(--accent);
  background: rgba(220,165,76,0.12);
  box-shadow: 0 2px 8px rgba(220,165,76,0.15);
}
.ambient-mode-btn i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.ambient-mode-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.ambient-mode-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.ambient-volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.ambient-vol-range {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--accent);
}
.ambient-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* ==========================================================================
   v4.8 Olfactory Horology & Climate Guide (Home Section)
   ========================================================================== */
.horology-container {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px 32px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.03);
  margin: 40px 0 60px;
}
.horology-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.horology-clock-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 22px;
  text-align: right;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
@media (max-width: 768px) {
  .horology-clock-card {
    text-align: left;
    width: 100%;
  }
}
.horology-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.horology-tab-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 18px;
  border-radius: 26px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.horology-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.horology-tab-btn.active {
  background: rgba(220,165,76,0.14);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220,165,76,0.18);
}
.horology-vibe-meta {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
}
.horology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .horology-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .horology-grid { grid-template-columns: 1fr; }
}
.horology-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.horology-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.horology-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
}
.horology-img-wrap img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.horology-card:hover .horology-img-wrap img {
  transform: scale(1.08);
}
.horology-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.horology-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.35;
  font-family: 'Playfair Display', serif;
}
.horology-note-tag {
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(220,165,76,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}
.horology-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.horology-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
  font-family: monospace;
}
.horology-add-btn {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.horology-add-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  transform: scale(1.1);
}

/* ==========================================================================
   v4.8 Flacon 3D Tilt & Specular Glare
   ========================================================================== */
.flacon-3d-box {
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.flacon-specular-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.45) 0%,
    rgba(220, 165, 76, 0.22) 28%,
    transparent 62%
  );
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  z-index: 3;
}
.flacon-3d-box:hover .flacon-specular-glare {
  opacity: 1;
}

/* ==========================================================================
   v4.9 Luxury Certificate of Authenticity & Master Sommelier Dossier
   ========================================================================== */
.authenticity-badge-bar {
  margin: 16px 0 20px;
}
.btn-authenticity-dossier {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}
.btn-authenticity-dossier:hover {
  background: rgba(220,165,76,0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,165,76,0.18);
}
.cert-icon-seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220,165,76,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.authenticity-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.authenticity-modal-overlay.active {
  display: flex;
}
.authenticity-modal-box {
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.certificate-parchment {
  border: 2px solid #8c6d2c;
  padding: 26px 22px;
  border-radius: 12px;
  background: #fdfaf4;
  color: #1a1610;
  box-shadow: inset 0 0 40px rgba(140,109,44,0.08);
  position: relative;
}
.dark-theme .certificate-parchment {
  background: #171512;
  color: #ede5d8;
  border-color: var(--accent);
  box-shadow: inset 0 0 40px rgba(220,165,76,0.05);
}
.cert-header {
  text-align: center;
  margin-bottom: 20px;
}
.cert-seal-img {
  height: 64px;
  width: auto;
  margin: 0 auto 10px;
  display: block;
}
.cert-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #8c6d2c;
  margin: 6px 0;
}
.dark-theme .cert-title {
  color: var(--accent);
}
.cert-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.cert-details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13px;
}
.cert-details-table td {
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(140,109,44,0.25);
}
.cert-details-table td:first-child {
  color: var(--muted);
  width: 42%;
}
.cert-details-table td:last-child {
  font-weight: 600;
  text-align: right;
}
.cert-guarantee-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
  text-align: center;
}
@media (max-width: 600px) {
  .cert-guarantee-badges { grid-template-columns: 1fr; }
}
.cert-badge-box {
  background: rgba(140,109,44,0.06);
  border: 1px solid rgba(140,109,44,0.25);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 11.5px;
  line-height: 1.4;
}
.cert-badge-box i {
  color: #8c6d2c;
  font-size: 16px;
  margin-bottom: 4px;
  display: block;
}
.dark-theme .cert-badge-box i {
  color: var(--accent);
}
.cert-signatures {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(140,109,44,0.3);
}

/* Print Certificate Specific Rules */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-certificate, #printable-certificate * {
    visibility: visible;
  }
  #printable-certificate {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 30px;
    border: 2px solid #8c6d2c !important;
    background: #ffffff !important;
    color: #121212 !important;
  }
}

/* ==========================================================================
   v4.9 Blind Scent Exploration Mode (Shop)
   ========================================================================== */
.blind-testing-banner {
  background: linear-gradient(90deg, rgba(220,165,76,0.18), rgba(220,165,76,0.06));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeIn 0.3s ease;
}
.blind-mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.4s ease;
}
.blind-testing-active .product-card:not(.revealed) .blind-mask-overlay {
  display: flex;
}
.blind-mask-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(220,165,76,0.15);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  animation: pulseGoldGlow 2.5s infinite;
}
@keyframes pulseGoldGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(220,165,76,0.2); }
  50% { box-shadow: 0 0 24px rgba(220,165,76,0.6); }
}
.blind-reveal-btn {
  background: var(--accent);
  color: #121212;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.blind-reveal-btn:hover {
  transform: scale(1.06);
}

/* ==========================================================================
   v4.9 VIP Points Redemption & Rewards Boutique (Coupons)
   ========================================================================== */
.rewards-boutique-section {
  margin-top: 60px;
  padding: 40px 32px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.03);
}
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.reward-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.reward-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.reward-points-badge {
  display: inline-block;
  background: rgba(220,165,76,0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.reward-claim-btn {
  margin-top: auto;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}
.reward-claim-btn:hover {
  background: var(--accent);
  color: #121212;
}
.reward-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--muted);
}

/* ==========================================================================
   v5.0 Mon Vestiaire Olfactif Privé (Personal Fragrance Wardrobe DNA)
   ========================================================================== */
.wardrobe-dna-section {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}
.wardrobe-dna-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 860px) {
  .wardrobe-dna-grid {
    grid-template-columns: 1fr;
  }
}
.wardrobe-profile-card {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}
.wardrobe-persona-badge {
  display: inline-block;
  background: rgba(220,165,76,0.14);
  color: var(--accent);
  border: 1px solid rgba(220,165,76,0.3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.wardrobe-dna-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dna-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dna-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.dna-bar-track {
  height: 6px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.dna-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.wardrobe-missing-piece {
  margin-top: 18px;
  padding: 14px 18px;
  background: rgba(220,165,76,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   v5.0 Private Sommelier Consultation Modal
   ========================================================================== */
.sommelier-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1005;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sommelier-modal-overlay.active {
  display: flex;
}
.sommelier-modal-box {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 18px;
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.time-slot-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.time-slot-chip {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.time-slot-chip:hover {
  border-color: var(--accent);
}
.time-slot-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  font-weight: 700;
}


/* ==========================================================================
   v5.1: HAUTE LAYERING ALCHEMY ATELIER & VIP CLIENT PORTAL & 360 SHOWROOM
   ========================================================================== */

/* Mode Switcher on fragrance-quiz.html */
.atelier-mode-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.btn-atelier-mode {
  padding: 11px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-atelier-mode:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-atelier-mode.active {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(220,165,76,0.35);
}

/* Layering Shell */
.layering-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .layering-shell {
    padding: 24px 16px;
  }
}

/* Master Presets */
.layering-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 32px;
}
@media (max-width: 992px) {
  .layering-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .layering-preset-grid {
    grid-template-columns: 1fr;
  }
}
.layering-preset-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.layering-preset-card:hover, .layering-preset-card.active {
  border-color: var(--accent);
  background: rgba(220,165,76,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220,165,76,0.15);
}
.layering-preset-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.layering-preset-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
  line-height: 1.4;
}
.layering-preset-duo {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: auto;
}

/* Visualizer Grid */
.layering-visualizer-grid {
  display: grid;
  grid-template-columns: 1fr 140px 1fr;
  gap: 20px;
  align-items: center;
  margin: 32px 0;
}
@media (max-width: 860px) {
  .layering-visualizer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.layering-flacon-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.layering-flacon-box.base-box {
  border-top: 3px solid #dca54c;
}
.layering-flacon-box.accent-box {
  border-top: 3px solid #6cb2eb;
}
.flacon-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.flacon-role-badge.base {
  background: rgba(220,165,76,0.15);
  color: var(--accent);
  border: 1px solid rgba(220,165,76,0.3);
}
.flacon-role-badge.accent {
  background: rgba(108,178,235,0.15);
  color: #4a90a4;
  border: 1px solid rgba(108,178,235,0.3);
}
.flacon-thumb-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 14px;
  display: block;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}
.flacon-thumb-img:hover {
  transform: scale(1.05) rotate(-2deg);
}
.flacon-select-ctrl {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

/* Crucible Center */
.layering-crucible-box {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.crucible-vessel {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,165,76,0.2) 0%, rgba(108,178,235,0.1) 60%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 10px;
  box-shadow: 0 0 35px rgba(220,165,76,0.25);
  animation: alchemyPulse 3s infinite alternate ease-in-out;
}
@keyframes alchemyPulse {
  0% { transform: scale(0.96); box-shadow: 0 0 25px rgba(220,165,76,0.2); }
  100% { transform: scale(1.06); box-shadow: 0 0 45px rgba(108,178,235,0.35); }
}
.crucible-vessel i {
  font-size: 36px;
  background: linear-gradient(135deg, #dca54c, #6cb2eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.alchemy-plus-badge {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Ratio Selector */
.layering-ratio-bar {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px;
  margin: 20px auto;
  max-width: 480px;
}
.layering-ratio-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.layering-ratio-btn.active {
  background: var(--accent);
  color: #121212;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(220,165,76,0.3);
}

/* Metrics Grid */
.layering-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 680px) {
  .layering-metrics-grid {
    grid-template-columns: 1fr;
  }
}
.layering-metric-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.metric-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(220,165,76,0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 16px;
}
.metric-val-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}
.metric-label-txt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* Fused Olfactory Pyramid */
.fused-pyramid-container {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}
.fused-pyramid-level {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.fused-pyramid-level:last-child {
  border-bottom: none;
}
.pyramid-level-tag {
  width: 110px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pyramid-level-notes {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}

/* Sommelier Layering Protocol */
.layering-protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 768px) {
  .layering-protocol-grid {
    grid-template-columns: 1fr;
  }
}
.layering-protocol-step {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  position: relative;
}
.protocol-step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.protocol-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
}
.protocol-step-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   SHOWROOM 360 INTERACTIVE SENSORY LOUNGE (contact.html)
   ========================================================================== */
.showroom-lounge-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}
@media (max-width: 768px) {
  .showroom-lounge-shell {
    padding: 20px 16px;
  }
}
.zone-nav-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  margin: 20px 0 24px;
}
.zone-nav-btn {
  padding: 10px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.zone-nav-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.zone-nav-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  font-weight: 700;
}
.zone-display-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 24px;
}
.zone-display-card > * { min-width: 0; }
@media (max-width: 860px) {
  .zone-display-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
}
.zone-img-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 260px;
}
.zone-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.zone-img-wrapper:hover img {
  transform: scale(1.04);
}
.zone-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18,18,18,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(220,165,76,0.4);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.zone-spec-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.zone-spec-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   VIP CLIENT PORTAL MODAL (Dossier Privé DANN)
   ========================================================================== */
.vip-portal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  z-index: 1006;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vip-portal-modal.active {
  display: flex;
}
.vip-portal-card {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 20px;
  max-width: 620px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.vip-card-gold-pass {
  background: linear-gradient(135deg, #22201d 0%, #171512 100%);
  border: 1px solid rgba(220,165,76,0.4);
  border-radius: 14px;
  padding: 22px;
  color: #f7f3ee;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.vip-card-gold-pass::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(220,165,76,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.vip-pass-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.vip-pass-tier-badge {
  background: rgba(220,165,76,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vip-pass-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  margin-top: 14px;
}
.vip-pass-chip {
  text-align: center;
}
.vip-pass-chip b {
  font-size: 16px;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  display: block;
}
.vip-pass-chip span {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.vip-tab-btns {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.vip-tab-nav-btn {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.vip-tab-nav-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.vip-tab-pane {
  display: none;
}
.vip-tab-pane.active {
  display: block;
}

/* ==========================================================================
   v5.2: L'ÉCRIN CADEAU IMPÉRIAL & SENSORY COMPARE RADAR STUDIO
   ========================================================================== */

/* Gift Concierge Shell on cart.html */
.gift-concierge-shell {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}
.gift-box-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 640px) {
  .gift-box-selection-grid {
    grid-template-columns: 1fr;
  }
}
.gift-box-choice-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
}
.gift-box-choice-card:hover, .gift-box-choice-card.active {
  border-color: var(--accent);
  background: rgba(220,165,76,0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220,165,76,0.18);
}
.gift-box-sample-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.gift-box-sample-icon.box-noir {
  background: linear-gradient(135deg, #1b1916, #2d2924);
  border: 1px solid var(--accent);
  color: var(--accent);
}
.gift-box-sample-icon.box-rouge {
  background: linear-gradient(135deg, #5b1318, #821c23);
  border: 1px solid #c24650;
  color: #ffd8db;
}
.gift-box-sample-icon.box-blanc {
  background: linear-gradient(135deg, #f7f4ed, #e6dfd1);
  border: 1px solid #d4c8b2;
  color: #3d3528;
}
.gift-box-choice-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}
.gift-box-choice-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* Wax Seal Stamp Row */
.wax-seal-selection-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}
.wax-seal-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.wax-seal-chip:hover {
  border-color: var(--accent);
}
.wax-seal-chip.active {
  border-color: var(--accent);
  background: rgba(220,165,76,0.12);
  color: var(--ink);
  font-weight: 700;
}
.wax-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}
.wax-dot.gold { background: #dca54c; }
.wax-dot.crimson { background: #821c23; }
.wax-dot.emerald { background: #1c6b4b; }

/* Parchment Calligraphy Preview */
.parchment-letter-preview {
  background: #fbf7ee;
  border: 2px solid #e3d3b6;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 14px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  color: #2b241b;
}
.parchment-letter-preview::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(220,165,76,0.4);
  pointer-events: none;
  border-radius: 4px;
}
.parchment-crest {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8c6d32;
  margin-bottom: 10px;
}
.parchment-recipient {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 8px;
  color: #1b1712;
}
.parchment-body-text {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
  color: #3b3328;
  min-height: 48px;
}
.parchment-seal-stamp {
  position: absolute;
  bottom: 12px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.parchment-seal-stamp.gold { background: radial-gradient(circle, #e5b35c, #b37e28); }
.parchment-seal-stamp.crimson { background: radial-gradient(circle, #9e2a32, #6b141a); }
.parchment-seal-stamp.emerald { background: radial-gradient(circle, #258a61, #135238); }

/* ==========================================================================
   COMPARE SENSORY RADAR & ATTRIBUTE BREAKDOWN (openCompareModal)
   ========================================================================== */
.compare-sensory-panel {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin: 24px 0 16px;
}
.compare-sensory-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sensory-metric-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sensory-metric-label {
  width: 140px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.sensory-bars-container {
  flex: 1;
  display: flex;
  gap: 8px;
}
.sensory-bar-item {
  flex: 1;
  background: var(--line);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
  position: relative;
}
.sensory-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sensory-val-badge {
  font-size: 11px;
  font-family: 'Roboto', monospace;
  font-weight: 700;
  width: 32px;
  text-align: right;
  color: var(--ink);
}

.compare-verdict-box {
  background: rgba(220,165,76,0.06);
  border: 1px dashed rgba(220,165,76,0.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ==========================================================================
   SCENT JOURNAL & MEMORY KEEPER (blog.html)
   ========================================================================== */
.scent-journal-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.03);
}
.journal-entries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.journal-entry-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  position: relative;
}
.journal-entry-card .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: color 0.2s;
}
.journal-entry-card .delete-btn:hover {
  color: #e53e3e;
}

/* ==========================================================================
   v5.3: HAUTE CONCIERGE TRACKER & BLOG READING AMBIANCE MOODBOARD
   ========================================================================== */

/* Track Mode Switcher on track-order.html */
.track-mode-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-track-mode {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-track-mode:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.btn-track-mode.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(220,165,76,0.3);
}

/* Appointment Result Card */
.appointment-result-card {
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}
.appointment-gold-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.appointment-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .appointment-details-grid {
    grid-template-columns: 1fr;
  }
}
.appointment-detail-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
.appointment-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.appointment-detail-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Reading Ambiance Bar on blog-detail.html */
.blog-reading-ambiance-bar {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ambiance-chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ambiance-sound-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ambiance-sound-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.ambiance-sound-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  font-weight: 700;
}

/* Featured Flacons in Blog */
.blog-featured-flacons-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.blog-flacons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 680px) {
  .blog-flacons-grid {
    grid-template-columns: 1fr;
  }
}
.blog-flacon-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all 0.25s ease;
}
.blog-flacon-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.blog-flacon-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 8px;
  padding: 4px;
}

/* Reader Reaction Bar */
.reader-reaction-section {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}
.reaction-chips-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.reader-reaction-btn {
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reader-reaction-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.reader-reaction-btn.voted {
  background: rgba(220,165,76,0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   v5.4: GENERATIVE ENGINE OPTIMIZATION (GEO) — CITATION-READY KNOWLEDGE BLOCK
   ========================================================================== */
.geo-knowledge-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
  margin-top: 24px;
}
.geo-facts-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}
@media (max-width: 900px) {
  .geo-facts-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .geo-facts-strip { grid-template-columns: 1fr; }
}
.geo-fact-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.geo-fact-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.geo-fact-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.geo-fact-label {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.geo-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 860px) {
  .geo-faq-grid { grid-template-columns: 1fr; }
}
.geo-faq-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.geo-faq-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}
.geo-faq-question {
  font-family: 'Playfair Display', serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.45;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.geo-faq-question i {
  color: var(--accent);
  font-size: 13px;
  margin-top: 5px;
  flex-shrink: 0;
}
.geo-faq-answer {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}

/* ==========================================================================
   v6.0: L'ATELIER LUMIÈRE — LUXURY VISUAL & INTERACTIVE MOTION SUITE
   ========================================================================== */

/* 1. Sticky Frosted Glass Header Morph on Scroll */
.site-header {
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header .header-main {
  transition: padding 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(184, 154, 108, 0.32);
  box-shadow: 0 10px 32px -12px rgba(17, 17, 17, 0.12);
}
html.dark-theme .site-header.scrolled {
  background: rgba(16, 16, 16, 0.86);
  border-bottom-color: rgba(220, 165, 76, 0.28);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.55);
}
.site-header.scrolled .header-main {
  padding: 12px 0;
}
.site-header.scrolled .logo-mark {
  transform: scale(0.92);
}

/* 2. Infinite Silk Brand Marquee with Edge Fade & Pause-on-Hover */
.brands-marquee-wrap.marquee-enhanced {
  display: block;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.brands-marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: luxuryMarqueeGlide 52s linear infinite;
}
.brands-marquee-wrap.marquee-enhanced:hover .brands-marquee-track,
.brands-marquee-wrap.marquee-enhanced:focus-within .brands-marquee-track {
  animation-play-state: paused;
}
.marquee-sep {
  color: var(--accent);
  font-size: 9px;
  opacity: 0.6;
  user-select: none;
  flex-shrink: 0;
}
.brands-marquee-wrap.marquee-enhanced .brand-pill {
  position: relative;
  overflow: hidden;
  border-color: rgba(184, 154, 108, 0.28);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.brands-marquee-wrap.marquee-enhanced .brand-pill:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 22px -6px rgba(184, 154, 108, 0.45);
  transform: translateY(-3px) scale(1.03);
}
@keyframes luxuryMarqueeGlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 3. Hero Editorial Slide Choreography & Ken Burns Depth */
.hero-slider .swiper-slide .hero-bg img {
  transform: scale(1.02);
  transition: transform 6.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero-slider .swiper-slide-active .hero-bg img {
  transform: scale(1.09);
}
.hero-slider .swiper-slide .hero-content .eyebrow,
.hero-slider .swiper-slide .hero-content h1,
.hero-slider .swiper-slide .hero-content .hero-slide-title,
.hero-slider .swiper-slide .hero-content .lead,
.hero-slider .swiper-slide .hero-content .hero-ctas {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-slider .swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-content .eyebrow { opacity: 0; transform: translateY(18px); }
.hero-slider .swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-content h1,
.hero-slider .swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-content .hero-slide-title { opacity: 0; transform: translateY(26px); }
.hero-slider .swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-content .lead { opacity: 0; transform: translateY(22px); }
.hero-slider .swiper-initialized .swiper-slide:not(.swiper-slide-active) .hero-content .hero-ctas { opacity: 0; transform: translateY(18px); }

.hero-slider .swiper-slide-active .hero-content .eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.hero-slider .swiper-slide-active .hero-content h1,
.hero-slider .swiper-slide-active .hero-content .hero-slide-title { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hero-slider .swiper-slide-active .hero-content .lead { opacity: 0.94; transform: translateY(0); transition-delay: 0.34s; }
.hero-slider .swiper-slide-active .hero-content .hero-ctas { opacity: 1; transform: translateY(0); transition-delay: 0.46s; }

/* 4. Cursor-Tracked Golden Spotlight Sheen & 3D Flacon Elevation */
.spotlight-surface {
  position: relative;
  --mx: 50%;
  --my: 50%;
}
.spotlight-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    320px circle at var(--mx) var(--my),
    rgba(220, 165, 76, 0.16),
    rgba(220, 165, 76, 0.04) 42%,
    transparent 70%
  );
  transition: opacity 0.4s ease;
  z-index: 2;
}
html.dark-theme .spotlight-surface::after {
  background: radial-gradient(
    340px circle at var(--mx) var(--my),
    rgba(220, 165, 76, 0.22),
    rgba(220, 165, 76, 0.06) 44%,
    transparent 72%
  );
}
.spotlight-surface:hover::after {
  opacity: 1;
}
.card.spotlight-surface {
  border-radius: 12px;
  padding: 6px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.35s ease;
}
.card.spotlight-surface:hover {
  box-shadow: 0 22px 44px -18px rgba(17, 17, 17, 0.16), 0 0 0 1px rgba(184, 154, 108, 0.28);
}
html.dark-theme .card.spotlight-surface:hover {
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(220, 165, 76, 0.32);
}
.card:hover .card-media img {
  transform: scale(1.065) translateY(-3px);
  filter: drop-shadow(0 14px 18px rgba(17, 17, 17, 0.16));
}

/* 5. Luminous Satin Sweep on Luxury Buttons & Banners */
.btn-primary::after,
.btn-outline::after,
.vip-voucher-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -130%;
  width: 65%;
  height: 180%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 248, 224, 0.06) 30%,
    rgba(255, 244, 210, 0.34) 50%,
    rgba(255, 248, 224, 0.06) 70%,
    transparent 100%
  );
  transform: skewX(-22deg);
  transition: left 0.78s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-outline:hover::after,
.vip-voucher-banner:hover::after {
  left: 165%;
}
.vip-voucher-banner {
  position: relative;
  overflow: hidden;
}

/* 6. Staggered Cascade Reveal Choreography & Golden Hairline Draw-in */
.cascade-item {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--stagger-i, 0) * 55ms),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--stagger-i, 0) * 55ms),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.cascade-item.cascade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.luxury-divider {
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
.animate-on-scroll:not(.fade-up) .luxury-divider {
  transform: scaleX(0.15);
  opacity: 0.25;
}
.animate-on-scroll.fade-up .luxury-divider {
  transform: scaleX(1);
  opacity: 1;
}

/* 7. Fly-to-Cart Crystal Flacon Orb, 24K Atomizer Mist Burst & Cart Halo Pulse */
.fly-flacon-ghost {
  position: fixed;
  z-index: 10050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(220, 165, 76, 0.85);
  background: radial-gradient(circle, rgba(255, 250, 238, 0.96), rgba(244, 239, 235, 0.85));
  box-shadow: 0 12px 28px rgba(184, 154, 108, 0.45), 0 0 18px rgba(245, 199, 109, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}
.fly-flacon-ghost img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}
.mist-spark-particle {
  position: fixed;
  z-index: 10040;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8de 0%, #e8be6c 45%, rgba(184, 154, 108, 0) 75%);
  animation: atomizerMistBurst 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes atomizerMistBurst {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.35);
  }
  55% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, -32px))) scale(1.65);
  }
}
.cart-halo-ring {
  position: fixed;
  z-index: 10045;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #dca54c;
  pointer-events: none;
  animation: cartHaloExpand 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cartHaloExpand {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}

/* 8. PDP Interactive "Xịt Thử Làn Hương (Atelier Virtual Spray)" & Sensory Shimmer */
.pd-media {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px;
}
.pd-media .zoom-container.flacon-3d-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.pd-media .zoom-container.flacon-3d-box img {
  width: 100%;
  border-radius: 10px;
}
.atelier-spray-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
  border-radius: 12px;
}
.atelier-spray-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 7;
  flex-wrap: wrap;
}
.atelier-spray-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(184, 154, 108, 0.65);
  background: linear-gradient(135deg, rgba(184, 154, 108, 0.14), rgba(245, 199, 109, 0.08));
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.atelier-spray-btn i {
  color: var(--accent-text, var(--accent));
  transition: transform 0.3s ease;
}
.atelier-spray-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(220, 165, 76, 0.24), rgba(245, 199, 109, 0.14));
  box-shadow: 0 10px 24px -8px rgba(184, 154, 108, 0.45);
}
.atelier-spray-btn:active {
  transform: scale(0.95);
}
.atelier-spray-btn.spraying i {
  transform: rotate(-18deg) scale(1.2);
}
.atelier-mist-cloud {
  position: absolute;
  top: 24%;
  left: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.85) 0%, rgba(220, 165, 76, 0.38) 42%, rgba(220, 165, 76, 0) 74%);
  filter: blur(14px);
  pointer-events: none;
  animation: atelierPlumeRise 1.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes atelierPlumeRise {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.25); }
  22% { opacity: 0.95; transform: translate(calc(-50% + var(--drift, 0px)), -24px) scale(1.25); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px) * 2.2), -125px) scale(2.4); }
}
.floating-scent-note {
  position: absolute;
  top: 32%;
  left: 50%;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #1a1408;
  background: rgba(255, 250, 236, 0.92);
  border: 1px solid rgba(184, 154, 108, 0.65);
  box-shadow: 0 8px 20px rgba(184, 154, 108, 0.28);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  animation: floatNoteVapor 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
html.dark-theme .floating-scent-note {
  color: #fff6e0;
  background: rgba(24, 20, 14, 0.88);
  border-color: rgba(220, 165, 76, 0.55);
}
@keyframes floatNoteVapor {
  0% {
    opacity: 0;
    transform: translate(-50%, 16px) scale(0.7);
  }
  18% {
    opacity: 1;
    transform: translate(calc(-50% + var(--nx, 0px)), -18px) scale(1);
  }
  78% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--nx, 0px) * 1.35), -88px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--nx, 0px) * 1.6), -128px) scale(0.92);
  }
}

/* Sensory Spectrum & Longevity Liquid-Gold Shimmer */
.spectrum-fill,
.perf-bar-fill {
  position: relative;
  overflow: hidden;
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.spectrum-fill::after,
.perf-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 252, 235, 0.55) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: spectrumLiquidSweep 2.8s ease-in-out infinite;
}
@keyframes spectrumLiquidSweep {
  0%, 40% { transform: translateX(-100%); }
  100% { transform: translateX(140%); }
}
.pyramid-level {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.pyramid-level:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px -8px rgba(184, 154, 108, 0.38);
}

/* 9. Luxury Champagne Shimmer Skeleton Loaders */
.skeleton-card,
.skeleton-blog-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px;
}
.skeleton-shimmer {
  background: linear-gradient(
    105deg,
    var(--bg-alt) 25%,
    rgba(220, 165, 76, 0.16) 48%,
    var(--bg-alt) 72%
  );
  background-size: 240% 100%;
  animation: champagneShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-card .sk-img { aspect-ratio: 3 / 4; width: 100%; margin-bottom: 14px; }
.skeleton-card .sk-line { height: 12px; margin: 8px auto; width: 70%; }
.skeleton-card .sk-line.short { width: 42%; height: 10px; }
.skeleton-card .sk-line.price { width: 52%; height: 14px; margin-top: 12px; }
.skeleton-blog-card { padding: 0; }
.skeleton-blog-card .sk-img { height: 220px; width: 100%; border-radius: 0; }
.skeleton-blog-card .sk-body { padding: 22px; }
.skeleton-blog-card .sk-line { height: 13px; margin-bottom: 10px; width: 92%; }
.skeleton-blog-card .sk-line.short { width: 55%; height: 11px; }
@keyframes champagneShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   v6.1: L'ATELIER LUMIÈRE II — QUICK-VIEW, NOTES RIBBON, FOIL, HOROLOGY AURA & SCROLL RING
   ========================================================================== */

/* A. Card Quick-View Eye Button & Scent-Notes Hover Ribbon */
.card-media-wrap .quick-view-btn {
  position: absolute;
  top: 90px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s var(--ease) 0.05s, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  z-index: 10;
}
.card:hover .quick-view-btn,
.quick-view-btn:focus-visible {
  opacity: 1;
  transform: translateX(0);
}
.card-media-wrap .quick-view-btn:hover {
  background: var(--accent);
  color: #121212;
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(220, 165, 76, 0.45);
}
html.dark-theme .card-media-wrap .quick-view-btn {
  background: rgba(24, 24, 24, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f0e6d2;
}
html.dark-theme .card-media-wrap .quick-view-btn:hover {
  background: var(--accent);
  color: #121212;
}
@media (hover: none), (pointer: coarse) {
  .card-media-wrap .quick-view-btn {
    opacity: 0.9;
    transform: translateX(0);
  }
}

.card-notes-peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 56px 10px 12px;
  background: linear-gradient(to top, rgba(14, 12, 10, 0.88) 0%, rgba(14, 12, 10, 0.68) 72%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f7eedc;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.34s var(--ease), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 3;
}
.card:hover .card-notes-peek {
  opacity: 1;
  transform: translateY(0);
}
.card-notes-peek .peek-label {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e8be6c;
  font-weight: 700;
  margin-bottom: 2px;
}
.card-notes-peek .peek-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 250, 240, 0.92);
}

/* B. Parisian Atelier Quick-View Modal */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(10, 9, 8, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.qv-overlay.open {
  opacity: 1;
  visibility: visible;
}
.qv-modal {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid rgba(184, 154, 108, 0.42);
  border-radius: 16px;
  box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(220, 165, 76, 0.18);
  transform: translateY(24px) scale(0.95);
  opacity: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.qv-overlay.open .qv-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.qv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.qv-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #121212;
  transform: rotate(90deg);
}
.qv-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 28px;
  padding: 28px;
}
@media (max-width: 720px) {
  .qv-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
}
.qv-media {
  position: relative;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(220, 165, 76, 0.14), var(--bg-alt) 72%);
  border: 1px solid var(--line);
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.qv-media img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.2));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.qv-media:hover img {
  transform: translateY(-4px) scale(1.03);
}
.qv-spray-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}
.qv-brand {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text, var(--accent));
  font-weight: 700;
  margin-bottom: 4px;
}
.qv-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.qv-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.qv-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 500;
}
.qv-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.qv-price .old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
}
.qv-price .now {
  color: var(--wine);
}
.qv-pyramid {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}
.qv-pyramid-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.45;
}
.qv-pyramid-row span:first-child {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent-text, var(--accent));
}
.qv-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.qv-actions .btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
}
.qv-size-chip {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}
.qv-size-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.qv-size-chip.active {
  background: rgba(220, 165, 76, 0.16);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(184, 154, 108, 0.45);
}

/* PDP Multi-Volume / Decant 10ml Selector */
.variant-selector-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.variant-selector-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text, var(--accent));
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.variant-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 480px) {
  .variant-cards-grid { grid-template-columns: 1fr; }
}
.variant-card {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
  position: relative;
}
.variant-card:hover {
  border-color: rgba(184, 154, 108, 0.7);
  transform: translateY(-2px);
}
.variant-card.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(220, 165, 76, 0.12), var(--paper) 65%);
  box-shadow: 0 8px 22px -10px rgba(184, 154, 108, 0.5);
}
.variant-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.variant-card-badge {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(220, 165, 76, 0.2);
  color: var(--accent-text, var(--accent));
  font-weight: 700;
}
.variant-card-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--wine);
  margin-top: 4px;
}
.variant-card-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* C. Liquid-Gold Sliding Tab Pill Indicator */
.horology-tabs,
.tabs {
  position: relative;
}
.sliding-tab-indicator {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(220, 165, 76, 0.24), rgba(184, 154, 108, 0.14));
  border: 1px solid rgba(220, 165, 76, 0.6);
  box-shadow: 0 6px 18px -6px rgba(220, 165, 76, 0.45);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), width 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.tabs .sliding-tab-indicator {
  border-radius: 3px;
  height: 2.5px !important;
  bottom: 0;
  top: auto !important;
  background: linear-gradient(90deg, #b89a6c, #f5c76d, #dca54c);
  border: none;
  box-shadow: 0 0 12px rgba(220, 165, 76, 0.7);
}
.horology-tabs > .horology-tab-btn,
.tabs > .tab-btn {
  position: relative;
  z-index: 1;
}

/* D. Olfactory Horology Mood Aura Cross-Fade Theming */
.horology-container {
  position: relative;
  overflow: hidden;
  transition: border-color 0.55s ease, box-shadow 0.55s ease, background 0.55s ease;
}
.horology-container::before {
  content: '';
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.45;
  transition: background 0.65s ease, opacity 0.5s ease;
  z-index: 0;
}
.horology-container > * {
  position: relative;
  z-index: 1;
}
.horology-container[data-vibe-theme="day"]::before {
  background: radial-gradient(circle at 82% 18%, rgba(245, 199, 109, 0.22), transparent 56%);
}
.horology-container[data-vibe-theme="evening"]::before {
  background: radial-gradient(circle at 82% 18%, rgba(168, 52, 74, 0.24), rgba(220, 165, 76, 0.14) 38%, transparent 62%);
}
.horology-container[data-vibe-theme="rain"]::before {
  background: radial-gradient(circle at 82% 18%, rgba(74, 144, 164, 0.24), rgba(140, 109, 44, 0.08) 42%, transparent 62%);
}
.horology-container[data-vibe-theme="summer"]::before {
  background: radial-gradient(circle at 82% 18%, rgba(0, 168, 150, 0.22), rgba(245, 199, 109, 0.14) 40%, transparent 62%);
}
.horology-card {
  animation: horologyCardPop 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--hc-i, 0) * 70ms);
}
@keyframes horologyCardPop {
  0% { opacity: 0; transform: translateY(16px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* E. 3D Holographic 24K Gold Foil Sheen on VIP Vouchers & Plaques */
.foil-sheen {
  position: relative;
  overflow: hidden;
  --fx: 50%;
  --fy: 50%;
}
.foil-sheen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    260px circle at var(--fx) var(--fy),
    rgba(255, 248, 214, 0.32) 0%,
    rgba(232, 190, 108, 0.18) 32%,
    rgba(196, 144, 68, 0.08) 55%,
    transparent 74%
  );
  mix-blend-mode: soft-light;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.foil-sheen:hover::before {
  opacity: 1;
}

/* F. Rotating Conic Gold Rim Gleam on Luxury Signature Triggers */
@property --gold-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateGoldRim {
  to { --gold-angle: 360deg; }
}
.btn-authenticity-dossier,
.atelier-spray-btn {
  background-origin: border-box;
  border-color: transparent;
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    conic-gradient(from var(--gold-angle), rgba(184, 154, 108, 0.25), #f5c76d 25%, rgba(184, 154, 108, 0.2) 55%, #dca54c 80%, rgba(184, 154, 108, 0.25));
  background-clip: padding-box, border-box;
  animation: rotateGoldRim 5.5s linear infinite;
}
html.dark-theme .atelier-spray-btn {
  background-image:
    linear-gradient(rgba(28, 24, 18, 0.94), rgba(28, 24, 18, 0.94)),
    conic-gradient(from var(--gold-angle), rgba(220, 165, 76, 0.22), #ffe39c 25%, rgba(220, 165, 76, 0.18) 55%, #dca54c 80%, rgba(220, 165, 76, 0.22));
}

/* G. Circular SVG Gold Scroll-Progress Ring inside #back-to-top */
.back-to-top {
  width: 48px;
  height: 48px;
  border: none;
  padding: 0;
}
.back-to-top .btt-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.back-to-top .btt-ring-bg {
  fill: none;
  stroke: rgba(220, 165, 76, 0.22);
  stroke-width: 2.5;
}
.back-to-top .btt-ring-fill {
  fill: none;
  stroke: #e8be6c;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s ease-out;
}
.back-to-top:hover .btt-ring-fill {
  stroke: #ffffff;
}

/* H. Subtle GPU Scroll Parallax Helpers */
.full-banner {
  overflow: hidden;
}
.parallax-layer {
  will-change: transform;
}

/* ==========================================================================
   v6.3: L'ATELIER LUMIÈRE III — KINETIC LUXURY MICRO-MOTION SUITE
   ========================================================================== */

/* 1. Editorial Clip-Unmask Reveal for Section Headings */
.animate-on-scroll .editorial-title,
.animate-on-scroll .section-head h2 {
  transition: clip-path 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
.animate-on-scroll:not(.fade-up) .editorial-title,
.animate-on-scroll:not(.fade-up) .section-head h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(16px);
  opacity: 0.05;
}
.animate-on-scroll.fade-up .editorial-title,
.animate-on-scroll.fade-up .section-head h2 {
  clip-path: inset(0 0 0% 0);
  transform: translateY(0);
  opacity: 1;
}

/* 2. Parisian Couture Inner-Frame & Arrow Glide on Category Cards */
.cat-card {
  border-radius: 10px;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(232, 195, 122, 0.55);
  border-radius: 6px;
  z-index: 2;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.cat-card:hover::before {
  opacity: 1;
  transform: scale(1);
}
.cat-card .cat-content {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-card:hover .cat-content {
  transform: translateY(-4px);
}
.cat-card .cat-content span {
  display: inline-block;
  transition: letter-spacing 0.35s var(--ease), color 0.3s ease, border-color 0.3s ease;
}
.cat-card:hover .cat-content span {
  letter-spacing: 0.16em;
  color: #f5c76d;
  border-color: #f5c76d;
}

/* 3. Orbital Icon Glow on Royal Pillars & Luxury Statistics Cards */
.pillar-crest-icon,
.stat-icon-wrap {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.42s ease, border-color 0.35s ease;
}
.royal-pillar-card:hover .pillar-crest-icon,
.stat-card-luxury:hover .stat-icon-wrap {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 0 6px rgba(220, 165, 76, 0.12), 0 12px 24px -8px rgba(184, 154, 108, 0.45);
}

/* 4. Sidecart Staggered Item Entrance & Liquid-Gold Free-Shipping Shimmer */
.sidecart-item {
  animation: sidecartSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--sc-i, 0) * 55ms);
}
@keyframes sidecartSlideIn {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}
.shipping-progress-fill {
  position: relative;
  overflow: hidden;
}
.shipping-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 250, 224, 0.6) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: spectrumLiquidSweep 2.4s ease-in-out infinite;
}

/* 5. Price Roll Highlight Flash (PDP & Quick-View Variant Morph) */
.price-rolling {
  text-shadow: 0 0 16px rgba(220, 165, 76, 0.42);
  transition: text-shadow 0.35s ease;
}

/* 6. 24K Champagne Diamond Celebration Burst (Voucher & Freeship Unlock) */
.champagne-diamond {
  position: fixed;
  z-index: 10070;
  pointer-events: none;
  color: #e8be6c;
  font-size: 13px;
  text-shadow: 0 0 10px rgba(245, 199, 109, 0.75);
  animation: champagneBurst 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes champagneBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--cx, 0px)), calc(-50% + var(--cy, -60px))) scale(1.15) rotate(var(--crot, 140deg));
  }
}

/* 7. Elastic Micro-Spring Filter Chips & Editorial Blog Detail Photography */
.filter-chip {
  animation: chipSpringIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes chipSpringIn {
  0% { opacity: 0; transform: scale(0.84) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.blog-hero-img,
.blog-content img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.blog-hero-img:hover,
.blog-content img:hover {
  transform: scale(1.015);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.25);
}

/* 8. Sticky Floating Flacon Pedestal on Desktop PDP & Clamped Decorative Auras */
@media (min-width: 901px) {
  .pd-media {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}
.quiz-section,
.quiz-shell,
.layering-shell,
.fragrance-quiz-shell {
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   v6.4: MULTI-DEVICE MASTERY, 60FPS MOBILE GPU & NATIVE TOUCH ERGONOMICS
   ========================================================================== */

/* 1. Fast-Tap Touch Ergonomics & Overscroll Containment */
a, button, input, select, textarea, label, .card, .brand-pill, .variant-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(184, 154, 108, 0.18);
}
.sidecart,
.mobile-nav-drawer,
.qv-modal,
.encyclopedia-modal-box,
.sommelier-modal-box {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Clamp all decorative morph auras so 360px screens NEVER overflow */
section.section {
  overflow-x: clip;
}
.morph-aura,
.morph-aura-secondary {
  max-width: 85vw;
  max-height: 85vw;
}

/* 2. Coordinated Fixed Bottom Widgets + iOS Safe-Area Support */
.back-to-top {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
body.has-sticky-bar .back-to-top {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
body.has-sticky-bar .compare-dock.visible {
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}
body.has-sticky-bar .pwa-install-banner.visible {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.sidecart-footer,
.mobile-nav-footer,
.site-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* 3. Prevent iOS Safari Auto-Zoom on All Touch Devices (font-size >= 16px) */
@media (max-width: 1024px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* 4. Comfortable 40px Thumb Tap Targets & Uncrowded Narrow-Phone Header (360px - 768px) */
@media (max-width: 768px) {
  .header-actions {
    gap: 6px !important;
  }
  .header-actions .icon-btn,
  .header-actions #ambient-sound-btn,
  .header-actions #vip-portal-btn,
  .header-actions #theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  /* Lighter mobile GPU blur for cool, silky 60fps scrolling */
  .morph-blob,
  .hero-morph-aura-1,
  .hero-morph-aura-2,
  .pd-scent-halo {
    filter: blur(28px) !important;
    max-width: 72vw;
    max-height: 72vw;
  }
}

@media (max-width: 520px) {
  /* Move secondary ambient sound popover into Mobile Drawer on compact phones (360-520px) */
  .header-actions .ambient-sound-wrapper {
    display: none !important;
  }
  .card-media-wrap .quick-view-btn {
    top: auto;
    right: auto;
    bottom: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
  }
  .site-header .logo-text span {
    white-space: nowrap;
  }
  .header-main {
    padding: 12px 0 !important;
    gap: 6px;
  }
  .site-header .logo {
    gap: 8px;
  }
  .site-header .logo-mark {
    height: 34px;
  }
  .site-header .logo-text span {
    font-size: 15.5px;
    letter-spacing: 0.08em;
  }
  .site-header .logo-text small {
    font-size: 8px;
  }
  .header-actions {
    gap: 4px !important;
  }
  .header-actions .icon-btn,
  .header-actions #vip-portal-btn,
  .header-actions #theme-toggle-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  .sticky-add-bar {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .sticky-bar-thumb {
    width: 38px;
    height: 38px;
  }
  .sticky-bar-title {
    font-size: 13px;
    max-width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-bar-right .qty-control {
    display: none;
  }
}

@media (max-width: 440px) {
  /* Extra breathing room for DANN Perfume wordmark on compact phones (360-440px); VIP Portal stays prominently at top of Mobile Drawer */
  .header-actions #vip-portal-btn {
    display: none !important;
  }
  .site-header .logo {
    gap: 6px;
    flex-shrink: 0;
  }
  .site-header .logo-mark {
    height: 28px;
    width: auto;
  }
  .site-header .logo-text span {
    font-size: 14px;
    letter-spacing: 0.05em;
  }
  .header-actions {
    gap: 2px !important;
    flex-shrink: 0;
  }
}

/* 5. Native Mobile Bottom-Sheet Quick-View Modal (<= 640px) */
@media (max-width: 640px) {
  .qv-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .qv-modal {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 12px);
  }
  .qv-overlay.open .qv-modal {
    transform: translateY(0);
  }
  .qv-modal::before {
    content: '';
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(184, 154, 108, 0.55);
    margin: 10px auto 0;
  }
  .qv-grid {
    padding: 14px 18px 20px;
    gap: 14px;
  }
  .qv-media {
    padding: 14px 12px 12px;
  }
  .qv-media img {
    max-width: 175px;
  }
  .qv-title {
    font-size: 20px;
  }
  .qv-size-row {
    flex-direction: column;
  }
  /* Sleek Mobile Cart Stacked Rows (no awkward horizontal table cramping on 360px) */
  .cart-table thead {
    display: none;
  }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td {
    display: block;
    width: 100%;
  }
  .cart-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .cart-table td {
    padding: 0;
    border: none;
  }
  .cart-table td:first-child {
    grid-column: 1 / -1;
  }
  .cart-table td:nth-child(2) {
    display: none;
  }
  .cart-table td:nth-child(4) {
    font-weight: 700;
    color: var(--wine);
    text-align: right;
  }
  .cart-table td:last-child {
    grid-column: 1 / -1;
    text-align: right;
  }
}

/* 6. Balanced Tablet Ergonomics (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .wrap {
    padding: 0 20px;
  }
  .horology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .category-grid {
    gap: 16px;
  }
  .cat-card {
    height: 240px;
  }
  .stats-grid,
  .royal-pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Optional Reduced-Motion Toggle */
html.reduced-motion-mode .brands-marquee-track,
html.reduced-motion-mode .morph-blob,
html.reduced-motion-mode .pd-scent-halo,
html.reduced-motion-mode .gold-shimmer-text,
html.reduced-motion-mode .spectrum-fill::after,
html.reduced-motion-mode .perf-bar-fill::after,
html.reduced-motion-mode .shipping-progress-fill::after,
html.reduced-motion-mode .skeleton-shimmer,
html.reduced-motion-mode .btn-authenticity-dossier,
html.reduced-motion-mode .atelier-spray-btn {
  animation: none !important;
}
html.reduced-motion-mode .cascade-item {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.reduced-motion-mode #scent-canvas {
  display: none !important;
}

/* ==========================================================================
   v6.5 DEEP MULTI-DEVICE UI/UX PERFECTION (320px SE -> 1440px Desktop)
   ========================================================================== */

/* 1. Global Comfortable Touch Targets (>= 36px on touch & mobile/tablet) */
.sidecart-close {
  min-width: 38px !important;
  min-height: 38px !important;
  width: 38px;
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.btn-sm {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.remove-link {
  min-height: 36px;
  min-width: 44px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.newsletter button {
  min-height: 38px;
  padding: 8px 14px;
}
.mobile-filter-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px !important;
  padding: 8px 16px !important;
}
.note-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.card-media-wrap .wishlist-btn,
.card-media-wrap .quick-view-btn,
.horology-add-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}
.ambiance-sound-chip,
.reader-reaction-btn,
#journal-toggle-btn,
.reward-claim-btn,
.vip-tier-action-btn {
  min-height: 38px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.journal-entry-card .delete-btn {
  min-width: 36px !important;
  min-height: 36px !important;
  width: 36px;
  height: 36px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* 2. Mobile Cart Compact Quantity Stepper (<= 640px) */
@media (max-width: 640px) {
  .cart-table .qty-control {
    width: auto !important;
    max-width: 132px;
    display: inline-flex !important;
    align-items: center;
  }
  .cart-table td:nth-child(3) {
    width: auto;
  }
  /* Sleek compact PWA Install Pill on Mobile */
  .pwa-install-banner {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
}

/* 3. PDP Secondary Actions (Yêu thích / So sánh / Chia sẻ) — Zero Clipping on 320px-480px */
@media (max-width: 480px) {
  .pd-secondary-actions {
    gap: 6px !important;
  }
  .pd-secondary-actions .btn {
    padding: 10px 6px !important;
    font-size: 11px !important;
    letter-spacing: 0.03em !important;
    gap: 5px !important;
    min-width: 0;
    min-height: 40px;
    white-space: nowrap;
  }
  /* Track Order: Stack Input + Button cleanly on narrow phones */
  .track-search-form {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .track-search-form .track-submit-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  /* Shop Header Tools: Side-by-side compact row so perfumes show higher above fold */
  .shop-tools-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px !important;
  }
  .shop-tools-row .btn {
    font-size: 10.5px !important;
    padding: 8px 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 350px) {
  /* Ultra-narrow iPhone SE (320px) Header & PDP Precision */
  .wrap {
    padding: 0 10px !important;
  }
  .site-header .logo {
    gap: 5px;
  }
  .site-header .logo-mark {
    height: 24px;
  }
  .site-header .logo-text span {
    font-size: 12.5px;
    letter-spacing: 0.03em;
  }
  .header-actions .icon-btn,
  .header-actions #theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
  .pd-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-secondary-actions .btn:last-child {
    grid-column: 1 / -1;
  }
}

/* 4. Tablet & Checkout Polish (768px - 960px) */
@media (max-width: 960px) {
  .checkout-layout .btn-block,
  #checkout-form .btn-primary[type="submit"] {
    width: 100% !important;
    display: flex !important;
    justify-content: center;
    min-height: 48px;
  }
}
@media (min-width: 768px) and (max-width: 960px) {
  .site-header .search-box {
    max-width: 155px;
    margin-right: 4px;
  }
  .header-actions {
    gap: 8px !important;
  }
}

/* v6.6 Compare Modal & Mobile Filter Drawer Ergonomics */
.compare-modal-close {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shop-filter-close-mobile,
.shop-filter-apply-mobile {
  display: none !important;
}
@media (max-width: 900px) {
  .shop-filter-close-mobile {
    display: inline-flex !important;
  }
  .shop-filter-apply-mobile {
    display: block !important;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .shop-filter-apply-mobile .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}
