/* ============================================
   FESTBOOL — Estilos do cardápio digital (esboço)
   Baseado no layout do projeto Boralá Pub
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 130px; }
body {
  font-family: 'Open Sans', sans-serif;
  background: #f3f5f3;
  color: #20241f;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea { outline: none; border: none; font-family: inherit; }

/* ---------- Variáveis ---------- */
:root {
  --gold: #f7c531;
  --gold-dark: #d99b09;
  --gold-light: #ffe08a;
  --green: #12a150;
  --green-dark: #0a6b34;
  --green-light: #2ecc71;
  --black: #090d0a;
  --dark: #111a13;
  --card: #ffffff;
  --text-desc: #666e66;
  --border: #e3e8e3;
  --shadow: 0 2px 10px rgba(0,0,0,.07);
  --shadow-hover: 0 8px 20px rgba(0,0,0,.14);
  --radius: 14px;
  --pill: 999px;
  --font-title: 'Montserrat', sans-serif;
  --tfast: .2s ease;
  --tmed: .3s ease;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 15px; }

/* ---------- Abertura ---------- */
#opening-banner {
  background: linear-gradient(90deg, #7d2b00, #d95b06 25%, #ff9d00 50%, #d95b06 75%, #7d2b00);
  border-bottom: 2px solid var(--gold-light);
}
.opening-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; min-height: 46px; padding: 6px 15px; text-align: center;
}
.opening-main {
  font-family: var(--font-title); font-size: 18px; font-weight: 900; font-style: italic;
  color: #fff; text-shadow: 0 2px 3px rgba(0,0,0,.5);
}
.opening-sub {
  font-family: var(--font-title); font-size: 14px; font-weight: 800; color: #2a1600;
  background: var(--gold); padding: 3px 12px; border-radius: var(--pill);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.opening-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25d366; color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; padding: 6px 12px; border-radius: var(--pill);
  transition: filter var(--tfast);
}
.opening-cta:hover { filter: brightness(1.08); }

/* ---------- Aviso de esboço ---------- */
#draft-banner {
  background: linear-gradient(90deg, #0a1f10, #173b20 55%, #0a1f10);
  border-bottom: 1px solid rgba(247,197,49,.35);
  color: #f0e7cd;
  font-size: 12px;
}
.draft-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 34px; text-align: center; flex-wrap: wrap;
  padding-top: 5px; padding-bottom: 5px;
}
.draft-tag {
  background: var(--gold); color: #1a1300; font-family: var(--font-title);
  font-weight: 800; font-size: 10px; letter-spacing: .8px;
  padding: 3px 9px; border-radius: var(--pill); text-transform: uppercase;
}

/* ---------- Header ---------- */
#banner-topo {
  background: radial-gradient(circle at 50% -60%, #1d3b24 0%, var(--black) 62%);
  border-bottom: 3px solid var(--gold);
  padding: 16px 0;
}
.header-inner { display: flex; align-items: center; gap: 22px; }

.brand {
  flex-shrink: 0; width: 205px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--tfast);
}
.brand:hover { transform: scale(1.04); }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 4px 9px rgba(0,0,0,.65)); }

