/* ══════════════════════════════════════════════════════════════
   THE LAST NOTE · style.css
   Premium Perfume Retail — Luxury Minimal Aesthetic
   ══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  /* Palette */
  --c-paper:    #F2EDE6;   /* warm parchment — page background */
  --c-paper2:   #EBE5DD;   /* slightly deeper cream — alternate sections */
  --c-ink:      #1C1917;   /* near-black — primary text */
  --c-smoke:    #7A6F67;   /* smoke taupe — secondary text */
  --c-fog:      #B0A89E;   /* light taupe — tertiary / placeholders */
  --c-brass:    #B8976A;   /* muted brass — gold accent */
  --c-brass2:   #C9A97E;   /* lighter brass — hover states */
  --c-card:     #FAFAF8;   /* off-white — card backgrounds */
  --c-dark:     #0F0D0B;   /* footer background */
  --c-rule:     rgba(28, 25, 23, 0.10); /* hairline dividers */

  /* Type */
  --f-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  /* Scale */
  --nav-h:    68px;
  --r:        3px;   /* border-radius — boutique feel, not app */
  --r-sm:     2px;

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(28,25,23,0.06), 0 1px 4px rgba(28,25,23,0.04);
  --shadow-lift: 0 12px 48px rgba(28,25,23,0.12), 0 2px 8px rgba(28,25,23,0.06);
  --shadow-panel: 0 20px 64px rgba(28,25,23,0.18);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--c-paper);
  color: var(--c-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--f-sans); }
input, textarea { font-family: var(--f-sans); }
ul { list-style: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── PAGE LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-paper);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { text-align: center; }
.loader-text {
  display: block;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--c-ink); margin-bottom: 18px;
}
.loader-line {
  width: 120px; height: 1px;
  background: var(--c-rule); margin: 0 auto; overflow: hidden;
}
.loader-progress {
  height: 100%; background: var(--c-brass);
  animation: loadBar 1.1s var(--ease) forwards;
  transform-origin: left;
}
@keyframes loadBar { from { width: 0 } to { width: 100% } }

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 108px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--c-ink); color: #fff;
  font-size: 12.5px; letter-spacing: 0.02em;
  padding: 11px 24px; z-index: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap; border-radius: var(--r);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SCROLL REVEAL ── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.09s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.27s; }
.delay-4 { transition-delay: 0.36s; }
.delay-5 { transition-delay: 0.52s; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
}
#navbar.solid {
  background: rgba(242, 237, 230, 0.94);
  border-color: var(--c-rule);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px; gap: 32px;
}
.nav-group { display: flex; align-items: center; }
.nav-left { justify-content: flex-start; gap: 28px; }
.nav-right { justify-content: flex-end; gap: 20px; }

/* Logo */
.nav-logo {
  display: flex; flex-direction: column;
  align-items: center; line-height: 1; gap: 1px;
}
.logo-the {
  font-family: var(--f-serif);
  font-style: italic; font-size: 16px;
  color: var(--c-smoke); letter-spacing: 0.06em;
}
.logo-main {
  font-family: var(--f-sans);
  font-size: 28px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-ink);
}

