/* ===== cliente.css (FINAL - SCROLL LIBERADO + VISUAL CORRIGIDO) ===== */

/* 1. CONFIGURAÇÃO SEGURA DO CORPO (Sem travar scroll) */
body {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  position: relative;
  max-width: 100vw;
}

/* 2. HEADER */
.main-header {
  position: relative;
  z-index: 50;
  background: #1f1f1f;
  background: linear-gradient(to bottom, #2b2b2b, #1f1f1f);
  border-bottom: 3px solid var(--secondary);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.05));
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
}

/* Botões do Header */
.cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb !important;
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  text-decoration: none;
  cursor: pointer;
}

.cart-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary);
  color: #fff !important;
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(214, 35, 0, 0.6);
  border: 2px solid #1f1f1f;
}

/* 3. HERO & BUSCA */
.hero {
  position: relative;
  padding: 0;
  margin-bottom: 0;
  border-radius: 0 0 30px 30px;
  overflow: hidden;
  background: var(--bg);
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Botões Carrossel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(214, 35, 0, 0.8);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Barra de Busca */
.search-container-overlay {
  position: relative;
  margin-top: 20px;
  z-index: 20;
  padding-bottom: 10px;
}

.search-wrap {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 50px;
}

.search-wrap .input {
  border-radius: 50px;
  border: none;
  padding: 18px 25px;
  font-size: 16px;
}

main.container {
  padding-top: 30px;
}

/* 4. BARRA DE CATEGORIAS (STICKY) */
.sticky-category-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  padding: 15px 0;
  margin: 0 -20px 20px -20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px;
  white-space: nowrap;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips .chip {
  background: #fff;
  color: var(--text);
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid #e5e0d8;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.3s;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.chips .chip:hover {
  transform: translateY(-2px);
}

.chips .chip.active {
  background: #d62300;
  color: #fff;
  border-color: #d62300;
  box-shadow: 0 4px 15px rgba(214, 35, 0, 0.4);
}

/* 5. PRODUTOS */
.category-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.category-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0d0b8;
  font-family: var(--font-display);
}

.item-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid #f0ebe4;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-info {
  flex: 1;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.card-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-price {
  font-size: 19px;
  color: #d62300;
  font-weight: 700;
}

.btn-add {
  background: #d62300;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
  box-shadow: 0 4px 12px rgba(214, 35, 0, 0.3);
}

.btn-add:hover {
  background: #b51d00;
  transform: scale(1.05);
}

.card-img-right {
  width: 100px;
  height: 100px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 6. MODAL & CARRINHO */
.pd-image-header {
  position: relative;
  height: 280px;
  background: #eee;
  overflow: hidden;
}

#pd-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.pd-image-header:hover #pd-image {
  transform: scale(1.05);
}

#pd-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #502314 !important;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: 0.2s;
}

#pd-close:hover {
  background: #fff !important;
  transform: scale(1.1);
}

aside#carrinho {
  position: fixed;
  inset: 0;
  background: rgba(80, 35, 20, 0.4);
  display: none;
  z-index: 100;
  backdrop-filter: blur(2px);
}

aside#carrinho[aria-hidden="false"] {
  display: block;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding-bottom: 15px;
  border-bottom: 2px solid #f0e6dc;
  margin-bottom: 10px;
  font-size: 20px;
  font-family: var(--font-display);
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0e6dc;
}

.cart-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #eee;
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.cart-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.cart-price-unit {
  font-size: 13px;
  color: #888;
}

.cart-controls {
  display: flex;
  align-items: center;
  background: #f5ebdc;
  border-radius: 50px;
  padding: 4px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  color: var(--text);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--text);
  color: #fff;
}

