/* ============================================================
   LoVermont — Shared Stylesheet
   lovermont.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── TOKENS ── */
:root {
  --vt-cream:     #FAF6F0;
  --vt-forest:    #2C4A2E;
  --vt-maple:     #C4521A;
  --vt-gold:      #D4A843;
  --vt-bark:      #6B4C2A;
  --vt-mist:      #E8EDE8;
  --vt-charcoal:  #1E2420;
  --vt-sage:      #7A9070;
  --vt-parchment: #F2EBE0;
  --vt-white:     #FFFFFF;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-card: 0 2px 12px rgba(44,74,46,0.08);
  --shadow-hover: 0 12px 32px rgba(44,74,46,0.14);

  --transition: 0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--vt-cream);
  color: var(--vt-charcoal);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }

/* ── UTILITY ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }
.section--alt { background: var(--vt-mist); }
.section--parchment { background: var(--vt-parchment); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; border: none; transition: background var(--transition), transform var(--transition); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--vt-maple); color: #fff; }
.btn-primary:hover { background: #a8421a; }
.btn-forest { background: var(--vt-forest); color: #fff; }
.btn-forest:hover { background: #1e3520; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }
.btn-full { width: 100%; justify-content: center; padding: 15px 26px; font-size: 16px; font-weight: 600; border-radius: var(--radius-md); }

/* ── NAV ── */
.nav {
  background: var(--vt-forest);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 90px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: visible;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-mark {
  width: 42px; height: 42px;
  background: var(--vt-maple);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.nav__logo-text { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 600; color: #fff; }
.nav__logo-text span { color: var(--vt-gold); }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; transition: color var(--transition); }
.nav__links a:hover, .nav__links a.active { color: var(--vt-gold); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--vt-maple); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 9px 18px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background var(--transition);
}
.nav__cart:hover { background: #a8421a; }
.nav__cart-count {
  background: var(--vt-gold); color: var(--vt-charcoal);
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.42);
  z-index: 500;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; background: #fff;
  display: flex; flex-direction: column;
  padding: 28px; overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 501;
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-drawer__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.cart-drawer__header h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; }
.cart-drawer__close { background: none; border: none; font-size: 26px; color: #aaa; line-height: 1; cursor: pointer; transition: color var(--transition); }
.cart-drawer__close:hover { color: var(--vt-charcoal); }
.cart-empty { text-align: center; padding: 60px 0; color: #aaa; font-size: 14px; line-height: 2; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0ece6; align-items: flex-start; }
.cart-item__img { width: 64px; height: 64px; background: var(--vt-parchment); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.cart-item__body { flex: 1; }
.cart-item__name { font-weight: 500; font-size: 14px; color: var(--vt-charcoal); margin-bottom: 4px; }
.cart-item__price { font-size: 14px; font-weight: 700; color: var(--vt-forest); }
.cart-item__qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 4px; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); color: var(--vt-charcoal); }
.qty-btn:hover { background: #f5f5f5; }
.qty-num { font-size: 14px; font-weight: 600; min-width: 22px; text-align: center; }
.cart-item__remove { background: none; border: none; color: #ccc; font-size: 20px; cursor: pointer; transition: color var(--transition); flex-shrink: 0; }
.cart-item__remove:hover { color: var(--vt-maple); }
.cart-drawer__totals { background: var(--vt-parchment); border-radius: var(--radius-md); padding: 18px; margin: 20px 0; }
.totals-row { display: flex; justify-content: space-between; font-size: 14px; color: #777; margin-bottom: 8px; }
.totals-row:last-child { margin-bottom: 0; }
.totals-row--grand { font-size: 17px; font-weight: 700; color: var(--vt-charcoal); padding-top: 12px; margin-top: 10px; border-top: 1px solid #ddd; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--vt-forest); color: #fff;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  z-index: 999; transition: transform 0.3s ease;
  white-space: nowrap; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── FOOTER ── */
.footer { background: var(--vt-charcoal); padding: 56px 0 32px; color: rgba(255,255,255,0.6); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand p { font-size: 13px; line-height: 1.8; max-width: 230px; margin-top: 14px; }
.footer__col h4 { color: #fff; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 12px; }
.footer__col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--vt-gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; display: flex; justify-content: space-between; font-size: 12px; }
.footer__logo { margin-bottom: 14px; }
.footer__logo-mark { width: 32px; height: 32px; background: var(--vt-maple); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: #fff; }
.footer__logo-text { font-family: 'Playfair Display', serif; font-size: 16px; color: #fff; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.55s 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.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
}