/* Nav links */
.nav-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--c-smoke);
  position: relative; padding-bottom: 3px;
  transition: color 0.22s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--c-brass);
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--c-ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Search */
.nav-search-wrap { position: relative; }
.nav-search-trigger {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none;
  color: var(--c-smoke);
  transition: color 0.2s;
}
.nav-search-trigger:hover { color: var(--c-ink); }
.nav-search-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  width: 340px; background: var(--c-card);
  border: 1px solid var(--c-rule);
  box-shadow: var(--shadow-panel);
  padding: 0; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease-out);
  border-radius: var(--r);
}
.nav-search-dropdown.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-rule);
}
.search-bar svg { flex-shrink: 0; color: var(--c-fog); }
#searchInput {
  flex: 1; border: none; background: none;
  font-size: 13.5px; color: var(--c-ink); outline: none;
}
#searchInput::placeholder { color: var(--c-fog); }
.search-results { padding: 8px 0; max-height: 280px; overflow-y: auto; }
.search-result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; cursor: pointer;
  transition: background 0.15s;
}
.search-result-row:hover { background: var(--c-paper2); }
.sr-info { display: flex; flex-direction: column; gap: 3px; }
.sr-brand { font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--c-fog); }
.sr-name { font-family: var(--f-serif); font-size: 15px; color: var(--c-ink); }
.sr-price { font-size: 12px; color: var(--c-brass); font-weight: 500; }
.search-empty { padding: 20px 16px; font-size: 13px; color: var(--c-smoke); }
.search-close-btn {
  display: none; /* shown only on mobile, see media query */
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: none; background: none;
  font-size: 22px; line-height: 1;
  color: var(--c-smoke);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT MODAL
   ══════════════════════════════════════════════════════════════ */
body.modal-lock { overflow: hidden; }
.product-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(15, 13, 11, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.product-modal.open { opacity: 1; visibility: visible; }
.pm-panel {
  position: relative;
  width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto;
  background: var(--c-card);
  border-radius: var(--r);
  box-shadow: var(--shadow-panel);
  transform: translateY(12px);
  transition: transform 0.25s var(--ease-out);
}
.product-modal.open .pm-panel { transform: translateY(0); }
.pm-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border: none; background: none;
  font-size: 22px; line-height: 1; color: var(--c-smoke); cursor: pointer;
  z-index: 1;
}
.pm-close:hover { color: var(--c-ink); }
.pm-body { display: flex; flex-direction: column; }
.pm-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--c-paper2); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-info { padding: 28px 32px 32px; }
.pm-brand { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-fog); margin-bottom: 6px; }
.pm-name { font-family: var(--f-serif); font-size: 26px; color: var(--c-ink); margin-bottom: 14px; }
.pm-notes { font-size: 13px; color: var(--c-smoke); margin-bottom: 6px; }
.pm-notes strong { color: var(--c-ink); font-weight: 500; }
.pm-price { font-size: 17px; color: var(--c-brass); font-weight: 600; margin: 14px 0 18px; }
.pm-loading { padding: 40px 32px; font-size: 13px; color: var(--c-smoke); text-align: center; }
@media (min-width: 560px) {
  .pm-body { flex-direction: row; }
  .pm-img { width: 42%; aspect-ratio: auto; }
  .pm-info { flex: 1; }
}

/* Nav icon buttons */
.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none;
  color: var(--c-smoke); position: relative;
  transition: color 0.2s;
}
.nav-icon-btn:hover { color: var(--c-ink); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--c-brass); color: #fff;
  font-size: 9px; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
}
.hero-content {
  flex: 1; display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-left {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 80px;
  background: var(--c-paper);
}
.hero-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-fog);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--c-rule);
}
.hero-headline {
  font-family: var(--f-serif);
  font-size: clamp(50px, 6vw, 88px);
  font-weight: 400; line-height: 1.04;
  color: var(--c-ink); margin-bottom: 24px;
}
.hero-headline em { font-style: italic; color: var(--c-ink); }
.hero-sub {
  font-size: 14.5px; font-weight: 300;
  line-height: 1.75; color: var(--c-smoke);
  max-width: 360px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--c-rule);
}
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-n {
  font-family: var(--f-serif);
  font-size: 28px; font-weight: 400; color: var(--c-ink);
}
.stat-l {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-fog);
}
.stat-sep {
  width: 1px; height: 32px;
  background: var(--c-rule); flex-shrink: 0;
}

