:root {
  --bg: #0d0b0a;
  --surface: #171311;
  --card: #1e1916;
  --line: #2e2622;
  --text: #fff8f0;
  --muted: #b8aca2;
  --red: #e3161b;
  --red-deep: #a80f13;
  --gold: #ffc21a;
  --orange: #ff8a00;
  --wa: #25d366;
  --radius: 18px;
  --gutter: 16px;
  --bar-h: 60px;
  --font: "Cairo", "Heebo", system-ui, sans-serif;
  color-scheme: dark;
}
html[lang="he"] { --font: "Heebo", "Cairo", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 28px var(--gutter) 30px;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(227, 22, 27, .55), transparent 70%) 50% 55% / 90% 80% no-repeat,
    radial-gradient(closest-side, rgba(255, 194, 26, .18), transparent 70%) 50% 40% / 60% 50% no-repeat;
}
.hero__logo { width: min(260px, 66vw); height: auto; margin: 8px auto 4px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); }
.hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag { margin: 4px 0 12px; color: var(--muted); font-weight: 600; }
.lang {
  position: absolute; top: 14px; inset-inline-end: var(--gutter);
  font: 700 .9rem var(--font);
  color: var(--text); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
.lang:hover { background: rgba(255, 255, 255, .14); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 5px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 700;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: #31d07a; box-shadow: 0 0 0 4px rgba(49, 208, 122, .2); }
.status.is-closed::before { background: var(--red); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  font: 800 1rem var(--font); text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s, background .15s;
}
.btn:hover { background: #221c19; }
.btn:active { transform: scale(.97); }
.btn--wa { background: var(--wa); border-color: transparent; color: #04210f; }
.btn--wa:hover { background: #2ee673; }
.btn--icon { width: 46px; padding: 0; }
.btn--block { width: 100%; margin-top: 18px; }

/* ---------- sticky category bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 11, 10, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar__inner { display: flex; align-items: center; gap: 8px; height: var(--bar-h); padding-inline: var(--gutter) 8px; max-width: 1100px; margin: 0 auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 4px 0; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 16px; border-radius: 999px;
  font: 700 .95rem var(--font); white-space: nowrap; text-decoration: none;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
}
.chip.is-active { color: #fff; background: var(--red); border-color: var(--red); }
.search-toggle {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--text); background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.search-toggle[aria-expanded="true"] { background: var(--surface); color: var(--gold); }
.searchbox { padding: 0 var(--gutter) 12px; max-width: 1100px; margin: 0 auto; }
.searchbox input {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 14px;
  font: 600 1rem var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
}
.searchbox input:focus { outline: none; border-color: var(--gold); }

/* ---------- menu ---------- */
.menu { max-width: 1100px; margin: 0 auto; padding: 8px var(--gutter) 40px; outline: none; }
.loading, .empty { text-align: center; color: var(--muted); padding: 40px var(--gutter); }
.section { padding-top: 22px; }
.section__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: 1.45rem; font-weight: 900;
}
.section__title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(to left, var(--red), transparent); }
[dir="ltr"] .section__title::after { background: linear-gradient(to right, var(--red), transparent); }
.section__count { font-size: .85rem; font-weight: 700; color: var(--muted); }

.grid { display: grid; gap: 12px; }
.card {
  display: grid; grid-template-columns: 1fr 108px; gap: 12px; align-items: stretch;
  width: 100%; padding: 12px; text-align: start;
  font: inherit; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #4a3b33; }
.card:active { transform: scale(.99); }
.card__body { display: flex; flex-direction: column; min-width: 0; }
.card__name { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.card__desc {
  margin: 4px 0 8px; color: var(--muted); font-size: .88rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.card__img {
  width: 108px; height: 108px; object-fit: cover; border-radius: 14px;
  background: var(--surface);
}
.card__img--empty { display: grid; place-items: center; font-size: 2.2rem; }
.price {
  display: inline-block; font-weight: 900; font-size: 1.05rem;
  color: #1a0d00; background: linear-gradient(180deg, var(--gold), var(--orange));
  padding: 2px 12px; border-radius: 999px; unicode-bidi: isolate;
}
.price--lg { font-size: 1.25rem; padding: 4px 16px; }
.tag { font-size: .78rem; font-weight: 700; color: var(--gold); }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { grid-template-columns: 1fr 132px; }
  .card__img { width: 132px; height: 132px; }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
  .card__img { order: -1; width: 100%; height: 210px; border-radius: 0; }
  .card__body { padding: 4px 16px 16px; }
}

/* ---------- item sheet ---------- */
.sheet {
  width: min(560px, 100%); max-height: 92dvh; margin: auto auto 0; padding: 0;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px 24px 0 0;
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(0, 0, 0, .7); }
.sheet[open] { animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 720px) { .sheet { margin: auto; border-radius: 24px; } }
.sheet__close {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.1rem; color: #fff; background: rgba(0, 0, 0, .6);
}
.sheet__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--card); }
.sheet__img[hidden] { display: none; }
.sheet__body { padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet__head h3 { margin: 0; font-size: 1.35rem; font-weight: 900; line-height: 1.3; }
.sheet__desc { color: var(--muted); margin: 8px 0 0; white-space: pre-line; }
.addons { margin-top: 18px; }
.addons h4 { margin: 0 0 8px; font-size: .95rem; color: var(--gold); }
.addons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.addons li { padding: 5px 12px; border-radius: 999px; font-size: .88rem; background: var(--card); border: 1px solid var(--line); }
.addons li b { color: var(--gold); font-weight: 800; margin-inline-start: 4px; unicode-bidi: isolate; }

/* ---------- footer & fab ---------- */
.footer { text-align: center; padding: 34px var(--gutter) 100px; border-top: 1px solid var(--line); background: var(--surface); }
.footer img { margin: 0 auto 12px; width: 96px; height: auto; }
.footer__info { display: grid; gap: 10px; margin: 0 auto 16px; max-width: 420px; }
.footer__info div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.footer__info dt { color: var(--muted); }
.footer__info dd { margin: 0; font-weight: 700; }
.footer__info a { text-decoration: none; }
.footer__note, .footer__copy { color: var(--muted); font-size: .82rem; margin: 6px 0; }

.fab {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--wa); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.fab svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
