:root {
  --paper: #efe6d4;
  --paper-deep: #e4d8c0;
  --card: #fbf6ea;
  --ink: #1b1610;
  --ink-soft: #4d463c;
  --line: #d4c6ae;
  --copper: #c44b14;
  --copper-deep: #8f320c;
  --sage: #2f5a3d;
  --gold: #e8c36a;
  --shadow: 0 18px 40px rgba(27, 22, 16, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Figtree", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.ticker {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 9px 0;
  animation: ticker 32s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(239, 230, 212, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand strong {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.brand span {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  font-size: 14px;
  font-weight: 600;
}
nav a:hover, nav a.active { color: var(--copper); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-link {
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--copper);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.menu-btn {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
}

#app { position: relative; z-index: 1; min-height: 70vh; padding-top: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-wide { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 56px 0 28px;
  align-items: end;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 10px;
}
h1, h2, h3 {
  font-family: "Syne", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.02em;
  word-spacing: 0.08em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(34px, 5.4vw, 62px); }
.hero h1 { font-size: clamp(42px, 6.5vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
.lede {
  max-width: 52ch;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 18px 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
  font-size: 14px;
}
.hero-meta strong { display: block; }
.hero-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 28px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.hero-card p { color: #d8cbb4; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-stats span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #b9ad97; }
.hero-stats b { font-family: "Syne", sans-serif; font-size: 28px; }

.section { padding: 54px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.muted { color: var(--ink-soft); }

.cat-grid, .product-grid, .split, .checkout-grid {
  display: grid;
  gap: 16px;
}
.cat-grid { grid-template-columns: repeat(3, 1fr); }
.product-grid { grid-template-columns: repeat(3, 1fr); }
.card, .product-card, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-card { padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.cat-card:hover { border-color: var(--ink); }
.cat-card b { font-family: "Syne", sans-serif; font-size: 22px; }
.cat-card span { color: var(--ink-soft); font-size: 14px; }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  background: #fffdf8;
}
.product-card .body, .pad { padding: 16px 16px 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-good { background: #efe0b0; }
.badge-excellent, .badge-like { background: #d7eadc; color: var(--sage); }
.price { font-family: "Syne", sans-serif; font-size: 24px; }
.product-card h3 { font-size: 18px; margin: 8px 0 4px; }

.buy-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}
.buy-band .btn-copper { justify-self: start; }
.note {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  background: var(--ink);
  color: #efe6d4;
  padding: 46px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer a:hover { color: var(--gold); }
.footer h3 { font-size: 16px; margin-bottom: 10px; }
.fine { margin-top: 28px; color: #b9ad97; font-size: 13px; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 36px 0;
}
.product-hero img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  border-radius: 24px;
  background: #fffdf8;
}
.spec-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.spec-list span {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.qty-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-row button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--card);
}

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 12px;
  background: #fffdf8;
}
.checkout-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.panel { padding: 22px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 12px;
  padding: 12px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.banner {
  background: #fff4cc;
  border: 1px solid #e8c36a;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}
.success-banner {
  background: #d7eadc;
  border-color: #8bb896;
}
.totals { display: grid; gap: 8px; font-size: 15px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-family: "Syne", sans-serif; font-size: 22px; margin-top: 8px; }

.thanks {
  text-align: center;
  padding: 36px 0 40px;
}
.thanks .order-box {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: left;
}

.chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(196, 75, 20, 0.35);
}
.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 94px;
  z-index: 40;
  width: min(360px, calc(100vw - 24px));
  height: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px;
}
.chat-head small { color: #cfc3ae; }
.chat-head a { color: var(--gold); text-decoration: underline; }
.chat-log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}
.bubble.bot { background: #efe4cc; }
.bubble.me { background: var(--ink); color: var(--paper); align-self: flex-end; }
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-form input { flex: 1; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 50;
  display: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filter-bar button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 12px;
}
.filter-bar button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.map-frame {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 18px;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

@media (max-width: 860px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 20px;
  }
  .menu-btn { display: inline-flex; }
  .phone-link { display: none; }
  .hero, .product-hero, .buy-band, .checkout-grid, .footer-grid, .cat-grid, .product-grid, .cart-row {
    grid-template-columns: 1fr;
  }
  .hero-card { min-height: 0; }
  .product-hero img { height: 280px; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row .qty-row, .cart-row .line-total { grid-column: 2; }
}
