/* ========================================================
   MINEIRAMENTE DELIVERY - CARDÁPIO PÚBLICO (ANOTA AI STYLE)
   ======================================================== */

.menu-app {
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-main);
  padding-bottom: 120px;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

/* 1. Cabeçalho / Hero */
.hero-header {
  position: relative;
}

.hero-banner {
  width: 100%;
  height: 130px;
  overflow: hidden;
  position: relative;
}

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

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(19, 21, 26, 0.95) 100%);
}

.hero-content {
  text-align: center;
  margin-top: -38px;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}

.store-logo-wrapper {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-main);
  border-radius: 50%;
}

.store-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #091a11;
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.store-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.store-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.store-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.store-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.open {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-dot.closed {
  background: #ef4444;
}

.status-text.closed {
  color: #f87171;
}

.status-text.open {
  color: #34d399;
}

.btn-info-link {
  color: var(--accent-yellow);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.btn-info-link:hover {
  text-decoration: underline;
}

/* 2. Barra de Busca */
.search-container {
  padding: 14px 16px 8px 16px;
}

.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 2px var(--accent-yellow-glow);
}

.search-icon {
  color: var(--text-muted);
  font-size: 1rem;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: var(--text-main);
  font-size: 0.88rem;
}

.search-input::placeholder {
  color: #6b7280;
}

/* 3. Navegação por Categorias Fixa */
.categories-nav-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(19, 21, 26, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
}

.categories-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 8px;
  padding: 0 16px;
  scrollbar-width: none;
}

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

.category-tab {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.category-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
  color: var(--accent-yellow);
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

/* 4. Carrossel Mais Pedidos */
.section-popular {
  padding: 18px 16px 8px 16px;
}

.section-popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-popular-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.popular-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.popular-scroll::-webkit-scrollbar {
  display: none;
}

.popular-card {
  min-width: 140px;
  max-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.popular-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-yellow);
}

.popular-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #111;
}

.popular-card-body {
  padding: 8px 10px 10px 10px;
}

.popular-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  height: 32px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.popular-card-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-top: 4px;
}

/* 5. Lista de Produtos por Categoria */
.category-section {
  padding: 16px 16px 8px 16px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
}

.category-ver-todos {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.35);
}

.product-item-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
}

.product-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-top: 8px;
}

.product-item-right {
  position: relative;
  width: 86px;
  height: 68px;
  flex-shrink: 0;
}

.product-item-thumb {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #111;
  border: 1px solid var(--border-subtle);
}

.product-add-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: #111;
  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.4);
  transition: transform 0.2s ease;
}

.product-item:hover .product-add-badge {
  transform: scale(1.1);
  background: var(--accent-yellow-light);
}

/* 6. Barra Flutuante "Ver Sacola" */
.floating-cart-bar {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 588px;
  background: var(--accent-yellow);
  color: #111418;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-lg), var(--shadow-yellow);
  z-index: 90;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-cart-bar:hover {
  background: var(--accent-yellow-light);
  transform: translateX(-50%) translateY(-2px);
}

.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 7. Barra Inferior Fixa de Navegação */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 620px;
  background: rgba(19, 21, 26, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 80;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
  flex: 1;
  text-align: center;
}

.nav-tab.active {
  color: var(--accent-yellow);
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* 8. Modal de Customização do Produto */
.product-modal-hero {
  position: relative;
  width: 100%;
  height: 180px;
  background: #111;
}

.product-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-modal-body {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(90vh - 270px);
}

.product-modal-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.product-modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.product-modal-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-top: 8px;
}

/* Grupos de Opções no Modal */
.option-group-block {
  margin-top: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.option-group-header {
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

.option-group-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.option-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.option-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.option-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

/* Observações */
.notes-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 0.82rem;
  resize: vertical;
  min-height: 60px;
  margin-top: 10px;
}

.notes-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
}

/* Footer do Modal */
.product-modal-footer {
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.qty-btn {
  padding: 10px 14px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent-yellow);
  background: transparent;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.qty-display {
  padding: 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.btn-add-cart {
  flex: 1;
  background: var(--accent-yellow);
  color: #111418;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background 0.2s ease;
  box-shadow: var(--shadow-yellow);
}

.btn-add-cart:hover {
  background: var(--accent-yellow-light);
}

/* 9. Gaveta / Modal da Sacola & Checkout */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cart-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.cart-item-options {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.cart-item-notes {
  font-size: 0.72rem;
  color: var(--accent-yellow);
  font-style: italic;
  margin-top: 3px;
}

.cart-item-price {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--accent-yellow);
  margin-top: 4px;
}

.checkout-tabs {
  display: flex;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 3px;
  margin-bottom: 14px;
}

.checkout-tab-btn {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.checkout-tab-btn.active {
  background: var(--brand-green-accent);
  color: #fff;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-yellow);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.payment-radio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.payment-radio-card.selected {
  border-color: var(--accent-yellow);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-yellow);
}

.order-summary-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
}

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

.summary-row.total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  border-top: 1px dashed var(--border-card);
  padding-top: 8px;
  margin-top: 6px;
  margin-bottom: 0;
}