.qty-val {
  width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.cart-remove-btn {
  color: #d62300;
  opacity: 0.5;
  transition: 0.2s;
  font-size: 22px;
  cursor: pointer;
}

.cart-remove-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.totals {
  margin: 20px 0;
  padding: 20px;
  background: #fcf9f4;
  border-radius: 16px;
  border: 1px solid #efe5db;
}

.totals .row {
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.totals .total {
  font-size: 20px;
  color: var(--text);
  font-weight: 800;
  border-top: 2px dashed #e0d0b8;
  padding-top: 10px;
  margin-top: 10px;
}

.form {
  margin-top: auto;
}

.field-row {
  display: flex;
  gap: 15px;
  margin: 10px 0 20px;
}

.radio {
  flex: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #e0d0b8;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s;
  color: #888;
}

.radio:has(input:checked) {
  border-color: var(--primary);
  background: #fff5f2;
  color: var(--primary);
}

input[type="radio"] {
  accent-color: var(--primary);
  transform: scale(1.2);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(80, 35, 20, 0.6);
  z-index: 110;
  backdrop-filter: blur(4px);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-dialog {
  width: 500px;
  max-width: 92vw;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--text);
  border-bottom: 2px solid #f0e6dc;
  padding-bottom: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#product-details-modal .modal-dialog {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0;
  overflow-y: auto;
max-height: 95vh;
}

#pd-obs {
  resize: none;
  font-family: inherit;
  transition: none !important;
  transform: none !important;
  outline: none;
  box-shadow: none;
}

#pd-obs:focus {
  outline: none;
  box-shadow: none;
  transform: none !important;
  border-color: #dacabb;
}

/* 7. FOOTER (Ajustado) */
.app-footer {
  background: #502314;
  color: #e5dcd6;
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
}

.app-footer::before {
  content: '';
  position: absolute;
  top: -38px;
  left: -5%;
  width: 110%;
  height: 42px;
  background: #502314;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer-logo {
  height: 90px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #d6c6bc;
  transition: 0.2s;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.social-central {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f5ebdc;
  color: #502314;
  border-radius: 12px;
  font-size: 24px;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.social-btn:hover {
  transform: translateY(-5px);
  color: #fff;
}

.social-btn.instagram:hover {
  background: #E1306C;
}

.social-btn.whatsapp:hover {
  background: #25D366;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #99807a;
}

.btn-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(60px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-top:hover {
  background: var(--text);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- AJUSTES MOBILE / CORREÇÃO DEFINITIVA DO FUNDO BRANCO --- */
@media (max-width: 768px) {
  .app-footer {
    padding: 30px 0 20px;
    text-align: center;
  }

  /* Remove o zoom da curva no mobile para não gerar barra branca */
  .app-footer::before {
    transform: scaleX(1);
    width: 100%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-logo {
    height: 65px;
    margin: 0 auto 15px auto;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-col ul li,
  .footer-col a,
  .footer-col p {
    font-size: 13px;
  }

  .social-central h4 {
    font-size: 18px;
  }

  .search-container-overlay {
    margin-top: 15px;
  }

  .sticky-category-bar {
    top: -1px;
    margin: 0 -25px;
    padding: 15px 0;
  }

  /* 🟢 ADICIONE ESTE BLOCO AQUI: Traz as categorias mais para a esquerda no celular */
  .chips {
    padding: 0 10px; /* Reduziu de 20px para 10px nas laterais */
    gap: 8px; /* Diminui levemente o espaço entre os botões para caber mais na tela */
  }

  .item-card {
    padding: 15px;
  }

  .card-img-right {
    width: 90px;
    height: 90px;
  }
}

/* 8. TIMELINE (Estilo iFood - Moderna) */
.timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
  padding: 0 10px;
}

.timeline-track {
  position: absolute;
  top: 22px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #eee;
  z-index: 0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

@keyframes stripe-move {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 30px 0;
  }
}

.timeline-progress {
  position: absolute;
  top: 22px;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 0;
  border-radius: 4px;
  background: var(--primary);
  background-image: linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.15) 50%,
      rgba(255, 255, 255, 0.15) 75%,
      transparent 75%,
      transparent);
  background-size: 20px 20px;
  box-shadow: 0 0 10px rgba(214, 35, 0, 0.4);
  animation: stripe-move 1s linear infinite;
  transition: width 0.6s ease-in-out, height 0.3s ease;
}

.timeline:hover .timeline-track,
.timeline:hover .timeline-progress {
  height: 6px;
  top: 21px;
}

.timeline:hover .timeline-progress {
  filter: brightness(1.2);
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: 0.3s;
  width: 60px;
}

.step .icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step .label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #888;
  transition: 0.3s;
}

.step.active {
  opacity: 1;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 35, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(214, 35, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(214, 35, 0, 0);
  }
}

.step.active .icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.15);
  animation: pulse-ring 2s infinite;
}

.step.active .label {
  color: var(--primary);
}

/* 9. EXTRAS */
.profile-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 2px solid #e0d0b8;
  border-radius: 16px;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(80, 35, 20, 0.15);
  z-index: 200;
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.2s;
}

