/* ===== TOKENS ===== */
:root {
  --bg:          #ffffff;
  --bg2:         #f7f5f2;
  --border:      #e8e3db;
  --text:        #1a1a1a;
  --text-muted:  #888;
  --accent:      #b8762a;
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
}
[data-theme="dark"] {
  --bg:         #141210;
  --bg2:        #1e1b17;
  --border:     #2e2923;
  --text:       #f0ece4;
  --text-muted: #7a7066;
  --accent:     #d4943a;
  --shadow:     0 2px 12px rgba(0,0,0,0.4);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  transition: background .25s, color .25s;
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background .25s, border-color .25s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.brand h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.2;
}
.brand p {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg { width: 17px; height: 17px; stroke: var(--text); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Header controls — lang + theme row */
.header-controls {
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  border-radius: 5px;
  padding: .28rem .52rem;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--bg);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* Category nav */
.cat-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-top: 1px solid var(--border);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-scroll {
  display: flex;
  padding: 0 .75rem;
  min-width: max-content;
}
.cat-btn {
  background: none; border: none;
  padding: .7rem .9rem;
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color .2s;
}
.cat-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s;
}
.cat-btn:hover { color: var(--text); }
.cat-btn.active { color: var(--accent); }
.cat-btn.active::after { transform: scaleX(1); }

/* ===== MAIN ===== */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

/* ===== CATEGORY ===== */
.category { padding: 2rem 1.25rem 0; }
.category h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: .02em;
}

/* ===== ITEM LIST (with image) ===== */
.item-list { list-style: none; }
.item-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.item-list li:last-child { border-bottom: none; }

/* Image / placeholder */
.item-img {
  width: 72px; height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg2);
  display: block;
}
.item-img-placeholder {
  width: 72px; height: 72px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
  user-select: none;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.name  { font-weight: 500; font-size: .95rem; color: var(--text); }
.price {
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.desc  { font-size: .8rem; color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 1.25rem;
  color: var(--text-muted);
}
.empty-state a {
  display: inline-block;
  margin-top: .75rem;
  color: var(--accent);
  font-size: .85rem;
}

/* ===== NOTE ===== */
.note {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .75rem;
  font-style: italic;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
