@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..700;1,400..600&family=Inter:wght@300;400;500;600&display=swap');

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  background-color: #faf7f1;
  color: #15130f;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #b6905a; color: #faf7f1; }

/* ---------- Header ---------- */
#site-header {
  transition: padding .35s ease, background-color .35s ease, box-shadow .35s ease;
}
#site-header.is-scrolled {
  padding-top: .6rem;
  padding-bottom: .6rem;
  box-shadow: 0 1px 0 0 #e2d9c8;
}

.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: #15130f;
  transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #15130f; }
.dark-nav .nav-link::after { background: #d9c19b; }

#mobile-drawer {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
#mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Sillage divider (signature motif) ---------- */
.sillage {
  width: 100%;
  height: 48px;
  display: block;
}
.sillage path {
  fill: none;
  stroke: #b6905a;
  stroke-width: 1;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.6s cubic-bezier(.16,1,.3,1);
}
.sillage.in-view path { stroke-dashoffset: 0; }

/* ---------- Bottle illustration ---------- */
.bottle-frame {
  position: relative;
  background: linear-gradient(180deg, #f1ebe0 0%, #e9e1d2 100%);
  overflow: hidden;
}
.bottle-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 45%);
}
.bottle-frame.has-photo::before { display: none; }
.bottle-frame.has-photo [data-wishlist] {
  background: rgba(250,247,241,.85);
  border-radius: 9999px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.bottle-svg { width: 46%; max-width: 190px; filter: drop-shadow(0 18px 30px rgba(21,19,15,.18)); }
.bottle-svg .liquid { fill: var(--liquid, #b6905a); }
.bottle-svg .glass { fill: rgba(255,255,255,.14); stroke: rgba(21,19,15,.35); stroke-width: 1.2; }
.bottle-svg .cap { fill: #15130f; }
.bottle-svg .shine { fill: rgba(255,255,255,.55); }

.group:hover .bottle-svg { transform: translateY(-6px) scale(1.03); }
.bottle-svg { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.bottle-frame img { transition: transform .8s cubic-bezier(.16,1,.3,1); }
.group:hover .bottle-frame img { transform: scale(1.05); }

/* ---------- Accordion ---------- */
.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s ease, opacity .35s ease;
}
.accordion-panel > div { overflow: hidden; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-icon { transition: transform .35s ease; }

/* ---------- Mobile filter panel ---------- */
@media (max-width: 767px) {
  #filter-panel.is-open { display: block !important; margin-bottom: 2.5rem; }
}

/* ---------- Product swipe transition ---------- */
#product-stage {
  transition: opacity .26s ease, transform .26s ease;
  touch-action: pan-y;
}
#product-stage.is-swiping.swipe-left { opacity: 0; transform: translateX(-26px); }
#product-stage.is-swiping.swipe-right { opacity: 0; transform: translateX(26px); }
#product-stage.swipe-enter-right { opacity: 0; transform: translateX(26px); transition: none; }
#product-stage.swipe-enter-left { opacity: 0; transform: translateX(-26px); transition: none; }

.swipe-dots span { transition: background-color .3s ease, width .3s ease; }

/* ---------- Misc ---------- */
.scent-tile { position: relative; overflow: hidden; }
.scent-tile .tile-veil {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(21,19,15,.55);
  opacity: 0; transition: opacity .4s ease;
}
.scent-tile:hover .tile-veil { opacity: 1; }

.underline-btn { position: relative; }
.underline-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(1); transform-origin: left;
}

.toast {
  transform: translateY(140%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.toast.is-shown { transform: translateY(0); }

input:focus, textarea:focus, select:focus { outline: none; }

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #b6905a; }
