/* ===== NOVA OPÇÃO LANCHE - CSS ORGANIZADO ===== */
/* Versão otimizada e modular do style2.css */

/* ===== CSS VARIABLES ===== */
:root {
  /* Core Colors */
  --primary: #7d3c44;
  --primary-dark: #5b2830;
  --secondary: #fbcbcc;
  --success: #2ca066;
  
  /* Cor para itens selecionados no carrinho */
  --cart-selected: #f28fa3;
  --cart-selected-light: #fde2e6;
  --cart-selected-shadow: rgba(125, 60, 68, 0.25);
  --success-dark: #248454;
  --danger: #ff4757;
  --warning: #ffa502;
  --dark: #2c3e50;
  --light: #ffffff;

  /* Grays */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,.06);
  --shadow: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);

  /* Layout */
  --border-radius: 16px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);

  /* Category Navigation */
  --cat-nav-h: 64px;
  --cat-bg: rgba(125, 60, 68, 0.12);
  --cat-pill-bg: rgba(125, 60, 68, 0.12);
  --cat-pill-text: #7d3c44;
  --cat-pill-ring: rgba(125, 60, 68, 0.4);
  --cat-pill-active-bg: #7d3c44;
  --cat-pill-active-text: #ffffff;
  --cat-bar-h: 64px;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(140deg, #fef6f6 0%, #ffffff 70%);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  /* Espaço reservado para Google AdSense anchor bottom e controles do navegador */
  padding-bottom: 100px; /* Espaço aumentado para mobile */
}

/* Espaçamento responsivo para Google AdSense anchor ads */
@media (max-width: 767px) {
  body.ad-padding-mobile {
    padding-bottom: 120px !important; /* Mobile: banner + controles do navegador + margem */
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 120px; /* Desktop base: banner 728x90 + margem */
  }

  body.ad-padding-desktop {
    padding-bottom: 150px !important; /* Desktop com ad ativo */
  }
}

/* ===== GLASS MORPHISM UTILITIES ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 120, 0, 0.17);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.06);
}

/* .glass-effect-hover:hover - REMOVIDO PARA MOBILE */

.glass-fallback {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 107, 53, 0.1);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.08);
}

/* .glass-fallback:hover - REMOVIDO PARA MOBILE */

/* ===== HEADER SECTION ===== */
.header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  height: 330px;
  z-index: 1;
  padding: 3.5rem 1rem 2.75rem;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  background: linear-gradient(135deg, rgba(125, 60, 68, 0.98) 0%, rgba(159, 79, 88, 0.92) 65%, rgba(251, 203, 204, 0.85) 115%);
  box-shadow: 0 24px 46px rgba(125, 60, 68, 0.28);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
              radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.22) 0%, transparent 50%),
              radial-gradient(circle at 52% 72%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0.65;
}

.header-content {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 520px;
}

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

.header .schedule {
  font-size: var(--font-sm);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 4px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(12px);
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(30, 10, 14, 0.28);
  transition: var(--transition);
}

/* .logo:hover - REMOVIDO PARA MOBILE */

.header-title,
.header h1 {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: var(--weight-extrabold);
  margin: 0;
  text-shadow: 0 2px 14px rgba(39, 10, 16, 0.38);
}

.header-subtitle {
  font-size: var(--font-base);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin: 0;
}

.status-badge {
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 25px;
  font-size: var(--font-sm);
  font-weight: var(--weight-medium);
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  transition: var(--transition);
}

.status-open {
  background: #fff;
  color: var(--success);
  border: 2px solid var(--success);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 208, 132, .15);
}

.status-closed {
  background: #fff;
  color: var(--danger);
  border: 2px solid var(--danger);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 71, 87, .15);
}

