*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #00205B;
  --gold:   #CC9933;
  --cream:  #EAE5DA;
  --cream2: #F2EDE4;
  --white:  #ffffff;
  --text:   #00205B;
  --muted:  #6b6b6b;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section          { padding: 100px 0; }
.section--white   { background: var(--white); }
.section--navy    { background: var(--navy); color: var(--white); }
.section--cream   { background: var(--cream); }

.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(90deg, #CC9933 0%, #E8B84B 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px; display: inline-block;
}

h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 48px); font-weight: 800;
  line-height: 1.15; color: var(--navy); margin-bottom: 20px;
}
.section--navy h2.section-title { color: var(--white); }

p.section-sub {
  font-size: 16px; line-height: 1.75;
  color: var(--muted); max-width: 520px;
}
.section--navy p.section-sub { color: rgba(255,255,255,.65); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn--gold        { background: var(--gold);  color: var(--white); }
.btn--navy        { background: var(--navy);  color: var(--white); }
.btn--ghost       { background: transparent; color: var(--navy); border: 1.5px solid rgba(0,32,91,.25); }
.btn--ghost-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(234,229,218,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--navy);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; gap: 10px; align-items: center; }

/* Cart icon */
.nav-cart {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  color: var(--navy); border-radius: 50%;
  transition: background .2s, color .2s;
}
.nav-cart:hover { background: rgba(0,32,91,.07); }
.nav-cart svg { width: 20px; height: 20px; }
.nav-cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  opacity: 0; transform: scale(0);
  transition: opacity .2s, transform .2s;
}
.nav-cart-badge.visible { opacity: 1; transform: scale(1); }

/* Footer */
footer {
  background: var(--cream);
  border-top: 1px solid rgba(0,32,91,.1);
  color: var(--muted);
  padding: 48px 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
footer img { height: 34px; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; font-weight: 500;
  color: var(--muted); transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
footer p { font-size: 13px; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero .eyebrow { background: linear-gradient(90deg, #CC9933 0%, #E8B84B 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  color: var(--white); line-height: 1.1; margin-bottom: 20px;
}
.page-hero p {
  font-size: 18px; color: rgba(255,255,255,.7);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; transition: background .2s;
}
.nav-hamburger:hover { background: rgba(0,32,91,.06); }
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.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 drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: rgba(234,229,218,.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,32,91,.1);
  padding: 20px 32px 28px;
  transform: translateY(-8px); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.nav-mobile-drawer.open {
  transform: translateY(0); opacity: 1;
  pointer-events: all;
}
.nav-mobile-drawer ul {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 20px;
}
.nav-mobile-drawer ul li a {
  display: block; padding: 11px 0;
  font-size: 16px; font-weight: 500; color: var(--navy);
  border-bottom: 1px solid rgba(0,32,91,.07);
  transition: color .2s;
}
.nav-mobile-drawer ul li a:hover { color: var(--gold); }
.nav-mobile-drawer .nav-mobile-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.nav-mobile-drawer .nav-mobile-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right  { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-drawer { display: block; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── CART DRAWER ───────────────────────────────────────── */
#cart-drawer { display: none; }
#cart-drawer.open { display: block; }

#cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
}

#cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: 420px; max-width: 100vw;
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,32,91,.14);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#cart-drawer.open #cart-panel { transform: translateX(0); }

#cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid rgba(0,32,91,.08);
  flex-shrink: 0;
}
#cart-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800; color: var(--navy);
}
#cart-close-link {
  font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s;
}
#cart-close-link:hover { color: var(--navy); }

#cart-body { flex: 1; overflow-y: auto; padding: 8px 28px; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; height: 220px; color: var(--muted);
}
.cart-empty svg { width: 44px; height: 44px; opacity: .25; }
.cart-empty p { font-size: 15px; }

