:root {
  --red: #D40503;
  --red-dark: #9c0302;
  --yellow: #FDD80C;
  --ink: #1A0505;
  --surface: #2b0b0a;
  --surface-2: #381211;
  --line: rgba(253, 216, 12, .16);
  --text: #fff4e0;
  --muted: #d9bfae;
  --radius: 18px;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
}

h1, h2, h3, .font-display { font-family: 'Lilita One', 'Nunito', sans-serif; font-weight: 400; letter-spacing: .3px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 10%, rgba(253, 216, 12, .18), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(0, 0, 0, .25), transparent 45%),
    var(--red);
  padding: 28px 0 70px;
}
.hero-logo {
  width: clamp(130px, 34vw, 210px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
  animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.hero-slogan { margin: 12px auto 10px; max-width: 520px; font-weight: 700; font-size: clamp(.95rem, 2.8vw, 1.15rem); color: #fff; }
.hero-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .88rem; font-weight: 700; }
.hero-info li { color: var(--yellow); }
.hero-info i { margin-right: 6px; }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 44px; fill: var(--ink); }

@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* ---------- BARRA DE CATEGORIAS ---------- */
.catbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 5, 5, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0 8px;
}
.search-wrap { position: relative; margin-bottom: 8px; }
.search-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap .form-control {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 16px 9px 40px; font-weight: 600;
}
.search-wrap .form-control::placeholder { color: var(--muted); }
.search-wrap .form-control:focus { background: var(--surface-2); color: var(--text); border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 216, 12, .2); }

.catlist { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catlist::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 15px; border-radius: 999px; font-weight: 800; font-size: .88rem; white-space: nowrap;
  cursor: pointer; transition: all .2s;
}
.cat-chip i { color: var(--yellow); transition: color .2s; }
.cat-chip:hover { border-color: var(--yellow); }
.cat-chip.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cat-chip.active i { color: var(--red); }

/* ---------- SEÇÕES / CARDS ---------- */
.menu-section { margin-bottom: 38px; }
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--yellow); margin-bottom: 16px;
}
.section-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }
.section-title .count { font-family: 'Nunito'; font-size: .78rem; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 800; order: 3; }
.section-title::after { order: 2; }

.card-prod {
  display: flex; flex-direction: column; height: 100%; width: 100%; text-align: left;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); padding: 0; overflow: hidden; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card-prod:hover, .card-prod:focus-visible { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); outline: none; }
.card-prod:active { transform: scale(.98); }