/* ===== MAIN LAYOUT ===== */
.main {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== SECTION HEADERS ===== */
.section-title {
  font-size: var(--font-lg);
  font-weight: var(--weight-bold);
  margin: 50px 0 4px;
  color: var(--primary);
  text-align: center;
  text-shadow: 0 6px 16px rgba(125, 60, 68, 0.12);
}

.doceria-section {
  margin-top: 2.5rem;
}

.section-first-header-title {
  font-size: var(--font-lg);
  font-weight: var(--weight-bold);
  margin: 5px 0 4px;
  color: var(--dark);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.section-sub {
  color: rgb(102, 33, 33);
  font-size: var(--font-sm);
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.promo-banner {
  background: linear-gradient(135deg, rgba(251, 203, 204, 0.18), rgba(125, 60, 68, 0.12));
  border: 1px solid rgba(125, 60, 68, 0.18);
  color: #5d2b33;
  border-radius: 18px;
  padding: 16px 18px;
  font-size: var(--font-sm);
  line-height: 1.6;
  box-shadow: 0 12px 24px rgba(125, 60, 68, 0.12);
}

.promo-banner strong {
  display: block;
  font-size: var(--font-base);
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
  color: var(--primary);
}

.section-divider {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 8px 0 24px;
}

/* ===== PRODUCT GRID AND CARDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: var(--border-radius);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card.product-sold-out {
  opacity: 0.85;
}

.product-card.product-sold-out .product-price {
  color: rgba(93, 43, 51, 0.6);
}

.product-sold-out-text {
  margin-top: 8px;
  font-weight: var(--weight-semibold);
  color: #ffffff;
  position: absolute;
  padding: 15px;
  border-radius: 12px;
  background: #a1384a;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.supports-backdrop-filter .product-card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(125, 60, 68, 0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 12px 26px rgba(125, 60, 68, 0.12);
}

.no-backdrop-filter .product-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(125, 60, 68, 0.16);
  box-shadow: 0 6px 18px rgba(125, 60, 68, 0.1);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: scaleY(0);
  transition: var(--transition);
}

/* HOVERS DOS PRODUCT-CARDS - REMOVIDO PARA MOBILE */

.product-image {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

/* HOVER DA PRODUCT-IMAGE - REMOVIDO PARA MOBILE */

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-name {
  font-size: var(--font-base);
  font-weight: var(--weight-bold);
  color: var(--dark);
}

.product-price {
  font-size: var(--font-base);
  font-weight: var(--weight-extrabold);
  color: var(--primary);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.product-price .price-dec {
  font-size: 0.65em;
  line-height: 1;
  position: relative;
}

.product-price .price-currency {
  font-size: 0.65em;
  line-height: 1;
}

.product-price .price-int {
  line-height: 1;
}

.product-description {
  font-size: var(--font-sm);
  color: var(--gray-600);
  line-height: 1.4;
}

.product-card.no-image {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.option-card {
  gap: 14px;
  padding: 18px;
  align-items: flex-start;
  cursor: pointer;
}

.option-card .product-info {
  gap: 8px;
}

.option-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  border-radius: 16px;
}

.option-price {
  font-size: var(--font-base);
  color: var(--primary);
}

.extras-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 4px;
}

.extra-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(125, 60, 68, 0.18);
  background: rgba(251, 203, 204, 0.12);
  font-size: var(--font-sm);
  color: #57252c;
}

.extra-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ===== QUANTITY CONTROLS ===== */
.quantity-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.supports-backdrop-filter .quantity-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.no-backdrop-filter .quantity-btn {
  background: rgba(251, 203, 204, 0.45);
  border: 1px solid rgba(125, 60, 68, 0.25);
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--primary);
  font-size: var(--font-base);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HOVER DOS BOTÕES DE QUANTIDADE - REMOVIDO PARA MOBILE */

.quantity-display {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: var(--weight-bold);
  font-size: var(--font-base);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.quantity-display:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.minus-btn {
  display: none;
}

/* ===== PAYMENT METHODS ===== */
.payment-option {
  margin-bottom: 16px;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  min-height: 64px;
}

.payment-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.payment-option label:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.payment-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-name {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--dark);
}

.payment-note {
  font-size: .8rem;
  color: var(--gray-600);
  margin-top: 2px;
}

.payment-icon {
  font-size: 1.5rem;
  margin-left: 12px;
}

/* ===== CAROUSEL PROMO ===== */
.promo-section {
  margin: 40px 0;
}

.promo-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-card {
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.supports-backdrop-filter .promo-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 120, 0, 0.17);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.06);
}

.no-backdrop-filter .promo-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 107, 53, 0.1);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.08);
}

.promo-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 107, 53, 0.15);
}

.promo-content {
  padding: 20px;
}

