/* ═══════════════════════════════════════════════════════════
   אצה בדרך — Design System
   Palette: Warm Black · Forest Green · Warm Gold
═══════════════════════════════════════════════════════════ */

:root {
  --bg:           #0c0a07;
  --bg-2:         #110e09;
  --bg-card:      #181410;
  --bg-card-2:    #1f1a12;
  --bg-card-3:    #272018;
  --green:        #4ade80;
  --green-2:      #22c55e;
  --green-sub:    rgba(74, 222, 128, 0.10);
  --green-glow:   rgba(74, 222, 128, 0.18);
  --yellow:       #e0c065;
  --yellow-2:     #c9a84c;
  --yellow-sub:   rgba(224, 192, 101, 0.13);
  --text:         #f0ebe0;
  --text-muted:   #8a7f6a;
  --text-dim:     #4a4035;
  --border:       #252018;
  --border-2:     #302818;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --font-head:    'Secular One', 'Arial Hebrew', Arial, sans-serif;
  --font-body:    'Open Sans', 'Arial Hebrew', Arial, sans-serif;
  --cart-w:       380px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 10, 7, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* ── Row 1: Logo + Cart ─────────────────────────────────── */
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 68px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon { font-size: 26px; line-height: 1; }
.logo-text  { display: flex; flex-direction: column; gap: 1px; }
.logo-name  {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.3px;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* Cart button */
.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.cart-toggle-btn:hover {
  background: var(--green-sub);
  border-color: rgba(74,222,128,0.4);
  color: var(--green);
}
.cart-badge {
  position: absolute;
  top: -5px; left: -5px;
  background: var(--yellow);
  color: #1a1200;
  font-size: 10px;
  font-weight: 700;
  min-width: 19px; height: 19px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
  border: 2px solid var(--bg);
}
.cart-badge.visible { opacity: 1; transform: scale(1); }

/* ── Row 2: Info bar ────────────────────────────────────── */
.header-info-row {
  display: flex;
  align-items: center;
  padding: 0 28px;
  height: 38px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--border);
}
.header-info-row::-webkit-scrollbar { display: none; }

/* Status indicator */
.hdr-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.hdr-status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hdr-status--open  { color: var(--green); }
.hdr-status--open  .hdr-status__dot {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: pulse-open 2.4s ease-in-out infinite;
}
@keyframes pulse-open {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  60%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.hdr-status--closed { color: #f87171; }
.hdr-status--closed .hdr-status__dot { background: #f87171; }

/* Separator — vertical line */
.hdr-sep {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--border-2);
  margin: 0 14px;
  flex-shrink: 0;
  border-radius: 1px;
}

/* Info chips */
.hdr-chip {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

/* ── Row 3: Category tabs ───────────────────────────────── */
.category-nav {
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.category-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1140px;
  margin: 0 auto;
}
.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: all 0.18s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cat-tab:hover {
  color: var(--text);
  background: var(--bg-card-2);
  border-color: var(--border-2);
}
.cat-tab.active {
  background: var(--green-sub);
  color: var(--green);
  border-color: rgba(74,222,128,0.3);
}

/* ══════════════════════════════════════════════════════════
   MENU
══════════════════════════════════════════════════════════ */
.menu-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.menu-section { padding-top: 44px; }

.section-title {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Item Card ──────────────────────────────────────────── */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.item-card:hover {
  border-color: rgba(74,222,128,0.28);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 24px rgba(74,222,128,0.08);
}

.item-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card-2) 0%, var(--bg-card-3) 100%);
}
.item-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.item-card:hover .item-image-wrap img { transform: scale(1.05); }

.badge-popular {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--yellow);
  color: #1a1200;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.item-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
}
.item-name {
  font-family: var(--font-head);
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.2;
}
.item-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-price {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--green);
  letter-spacing: -0.3px;
}

/* qty control */
.item-qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-card-3);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  overflow: hidden;
}
.qty-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.qty-btn:hover          { color: var(--green); background: var(--green-sub); }
.qty-btn.qty-plus:hover { color: #041a0a; background: var(--green); }
.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ── Closed state ───────────────────────────────────────── */
.closed-overlay-section {
  padding: 80px 20px;
  display: flex; justify-content: center;
}
.closed-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 400px;
}
.closed-icon { font-size: 56px; margin-bottom: 20px; }
.closed-card h2 { font-family: var(--font-head); font-size: 24px; margin-bottom: 12px; }
.closed-card p  { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════
   CART PANEL
══════════════════════════════════════════════════════════ */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.cart-backdrop.active { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(var(--cart-w), 100vw);
  height: 100dvh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-2);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -16px 0 60px rgba(0,0,0,0.6);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-panel-header h2 { font-family: var(--font-head); font-size: 20px; }
.cart-close-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-card-3);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: color 0.15s, background 0.15s;
}
.cart-close-btn:hover { color: var(--text); background: var(--border-2); }

.cart-items-wrap { flex: 1; overflow-y: auto; padding: 16px 22px; }

.cart-empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 220px; text-align: center;
  color: var(--text-muted);
}
.cart-empty-icon { font-size: 52px; margin-bottom: 14px; }
.cart-empty-state p { font-size: 14px; line-height: 1.7; }
.cart-empty-state small { font-size: 12px; color: var(--text-dim); }

