@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FBF9F6;
  --ink: #201A1C;
  --maroon: #6E1E3C;
  --gold: #A9782E;
  --mist: #8C8579;
  --line: #E7E1D8;
  --panel: #F3EEE7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 500; margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--maroon); color: #F3E9EC;
  font-size: 12px; padding: 8px 24px;
}
.topbar span { display: flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.logo { font-size: 22px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a:hover { opacity: 0.6; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.hamburger { background: none; border: none; font-size: 22px; display: none; }
.cart-btn {
  position: relative; background: none; border: none; font-size: 18px; color: var(--ink);
}
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--maroon); color: #fff;
  font-size: 10px; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; font-size: 14px;
  border: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 90px 20px 70px;
}
.hero .eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.hero h2 { font-size: 44px; line-height: 1.2; margin-bottom: 18px; }
.hero p { color: var(--mist); margin-bottom: 30px; font-size: 15px; }

/* ---------- Category tabs ---------- */
.cat-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  padding: 0 20px 40px;
}
.cat-tab {
  padding: 9px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
}
.cat-tab.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 20px;
  padding: 0 20px 80px; max-width: 1200px; margin: 0 auto;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: flex; flex-direction: column; }
.product-image {
  position: relative; aspect-ratio: 4/5; width: 100%;
  border-radius: 2px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-image .dot {
  width: 64px; height: 64px; border-radius: 50%; opacity: 0.85;
  transition: transform 0.4s ease;
}
.product-card:hover .dot { transform: scale(1.1); }
.product-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.9); color: var(--maroon); padding: 4px 8px;
}
.product-add {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: none;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  opacity: 0; transition: opacity 0.2s ease;
}
.product-card:hover .product-add { opacity: 1; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mist); margin: 0 0 4px; }
.product-name { font-size: 15px; margin: 0 0 4px; }
.product-price { font-size: 14px; color: var(--gold); margin: 0; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 800px; margin: 0 auto; padding: 40px 20px; text-align: center;
}
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-strip h4 { font-size: 14px; margin-bottom: 4px; }
.trust-strip p { font-size: 12px; color: var(--mist); margin: 0; }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; inset: 0; z-index: 40;
  visibility: hidden; pointer-events: none;
}
.cart-drawer.open { visibility: visible; pointer-events: auto; }
.cart-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3);
  opacity: 0; transition: opacity 0.25s ease;
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 100%; max-width: 380px;
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-panel-header button { background: none; border: none; font-size: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--mist); font-size: 14px; margin-top: 40px; }
.cart-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-swatch { width: 60px; height: 76px; flex-shrink: 0; border-radius: 2px; }
.cart-item-info { flex: 1; }
.cart-item-row { display: flex; justify-content: space-between; }
.cart-item-name { font-size: 14px; margin: 0; }
.cart-item-price { font-size: 12px; color: var(--gold); margin: 2px 0 8px; }
.cart-item-remove { background: none; border: none; font-size: 16px; color: var(--mist); }
.qty-control { display: flex; align-items: center; gap: 12px; }
.qty-control button { width: 24px; height: 24px; border: 1px solid var(--line); background: none; font-size: 13px; }
.qty-control span { font-size: 14px; width: 16px; text-align: center; }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }

/* ---------- Checkout ---------- */
.checkout-wrap { max-width: 480px; margin: 0 auto; padding: 48px 20px 80px; }
.back-link { font-size: 13px; color: var(--mist); background: none; border: none; margin-bottom: 24px; display: inline-block; }
.checkout-summary { background: var(--panel); padding: 16px; margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 500; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mist); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--line);
  background: #fff; font-family: inherit; outline: none;
}
.field textarea { resize: vertical; }
.notice { font-size: 12px; background: #FBF3E9; color: #8C6A1F; padding: 12px; margin-bottom: 16px; }
.confirm-wrap { max-width: 420px; margin: 0 auto; padding: 100px 20px; text-align: center; }
.confirm-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--maroon); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 26px;
}

/* ---------- About / Contact ---------- */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 60px 20px 90px; }
.page-wrap h2 { font-size: 32px; margin-bottom: 16px; }
.page-wrap p { color: var(--mist); font-size: 15px; margin-bottom: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info div { margin-bottom: 20px; }
.contact-info h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mist); margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D8D2C9; padding: 48px 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-grid h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #9C958A; margin-bottom: 12px; }
.footer-grid p, .footer-grid li { font-size: 12px; color: #9C958A; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 639px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; top: 0; left: -260px; width: 240px; height: 100%;
    background: var(--bg); flex-direction: column; padding: 80px 24px;
    transition: left 0.25s ease; z-index: 50; box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { left: 0; }
  .topbar { display: none; }
}