.promo-content h2 {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.promo-content p {
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.4;
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.promo-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  transition: var(--transition);
}

.promo-dots button.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* ===== CATEGORY NAVIGATION ===== */
#catNav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--cat-bar-h);
  background: var(--cat-bg);
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

/* Cat Nav - Copiado EXATAMENTE do MegaBurgers */
.cat-nav{
  font-size: var(--font-sm);
  position: sticky; top: 0; z-index: 60;
  display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 8px; 
  margin-bottom: 6px;
  background: var(--cat-bg) !important;
  border-bottom: 1px solid rgba(125, 60, 68, 0.12) !important;
  box-shadow:
    0 10px 24px rgba(125, 60, 68, 0.12),
    0 3px 10px rgba(125, 60, 68, 0.08);
}

/* Cat Nav Glass Effects - EXATAMENTE do MegaBurgers */
.supports-backdrop-filter .cat-nav {
  background: rgba(255, 255, 255, 0.16) !important;
  border-bottom: 1px solid rgba(125, 60, 68, 0.18) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  box-shadow: 0 6px 18px rgba(125, 60, 68, 0.12) !important;
}

.no-backdrop-filter .cat-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(125, 60, 68, 0.1) !important;
  box-shadow: 0 3px 10px rgba(125, 60, 68, 0.1) !important;
}

#catNav::-webkit-scrollbar {
  height: 0;
  display: none;
}

#catNav.shadow-visible {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

/* Cat Pills - EXATAMENTE do MegaBurgers */
.cat-pill{
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cat-pill-text, #7d3c44);
  border: 1px solid var(--cat-pill-ring, rgba(125, 60, 68, 0.4));
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.cat-pill
.cat-pill:active { transform: scale(.98); }

.cat-pill.active{
  background: var(--cat-pill-active-bg, #7d3c44);
  color: var(--cat-pill-active-text, #fff);
  border-color: var(--cat-pill-active-bg, #7d3c44);
  box-shadow: 0 6px 16px rgba(125, 60, 68, 0.22);
}

/* acessibilidade no teclado */
.cat-pill:focus-visible{
  outline: 2px solid var(--primary); outline-offset: 2px;
}

/* Cat Pills Glass Effects - EXATAMENTE do MegaBurgers */
 .supports-backdrop-filter .cat-pill {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(125, 60, 68, 0.28) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
}

.supports-backdrop-filter .cat-pill:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(125, 60, 68, 0.36) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(125, 60, 68, 0.2) !important;
}

.supports-backdrop-filter .cat-pill.active {
  background: var(--cat-pill-active-bg, #7d3c44) !important;
  color: var(--cat-pill-active-text, #fff) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

.no-backdrop-filter .cat-pill {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(125, 60, 68, 0.22) !important;
}

/* FORÇA o background correto do nav - deve sobrescrever qualquer coisa */
nav.cat-nav,
#catNav,
.cat-nav {
  background: var(--cat-bg) !important;
  color: var(--cat-pill-text, #7d3c44) !important;
}

.supports-backdrop-filter nav.cat-nav,
.supports-backdrop-filter #catNav,
.supports-backdrop-filter .cat-nav {
  background: rgba(255, 255, 255, 0.18) !important;
}

.no-backdrop-filter nav.cat-nav,
.no-backdrop-filter #catNav,
.no-backdrop-filter .cat-nav {
  background: rgba(255, 255, 255, 0.96) !important;
}

/* ===== SUCO CARDS - LAYOUT LIMPO ===== */
.suco-card-simple {
  cursor: pointer;
  transition: all 0.2s ease;
}

.suco-card-simple:hover {
  transform: translateY(-2px) scale(1.02);
}

.product-price-range {
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  color: var(--primary);
  opacity: 0.8;
}

/* Layout responsivo para sucos */
#grid-sucos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  #grid-sucos {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1024px) {
  #grid-sucos {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* ===== MODAL DE SUCO ===== */
.suco-modal-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: block;
  box-shadow: var(--shadow);
}

.suco-modal-tamanhos {
  margin: 20px 0;
}

.tamanho-title {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  text-align: center;
}

.tamanho-options {
  display: flex;
  gap: 12px;
}

.tamanho-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--gray-100);
}

.tamanho-option:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
}

.tamanho-option.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.tamanho-option input[type="radio"] {
  display: none;
}

.tamanho-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tamanho-size {
  font-weight: 700;
  font-size: var(--font-base);
  color: var(--dark);
}

.tamanho-price {
  font-weight: 800;
  font-size: var(--font-sm);
  color: var(--primary);
}

.tamanho-option.selected .tamanho-size,
.tamanho-option.selected .tamanho-price {
  color: var(--primary);
}

.modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin: 16px 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-radius: 12px;
}

.total-label {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--dark);
}

.total-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

/* Glass Effects para modal de suco */
.supports-backdrop-filter .tamanho-option {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 120, 0, 0.2);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
}

