:root {
  --brand-primary: #000000;
}

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Montserrat', Arial, sans-serif;
    }
/* Estilos para o popup de categorias */
.categories-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 11;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.categories-popup ul {
  list-style: none;
}

.categories-popup li {
  padding: 12px 20px;
  cursor: pointer;
  color: #333;
  text-align: center;
}

.categories-popup li:hover {
  background: #f0f0f0;
  color: var(--brand-primary);
}

.nav {
  position: relative; /* Adicione isso para o popup se posicionar corretamente */
}
.category-section {
  display: block; /* Garante que as seções são visíveis por padrão */
}
    body {
      background: #0a1623;
      color: #e5e7eb;
      position: relative;
      padding-bottom: 60px;
    }

    /* Tema claro aplicado cedo via html/body (evita FOUC) */
    html.light-theme,
    html.light-theme body,
    body.light-theme {
      background: #f5f5f5;
      color: #333;
    }

    body.light-theme {
      background: #f5f5f5;
      color: #333;
    }

    .header {
      position: relative;
      background: #0b1926;
      overflow: hidden;
    }

    html.light-theme .header,
    body.light-theme .header {
      background: white;
    }

    .header img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      display: block;
    }

    .badge {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #00c56d;
      color: white;
      font-size: 12px;
      padding: 3px 7px;
      border-radius: 10px;
    }

    .theme-switch {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 5;
    }
    .theme-switch .checkbox {
      opacity: 0;
      position: absolute;
    }
    .theme-switch .checkbox-label {
      background-color: #111;
      width: 54px;
      height: 28px;
      border-radius: 50px;
      position: relative;
      padding: 5px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid rgba(255,255,255,0.35);
    }
    .theme-switch .moon {
      color: #f1c40f;
      font-size: 12px;
      line-height: 1;
    }
    .theme-switch .sun {
      color: #f39c12;
      font-size: 12px;
      line-height: 1;
    }
    .theme-switch .checkbox-label .ball {
      background-color: #fff;
      width: 22px;
      height: 22px;
      position: absolute;
      left: 3px;
      top: 3px;
      border-radius: 50%;
      transition: transform 0.2s linear;
    }
    .theme-switch .checkbox:checked + .checkbox-label .ball {
      transform: translateX(26px);
    }

   

    .sair {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 12px;
      color: white;
      background: red;
      padding: 3px 7px;
      border-radius: 10px;
      cursor: pointer;
    }

    .perfil {
      text-align: center;
      padding: 25px 15px 15px;
      background: #0f1f2e;
      position: relative;
      margin: -40px 0 0;
      border-radius: 40px 40px 0 0;
      box-shadow: 0 10px 20px rgba(0,0,0,0.35);
      z-index: 1;
    }

    .perfil img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      display: block;
      margin: -70px auto 10px;
    }

    .perfil h2 {
      font-size: 20px;
      margin: 10px 0 5px;
      color: #e5e7eb;
    }

    body.light-theme .perfil {
      background: #fff;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    body.light-theme .perfil h2 {
      color: #333;
    }

    .icons {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin: 15px 0;
    }

    .icons span {
      font-size: 20px;
      cursor: pointer;
      color: var(--brand-primary);
    }

    .info {
      font-size: 14px;
      color: #777;
      text-align: center;
      line-height: 1.5;
      padding: 0 10px;
    }

    .nav {
      display: flex;
      justify-content: space-around;
      background: var(--brand-primary);
      color: white;
      padding: 12px 0;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .nav span {
      cursor: pointer;
      font-weight: bold;
      padding: 5px 10px;
      border-radius: 5px;
    }

    .nav span:hover {
      background: rgba(255,255,255,0.2);
    }

    .nav .chips-container {
      display: flex;
      gap: 8px;
      padding: 8px 12px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .nav .chips-container::-webkit-scrollbar {
      display: none;
    }

    .chip {
      flex: 0 0 auto;
      padding: 6px 12px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.6);
      background: rgba(255,255,255,0.15);
      color: #fff;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      user-select: none;
    }

    .chip:hover {
      background: rgba(255,255,255,0.25);
    }

    .chip.active {
      background: #ffffff;
      color: var(--brand-primary);
      border-color: #ffffff;
    }

    .pontos {
      text-align: center;
      padding: 12px;
      background: #e0fce3;
      font-size: 14px;
      color: green;
      font-weight: bold;
      border-bottom: 1px solid #d0f0d0;
    }

    /* Estilos para os produtos */
    .category-section {
      margin: 15px 0;
      background: #0b1926;
      border-radius: 10px;
      padding: 10px;
      box-shadow: 0 6px 16px rgba(0,0,0,0.25);
      border: 1px solid rgba(255,255,255,0.06);
    }

    .category-title {
      font-size: 18px;
      color: #e5e7eb;
      margin-bottom: 10px;
      padding-bottom: 5px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    body.light-theme .category-section {
      background: white;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      border: none;
    }
    body.light-theme .category-title {
      color: #333;
      border-bottom: 1px solid #eee;
    }

    
    /* Mobile-first: Layout de carrossel para dispositivos móveis */
.category-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.category-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Desktop: Layout em grid para telas maiores */
@media (min-width: 768px) {
  .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    overflow-x: visible;
    scroll-snap-type: none;
  }
}

    .card {
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .card-image {
      width: 100%;
      height: 120px;
      object-fit: cover;
    }

    .card-content {
      padding: 10px;
    }

    .card-title {
      font-size: 14px;
      margin-bottom: 5px;
      color: #333;
    }

    .card-price {
      font-size: 16px;
      color: green;
      font-weight: bold;
      margin-bottom: 8px;
    }

    .button {
      background: var(--brand-primary);
      color: white;
      border: none;
      padding: 8px 12px;
      border-radius: 5px;
      font-size: 14px;
      cursor: pointer;
      width: 100%;
    }

    /* Estilos para o carrinho */
    .cart {
      position: fixed;
      bottom: 50px;
      right: 20px;
      background: var(--brand-primary);
      color: white;
      width: 54px;
      height: 54px;
      padding: 0;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @media (max-width: 768px) {
      .carousel-control-prev,
      .carousel-control-next {
        display: none !important;
      }
    }
    .cart-icon{
      width: 28px;
      height: 28px;
      display: block;
      object-fit: contain;
      filter: brightness(0) invert(1);
    }
    .cart-count{
      position: absolute;
      top: -6px;
      left: 50%;
      transform: translateX(-50%);
      width: 22px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 12px;
      background: #ffffff;
      color: var(--brand-primary);
      border-radius: 999px;
      box-shadow: 0 8px 18px rgba(0,0,0,0.22);
      pointer-events: none;
    }

    .cart-content {
      position: fixed;
      bottom: 80px;
      right: 20px;
      width: 90%;
      max-width: 400px;
      max-height: 60vh;
      background: #0f1f2e;
      border-radius: 10px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.35);
      padding: 15px;
      z-index: 101;
      display: none;
      overflow-y: auto;
      border: 1px solid rgba(255,255,255,0.08);
    }

    body.light-theme .cart-content {
      background: white;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
      border: none;
    }

    .cart-content h3 {
      color: #e5e7eb;
      margin-bottom: 15px;
    }

    #cart-list {
      list-style: none;
      margin-bottom: 15px;
    }

    #cart-list li {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid #eee;
    }

    .button-excluir {
      background: #ff4444;
      color: #fff;
      border: none;
      width: 32px;
      height: 32px;
      padding: 0;
      border-radius: 8px;
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .button-excluir:hover {
      background: #e63b3b;
    }
    .button-excluir svg {
      width: 18px;
      height: 18px;
      fill: #ffffff;
      display: block;
    }

    .cart-total {
      font-weight: bold;
      text-align: right;
      margin-bottom: 15px;
    }

    .button-finalizar {
      background: #00c56d;
      color: white;
      border: none;
      padding: 10px;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
      width: 100%;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      z-index: 99;
      display: none;
    }

    /* Estilos para pedidos */
    .cookies {
      position: fixed;
      bottom: 50px;
      left: 20px;
      background: var(--brand-primary);
      color: white;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 15px;
      border-radius: 50px;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
      z-index: 100;
    }
    .cookies .cookies-icon{
      width: 18px;
      height: 18px;
      display: block;
      object-fit: contain;
      filter: brightness(0) invert(1);
    }

    .cookies-content {
      position: fixed;
      bottom: 80px;
      left: 20px;
      width: 90%;
      max-width: 400px;
      max-height: 60vh;
      background: #0f1f2e;
      color: #e5e7eb;
      border-radius: 10px;
      box-shadow: 0 12px 24px rgba(0,0,0,0.35);
      padding: 15px;
      z-index: 101;
      display: none;
      overflow-y: auto;
      border: 1px solid rgba(255,255,255,0.08);
    }

    body.light-theme .cookies-content {
      background: white;
      color: #111827;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
      border: none;
    }

    .cookies-title,
    .cookies-content h3 {
      color: #e5e7eb;
      margin-bottom: 15px;
      font-size: 1.2rem;
      font-weight: 600;
    }

    body.light-theme .cookies-title,
    body.light-theme .cookies-content h3 {
      color: #111827;
    }

    #cookies-list {
      list-style: none;
    }

    #cookies-list li {
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.18);
    }
    body.light-theme #cookies-list li {
      border-bottom: 1px solid #eee;
    }

    .generate-qr-btn {
      background: #00c56d;
      color: white;
      border: none;
      padding: 3px 8px;
      border-radius: 5px;
      font-size: 12px;
      cursor: pointer;
      margin-left: 10px;
    }

    /* Estilos para modais */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      display: none;
    }

    .modal.visible {
      display: flex;
    }

    .modal-content {
      background: #0f1f2e;
      padding: 20px;
      border-radius: 10px;
      width: 90%;
      max-width: 400px;
      text-align: center;
      color: #e5e7eb;
      border: 1px solid rgba(255,255,255,0.08);
    }

    body.light-theme .modal-content {
      background: white;
      color: #333;
      border: none;
    }

    .modal-content h2 {
      color: var(--brand-primary);
      margin-bottom: 15px;
    }

    .modal-content input {
      width: 100%;
      padding: 10px;
      margin: 10px 0;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 5px;
      background: #0b1926;
      color: #e5e7eb;
    }

    body.light-theme .modal-content input {
      border: 1px solid #ddd;
      background: #fff;
      color: #333;
    }

    .modal-content button {
      background: var(--brand-primary);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
      margin-top: 10px;
    }

    footer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      width: 100%;
      background: var(--brand-primary);
      color: white;
      text-align: center;
      padding: 10px 0;
      font-size: 12px;
      z-index: 50;
    }

   /* Estilos para o container principal */
