*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
  --red: #EA1D2C;
  --red-dark: #C8001E;
  --text: #3E3E3E;
  --text2: #717171;
  --text3: #A6A6A6;
  --border: #E8E8E8;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --green: #50A773;
  --purple: #7C3AED;
  --green2: #2DA562;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.16);
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --bg: #121212;
  --white: #1E1E1E;
  --text: #F0F0F0;
  --text2: #A0A0A0;
  --text3: #606060;
  --border: #2A2A2A;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background 0.25s, color 0.25s;
}

/* ── Dark mode toggle button ── */
.theme-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.theme-btn:hover { background: rgba(255,255,255,0.18); }

/* ── Scrollbar hide ── */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

/* ── App shell ── */
#app {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
  position: relative;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
#app.app-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Top bar ── */
.top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border: none; color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Hero ── */
.hero {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.62) 100%);
  pointer-events: none;
}

.hero-id {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.hero-id-logo {
  width: 44px; height: 44px;
  border-radius: 10px; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-id-name {
  color: #fff; font-size: 17px; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* food bg fallback */
.food-pizza,.food-esfiha,.food-chocolate,.food-drink,.food-doce { background: #1a1a1a; }

/* ── Page content ── */
.page-content { padding-bottom: 20px; }

/* ── Restaurant card ── */
.restaurant-card {
  background: var(--white);
  margin: -36px 14px 10px;
  border-radius: 18px;
  padding: 80px 18px 18px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow);
}
.resto-logo {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #2C1810;
  border: 3px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow);
  user-select: none;
}
.resto-name-row { display: flex; justify-content: space-between; align-items: flex-start; }
.resto-name { font-size: 19px; font-weight: 700; line-height: 1.2; flex: 1; }
.resto-arrow { color: var(--text3); font-size: 20px; margin-left: 6px; }
.resto-meta { font-size: 13px; color: var(--text2); margin-top: 4px; }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.rating-row { display: flex; align-items: center; gap: 5px; }
.star { font-size: 15px; }
.rating-num { font-size: 15px; font-weight: 600; }
.rating-ct { font-size: 14px; color: var(--text2); }
.row-arrow { margin-left: auto; color: var(--text3); font-size: 20px; }
.delivery-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.d-type { font-size: 14px; font-weight: 500; }
.dot { color: var(--text3); }
.d-time { font-size: 14px; }
.d-free { font-size: 14px; color: var(--green); font-weight: 600; }
.d-more { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ── Coupons ── */
.coupons-wrap { padding: 14px 0; }
.hscroll {
  display: flex;
  gap: 10px;
  padding: 0 14px;
  overflow-x: auto;
}
.coupon-card {
  flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 138px;
}
.coupon-icon {
  width: 34px; height: 34px;
  background: var(--green2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.coupon-label { font-size: 10px; color: var(--text2); display: block; }
.coupon-val { font-size: 17px; font-weight: 700; display: block; }
.coupon-min { font-size: 10px; color: var(--text2); display: block; }

/* ── Category nav ── */
.cat-nav {
  background: var(--white);
  position: sticky; top: 0;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
.cat-nav .hscroll { padding: 0 6px; gap: 0; }
.cat-btn {
  flex-shrink: 0;
  padding: 14px 15px;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.cat-btn.active { color: var(--text); border-bottom-color: var(--text); font-weight: 700; }

/* ── Menu sections ── */
.menu-section { padding: 18px 0 4px; }
.section-title { font-size: 18px; font-weight: 700; padding: 0 14px 12px; }

/* Destaques horizontal scroll */
.destaques-scroll { display: flex; gap: 12px; padding: 0 14px 6px; overflow-x: auto; }
.destaque-card {
  flex-shrink: 0; width: 158px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s;
}
.destaque-card:active { transform: scale(0.96); }
.destaque-img {
  width: 100%; height: 112px;
  position: relative;
  overflow: hidden;
  background: #111;
}
.destaque-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.destaque-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.65);
  color: white; font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 20px;
}
.destaque-info { padding: 9px 10px 11px; }
.d-price-main { font-size: 15px; font-weight: 700; }
.d-price-old { font-size: 12px; color: var(--text3); text-decoration: line-through; }
.d-price-club { font-size: 15px; font-weight: 700; color: var(--purple); }
.d-disc-badge {
  display: inline-block;
  background: var(--green2);
  color: white; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; margin-left: 4px;
}
.d-name { font-size: 12px; color: var(--text2); margin-top: 4px; line-height: 1.3; }
.d-back { font-size: 11px; color: var(--green2); font-weight: 600; margin-top: 3px; }

/* Product list items */
.section-card { background: var(--white); }
.product-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.product-item:last-child { border-bottom: none; }
.product-item:active { background: #F8F8F8; }
.product-text { flex: 1; }
.p-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.p-desc {
  font-size: 12px; color: var(--text2); line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-price { font-size: 14px; font-weight: 600; }
.product-thumb {
  width: 96px; height: 96px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  background: #111;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Club footer ── */
.club-footer {
  background: #F0E8FF;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; margin-top: 8px;
}
.gem { color: var(--purple); font-size: 16px; }
.red-chev { color: var(--red); margin-left: auto; font-size: 18px; }
.spacer-bottom { height: 72px; }

/* ── Cart bar ── */
.cart-bar {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--red);
  color: white;
  padding: 13px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 50; cursor: pointer;
  transition: transform 0.15s;
}
.cart-bar.hide { display: none; }
.cart-bar:active { filter: brightness(0.92); }
.cart-badge {
  background: rgba(255,255,255,0.22);
  border-radius: 20px; padding: 4px 10px;
  font-size: 13px; font-weight: 600;
}
.cart-bar-msg { flex: 1; font-size: 14px; }
.cart-bar-price { font-size: 15px; font-weight: 700; }

/* ── Overlay ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 80;
  animation: fadeIn 0.2s;
}
.overlay.hide { display: none; }

/* ── Bottom sheets ── */
.sheet {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  z-index: 90;
  max-height: 92dvh;
  overflow-y: auto;
  animation: slideUp 0.28s cubic-bezier(0.32,0.72,0,1);
}
.sheet.hide { display: none; }
.cart-sheet { background: var(--bg); }
@keyframes slideUp { from { transform: translateX(-50%) translateY(100%); } to { transform: translateX(-50%) translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Product sheet ── */
.product-hero {
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #111;
}
.product-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-back {
  position: absolute; top: 14px; left: 14px;
  width: 36px; height: 36px;
  border-radius: 50%; background: white;
  border: none; font-size: 22px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); z-index: 1;
}
.product-resto-chip {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.94);
  border-radius: 20px; padding: 8px 14px;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px;
}
.chip-name { font-size: 12px; font-weight: 700; color: #1E1E1E; display: block; margin-bottom: 2px; }
.chip-meta { font-size: 11px; color: #717171; display: block; }

.product-body { padding: 20px 16px 4px; }
.product-name { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.product-desc { font-size: 14px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; }
.product-price-big { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

/* ── Extras groups ── */
.extras-group {
  border-top: 1px solid var(--border);
  padding: 16px 16px 4px;
}
.extras-group.shake { animation: extras-shake 0.35s; }
@keyframes extras-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.extras-group-hdr { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.extras-group-title { font-size: 15px; font-weight: 700; color: var(--text); }
.extras-group-sub { font-size: 12px; color: var(--text2); margin-top: 3px; }
.extras-required {
  font-size: 10px; font-weight: 800; letter-spacing: 0.4px;
  background: var(--red); color: #fff;
  padding: 3px 7px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0; margin-left: 10px;
}
.extras-opt {
  display: flex; align-items: center;
  padding: 11px 0; gap: 12px;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.extras-opt:last-child { border-bottom: none; padding-bottom: 14px; }
.extras-opt-info { flex: 1; }
.extras-opt-name { font-size: 14px; font-weight: 500; color: var(--text); }
.extras-opt-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.extras-opt-price { font-size: 13px; color: var(--text2); margin-top: 3px; }
.extras-opt-img {
  width: 56px; height: 56px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #111;
}
.ext-radio, .ext-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.ext-radio { border-radius: 50%; }
.ext-check { border-radius: 5px; }
.ext-radio.sel { border-color: var(--red); }
.ext-radio.sel::after { content:''; width:10px; height:10px; background:var(--red); border-radius:50%; }
.ext-check.sel { background: var(--red); border-color: var(--red); }
.ext-check.sel::after { content:'✓'; color:#fff; font-size:13px; font-weight:700; line-height:1; }

.obs-wrap { margin-bottom: 4px; }
.obs-label-row {
  display: flex; justify-content: space-between;
  font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.obs-len { color: var(--text3); font-weight: 400; }
.obs-input {
  width: 100%; padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px;
  color: var(--text2); resize: none; height: 80px;
  font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.obs-input:focus { border-color: var(--text3); }
.report-btn {
  background: none; border: none;
  color: var(--red); font-size: 14px; font-weight: 600;
  margin-top: 20px; cursor: pointer; display: block;
  padding: 0 0 20px;
}

.product-footer {
  position: sticky; bottom: 0;
  background: var(--white); padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.qty-ctrl {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 13px;
}
.qty-btn {
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text3); line-height: 1;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn.plus { color: var(--red); }
.qty-num { font-size: 16px; font-weight: 700; min-width: 22px; text-align: center; }
.add-btn {
  flex: 1; background: var(--red); color: white;
  border: none; border-radius: 8px; padding: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between;
  transition: filter 0.15s;
}
.add-btn:active { filter: brightness(0.9); }

/* ── Cart sheet styles ── */
.cart-head {
  background: var(--white); padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
.cart-down { background: none; border: none; font-size: 22px; color: var(--red); cursor: pointer; }
.cart-title-text { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.cart-clear { background: none; border: none; color: var(--red); font-size: 14px; font-weight: 600; cursor: pointer; }

.cart-scroll { overflow-y: auto; }

.cart-resto-bar {
  background: var(--white); padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.cart-resto-name { font-size: 15px; font-weight: 700; }
.link-red { background: none; border: none; color: var(--red); font-size: 13px; font-weight: 600; cursor: pointer; }

.closed-warn {
  background: #1E1E1E; color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 12px 16px; text-align: center;
  border-radius: 8px; margin: 0 12px 10px;
}
.min-warn {
  background: #FFF8E1; border: 1px solid #FFE082;
  border-radius: 10px; padding: 12px 14px;
  margin: 0 0 8px;
  font-size: 13px; color: #5D4037;
}

.cart-block { background: var(--white); margin-bottom: 8px; padding: 16px; }
.block-label { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.cart-row-flex { display: flex; justify-content: space-between; align-items: center; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 58px; height: 58px; border-radius: 8px;
  flex-shrink: 0; position: relative;
  overflow: hidden; background: #111;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cart-item-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 20px; height: 20px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: white;
}
.cart-item-info { flex: 1; }
.ci-name { font-size: 14px; font-weight: 600; }
.ci-obs { font-size: 12px; color: var(--text2); margin-top: 2px; font-style: italic; }
.ci-desc { font-size: 12px; color: var(--text2); }
.ci-price { font-size: 14px; font-weight: 600; margin-top: 2px; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty-btn {
  width: 28px; height: 28px; border-radius: 5px; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer;
}
.ci-remove { background: none; color: var(--text3); font-size: 18px; }
.ci-add { background: var(--red); color: white; }
.ci-num { font-size: 15px; font-weight: 600; min-width: 20px; text-align: center; }

.addr-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.addr-left { display: flex; gap: 10px; align-items: flex-start; }
.addr-street { font-size: 14px; font-weight: 600; }
.addr-detail { font-size: 12px; color: var(--text2); }
.help-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text3); color: white;
  font-size: 11px; display: inline-flex;
  align-items: center; justify-content: center;
}
.delivery-opt {
  border: 2px solid var(--red); border-radius: 10px;
  padding: 14px; display: flex;
  justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.radio-sel {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--red);
  display: flex; align-items: center; justify-content: center;
}
.radio-sel::after { content: ''; width: 8px; height: 8px; background: white; border-radius: 50%; }
.pickup-note { font-size: 13px; color: var(--text2); margin-top: 10px; text-align: center; }

.cart-type-btn {
  flex: 1; padding: 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  background: none; color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cart-type-btn.active {
  border-color: var(--red); color: var(--red);
  background: rgba(234,29,44,0.06); font-weight: 700;
}
.cart-addr-input {
  width: 100%; padding: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px;
  color: var(--text); font-family: inherit; outline: none;
  transition: border-color 0.2s;
}
.cart-addr-input:focus { border-color: var(--red); }
.cart-addr-input::placeholder { color: var(--text3); }

.cep-row { display: flex; gap: 8px; }
.cep-row .cart-addr-input { flex: 1; }
.cep-btn {
  padding: 0 14px; border-radius: 8px; border: none;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity 0.15s;
}
.cep-btn:active { opacity: 0.8; }
.cep-status {
  font-size: 13px; color: var(--text2); margin-top: 6px;
  padding: 8px 10px; background: rgba(0,0,0,0.04);
  border-radius: 6px; border-left: 3px solid var(--red);
}

.ifood-logo-text { color: var(--red); font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.payment-row {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; display: flex;
  justify-content: space-between; align-items: center; cursor: pointer;
}

/* Summary */
.sum-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 14px; color: var(--text2);
}
.total-row {
  font-size: 16px; font-weight: 700; color: var(--text);
  border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px;
}
.discount-bar {
  background: #F3E8FF; border-radius: 8px;
  padding: 12px 14px; margin-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

.review-btn {
  width: calc(100% - 32px); margin: 16px;
  background: var(--red); color: white;
  border: none; border-radius: 8px; padding: 16px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.review-btn:active { filter: brightness(0.9); }

/* ── Loading screen ── */
#loadingScreen {
  position: fixed; inset: 0; z-index: 9999;
  background: #0A0A0A;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
#loadingScreen.ls-exit { opacity: 0; pointer-events: none; }

.ls-scene {
  display: flex; flex-direction: column; align-items: center;
}

.ls-logo {
  width: 92px; height: 92px;
  border-radius: 50%; object-fit: cover; display: block;
  animation: lsLogoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes lsLogoIn {
  from { opacity: 0; transform: translateY(-14px) scale(1.07); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── App toast ── */
.app-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - 32px));
  z-index: 99999;
  background: #1E1E1E;
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 240px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.38s cubic-bezier(0.34,1.48,0.64,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.app-toast-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.app-toast-body { flex: 1; }
.app-toast-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.app-toast-sub {
  font-size: 13px;
  color: #A6A6A6;
  line-height: 1.4;
}

.ls-name-wrap {
  overflow: hidden;
  margin-top: 20px;
}

.ls-name {
  font-size: 16px; font-weight: 800;
  letter-spacing: 8px; color: #fff;
  text-transform: uppercase;
  transform: translateY(110%);
  animation: lsSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes lsSlideUp {
  to { transform: translateY(0); }
}

.ls-rule {
  width: 0; height: 1px;
  background: #EA1D2C;
  margin: 13px auto 0;
  animation: lsRuleGrow 0.5s ease 1.0s forwards;
}

@keyframes lsRuleGrow {
  to { width: 48px; }
}

.ls-city-wrap {
  overflow: hidden;
  margin-top: 11px;
}

.ls-city {
  font-size: 10px; color: rgba(255,255,255,0.35);
  letter-spacing: 3px; text-transform: uppercase;
  transform: translateY(110%);
  animation: lsSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

/* ── Utility ── */
.green { color: var(--green); }
.green-bold { color: var(--green); font-weight: 600; }

/* ── Desktop centering for sheets (mobile breakpoint) ── */
@media (min-width: 430px) {
  .overlay { display: flex; align-items: flex-end; justify-content: center; }
}

/* ── Desktop header (hidden on mobile) ── */
.desk-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dh-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dh-left { display: flex; align-items: center; gap: 12px; }
.dh-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); }
.dh-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.dh-cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: white;
  border: none; border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: filter 0.15s;
}
.dh-cart:active { filter: brightness(0.9); }
.dh-cart.hide { display: none; }
.dh-sep { opacity: 0.6; }

/* ── Desktop search bar (hidden on mobile) ── */
.desk-search { display: none; }

/* ── DESKTOP LAYOUT ── */
@media (min-width: 768px) {
  body { background: var(--bg); }

  #app { max-width: 1200px; margin: 0 auto; background: transparent; }

  /* Show desktop header, hide mobile top bar */
  .desk-header { display: block; }
  .top-bar { display: none; }

  /* Hero: full-width, no border-radius */
  .hero { height: 380px; border-radius: 0; margin: 0; }

  /* Restaurant card: horizontal iFood style */
  .restaurant-card {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
  }
  .resto-logo { width: 120px; height: 120px; flex-shrink: 0; }
  .resto-name { font-size: 22px; }
  .resto-meta { font-size: 13px; }
  .rating-row { font-size: 14px; }
  .delivery-row { font-size: 13px; }
  .divider { display: none; }
  .d-more { display: none; }

  /* Desktop search bar */
  .desk-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }
  .dsb-left {
    display: flex; align-items: center; gap: 10px;
    flex: 1;
    background: var(--bg);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text2);
    font-size: 14px;
    cursor: text;
  }
  .dsb-left input {
    background: none; border: none; outline: none;
    flex: 1; font-size: 14px; color: var(--text);
    font-family: inherit;
  }
  .dsb-left input::placeholder { color: var(--text3); }
  .dsb-delivery {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 1.5px solid var(--border);
    border-radius: 8px; padding: 9px 14px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; color: var(--text);
    white-space: nowrap;
  }

  /* Coupons */
  .coupons-wrap { background: var(--white); padding: 0; border-bottom: 1px solid var(--border); }
  .coupons-wrap .hscroll { padding: 12px 24px; }

  /* Body grid: 2 columns */
  .body-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    padding: 0;
    align-items: start;
  }

  /* Left: vertical category nav */
  .cat-nav {
    position: sticky;
    top: 64px;
    background: var(--white);
    border-right: 1px solid var(--border);
    min-height: calc(100vh - 64px);
  }
  .cat-nav .hscroll {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    padding: 8px 0;
    gap: 0;
    max-height: calc(100vh - 80px);
  }
  .cat-btn {
    text-align: left;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 14px 16px;
    white-space: normal;
    font-size: 14px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-weight: 500;
  }
  .cat-btn::after { content: '∨'; font-size: 11px; color: var(--text3); }
  .cat-btn.active {
    border-left-color: var(--red);
    border-bottom-color: var(--border);
    color: var(--red);
    background: rgba(234,29,44,0.07);
    font-weight: 700;
  }
  .cat-btn.active::after { color: var(--red); }

  /* Right: main menu area */
  #menuMain { min-width: 0; background: var(--white); }
  .menu-section { padding: 0; border-bottom: 8px solid var(--bg); }
  .section-title {
    font-size: 18px;
    padding: 20px 24px 8px;
    border-bottom: none;
  }

  /* Products 2-column grid */
  .section-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 0;
    box-shadow: none;
  }
  .product-item {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0;
    padding: 16px 24px;
  }
  .product-item:nth-child(2n) { border-right: none; }
  .p-name { font-size: 15px; }
  .p-desc { font-size: 13px; -webkit-line-clamp: 2; }
  .p-price { font-size: 14px; margin-top: 6px; }
  .product-thumb { width: 100px; height: 100px; flex-shrink: 0; }

  /* Destaques */
  .destaques-scroll { padding: 12px 24px 16px; }
  .destaque-card { width: 185px; }
  .destaque-img { height: 130px; }

  /* Cart bar: floating button centered at bottom on desktop */
  .cart-bar {
    max-width: 420px;
    border-radius: 14px;
    bottom: 24px;
    box-shadow: 0 6px 24px rgba(234,29,44,0.45);
  }

  /* Hover animations — PC only */
  @media (hover: hover) {
    .product-item {
      transition: background 0.18s, box-shadow 0.18s, border-color 0.18s;
    }
    .product-item:hover {
      background: rgba(234,29,44,0.07);
      box-shadow: inset 3px 0 0 var(--red);
    }
    .destaque-card {
      transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
    }
    .destaque-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
    }
    .dh-cart:hover { filter: brightness(1.12); }
    .cat-btn {
      transition: background 0.18s, color 0.18s;
    }
    .cat-btn:not(.active):hover {
      background: rgba(234,29,44,0.07);
      color: var(--red);
    }
  }

  /* Club footer */
  .club-footer { margin: 0; border-radius: 0; }
  .spacer-bottom { height: 40px; }

  /* Sheets: centered modal on desktop */
  .sheet {
    border-radius: 16px;
    top: 80px;
    bottom: auto;
    transform: translateX(-50%);
    max-height: calc(100vh - 100px);
    max-width: 480px;
    width: 90vw;
  }
  .sheet.hide { display: none; }
}
