/* ============================================================
   apps/web-consumer/public/assets/css/main.css
   WeFood Delivery — Design System Oficial do Consumidor
   Paridade Estrita com apps/wefood (jornada do consumidor)
   e tokens centrais do DESIGN.md
   ============================================================ */

/* ── 1. Google Fonts: Outfit ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── 2. Tokens Centrais de Design System ──────────────────── */
:root {
  /* Marca WeFood Oficial (Vermelho Gourmet & Laranja Delivery) */
  --color-wefood-primary:      #E53935;
  --color-wefood-primary-dark: #C62828;
  --color-wefood-secondary:    #FF6D00;
  --color-wefood-accent:       #FFC107;
  --color-wefood-light:        #FFF5F5;
  --color-wefood-border:       #FEE2E2;

  /* Aliases de compatibilidade */
  --color-wefood:              var(--color-wefood-primary);
  --color-red:                 var(--color-closed-red);
  --color-green:               var(--color-open-green);
  --color-orange:              var(--color-wefood-secondary);

  /* Neutros & Superfícies */
  --color-bg:                  #FAFAFA;
  --color-surface:             #FFFFFF;
  --color-surface-elevated:    #F8FAFC;
  --color-border:              #E5E7EB;
  --color-border-subtle:       #F3F4F6;
  --color-divider:             #F1F5F9;

  /* Tipografia & Contrastes */
  --color-text-primary:        #1F2937;
  --color-text-secondary:      #6B7280;
  --color-text-muted:          #9CA3AF;

  /* Status & Feedbacks Operacionais */
  --color-open-green:          #10B981;
  --color-open-green-bg:       #DCFCE7;
  --color-closed-red:          #EF4444;
  --color-closed-red-bg:       #FEE2E2;
  --color-warning-amber:       #F59E0B;
  --color-warning-amber-bg:    #FEF3C7;
  --color-info-blue:           #0284C7;
  --color-info-blue-bg:        #E0F2FE;

  /* 5 SegmentThemes Dinâmicos (Paridade Estrita com Mobile Flutter) */
  --seg-food-primary:          #E11D48;
  --seg-food-secondary:        #FB7185;
  --seg-food-accent:           #FF9800;
  --seg-food-light-bg:         #FFF1F2;
  --seg-food-surface-bg:       #FFE4E6;

  --seg-drinks-primary:        #D97706;
  --seg-drinks-secondary:      #F59E0B;
  --seg-drinks-accent:         #FBBF24;
  --seg-drinks-light-bg:       #FFFBEB;
  --seg-drinks-surface-bg:     #FEF3C7;

  --seg-market-primary:        #16A34A;
  --seg-market-secondary:      #4ADE80;
  --seg-market-accent:         #84CC16;
  --seg-market-light-bg:       #F0FDF4;
  --seg-market-surface-bg:     #DCFCE7;

  --seg-pharmacy-primary:      #059669;
  --seg-pharmacy-secondary:    #34D399;
  --seg-pharmacy-accent:       #14B8A6;
  --seg-pharmacy-light-bg:     #ECFDF5;
  --seg-pharmacy-surface-bg:   #D1FAE5;

  --seg-shops-primary:         #7C3AED;
  --seg-shops-secondary:       #A78BFA;
  --seg-shops-accent:          #D946EF;
  --seg-shops-light-bg:        #FAF5FF;
  --seg-shops-surface-bg:      #F3E8FF;

  /* Espaçamento Canônico */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Bordas Arredondadas */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Sombras Profissionais */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.15);

  /* Transições Suaves */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 3. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ── 4. Layout & Grid Containers ──────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* ── 5. Header Principal Clean ────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 68px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
}

.header-logo-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.header-logo-highlight {
  color: var(--color-wefood-primary);
}

.header-location-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

@media (min-width: 860px) {
  .header-location-badge {
    display: inline-flex;
  }
}