/* Hero right */
.hero-right { background: var(--c-paper2); overflow: hidden; position: relative; }
.hero-img-frame { width: 100%; height: 100%; position: relative; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}
.arrival-card {
  position: absolute; bottom: 44px; right: 44px;
  background: #fff; padding: 22px 26px;
  width: 220px;
  box-shadow: var(--shadow-lift);
  border-radius: var(--r);
}
.arrival-label {
  display: block;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-brass); margin-bottom: 10px;
}
.arrival-brand {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--c-smoke); margin-bottom: 4px;
}
.arrival-name {
  font-family: var(--f-serif); font-size: 17px;
  color: var(--c-ink); margin-bottom: 14px;
}
.arrival-link {
  font-size: 12px; color: var(--c-smoke);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
.arrival-link:hover { color: var(--c-brass); }
.arrival-link span { font-size: 16px; }

.hero-rule {
  height: 1px; background: var(--c-rule); flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--c-ink); color: #fff;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--r);
  border: 1px solid var(--c-ink);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: #2d2926;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,25,23,0.2);
}
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--c-ink);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 28px; border-radius: var(--r);
  border: 1px solid var(--c-rule);
  transition: border-color 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   BRAND TICKER
   ══════════════════════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--c-ink); padding: 15px 0;
  overflow: hidden; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; align-items: center;
  animation: tick 36s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0 28px; cursor: default;
  transition: color 0.2s;
}
.ticker-track span:not(.sep):hover { color: var(--c-brass2); }
.ticker-track .sep {
  color: var(--c-brass); padding: 0;
  font-size: 7px; opacity: 0.55;
}
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ══════════════════════════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════════════════════════ */
.eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--c-fog); margin-bottom: 10px;
}
.section-title {
  font-family: var(--f-serif);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 400; color: var(--c-ink); line-height: 1.12;
}
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 52px;
}
.section-note {
  font-size: 13px; font-weight: 300;
  color: var(--c-smoke); max-width: 200px;
  text-align: right; line-height: 1.65;
}
.view-all-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--c-smoke);
  border-bottom: 1px solid var(--c-rule);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.view-all-link:hover { color: var(--c-brass); border-color: var(--c-brass); }

/* ══════════════════════════════════════════════════════════════
   SHOP BY SIZE
   ══════════════════════════════════════════════════════════════ */
.sizes-section { padding: 96px 80px; background: var(--c-paper); }
.sizes-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.size-card {
  background: var(--c-card); overflow: hidden;
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.size-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.size-card-img { position: relative; height: 280px; overflow: hidden; background: var(--c-paper2); }
.size-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.size-card:hover .size-card-img img { transform: scale(1.07); }
.size-pill {
  position: absolute; top: 16px; left: 16px;
  background: #fff; color: var(--c-ink);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; padding: 5px 12px;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 8px rgba(28,25,23,0.08);
}
.size-card-body { padding: 28px 28px 26px; }
.size-name {
  font-family: var(--f-serif); font-size: 22px;
  font-weight: 400; color: var(--c-ink); margin-bottom: 10px;
}
.size-desc {
  font-size: 13.5px; font-weight: 300;
  color: var(--c-smoke); line-height: 1.65; margin-bottom: 22px;
}
.size-cta { display: flex; align-items: center; justify-content: space-between; }
.size-price {
  font-size: 13px; font-weight: 500; color: var(--c-ink);
}
.size-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-smoke);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.size-link:hover { color: var(--c-brass); }
.size-card:hover .size-link span { transform: translateX(3px); }
.size-link span { display: inline-block; transition: transform 0.2s; }

/* ══════════════════════════════════════════════════════════════
   FEATURED PRODUCTS
   ══════════════════════════════════════════════════════════════ */
