:root {
  --ink: #12151a;
  --muted: #5c6570;
  --line: #e4ddd3;
  --paper: #f7f3ec;
  --white: #fffcf7;
  --teal: #0f4c45;
  --teal-2: #173f3a;
  --copper: #b8612e;
  --good: #1f7a4d;
  --shadow: 0 18px 50px rgba(18, 21, 26, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.promo {
  background: var(--teal);
  color: #eef6f3;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 0;
}
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.08em;
}
.logo span { color: var(--copper); }
.search {
  flex: 1;
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.search input {
  flex: 1; border: 0; background: transparent;
  padding: 10px 16px; outline: none;
}
.search button {
  border: 0; background: var(--ink); color: #fff;
  padding: 8px 18px; margin: 4px;
  border-radius: 999px;
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px; height: 42px; border-radius: 50%;
  position: relative;
}
.icon-btn .count {
  position: absolute; top: -4px; right: -4px;
  background: var(--copper); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px;
  border-radius: 999px; display: grid; place-items: center;
}
.cats {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a:hover, .cats a.active { color: var(--ink); }

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 28px; padding: 36px 0 10px;
}
.hero-copy h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-copy p { margin: 16px 0 24px; color: var(--muted); max-width: 46ch; font-size: 17px; }
.hero-art {
  background: #d8ece4;
  border-radius: 28px;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.hero-art .cap {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,252,247,0.92);
  padding: 10px 14px; border-radius: 12px; font-size: 13px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; border-radius: 999px;
  padding: 12px 20px; font-weight: 600;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; border: 1px solid var(--ink); }
.btn-copper { background: var(--copper); color: #fff; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.section { padding: 42px 0; }
.h-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 12px; }
.h-row h2 { font-family: "Fraunces", serif; font-size: 28px; font-weight: 500; }
.h-row a { font-weight: 600; color: var(--teal); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 110px;
}
.cat-card small { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.thumb {
  height: 190px; background: #ece7de;
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.brand { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 15px; line-height: 1.3; font-weight: 600; }
.price { font-weight: 700; font-size: 16px; }
.price s { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.meta { font-size: 12px; color: var(--muted); }
.off { color: var(--good); font-size: 12px; font-weight: 700; }

.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.trust div {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.trust strong { display: block; margin-bottom: 4px; }

.layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px;
}
.filters {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  height: fit-content; position: sticky; top: 92px;
}
.filters h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin: 14px 0 8px; }
.filters label { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.pdp {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.pdp-img {
  background: #ece7de; border-radius: 24px; overflow: hidden; min-height: 420px;
}
.pdp-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.pdp h1 { font-family: "Fraunces", serif; font-size: 34px; font-weight: 500; margin: 8px 0 12px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }

.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; }
.cart-table td, .cart-table th { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.checkout {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px;
}
.box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff;
}
.success {
  text-align: center; padding: 60px 20px;
  background: var(--white); border-radius: 24px; border: 1px solid var(--line);
}
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 16px;
  border-radius: 12px; display: none;
}

footer.site {
  margin-top: 48px;
  background: var(--teal-2);
  color: #d7e6e1;
  padding: 40px 0 24px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { color: #fff; margin-bottom: 10px; }
footer a { display: block; margin: 6px 0; color: #d7e6e1; }
.copy { margin-top: 28px; font-size: 13px; opacity: 0.75; }

.empty { padding: 48px; text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .hero, .pdp, .layout, .checkout, .cat-grid, .trust, .foot-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { position: static; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
}