.supports-backdrop-filter .tamanho-option:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 120, 0, 0.4);
}

.supports-backdrop-filter .tamanho-option.selected {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.6);
}

.no-backdrop-filter .tamanho-option {
  background: rgba(255, 255, 255, 0.95);
}

.no-backdrop-filter .tamanho-option.selected {
  background: rgba(255, 107, 53, 0.1);
}

/* ===== SISTEMA DE MODAIS - PADRÃO WHATSAPP ===== */
/* Z-index hierarchy: ads < modals(2147483647) - valor máximo do CSS */

.modal, .payment-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483647; /* Valor máximo - sempre acima de tudo */
  align-items: flex-start; /* Alinhado ao topo */
  justify-content: center;
  padding: 20px 16px; /* Margens laterais e superiores */
  background: rgba(0, 0, 0, 0.6); /* Preto 60% opacidade */
  animation: modalFadeIn 0.25s ease-out;
}

.modal.show, .payment-modal.show {
  display: flex !important;
}

/* Container de conteúdo - altura máxima 70vh */
.modal-content, .payment-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px; /* Bordas mais suaves */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.25s ease-out;
  overflow: hidden;
  
  /* Layout fixo para mobile */
  width: 100%;
  max-width: 400px;
  max-height: 55vh; /* Altura máxima 70% */
  
  /* Layout interno flexível */
  display: flex;
  flex-direction: column;
}

/* Cabeçalho com padding fixo */
.modal-header, .payment-modal-header {
  position: relative;
  background: #fff;
  padding: 8px 20px 8px;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

/* Corpo com scroll e padding fixo */
.modal-body, .payment-modal-body {
  flex: 1;
  padding: 16px; /* Padding fixo 16px */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Rodapé sticky com padding fixo */
.modal-footer, .payment-modal-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 16px; /* Padding fixo 16px */
  border-top: 1px solid #e5e5e5;
  flex-shrink: 0;
}

/* Footer específico do modal de pagamento - layout horizontal */
.payment-modal-footer {
  @apply flex items-center justify-between gap-4 flex-nowrap;
}

/* Animações rápidas - 200-250ms */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== TIPOGRAFIA PADRÃO WHATSAPP ===== */
.modal-title, .payment-modal-title {
  font-size: var(--font-base);
  font-weight: var(--weight-semibold);
  text-align: left;
  margin: 0;
  color: #111;
  line-height: 1.3;
}

.modal-desc, .modal-text {
  font-size: var(--font-sm); /* Texto padrão ≈ 14px regular */
  font-weight: 400;
  color: #555;
  line-height: 1.4;
  margin: 12px 0;
}
.button-zap{
  width: 24px;
  color: white;
};

.modal-section {
  margin: 16px 0; /* Espaçamento vertical consistente */
}
.modal textarea{width:100%;height:120px;padding:14px;border:2px solid var(--gray-300);border-radius:12px;font-size:var(--font-base);font-family:inherit;resize:vertical;transition:var(--transition)}
.modal textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(255,107,53,.1)}
.modal-actions{display:flex;gap:12px;margin-top:14px}
.modal-btn{flex:1;padding:12px 20px;border:none;border-radius:10px;font-size:var(--font-base);font-weight:var(--weight-bold);cursor:pointer;transition:var(--transition)}
.modal-btn.primary{background:var(--primary);color:#fff}
.modal-btn.secondary{background:var(--gray-200);color:var(--dark)}
@media (max-width:420px){.modal-content{width:96vw;padding:20px}}

/* Animações para modais */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== PAYMENT MODAL ===== */
/* Layout específico do modal de pagamento */
.payment-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.close-payment-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  font-size: var(--font-base);
  color: var(--gray-600);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-payment-modal:hover {
  background: #e9ecef;
  transform: scale(1.1);
}

/* Lista de itens do pedido */
.order-items-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e9ecef;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e9ecef;
  font-size: var(--font-sm);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-name {
  flex: 1;
  margin-right: 12px;
  font-weight: 500;
}

.order-item-qty {
  color: var(--gray-600);
  margin-right: 12px;
  font-weight: 600;
  min-width: 30px;
}

.order-item-price {
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
  text-align: right;
}

/* ===== GRID DE PAGAMENTO 2x2 - SEM ÍCONES ===== */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Sempre 2 colunas */
  gap: 8px;
  margin: 16px 0;
}