.cart-items-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s;
}
.cart-item:hover { border-color: var(--border-2); }
.cart-item-img {
  width: 50px; height: 50px;
  border-radius: 7px; object-fit: cover;
  flex-shrink: 0; background: var(--bg-card-3);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--green); margin-top: 3px; }

.cart-item-controls { display: flex; align-items: center; gap: 3px; }
.cart-qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card-3); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  transition: all 0.15s;
}
.cart-qty-btn:hover { background: var(--green-sub); color: var(--green); border-color: var(--green); }
.cart-qty-num { min-width: 22px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-remove-btn { color: var(--text-dim); font-size: 12px; padding: 4px 6px; border-radius: 4px; transition: color 0.15s; margin-right: 2px; }
.cart-remove-btn:hover { color: #f87171; }

.cart-footer { padding: 16px 22px 24px; border-top: 1px solid var(--border); }
.cart-summary { margin-bottom: 16px; }
.cart-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.cart-total-row { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; font-size: 16px; color: var(--text); }
.cart-total-row strong { color: var(--green); }
.cart-min-warn { font-size: 12px; color: var(--yellow); text-align: center; padding: 8px 0; }

.btn-checkout {
  display: block; width: 100%;
  padding: 14px;
  background: var(--green); color: #041a0a;
  text-align: center; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 17px;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.btn-checkout:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-checkout:active { transform: translateY(0); }

/* ══════════════════════════════════════════════════════════
   CHECKOUT PAGE
══════════════════════════════════════════════════════════ */
.checkout-page { background: var(--bg-2); }

.checkout-header { position: sticky; top: 0; z-index: 10; }
.checkout-header .header-main-row { justify-content: space-between; }
.back-link { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.back-link:hover { color: var(--green); }

.checkout-main { max-width: 1000px; margin: 0 auto; padding: 32px 24px 80px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
.checkout-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.checkout-card-title {
  font-family: var(--font-head); font-size: 20px;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-empty { color: var(--text-muted); font-size: 14px; }
.summary-empty a { color: var(--green); text-decoration: underline; }
.summary-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.summary-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.summary-item-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--bg-card-2); }
.summary-item-info { flex: 1; }
.summary-item-name  { font-weight: 600; }
.summary-item-qty   { font-size: 12px; color: var(--text-muted); }
.summary-item-price { color: var(--green); font-weight: 600; }
.summary-totals { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.summary-total { font-size: 16px; font-weight: 700; color: var(--text); padding-top: 10px; border-top: 1px solid var(--border); }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.req { color: var(--green); }
.opt { color: var(--text-dim); font-weight: 400; }

.form-input {
  width: 100%;
  background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  direction: rtl; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-sub); }
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 80px; }

.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-option input { display: none; }
.type-btn {
  display: block; padding: 10px 14px;
  background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); text-align: center;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.type-option input:checked + .type-btn { background: var(--green-sub); border-color: var(--green); color: var(--green); }

.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-option input { display: none; }
.payment-btn {
  display: block; padding: 8px 16px;
  background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.payment-option input:checked + .payment-btn { background: var(--yellow-sub); border-color: var(--yellow); color: var(--yellow); }

.form-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm); color: #f87171;
  padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
}

.btn-submit {
  width: 100%; padding: 14px;
  background: var(--green); color: #041a0a;
  border-radius: var(--radius);
  font-family: var(--font-head); font-size: 17px;
  transition: background 0.2s; cursor: pointer;
}
.btn-submit:hover:not(:disabled) { background: var(--green-2); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   SUCCESS PAGE
══════════════════════════════════════════════════════════ */
.success-page { display: flex; align-items: center; justify-content: center; min-height: 100dvh; background: var(--bg); }
.success-main { width: 100%; padding: 20px; }
.success-card {
  max-width: 440px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 40px; text-align: center;
}
.success-icon-wrap { margin-bottom: 20px; }
.success-icon { font-size: 64px; display: inline-block; animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success-title { font-family: var(--font-head); font-size: 32px; color: var(--green); margin-bottom: 8px; }
.success-sub { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }
.success-order-num {
  background: var(--bg-card-2); border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 24px;
}
.order-num-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.order-num-value { font-family: var(--font-head); font-size: 22px; color: var(--yellow); letter-spacing: 1px; }
.success-note { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.btn-back-home {
  display: inline-block; padding: 12px 28px;
  background: var(--bg-card-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-back-home:hover { border-color: var(--green); color: var(--green); }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); padding: 24px 24px; margin-top: 40px; background: var(--bg-card); }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo  { font-family: var(--font-head); font-size: 16px; color: var(--green); }
.footer-info  { display: flex; gap: 16px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --cart-w: 100vw; }
  .header-main-row  { padding: 0 18px; height: 60px; }
  .header-info-row  { padding: 0 18px; }
  .category-tabs    { padding: 6px 14px; }
  .menu-main        { padding: 0 16px 60px; }
  .checkout-grid    { grid-template-columns: 1fr; }
  .checkout-summary-col { order: 2; }
  .checkout-form-col    { order: 1; }
  .items-grid       { grid-template-columns: 1fr 1fr; }
  .footer-inner     { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .items-grid     { grid-template-columns: 1fr; }
  .checkout-card  { padding: 20px; }
  .success-card   { padding: 32px 24px; }
  .type-toggle    { grid-template-columns: 1fr; }
  .logo-sub       { display: none; }
}