.profile-menu[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pm-item {
  padding: 12px 16px;
  color: var(--text);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pm-item:hover {
  background: #fdf6ec;
  color: var(--primary);
}

.history-card {
  background: #fff;
  border: 2px solid #eee;
  padding: 15px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.history-header strong {
  color: var(--text);
}

.history-status {
  background: #eee;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.floating-bubble {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 65px;
  height: 65px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(214, 35, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s;
  animation: float-bubble 3s infinite ease-in-out;
  border: 3px solid #fff;
}

.floating-bubble:active {
  transform: scale(0.9);
}

.floating-bubble[hidden] {
  display: none !important;
}

.bubble-icon {
  font-size: 32px;
}

@keyframes float-bubble {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.address-wrapper {
  position: relative;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.suggestions-list.active {
  display: block;
}

.suggestions-list li {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.suggestions-list li:hover {
  background: #f9f9f9;
  color: var(--primary);
  padding-left: 18px;
}

.suggestions-list li:last-child {
  border-bottom: none;
}

.floating-bubble.cart-mode {
  background: #d62300;
  color: #fff;
  border: none;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  display: flex;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(214, 35, 0, 0.4);
}

.bubble-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fff;
  color: #d62300;
  font-size: 12px;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid #d62300;
}

@keyframes pop-in {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.anim-pop {
  animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-top {
  bottom: 90px;
}

/* ========================================= */
/* CORREÇÃO SEGURA DO CARRINHO (FINAL)       */
/* ========================================= */

/* 1. Garante que o carrinho fique acima do mapa */
#carrinho {
  z-index: 10001;
}

/* 2. IMPORTANTE: Só mostra o carrinho se o JS mandar (aria-hidden="false") */
#carrinho[aria-hidden="false"] {
  display: block !important;
}

@media (min-width: 769px) {

  #carrinho .modal-dialog {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    max-width: 400px !important;
    border-radius: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2) !important;
    background: #fff !important;
  }

}


@media (min-width: 769px) {
  #carrinho .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
  }
}


/* 5. Ajuste do rodapé do carrinho */
#carrinho .modal-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 15px;
  flex-shrink: 0;
}

/* Garante que o modal do mapa fique acima de tudo */
#map-modal {
  z-index: 9999 !important;
}

/* Garante que o mapa tenha altura */
#map {
  width: 100%;
  height: 400px;
  /* Altura fixa para garantir que apareça */
  background: #eee;
  /* Cor de fundo caso demore a carregar */
}

/* ================= AUTOCOMPLETE – FIX DEFINITIVO ================= */

/* wrapper do input */
.address-wrapper {
  position: relative;
  width: 100%;
}

/* lista de sugestões */
.suggestions-list {
  position: fixed;
  /* 🔥 ISSO resolve o bug */
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;

  max-height: 220px;
  overflow-y: auto;

  z-index: 999999;
  /* acima do carrinho */
  list-style: none;
  padding: 6px 0;
  margin: 0;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  display: none;
}

/* quando ativa */
.suggestions-list.active {
  display: block;
}

/* itens */
.suggestions-list li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.suggestions-list li:last-child {
  border-bottom: none;
}

.suggestions-list li:hover {
  background: #f9fafb;
  color: var(--primary);
}

/* ===== AUTOCOMPLETE ENDEREÇO ===== */
.address-wrapper {
  position: relative;
}

#address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;

  max-height: 220px;
  overflow-y: auto;

  z-index: 99999;
  /* 🔥 ISSO É O MAIS IMPORTANTE */
  display: none;
}

#address-suggestions.active {
  display: block;
}

#address-suggestions li {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

#address-suggestions li:hover {
  background: #f5f5f5;
}

/* ===== CORREÇÃO GOOGLE PLACES AUTOCOMPLETE ===== */
.pac-container {
  z-index: 99999 !important;
  font-family: 'Nunito', sans-serif;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pac-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.pac-item:hover {
  background: #f5f5f5;
}

.pac-icon {
  display: none;
  /* REMOVE ESSES ÍCONES FEIOS */
}

.pac-item-query {
  font-weight: 700;
  color: #502314;
}

#pm-logout:hover {
  background: #fff1f0;
}

.btn-whats {
  background-color: #25D366 !important;
  color: white !important;
}

.btn-whats:hover {
  background-color: #1ebe57 !important;
}

/* Impede a quebra de linha nos itens do rodapé em telas maiores */
@media (min-width: 768px) {
  .footer-col ul li {
    white-space: nowrap;
  }
}

/* ======== CORREÇÃO DO ZOOM E SUGESTÕES NO MOBILE ======== */

