:root {
  --ink: #2a1f1a;
  --muted: #6f6259;
  --bg: #fdfbf8;
  --card-bg: #ffffff;
  --accent: #9a6a3c;
  --accent-dark: #7a5230;
  --brand: #7a3524;
  --border: #e8e0d6;
  --radius: 10px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  margin: 0 0 16px;
}
.hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Category chips (home) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 8px 0 48px;
}
.chip {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
section { padding: 48px 0; }
.section-title {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  text-align: center;
  margin: 0 0 36px;
}

/* Product grid */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.card-img {
  aspect-ratio: 1 / 1;
  background: #f2ece3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-body h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cat {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.card-price {
  font-size: 17px;
  font-weight: 700;
  margin-top: auto;
}
.card-buy {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.card-buy:hover { background: var(--accent-dark); }

.empty-state, .loading-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

/* Product detail page */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
}

.gallery-main {
  aspect-ratio: 1/1;
  background: #f2ece3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.product-cat {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.product-title {
  font-size: clamp(21px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  text-wrap: balance;
}
.sku-note {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono, monospace);
  margin: 0 0 16px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.product-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tag-chip {
  font-size: 12px;
  color: var(--muted);
  background: #f2ece3;
  border-radius: 999px;
  padding: 5px 12px;
}

.trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 22px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #f2ece3;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
}
.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 20px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 0; }
.spec-table td:first-child { color: var(--muted); width: 40%; }
.spec-table td:last-child { color: var(--ink); font-weight: 500; }

.related-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 720px) { .related-row { grid-template-columns: repeat(2, 1fr); } }
.related-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.related-card .thumb {
  aspect-ratio: 1/1;
  background: #f2ece3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.related-card .info { padding: 10px; font-size: 13px; }
.related-card .price { font-weight: 700; margin-top: 4px; }

.sticky-cta-bar {
  position: sticky;
  bottom: 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-cta-bar .btn { flex-shrink: 0; padding: 13px 24px; }
@media (max-width: 480px) {
  .sticky-cta-bar { flex-direction: column; align-items: stretch; }
  .sticky-cta-bar .btn { text-align: center; }
}

/* About / Contact pages */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: 32px; margin-bottom: 20px; }
.prose p { color: var(--muted); font-size: 16px; }

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.contact-card a.email {
  display: inline-block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer p { margin: 0 0 8px; }
.site-footer p:last-child { margin-bottom: 0; }
