/* Fuentes, paleta y forma de botón tomadas de theemberkosher.com (auditado 2026-09-28) */
@font-face {
  font-family: 'BODONI';
  src: url('fonts/Bodoni.woff2') format('woff2'), url('fonts/Bodoni.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'CEREBI';
  src: url('fonts/CerebriSans-Book.woff2') format('woff2'), url('fonts/CerebriSans-Book.woff') format('woff');
  font-display: swap;
}

:root {
  --bg: #2c2c2c;
  --surface: #1f1f1f;
  --surface-2: #383838;
  --line: #454545;
  --text: #ffffff;
  --muted: #ababab;
  --amber: #b67c27;
  --amber-dim: #8c5f1e;
  --on-amber: #ffffff;
  --leaf: 20px 0 20px 0;
  --leaf-sm: 10px 0 10px 0;
  --wa: #25d366;
  --radius: 14px;
  --header-h: 62px;
  --font-ui: 'CEREBI', system-ui, -apple-system, sans-serif;
  --font-display: 'BODONI', Georgia, serif;
}
[dir="rtl"] {
  --font-ui: 'Heebo', system-ui, sans-serif;
  --font-display: 'Heebo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 54px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Shabbat bar ---------- */
.shabbat-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, #1f1f1f, #2b2b2b);
  border-block-end: 1px solid var(--amber-dim);
  font-size: 14px;
}
.shabbat-bar[hidden] { display: none; }
.shabbat-icon { font-size: 22px; line-height: 1; }
.shabbat-bar strong { display: block; color: var(--amber); font-weight: 600; }
.shabbat-bar span { color: #dcdcdc; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 16px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}
.brand img { height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 5px 11px;
  border-radius: 999px;
  transition: .18s;
}
.lang-switch button[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); }

.cur-switch {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a5998a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 8px 26px 8px 12px;
}
[dir="rtl"] .cur-switch { background-position: left 10px center; padding: 8px 12px 8px 26px; }
.cur-switch:focus { outline: 0; border-color: var(--amber-dim); }

.note-dialog {
  width: min(360px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.note-dialog::backdrop { background: rgba(0,0,0,.6); }
.note-dialog h3 { margin: 0 0 8px; font-size: 16px; color: var(--amber); }
.note-dialog p { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: #dcdcdc; }
.note-dialog button {
  width: 100%;
  border: 3px solid var(--amber);
  border-radius: var(--leaf);
  background: var(--amber);
  color: var(--on-amber);
  font-size: 15px;
  font-weight: 500;
  padding: 9px;
}
.note-dialog button:hover { border-color: #fff; }

.cart-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute;
  inset-block-start: -5px; inset-inline-end: -5px;
  min-width: 19px; height: 19px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 20px 48px; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url('img/slide7.jpg') center/cover;
  opacity: .28;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5), var(--bg));
}
.hero-inner { position: relative; z-index: 1; max-width: 620px; margin-inline: auto; }
.hero-logo { height: 74px; width: auto; margin-inline: auto; margin-block-end: 20px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: .01em;
}
.hero-sub { color: #d0d0d0; margin: 0 0 26px; font-size: 15px; }
.hero-meta { color: var(--muted); font-size: 12.5px; margin: 18px 0 0; letter-spacing: .03em; }

.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: var(--on-amber);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  text-transform: uppercase;
  padding: 11px 30px;
  border: 3px solid var(--amber);
  border-radius: var(--leaf);
  transition: .2s;
}
.btn-primary:hover { border-color: #fff; }

/* ---------- Category nav ---------- */
.catnav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 11px 16px;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}
.catnav::-webkit-scrollbar { display: none; }
.catnav button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--leaf-sm);
  white-space: nowrap;
  transition: .18s;
}
.catnav button.active { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

/* ---------- Menu ---------- */
main { max-width: 860px; margin-inline: auto; padding: 8px 16px 120px; }

.cat { padding-block-start: 34px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-block-end: 6px; }
.cat-head img {
  width: 54px; height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  opacity: .9;
}
.cat-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  letter-spacing: .01em;
}
.cat-note { color: var(--amber); font-size: 13px; margin: 0 0 14px; }

.item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-block-end: 1px solid var(--line);
}
.item-main { flex: 1; min-width: 0; }
.item h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.item p { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.45; }
.item-side { flex: 0 0 auto; text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
[dir="rtl"] .item-side { align-items: flex-start; }
.price { font-size: 15px; font-weight: 600; color: var(--amber); white-space: nowrap; }
.price small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

.add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--amber-dim);
  background: transparent;
  color: var(--amber);
  font-size: 20px;
  line-height: 1;
  display: grid; place-items: center;
  transition: .18s;
}
.add-btn:hover { background: var(--amber); color: var(--on-amber); }
.add-btn:disabled { opacity: .3; cursor: not-allowed; }

.qty { display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px; line-height: 1;
}
.qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  border-block-start: 1px solid var(--line);
  padding: 34px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.footer img { height: 46px; width: auto; margin-inline: auto; margin-block-end: 14px; opacity: .8; }
