/* ==========================================================================
   TEMA MINIMALISTA ESTILO IFOOD • PASTELÍCIA
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-muted: #f1f5f9;
  
  /* iFood Brand Colors */
  --primary: #ea1d2c;
  --primary-hover: #dc2626;
  --primary-light: #fef2f2;
  --primary-border: #fecaca;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --border: #e2e8f0;
  --border-focus: #ea1d2c;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.ifood-body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 75px;
}

.ifood-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   CABEÇALHO ESTILO IFOOD
   ========================================================================== */
.ifood-header {
  position: relative;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.ifood-cover-banner {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #1e293b;
}

@media (min-width: 768px) {
  .ifood-cover-banner {
    height: 180px;
  }
}

.ifood-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.ifood-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.7) 100%);
}

.ifood-top-bar {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.ifood-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ifood-pill-btn {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.15s ease;
}

.ifood-pill-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.ifood-pill-btn.wa {
  color: #16a34a;
}

.ifood-pill-btn.cart {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.ifood-cart-badge {
  background: #ffffff;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* CARD PERFIL DO RESTAURANTE */
.ifood-restaurant-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  margin-top: -35px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.ifood-profile-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ifood-avatar-wrap {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ifood-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.ifood-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ifood-restaurant-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.ifood-verified-tag {
  color: #3b82f6;
  font-size: 1rem;
}

.ifood-restaurant-category {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.ifood-restaurant-category span:first-child {
  color: #f59e0b;
  font-weight: 700;
}

.ifood-slogan-text {
  font-size: 0.82rem;
  color: #475569;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* FAIXA META / SERVIÇOS */
.ifood-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
}

.ifood-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.ifood-badge-status.open {
  background: #dcfce7;
  color: #15803d;
}

.ifood-badge-status.closed {
  background: #fee2e2;
  color: #b91c1c;
}

.ifood-badge-status .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.ifood-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-muted);
  color: var(--text-body);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
}

.ifood-meta-item.clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}

.ifood-meta-item.clickable:hover {
  background: #e2e8f0;
}

.ifood-meta-item.loyalty {
  background: #fef3c7;
  color: #92400e;
}

/* BUSCA RÁPIDA */
.ifood-search-wrap {
  position: relative;
  margin-top: 0.85rem;
}

.ifood-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ifood-search-input {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.ifood-search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.1);
}

/* ==========================================================================
   CARROSSEL DE DESTAQUES
   ========================================================================== */
.ifood-highlights-section {
  padding: 1.25rem 0 0.5rem;
}

.ifood-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ifood-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ifood-carousel-arrows {
  display: flex;
  gap: 0.35rem;
}

.btn-carousel-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-carousel-nav:hover {
  background: var(--bg-muted);
  color: var(--primary);
}

.highlights-carousel-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.highlights-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-product-card {
  min-width: 200px;
  max-width: 220px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-product-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.carousel-card-img-wrap {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.carousel-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.carousel-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.carousel-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
}

.carousel-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.btn-carousel-add {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   NAVEGAÇÃO DE CATEGORIAS STICKY + BUSCA + INDICADOR VISUAL PARA LEIGOS
   ========================================================================== */
.ifood-categories-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-body);
  padding: 0.65rem 0 0.55rem;
  border-bottom: 1px solid var(--border);
}

.menu-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.55rem;
}

.menu-search-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.menu-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 2.3rem 0.6rem 2.4rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.menu-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 29, 44, 0.12);
}

.menu-search-clear {
  position: absolute;
  right: 0.65rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.categories-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding: 0 0.15rem;
}

.categories-hint-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.categories-swipe-hint {
  display: none;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  animation: swipeHintPulse 1.8s ease-in-out infinite;
}

@keyframes swipeHintPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.categories-scroller {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.categories-scroller.can-right::after {
  content: '';
  position: absolute;
  right: 34px;
  top: 0;
  bottom: 0;
  width: 28px;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0), var(--bg-body));
  pointer-events: none;
  z-index: 2;
}

.cat-scroll-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.78rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
  z-index: 3;
}

.categories-scroller.has-overflow .cat-scroll-arrow {
  display: inline-flex;
}

.cat-scroll-arrow:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.cat-scroll-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.categories-bar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.25rem 0.15rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.cat-pill-count {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}

.cat-pill.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.catalog-category-section {
  margin-bottom: 1.75rem;
  scroll-margin-top: 145px;
}