/* Previne zoom globalmente em TODOS os inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="datetime-local"],
textarea,
select,
.input {
  font-size: 16px;
  touch-action: manipulation;
}

@media (max-width: 768px) {

  /* Garante 16px em todos os inputs no mobile */
  input,
  textarea,
  select,
  .input {
    font-size: 16px !important;
    touch-action: manipulation;
  }

  /* Garante que o container do formulário não "corra" para o lado */
  #delivery-fields {
    overflow-x: hidden;
    width: 100%;
  }

  /* Mantém o input alinhado */
  #cust-address {
    width: 100%;
    box-sizing: border-box;
  }

  /* Faz a lista de sugestões ficar por cima e inteira */
  .pac-container {
    left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Remove zoom no modal do produto */
  #product-details-modal input,
  #product-details-modal textarea,
  #carrinho input,
  #carrinho textarea,
  #auth-modal input {
    font-size: 16px !important;
    touch-action: manipulation;
  }
}


/* ========================================= */
/* MODAL PIX MODERNO (ESTILO NUBANK/IFOOD)   */
/* ========================================= */

.pix-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  /* Fundo escuro */
  backdrop-filter: blur(8px);
  /* Desfoque moderno */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.pix-card {
  background: #ffffff;
  width: 90%;
  max-width: 400px;
  border-radius: 24px;
  padding: 30px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  animation: slideUp 0.3s forwards;
}

.pix-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f3f4f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.pix-close-btn:hover {
  background: #e5e7eb;
  color: #000;
}

.pix-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 5px;
}

.pix-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 25px;
}

.pix-qr-container {
  background: #fff;
  border: 2px solid #e5e7eb;
  padding: 15px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 25px;
}

.pix-qr-img {
  width: 220px;
  height: 220px;
  display: block;
}

.pix-copy-area {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pix-code-text {
  flex: 1;
  font-family: monospace;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.pix-btn-copy {
  background-color: #10b981;
  /* Verde Sucesso */
  color: white;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pix-btn-copy:active {
  transform: scale(0.98);
}

.pix-btn-copy:hover {
  background-color: #059669;
}

/* Animações */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}


/* =====================================================
   BOTTOM NAV APP (VERSÃO FINAL PROFISSIONAL)
===================================================== */

/* 🔒 ESCONDE NO DESKTOP */
.app-bottom-nav {
  display: none;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 768px) {

  /* ===============================
     BOTTOM NAV
  ================================ */
  .app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #f1f1f1;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
  }

  .app-bottom-nav .nav-item {
    text-decoration: none;
    color: #9CA3AF;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: 0.2s ease;
  }

  .app-bottom-nav .nav-item .material-icons-outlined {
    font-size: 24px;
    transition: 0.2s ease;
  }

  .app-bottom-nav .nav-item.active {
    color: #D62300;
    font-weight: 600;
  }

  .app-bottom-nav .nav-item.active .material-icons-outlined {
    transform: translateY(-2px);
  }

  .app-bottom-nav .nav-item:active {
    transform: scale(0.92);
  }

  /* Espaço para não cobrir conteúdo */
  body {
    padding-bottom: 85px;
  }

  /* ===============================
     HEADER SUPERIOR
  ================================ */

  /* Oculta navegação superior */
  .main-header .row.center.gap {
    display: none !important;
  }

  /* Centraliza logo */
  .main-header .container {
    justify-content: center !important;
  }

  /* ===============================
     PERFIL (REMOVE MEUS PEDIDOS)
  ================================ */
  #pm-history {
    display: none !important;
  }

}


/* =====================================================
   MODAL PERFIL MOBILE (VERSÃO APP PROFISSIONAL)
===================================================== */

#profile-mobile-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#profile-mobile-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

#profile-mobile-modal .modal-dialog {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  padding: 20px;
  animation: slideUpProfile 0.3s ease;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15);
}

/* Animação subir */
@keyframes slideUpProfile {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Header */
#profile-mobile-modal .modal-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

#profile-mobile-modal .modal-header strong {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

/* Botões */
#profile-mobile-modal .btn {
  height: 50px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
}

/* Configurações */
#pm-mobile-settings {
  background: #f3f4f6;
  color: #111827;
}

#pm-mobile-settings:hover {
  background: #e5e7eb;
}

/* Sair */
#pm-mobile-logout {
  background: #ef4444;
  color: white;
}

#pm-mobile-logout:hover {
  background: #dc2626;
}