.footer p { margin: 5px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer-social { display: flex; justify-content: center; gap: 18px; margin-block-start: 16px !important; }
.footer-social a { color: var(--amber); display: grid; place-items: center; }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-social svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cart FAB ---------- */
.cart-fab {
  position: fixed;
  inset-inline: 16px;
  inset-block-end: 16px;
  z-index: 45;
  border: 3px solid var(--amber);
  border-radius: var(--leaf);
  background: var(--amber);
  color: var(--on-amber);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.cart-fab[hidden] { display: none; }
.fab-total { font-variant-numeric: tabular-nums; }

/* ---------- Cart panel ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
}
.overlay[hidden] { display: none; }

.cart-panel {
  position: fixed;
  z-index: 55;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: var(--surface);
  border-inline-start: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.cart-panel[hidden] { display: none; }
.cart-head {
  flex: 0 0 auto;
  position: sticky; inset-block-start: 0; z-index: 2;
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-block-end: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 0; }
.icon-btn {
  border: 0; background: none; color: var(--muted);
  font-size: 30px; line-height: 1; padding: 0 4px;
}

.cart-items { flex: 0 0 auto; padding: 4px 20px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 20px; font-size: 14px; }
.cart-empty[hidden] { display: none; }

.cart-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-block-end: 1px solid var(--line);
}
.cart-row-main { flex: 1; min-width: 0; }
.cart-row h4 { font-size: 14px; font-weight: 500; margin: 0 0 3px; line-height: 1.3; }
.cart-row .line-price { color: var(--muted); font-size: 12.5px; }

.cart-form { flex: 0 0 auto; padding: 16px 20px 4px; border-block-start: 1px solid var(--line); }
.seg { border: 0; padding: 0; margin: 0 0 14px; }
.seg legend { font-size: 12px; color: var(--muted); margin-block-end: 7px; padding: 0; }
.seg-opts { display: flex; gap: 6px; }
.seg-opts label { flex: 1; }
.seg-opts input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opts span {
  display: block; text-align: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--leaf-sm);
  padding: 9px 4px;
  font-size: 13px;
  color: var(--muted);
  transition: .18s;
}
.seg-opts input:checked + span { border-color: var(--amber); color: var(--amber); background: rgba(182,124,39,.14); }

.field { display: block; margin-block-end: 12px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-block-end: 5px; }
.cart-sub {
  display: flex; justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  margin-block-end: 6px;
}
.cart-sub[hidden] { display: none; }
.cart-sub span:last-child { font-variant-numeric: tabular-nums; }

.field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  appearance: none;
}
.field select:focus { outline: 0; border-color: var(--amber-dim); }

.field input, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--amber-dim); }
.field[hidden] { display: none; }

.cart-foot {
  flex: 0 0 auto;
  position: sticky; inset-block-end: 0; z-index: 2;
  background: var(--surface);
  padding: 14px 20px 20px;
  border-block-start: 1px solid var(--line);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-block-end: 13px;
  font-size: 14px;
}
.cart-total[hidden] { display: none; }
.cart-total strong { font-size: 22px; color: var(--amber); font-variant-numeric: tabular-nums; }

.btn-wa {
  width: 100%;
  border: 3px solid var(--amber);
  border-radius: var(--leaf);
  background: var(--amber);
  color: var(--on-amber);
  font-size: 15.5px;
  font-weight: 500;
  padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: .18s;
}
.btn-wa svg { width: 21px; height: 21px; fill: var(--on-amber); }
.btn-wa:hover { border-color: #fff; }
.btn-wa:disabled { background: #3a3a3a; border-color: #3a3a3a; color: #8a8a8a; cursor: not-allowed; }
.btn-wa:disabled svg { fill: #8a8a8a; }
.btn-wa[hidden] { display: none; }
.cart-warn {
  font-size: 12.5px;
  color: var(--amber);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
}
.cart-warn[hidden] { display: none; }

.cart-legal { font-size: 11.5px; color: var(--muted); text-align: center; margin: 11px 0 0; line-height: 1.4; }

@media (min-width: 720px) {
  .header { padding-inline: 32px; }
  .catnav { padding-inline: 32px; }
  .cart-fab { inset-inline: auto; inset-inline-end: 24px; inset-block-end: 24px; }
  .item h3 { font-size: 16.5px; }
}


/* ---------- Pay button + return from Stripe ---------- */
.btn-pay {
  width: 100%;
  border: 3px solid var(--amber);
  border-radius: var(--leaf);
  background: var(--amber);
  color: var(--on-amber);
  font-size: 15.5px;
  font-weight: 500;
  padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: .18s;
}
.btn-pay svg { width: 21px; height: 21px; fill: none; stroke: var(--on-amber); stroke-width: 1.8; }
.btn-pay:hover { border-color: #fff; }
.btn-pay:disabled { background: #3a3a3a; border-color: #3a3a3a; color: #8a8a8a; cursor: not-allowed; }
.btn-pay:disabled svg { stroke: #8a8a8a; }
.btn-pay[hidden] { display: none; }

.screen {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  overflow-y: auto;
  padding: 0 16px 40px;
}
.screen[hidden] { display: none; }

.done-box { max-width: 420px; margin-inline: auto; }

.pf-row { display: flex; gap: 10px; margin-block-end: 12px; }
.pf-row[hidden] { display: none; }

.done-box { text-align: center; padding-block-start: 40px; }
.done-check {
  width: 58px; height: 58px;
  margin-inline: auto; margin-block-end: 16px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .14);
  border: 1.5px solid var(--wa);
  color: var(--wa);
  font-size: 28px;
  display: grid; place-items: center;
}
.done-box h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 0 0 20px; }

.done-grid {
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px 16px;
  margin-block-end: 20px;
}
.done-grid > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  border-block-end: 1px solid var(--line);
  font-size: 13.5px;
}
.done-grid > div:last-child { border-block-end: 0; }
.done-grid span { color: var(--muted); }
.done-grid strong { font-weight: 600; text-align: end; word-break: break-all; }
.done-grid strong.paid { color: var(--wa); }
.done-grid strong.pending { color: var(--amber); }
.done-check.pending { background: rgba(182,124,39,.14); border-color: var(--amber); color: var(--amber); }

.done-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 12px 0 18px; }
.linkish {
  display: block;
  width: 100%;
  border: 0; background: none;
  color: var(--amber);
  font-size: 13.5px;
  padding: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
