/* ==========================================================================
   DISTRIBUIDORA FOX — TEMA DARK MOBILE-FIRST (PALETA DO LOGO DA RAPOSA)
   Todas as cores centralizadas em :root para fácil personalização.
   ========================================================================== */
:root {
  /* Fundos */
  --bg-primary: #0B0D1A;
  --bg-secondary: #14172B;
  --bg-card: #161A30;
  --bg-card-hover: #1D2240;
  --bg-surface-deep: #101426;
  --bg-drawer: #111528;

  /* Bordas e brilho */
  --border-card: #2A2F52;
  --border-silver: #9BA5CA;
  --accent-glow: #6C63FF;

  /* Destaque principal (vermelho do logo) */
  --accent-red: #E5383B;
  --accent-red-hover: #FF4D4F;
  --accent-price: #FF5C5F;

  /* Textos (contraste >= 4.5:1) */
  --text-primary: #FFFFFF;
  --text-light: #E8ECF8;
  --text-secondary: #AEB6D6;

  /* Status e ações auxiliares */
  --status-open: #4ADE80;
  --status-closed: #FF6B6B;
  --pix-key-color: #FFB74D;
  --pix-btn-bg: #16A34A;
  --pix-btn-hover: #15803D;
  --whatsapp-green: #22C55E;
  --danger-color: #FF6B6B;

  /* Dimensões e raios */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --tap-min: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Scrollbars discretas no tema escuro */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 13, 26, 0.4);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background-color: rgba(174, 182, 214, 0.35);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(229, 56, 59, 0.65);
}

/* Evita zoom automático no iOS */
input,
select,
textarea {
  font-size: 16px !important;
  font-family: inherit;
}

/* ==========================================================================
   APP SHELL (MOBILE-FIRST: 360px–430px -> DESKTOP)
   ========================================================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  overflow-x: hidden;
  background: transparent;
}

@media (min-width: 640px) {
  .app-shell {
    max-width: 960px;
    padding: 0 20px;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    max-width: 1120px;
    padding: 0 24px;
  }
}

/* ==========================================================================
   HEADER WITH FOX COVER & GLOWING LOGO
   ========================================================================== */
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 72px;
  align-items: start;
  padding: 12px 12px 10px;
  margin: 0 -12px;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}

@media (min-width: 640px) {
  .site-header {
    margin: 0 -20px;
    padding: 14px 20px 10px;
    border-radius: 0 0 16px 16px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    margin: 0 -24px;
    padding: 16px 24px 12px;
  }
}

/* Capa escura da raposa no topo do header */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(
      180deg,
      rgba(11, 13, 26, 0.55) 0%,
      rgba(11, 13, 26, 0.92) 100%
    ),
    url('../assets/logo-fox.png');
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(108, 99, 255, 0.3);
  z-index: 0;
}

.header-left,
.header-center,
.header-right {
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  align-items: center;
}

/* Botão hambúrguer (>= 44x44px) */
.menu__btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(22, 26, 48, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu__btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
}

.menu__btn:hover,
.menu__btn:focus-visible {
  background: var(--accent-red);
  border-color: var(--accent-red-hover);
  box-shadow: 0 0 12px rgba(229, 56, 59, 0.45);
  outline: none;
}

/* Centro: Logo da raposa + Título + Horário */
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  padding-top: 2px;
}

