/* Web shop — public pages. Light by design (owner: never the heavy WordPress look).
   One file, no framework. Mobile first, RTL. */
:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #2a2118;
  --muted: #6a5d50;            /* 5.4:1 even on the soft accent background */
  --line: #ece4d8;
  --accent: #9a4a26;
  --accent-ink: #ffffff;
  --accent-soft: #f6e9e0;
  --ok: #2f7a4a;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 24, .05), 0 4px 16px rgba(42, 33, 24, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
}
a { color: var(--accent); }

/* ---- Accessibility (IS 5568 / WCAG 2.0 AA) ---- */
.skip { position: absolute; top: -60px; right: 8px; z-index: 100; background: var(--ink); color: #fff;
        padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; border-radius: 6px; }
.a11y-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Environment ribbon (dev / demo only) */
.env-ribbon { background: #a8520f; color: #fff; text-align: center; font-size: 13px; padding: 3px 8px; }
.env-ribbon.preview { background: #555; }

/* Header */
.top { padding: 28px 0 12px; }
.top h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.3px; }
.top .tagline { margin: 4px 0 0; color: var(--muted); }
.top .kosher { display: inline-block; margin: 8px 0 0; padding: 4px 12px; border: 1.5px solid var(--accent);
               border-radius: 999px; color: var(--accent); font-weight: 700; font-size: 15px; }
.card { scroll-margin-top: 72px; }   /* clear of the sticky category bar when opened by #p-<code> */
.card:target { outline: 3px solid var(--accent); outline-offset: 2px; }
.card .name .avail { font-weight: 400; font-size: 13px; color: var(--accent); }
.top .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.top .meta a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }

/* Category chips */
.cats { position: sticky; top: 0; z-index: 5; background: rgba(250, 247, 242, .94);
        backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px;
              scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
        padding: 6px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); }
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); }

/* Products */
.section-title { font-size: 20px; margin: 26px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
        display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 4 / 3; background: var(--accent-soft); display: flex; align-items: center;
            justify-content: center; color: var(--accent); font-size: 34px; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 600; font-size: 15px; line-height: 1.3; margin: 0; }
.card .desc { color: var(--muted); font-size: 13px; line-height: 1.35; }
.card .days { color: var(--accent); font-size: 12px; }
.card .row { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .price { font-weight: 700; }
.opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.opt { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; min-height: 32px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.add { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 10px;
       padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: transparent; width: 34px; height: 34px; font-size: 18px; cursor: pointer; color: var(--accent); }
.stepper span { min-width: 22px; text-align: center; font-weight: 600; }

/* Cart bar */
.cartbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
           background: linear-gradient(to top, var(--bg) 70%, rgba(250, 247, 242, 0)); }
.cartbar button { width: 100%; max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
                  border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
                  padding: 14px 18px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(154, 74, 38, .25); }
.spacer { height: 96px; }

/* Checkout sheet */
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); overflow-y: auto; display: none; }
.sheet.open { display: block; }
.sheet .bar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 2; }
.sheet .bar .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.sheet h2 { margin: 0; font-size: 20px; }
.link-btn { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 15px; padding: 4px; }
.co { max-width: 560px; margin: 0 auto; padding: 8px 16px 40px; }
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 14px; }
.box h3 { margin: 0 0 10px; font-size: 16px; }
.line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .t { flex: 1; min-width: 0; }
.line .t small { display: block; color: var(--muted); }
.line .amt { font-weight: 600; white-space: nowrap; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 12px; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.field.bad input, .field.bad select { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; margin-top: 4px; display: none; }
.field.bad .err, .err.show { display: block; }
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }

.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; cursor: pointer; text-align: center; }
.toggle button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.toggle button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.date { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px;
        cursor: pointer; text-align: center; min-width: 74px; }
.date b { display: block; font-size: 15px; }
.date small { color: var(--muted); font-size: 12px; }
.date.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.date.on small { color: var(--accent); }
.date[disabled] { opacity: .4; cursor: not-allowed; }

.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 8px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

.totals .r { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .r.big { font-weight: 700; font-size: 18px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.pay { width: 100%; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
       padding: 15px; font-size: 17px; font-weight: 700; cursor: pointer; margin-top: 16px; }
.pay[disabled] { opacity: .6; cursor: wait; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.alert { background: #fdecea; color: var(--err); border-radius: 12px; padding: 10px 12px; margin-top: 12px; display: none; font-size: 14px; }
.alert.show { display: block; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* Order page / legal */
.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.status { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600;
          background: var(--accent-soft); color: var(--accent); }
.status.paid, .status.confirmed, .status.ready, .status.done { background: #e6f3ea; color: var(--ok); }
.status.failed, .status.cancelled, .status.abandoned { background: #fdecea; color: var(--err); }
.big-ok { font-size: 26px; margin: 8px 0 4px; }
.muted { color: var(--muted); }
.btn { display: inline-block; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink);
       padding: 12px 18px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.legal { white-space: pre-line; }
.legal ul { white-space: normal; margin: 6px 0; padding-inline-start: 22px; }
.legal li { margin: 3px 0; }
.legal h2 { font-size: 17px; margin: 22px 0 6px; }
.legal h2:first-child { margin-top: 0; }

/* Reviewers' survey (/shop/<slug>/survey) */
.survey-title { font-size: 24px; margin: 0; }
.survey form { margin-top: 6px; }
.survey fieldset.q { border: 0; margin-inline: 0; min-width: 0; }
.survey fieldset.q legend { font-weight: 600; padding: 0; margin-bottom: 10px; float: right; width: 100%; }
.survey fieldset.q .chips { clear: both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-opt span { display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 999px;
                 padding: 9px 16px; font-size: 15px; min-height: 40px; }
.chip-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip-opt input:focus-visible + span { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.survey details.photos summary { cursor: pointer; font-weight: 600; }
.ph-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (min-width: 560px) { .ph-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ph-item img, .ph-item .ph-none { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--accent-soft); }
.ph-item .ph-none { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ph-item select { font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 110px; color: var(--muted); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer.site a { color: inherit; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* Auto-stop-sales: product card out-of-stock state. */
.card.oos .body { opacity: .55; }
.card .ph { position: relative; }
.oos-badge {
    position: absolute; top: 10px; inset-inline-end: 10px;
    background: #c0392b; color: #fff; font-weight: 600;
    padding: 6px 10px; border-radius: 999px; font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.card.oos .ctl button.add,
.card.oos .ctl .stepper { display: none; }
.card.oos .ctl::after {
    content: "לא זמין להזמנה כעת";
    color: #c0392b; font-weight: 600; font-size: 14px;
}
