@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600&display=swap");

:root {
  --brand: #7a3e1d;
  --bg: #fbf6ef;
  --surface: #ffffff;
  --text: #2b1d14;
  --muted: #7d6a5c;
  --line: #ecdfd0;
  --chip: #f3e7d8;
  --price: var(--brand);
  --shadow: 0 1px 2px rgba(60,30,10,.06), 0 4px 16px rgba(60,30,10,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1411; --surface: #241c17; --text: #f5ebe0; --muted: #b3a191;
    --line: #3a2e26; --chip: #33271f; --price: #e9a77a; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1411; --surface: #241c17; --text: #f5ebe0; --muted: #b3a191;
  --line: #3a2e26; --chip: #33271f; --price: #e9a77a; --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.hero { background: var(--brand); color: #fff; padding: 28px 0 22px; }
.hero h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 700;
  font-size: 30px; line-height: 1.1; margin: 0 0 4px; letter-spacing: -.01em;
}
.hero p { margin: 0; opacity: .85; }

.sticky {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 0 0;
}
.search {
  width: 100%; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 0 14px 0 40px; font: inherit; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%237d6a5c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 13px center;
}
.search:focus { border-color: var(--brand); }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; border-radius: 999px; padding: 8px 14px;
  background: var(--chip); color: var(--text); font: 500 14px Inter, sans-serif; cursor: pointer;
}
.tab[aria-pressed="true"] { background: var(--brand); color: #fff; }

section.cat { padding-top: 18px; scroll-margin-top: 130px; }
section.cat h2 { font-family: Fraunces, Georgia, serif; font-size: 21px; margin: 0 0 10px; }
.item {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border-radius: 14px; padding: 12px 14px;
  margin-bottom: 10px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: var(--chip); }
.item .info { flex: 1; min-width: 0; }
.item h3 { font-size: 16px; font-weight: 600; margin: 0; }
.item .desc { color: var(--muted); font-size: 13.5px; margin: 2px 0 0; }
.price { flex: none; font-weight: 600; font-size: 16px; color: var(--price); white-space: nowrap; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }
.note { font-size: 12.5px; color: var(--muted); text-align: center; padding: 24px 16px 32px; }