.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  margin: 0 var(--space-2);
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 var(--space-4) 0 42px;
  background: var(--color-border-subtle);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.header-search input:focus {
  background: var(--color-surface);
  border-color: var(--color-wefood-primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.header-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-wefood-light);
  border: 1.5px solid var(--color-wefood-border);
  border-radius: var(--radius-full);
  color: var(--color-wefood-primary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  background: #FEE2E2;
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--color-wefood-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-wefood-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-header-login:hover {
  background: var(--color-wefood-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.btn-header-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-header-outline:hover {
  border-color: var(--color-wefood-primary);
  color: var(--color-wefood-primary);
}

.btn-header-logout {
  color: var(--color-text-muted);
}

.btn-header-logout:hover {
  border-color: var(--color-closed-red);
  color: var(--color-closed-red);
}

/* ── 6. Barra de Segmentos / Verticais ────────────────────── */
.segment-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
}

.segment-nav::-webkit-scrollbar {
  display: none;
}

.segment-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 0;
}

.segment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.segment-pill:hover {
  border-color: #D1D5DB;
  color: var(--color-text-primary);
  background: var(--color-surface-elevated);
}

.segment-pill.active {
  font-weight: 800;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Cores específicas ativas de cada segmento com preenchimento sólido e sombra colorida (Paridade Mobile Flutter) */
.segment-pill[data-seg="food"].active {
  background: var(--seg-food-primary);
  border-color: var(--seg-food-primary);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.segment-pill[data-seg="drinks"].active {
  background: var(--seg-drinks-primary);
  border-color: var(--seg-drinks-primary);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.segment-pill[data-seg="market"].active {
  background: var(--seg-market-primary);
  border-color: var(--seg-market-primary);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.segment-pill[data-seg="pharmacy"].active {
  background: var(--seg-pharmacy-primary);
  border-color: var(--seg-pharmacy-primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.segment-pill[data-seg="shops"].active {
  background: var(--seg-shops-primary);
  border-color: var(--seg-shops-primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* ── 6.1 Sub-Header de Identificação do Módulo Ativo (Paridade Mobile Flutter) ── */
.module-active-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 6px 0;
}

.module-active-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.module-active-info {
  flex: 1;
  min-width: 0;
}

.module-active-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.module-active-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stores-section {
  margin-bottom: var(--space-10);
}

/* ── 7. Hero Banner Gastronômico / Temático ────────────────── */
.hero-vertical-banner {
  margin: var(--space-4) 0 var(--space-3) 0;
  padding: 20px 24px;
  border-radius: var(--radius-xl);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .hero-vertical-banner {
    padding: 28px 36px;
    margin: var(--space-6) 0 var(--space-4) 0;
  }
}

.hero-vertical-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  z-index: 2;
}

.hero-vertical-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-vertical-content {
  flex: 1;
}

.hero-vertical-badge {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-vertical-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .hero-vertical-title {
    font-size: 1.65rem;
  }
}

.hero-vertical-subtitle {
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.4;
  max-width: 600px;
}

/* ── 8. Carrossel de Subfiltros de Especialidades ─────────── */
.quick-filters-bar {
  margin-bottom: var(--space-6);
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-filters-bar::-webkit-scrollbar {
  display: none;
}

.quick-filters-inner {
  display: flex;
  gap: var(--space-2);
  padding: 4px 0;
}

.quick-filter-chip {
  padding: 7px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.quick-filter-chip:hover {
  background: var(--color-surface-elevated);
  border-color: #CBD5E1;
  color: var(--color-text-primary);
}

.quick-filter-chip.active {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: white;
  font-weight: 700;
}

/* ── 9. Grid e Cards de Estabelecimentos (FoodStoreCard) ──── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.3px;
}

.section-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1080px) {
  .stores-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* Card Horizontal Idêntico ao FoodStoreCard do Flutter */
.store-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.store-logo-wrapper {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border);
}

.store-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.store-info {
  flex: 1;
  min-width: 0;
}

.store-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.store-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-status.open {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-open-green);
}

.badge-status.closed {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-closed-red);
}

.store-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.store-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.store-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.store-rating .star {
  color: var(--color-wefood-accent);
}

.store-delivery {
  font-weight: 600;
}

.store-delivery.free {
  color: var(--color-open-green);
  font-weight: 700;
}

.store-min {
  color: var(--color-text-muted);
}

/* ── 10. Página do Restaurante / Cardápio (`restaurant.php`) ── */
.restaurant-hero {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #1E293B;
}

@media (min-width: 768px) {
  .restaurant-hero {
    height: 220px;
  }
}

.restaurant-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.restaurant-hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.2;
}

.restaurant-header-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0 20px 0;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.restaurant-header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: 0;
}

.restaurant-header-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.restaurant-header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-header-info {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.restaurant-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.restaurant-slogan {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.restaurant-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Categorias do Cardápio Sticky */
.menu-categories-nav {
  position: sticky;
  top: 68px;
  z-index: 95;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.menu-categories-inner {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.menu-categories-inner::-webkit-scrollbar {
  display: none;
}

.menu-category-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.menu-category-btn:hover,
.menu-category-btn.active {
  background: var(--color-wefood-light);
  color: var(--color-wefood-primary);
  font-weight: 700;
}

/* ── 11. Cards de Produtos Estilo iFood / WeFood Mobile ────── */
.category-block {
  margin-bottom: var(--space-8);
}

.category-block-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border-subtle);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

.product-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  border-color: var(--color-wefood-primary);
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.08);
  transform: translateY(-1px);
}

.product-card-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-wefood-primary);
}

.product-price.promo {
  color: var(--color-open-green);
}

.badge-paused {
  font-size: 0.72rem;
  color: var(--color-closed-red);
  font-weight: 700;
  margin-left: 4px;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.product-price-from {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.product-old-price {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card-right {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border);
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--color-border-subtle);
}

.menu-products-section {
  padding-bottom: var(--space-12);
}

.btn-add-plus {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-wefood-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.product-card:hover .btn-add-plus {
  transform: scale(1.1);
  background: var(--color-wefood-primary-dark);
}

/* ── 12. Modal de Produto & Grupos de Adicionais ─────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  transition: opacity var(--transition-base);
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-box {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  position: relative;
  animation: modalSlideUp 0.25s ease-out;
}

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

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4) auto;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.addon-group {
  margin-bottom: var(--space-5);
}

.addon-group-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
}

.addon-badge-required {
  color: var(--color-closed-red);
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.addon-badge-optional,
.addon-badge-max {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 6px;
}

.addon-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.addon-label:hover {
  border-color: var(--color-wefood-primary);
  background: var(--color-wefood-light);
}

.addon-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.addon-input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-wefood-primary);
  cursor: pointer;
}

.addon-name {
  font-size: 0.9rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.addon-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-wefood-primary);
}

.addon-price.free {
  color: var(--color-text-muted);
  font-weight: 500;
}

.modal-footer-box {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
}

.modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.modal-total-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
}

.modal-total-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-text-primary);
}

/* ── 13. Botões Universais & Formulários ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-wefood-primary);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.25);
}

.btn-primary:hover {
  background: var(--color-wefood-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.btn-outline:hover {
  border-color: var(--color-wefood-primary);
  color: var(--color-wefood-primary);
  background: var(--color-wefood-light);
}

.btn-full {
  width: 100%;
}

.btn-lg {
  height: 50px;
  font-size: 1rem;
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-wefood-primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 14. Drawer da Sacola / Carrinho ──────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 250;
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  z-index: 260;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.btn-close-drawer {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-border-subtle);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-drawer:hover {
  background: #FEE2E2;
  color: var(--color-closed-red);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-primary);
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 8px;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: white;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.cart-qty-num {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 16px;
  text-align: center;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-wefood-primary);
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cart-empty-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.cart-empty-sub {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.cart-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.cart-total-label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.cart-total-value {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--color-wefood-primary);
}

/* ── 15. Página de Checkout (`cart.php`) ───────────────────── */
.checkout-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.checkout-page-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.checkout-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.checkout-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.checkout-items-list {
  margin-bottom: var(--space-4);
}

.checkout-item-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-divider);
}

.checkout-item-qty-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-primary);
}

.checkout-item-addons {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.checkout-item-price {
  font-weight: 700;
  color: var(--color-wefood-primary);
}

.checkout-totals-box {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 1.15rem;
  margin-top: 12px;
  color: var(--color-text-primary);
}

.checkout-total-val {
  color: var(--color-wefood-primary);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option:hover {
  border-color: var(--color-wefood-primary);
  background: var(--color-wefood-light);
}

.payment-option.active {
  border-color: var(--color-wefood-primary);
  background: var(--color-wefood-light);
  box-shadow: 0 0 0 1px var(--color-wefood-primary);
}

.payment-radio {
  width: 18px;
  height: 18px;
  accent-color: var(--color-wefood-primary);
}

.payment-option-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.change-group {
  margin-top: var(--space-4);
}

.checkout-auth-gate {
  background: var(--color-wefood-light);
  border: 1.5px solid var(--color-wefood-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  text-align: center;
}

.checkout-auth-title {
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.checkout-empty-state {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-muted);
}

.checkout-empty-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-3);
}

.checkout-empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

/* ── 16. Histórico de Pedidos (`orders.php`) ───────────────── */
.orders-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.orders-page-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

.order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.order-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.order-card-store {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text-primary);
}

.order-card-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.order-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.order-card-total {
  color: var(--color-wefood-primary);
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.order-status-badge.status-pending {
  background: #FEF3C7;
  color: #D97706;
}

.order-status-badge.status-preparing {
  background: #E0F2FE;
  color: #0284C7;
}

.order-status-badge.status-ready {
  background: #DCFCE7;
  color: #16A34A;
}

.order-status-badge.status-delivering {
  background: #F3E8FF;
  color: #7C3AED;
}

.order-status-badge.status-delivered {
  background: #DCFCE7;
  color: #10B981;
}

.order-status-badge.status-cancelled {
  background: #FEE2E2;
  color: #EF4444;
}

.order-card-items-summary {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.order-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── 17. Rastreio de Entrega (`tracking.php`) ─────────────── */
.tracking-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.tracking-page-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.tracking-header {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.tracking-status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-5);
}

.tracking-status-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

.tracking-status-sub {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  margin-top: 2px;
}

.tracking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-border-subtle);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.step-circle.done {
  background: var(--color-open-green);
  border-color: var(--color-open-green);
  color: white;
  font-weight: 900;
}

.step-circle.active {
  background: var(--color-wefood-primary);
  border-color: var(--color-wefood-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
}

.step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.step-connector {
  flex: 1;
  height: 3px;
  background: var(--color-border);
  margin: -16px 6px 0 6px;
  z-index: 1;
}

.step-connector.done {
  background: var(--color-open-green);
}

#tracking-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.tracking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-xs);
}

.tracking-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.tracking-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.9rem;
}

.tracking-item-price {
  font-weight: 700;
}

.tracking-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 900;
  font-size: 1.05rem;
}

