/* ============================================================
   RESET GLOBAL & BASE
   ============================================================ */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;

}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #FFFFFF;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 160px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Remove a imagem de fundo do body */
  background: none;
  /* Ou defina uma cor de fallback */
  background-color: #1a1a1a;
  /* cor escura para contraste */

  /* Necessário para posicionar o pseudo-elemento relativo ao body */
  position: relative;
  z-index: 0;
}

/* Pseudo-elemento que servirá como fundo com blur */
body::before {
  content: '';
  position: fixed;
  /* ou absolute, mas fixed cobre a viewport inteira */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  /* fica atrás do conteúdo do body */

  /* A mesma imagem de fundo */
  background-image: url('../fundo.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;

  /* Aplica o desfoque */
  filter: blur(8px);
  /* ajuste o valor (px) conforme desejar */
  -webkit-filter: blur(8px);
  /* compatibilidade com Safari */

  /* Para garantir que o pseudo-elemento cubra toda a área */
  width: 100%;
  height: 100%;
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.fundo-t {
  background: rgba(73, 73, 73, 0.288);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.fundo-transparente {
  background: rgba(26, 25, 25, 0.726);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.082);
}


.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.borda-vermelha {
  border: 2px solid #D60000;
}

.borda-laranja {
  border: 2px solid #FF7A00;
}

.borda-branca {
  border: 2px solid #ffffff;
}

.bg-gradient-vermelho {
  background: linear-gradient(90deg, #D60000 0%, #990000 100%);
}

.bg-gradient-laranja {
  background: linear-gradient(90deg, #FF7A00 0%, #FF9500 100%);
}

.bg-gradient-verde {
  background: linear-gradient(90deg, #22C55E 0%, #16A34A 100%);
}

.icone-categoria {
  font-size: 32px;
  color: #999999;
  transition: all 0.2s ease;
}

.categoria-btn.active .icone-categoria {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(201, 201, 201, 0.5);
}

.pb-20 {
  padding-bottom: 5rem;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.loading-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spin-ring 1.5s linear infinite;
}

.loading-ring.outer {
  inset: 0;
  border-top-color: #FFB800;
  border-right-color: #FFB800;
  animation-duration: 1.2s;
}

.loading-ring.middle {
  inset: 10px;
  border-top-color: #FF7A00;
  border-left-color: #FF7A00;
  animation-duration: 1.6s;
  animation-direction: reverse;
}

.loading-ring.inner {
  inset: 20px;
  border-top-color: #D60000;
  border-bottom-color: #D60000;
  animation-duration: 1.0s;
}

.loading-core {
  position: absolute;
  inset: 30px;
  background: radial-gradient(circle, #FFB800 0%, #FF7A00 60%, #D60000 100%);
  border-radius: 50%;
  animation: pulse-core 1.5s ease-in-out infinite;
}

.loading-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.loading-subtitle {
  font-size: 13px;
  color: #888888;
  margin-bottom: 18px;
}

.loading-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888888;
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.loading-dot:nth-child(4) {
  animation-delay: 0.45s;
}

.loading-dot:nth-child(5) {
  animation-delay: 0.6s;
}

.loading-progress-wrapper {
  width: 200px;
  height: 4px;
  background: #2D2D2D;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFB800, #FF7A00, #D60000);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.loading-percentage {
  font-size: 11px;
  color: #888888;
  font-weight: 600;
}

/* ============================================================
   CARDS DE PRODUTOS (PECAS)
   ============================================================ */
.peca-card {
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.peca-card:active {
  transform: scale(0.97);
}

.peca-card.selecionada {
  border-color: #FFB800 !important;
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.2), inset 0 0 0 1px rgba(255, 184, 0, 0.3);
}

.peca-card .peca-img {
  transition: transform 0.3s ease;
}

.peca-card:hover .peca-img {
  transform: scale(1.08);
}

.peca-card.selecionada .peca-img {
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* ============================================================
   BOTÕES DE QUANTIDADE
   ============================================================ */
.btn-qtd {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-qtd:active {
  transform: scale(0.9);
}

.btn-qtd-minus {
  background: #3a3a3a;
  color: #fff;
}

.btn-qtd-minus:hover {
  background: #4a4a4a;
}

.btn-qtd-plus {
  background: linear-gradient(135deg, #D60000, #990000);
  color: #fff;
}

.btn-qtd-plus:hover {
  filter: brightness(1.2);
}

.btn-qtd:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.qtd-display {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

/* ============================================================
   SELEÇÃO DE TAMANHO
   ============================================================ */
.tamanho-option {
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.tamanho-option:active {
  transform: scale(0.96);
}

.tamanho-option.selecionado {
  border-color: #FFB800 !important;
  background: rgba(255, 184, 0, 0.12) !important;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.18);
}

.tamanho-option.selecionado .tamanho-check {
  opacity: 1;
  transform: scale(1);
}

.tamanho-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFB800;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s ease;
  font-weight: 700;
}

/* ============================================================
   BARRA DE PROGRESSO
   ============================================================ */
.progresso-barra {
  height: 8px;
  border-radius: 8px;
  background: #2D2D2D;
  overflow: hidden;
  position: relative;
}

.progresso-preenchimento {
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
}

.progresso-preenchimento.completo {
  animation: glow-pulse 1.5s ease-in-out infinite;
}

/* ============================================================
   BOTÃO ADICIONAR COMBO
   ============================================================ */
.btn-adicionar-combo {
  background: linear-gradient(135deg, #D60000, #990000);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-adicionar-combo:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(214, 0, 0, 0.4);
}

.btn-adicionar-combo:active:not(:disabled) {
  transform: scale(0.96);
  filter: brightness(0.9);
}

.btn-adicionar-combo:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(30%);
}

/* ============================================================
   TOAST DE NOTIFICAÇÃO
   ============================================================ */
.toast-notificacao {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A1A1A;
  border: 1px solid #FFB800;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.toast-notificacao.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notificacao.erro {
  border-color: #D60000;
  background: #1A0A0A;
}

/* ============================================================
   SLIDER / CARROSSEL
   ============================================================ */
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slider-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888888;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot.active {
  background-color: #FF7A00;
  width: 24px;
  border-radius: 4px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.slider-arrow:hover {
  background: rgba(214, 0, 0, 0.8);
}

.slider-arrow-left {
  left: 8px;
}

.slider-arrow-right {
  right: 8px;
}

.animate-pulse-add {
  animation: pulse-add 0.3s ease;
}

/* ============================================================
   DRAWERS (CARRINHO, CHECKOUT, PEDIDOS, NOTIFICAÇÕES)
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-carrinho {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #1A1A1A;
  z-index: 55;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-carrinho.active {
  transform: translateX(0);
}

.drawer-checkout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #1A1A1A;
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-checkout.active {
  transform: translateX(0);
}

.drawer-pedidos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #1A1A1A;
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-pedidos.active {
  transform: translateX(0);
}

.drawer-notificacoes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  background: #1A1A1A;
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
}

.drawer-notificacoes.active {
  transform: translateX(0);
}

.modal-status-pedido {
  z-index: 150;
}

/* ============================================================
   MODAIS GERAIS
   ============================================================ */
.modal-confirmacao-pedido {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-confirmacao-pedido.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal genérico (usado em outras partes) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #1A1A1A;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.ativo .modal-card {
  transform: translateY(0);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-carrinho {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #D60000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.badge-pulsar {
  animation: badge-pulse 2s infinite;
}

.badge-mais-pedido {
  background: #D60000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(214, 0, 0, 0.5);
}

.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ============================================================
   BUSCA / RESULTADOS
   ============================================================ */
.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1A1A1A;
  border-radius: 12px;
  margin-top: 6px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resultado-item {
  transition: background 0.2s;
}

.resultado-item:hover {
  background: rgba(255, 122, 0, 0.2);
}

/* ============================================================
   CARDS DE PRODUTO (CLICÁVEIS)
   ============================================================ */
.card-produto-clicavel {
  cursor: pointer;
}

.card-produto-clicavel .btn-adicionar-grade {
  cursor: pointer;
}

.card-produto-clicavel .card-imagem-wrapper {
  cursor: zoom-in;
}

/* ============================================================
   LIGHTBOX / ZOOM DA IMAGEM
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  touch-action: none;
  overflow: hidden;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.1s ease-out;
  will-change: transform;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 75;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(214, 0, 0, 0.8);
  border-color: #D60000;
}

.lightbox-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 75;
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 9999px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-controls button:hover {
  background: rgba(255, 122, 0, 0.6);
}

.lightbox-controls button:active {
  transform: scale(0.9);
}

.lightbox-info {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 75;
  color: #fff;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* ============================================================
   MODAL DE DETALHES DO PRODUTO
   ============================================================ */
.modal-detalhes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-detalhes-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-detalhes-card {
  background: #1A1A1A;
  border-radius: 1.5rem;
  border: 2px solid rgba(255, 122, 0, 0.4);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-detalhes-card::-webkit-scrollbar {
  display: none;
}

.modal-detalhes-overlay.active .modal-detalhes-card {
  transform: translateY(0) scale(1);
}

.modal-detalhes-imagem {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 0 0;
  cursor: zoom-in;
  transition: filter 0.2s ease;
}

.modal-detalhes-imagem:hover {
  filter: brightness(1.1);
}

.modal-detalhes-body {
  padding: 1.5rem;
}

.modal-detalhes-titulo {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.modal-detalhes-descricao {
  font-size: 13px;
  color: #888;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.modal-detalhes-detalhes {
  font-size: 11px;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-detalhes-preco {
  font-size: 28px;
  font-weight: 700;
  color: #FFB800;
  margin-bottom: 1.25rem;
}

.modal-detalhes-quantidade {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal-detalhes-quantidade button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2D2D2D;
  color: #fff;
  border: 2px solid #3D3D3D;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.modal-detalhes-quantidade button:hover {
  background: #D60000;
  border-color: #D60000;
}

.modal-detalhes-quantidade button.btn-qtd-mais:hover {
  background: #22C55E;
  border-color: #22C55E;
}

.modal-detalhes-quantidade span {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  min-width: 40px;
  text-align: center;
}

.modal-detalhes-btn-adicionar {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(90deg, #D60000 0%, #990000 100%);
  letter-spacing: 0.5px;
}

.modal-detalhes-btn-adicionar:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(214, 0, 0, 0.4);
}

.modal-detalhes-btn-adicionar.adicionado {
  background: linear-gradient(90deg, #22C55E 0%, #16A34A 100%);
}

.modal-detalhes-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-detalhes-close:hover {
  background: rgba(214, 0, 0, 0.8);
  border-color: #D60000;
}

.modal-detalhes-imagem-wrapper {
  position: relative;
}

.modal-detalhes-badge-destaque {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #D60000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(214, 0, 0, 0.5);
}

/* ============================================================
   BOTÃO WHATSAPP
   ============================================================ */
.btn-whatsapp-confirmacao {
  background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-whatsapp-confirmacao:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ============================================================
   MODAIS PWA (INSTALAÇÃO / NOTIFICAÇÕES)
   ============================================================ */
.modal-pwa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1rem;
}

.modal-pwa-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-pwa-card {
  background: #1A1A1A;
  border-radius: 1.5rem;
  border: 2px solid #FF7A00;
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-pwa-overlay.active .modal-pwa-card {
  transform: translateY(0) scale(1);
}

.modal-pwa-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 32px;
}

.modal-pwa-icon.install {
  background: rgba(255, 122, 0, 0.15);
  color: #FF7A00;
  border: 2px solid rgba(255, 122, 0, 0.4);
}

.modal-pwa-icon.notificacao {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 2px solid rgba(59, 130, 246, 0.4);
  animation: bell-ring 2s ease-in-out infinite;
}

.modal-pwa-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.modal-pwa-subtitle {
  font-size: 13px;
  color: #888888;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-pwa-botoes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-pwa-botoes button {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.modal-pwa-btn-primary {
  background: linear-gradient(90deg, #FF7A00 0%, #FF9500 100%);
  color: #FFFFFF;
}

.modal-pwa-btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.modal-pwa-btn-secondary {
  background: #2D2D2D;
  color: #888888;
  border: 1px solid #3D3D3D;
}

.modal-pwa-btn-secondary:hover {
  color: #FFFFFF;
  border-color: #555555;
}

.modal-pwa-dica {
  margin-top: 1rem;
  font-size: 11px;
  color: #666666;
  font-style: italic;
}

/* ============================================================
   DRAWER DO CARRINHO (VERSÃO ALTERNATIVA)
   ============================================================ */
.carrinho-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.carrinho-drawer-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

.carrinho-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #1A1A1A;
  z-index: 401;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.carrinho-drawer-overlay.ativo .carrinho-drawer {
  transform: translateX(0);
}

.carrinho-drawer-header {
  padding: 20px;
  border-bottom: 1px solid #2D2D2D;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carrinho-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.carrinho-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #2D2D2D;
  background: #111;
}

.carrinho-item {
  background: #2D2D2D;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carrinho-item-info {
  flex: 1;
  min-width: 0;
}

.carrinho-item-remover {
  color: #D60000;
  cursor: pointer;
  padding: 8px;
}

/* ============================================================
   CHECKBOX ADICIONAL / FILTRO
   ============================================================ */
.adicional-checkbox {
  accent-color: #FFB800;
}

.filtro-cat-btn i {
  margin-right: 6px;
}

/* ============================================================
   PEDIDOS
   ============================================================ */
.pedido-card {
  transition: all 0.2s ease;
}

.pedido-card:hover {
  border-color: #FFB800;
}

.btn-acao {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.btn-pedir-novamente {
  background: linear-gradient(135deg, #D60000, #990000);
  color: #fff;
}

.btn-pedir-novamente:hover {
  filter: brightness(1.2);
}

.btn-compartilhar {
  background: #2D2D2D;
  color: #FFB800;
  border: 1px solid #FFB800;
}

.btn-compartilhar:hover {
  background: #3D3D3D;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.tipo-option,
.payment-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.tipo-option.selecionado {
  border-color: #FFB800 !important;
  background: rgba(255, 184, 0, 0.12);
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.15);
}

.payment-option.selecionado {
  border-color: #FFB800 !important;
  background: rgba(255, 184, 0, 0.12);
}

input,
textarea {
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
}

.btn-confirmar {
  background: linear-gradient(135deg, #D60000, #990000);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  width: 100%;
}

.btn-confirmar:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(214, 0, 0, 0.4);
}

.btn-confirmar:active {
  transform: scale(0.96);
}

.btn-confirmar:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(30%);
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 640px) {
  .peca-card {
    border-radius: 14px;
  }

  .tamanho-option {
    padding: 12px 10px;
  }

  .btn-adicionar-combo {
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 10px;
  }

  .btn-qtd {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .qtd-display {
    font-size: 14px;
    min-width: 24px;
  }
}

@media (min-width: 1024px) {
  .peca-card {
    border-radius: 18px;
  }

  .grid-pecas {
    gap: 20px;
  }
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-core {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes dot-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-14px);
    opacity: 1;
  }
}

@keyframes glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  }

  50% {
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.9);
  }
}

@keyframes pulse-add {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(214, 0, 0, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(214, 0, 0, 0);
  }
}

@keyframes bell-ring {

  0%,
  100% {
    transform: rotate(0);
  }

  5%,
  15% {
    transform: rotate(15deg);
  }

  10%,
  20% {
    transform: rotate(-15deg);
  }

  25% {
    transform: rotate(0);
  }
}