:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --card-border: #e8e6e0;
  --text: #1a1a1a;
  --text-dim: #7a7a7a;
  --accent: #1aa179;
  --price: #1a1a1a;
  --price-sec: #999;
  --radius: 14px;
  --maxw: 680px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 265px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--accent);
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.22) 0%, rgba(0,0,0,.58) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 0 24px;
}
.hero-logo {
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 3px solid rgba(255,255,255,.7);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-name {
  margin: 0; color: #fff;
  font-size: 24px; font-weight: 800; letter-spacing: .1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* ---------- Sticky nav wrap ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 25;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0 12px;
}
.cat-nav {
  display: flex; gap: 10px;
  overflow-x: auto; scrollbar-width: none;
  padding: 0 14px;
}
.cat-nav::-webkit-scrollbar { display: none; }

/* ---------- Category chips (картички) ---------- */
.cat-chip {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 2px solid var(--card-border);
  background: var(--card);
  border-radius: 14px;
  padding: 8px 8px 7px;
  cursor: pointer;
  min-width: 68px;
  transition: border-color .2s, box-shadow .2s, transform .12s;
  touch-action: manipulation;
}
.cat-chip-img {
  width: 60px; height: 60px; border-radius: 10px;
  background: var(--card-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden; flex-shrink: 0;
}
.cat-chip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-chip-label {
  font-size: 11.5px; font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: normal;
  max-width: 110px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 3px 6px;
  border-radius: 8px;
  background: transparent;
  transition: background .2s, color .2s;
  line-height: 1.25;
}
.cat-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.cat-chip.active .cat-chip-label {
  background: var(--accent); color: #fff;
}
.cat-chip:active { transform: scale(.94); }

/* ---------- Lang switch (в hero — изчезва при скрол) ---------- */
.lang-switch {
  position: absolute; top: 14px; right: 16px; z-index: 3;
}
.lang-current {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.32);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 7px 12px; border-radius: 999px;
  cursor: pointer; line-height: 1; white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.lang-current .caret { font-size: 10px; opacity: .75; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--card-border);
  border-radius: 14px; padding: 6px; min-width: 170px;
  z-index: 50; box-shadow: 0 14px 40px rgba(0,0,0,.18);
  max-height: 64vh; overflow-y: auto;
}
.lang-item {
  display: block; width: 100%; text-align: left; border: 0;
  background: transparent; color: #1a1a1a;
  font-size: 14px; font-weight: 500; padding: 10px 12px;
  border-radius: 9px; cursor: pointer;
}
.lang-item.active, .lang-item:active { background: var(--accent); color: #fff; }

/* ---------- Menu ---------- */
.menu { max-width: var(--maxw); margin: 0 auto; padding: 8px 14px 0; }
.loading { text-align: center; color: var(--text-dim); padding: 40px; font-size: 28px; }

.category { scroll-margin-top: 148px; margin-bottom: 4px; }

.category-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 800; color: var(--text);
  padding: 20px 2px 10px; margin: 0;
}
.category-title .icon { font-size: 20px; }
.category-title::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(to right, var(--accent) 0%, transparent 100%);
  border-radius: 999px;
}

/* size header */
.size-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; align-items: end; margin-bottom: 6px; padding: 0 2px;
}
.size-cols { display: flex; gap: 10px; }
.size-cols span {
  min-width: 60px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--text-dim);
}

.item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 8px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.item-img {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 14px;
  object-fit: cover; background: var(--card-border);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  overflow: hidden;
}
.item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.item-main { flex: 1 1 auto; min-width: 0; }
.item-name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--text); }
.item-desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; line-height: 1.45; }

.price { flex: 0 0 auto; text-align: right; }
.price-eur { font-size: 16px; font-weight: 800; color: var(--price); }
.price-bgn { font-size: 12px; color: var(--price-sec); margin-top: 1px; }

.price-sizes { display: flex; gap: 10px; }
.price-sizes .ps { min-width: 60px; text-align: center; }
.price-sizes .ps .price-eur { font-size: 14.5px; }

.footer {
  max-width: var(--maxw); margin: 24px auto 0;
  padding: 0 16px; text-align: center;
  color: var(--text-dim); font-size: 12px;
}

@media (max-width: 420px) {
  .cat-chip { min-width: 68px; }
  .cat-chip-img { width: 52px; height: 52px; }
  .item-img { width: 82px; height: 82px; font-size: 40px; }
  .size-cols span, .price-sizes .ps { min-width: 52px; }
}