/* Container principal com layout responsivo */
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 15px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .container {
    padding: 30px;
    gap: 30px;
  }
}

/* Estilos para cada seção de categoria */
.category-section {
  background: #0b1926;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
}

.category-title {
  font-size: 1.3em;
  color: #e5e7eb;
  margin-bottom: 15px;
  padding-left: 5px;
}

/* Estilos para o grid de produtos (agora horizontal) */
.category-grid {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scrollbar-width: none; /* Firefox */
  flex: 1; /* Faz o grid ocupar todo o espaço disponível entre os botões */
  position: relative;
}

.category-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Indicador de scroll horizontal para dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
  .category-grid::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
    pointer-events: none;
    opacity: 0.7;
    animation: pulse 1.5s infinite alternate;
  }
  
  @keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
  }
}

/* Estilos para os cards de produto */
/* Mobile-first: Cards com largura fixa para carrossel */
.card {
  flex: 0 0 150px;
  width: 150px;
  background: #0f1f2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Desktop: Cards responsivos para grid */
@media (min-width: 768px) {
  .card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

.card:hover {
  transform: scale(1.03);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-stock {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(17, 24, 39, 0.65);
  color: #e5e7eb;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
}

.badge-price {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f97316;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.card-content {
  padding: 10px;
  background: #0b1926;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.card-title {
  font-size: 14px;
  margin-bottom: 4px;
  white-space: normal;
  color: #e5e7eb;
  font-weight: 700;
}

.card-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 15px;
  font-weight: 700;
  color: #00c56d;
  margin-bottom: 10px;
}

.card-price {
  font-size: 16px;
  color: green;
  font-weight: bold;
  margin-bottom: 8px;
}

.button {
  background: #2b3648;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.button:hover {
  background: #334255;
}

/* Tema claro: ajustes para cards de produto */
body.light-theme .card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #eeeeee;
}
body.light-theme .card-content {
  background: #ffffff;
  border-top: 1px solid #eeeeee;
}
body.light-theme .card-title {
  color: #333333;
}
body.light-theme .card-desc {
  color: #555555;
}
body.light-theme .card-price {
  color: #111111;
}
body.light-theme .badge-stock {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}
body.light-theme .card .button {
  background: var(--brand-primary);
}

/* Dark: garantir preço branco com alta legibilidade */
body:not(.light-theme) .card-price {
  color: #ffffff;
}

/* Dark: botão Adicionar roxo (marca) */
body:not(.light-theme) .card .button {
  background: var(--brand-primary);
  color: #ffffff;
}
body:not(.light-theme) .card .button:hover {
  background: #7a1570;
}

/* Container do carrossel */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: visible;
}

.category-section {
  overflow: visible;
}

/* Botões de navegação do carrossel (estilo Mercado Livre) */
.carousel-nav,
.carousel-btn {
  position: absolute;
  top: 50%;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  z-index: 10;
  padding: 0;
  color: #333;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.carousel-nav svg {
  width: 28px;
  height: 28px;
}

.carousel-nav.prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.carousel-nav.next {
  right: 0;
  transform: translate(50%, -50%);
}

.carousel-nav.prev:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.carousel-nav.next:hover {
  transform: translate(50%, -50%) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Desktop: setas sempre disponíveis (sem depender de hover da section) */
@media (hover: hover) and (pointer: fine) {
  .carousel-nav {
    display: flex;
  }

  .carousel-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
}

/* Garante que as setas não apareçam em dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
  .carousel-nav {
    display: none !important;
  }

  /* Fade lateral tipo Netflix (sugere continuidade da lista) */
  .carousel-container::before,
  .carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    z-index: 5;
    pointer-events: none;
  }

  .carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #0b1926, transparent);
  }

  .carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #0b1926, transparent);
  }

  body.light-theme .carousel-container::before {
    background: linear-gradient(to right, #fff, transparent);
  }

  body.light-theme .carousel-container::after {
    background: linear-gradient(to left, #fff, transparent);
  }

  .category-grid {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 12px;
    padding-left: 4px;
    padding-right: 40px;
    gap: 12px;
  }

  .category-grid .card {
    flex: 0 0 min(62vw, 170px) !important;
    width: min(62vw, 170px) !important;
    scroll-snap-align: start;
  }

  .category-grid::after {
    display: none;
  }
}

/* Estilos para os indicadores de paginação */
.pagination-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 5px 0;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  display: inline-block;
}

