@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #161210;
  --ink-2: #3a322c;
  --paper: #f6efe4;
  --paper-2: #efe4d4;
  --white: #fffdf8;
  --gold: #b8883b;
  --gold-2: #d4af61;
  --gold-d: #8d6424;
  --line: rgba(22, 18, 16, 0.1);
  --muted: #7a7066;
  --maroon: #6b2a28;
  --ok: #2f6b52;
  --shadow: 0 24px 60px rgba(22, 18, 16, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Outfit, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
}
.topbar strong { color: var(--gold-2); font-weight: 600; }

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 228, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--gold-d); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  transition: 0.2s transform, 0.2s background, 0.2s box-shadow;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(184, 136, 59, 0.28);
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
}
.btn-full { width: 100%; }

.hero {
  padding: 72px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-d);
  font-weight: 600;
}
h1, h2, h3 { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.92;
  margin: 12px 0 18px;
}
.hero p { max-width: 46ch; color: var(--ink-2); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: 360px; object-fit: cover; opacity: 0.88; }
.hero-card figcaption {
  position: absolute;
  left: 22px;
  bottom: 22px;
  right: 22px;
}
.hero-card small { letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin: 20px 0 56px;
  background: var(--white);
}
.stats div { padding: 22px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
}
.stats span { color: var(--muted); font-size: 13px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 42px; line-height: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-2);
}
.chip.active, .chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search {
  width: 100%;
  margin: 0 0 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  outline: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 70px;
}
.card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.25s transform, 0.25s box-shadow;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .pic {
  height: 230px;
  background: var(--paper-2);
  overflow: hidden;
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { padding: 16px; }
.card .cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 24px; margin: 4px 0 8px; }
.price { display: flex; gap: 8px; align-items: baseline; }
.price b { font-size: 16px; }
.price s { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-block;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  margin-top: 8px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  padding: 40px 0 80px;
}
.product-layout .pic {
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  min-height: 480px;
  border: 1px solid var(--line);
}
.product-layout .pic img { width: 100%; height: 520px; object-fit: cover; }
.back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.product-layout .cat { letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; color: var(--gold-d); }
.product-layout h1 { font-size: 56px; line-height: 0.95; margin: 8px 0 16px; }
.desc { color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.qty-row button {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer;
}
.qty-row span { min-width: 28px; text-align: center; font-weight: 600; }

.checkout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 36px 0 80px;
}
form.box, .summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliveries { display: grid; gap: 10px; margin-top: 8px; }
.dopt {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
}
.dopt.selected {
  border-color: var(--gold);
  background: #fbf4e5;
  box-shadow: inset 0 0 0 1px var(--gold);
}
.dopt b { display: block; }
.dopt small { color: var(--muted); }
.summary img { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; }
.summary h2 { font-size: 34px; margin: 12px 0 6px; }
.line { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-2); }
.total { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.success {
  text-align: center;
  padding: 80px 0;
  max-width: 560px;
  margin: 0 auto;
}
.success .mark {
  width: 84px; height: 84px; margin: 0 auto 18px;
  border-radius: 50%;
  background: #e7f3ec;
  color: var(--ok);
  display: grid; place-items: center;
  font-size: 36px;
}
.success h1 { font-size: 52px; }
.success p { color: var(--ink-2); margin: 10px 0 24px; }

footer.site {
  background: var(--ink);
  color: #cbbfae;
  padding: 40px 0 28px;
}
footer .logo { color: #fff; }
footer p { margin-top: 10px; max-width: 46ch; }
.copy { margin-top: 28px; font-size: 12px; opacity: 0.7; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
  z-index: 80;
}
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.prof-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  cursor: pointer;
  font-weight: 600;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 18, 16, 0.55);
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}
.overlay.hidden { display: none; }
.sheet {
  width: min(420px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.sheet h2 { font-size: 36px; margin: 4px 0 8px; }
.steps { display: flex; gap: 6px; margin: 12px 0 18px; }
.steps i {
  height: 4px;
  flex: 1;
  border-radius: 99px;
  background: var(--paper-2);
}
.steps i.on { background: var(--gold); }
.gate {
  margin-top: 22px;
  background: #fbf4e5;
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 18px;
}
.cart-line {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 78px; height: 78px; object-fit: cover; border-radius: 12px; }
.track-head {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
}
.awb {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  color: var(--gold-2);
  font-size: 18px;
  margin-top: 8px;
}
.route {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.route span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.route span.now { background: var(--ink); color: var(--paper); }
.timeline { list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li.done { border-left-color: var(--ok); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d9d1c6;
}
.timeline li.done::before { background: var(--ok); }
.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.order-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }

@media (max-width: 980px) {
  .hero, .product-layout, .checkout, .grid, .stats { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero, .product-layout, .checkout, .stats, .row-2, .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .product-layout .pic img { height: 320px; }
  .product-layout h1 { font-size: 40px; }
}