.catalog-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.catalog-sec-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.45rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  line-height: 1;
  overflow: hidden;
}

.cat-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(234, 29, 44, 0.3);
}

.cat-pill-img {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.cat-pill.active .cat-pill-img {
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.ifood-category-title {
  margin: 1.25rem 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   GRID DE PRODUTOS ESTILO IFOOD (CARDS HORIZONTAIS LIMPOS)
   ========================================================================== */
.ifood-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

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

.ifood-product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
  position: relative;
  user-select: none;
}

.ifood-product-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ifood-product-card.card-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.ifood-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ifood-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 0.35rem;
}

.ifood-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.ifood-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ifood-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.ifood-price-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ifood-price-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* MÍDIA / IMAGEM DO PRODUTO */
.ifood-card-media {
  position: relative;
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.ifood-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ifood-product-card:hover .ifood-card-img {
  transform: scale(1.04);
}

.ifood-card-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
}

.ifood-card-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.ifood-badge-soldout {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   BARRA FLUTUANTE DA SACOLA
   ========================================================================== */
.ifood-floating-cart {
  position: fixed;
  bottom: 65px;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0 1rem;
  pointer-events: none;
}

.ifood-floating-cart.hidden {
  display: none;
}

.floating-cart-inner {
  max-width: 500px;
  margin: 0 auto;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(234, 29, 44, 0.4);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.floating-cart-inner:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-count-badge {
  background: rgba(255, 255, 255, 0.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.floating-cart-texts {
  display: flex;
  flex-direction: column;
}

.floating-cart-title {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}

.floating-cart-sub {
  font-size: 0.75rem;
  opacity: 0.9;
}

.floating-cart-total {
  font-size: 1.1rem;
  font-weight: 900;
}

/* ==========================================================================
   MODAL BOTTOM SHEET ESTILO IFOOD
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 1rem;
  }
}

.modal-backdrop.open {
  display: flex;
}

.ifood-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .ifood-modal-box {
    border-radius: 20px;
    max-height: 85vh;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  margin: 8px auto 4px;
}

.ifood-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ifood-modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-muted);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.ifood-modal-body {
  overflow-y: auto;
  padding: 1.25rem;
  flex: 1;
}

.ifood-thumb-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.ifood-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ifood-modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.ifood-opt-group {
  margin-bottom: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.ifood-notes-input {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  min-height: 70px;
}

.ifood-notes-input:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.ifood-modal-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.ifood-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-muted);
}

.ifood-qty-stepper .qty-btn {
  width: 36px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.9rem;
}

.ifood-qty-stepper .qty-number {
  min-width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.ifood-btn-confirm {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 29, 44, 0.3);
  transition: all 0.15s ease;
}

.ifood-btn-confirm:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   DRAWER DA SACOLA (IFOOD STYLE)
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 110;
  display: none;
}

.cart-drawer-backdrop.open {
  display: block;
}

.ifood-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ifood-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ifood-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  gap: 0.4rem;
}

.cart-step-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.cart-step-pill.active {
  color: var(--primary);
}

.cart-step-pill.completed {
  color: #16a34a;
}

.cart-step-pill .step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cart-step-pill.active .step-badge {
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(234, 29, 44, 0.35);
}

.cart-step-pill.completed .step-badge {
  background: #16a34a;
}

.cart-step-divider {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  min-width: 8px;
  border-radius: 2px;
}

.cart-step-divider.active {
  background: #16a34a;
}

.ifood-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  position: relative;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-options {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.35;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.45rem;
}

.btn-add-more-items {
  width: 100%;
  background: var(--bg-muted);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  color: var(--text-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.checkout-step-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.checkout-card-header {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.order-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.type-tab {
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
}

.type-tab.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.form-group {
  margin-bottom: 0.5rem;
}

.form-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pay-card {
  background: var(--bg-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.45rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-body);
}

.pay-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.btn-step-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ifood-cart-footer {
  border-top: 1px solid var(--border);
  padding: 1.15rem;
  background: #ffffff;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.bill-row.total {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.cart-min-order-alert {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  color: #92400e;
  margin: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ifood-btn-primary {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  height: 46px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  margin-top: 0.75rem;
  box-shadow: 0 4px 12px rgba(234, 29, 44, 0.3);
  transition: all 0.15s ease;
}

.ifood-btn-primary:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   RODAPÉ E BOTTOM NAV
   ========================================================================== */
.ifood-footer {
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: #ffffff;
  margin-top: 3rem;
}

.ifood-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.45rem 0 0.55rem;
  z-index: 80;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-item i {
  font-size: 1.15rem;
}

.mobile-cart-badge-wrap {
  position: relative;
}

.mobile-cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================================
   ELEMENTOS DINÂMICOS DO MODAL & CARRINHO (ESTILO IFOOD LIMPO)
   ========================================================================== */

/* TOASTS */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  align-items: center;
}

@media (min-width: 640px) {
  .toast-container {
    left: auto;
    align-items: flex-end;
    max-width: 380px;
  }
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.success {
  background: #15803d;
}

.toast.error {
  background: #b91c1c;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* OPÇÕES DO CUSTOMIZADOR */
.options-group {
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
}

.options-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
}

.badge-req {
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.35rem;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

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

.option-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.option-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ITENS DO CARRINHO */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cart-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-options {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.35rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-item-qty {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-item-qty:hover {
  background: #e2e8f0;
}

/* UPSELL DE BEBIDAS */
.cart-drink-upsell-section {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin: 1rem 0;
}

.cart-upsell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.cart-upsell-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-upsell-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.cart-upsell-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.cart-upsell-card {
  min-width: 140px;
  max-width: 140px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75rem;
}

.cart-upsell-thumb {
  width: 100%;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 0.35rem;
}

.cart-upsell-name {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.cart-upsell-price {
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.25rem;
}

.btn-add-upsell {
  margin-top: 0.35rem;
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
}

.btn-add-upsell:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* HORÁRIOS */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  border: 1px solid var(--border);
}

.hours-row.today {
  background: #fef2f2;
  border-color: #fecaca;
  font-weight: 700;
  color: #991b1b;
}

/* FIDELIDADE STAMPS */
.stamp-box {
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 800;
}

.stamp-box.filled {
  background: #ea1d2c;
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(234, 29, 44, 0.3);
}

.stamp-box.filled i {
  font-size: 1.15rem;
}

/* CART ITEM ROW STYLES (IFOOD MINIMAL) */
.empty-cart-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}

.empty-cart-state i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}

.cart-item-row {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-details {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #f1f5f9;
}

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

.cart-upsell-item {
  min-width: 130px;
  max-width: 130px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.cart-upsell-thumb {
  width: 100%;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.35rem;
}

.cart-upsell-meta {
  display: flex;
  flex-direction: column;
}

.cart-upsell-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-upsell-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.15rem;
}

.btn-upsell-add {
  margin-top: 0.4rem;
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-upsell-add:hover {
  background: var(--primary-hover);
}


/* MODAL & DRAWER VISIBILITY FIXES (BOTH .open AND .active) */
.modal-backdrop.open,
.modal-backdrop.active {
  display: flex !important;
}

.cart-drawer-backdrop.open,
.cart-drawer-backdrop.active {
  display: block !important;
}

.cart-drawer-backdrop.open .ifood-cart-drawer,
.cart-drawer-backdrop.active .ifood-cart-drawer,
.cart-drawer-backdrop.open #cartDrawer,
.cart-drawer-backdrop.active #cartDrawer,
.cart-drawer-backdrop.open .cart-drawer,
.cart-drawer-backdrop.active .cart-drawer {
  transform: translateX(0) !important;
}

.cart-step-section {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-step-section.active {
  display: flex !important;
}

.cart-step-section[style*="display: none"] {
  display: none !important;
}

.cart-step-section[style*="display: block"],
.cart-step-section[style*="display: flex"] {
  display: flex !important;
}

#floatingCart.hidden,
.ifood-floating-cart.hidden {
  display: none !important;
}


/* =========================================================
   MELHORIAS PICO DE ALMOÇO: REPETIR PEDIDO 1-CLIQUE, BUSCA & AGENDAMENTO
   ========================================================= */
.client-smart-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 0.65rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
}
.active-order-banner {
  background: linear-gradient(135deg, #FEF2F2, #FFF1F2);
  border: 1.5px solid #FECACA;
}
.repeat-order-banner {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
}
.smart-banner-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 200px;
}
.smart-banner-left strong {
  font-size: 0.9rem;
  color: #0F172A;
  font-weight: 800;
}
.smart-banner-left small {
  font-size: 0.75rem;
  color: #64748B;
}
.smart-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.smart-banner-tag.live { color: #EA1D2C; }
.smart-banner-tag.repeat { color: #16A34A; }

.btn-smart-banner {
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-smart-banner.live {
  background: #EA1D2C;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(234, 29, 44, 0.25);
}
.btn-smart-banner.repeat {
  background: #16A34A;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(22, 163, 74, 0.22);
}
.btn-smart-banner:hover {
  transform: translateY(-1px);
}

.client-quick-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 210px;
  max-width: 280px;
  flex: 1;
}
.client-quick-search i {
  position: absolute;
  left: 0.75rem;
  color: #94A3B8;
  font-size: 0.82rem;
  pointer-events: none;
}
.client-quick-search input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.1rem;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 0.8rem;
  font-family: inherit;
  color: #0F172A;
}
.client-quick-search input:focus {
  outline: none;
  border-color: #EA1D2C;
  background: #FFFFFF;
}

.ifood-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
}

.lunch-time-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.time-slot-pill {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.time-slot-pill.active {
  background: #FEF2F2;
  border-color: #EA1D2C;
  color: #EA1D2C;
  font-weight: 800;
}


/* =========================================================
   REFINAMENTO MOBILE ULTRA-COMPACTO & ELEGANTE (ESTILO APP IFOOD)
   ========================================================= */
.client-quick-search {
  display: none !important;
}

@media (max-width: 768px) {
  .ifood-container {
    padding: 0 0.75rem !important;
  }

  /* Capa e Topo mais enxutos no celular */
  .ifood-header {
    padding-bottom: 0.75rem !important;
  }
  .ifood-cover-banner {
    height: 105px !important;
  }
  .ifood-top-bar {
    top: 0.5rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
  }
  .ifood-pill-btn {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.72rem !important;
    gap: 0.3rem !important;
  }
  .ifood-cart-badge {
    width: 17px !important;
    height: 17px !important;
    font-size: 0.65rem !important;
  }

  /* Card Perfil do Restaurante mais delicado e compacto */
  .ifood-restaurant-card {
    padding: 0.85rem !important;
    margin-top: -28px !important;
    border-radius: 14px !important;
  }
  .ifood-profile-row {
    gap: 0.65rem !important;
  }
  .ifood-avatar-wrap {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-width: 2px !important;
  }
  .ifood-restaurant-name {
    font-size: 1.08rem !important;
  }
  .ifood-verified-tag {
    font-size: 0.85rem !important;
  }
  .ifood-restaurant-category {
    font-size: 0.73rem !important;
    margin-top: 0.05rem !important;
  }
  .ifood-slogan-text {
    font-size: 0.73rem !important;
    margin-top: 0.15rem !important;
    line-height: 1.25 !important;
  }

  /* Pílulas de status/entrega na horizontal compactas */
  .ifood-meta-row {
    margin-top: 0.65rem !important;
    padding-top: 0.6rem !important;
    gap: 0.35rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }
  .ifood-meta-row::-webkit-scrollbar {
    display: none !important;
  }
  .ifood-badge-status,
  .ifood-meta-item {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Banners inteligentes (Repetir pedido / Ao Vivo) super enxutos */
  .client-smart-banner {
    padding: 0.6rem 0.75rem !important;
    border-radius: 10px !important;
    gap: 0.5rem !important;
    margin-bottom: 0.45rem !important;
    flex-wrap: nowrap !important;
  }
  .smart-banner-left {
    min-width: 0 !important;
  }
  .smart-banner-tag {
    font-size: 0.6rem !important;
  }
  .smart-banner-left strong {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .smart-banner-left small {
    font-size: 0.68rem !important;
    display: none !important;
  }
  .btn-smart-banner {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.72rem !important;
    border-radius: 8px !important;
  }

  /* Barra de Categorias Sticky mais fina */
  .ifood-categories-sticky {
    padding: 0.45rem 0 !important;
  }
  .categories-bar {
    padding: 0.15rem 0.1rem !important;
    gap: 0.4rem !important;
  }
  .cat-pill {
    height: 32px !important;
    max-height: 32px !important;
    padding: 0.3rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
  .ifood-category-title {
    margin: 0.85rem 0 0.55rem !important;
    font-size: 0.98rem !important;
  }

  /* Cards de Produtos (Pastéis e Bebidas) proporcionais e elegantes no celular */
  .ifood-products-grid {
    gap: 0.6rem !important;
  }
  .ifood-product-card {
    padding: 0.75rem !important;
    gap: 0.65rem !important;
    border-radius: 12px !important;
    align-items: center !important;
  }
  .ifood-card-tag,
  .ifood-stock-tag {
    font-size: 0.62rem !important;
    padding: 0.1rem 0.4rem !important;
    margin-bottom: 0.15rem !important;
  }
  .ifood-card-title {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }
  .ifood-card-desc {
    font-size: 0.73rem !important;
    line-height: 1.3 !important;
    margin-top: 0.15rem !important;
    -webkit-line-clamp: 2 !important;
  }
  .ifood-card-price-row {
    margin-top: 0.4rem !important;
  }
  .ifood-price-val {
    font-size: 0.9rem !important;
  }
  .ifood-card-media {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    border-radius: 10px !important;
  }
  .ifood-card-btn {
    width: 26px !important;
    height: 26px !important;
    bottom: 4px !important;
    right: 4px !important;
    font-size: 0.75rem !important;
  }

  /* Modal de Personalizar Pastel mais limpo e compacto no celular */
  .ifood-modal-header {
    padding: 0.6rem 1rem !important;
  }
  .ifood-modal-title {
    font-size: 0.95rem !important;
  }
  .ifood-thumb-wrap {
    height: 130px !important;
  }
  .ifood-modal-desc {
    font-size: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
  .options-group {
    padding: 0.7rem !important;
    margin-bottom: 0.75rem !important;
  }
  .options-title span:first-child {
    font-size: 0.84rem !important;
  }
  .option-item {
    padding: 0.5rem 0.65rem !important;
    margin-bottom: 0.35rem !important;
  }
  .option-name {
    font-size: 0.8rem !important;
  }
  .ifood-modal-footer {
    padding: 0.65rem 1rem !important;
  }

  /* Barra Flutuante da Sacola e Barra Inferior Mobile mais discretas */
  .ifood-floating-cart {
    bottom: 58px !important;
    padding: 0 0.75rem !important;
  }
  .floating-cart-inner {
    padding: 0.65rem 0.9rem !important;
    border-radius: 12px !important;
  }
  .floating-count-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.75rem !important;
  }
  .floating-cart-title {
    font-size: 0.85rem !important;
  }
  .floating-cart-sub {
    font-size: 0.68rem !important;
  }
  .floating-cart-total {
    font-size: 0.95rem !important;
  }
}

/* extra_drawer_mobile */

@media (max-width: 768px) {
  .ifood-cart-header { padding: 0.65rem 0.9rem !important; }
  #cartDrawerTitle { font-size: 0.95rem !important; }
  .ifood-stepper { padding: 0.45rem 0.75rem !important; gap: 0.25rem !important; }
  .cart-step-pill { font-size: 0.72rem !important; padding: 0.25rem 0.5rem !important; }
  .ifood-cart-body { padding: 0.75rem !important; }
  .cart-item-row { padding: 0.65rem !important; border-radius: 10px !important; }
  .cart-item-title { font-size: 0.85rem !important; }
  .cart-item-details { font-size: 0.72rem !important; }
  .cart-item-price { font-size: 0.88rem !important; }
  .checkout-step-card { padding: 0.75rem !important; border-radius: 10px !important; margin-bottom: 0.6rem !important; }
  .checkout-card-header { font-size: 0.84rem !important; margin-bottom: 0.5rem !important; }
  .form-control { padding: 0.5rem 0.65rem !important; font-size: 0.82rem !important; border-radius: 8px !important; }
  .time-slot-pill { padding: 0.35rem 0.6rem !important; font-size: 0.72rem !important; border-radius: 8px !important; }
  .ifood-cart-footer { padding: 0.7rem 0.9rem !important; }
  .bill-row { font-size: 0.78rem !important; margin-bottom: 0.25rem !important; }
  .bill-row.total { font-size: 0.95rem !important; }
  .btn-checkout { padding: 0.68rem 1rem !important; font-size: 0.86rem !important; border-radius: 10px !important; }
  .ifood-bottom-nav { height: 54px !important; padding: 0.2rem 0.25rem !important; }
  .ifood-bottom-nav .mobile-nav-item { font-size: 0.65rem !important; gap: 0.15rem !important; }
  .ifood-bottom-nav .mobile-nav-item i { font-size: 1rem !important; }
}


/* =========================================================
   1. MODAL TELA COMPLETA (FULLSCREEN) PARA ESCOLHER MARMITA NO CELULAR
   2. MODAL DE LOJA FECHADA + BLOQUEIO DE PEDIDOS
   3. MODAL MEU PERFIL & MEUS PEDIDOS
   ========================================================= */

/* Quando a loja está fechada: desativa visualmente o botão '+' nos cards de produto */
body.store-is-closed .ifood-card-btn {
  background: #94a3b8 !important;
  opacity: 0.7 !important;
}
body.store-is-closed .ifood-product-card {
  opacity: 0.88;
}

/* Modal de Loja Fechada Centralizado */
#storeClosedModal {
  align-items: center !important;
  padding: 1.25rem !important;
}
.store-closed-modal-box {
  border-radius: 20px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28) !important;
}
.closed-modal-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #ea1d2c;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.closed-modal-pill {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.closed-modal-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.closed-modal-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
}

/* Modal de Escolher Itens da Pastel em TELA COMPLETA (100% Fullscreen no Mobile, igual iFood) */
.btn-fullscreen-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}
.fullscreen-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.fullscreen-modal-header .ifood-modal-title {
  text-align: center;
  flex: 1;
}

@media (max-width: 768px) {
  #customizeModal {
    padding: 0 !important;
    align-items: stretch !important;
  }
  #customizeModal .fullscreen-customize-box {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #customizeModal .ifood-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0.85rem !important;
  }
  #customizeModal .ifood-modal-footer {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    border-top: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }

  /* Também deixa Meu Perfil / Meus Pedidos confortável quase tela toda no celular */
  #authModal .fullscreen-mobile-sheet {
    max-height: 92dvh !important;
    height: 88dvh !important;
    border-radius: 20px 20px 0 0 !important;
  }
  #authModal .ifood-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
  }
}

/* Estilos da Lista "Meus Pedidos" dentro do Perfil */
.profile-user-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
.btn-profile-switch {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  border-radius: 8px;
  padding: 0.32rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.my-order-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.my-order-card.active-order {
  border-color: #fecaca;
  background: #fffafa;
}
.my-order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.my-order-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.my-order-items-line {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}
.my-order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
}
.btn-my-order-action {
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
}
.btn-my-order-action.track {
  background: #f1f5f9;
  color: #334155;
  border-color: #e2e8f0;
}
.btn-my-order-action.repeat {
  background: #fef2f2;
  color: #ea1d2c;
  border-color: #fecaca;
}


/* FAIXA REGRESSIVA AO VIVO NO SITE QUANDO PAUSA DE 15 MIN É ATIVADA */
.peak-pause-live-banner {
  background: linear-gradient(90deg, #EA1D2C, #DC2626);
  color: #FFFFFF;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(234, 29, 44, 0.28);
  position: sticky;
  top: 0;
  z-index: 60;
}
.peak-pause-live-banner strong {
  font-weight: 800;
}
@media (max-width: 640px) {
  .peak-pause-live-banner {
    font-size: 0.72rem;
    padding: 0.5rem 0.65rem;
    line-height: 1.3;
  }
}


.peak-pause-live-banner.store-closed-top-strip {
  background: #0F172A !important;
  color: #F8FAFC !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
}
.peak-pause-live-banner.store-closed-top-strip i {
  color: #F87171;
}
/* Garante que o modal de Loja Fechada fique acima de qualquer elemento (inclusive gaveta de sacola) */
#storeClosedModal {
  z-index: 9999 !important;
}


/* Garante que Meus Pedidos, Fidelidade, Horários e Personalizar fiquem sempre visíveis no topo */
#authModal,
#loyaltyModal,
#hoursModal,
#customizeModal {
  z-index: 10050 !important;
}


/* BOTÃO "ALTERAR" NA SACOLA & CHECKBOX "SEM Nº (S/N)" NO ENDEREÇO */
.btn-edit-cart-item {
  background: #fef2f2;
  color: #ea1d2c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.26rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  transition: all 0.15s ease;
}
.btn-edit-cart-item:hover {
  background: #ea1d2c;
  color: #ffffff;
}

.sn-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ea1d2c;
  cursor: pointer;
  user-select: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}
.sn-checkbox-label input {
  width: 13px;
  height: 13px;
  accent-color: #ea1d2c;
  cursor: pointer;
  margin: 0;
}