.pagination-dot.active {
  background-color: var(--brand-primary);
  transform: scale(1.2);
}

/* Responsividade */
@media (min-width: 768px) {
  .card {
    width: 180px;
  }
  
  .card-image {
    height: 150px;
  }
}

/* Carrossel com "peek" do próximo produto (row tipo Netflix) */
.category-grid {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  gap: 14px;
  padding-right: 36px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-grid .card {
  scroll-snap-align: start;
  flex: 0 0 170px !important;
  width: 170px !important;
  max-width: none !important;
}

@media (min-width: 768px) {
  .category-grid {
    scroll-snap-type: x mandatory;
    padding-right: 40px;
  }

  .category-grid .card {
    flex: 0 0 220px !important;
    width: 220px !important;
  }
}

.cart-content.show,
.overlay.show {
  display: block;
}

.cart.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.cart-item-highlight {
  animation: highlight 1s;
}

@keyframes highlight {
  0% { background-color: #ffeb3b; }
  100% { background-color: transparent; }
}

/* Estilos para o modal de QR Code de pagamento */
#modal-qr-pagamento {
  width: 90%;
  max-width: 400px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  text-align: center;
}

#modal-qr-pagamento h3 {
  color: #333;
  margin-bottom: 15px;
}

#qrcode-container {
  margin: 20px auto;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  display: inline-block;
}