.payment-option {
  position: relative;
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
  /* Tamanho fixo e área de toque mínima 44x44px */
  width: 100%;
  height: 50px; /* Altura ligeiramente reduzida */
  min-height: 44px; /* Área mínima de toque */
  
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  
  /* Tipografia padrão WhatsApp */
  font-size: var(--font-sm);
  font-weight: 500;
  color: #374151;
  text-align: center;
  line-height: 1.2;
  
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

/* Estado normal - sem hover */
.payment-option input:checked + label {
  border-color: #25D366; /* Verde WhatsApp */
  background: #f0fdf4; /* Verde muito claro */
  color: #166534; /* Verde escuro */
}

/* Estado pressionado - touch feedback */
.payment-option:active label {
  transform: scale(0.98);
  background: #f3f4f6;
}

.payment-option input:checked:active + label {
  background: #dcfce7; /* Verde claro no touch */
}


/* ===== BOTÃO WHATSAPP FIXO NO MODAL ===== */
.whatsapp-checkout-btn {
  width: 100%;
  padding: 14px 16px;
  background: #25D366; /* Cor sólida WhatsApp */
  color: white;
  border: none;
  border-radius: 8px;

  /* Tipografia padrão WhatsApp */
  font-size: var(--font-base);
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease; /* Transição rápida */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  /* Área mínima de toque */
  min-height: 44px;
}

/* Botão no footer - usando Tailwind */
.payment-modal-footer .whatsapp-checkout-btn {
  @apply w-auto flex-none min-w-36 max-w-48;
}

/* Estado pressionado - sem hover */
.whatsapp-checkout-btn:active:not(:disabled) {
  transform: scale(0.98);
  background: #128C7E; /* Verde mais escuro */
}

.whatsapp-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.whatsapp-checkout-btn .whatsapp-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ===== MODAL DE CONFIRMAÇÃO ===== */
.confirmation-modal {
  z-index: 2147483647 !important; /* Valor máximo - sempre acima de tudo */
}

.confirmation-modal .modal-content {
  width: min(90vw, 320px);
  max-width: 320px; /* Limitado para telas pequenas */
  text-align: center;
  padding: 0;
}

.confirmation-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* Espaçamento consistente */
}

/* Container da animação com fallback */
.check-animation {
  width: 80px;
  height: 80px;
  max-width: 200px; /* Máximo em telas pequenas */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animação SVG fallback */
.check-animation svg {
  width: 100%;
  height: 100%;
}

/* Títulos padrão WhatsApp */
.confirmation-title {
  font-size: var(--font-base); /* ≈ 16px semi-bold */
  font-weight: 600;
  color: #25D366;
  margin: 0;
  line-height: 1.3;
}

.confirmation-subtitle {
  font-size: var(--font-sm); /* ≈ 14px regular */
  font-weight: 400;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Container para Lottie quando carregado */
.lottie-container {
  width: 80px;
  height: 80px;
  max-width: 200px;
}

/* Oculta SVG quando Lottie está presente */
.lottie-container + svg {
  display: none;
}

.total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin: 10px 0;
}

/* Total section no footer do modal - usando Tailwind */
.payment-modal-footer .total-section {
  @apply bg-transparent p-0 m-0 flex-none;
}

.payment-modal-footer .total-label {
  @apply mr-2;
  font-size: var(--font-sm);
  font-weight: 600;
  color: #495057;
}

.payment-modal-footer .total-value {
  font-size: var(--font-lg);
  font-weight: 700;
  color: #ff6b35;
}

.total-label {
  font-size: var(--font-base);
  font-weight: 600;
  color: #495057;
}

.total-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff6b35;
}

/* Payment modal specific adjustments */
.payment-modal-body .total-section {
  padding: 12px;
  margin: 12px 0;
}

.payment-modal-body .total-label {
  font-size: var(--font-sm);
}

.payment-modal-body .total-value {
  font-size: var(--font-lg);
}

