:root {
  --red: #d71920;
  --red-dark: #a90f15;
  --yellow: #ffc400;
  --black: #101010;
  --ink: #1b1b1b;
  --muted: #696969;
  --paper: #f6f5f2;
  --white: #fff;
  --green: #1fa855;
  --border: #e2e0dc;
  --shadow: 0 12px 34px rgba(0, 0, 0, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 3px solid var(--red);
}
.brand { display: flex; align-items: center; min-width: 112px; }
.brand-logo {
  width: 116px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.brand strong { display: block; font-size: 20px; line-height: 18px; }
.brand small { color: var(--yellow); font-weight: 900; font-size: 10px; }
.topbar nav { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 14px; }
.topbar nav a:hover { color: var(--yellow); }
.admin-link { opacity: .7; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.account-button {
  min-height: 42px; padding: 0 15px; border: 1px solid #555; border-radius: 5px;
  background: transparent; color: white; font-weight: 800; cursor: pointer;
}
.account-button.signed-in { border-color: var(--yellow); color: var(--yellow); }
.cart-button {
  position: relative; border: 0; background: var(--yellow); color: var(--black);
  width: 46px; height: 46px; border-radius: 6px; cursor: pointer; font-size: 20px;
}
.cart-button b {
  position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px;
  padding: 0 5px; display: grid; place-items: center; border-radius: 11px;
  background: var(--red); color: white; border: 2px solid var(--black); font-size: 11px;
}

.hero {
  min-height: min(690px, calc(100vh - 72px));
  position: relative;
  display: flex;
  align-items: center;
  background: #15110f url("/assets/hero-food.png") center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.73) 39%, rgba(0,0,0,.12) 75%); }
.hero-content { position: relative; width: min(1200px, 90%); margin: auto; padding: 70px 0 96px; }
.eyebrow { margin: 0 0 12px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.eyebrow.dark { color: var(--red); }
.hero h1 { margin: 0; max-width: 660px; font-size: clamp(52px, 8vw, 104px); line-height: .9; letter-spacing: 0; }
.hero-copy { max-width: 520px; margin: 25px 0 30px; font-size: clamp(18px, 2vw, 25px); line-height: 1.45; color: #f0efed; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; cursor: pointer; transition: transform .18s, background .18s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: white; }
.button.primary:hover { background: var(--red-dark); }
.button.secondary { background: var(--yellow); color: var(--black); }
.delivery-note { margin-top: 22px; color: #dedbd5; font-size: 14px; }
.delivery-note span { color: var(--green); }

.quick-info {
  width: min(1120px, calc(100% - 32px)); margin: -42px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); background: white; box-shadow: var(--shadow);
  border-bottom: 4px solid var(--yellow);
}
.quick-info div { padding: 22px 28px; border-right: 1px solid var(--border); }
.quick-info div:last-child { border-right: 0; }
.quick-info strong, .quick-info span { display: block; }
.quick-info span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.menu-section { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 96px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2, .drawer-header h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.search { width: min(330px, 100%); display: flex; align-items: center; gap: 10px; background: white; border: 1px solid var(--border); padding: 0 14px; border-radius: 5px; }
.search input { width: 100%; height: 46px; border: 0; outline: 0; background: transparent; }
.category-tabs { display: flex; gap: 9px; overflow-x: auto; padding: 32px 0 22px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto; border: 1px solid #d4d1cb; background: white; padding: 10px 16px;
  border-radius: 4px; font-weight: 800; cursor: pointer;
}
.category-tab.active { background: var(--black); color: white; border-color: var(--black); box-shadow: inset 0 -3px var(--yellow); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-height: 300px; }
.product-card { background: white; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; }
.product-visual {
  aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden;
  background: #fff;
}
.product-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 10px; }
.product-emoji { font-size: 88px; filter: drop-shadow(0 12px 10px rgba(0,0,0,.38)); }
.featured-badge { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: #111; padding: 5px 8px; border-radius: 3px; font-size: 10px; font-weight: 900; }
.product-body { padding: 18px; display: flex; flex: 1; flex-direction: column; }
.product-category { color: var(--red); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.product-body h3 { margin: 6px 0 8px; font-size: 21px; }
.product-body p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; flex: 1; }
.product-options { display: grid; gap: 9px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.product-options label { color: var(--ink); font-size: 12px; font-weight: 900; }
.product-options select {
  display: block; width: 100%; height: 40px; margin-top: 5px; padding: 0 10px;
  border: 1px solid #cfcac2; border-radius: 4px; background: #fff; color: var(--ink);
}
.option-check { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.option-check input { width: 18px; height: 18px; accent-color: var(--red); }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.product-price { font-size: 20px; font-weight: 900; }
.add-button { border: 0; border-radius: 5px; background: var(--red); color: white; width: 42px; height: 42px; font-size: 24px; cursor: pointer; }
.empty-state, .loading { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 70px 20px; }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 22; width: 54px; height: 54px;
  display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 13px; font-weight: 900;
}
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.62); opacity: 0; visibility: hidden; transition: .2s; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%);
  background: white; transform: translateX(105%); transition: transform .25s; display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(0,0,0,.2);
}
.cart-open .drawer-backdrop { opacity: 1; visibility: visible; }
.cart-open .cart-drawer { transform: translateX(0); }
.drawer-header { padding: 24px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--border); }
.drawer-header h2 { font-size: 34px; }
.icon-button { border: 0; background: #eee; width: 40px; height: 40px; border-radius: 50%; font-size: 25px; cursor: pointer; }
.cart-items { padding: 8px 24px; overflow: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item h4 { margin: 0 0 6px; }
.cart-options { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-bottom: 6px; }
.cart-item-price { font-weight: 900; }
.quantity { display: flex; align-items: center; align-self: center; border: 1px solid var(--border); border-radius: 4px; }
.quantity button { width: 32px; height: 32px; border: 0; background: #f2f2f2; cursor: pointer; }
.quantity span { width: 34px; text-align: center; font-weight: 800; }
.customer-fields { padding: 15px 24px; display: grid; gap: 10px; border-top: 1px solid var(--border); }
.customer-fields label { font-size: 12px; font-weight: 800; }
.customer-fields input, .customer-fields textarea {
  display: block; width: 100%; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; padding: 10px; resize: vertical;
}
.cart-footer { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); background: #f5f4f0; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 18px; }
.total-row strong { font-size: 24px; }
.button.whatsapp { width: 100%; background: var(--green); color: white; }
.cart-footer small { display: block; text-align: center; color: var(--muted); margin-top: 9px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.72); opacity: 0; visibility: hidden; transition: .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-content { width: min(420px, 100%); background: white; padding: 34px; border-radius: 7px; text-align: center; box-shadow: var(--shadow); }
.modal-check { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--green); color: white; font-size: 30px; }
.modal-check.install { background: var(--yellow); color: var(--black); }
.modal-content h2 { margin: 0; font-size: 29px; }
.modal-content p { color: var(--muted); line-height: 1.55; }
.account-modal-content { position: relative; width: min(460px, 100%); text-align: left; max-height: 90vh; overflow-y: auto; }
.account-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0;
  border-radius: 50%; background: #eee; color: var(--ink); font-weight: 900; cursor: pointer;
}
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 18px; border-bottom: 1px solid var(--border); }
.account-tabs button { border: 0; background: transparent; padding: 12px 8px; font-weight: 900; cursor: pointer; }
.account-tabs button.active { color: var(--red); box-shadow: inset 0 -3px var(--red); }
.account-form { display: none; gap: 13px; }
.account-form.active { display: grid; }
.account-form label { font-size: 12px; font-weight: 900; }
.account-form input {
  display: block; width: 100%; height: 44px; margin-top: 5px; padding: 0 11px;
  border: 1px solid #ccc; border-radius: 4px; background: white;
}
.account-form .button { width: 100%; margin-top: 5px; }
.account-profile > p:not(.eyebrow) { margin: 6px 0 20px; }
.text-button { margin-top: 12px; border: 0; background: transparent; text-decoration: underline; color: var(--muted); cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 70; transform: translate(-50%, 30px); background: #111; color: white; padding: 12px 18px; border-radius: 5px; opacity: 0; visibility: hidden; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (max-width: 850px) {
  .topbar { height: 64px; padding: 0 16px; }
  .topbar nav { display: none; }
  .account-button { min-height: 40px; padding: 0 10px; font-size: 12px; }
  .hero { min-height: 630px; align-items: end; background-position: 62% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.7) 60%, rgba(0,0,0,.1) 100%); }
  .hero-content { width: calc(100% - 32px); padding: 230px 0 72px; }
  .hero h1 { font-size: clamp(51px, 17vw, 78px); }
  .quick-info { grid-template-columns: 1fr; margin-top: -25px; }
  .quick-info div { padding: 15px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .brand { min-width: 98px; }
  .brand-logo { width: 98px; height: 52px; }
  .topbar-actions { gap: 7px; }
  .menu-section { padding: 72px 0 90px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-visual { aspect-ratio: 1 / 1; }
  .hero-actions .button { flex: 1 1 155px; padding: 0 14px; }
  .whatsapp-float { bottom: 16px; right: 16px; }
}
