/* ================================================================
   BORCELLE HAMBURGUERS — Custom Styles
   Tailwind CDN complementar: animações, componentes e utilitários
   ================================================================ */

/* ── Fonte base ───────────────────────────────────────────────── */
body { font-family: 'Inter', sans-serif; }

/* ── Scrollbar global ─────────────────────────────────────────── */
::-webkit-scrollbar            { width: 5px; height: 5px; }
::-webkit-scrollbar-track      { background: #09090b; }
::-webkit-scrollbar-thumb      { background: #3f3f46; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover{ background: #E87C00; }

.scrollbar-hide                { -ms-overflow-style:none; scrollbar-width:none; }
.scrollbar-hide::-webkit-scrollbar { display:none; }

/* ════════════════════════════════════════════════════════════════
   BOTÃO BRAND
   ════════════════════════════════════════════════════════════════ */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #E87C00;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease;
  border: none;
  text-decoration: none;
}
.btn-brand:hover  { background-color: #FF8C1A; box-shadow: 0 8px 24px rgba(232,124,0,.35); }
.btn-brand:active { transform: scale(.97); }

/* ════════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════════ */
#navbar { background: transparent; }

#navbar.scrolled {
  background: rgba(9,9,11,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(63,63,70,.5);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.nav-link {
  display: inline-block;
  color: #a1a1aa;
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: .6rem;
  text-decoration: none;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }

.nav-pill {
  display: inline-block;
  color: #a1a1aa;
  font-size: .78rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: 99px;
  border: 1px solid rgba(63,63,70,.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
  flex-shrink: 0;
}
.nav-pill:hover { color: #E87C00; border-color: #E87C00; }

/* ════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════════════════════════════════════ */
.section-header  { text-align: center; margin-bottom: 3rem; }

.section-tag {
  display: inline-block;
  background: rgba(232,124,0,.12);
  color: #E87C00;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .85rem;
  border-radius: 99px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: .05em;
  line-height: 1;
  margin-bottom: .75rem;
  color: #fff;
}

.section-desc {
  color: #71717a;
  font-size: .95rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   PRODUCT GRID
   ════════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

/* Grid especial para bebidas (colunas menores) */
.product-grid-drink {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

/* ════════════════════════════════════════════════════════════════
   PRODUCT CARD
   ════════════════════════════════════════════════════════════════ */
.p-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  cursor: default;
}
.p-card:hover {
  border-color: #E87C00;
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(232,124,0,.18);
}

.p-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.p-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.p-card:hover .p-card-img { transform: scale(1.07); }

/* Drink cards: imagem mais quadrada, com padding e bg escuro */
.p-card.drink .p-card-img {
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #1c1c1e;
  padding: 1.25rem .75rem;
}

.p-card-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: #E87C00;
  color: #000;
  font-size: .65rem;
  font-weight: 800;
  padding: .25rem .6rem;
  border-radius: 99px;
  letter-spacing: .03em;
  z-index: 1;
  line-height: 1.4;
}

.p-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p-card-name {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  margin-bottom: .35rem;
  color: #f4f4f5;
}
.p-card-desc {
  color: #71717a;
  font-size: .78rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: .8rem;
}
.p-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.p-card-price {
  color: #E87C00;
  font-weight: 800;
  font-size: 1.05rem;
}
.p-card-btn {
  background: #E87C00;
  color: #000;
  font-weight: 700;
  font-size: .78rem;
  padding: .5rem .9rem;
  border-radius: .5rem;
  border: none;
  cursor: pointer;
  transition: background .18s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.p-card-btn:hover  { background: #FF8C1A; }
.p-card-btn:active { transform: scale(.95); }
.p-card-btn.added  { background: #22c55e !important; color: #fff; }

/* ════════════════════════════════════════════════════════════════
   REVIEW CARD
   ════════════════════════════════════════════════════════════════ */
.review-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color .2s;
}
.review-card:hover { border-color: #3f3f46; }

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  color: #fff;
  flex-shrink: 0;
}

.stars { color: #FBBF24; font-size: 1rem; letter-spacing: .05em; }

.review-text {
  color: #a1a1aa;
  font-size: .82rem;
  line-height: 1.6;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════════
   FORMULÁRIO (CHECKOUT)
   ════════════════════════════════════════════════════════════════ */
.form-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: #a1a1aa;
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-input {
  width: 100%;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: .625rem;
  padding: .65rem .9rem;
  color: #f4f4f5;
  font-size: .88rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  border-color: #E87C00;
  box-shadow: 0 0 0 3px rgba(232,124,0,.15);
}
.form-input::placeholder { color: #52525b; }
.form-input[readonly] {
  background: #1c1c1e;
  color: #71717a;
  cursor: not-allowed;
}

/* ════════════════════════════════════════════════════════════════
   BOTÃO DE PAGAMENTO
   ════════════════════════════════════════════════════════════════ */
.payment-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border-radius: .875rem;
  border: 1px solid;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-align: left;
}
.payment-btn:hover  { transform: translateY(-1px); }
.payment-btn:active { transform: scale(.98); }

/* ════════════════════════════════════════════════════════════════
   CART ITEM
   ════════════════════════════════════════════════════════════════ */
.cart-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #27272a;
  border-radius: .75rem;
  padding: .7rem;
}
.cart-item-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: .5rem;
  flex-shrink: 0;
  background: #18181b;
}
.cart-item-info  { flex: 1; min-width: 0; }
.cart-item-name  {
  font-weight: 600;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f4f4f5;
  line-height: 1.3;
}
.cart-item-price { color: #E87C00; font-size: .8rem; font-weight: 700; margin-top: .15rem; }

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #52525b;
  background: #3f3f46;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}
.qty-btn:hover {
  background: #E87C00;
  border-color: #E87C00;
  color: #000;
}

/* ════════════════════════════════════════════════════════════════
   MODAIS (GEO + UPSELL)
   ════════════════════════════════════════════════════════════════ */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  text-align: center;
  position: relative;
}

.modal-icon-ring {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: .07em;
  margin-bottom: .35rem;
  color: #f4f4f5;
}
.modal-subtitle { color: #71717a; font-size: .85rem; margin-bottom: 1.1rem; }

.geo-pill {
  background: #27272a;
  border-radius: .875rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.geo-pill-label {
  font-size: .65rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .2rem;
}
.geo-pill-value { font-size: 1.5rem; font-weight: 800; }

/* ════════════════════════════════════════════════════════════════
   ANIMAÇÕES
   ════════════════════════════════════════════════════════════════ */

/* Entrada dos modais */
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1)  translateY(0);    }
}
.animate-modal-in {
  animation: modalIn .35s cubic-bezier(.34,1.56,.64,1) forwards;
}

/* Badge pulsante no carrinho */
@keyframes pulseBadge {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}
.pulse-badge { animation: pulseBadge 2s infinite; }

/* ── TOAST ────────────────────────────────────────────────────── */
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-110%); }
  to   { opacity: 1; transform: translateX(0);     }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0);     }
  to   { opacity: 0; transform: translateX(-110%); }
}

.toast {
  background: #1c1c1e;
  border: 1px solid #3f3f46;
  border-left: 3px solid #E87C00;
  border-radius: .8rem;
  padding: .8rem 1.1rem;
  font-size: .82rem;
  font-weight: 500;
  color: #e4e4e7;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: toastIn .4s cubic-bezier(.34,1.4,.64,1) forwards;
  pointer-events: auto;
  max-width: 280px;
  line-height: 1.45;
}
.toast.leaving {
  animation: toastOut .3s ease forwards;
}

/* ── FAB carrinho (bounce ao aparecer) ──────────────────────────*/
@keyframes fabBounce {
  0%   { transform: translateX(-50%) scale(.7); opacity: 0; }
  60%  { transform: translateX(-50%) scale(1.06); }
  100% { transform: translateX(-50%) scale(1);  opacity: 1; }
}
#cart-fab:not(.hidden) {
  animation: fabBounce .4s cubic-bezier(.34,1.56,.64,1) forwards;
}

/* ════════════════════════════════════════════════════════════════
   UTILITÁRIOS EXTRAS
   ════════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