.payment-modal-body .payment-title {
  font-size: var(--font-sm);
  margin-bottom: 14px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

.payment-modal-body .payment-option label {
  padding: 10px 12px;
  font-size: var(--font-sm);
  min-height: 50px;
}

/* ===== BUTTONS ===== */
.observations-btn {
  width: 100%;
  padding: 14px;
  border: 2px dashed #ced4da;
  border-radius: 12px;
  background: #f8f9fa;
  color: #6c757d;
  font-size: var(--font-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.observations-btn:hover {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
  color: #ff6b35;
}

.observations-btn.has-content {
  border-style: solid;
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  border-color: #ff6b35;
}

.checkout-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #00d084, #00b572);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: var(--font-base);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

.checkout-btn:disabled {
  background: #adb5bd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.payment-modal-body .observations-btn {
  padding: 10px;
  font-size: var(--font-sm);
  margin-top: 10px;
}

.payment-modal-body .checkout-btn {
  padding: 14px 20px;
  font-size: var(--font-sm);
  margin-top: 14px;
}

/* ===== FLOATING CART BUTTON ===== */
.floating-cart-btn {
  position: fixed !important;
  bottom: 250px !important;
  right: 20px !important;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000 !important;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  overflow: visible !important;
}

.supports-backdrop-filter .floating-cart-btn {
  background: rgba(200, 17, 1, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow: 0 6px 20px rgba(200, 17, 1, 0.4);
}

.no-backdrop-filter .floating-cart-btn {
  background: linear-gradient(135deg, #c81101, #d78f00);
  box-shadow: 0 6px 20px rgba(200, 17, 1, 0.5);
}

.floating-cart-btn.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.floating-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(200, 17, 1, 0.6);
}

.floating-cart-btn.pulse {
  animation: pulse-cart 2s infinite;
}

@keyframes pulse-cart {
  0%, 70%, 100% { transform: scale(1); }
  35% { transform: scale(1.15); }
}

.cart-badge {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background: var(--danger) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: bold !important;
  padding: 4px 6px !important;
  border-radius: 12px !important;
  min-width: 18px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
  z-index: 1001 !important;
  overflow: visible !important;
}


/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .main {
    padding: 20px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 12px;
    gap: 12px;
  }

  .product-image {
    width: 80px;
    height: 80px;
  }

  .header h1 {
    font-size: 1.4rem;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .section-title,
  .section-first-header-title {
    font-size: var(--font-lg);
    margin: 30px 0 4px;
  }

  .promo-card {
    flex: 0 0 260px;
  }

  .payment-modal-content {
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    height: auto;
    max-height: 90vh;
  }

  .payment-modal-body {
    padding: 12px;
  }

  .payment-modal-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px 16px;
    background-color: var(--glass-bg);
  }

  #catNav {
    padding: 0 12px;
  }

  .cat-pill {
    padding: 6px 12px;
    font-size: var(--font-sm);
    margin-right: 8px;
  }
}


@media (max-width: 768px) {
  .modal, .payment-modal {
    /* Sua regra de safe-area entra aqui, pois é relevante para mobile */
    padding: env(safe-area-inset-top, 10px) env(safe-area-inset-right, 10px) max(env(safe-area-inset-bottom, 10px), 100px) env(safe-area-inset-left, 10px);
  }
}


/* ===== RESPONSIVIDADE DOS MODAIS ===== */
@media (max-width: 480px) {
 
  
  .modal-content, .payment-modal-content {
    width: min(95vw, 380px);
    max-height: calc(100vh - 240px);
  }
  
  
  .modal-body, .payment-modal-body {
    padding: 16px 20px;
  }
  
  .modal-footer, .payment-modal-footer {
    padding: 12px 20px 16px;
  }
  
  .payment-options {
    gap: 8px;
  }
  
  .payment-option label {
    padding: 12px 6px;
    min-height: 70px;
    font-size: var(--font-sm);
  }
  
  .floating-cart-btn {
    bottom: 200px !important;
    right: 16px !important;
    width: 56px;
    height: 56px;
  }

  .product-card {
    padding: 10px;
    gap: 10px;
  }

  .product-image {
    width: 80px;
    height: 80px;
  }

  .quantity-selector {
    gap: 6px;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
    font-size: var(--font-base);
  }

  .quantity-display {
    width: 40px;
    height: 40px;
    font-size: var(--font-base);
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .product-card {
    border: 2px solid var(--dark);
  }

  .glass-effect {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-cart-btn.pulse {
    animation: none;
  }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.product-card:focus,
.quantity-btn:focus,
.quantity-display:focus,
.payment-option label:focus-within,
.cat-pill:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.modal-footer-safe-area {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

.floating-cart-btn:focus {
  outline: 3px solid white;
  outline-offset: 2px;
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Esconde o conteúdo inicialmente durante o splash */
body.splash-active main,
body.splash-active header {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.splash-active main.show-content,
body.splash-active header.show-content {
  opacity: 1;
}
