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

/* ── Tokens — White & Chocolate Brown theme ── */
:root {
  --ink:         #f8f2ea;
  --paper:       #ffffff;
  --gold:        #4a2212;
  --gold-light:  #7a3d22;
  --gold-dark:   #2d1208;
  --text:        #1a0a04;
  --text-muted:  rgba(42,18,8,0.68);
  --radius-pill: 100px;
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--text); font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Brand name: ALWAYS Montserrat ── */
.brand-name, [data-brand] {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Typography ── */
.display { font-family: 'Cormorant Garamond', serif; }
.script  { font-family: 'Pinyon Script', cursive; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.1; }

/* ── Solid nav pill — used on all pages except index ── */
.nav-pill {
  background: rgba(232,220,205,0.82);
  border: 1px solid rgba(74,34,18,0.18);
  box-shadow: 0 1px 4px rgba(74,34,18,0.06);
}

/* ── Glass — light cream theme (index.html only) ── */
.glass {
  background: rgba(74,34,18,0.05);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(74,34,18,0.14);
  box-shadow:
    0 2px 16px rgba(74,34,18,0.08),
    inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 -1px 0 rgba(74,34,18,0.04);
}
.glass-light {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow:
    0 2px 20px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.04);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(74,34,18,0.28);
  border-radius: var(--radius-pill);
  background: rgba(248,242,234,0.78);
  color: var(--text);
  font: 600 10px 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}
.nav-menu-toggle:hover { background: rgba(74,34,18,0.1); }
.nav-menu-toggle:active { transform: scale(0.97); }
.nav-menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav-menu-toggle svg { width: 15px; height: 15px; }
.nav-logo {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(42,18,8,0.88);
  transition: background 0.25s, border-color 0.25s, color 0.2s, transform 0.2s var(--ease-spring);
}
.nav-links a:hover {
  background: rgba(74,34,18,0.88);
  border-color: rgba(74,34,18,0.88) !important;
  color: #f8f2ea !important;
  transform: translateY(-1px);
}
.nav-links a:active { transform: translateY(0) scale(0.97); }
.nav-links a.active {
  background: rgba(74,34,18,0.12);
  border-color: rgba(74,34,18,0.35);
  color: var(--gold-dark);
}
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(74,34,18,0.22), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74,34,18,0.32), inset 0 1px 0 rgba(255,255,255,0.25);
  background: var(--gold-light);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(74,34,18,0.28);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-spring);
}
.btn-ghost:hover {
  border-color: rgba(74,34,18,0.5);
  background: rgba(74,34,18,0.06);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0) scale(0.97); }
.btn-ghost:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.25s, transform 0.25s var(--ease-spring), box-shadow 0.25s;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.btn-glass:active { transform: scale(0.97); }
.btn-glass:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 3px; }

/* ── Product card ── */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.product-card:active { transform: translateY(-2px) scale(0.99); }
.product-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.product-card-img-wrap {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.product-card-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.product-card:hover .product-card-img { transform: scale(1.06); }
.product-card-overlay { display: none; }
.product-card-info {
  padding: 20px 20px 24px;
  flex: 1;
}

/* ── Series card ── */
.series-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}
.series-card:hover {
  transform: translateY(-8px) translateZ(0);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
}
.series-card:active { transform: translateY(-3px) scale(0.99) translateZ(0); }
.series-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ── Cross-series navigation ── */
.other-series-section {
  padding: 72px 40px;
  background: var(--ink);
  border-top: 1px solid rgba(74,34,18,0.1);
}
.other-series-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.other-series-kicker {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.other-series-heading {
  margin-bottom: 28px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
}
.other-series-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.other-series-link {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid rgba(74,34,18,0.16);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  text-align: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
}
.other-series-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(74,34,18,0.08);
}
.other-series-link:active { transform: translateY(0) scale(0.98); }
.other-series-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Page section spacing ── */
.page-section { padding: 120px 80px; }
.page-section-sm { padding: 80px 80px; }
@media (max-width: 768px) {
  .page-section { padding: 80px 24px; }
  .page-section-sm { padding: 60px 24px; }
  .other-series-section { padding: 60px 24px; }
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .nav {
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
    gap: 8px;
  }
  .nav-logo { font-size: 11px; letter-spacing: 0.13em; }
  .nav-menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav.menu-open .nav-links,
  .nav.menu-open #primary-navigation {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    right: auto;
    width: min(440px, calc(100vw - 32px));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(248,247,244,0.94), rgba(238,236,230,0.9));
    box-shadow:
      0 24px 64px rgba(74,34,18,0.14),
      inset 0 1px 0 rgba(255,255,255,0.86);
    backdrop-filter: blur(50px) saturate(175%);
    -webkit-backdrop-filter: blur(50px) saturate(175%);
  }
  .nav.menu-open .nav-links a,
  .nav.menu-open #primary-navigation a {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 11px 8px;
    border: 1px solid rgba(74,34,18,0.11);
    border-radius: 16px;
    background: rgba(250,249,246,0.84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.075em;
  }
  .nav.menu-open .nav-links a:hover,
  .nav.menu-open #primary-navigation a:hover {
    background: rgba(253,252,249,0.96);
    border-color: rgba(74,34,18,0.2) !important;
    color: var(--gold-dark) !important;
    transform: translateY(-1px);
  }
  .nav.menu-open .nav-links a.active,
  .nav.menu-open #primary-navigation a.active {
    background: rgba(74,34,18,0.09);
    border-color: rgba(74,34,18,0.2);
    color: var(--gold-dark);
  }
  .nav.menu-open .nav-links .nav-cart,
  .nav.menu-open #primary-navigation .nav-cart {
    gap: 7px;
  }
}
@media (max-width: 560px) {
  .other-series-links { grid-template-columns: 1fr; }
}

/* ── Form inputs ── */
.form-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(74,34,18,0.18);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.95); }
.form-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── Divider ── */
.divider {
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.divider-full {
  width: 100%; height: 1px;
  background: rgba(74,34,18,0.12);
}

/* ── Grain texture overlay ── */
.grain::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.anim-fade-up  { animation: fadeUp 0.8s var(--ease-out) both; }
.anim-fade-in  { animation: fadeIn 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

/* ── Footer ── */
footer {
  padding: 60px 80px;
  border-top: 1px solid rgba(74,34,18,0.1);
}
@media (max-width: 768px) { footer { padding: 48px 24px; } }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(74,34,18,0.25); border-radius: 2px; }

/* ── Selection ── */
::selection { background: rgba(74,34,18,0.15); color: var(--gold-light); }

/* ── Footer link ── */
.footer-link {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

/* ── Quantity button ── */
.qty-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--text-muted); font-size: 18px;
  transition: color 0.2s, background 0.2s;
}
.qty-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.qty-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Utility ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