/* =========================================
   AJUSTE BOLINHA ACIMA DO BOTTOM NAV
========================================= */
@media (max-width: 768px) {

  .floating-bubble {
    bottom: calc(70px + 20px);
    /* bottom nav + margem */
  }

  .floating-bubble.cart-mode {
    bottom: 100px !important;
  }

}

/* ======================================
   CORREÇÃO MODAL SOBRE BOTTOM NAV
====================================== */

.modal {
  z-index: 10000 !important;
}

.modal-dialog {
  z-index: 10001 !important;
}

/* =========================================
   CARRINHO MOBILE — SCROLL + BOTÃO FIXO
========================================= */
@media (max-width: 768px) {

  #carrinho {
    display: flex;
    align-items: flex-end;
  }

  #carrinho .modal-dialog {
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* 🔥 ÁREA SCROLLÁVEL */
  #carrinho .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 180px; /* ← espaço real do botão + safe */
  }

  /* 🔥 BOTÃO FIXO */
  #btn-finalize {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 80px;
    z-index: 10002;
    height: 56px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(214, 35, 0, 0.35);
  }

  /* 🔥 ESPAÇO PARA O BOTÃO NÃO COBRIR CONTEÚDO */
  #carrinho .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 160px;
  }

}





/* ===== PÁGINA HISTÓRICO DE PEDIDOS ===== */
#orders-page {
  background: #f3f4f6;
  min-height: 100vh;
}

#orders-page h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  color: #111;
  margin-bottom: 4px;
}

#orders-list > div {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#orders-list > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}

#orders-list button {
  transition: opacity 0.2s;
}

#orders-list button:hover {
  opacity: 0.7;
}

#orders-list p {
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

#orders-list .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

#orders-list .empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

#orders-list .empty-state p {
  font-size: 15px;
  color: #999;
  font-weight: 500;
}

.badge-esgotado{
  background:#ef4444;
  color:#fff;
  padding:4px 8px;
  border-radius:6px;
  font-size:12px;
  font-weight:bold;
}

.item-card.sold-out{
  opacity:0.6;
  pointer-events:none;
}

.input-edit{
position:relative;
display:flex;
align-items:center;
}

.input-edit input{
width:100%;
padding-right:40px;
}

.edit-btn{
position:absolute;
right:10px;
border:none;
background:none;
font-size:16px;
cursor:pointer;
opacity:0.6;
}

.edit-btn:hover{
opacity:1;
}


.grupo-acomp {
  margin-bottom: 15px;
}

.grupo-acomp h4 {
  font-size: 15px;
  margin-bottom: 5px;
  color: #333;
}

.grupo-acomp small {
  color: #777;
  display: block;
  margin-bottom: 10px;
}

.grupo-acomp label {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.grupo-acomp input {
  margin-right: 8px;
}

#pd-acompanhamentos {
  margin-top: 15px;
}

.acomp-group {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

.acomp-header {
  padding: 12px 15px;
  background: #f7f7f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acomp-title {
  font-weight: 600;
  font-size: 15px;
}

.acomp-rules {
  font-size: 12px;
  color: #777;
}

.acomp-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.acomp-item:last-child {
  border-bottom: none;
}

.acomp-controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

@media (max-width: 480px) {
  #product-details-modal .modal-dialog {
    max-width: 100% !important;
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
  }
}

/* 🔥 FIX REAL DO MODAL (SEM BUG) */

#product-details-modal {
  align-items: center;
  justify-content: center;
}

/* CONTAINER */
#product-details-modal .modal-dialog {
  display: flex;
  flex-direction: column;

  height: 90vh;
  max-height: 90vh;

  width: 100%;
  max-width: 420px;

  border-radius: 20px;
  overflow: hidden;
}

/* IMAGEM FIXA */
.pd-image-header {
  flex-shrink: 0;
}

/* 🔥 SCROLL FUNCIONANDO */
#product-details-modal .modal-body {
  flex: 1;
  overflow-y: auto;

  padding-bottom: 120px;
}

/* Evita pulo de scroll ao atualizar carrinho */
html {
  scroll-behavior: auto !important;
}

#carrinho[aria-hidden="true"] {
  pointer-events: none;
}

/* ✅ Previne zoom duplo toque nos botões + e - do modal */
#pd-plus,
#pd-minus,
.qty-btn,
.plus,
.minus,
.btn-add,
#pd-add-btn,
#btn-finalize,
.acomp-controls button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}