.cart-item {
  display: flex; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid rgba(0,32,91,.06);
}
.cart-item img {
  width: 68px; height: 68px; object-fit: contain;
  border-radius: 10px; background: var(--cream2); flex-shrink: 0;
  padding: 6px;
}
.cart-item-name  { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.cart-item-meta  { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cart-item-price { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.cart-item-price s { font-weight: 400; color: var(--muted); text-decoration: line-through; }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button {
  width: 26px; height: 26px;
  border: 1.5px solid rgba(0,32,91,.2); border-radius: 6px;
  background: none; cursor: pointer; font-size: 15px;
  color: var(--navy); display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-item-qty button:hover { background: var(--cream); }
.cart-item-qty span { font-size: 14px; font-weight: 700; color: var(--navy); min-width: 20px; text-align: center; }
.cart-remove {
  font-size: 12px !important; color: var(--muted) !important;
  border: none !important; background: none !important;
  cursor: pointer; text-decoration: underline;
  width: auto !important; height: auto !important; padding: 0 !important;
  font-weight: 400 !important;
}

#cart-footer {
  padding: 20px 28px 32px; border-top: 1px solid rgba(0,32,91,.08);
  background: var(--cream2); flex-shrink: 0;
}
.cart-subtotal-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.cart-savings-row {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: #2a7a2a;
  background: #e8f5e9; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 10px;
}
.cart-discount-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.cart-upsell {
  font-size: 12px; color: var(--muted); font-style: italic; margin-bottom: 10px;
}
.cart-shipping-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--navy); padding: 8px 0; margin-bottom: 4px;
}
.cart-shipping-right {
  display: flex; align-items: center; gap: 10px;
}
#cart-state, #invoice-state {
  font-size: 12px; font-family: 'DM Sans', sans-serif;
  border: 1.5px solid rgba(0,32,91,.2); border-radius: 8px;
  padding: 5px 8px; color: var(--navy); background: var(--white);
  outline: none; cursor: pointer;
}
#cart-state:focus, #invoice-state:focus { border-color: var(--gold); }
.cart-shipping-amount { font-weight: 600; min-width: 40px; text-align: right; }
.cart-shipping-free { color: #16a34a; font-weight: 700; }
.cart-free-shipping-hint {
  font-size: 12px; color: var(--muted); font-weight: 400;
  margin-bottom: 10px;
}
.cart-total-note {
  font-size: 11px; color: var(--muted); text-align: center; margin-top: -10px; margin-bottom: 12px;
}
select.invoice-input { appearance: auto; cursor: pointer; }
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 17px; font-weight: 700; color: var(--navy);
  padding: 12px 0; margin-bottom: 16px;
  border-top: 1px solid rgba(0,32,91,.1);
}
#checkout-btn {
  width: 100%; padding: 16px;
  background: var(--gold); color: var(--white);
  border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s; margin-bottom: 12px;
}
#checkout-btn:hover    { background: #b5841e; }
#checkout-btn:disabled { background: var(--muted); cursor: not-allowed; }
#invoice-btn {
  width: 100%; padding: 13px;
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(0,32,91,.25); border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s; margin-bottom: 12px;
}
#invoice-btn:hover { border-color: var(--navy); background: var(--cream); }

#invoice-form { margin-bottom: 12px; }
.invoice-input {
  width: 100%; padding: 11px 14px; margin-bottom: 8px;
  border: 1.5px solid rgba(0,32,91,.2); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--navy);
  background: var(--white); outline: none; transition: border-color .2s;
  display: block;
}
.invoice-input:focus { border-color: var(--gold); }
#invoice-submit-btn {
  width: 100%; padding: 13px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
#invoice-submit-btn:hover    { background: #001845; }
#invoice-submit-btn:disabled { background: var(--muted); cursor: not-allowed; }

.invoice-signin-required {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--cream); border-radius: 12px; padding: 16px;
  margin-bottom: 12px;
}
.invoice-signin-required svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.invoice-signin-required strong { font-size: 13px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.invoice-signin-required p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.invoice-signin-required a { color: var(--gold); font-weight: 600; }

.invoice-success {
  display: flex; align-items: flex-start; gap: 14px;
  background: #e8f5e9; border-radius: 12px; padding: 18px;
}
.invoice-success svg { width: 22px; height: 22px; color: #2e7d32; flex-shrink: 0; margin-top: 2px; }
.invoice-success strong { font-size: 14px; font-weight: 700; color: #1b5e20; display: block; margin-bottom: 4px; }
.invoice-success p { font-size: 13px; color: #2e7d32; line-height: 1.5; margin: 0; }

.cart-stripe-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.cart-stripe-note svg { width: 13px; height: 13px; flex-shrink: 0; }

