:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #6a7080;
  --line: #ebe5dc;
  --accent: #e8552d;
  --accent-dark: #c9431f;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 244, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo img { width: 34px; height: 34px; }
.logo b { color: var(--accent); font-weight: inherit; }

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead { margin: 0 0 28px; max-width: 44ch; color: var(--muted); font-size: 1.1rem; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); }

.hero-img { width: 100%; border-radius: 32px; }

/* Products */
.products { padding-top: 24px; padding-bottom: 72px; scroll-margin-top: 64px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

h2 { margin: 0; font-size: 1.7rem; letter-spacing: -0.02em; }

.count { color: var(--muted); font-size: 0.95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.chip-count { font-size: 0.8rem; opacity: 0.6; }

.chip:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31, 36, 48, 0.1); }

.card img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }

.card-cat {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 { margin: 4px 0 6px; font-size: 1.05rem; }

.card p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }

.price { margin-top: auto; font-size: 1.15rem; font-weight: 700; }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.site-footer p { margin: 8px 0 0; color: var(--muted); }
.site-footer .small { font-size: 0.85rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
  .hero-img { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .chip { transition: none; }
}