.tracking-total-val {
  color: var(--color-wefood-primary);
}

.tracking-address-text {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.tracking-back-link {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  transition: color var(--transition-fast);
}

.tracking-back-link:hover {
  color: var(--color-wefood-primary);
}

/* ── 18. Página de Autenticação (`auth.php`) ───────────────── */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-md);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--space-6);
}

.auth-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-text-primary);
}

.auth-logo-sub {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab:hover {
  color: var(--color-text-primary);
}

.auth-tab.active {
  color: var(--color-wefood-primary);
  border-bottom-color: var(--color-wefood-primary);
}

.auth-instruction {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  margin-bottom: var(--space-5);
  line-height: 1.4;
}

.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.otp-box {
  width: 46px;
  height: 52px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.otp-box:focus {
  border-color: var(--color-wefood-primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.btn-auth-back {
  margin-top: var(--space-4);
  width: 100%;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.btn-auth-back:hover {
  color: var(--color-text-primary);
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
}

.auth-terms {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.auth-skip-link {
  display: block;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.auth-skip-link:hover {
  color: var(--color-wefood-primary);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--space-6) 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

/* ── 19. Empty States & Página de Erro (`404.php`) ─────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

.error-page {
  text-align: center;
  padding: 6rem 1rem;
  color: var(--color-text-muted);
}

.error-icon {
  font-size: 5rem;
  margin-bottom: var(--space-4);
}

.error-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.error-desc {
  margin-bottom: var(--space-6);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* ── 20. Toasts de Notificação (`app.js`) ──────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  background: #1F2937;
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastSlideIn 0.25s ease-out;
}

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

.toast-info {
  background: #1F2937;
  border-left: 4px solid var(--color-info-blue);
}

.toast-error {
  background: #991B1B;
  border-left: 4px solid var(--color-closed-red);
}

.toast-success {
  background: #065F46;
  border-left: 4px solid var(--color-open-green);
}

.hidden {
  display: none !important;
}

/* ── 21. Rodapé Oficial ───────────────────────────────────── */
.site-footer {
  margin-top: var(--space-12);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-wefood-primary);
}

.footer-copy {
  margin-top: var(--space-4);
  font-size: 0.78rem;
  opacity: 0.6;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   RESTAURANT PAGE REDESIGN — WEFOOD REFINED STORE THEME
   Mobile-First, High-Conversion, Full Parity with WeFood tokens
   ============================================================ */

/* ── Linha 1: Header do Estabelecimento (Mobile-First) ────── */
.header-inner.store-top-bar {
  height: 56px;
  gap: 8px;
  flex-wrap: nowrap;
}

.store-top-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.store-top-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--color-border-subtle);
  color: var(--color-text-secondary);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.store-top-back-btn:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.store-top-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
  background: var(--color-surface);
}

.store-top-logo-fallback {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--color-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.store-top-identity {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.store-top-name {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

@media (min-width: 480px) {
  .store-top-name {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .store-top-name {
    font-size: 1.05rem;
  }
}

.store-top-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
  white-space: nowrap;
}

.store-top-status.is-open {
  color: var(--color-open-green);
}

.store-top-status.is-closed {
  color: var(--color-closed-red);
}

.store-top-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.store-top-status.is-open .store-top-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: currentColor;
  animation: store-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.store-top-bar .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.store-top-bar .cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.store-top-bar .cart-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.store-top-bar .cart-badge {
  min-width: 17px;
  height: 17px;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0 4px;
  border-radius: var(--radius-full);
  line-height: 17px;
  margin-left: 2px;
}

.store-top-bar .btn-header-login,
.store-top-bar .btn-header-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  height: 32px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  .store-top-bar .cart-btn #cart-label {
    display: none;
  }
  .store-top-bar .cart-btn {
    padding: 5px 8px;
  }
  .store-top-bar .btn-header-login,
  .store-top-bar .btn-header-outline {
    padding: 5px 9px;
    font-size: 0.74rem;
  }
}

/* ── Status Pill Animado com Ping Dot ────────────────────── */
.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-open-green);
  background: var(--color-open-green-bg);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.store-status-pill.closed {
  color: var(--color-closed-red);
  background: var(--color-closed-red-bg);
  border-color: rgba(239, 68, 68, 0.25);
}

.store-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
  flex-shrink: 0;
}

.store-status-pill.open .store-status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: store-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes store-ping {
  75%, 100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ── Hero Card de Ação Rápida ────────────────────────────── */
.store-hero-card {
  position: relative;
  overflow: hidden;
  margin: var(--space-3) 0 var(--space-4) 0;
  padding: 16px 14px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .store-hero-card {
    padding: 24px 28px;
    margin: var(--space-4) 0 var(--space-5) 0;
  }
}

.store-hero-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  text-align: center;
}

.store-hero-location svg {
  color: var(--store-accent, var(--color-wefood-primary));
  flex-shrink: 0;
}

.store-hero-city {
  letter-spacing: -0.01em;
}

.store-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 14px;
  text-align: center;
}

@media (min-width: 768px) {
  .store-hero-title {
    font-size: 1.6rem;
  }
}

.store-hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--store-accent, var(--color-wefood-primary)), var(--color-wefood-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-hero-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

/* ── Duplo CTA (WhatsApp + Monte seu Pedido) ──────────────── */
.store-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 640px) {
  .store-hero-actions {
    flex-direction: row;
    align-items: stretch;
  }
}

.store-cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex: 1;
}

.store-cta-btn:active {
  transform: scale(0.98);
}

.store-cta-wa {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.6);
  position: relative;
  overflow: hidden;
}