.logo-card {
  width: 96px;
  height: 96px;
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 4px;
  border: 1.5px solid rgba(108, 99, 255, 0.55);
  box-shadow:
    0 0 18px rgba(229, 56, 59, 0.32),
    0 0 30px rgba(108, 99, 255, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .logo-card {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.store-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.store-hours {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.25;
}

.status-open-icon {
  color: var(--status-open);
  font-size: 13px;
}

.status-open-text {
  color: var(--status-open);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-closed-icon,
.status-closed-text {
  color: var(--status-closed);
  font-weight: 700;
}

.spHorarioFuncionamento {
  color: var(--text-light);
  font-weight: 600;
}

/* Botão Carrinho no Header (>= 44px) */
.header-right {
  display: flex;
  justify-content: flex-end;
}

.cart-header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  background: rgba(22, 26, 48, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-header-btn:hover,
.cart-header-btn:focus-visible {
  background: var(--bg-card-hover);
  border-color: var(--accent-red);
  box-shadow: 0 0 12px rgba(229, 56, 59, 0.35);
  outline: none;
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-red);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.cart-total-label {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   SLIDE-OUT DRAWER (MENU LATERAL)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.menu__box {
  position: fixed;
  top: 0;
  left: 0;
  width: 310px;
  max-width: 84vw;
  height: 100%;
  background-color: var(--bg-drawer);
  border-right: 1px solid var(--border-card);
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.6);
  z-index: 950;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.menu__box.open {
  transform: translateX(0);
}

.menu__header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--border-card);
}

.menu__close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu__close:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.menu__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu__item {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.menu__item i {
  font-size: 20px;
  width: 28px;
  text-align: center;
  color: var(--accent-price);
}

.menu__item:hover {
  background-color: var(--bg-card);
  border-color: var(--border-card);
}

/* ==========================================================================
   MAIN CONTENT & VIEWS (COM MARCA D'ÁGUA DISCRETA DA RAPOSA)
   ========================================================================== */
.main-content {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Raposa muito discreta no fundo para não comprometer nenhuma letra */
.main-content::before {
  content: '';
  position: absolute;
  top: 56%;
  left: 50%;
  width: min(320px, 70vw);
  height: min(320px, 70vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-image: url('../assets/logo-fox.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0) 70%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 42%, rgba(0, 0, 0, 0) 70%);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.view-section {
  position: relative;
  z-index: 1;
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.view-section.active {
  display: flex;
}

/* ==========================================================================
   SEARCH BAR (ALTURA MÍNIMA 48px, BORDA VERMELHA AO FOCAR)
   ========================================================================== */
.search-wrapper {
  margin: 6px 0 12px;
  flex-shrink: 0;
}

.grupoPesquisa {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: stretch;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grupoPesquisa:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(229, 56, 59, 0.25);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.grupoPesquisa input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 14px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-transform: uppercase;
  outline: none;
}

.grupoPesquisa input[type="text"]::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}

.btn-clear-search {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-clear-search:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.grupoPesquisa button[type="submit"] {
  min-width: 54px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent-red);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.grupoPesquisa button[type="submit"]:hover,
.grupoPesquisa button[type="submit"]:focus-visible {
  background: var(--accent-red-hover);
  outline: none;
}

/* ==========================================================================
   CATEGORY PILLS (PÍLULAS COM SCROLL HORIZONTAL SUAVE)
   ========================================================================== */
.containerGeralGrupos {
  flex-shrink: 0;
  margin-bottom: 10px;
}

.containerGrupos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  width: 100%;
}

.containerGrupos::-webkit-scrollbar {
  height: 5px;
}

.containerGrupos::-webkit-scrollbar-track {
  background: rgba(22, 26, 48, 0.7);
  border-radius: 999px;
}

.containerGrupos::-webkit-scrollbar-thumb {
  background-color: rgba(174, 182, 214, 0.45);
  border-radius: 999px;
}

.btn-grupo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 10px 18px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-silver);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.btn-grupo span {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .btn-grupo span {
    font-size: 15px;
  }
}

.btn-grupo:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-glow);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.25);
}

.btn-grupo.grupoAtivo {
  background-color: var(--accent-red);
  border-color: var(--accent-red-hover);
  box-shadow: 0 4px 14px rgba(229, 56, 59, 0.42);
}

.btn-grupo.grupoAtivo:hover {
  background-color: var(--accent-red-hover);
}

.btn-grupo.grupoAtivo span {
  color: var(--text-primary);
}

.search-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px 10px;
  font-size: 13.5px;
  color: var(--text-light);
  flex-shrink: 0;
}

.btn-link-reset {
  min-height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  color: var(--accent-price);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 14px;
  white-space: nowrap;
}

.btn-link-reset:hover {
  border-color: var(--accent-red);
}

/* ==========================================================================
   PRODUCT LIST — CARDS EM COLUNA ÚNICA (MOBILE-FIRST)
   ========================================================================== */
.products-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px 10px;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.produto-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.produto-row:hover,
.produto-row:focus-visible {
  background-color: var(--bg-card-hover);
  border-color: rgba(108, 99, 255, 0.65);
  box-shadow: 0 4px 18px rgba(108, 99, 255, 0.14);
  outline: none;
}

.produto-img-col {
  width: 84px;
  height: 84px;
  background-color: var(--bg-surface-deep);
  border: 1px solid rgba(42, 47, 82, 0.9);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.imgProduto {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* Placeholder "sem-imagem" escuro com ícone prata limpo (sem quadrado branco) */
.imgProduto[src*="sem-imagem"],
.modal-image-box img[src*="sem-imagem"],
.cart-item-img[src*="sem-imagem"] {
  filter: invert(1) brightness(1.55) contrast(0.9);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.produto-info-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pDescricaoProduto {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: break-word;
}

.pPrecoProduto {
  margin: 8px 0 0;
  color: var(--accent-price);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.pDescricaoAdicional_Observacao {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .produto-row {
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding: 14px 16px;
  }

  .produto-img-col {
    width: 96px;
    height: 96px;
  }

  .pDescricaoProduto {
    font-size: 17px;
  }

  .pPrecoProduto {
    font-size: 19px;
  }
}

.empty-products-box {
  margin: 24px 0;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   PAGINATION BAR (CONTADOR EM PRATA CLARO + BOTÕES >= 44px)
   ========================================================================== */
.pagination-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px 54px 10px 4px;
  flex-shrink: 0;
  background: rgba(11, 13, 26, 0.94);
  border-top: 1px solid var(--border-card);
}

.pag-col {
  display: flex;
  align-items: center;
}

.pag-left {
  justify-content: flex-start;
}

.pag-center {
  justify-content: center;
}

.pag-right {
  justify-content: flex-end;
}

.pag-info {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.pag-link {
  min-height: var(--tap-min);
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.pag-link:hover,
.pag-link:focus-visible {
  background: var(--accent-red);
  border-color: var(--accent-red-hover);
  outline: none;
}

/* ==========================================================================
   CART & ORDERS SUB-HEADERS
   ========================================================================== */
.tituloTela {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.btn-back {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  font-size: 18px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-back:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.titulo-texto {
  margin: 0;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Empty State */
.containerCarrinhoVazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 32px;
  padding: 28px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.empty-cart-illustration {
  margin-bottom: 12px;
  opacity: 0.9;
}

.infoCarrinhoVazio {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0 20px;
}

.btn-primary-fox {
  min-height: 48px;
  background-color: var(--accent-red);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-fox:hover {
  background-color: var(--accent-red-hover);
  box-shadow: 0 4px 16px rgba(229, 56, 59, 0.4);
}

/* ==========================================================================
   CART POPULATED VIEW (TEMA DARK CONSISTENTE)
   ========================================================================== */
.cart-populated {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.cart-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px 20px;
}

.cart-form-group {
  margin-bottom: 14px;
}

.cart-form-group label,
.delivery-address-box label,
.modal-note-box label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-control {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--text-primary);
  background-color: var(--bg-surface-deep);
  border: 1.5px solid var(--border-card);
  border-radius: 12px;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.9;
}

.form-control:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(229, 56, 59, 0.24);
}

.form-control[readonly] {
  background-color: var(--bg-card);
  color: var(--text-secondary);
}

.titulo-forma-entrega,
.titulo-forma-pagamento {
  text-align: center !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
  font-size: 15px !important;
  color: var(--text-primary) !important;
}

/* Delivery Cards */
.botoes-entrega {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.botaoTipoEntrega {
  width: 92px;
  height: 82px;
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  background-color: var(--bg-card);
  transition: all 0.2s ease;
  padding: 8px;
}

.botaoTipoEntrega i {
  font-size: 26px;
  margin-bottom: 6px;
}

.botaoTipoEntrega span {
  font-size: 13px;
  font-weight: 700;
}

.botaoTipoEntrega:hover {
  border-color: var(--accent-glow);
  background-color: var(--bg-card-hover);
}

.botaoTipoEntrega.selecionado {
  border-color: var(--accent-red-hover);
  background-color: var(--accent-red);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(229, 56, 59, 0.4);
}

/* Delivery Address Grid */
.delivery-address-box {
  margin: 14px 0 18px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-col {
  min-width: 0;
}

.col-12 { flex: 1 1 100%; }
.col-8 { flex: 2 1 66%; }
.col-6 { flex: 1 1 50%; }
.col-4 { flex: 1 1 34%; }

/* Payment Cards */
.icones-pagamento {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.item-pagamento {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 78px;
  background: transparent;
  border: none;
  padding: 0;
}

.icone-pagamento {
  width: 70px;
  height: 70px;
  border: 1.5px solid var(--border-card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-light);
  background: var(--bg-card);
  transition: all 0.2s ease;
  margin-bottom: 6px;
}

.item-pagamento:hover .icone-pagamento {
  border-color: var(--accent-glow);
  background-color: var(--bg-card-hover);
}

.item-pagamento.selecionado .icone-pagamento {
  border-color: var(--accent-red-hover);
  background-color: var(--accent-red);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(229, 56, 59, 0.4);
}

.rotulo-pagamento {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 700;
  text-align: center;
}

.item-pagamento.selecionado .rotulo-pagamento {
  color: var(--text-primary);
}

.payment-extra {
  max-width: 360px;
  margin: 16px auto 4px;
}

/* Pix Box */
.pix-container {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

.pix-linha {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pix-label {
  color: var(--text-light);
}

.pix-key {
  color: var(--pix-key-color);
  word-break: break-all;
}

.btn-copiar-pix {
  min-height: var(--tap-min);
  background-color: var(--pix-btn-bg);
  color: var(--text-primary);
  padding: 10px 26px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-copiar-pix:hover {
  background-color: var(--pix-btn-hover);
}

.btn-copiar-pix.copiado {
  background-color: var(--text-light) !important;
  color: var(--bg-primary);
}

/* Summary Box */
.order-summary-box {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-light);
}

.summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 2px;
}

.summary-total-row {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}

.summary-total-row span:last-child {
  color: var(--accent-price);
}

.divisorResumo {
  border: none;
  height: 1px;
  background: var(--border-card);
  margin: 0;
}

.divisorResumo.hrColorido {
  height: 2px;
  background: var(--accent-red);
}

/* Cart Items */
.cart-items-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: var(--bg-surface-deep);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.cart-item-title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
}

.cart-item-price {
  margin: 0;
  color: var(--accent-price);
  font-size: 16px;
  font-weight: 700;
}

.cart-item-obs {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-style: italic;
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.btn-remove-item {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--danger-color);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-item:hover {
  background: var(--accent-red);
  color: var(--text-primary);
  border-color: var(--accent-red);
}

/* Sticky Cart Footer (espaço lateral no mobile para não sobrepor o WhatsApp) */
.cart-footer-action {
  padding: 12px 54px 14px 0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(11, 13, 26, 0.94);
  border-top: 1px solid var(--border-card);
}

@media (min-width: 700px) {
  .cart-footer-action {
    padding: 12px 0 14px;
  }
}

.btn-finalizar {
  width: 100%;
  max-width: 560px;
  min-height: 50px;
  background-color: var(--accent-red);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(229, 56, 59, 0.38);
  transition: background-color 0.2s ease;
}

.btn-finalizar:hover {
  background-color: var(--accent-red-hover);
}

/* ==========================================================================
   ORDERS VIEW (MEUS PEDIDOS)
   ========================================================================== */
.orders-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 2px 20px;
}

.order-card {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--bg-card);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 10px;
}

.order-number {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.order-date {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.order-badge {
  background: rgba(229, 56, 59, 0.2);
  border: 1px solid rgba(255, 92, 95, 0.45);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.order-items-ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  color: var(--text-light);
}

.order-items-ul li {
  padding: 4px 0;
}

.order-meta {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.btn-resend-whats {
  min-height: var(--tap-min);
  background: var(--pix-btn-bg);
  color: var(--text-primary);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-resend-whats:hover {
  background: var(--pix-btn-hover);
}

.orders-footer-action {
  padding: 10px 0 14px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.btn-voltar-orders {
  min-height: var(--tap-min);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-voltar-orders:hover {
  border-color: var(--accent-red);
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65);
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  position: relative;
  padding: 16px 56px 14px 18px;
  border-bottom: 1px solid var(--border-card);
  text-align: left;
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.35;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: var(--bg-surface-deep);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.modal-image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  max-height: 230px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-surface-deep);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.modal-image-box img {
  max-width: 100%;
  max-height: 204px;
  object-fit: contain;
}

.modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.modal-product-name {
  margin: 0;
  color: var(--text-primary);
  font-size: 15.5px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
}

.modal-product-price {
  margin: 0;
  color: var(--accent-price);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.modal-product-obs {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--bg-surface-deep);
  border-left: 3px solid var(--accent-red);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 13.5px;
}

.modal-note-box {
  margin-top: 12px;
}

.modal-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-card);
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 10px;
  align-items: stretch;
  background: rgba(11, 13, 26, 0.5);
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 1.5px solid var(--border-card);
  border-radius: 12px;
  padding: 4px 8px;
  background: var(--bg-surface-deep);
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover:not(:disabled) {
  color: var(--accent-price);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.btn-add-modal {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--accent-red);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-add-modal:hover {
  background-color: var(--accent-red-hover);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (>= 44x44px)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 12px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #109F4C;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
}

/* ==========================================================================
   TOASTS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 92vw;
  pointer-events: none;
}

.toast-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  animation: toastSlideIn 0.2s ease;
}

.toast-item.success {
  background: var(--pix-btn-bg);
  border-color: var(--status-open);
}

.toast-item.error {
  background: var(--accent-red);
  border-color: var(--accent-red-hover);
}

.toast-item.info {
  background: var(--bg-card-hover);
  border-color: var(--accent-glow);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