.products-section { padding: 96px 80px; background: var(--c-paper2); }
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* Skeletons */
.product-skeleton { background: var(--c-card); border-radius: var(--r); overflow: hidden; }
.sk-img {
  height: 240px;
  background: linear-gradient(90deg, #e8e1d9 25%, #f0ebe3 50%, #e8e1d9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.sk-line {
  height: 11px; margin: 18px 20px 10px;
  background: linear-gradient(90deg, #e8e1d9 25%, #f0ebe3 50%, #e8e1d9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite; border-radius: 2px;
}
.sk-line.w60 { width: 55%; }
.sk-line.w80 { width: 78%; margin-top: 0; }
.sk-line.w40 { width: 38%; margin-top: 0; }
@keyframes shimmer {
  0%   { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

/* Product card */
.product-card {
  background: var(--c-card); border-radius: var(--r);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.38s var(--ease), box-shadow 0.38s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.product-card-img { position: relative; height: 240px; overflow: hidden; background: var(--c-paper2); }
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

/* Quick View overlay */
.quick-view-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(28, 25, 23, 0.88);
  color: #fff; text-align: center;
  padding: 13px; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  border: none; width: 100%;
}
.product-card:hover .quick-view-overlay { transform: translateY(0); }

/* Badge */
.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-sm);
  line-height: 1;
}
.badge-dark  { background: var(--c-ink);    color: #fff; }
.badge-brass { background: var(--c-brass);  color: #fff; }
.badge-sage  { background: #4A7C59;         color: #fff; }

/* Card body */
.product-card-body { padding: 20px 20px 22px; }
.product-brand {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-fog); margin-bottom: 5px;
}
.product-name {
  font-family: var(--f-serif); font-size: 18px;
  color: var(--c-ink); margin-bottom: 6px;
}
.product-notes {
  font-size: 12px; color: var(--c-fog);
  line-height: 1.5; margin-bottom: 16px;
}
.size-btns { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.size-btn {
  border: 1px solid rgba(28,25,23,0.18);
  background: transparent; color: var(--c-ink);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.07em;
  padding: 5px 10px; border-radius: var(--r-sm);
  transition: all 0.18s;
}
.size-btn.on, .size-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.product-price {
  font-family: var(--f-serif); font-size: 21px;
  color: var(--c-ink); margin-bottom: 12px;
}
.add-btn {
  width: 100%; padding: 10px;
  background: transparent;
  border: 1px solid rgba(28,25,23,0.15);
  color: var(--c-smoke);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all 0.22s;
}
.add-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.add-btn.added { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════ */
.how-section { padding: 96px 80px; background: var(--c-paper); }
.how-inner { display: grid; grid-template-columns: 1fr 1.55fr; gap: 80px; align-items: start; }
.how-rule {
  width: 40px; height: 1px; background: var(--c-brass);
  margin: 22px 0 24px;
}
.how-body {
  font-size: 14px; font-weight: 300;
  color: var(--c-smoke); line-height: 1.8;
}
.how-steps { display: flex; flex-direction: column; }
.how-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
  padding: 32px 0; border-bottom: 1px solid var(--c-rule);
  align-items: start;
}
.how-step:first-child { border-top: 1px solid var(--c-rule); }
.step-marker {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.10em; color: var(--c-fog);
  padding-top: 4px;
}
.step-title {
  font-family: var(--f-serif); font-size: 20px;
  color: var(--c-ink); margin-bottom: 10px;
}
.step-body {
  font-size: 13.5px; font-weight: 300;
  color: var(--c-smoke); line-height: 1.78;
}

/* ══════════════════════════════════════════════════════════════
   REVIEWS CAROUSEL
   ══════════════════════════════════════════════════════════════ */
.reviews-section { padding: 96px 80px; background: var(--c-paper2); }
.reviews-nav { display: flex; gap: 8px; }
.rev-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-rule);
  background: transparent; color: var(--c-smoke);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.rev-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.reviews-track-wrap { overflow: hidden; margin-bottom: 28px; }
.reviews-track {
  display: flex; gap: 24px;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.review-card {
  flex: 0 0 calc(33.33% - 16px);
  background: var(--c-card);
  padding: 32px; border-radius: var(--r);
  box-shadow: var(--shadow-card);
}
.review-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.star {
  width: 12px; height: 12px;
  background: var(--c-brass);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.star.empty { background: var(--c-rule); }
.review-text {
  font-family: var(--f-serif); font-style: italic;
  font-size: 15.5px; color: var(--c-ink);
  line-height: 1.7; margin-bottom: 20px;
}
.review-meta { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c-paper2); overflow: hidden; flex-shrink: 0;
}
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-name {
  font-size: 13px; font-weight: 500; color: var(--c-ink);
}
.reviewer-product {
  font-size: 11px; color: var(--c-fog); margin-top: 2px;
}
.reviews-dots { display: flex; gap: 6px; }
.dot-btn {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-rule); border: none;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.dot-btn.on { background: var(--c-brass); transform: scale(1.3); }

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════════════════════════════ */
.newsletter-section { background: var(--c-ink); padding: 80px; }
.newsletter-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 56px;
}
.eyebrow-light {
  color: rgba(255,255,255,0.28);
}
.newsletter-title {
  font-family: var(--f-serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 400; color: #fff; line-height: 1.2;
}
.newsletter-right { flex: 1; max-width: 460px; }
.newsletter-form { display: flex; margin-bottom: 12px; }
.newsletter-input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 13.5px;
  border-radius: var(--r) 0 0 var(--r);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.28); }
.newsletter-input:focus { border-color: var(--c-brass); }
.newsletter-form .btn-primary {
  border-radius: 0 var(--r) var(--r) 0;
  border-color: transparent;
  white-space: nowrap;
}
.newsletter-note {
  font-size: 11.5px; color: rgba(255,255,255,0.26);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer { background: var(--c-dark); padding: 64px 80px 40px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--f-serif); font-size: 18px; font-weight: 400;
  color: rgba(255,255,255,0.85); margin-bottom: 14px;
}
.footer-tagline {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.32);
  line-height: 1.7; max-width: 230px; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.social-a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.36);
  border-radius: var(--r);
  transition: border-color 0.2s, color 0.2s;
}
.social-a:hover { border-color: var(--c-brass); color: var(--c-brass); }
.footer-col-title {
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(255,255,255,0.24); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px; font-weight: 300;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-brass2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom span {
  font-size: 11.5px; color: rgba(255,255,255,0.20);
}

/* ══════════════════════════════════════════════════════════════
   CHATBOT
   ══════════════════════════════════════════════════════════════ */
.chat-fab {
  position: fixed; bottom: 32px; right: 32px;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--c-ink); color: #fff;
  border: none; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(28,25,23,0.30);
  transition: background 0.25s, transform 0.25s;
}
.chat-fab:hover { background: #2d2926; transform: scale(1.06); }
.fab-ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--c-brass);
  opacity: 0; animation: fabRing 3s ease-in-out infinite;
}
@keyframes fabRing {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}
.chat-panel {
  position: fixed; bottom: 104px; right: 32px;
  width: 356px; max-height: 520px;
  background: var(--c-card);
  border: 1px solid var(--c-rule);
  box-shadow: var(--shadow-panel);
  border-radius: var(--r);
  display: none; flex-direction: column;
  overflow: hidden; z-index: 500;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}