/* ===== GOOGLE PLACES AUTOCOMPLETE DENTRO DO CARRINHO ===== */
.pac-container {
  z-index: 99999 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
  border: 1px solid #e5e7eb !important;
  font-family: 'Nunito', sans-serif !important;
  overflow: hidden;
  width: 320px !important; /* largura fixa maior */
  max-width: 90vw !important;
}

.pac-item {
  padding: 12px 14px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f5f5f5 !important;
  line-height: 1.5 !important;
  white-space: normal !important; /* ← permite quebrar linha */
  word-break: break-word !important;
}

.pac-item:hover,
.pac-item-selected {
  background: #fff5f2 !important;
}

.pac-item-query {
  font-weight: 700 !important;
  color: #d62300 !important;
  font-size: 13px !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.pac-secondary-text {
  font-size: 12px !important;
  color: #6b7280 !important;
  display: block !important;
}

.pac-matched {
  color: #d62300 !important;
  font-weight: 800 !important;
}

.pac-icon {
  display: none !important;
}

#tracking-modal .modal-dialog {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

#driver-map-container {
  max-width: 100%;
  overflow: hidden;
}

/* ===== TRACKING MODAL MOBILE FIX ===== */
/* DESKTOP */
@media (min-width: 769px) {
  #tracking-modal {
    align-items: center !important;
    justify-content: center !important;
  }

  #tracking-modal .modal-dialog {
    max-width: 560px !important;
    width: 560px !important;
    max-height: 90vh !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 20px !important;
  }

  #tracking-modal .modal-header {
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  #driver-map {
    height: 260px !important;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  #tracking-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #tracking-modal .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    max-height: 96dvh !important;
    height: 96dvh !important;
    border-radius: 20px 20px 0 0 !important;
    overflow-y: auto !important;
    padding: 12px 16px 20px !important;
  }

  #tracking-modal .modal-header {
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 10 !important;
    flex-shrink: 0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }

  /* Compacta o título e o status do pedido */
  #tracking-modal #track-id {
    margin: 4px 0 2px !important;
    font-size: 22px !important;
  }

  #tracking-modal #track-msg {
    margin: 0 0 10px !important;
    font-size: 14px !important;
  }

  /* Timeline (passos) mais compacta */
  #tracking-modal .timeline {
    margin-top: 16px !important;
    margin-bottom: 16px !important;
  }

  #driver-map {
    height: 180px !important;
  }
}

#driver-map-container {
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px !important;
  margin: 12px 0 !important;
}

#driver-map {
  height: 200px !important;
  width: 100% !important;
}

#eta-box {
  background: linear-gradient(135deg, #fff8f0, #fff3e6) !important;
  border-bottom: 1px solid #fde68a !important;
}

/* ===== AVATAR SELECTOR ===== */
.avatar-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}
.avatar-filter-btn.active {
  background: #d62300;
  color: white;
  border-color: #d62300;
}