.card-thumb {
  position: relative; height: 96px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(253, 216, 12, .22), transparent 60%), linear-gradient(135deg, var(--red), var(--red-dark));
  overflow: hidden;
}
.card-thumb > i { font-size: 2.4rem; color: var(--yellow); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; top: 8px; left: 8px; background: var(--yellow); color: var(--ink);
  font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; padding: 3px 9px; border-radius: 999px;
}
.card-body-c { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; margin-bottom: 4px; }
.card-desc { color: var(--muted); font-size: .84rem; line-height: 1.35; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Lilita One'; font-size: 1.3rem; color: var(--yellow); }
.card-more { font-size: .75rem; font-weight: 800; color: var(--muted); }
.card-more i { margin-left: 4px; }

/* adicionais: linha compacta */
.card-prod.compact { flex-direction: row; align-items: center; padding: 12px 14px; gap: 12px; }
.card-prod.compact .card-thumb { display: none; }
.card-prod.compact .card-body-c { padding: 0; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
.card-prod.compact .card-name { margin: 0; font-size: .95rem; }
.card-prod.compact .card-desc, .card-prod.compact .card-more { display: none; }
.card-prod.compact .card-foot { margin: 0; }

/* ---------- MODAL ---------- */
.modal-content { background: var(--surface); color: var(--text); border: 1px solid var(--yellow); border-radius: 22px; overflow: hidden; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 5; background-color: rgba(0, 0, 0, .45); border-radius: 50%; padding: 10px; opacity: 1; }
.modal-visual {
  height: 150px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(253, 216, 12, .28), transparent 60%), linear-gradient(135deg, var(--red), var(--red-dark));
}
.modal-visual > i { font-size: 4rem; color: var(--yellow); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.modal-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 20px 22px 8px; }
.badge-cat { display: inline-block; background: rgba(253, 216, 12, .14); color: var(--yellow); font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.modal-title-custom { font-size: 1.75rem; margin: 10px 0 2px; line-height: 1.1; }
.modal-price { font-family: 'Lilita One'; font-size: 1.7rem; color: var(--yellow); margin-bottom: 10px; }
.modal-desc { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.ing-title { font-size: 1.15rem; color: var(--yellow); margin: 18px 0 10px; }
.ing-title i { margin-right: 6px; font-size: .95rem; }
.ing-list { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.ing-list li { background: var(--surface-2); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; font-size: .86rem; font-weight: 700; }
.ing-list li i { color: var(--red); margin-right: 6px; font-size: .7rem; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px 18px; flex-wrap: nowrap; gap: 12px; }

.btn-zap { background: #25D366; color: #fff; font-weight: 800; border-radius: 999px; padding: 12px 18px; border: 0; font-size: 1rem; }
.btn-zap:hover, .btn-zap:focus { background: #1ebe5b; color: #fff; }
.btn-zap i { margin-right: 6px; font-size: 1.15rem; vertical-align: -2px; }

/* ---------- OUTROS ---------- */
.empty { padding: 60px 0; color: var(--muted); }
.empty i { font-size: 3rem; color: var(--yellow); margin-bottom: 12px; }

.footer { background: #0f0303; padding: 30px 0 100px; margin-top: 20px; border-top: 3px solid var(--red); }
.footer-logo { width: 72px; height: auto; margin-bottom: 8px; }

.fab-zap {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; font-size: 2rem; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5); transition: transform .2s;
}
.fab-zap:hover { transform: scale(1.08); color: #fff; }

/* ---------- RESPONSIVO ---------- */
@media (min-width: 576px) {
  .card-thumb { height: 110px; }
}
@media (min-width: 768px) {
  .hero { padding: 40px 0 80px; }
  .card-thumb { height: 120px; }
  .modal-visual { height: 180px; }
  html { scroll-padding-top: 160px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1180px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- PEDIDO / CARRINHO ---------- */
.text-yellow { color: var(--yellow); } .text-muted-c { color: var(--muted); }
.card-prod { position: relative; }
.card-prod:focus-visible { outline: 2px solid var(--yellow); }
.quick-add {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-size: .9rem; flex: 0 0 auto; transition: transform .15s;
}
.quick-add:hover { transform: scale(1.1); } .quick-add:active { transform: scale(.9); }
.card-foot .right { display: flex; align-items: center; gap: 10px; }
.card-in-cart { position: absolute; top: 8px; right: 8px; background: #25D366; color: #fff; font-size: .72rem; font-weight: 900; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; z-index: 2; }
.card-prod.compact .card-in-cart { top: 6px; right: 6px; }

.qty { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: 0 0 auto; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.qty button:disabled { opacity: .4; }
.qty span { min-width: 34px; text-align: center; font-weight: 900; font-size: 1.05rem; }
.btn-add { background: var(--red); color: #fff; font-weight: 800; border-radius: 999px; padding: 11px 16px; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn-add:hover, .btn-add:focus { background: #ee1210; color: #fff; }

.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 61; max-width: 560px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--yellow); color: var(--ink); border: 0; border-radius: 999px; padding: 14px 20px;
  font-weight: 900; box-shadow: 0 10px 28px rgba(0,0,0,.55); animation: rise .35s ease both;
}
.cart-bar i { margin-right: 8px; }
.cart-count { background: var(--red); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; font-size: .8rem; margin-right: 8px; }
.cart-bar-total { font-family: 'Lilita One'; font-size: 1.2rem; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
body.has-cart .fab-zap { display: none; }
body.has-cart .footer { padding-bottom: 110px; }

.cart-canvas { background: var(--surface); color: var(--text); border-left: 1px solid var(--yellow); --bs-offcanvas-width: 440px; }
.cart-canvas .offcanvas-title { font-size: 1.5rem; color: var(--yellow); }
.cart-canvas .offcanvas-title i { margin-right: 8px; }
.cart-items { margin: 0 0 18px; }
.cart-item { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .nm { font-weight: 800; line-height: 1.2; }
.cart-item .pr { color: var(--yellow); font-weight: 800; font-size: .9rem; }
.cart-item .qty button { width: 30px; height: 30px; font-size: .75rem; }
.cart-item .qty span { min-width: 28px; font-size: .95rem; }
.cart-form .form-label { font-weight: 800; font-size: .88rem; margin-bottom: 4px; }
.cart-form .form-control { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; }
.cart-form .form-control::placeholder { color: var(--muted); opacity: .8; }
.cart-form .form-control:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(253,216,12,.2); background: var(--surface-2); color: var(--text); }
.btn-tipo { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: 800; }
.btn-check:checked + .btn-tipo { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-tipo i { margin-right: 6px; }
.offcanvas-footer { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-total { font-family: 'Lilita One'; font-size: 1.6rem; color: var(--yellow); }
.btn-limpar { color: var(--muted); font-size: .85rem; text-decoration: none; }
.btn-limpar:hover { color: var(--yellow); }
@media (max-width: 575.98px) { .cart-canvas { --bs-offcanvas-width: 100vw; } }