.store-cta-wa:hover {
  background: #20BD5A;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.75);
}

.store-cta-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.store-cta-wa .store-cta-icon-box {
  background: rgba(0, 0, 0, 0.12);
  color: #FFFFFF;
}

.store-cta-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-cta-heading {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.store-cta-sub {
  font-size: 0.76rem;
  opacity: 0.9;
  font-weight: 500;
}

.store-cta-arrow {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.store-cta-build {
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-primary);
}

.store-cta-build:hover {
  border-color: var(--store-accent, var(--color-wefood-primary));
  background: var(--color-surface);
}

.store-cta-build .store-cta-icon-box {
  background: rgba(229, 57, 53, 0.08);
  color: var(--store-accent, var(--color-wefood-primary));
}

.store-cta-build .store-cta-arrow {
  color: var(--store-accent, var(--color-wefood-primary));
  animation: store-bounce 1.8s infinite;
}

@keyframes store-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.store-divider-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .store-divider-or {
    padding: 0 4px;
  }
}

/* ── Grid de Métricas em 3 Colunas ────────────────────────── */
.store-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .store-metrics-grid {
    gap: 14px;
  }
}

.store-metric-item {
  padding: 10px 8px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.store-metric-item:hover {
  border-color: var(--color-border);
}

.store-metric-icon {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  color: var(--store-accent, var(--color-wefood-primary));
}

.store-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  display: block;
}