.avatar-option {
  border: 2.5px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-option:hover { border-color: #d62300; transform: scale(1.08); }
.avatar-option.selected { border-color: #d62300; background: #fff0ee; }
.avatar-option img { width: 60px; height: 60px; border-radius: 50%; display: block; }

/* ============ CARD INFO STORE ============ */
.mobile-store-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  margin: 16px auto;
  max-width: 600px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border: 1px solid #f0ebe4;
}

@media (max-width: 768px) {
  .mobile-store-card {
    border-radius: 0 0 16px 16px;
    padding: 10px 16px 12px;
    margin: -4px 0 12px 0;
    max-width: 100%;
  }
}

.msc-status-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.msc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  transition: background 0.3s;
}

.msc-dot.closed { background: #ef4444; }

.msc-status-text {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  flex: 1;
}

.msc-days { font-size: 11px; color: #888; }

.msc-stats {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 8px 0;
}

.msc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.msc-stat-divider { width: 1px; height: 30px; background: #e5e5e5; flex-shrink: 0; }
.msc-stat-label { font-size: 10px; color: #999; text-transform: uppercase; letter-spacing: 0.4px; }
.msc-stat-val { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.msc-stat-val.msc-green { color: #16a34a; }

@media (max-width: 768px) {
  .mobile-store-card {
    padding: 10px 16px 12px;
  }
}

/* ============ MODAL AUTH — OPÇÃO 1 ============ */
.auth-modal-header {
  background: #d62300;
  padding: 28px 24px 22px;
  text-align: center;
  position: relative;
}

.auth-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
}

.auth-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.auth-modal-sub {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin: 0;
}

.auth-tabs-wrap {
  display: flex;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #fff;
  color: #d62300;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.auth-label {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.auth-input {
  background: #f9f9f9 !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 10px !important;
}

.auth-btn {
  border-radius: 10px !important;
  font-size: 14px !important;
  padding: 13px !important;
}

/* ============ BUSCA COM ÍCONE ============ */
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}
.search-wrap .input {
  padding-left: 46px !important;
}

/* ============ CHIP COM ÍCONE ============ */
.chip-icon {
  margin-right: 6px;
  font-size: 15px;
}

/* ============ CATEGORY TITLE ROW ============ */
.category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0d0b8;
}
.category-title-row .category-title {
  margin: 0;
  padding: 0;
  border: none;
}

/* ============ TRUST BAR ============ */
.trust-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px 12px;
  margin-bottom: 24px;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.trust-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.trust-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.trust-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .trust-item {
    width: 100%;
  }
}

/* ============ HEADER ICON BTN (mobile) ============ */
.header-icon-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.header-icon-btn:hover { background: rgba(255,255,255,0.2); }

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #d62300;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1f1f1f;
}

@media (max-width: 768px) {
  .header-icon-btn { display: flex; }

  /* Centraliza logo no mobile */
  .main-header .container {
    justify-content: space-between !important;
  }
}

/* ============ DRAWER LATERAL ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 19999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(3px);
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100dvh;
  background: #fff;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.side-drawer.open { transform: translateX(0); }

.side-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.drawer-close-btn {
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
}

.side-drawer-nav {
  flex: 1;
  padding: 8px 0;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}
.drawer-nav-item:hover { background: #fdf6ec; }
.drawer-nav-item.active { color: #d62300; background: #fff5f2; }
.drawer-nav-item.active .drawer-nav-icon { color: #d62300; }

.drawer-nav-icon {
  font-size: 20px;
  color: #555;
  flex-shrink: 0;
}
.drawer-nav-arrow {
  font-size: 18px;
  color: #ccc;
  margin-left: auto;
}

.drawer-divider {
  height: 8px;
  background: #f5f5f5;
  margin: 4px 0;
}

.drawer-promo {
  margin: 16px;
  background: #fff8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #f0e0cc;
}

/* ============ CARROSSEL DE COMBOS EM DESTAQUE ============ */
.combos-section {
  margin: 18px 0 8px;
  padding: 0;
  animation: fadeInCombos 0.4s ease;
}

@keyframes fadeInCombos {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.combos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.combos-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin: 0;
  font-family: 'Fredoka', sans-serif;
  letter-spacing: -0.2px;
}

.combos-link {
  font-size: 12px;
  color: #d62300;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.combos-link:hover { background: #fff5f2; }

.combos-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.combos-scroll::-webkit-scrollbar { display: none; }

.combo-card {
  flex-shrink: 0;
  width: 168px;
  background: #fff;
  border: 1px solid #fee2d6;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}
.combo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(214,35,0,0.15);
  border-color: #fbcfb5;
}
.combo-card:active { transform: translateY(0); }

.combo-card-img-wrap {
  position: relative;
  height: 105px;
  background: linear-gradient(135deg, #fef3ec, #fff5f2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.combo-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.combo-card-img-placeholder {
  font-size: 42px;
  opacity: 0.7;
}

.combo-card-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(220,38,38,0.4);
  letter-spacing: 0.3px;
}

.combo-card-body {
  padding: 10px 12px 12px;
}

.combo-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 31px;
}

.combo-card-old-price {
  font-size: 11px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 2px;
}

.combo-card-price {
  font-size: 15px;
  font-weight: 900;
  color: #d62300;
  line-height: 1.1;
}

/* Card "Ver mais" no final do carrossel */
.combo-card-more {
  flex-shrink: 0;
  width: 60px;
  background: #fff5f2;
  border: 1px dashed #d62300;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #d62300;
  font-weight: 700;
  font-size: 10px;
  transition: background 0.15s;
}
.combo-card-more:hover { background: #ffe5db; }
.combo-card-more .arrow { font-size: 20px; line-height: 1; }

/* Mobile: cards ligeiramente menores */
@media (max-width: 480px) {
  .combo-card { width: 160px; }
  .combo-card-img-wrap { height: 95px; }
  .combo-card-name { font-size: 12px; min-height: 30px; }
  .combo-card-price { font-size: 14px; }
}

/* ============ CARD INFO LOJA — NOVO LAYOUT (sobrescreve o antigo) ============ */
.mobile-store-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 18px 24px;
  margin: 14px 12px 18px;
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
  .mobile-store-card {
    border-radius: 20px;
    padding: 18px 16px 22px;
    margin: 12px;
  }
}

.msc-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.msc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}
.msc-dot.closed {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.18);
}