.store-info { flex: 1; min-width: 0; }
.store-top-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.store-info h1 {
  font-family: var(--font-title); font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: .5px;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.badge-status-open { background: var(--green); color: #fff; }
.badge-status-closed { background: #b23b3b; color: #fff; }
.badge-opening { background: linear-gradient(135deg, #ff9d00, var(--gold)); color: #241a00; }
.badge-reserve { background: #25d366; color: #fff; }
.badge-reserve:hover { filter: brightness(1.08); }
.badge-draft { background: var(--gold); color: #241a00; }
.badge-petisco { background: #243a29; color: var(--gold-light); border: 1px solid #3c583f; }
.store-meta { font-size: 12px; color: #bfc8bf; margin-top: 4px; }
.store-meta strong { color: var(--gold-light); }
.store-contacts {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #e6ece6; margin-top: 5px;
}
.store-contacts i { color: var(--gold); margin-right: 4px; }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Barra de informação ---------- */
#info-bar { background: var(--green); padding: 7px 15px; text-align: center; }
#info-bar p { font-size: 12px; font-weight: 600; color: #fff; margin: 0; }
#info-bar i { margin-right: 6px; }

/* ---------- Navegação ---------- */
#category-nav {
  background: #fff; padding: 10px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-bottom: 2px solid var(--gold);
}
.categ-carousel { display: flex; align-items: center; gap: 6px; }
.categ-arrow { background: transparent; color: #9aa39a; font-size: 24px; padding: 2px 7px; flex-shrink: 0; }
.categ-arrow:hover { color: var(--green-dark); }
.categ-list-wrapper { overflow: hidden; flex: 1; }
.categ-list {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.categ-list::-webkit-scrollbar { display: none; }
.categ-item {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--pill);
  font-family: var(--font-title); font-size: 12px; font-weight: 700;
  color: #445046; background: #eef2ee; white-space: nowrap; user-select: none;
  transition: all var(--tfast);
}
.categ-item:hover, .categ-item.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1c1500; box-shadow: 0 3px 10px rgba(217,155,9,.35);
}

/* ---------- Conteúdo ---------- */
#main-content { padding: 6px 0 100px; }
.category-section { margin-bottom: 28px; scroll-margin-top: 120px; }
.category-title {
  font-family: var(--font-title); font-size: 21px; font-weight: 800;
  color: var(--dark); text-align: center; margin: 28px 0 6px; position: relative;
}
.category-title::after {
  content: ''; display: block; width: 46px; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  margin: 9px auto 0; border-radius: 2px;
}
.category-notice {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-align: center; font-size: 12px; color: #5d685d;
  background: #eaf4ed; border: 1px solid #cfe6d7;
  border-radius: var(--pill); padding: 7px 14px; margin: 0 auto 16px;
  max-width: 720px;
}
.category-notice i { color: var(--green); }

/* ---------- Cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
  position: relative; overflow: hidden;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px;
  cursor: pointer; min-height: 138px;
  transition: transform var(--tfast), box-shadow var(--tfast);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
  background: linear-gradient(180deg, var(--green), var(--gold));
  transition: height var(--tmed); border-radius: 0 2px 2px 0;
}
.product-card:hover::before { height: 100%; }
.product-emoji {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; align-self: center;
  background: radial-gradient(circle at 30% 25%, #e8f7ec, #c8e9d3);
  border: 2px solid rgba(18,161,80,.25);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.6);
  transition: transform var(--tmed);
}
.product-card:hover .product-emoji { transform: scale(1.08) rotate(-4deg); }
.product-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.product-header { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.product-name {
  font-family: var(--font-title); font-size: 14px; font-weight: 800;
  color: #1d241d; line-height: 1.3;
}
.tag-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  background: #fff4d6; color: #8a5f00; border: 1px solid #f3d98c;
  padding: 2px 7px; border-radius: var(--pill); white-space: nowrap;
}
.product-desc {
  font-size: 12px; color: var(--text-desc); line-height: 1.45; margin: 5px 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
}
.price-tbd {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-title); font-size: 12px; font-weight: 800;
  color: var(--green-dark); background: #eaf4ed;
  border: 1px dashed #9bcfae; padding: 4px 10px; border-radius: var(--pill);
}
.btn-add {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 13px; border-radius: var(--pill);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #261c00; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .3px; flex-shrink: 0; transition: all var(--tfast);
}
.btn-add:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(217,155,9,.35); }
.btn-add i { font-size: 11px; }
.no-results { text-align: center; color: #788; padding: 40px 0; font-size: 14px; }

/* ---------- Rodapé ---------- */
#footer-site { background: var(--black); color: #9aa59a; padding: 30px 0 90px; text-align: center; }
.footer-content { font-size: 12px; line-height: 1.8; }
.footer-brand {
  font-family: var(--font-title); font-size: 18px; font-weight: 900; font-style: italic;
  color: var(--gold); margin-bottom: 6px;
}
.footer-brand span { font-size: 10px; font-style: normal; color: #7d8b7d; }
.footer-note { color: #667466; font-size: 11px; }

/* ---------- Barra inferior ---------- */
#bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 66px;
  background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.1);
  z-index: 1000; display: flex; align-items: center; padding: 9px 0;
  border-top: 2px solid var(--green);
}
.bottom-inner {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 15px;
}
.btn-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: var(--pill); flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #241a00; font-family: var(--font-title); font-size: 14px; font-weight: 800;
  transition: all var(--tfast);
}
.btn-cart:hover { transform: scale(1.03); box-shadow: 0 4px 14px rgba(217,155,9,.4); }
.cart-count { font-size: 12px; opacity: .75; }
.search-container { flex: 1; position: relative; }
.search-container input {
  width: 100%; height: 44px; border-radius: var(--pill);
  border: 1px solid var(--border); padding: 0 42px 0 16px;
  font-size: 13px; color: #222; background: #fafbfa; transition: border-color var(--tfast);
}
.search-container input:focus { border-color: var(--green); }
.btn-search {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 14px;
}
.btn-wa-bar {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: #25d366; color: #fff; font-size: 18px;
}

/* ---------- WhatsApp flutuante ---------- */
.btn-floating {
  position: fixed; right: 18px; bottom: 82px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.5);
  transition: transform var(--tfast);
}
.btn-floating:hover { transform: scale(1.08); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px);
  background: var(--dark); color: #fff; padding: 10px 18px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity var(--tmed), transform var(--tmed); box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modais ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(5,10,6,.72); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-card {
  width: 100%; max-width: 480px; background: #fff; border-radius: 18px;
  max-height: 92vh; overflow-y: auto; position: relative;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  animation: popIn .22s ease-out;
}
@keyframes popIn { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(100deg, var(--dark), #1b2d1f); color: #fff;
}
.modal-header h3 { font-family: var(--font-title); font-size: 17px; font-weight: 800; }
.modal-price { font-family: var(--font-title); font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: var(--gold); font-size: 20px; line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,.22); }
.modal-body { padding: 18px 22px; }
.modal-body p { font-size: 13px; color: var(--text-desc); line-height: 1.6; }
.modal-body .draft-hint {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f2d996; color: #7a5c11;
  border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-top: 12px;
}
.modal-footer {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px 20px; border-top: 1px solid var(--border);
}
.modal-product-footer { justify-content: space-between; }
.product-qty-selector { display: flex; align-items: center; gap: 8px; }
.btn-qty {
  width: 34px; height: 34px; border-radius: 50%; background: #eef2ee;
  color: var(--green-dark); font-size: 18px; font-weight: 700; line-height: 1;
}
.btn-qty:hover { background: #dce9df; }
.product-qty-val { font-family: var(--font-title); font-weight: 800; min-width: 20px; text-align: center; }
.btn-add-order, .btn-checkout-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--pill);
  font-family: var(--font-title); font-size: 13px; font-weight: 800;
  transition: all var(--tfast);
}
.btn-add-order {
  flex: 1; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #241a00;
}
.btn-add-order:hover { filter: brightness(1.05); }
.btn-checkout-whatsapp { width: 100%; background: #25d366; color: #fff; }
.btn-checkout-whatsapp:hover { background: #1ebe5d; }
.btn-checkout-whatsapp:disabled { background: #b8c2b8; cursor: not-allowed; }
.obs-label { display: block; font-family: var(--font-title); font-size: 12px; font-weight: 800; margin: 16px 0 6px; }
.obs-input {
  width: 100%; min-height: 72px; resize: vertical;
  border: 1px solid var(--border) !important; border-radius: 10px;
  padding: 10px 12px; font-size: 13px; background: #fafbfa;
}
.obs-input:focus { border-color: var(--green) !important; }

/* Carrinho */
.cart-header { background: linear-gradient(100deg, var(--green-dark), var(--green)); }
.cart-total-badge { font-family: var(--font-title); font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; }
.cart-empty { text-align: center; padding: 26px 10px; }
.cart-empty .empty-icon { font-size: 42px; margin-bottom: 8px; }
.cart-empty p { font-size: 13px; color: var(--text-desc); }
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-emoji {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: #eaf4ed;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-title); font-size: 13px; font-weight: 800; }
.cart-item-meta { font-size: 11px; color: var(--text-desc); }
.cart-item-qty { font-family: var(--font-title); font-size: 12px; font-weight: 800; color: var(--green-dark); white-space: nowrap; }
.btn-remove {
  background: transparent; color: #b34a4a; font-size: 18px; line-height: 1; padding: 0 2px;
}
.cart-note {
  background: #fff8e6; border: 1px solid #f2d996; color: #7a5c11;
  border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-top: 14px;
}
.cart-footer { flex-direction: column; }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  .brand { width: 150px; }
  .header-inner { gap: 12px; }
  .store-info h1 { font-size: 19px; }
  .opening-main { font-size: 15px; }
  .opening-sub { font-size: 12px; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 118px; }
  .products-grid { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
  .brand { width: 110px; }
  .store-contacts { gap: 10px; font-size: 11px; }
  .store-meta { font-size: 11px; }
  #info-bar p { font-size: 11px; }
  .opening-main { font-size: 14px; }
  .opening-sub { font-size: 11px; }
  .opening-cta { font-size: 10px; padding: 5px 9px; }
  .btn-cart { padding: 0 16px; min-width: 0; }
  .btn-cart span:not(.cart-count) { display: none; }
  .btn-wa-bar { display: flex; }
  .btn-floating { display: none; }
  .toast { bottom: 78px; }
  .category-title { font-size: 19px; }
}