.store-metric-value {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.store-metric-fee-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.2;
}

.store-metric-fee-container .store-metric-value {
  display: inline-block;
  white-space: nowrap;
}

.store-metric-old-fee {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: line-through;
  opacity: 0.85;
  white-space: nowrap;
}

/* ── Barra de Pesquisa de Cardápio (Abaixo do Banner Principal) */
.store-search-bar-wrap {
  margin: 0 0 var(--space-4) 0;
}

.store-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.store-search-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  pointer-events: none;
}

.store-search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--color-text-primary);
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.store-search-input:focus {
  background: var(--color-surface);
  border-color: var(--store-accent, var(--color-wefood-primary));
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.store-search-clear {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.store-search-clear:hover {
  background: var(--color-text-muted);
  color: #FFFFFF;
}

/* ── Toolbar Sticky: Categorias com Contadores ────────────── */
.store-toolbar-sticky {
  position: sticky;
  top: 56px;
  z-index: 95;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.store-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.store-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.store-tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-border-subtle);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.store-tab-btn:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.store-tab-btn.active {
  background: var(--store-accent, var(--color-wefood-primary));
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px -2px rgba(229, 57, 53, 0.35);
}

.store-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

.store-tab-btn.active .store-tab-count {
  opacity: 1;
}

/* ── Badge de Itens na Sacola sobre a Foto do Produto ─────── */
.product-card-right {
  position: relative;
}

.product-incart-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #16A34A;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: none;
}

.product-incart-badge.has-items {
  display: block;
}

/* ── Barra Flutuante da Sacola (Sticky Cart Bar) ──────────── */
.store-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0 var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(140%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-cart-bar.is-visible {
  transform: translateY(0);
}

.store-cart-bar-inner {
  pointer-events: auto;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xl);
  background: rgba(31, 41, 55, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.store-cart-bar-inner:active {
  transform: scale(0.985);
}

.store-cart-bar-count {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--store-accent, var(--color-wefood-primary));
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.store-cart-bar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.store-cart-bar-total {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.store-cart-bar-hint {
  font-size: 0.74rem;
  color: #FBBF24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-cart-bar-hint.ok {
  color: #34D399;
}

.store-cart-bar-cta {
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--color-open-green);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ── Card Institucional no Rodapé da Loja ─────────────────── */
.store-footer-card {
  margin: var(--space-8) 0 var(--space-4) 0;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.store-footer-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.store-footer-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.store-footer-card-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.store-footer-card-item svg,
.store-footer-card-item span.icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--store-accent, var(--color-wefood-primary));
}
