:root {
  --parchment: #f4efe6;
  --card: #fdfbf6;
  --ink: #2a2118;
  --walnut: #4a3221;
  --brass: #a97e2f;
  --brass-light: #c9a55a;
  --green: #2f4a3a;
  --muted: #7a6c5b;
  --line: #e0d6c4;
  --shadow: 0 2px 14px rgba(42, 33, 24, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

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

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

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

.kicker {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 239, 230, 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: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand small {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  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(--walnut);
  text-decoration: none;
  font-size: 0.9rem;
}

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

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

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

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

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

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

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

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

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

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

.section-head { max-width: 620px; 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(240px, 1fr));
  gap: 22px;
}

.product {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  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.3rem; margin-bottom: 4px; }

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

.product p.desc {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

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

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

.price small { color: var(--muted); font-weight: 400; }

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

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

footer a { color: var(--brass-light); }

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

footer .fine { font-size: 0.78rem; color: #b3a48e; max-width: 460px; }

/* ---------- Cart drawer ---------- */
.drawer-veil {
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 24, 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(20, 15, 10, 0.82);
  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: 10px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

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

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

.note-card {
  background: var(--card);
  border-radius: 14px;
  max-width: 430px;
  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(--walnut);
  color: var(--parchment);
  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; }
}