.chat-panel.visible {
  display: flex;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.chat-header {
  background: var(--c-ink); padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { font-size: 22px; line-height: 1; }
.chat-name {
  font-family: var(--f-serif); font-size: 15.5px;
  color: #fff; margin-bottom: 3px;
}
.chat-status { display: flex; align-items: center; gap: 6px; }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6BCB6B; flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.35} }
.chat-status p { font-size: 10.5px; color: rgba(255,255,255,0.42); }
.chat-close-btn {
  background: none; border: none;
  color: rgba(255,255,255,0.45); font-size: 15px;
  padding: 4px; transition: color 0.2s;
}
.chat-close-btn:hover { color: #fff; }
.chat-messages {
  flex: 1; padding: 16px;
  overflow-y: auto; display: flex;
  flex-direction: column; gap: 10px;
  background: #f7f4f0;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--c-rule); }
.msg {
  max-width: 88%; padding: 11px 14px;
  font-size: 13px; line-height: 1.58;
  border-radius: var(--r);
}
.msg.bot {
  background: #fff; color: var(--c-ink);
  align-self: flex-start;
  border: 1px solid var(--c-rule);
}
.msg.user {
  background: var(--c-ink); color: #fff;
  align-self: flex-end;
}
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sug-btn {
  background: #fff; border: 1px solid var(--c-rule);
  color: var(--c-smoke); font-size: 11.5px;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: all 0.18s;
}
.sug-btn:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.typing-dots {
  display: flex; gap: 5px; align-items: center;
  padding: 12px 14px;
  background: #fff; border: 1px solid var(--c-rule);
  align-self: flex-start; border-radius: var(--r);
}
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-fog);
  animation: dotPop 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPop {
  0%,80%,100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}
.chat-input-row {
  display: flex; border-top: 1px solid var(--c-rule); flex-shrink: 0;
}
.chat-input {
  flex: 1; border: none; padding: 14px 16px;
  font-size: 13px; background: #fff; color: var(--c-ink); outline: none;
}
.chat-input::placeholder { color: var(--c-fog); }
.chat-send {
  background: var(--c-ink); color: #fff; border: none;
  padding: 0 18px; display: flex; align-items: center;
  transition: background 0.2s;
}
.chat-send:hover { background: var(--c-brass); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .nav-inner { padding: 0 24px; }
  .sizes-section, .products-section, .how-section,
  .reviews-section, .footer { padding-left: 40px; padding-right: 40px; }
  .newsletter-section { padding: 64px 40px; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-left { padding: 56px 40px; }
  .hero-right { height: 380px; }
  .how-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .newsletter-inner { flex-direction: column; gap: 36px; }
  .newsletter-right { max-width: 100%; width: 100%; }
  .review-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .sizes-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 44px; }
  .nav-left { display: none; }
  .nav-group.nav-right .nav-link { display: none; }
  .nav-auth-btn { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .footer-inner { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
  .sizes-section, .products-section, .how-section,
  .reviews-section, .footer { padding-left: 20px; padding-right: 20px; }
  .newsletter-section { padding: 48px 20px; }
  .review-card { flex: 0 0 calc(100% - 0px); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-note { text-align: left; max-width: 100%; }

  /* ── Searchbar: mobile optimization ──
     Fixed positioning + left/right anchoring (instead of a fixed 340px
     width hanging off `right: 0`) is what actually stops the horizontal
     scroll — the old dropdown could run past the left edge of a narrow
     screen since it was sized independently of the viewport. */
  .nav-search-dropdown {
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
    border-radius: var(--r);
  }
  .search-bar { padding: 12px 14px; }
  .search-close-btn { display: flex; align-items: center; justify-content: center; }
  #searchInput {
    /* 16px stops iOS Safari from auto-zooming the whole page in when
       the input gets focus — anything smaller than 16px triggers it. */
    font-size: 16px;
  }
  .search-results { max-height: calc(100vh - 160px); }
  .search-result-row {
    /* ~44px tall — the standard minimum comfortable touch target */
    padding: 13px 14px;
  }
}
/* ══════════════════════════════════════════════════════════════
   HAMBURGER MENU (mobile navbar)
   ══════════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none; /* shown only at ≤640px, see media query above */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: 4px;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(15,13,11,0.45);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
  z-index: 199;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: min(280px, 80vw);
  background: var(--c-paper); box-shadow: var(--shadow-lift);
  transform: translateX(100%); transition: transform .35s var(--ease);
  z-index: 200; display: flex; flex-direction: column;
  padding: 88px 28px 28px;
}
.mobile-nav-panel.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  padding: 14px 0;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid var(--c-rule);
}
.mobile-nav-link.active { color: var(--c-brass); }
.mobile-nav-divider { height: 1px; margin: 8px 0; }

/* ══════════════════════════════════════════════════════════════
   LOGIN / REGISTER MODALS (shared across all pages)
   ══════════════════════════════════════════════════════════════ */
.auth-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.auth-modal.show { display: flex; }
.auth-modal-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  font-family: 'DM Sans', sans-serif;
}
.auth-modal-content h2 {
  margin-bottom: 20px;
  color: #333;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
}
.auth-form-group { margin-bottom: 15px; }
.auth-form-group label {
  display: block; margin-bottom: 5px;
  font-weight: 500; color: #333; font-size: 13px;
}
.auth-form-group input {
  width: 100%; padding: 12px;
  border: 1px solid #e0e0e0; border-radius: 4px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
}
.auth-form-group input:focus {
  outline: none; border-color: #9b8b7e;
  box-shadow: 0 0 0 3px rgba(155, 139, 126, 0.1);
}
.auth-modal-buttons { display: flex; gap: 10px; margin-top: 25px; }
.auth-btn-submit {
  flex: 1; padding: 12px; background: #9b8b7e; color: white;
  border: none; border-radius: 4px; cursor: pointer;
  font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: background 0.3s;
}
.auth-btn-submit:hover { background: #7d6f67; }
.auth-btn-close {
  flex: 1; padding: 12px; background: #f0f0f0; color: #333;
  border: none; border-radius: 4px; cursor: pointer;
  font-weight: 500; font-family: 'DM Sans', sans-serif;
  transition: background 0.3s;
}
.auth-btn-close:hover { background: #e0e0e0; }
.auth-modal-footer { text-align: center; margin-top: 15px; font-size: 13px; }
.auth-modal-footer a { color: #9b8b7e; cursor: pointer; text-decoration: underline; }
.auth-modal-footer a:hover { color: #7d6f67; }
.auth-error { color: #d32f2f; font-size: 12px; margin-top: 10px; }
.auth-success { color: #388e3c; font-size: 12px; margin-top: 10px; }