.msc-status-text {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
  flex: 0 1 auto;
}
.msc-dot.closed + .msc-status-text { color: #ef4444; }

.msc-days {
  margin-left: auto;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* IMPORTANTE: remove o fundo cinza e reseta padding */
.msc-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: transparent;
  border-radius: 0;
  padding: 0;
  gap: 6px;
}

.msc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 0 4px;
}

.msc-stat-icon {
  font-size: 30px !important;
  color: #10b981;
  margin-bottom: 6px;
  line-height: 1;
}

.msc-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}

.msc-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  white-space: nowrap;
}
.msc-stat-val.msc-green { color: #10b981; }

.msc-stat-sub {
  font-size: 10.5px;
  color: #9ca3af;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 3px;
}

.msc-stat-divider {
  width: 1px;
  height: auto;
  background: #f0f0f0;
  align-self: stretch;
  margin: 6px 0;
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .msc-stat-label { font-size: 9px; letter-spacing: 0.4px; }
  .msc-stat-val { font-size: 12.5px; }
  .msc-stat-sub { font-size: 9.5px; }
  .msc-stat-icon { font-size: 26px !important; }
}

/* ============ AJUSTES CARD INFO LOJA — COMPACTO + PULSE ============ */
.mobile-store-card {
  padding: 14px 14px 16px;
  margin: 10px 12px 14px;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .mobile-store-card {
    padding: 14px 14px 16px;
    margin: 10px 12px 14px;
  }
}

.msc-status-row {
  margin-bottom: 14px;
  gap: 7px;
}

/* Texto preto */
.msc-status-text {
  font-size: 14px;
  color: #111 !important;
  font-weight: 800;
}
.msc-dot.closed + .msc-status-text { color: #ef4444 !important; }

.msc-days {
  font-size: 11px;
}

/* Bolinha verde com animação de pulsar */
.msc-dot {
  width: 9px;
  height: 9px;
  background: #10b981;
  position: relative;
  animation: msc-pulse 1.6s ease-in-out infinite;
}

.msc-dot.closed {
  background: #ef4444;
  animation: msc-pulse-red 1.6s ease-in-out infinite;
}

@keyframes msc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16,185,129,0.55), 0 0 0 0 rgba(16,185,129,0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16,185,129,0), 0 0 0 14px rgba(16,185,129,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16,185,129,0), 0 0 0 0 rgba(16,185,129,0);
  }
}

@keyframes msc-pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239,68,68,0.55), 0 0 0 0 rgba(239,68,68,0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239,68,68,0), 0 0 0 14px rgba(239,68,68,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239,68,68,0), 0 0 0 0 rgba(239,68,68,0);
  }
}

/* Ícones e textos um pouco menores */
.msc-stat-icon {
  font-size: 26px !important;
  margin-bottom: 4px;
}

.msc-stat-label {
  font-size: 9.5px;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.msc-stat-val {
  font-size: 13px;
}

.msc-stat-sub {
  font-size: 10px;
  margin-top: 2px;
}

.msc-stat-divider {
  margin: 4px 0;
}

/* ===== FIX: Impede scroll horizontal no mobile ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

.rating-dialog {
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: none;
}
.rating-header {
  position: relative;
  height: 160px;
  background: #1a0800;
  overflow: hidden;
}
.rating-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rating-header-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}
.rating-skip-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.rating-body {
  background: #fff;
  padding: 24px 22px 26px;
  text-align: center;
}
.rating-title {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  color: #111;
  margin: 0 0 4px;
}
.rating-order-info {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 18px;
}
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer;
  color: #e5e7eb;
  transition: color 0.2s, transform 0.15s;
}
.star-rating label:before {
  content: '\2605';
  font-size: 42px;
  line-height: 1;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b;
}
.star-rating label:hover { transform: scale(1.12); }
.rating-label-text {
  font-size: 13px;
  font-weight: 700;
  color: #d62300;
  height: 18px;
  margin-bottom: 18px;
}
.rating-textarea {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  margin-bottom: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.rating-textarea:focus { border-color: #d62300; }
#rating-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
