:root {
  --mist: #eef0ee;
  --card: #f9faf8;
  --ink: #232c33;
  --slate: #46626f;
  --gold: #a3823c;
  --gold-soft: #c3a869;
  --cellar: #1c2429;
  --muted: #6d7a80;
  --line: #d8ddd6;
  --shadow: 0 2px 16px rgba(28, 36, 41, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

img { max-width: 100%; display: block; }

a { color: var(--slate); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.kicker {
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(238, 240, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(5px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-inner .nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand small {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover { color: var(--gold); }

.cart-btn {
  background: var(--slate);
  color: var(--mist);
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
}

.cart-btn:hover { background: var(--cellar); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--slate);
  color: var(--mist);
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--cellar); }

.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-soft); }

.btn.ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--slate);
}

.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

.btn.small { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }

section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 40px; }

.section-head h2 { font-size: 2.2rem; }

.section-head p { color: var(--muted); margin: 0; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
}

.product .p-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product h3 { font-size: 1.22rem; margin-bottom: 4px; }

.product .vintage {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.product p.notes {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  flex: 1;
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price { font-weight: 700; font-size: 1.05rem; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  align-self: flex-start;
}

.badge.dark { background: var(--cellar); }

/* ---------- Footer ---------- */
footer {
  background: var(--cellar);
  color: #b9c2c0;
  padding: 44px 0 36px;
  font-size: 0.9rem;
}

footer a { color: var(--gold-soft); }

footer .wrap { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }

footer .fine { font-size: 0.78rem; color: #8b9694; max-width: 480px; }

/* ---------- Cart drawer ---------- */
.drawer-veil { position: fixed; inset: 0; background: rgba(28, 36, 41, 0.5); z-index: 90; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: var(--card);
  z-index: 100;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.drawer header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer header h3 { margin: 0; font-size: 1.4rem; }

.drawer .items { flex: 1; overflow-y: auto; padding: 12px 20px; }

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.cart-row .qty { display: flex; align-items: center; gap: 8px; }

.qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.drawer .totals { padding: 16px 20px; border-top: 1px solid var(--line); }

.drawer .totals .row { display: flex; justify-content: space-between; margin-bottom: 8px; }

.close-x {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* ---------- Modals ---------- */
.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 23, 0.84);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.modal-veil img {
  max-width: min(880px, 94vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.modal-veil figcaption {
  color: #dfe5e0;
  text-align: center;
  margin-top: 12px;
  font-size: 0.92rem;
}

.note-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 23, 0.6);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.note-card {
  background: var(--card);
  border-radius: 12px;
  max-width: 440px;
  padding: 30px 30px 26px;
  text-align: center;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.4);
}

.note-card h3 { font-size: 1.6rem; }

.note-card p { color: var(--muted); }

[hidden] { display: none !important; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: var(--cellar);
  color: var(--mist);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 140;
  box-shadow: var(--shadow);
  transition: opacity 0.3s;
  pointer-events: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  section { padding: 48px 0; }
  .section-head h2 { font-size: 1.7rem; }
  .nav-links { gap: 12px; font-size: 0.85rem; }
  .nav-links a.hide-m { display: none; }
}
