/* ==========================================================
   DIGITAL MENU — PUBLIC SITE STYLES
   Palette: Black / Orange / White
   ========================================================== */

:root {
  --ink:        #121212;
  --ink-soft:   #2a2a2a;
  --orange:     #FF6A1A;
  --orange-deep:#E0530A;
  --paper:      #FFFFFF;
  --cloud:      #F6F5F2;
  --line:       #E9E7E2;
  --muted:      #83807A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(18,18,18,0.04), 0 8px 20px rgba(18,18,18,0.06);
  --shadow-card-hover: 0 4px 10px rgba(18,18,18,0.08), 0 16px 32px rgba(18,18,18,0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cloud);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

img { max-width: 100%; display: block; }

button, input { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 20px 28px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.hero__logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
  margin: 0 auto 14px;
  background: var(--ink-soft);
}

.hero__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--orange);
}

.hero__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 5vw, 34px);
  margin: 0;
  letter-spacing: 0.2px;
}

/* ---------- Controls (search + categories) ---------- */

.controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cloud);
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto 14px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
}

.search-box input::placeholder { color: var(--muted); }

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  max-width: 720px;
  margin: 0 auto;
}
.categories::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover { border-color: var(--orange); }

.chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--paper);
}

/* ---------- Grid ---------- */

.menu-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

.category-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 26px 4px 14px;
  color: var(--ink);
}
.category-label:first-child { margin-top: 4px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
  }
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
}

.card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.card__body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card__price {
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 15px;
}

.card__unavailable {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--cloud);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.card.is-unavailable .card__image {
  filter: grayscale(0.6);
  opacity: 0.6;
}
.card.is-unavailable .card__name { color: var(--muted); }

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state svg { margin: 0 auto 14px; opacity: 0.5; }
.empty-state p { font-size: 15px; margin: 0; }

/* ---------- Footer note ---------- */

.site-note {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  padding: 0 20px 24px;
}

/* ---------- Qty stepper (on cards) ---------- */

.qty-stepper {
  display: flex;
  align-items: center;
}

.qty-btn {
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

.qty-btn.qty-add {
  width: auto;
  padding: 0 14px;
  background: var(--orange);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}
.qty-btn.qty-add:hover { background: var(--orange-deep); }

.qty-stepper .qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
}

/* ---------- Floating cart bar ---------- */

.cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  transform: translateY(120%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.cart-bar.visible { transform: translateY(0); pointer-events: auto; }

.cart-bar button {
  width: 100%;
  max-width: 420px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.cart-bar__count {
  background: var(--orange);
  color: var(--paper);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}

.cart-bar button span:nth-child(2) { flex: 1; text-align: left; }
.cart-bar__total { color: var(--orange); font-weight: 700; }

/* ---------- Order drawer ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,18,18,0.5);
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.order-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  max-width: 480px;
  margin: 0 auto;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}
.order-drawer.open { transform: translateY(0); }

.order-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.order-drawer__header h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0;
}
.order-drawer__header button {
  border: none;
  background: var(--cloud);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.order-drawer__body {
  padding: 16px 20px 24px;
  overflow-y: auto;
}

.order-drawer__empty {
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
  padding: 30px 10px;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line__name { font-weight: 600; font-size: 14px; }
.cart-line__price { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-line__controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-line__controls .qty-value { min-width: 18px; text-align: center; font-weight: 700; font-size: 13.5px; }

.order-drawer__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 15px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.order-drawer__total-row strong { color: var(--orange-deep); font-size: 18px; }

#orderForm .field { margin-top: 14px; margin-bottom: 0; }
#orderForm label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
#orderForm input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  background: var(--cloud);
}
#orderForm input:focus { border-color: var(--orange); outline: none; }

.btn-place-order {
  width: 100%;
  margin-top: 18px;
  background: var(--orange);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-place-order:hover { background: var(--orange-deep); }
.btn-place-order:disabled { opacity: 0.7; cursor: wait; }

.order-drawer__success {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: var(--success, #1E7A46);
}
.order-drawer__success svg { color: var(--orange); margin-bottom: 8px; }
.order-drawer__success h3 { font-family: var(--font-display); font-size: 19px; margin: 0; color: var(--ink); }
.order-drawer__success p { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.order-drawer__success .btn-place-order { max-width: 220px; }

/* ---------- WhatsApp floating button ---------- */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 44;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