#qrcode-container img {
  display: block;
  margin: 0 auto;
}

#overlay-qr-pagamento {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}

/* Estilos para o modal de rastreamento */
.tracking-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 700px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.4s ease;
  backdrop-filter: blur(20px);
}

.tracking-header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 25px 30px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.header-text h2 {
  color: white;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.header-text p {
  color: rgba(255, 255, 255, 0.8);
  margin: 5px 0 0 0;
  font-size: 0.9rem;
}

.tracking-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tracking-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

.tracking-body {
  padding: 30px;
}

.tracking-controls {
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.tracking-input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.tracking-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.tracking-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-tracking {
  padding: 18px 30px;
  border: none;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.btn-start {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.5);
}

.btn-stop {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-stop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.5);
}

.btn-icon {
  font-size: 1.2rem;
}

.tracking-status {
  margin-bottom: 30px;
}

.status-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: white;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-icon {
  margin-right: 15px;
}

.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 15px currentColor;
}

.status-indicator.connected {
  background: #28a745;
  color: #28a745;
}

.status-indicator.disconnected {
  background: #dc3545;
  color: #dc3545;
}

.status-info {
  display: flex;
  flex-direction: column;
}

.status-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.status-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.map-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.auto-center-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

.map-header h3 {
  color: white;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.map-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  white-space: nowrap;
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.map-btn:nth-child(2) {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.map-btn:nth-child(2):hover {
  box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

.map-btn:nth-child(3) {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.map-btn:nth-child(3):hover {
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.map-btn:nth-child(4) {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a4e 100%);
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.map-btn:nth-child(4):hover {
  box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

@media (max-width: 768px) {
  .map-controls {
    justify-content: center;
  }
  
  .map-btn {
    font-size: 10px;
    padding: 5px 10px;
  }
}

.delivery-map {
  height: 350px;
  width: 100%;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
  overflow: hidden;
}

.location-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.info-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  color: white;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 8px;
  font-weight: 500;
}

.info-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.tracking-empty {
  text-align: center;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 50px 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.tracking-empty h3 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.tracking-empty p {
  margin: 0;
  opacity: 0.8;
  line-height: 1.6;
  font-size: 1rem;
}

/* Animações para notificações toast */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsividade para o modal de rastreamento */
@media (max-width: 768px) {
  .tracking-content {
    width: 98%;
    max-height: 98vh;
    margin: 1vh auto;
  }
  
  .tracking-header {
    padding: 20px;
  }
  
  .header-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
  
  .header-text h2 {
    font-size: 1.4rem;
  }
  
  .tracking-body {
    padding: 20px;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn-tracking {
    min-width: auto;
    width: 100%;
  }
  
  .delivery-map {
    height: 250px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .map-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* FORÇAR COR DO TÍTULO PEDIDOS - DARK MODE */
#cookies-content h3.cookies-title,
.cookies-content .cookies-title,
.cookies-content > h3 {
  color: #ffffff !important;
}

body.light-theme #cookies-content h3.cookies-title,
body.light-theme .cookies-content .cookies-title,
body.light-theme .cookies-content > h3 {
  color: #000000 !important;
}

#login-screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
}

.login-card {
  background: #0f1f2e;
  color: #e5e7eb;
  padding: 28px 24px;
  border-radius: 14px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  box-sizing: border-box;
}

body.light-theme .login-card {
  background: #fff;
  color: #333;
  border: none;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.login-avatar {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

body.light-theme .login-avatar {
  border-color: #eee;
  background: #f5f5f5;
}

.login-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: #e5e7eb;
  font-weight: 700;
}

body.light-theme .login-title {
  color: #333;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #0b1926;
  color: #e5e7eb;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
}

.login-input::placeholder {
  color: rgba(229,231,235,0.55);
}

.login-input:focus {
  border-color: var(--brand-primary);
}

body.light-theme .login-input {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

body.light-theme .login-input::placeholder {
  color: #999;
}

.password-field {
  position: relative;
  margin-bottom: 12px;
}

.password-field .login-input {
  margin-bottom: 0;
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: rgba(229,231,235,0.7);
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}

.toggle-pass .eye-closed {
  display: none;
}

.toggle-pass.is-visible .eye-open {
  display: none;
}

.toggle-pass.is-visible .eye-closed {
  display: block;
}

.toggle-pass:hover {
  color: #e5e7eb;
  background: rgba(255,255,255,0.06);
}

body.light-theme .toggle-pass {
  color: #666;
}

body.light-theme .toggle-pass:hover {
  color: #333;
  background: rgba(0,0,0,0.05);
}

.login-submit {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.login-submit:hover {
  filter: brightness(1.08);
}

.login-error {
  color: #f87171;
  display: none;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
}

body.light-theme .login-error {
  color: #dc2626;
}
