:root {
  --cor-primaria: #ff5e00; /* Laranja */
}

body {
  background-color: #f4f4f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero / Banner */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1000&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 80px 0;
  border-radius: 0 0 20px 20px;
  margin-bottom: 30px;
}

/* Título da Categoria */
.cat-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid var(--cor-primaria);
}

/* Cartão do Produto */
.card-produto {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s;
  overflow: hidden;
  background: #fff;
}

.card-produto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
}

.preco {
  color: var(--cor-primaria);
  font-weight: bold;
  font-size: 1.2rem;
}

.btn-pedir {
  background-color: var(--cor-primaria);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
}

.btn-pedir:hover {
  background-color: #e04e00;
  color: white;
}
/* ===== Ajustes visuais extras ===== */
:root {
  --cor-primaria: #ff5e00;
  --cor-primaria-dark: #e04e00;
  --card-radius: 14px;
  --transition-fast: 0.18s;
}

/* Card produto refinado */
.card-produto {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: 0 6px 18px rgba(18, 18, 18, 0.06);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  overflow: hidden;
}

.card-produto:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(18, 18, 18, 0.10);
}

.produto-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card-produto:hover .produto-img {
  transform: scale(1.03);
}

/* descrição limitada com clamp */
.descricao-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* mostrar 3 linhas */
  overflow: hidden;
}

/* PREÇO */
.preco {
  color: var(--cor-primaria);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Grupo de quantidade compacto */
.qty-group {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  align-items: center;
}

.qty-input {
  width: 62px;
  padding: 6px 8px;
  border: none;
  outline: none;
  box-shadow: none;
}

.qty-btn {
  background: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
}

/* Botão adicionar refinado */
.btn-pedir.btn-add {
  background: linear-gradient(90deg, var(--cor-primaria), var(--cor-primaria-dark));
  color: #fff;
  border-radius: 50px;
  padding: 8px 14px;
  border: none;
  box-shadow: 0 6px 18px rgba(255,94,0,0.18);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.btn-pedir.btn-add:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(224,78,0,0.20);
}

/* Botão Fechar Pedido (maior destaque) */
.btn-fechar {
  background: linear-gradient(90deg, #ff7a2d, #ff4b00);
  color: #fff;
  border-radius: 40px;
  padding: 10px 22px;
  border: none;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(255,90,10,0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-fechar:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255,74,0,0.22);
}

/* botões outline usados no checkout */
.btn-outline-secondary {
  border-radius: 12px;
  padding: 8px 12px;
}

/* ajustes responsivos */
@media (max-width: 576px) {
  .produto-img { height: 150px; }
  .qty-input { width: 56px; }
  .btn-fechar { width: 100%; }
  .btn-pedir.btn-add { flex: 1 0 auto; justify-content: center; }
}

/* pequenas melhorias de contraste para badges */
.badge.bg-secondary {
  background: rgba(0,0,0,0.6) !important;
}

/* app/static/style.css */

/* Barra de Horário no Topo */
.top-bar-info {
    background-color: #333;
    color: #fff;
    font-size: 0.85rem;
    padding: 5px 0;
    text-align: center;
}

/* Layout de Colunas na Home */
.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-lista {
    flex: 1; /* Ocupa o espaço restante */
    min-width: 0; /* Previne overflow */
}

.menu-sacola {
    width: 350px; /* Largura fixa da sacola */
    flex-shrink: 0;
}

/* Sacola Flutuante (Sticky) */
.sacola-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 20px; /* Distância do topo ao rolar */
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Esconder sacola em mobile (opcional, pode ajustar depois) */
@media (max-width: 992px) {
    .menu-sacola {
        display: none; /* Ou transformar em modal/botão flutuante */
    }
    .menu-lista {
        width: 100%;
    }
}
width: 350px; /* Largura fixa da sacola */
    flex-shrink: 0;
}

/* Sacola Flutuante (Sticky) */
.sacola-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 20px; /* Distância do topo ao rolar */
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Esconder sacola em mobile (opcional, pode ajustar depois) */
@media (max-width: 992px) {
    .menu-sacola {
        display: none; /* Ou transformar em modal/botão flutuante */
    }
    .menu-lista {
        width: 100%;
    }
}
}
/* ===== Cliente mobile-first ===== */
.cliente-mobile-layout main {
  padding-bottom: 92px;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid #e7e7e7;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  color: #707070;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  font-size: 0.72rem;
  font-weight: 600;
}

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

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

.mobile-cart-badge {
  position: absolute;
  top: 8px;
  right: 22%;
  background: #dc3545;
  color: #fff;
  font-size: 0.64rem;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.client-hero {
  border-radius: 0 0 18px 18px;
  padding: 40px 0;
  background-attachment: scroll !important;
}

.mobile-cat-bar {
  top: 0;
  z-index: 1020;
}

.product-card-mobile .card-title {
  font-size: 1rem;
}

.qty-input-mobile {
  width: 38px !important;
  font-size: 0.95rem;
}

.btn-add-cart {
  min-height: 44px;
}

.cart-mobile-item h5 {
  font-size: 1rem;
}

.checkout-mobile .step-label {
  font-size: 0.76rem;
}

.checkout-mobile .btn,
.checkout-mobile .form-control,
.checkout-mobile .form-select,
.checkout-mobile .input-group-text {
  min-height: 44px;
}

@media (min-width: 992px) {
  .cliente-mobile-layout main {
    padding-bottom: 0;
  }
}

@media (max-width: 576px) {
  .client-hero {
    padding: 26px 0;
  }

  .client-hero h1 {
    font-size: 1.9rem;
  }

  .client-hero p {
    font-size: 0.95rem !important;
  }

  .mobile-cat-bar {
    margin-bottom: 1.4rem !important;
  }

  .mobile-cat-label {
    display: none;
  }

  .product-card-mobile .card-img-wrapper {
    height: 165px !important;
  }

  .product-card-mobile .card-body {
    padding: 0.85rem;
  }

  .qty-input-mobile {
    width: 34px !important;
  }

  .checkout-mobile .step-indicator {
    padding-left: 0;
    padding-right: 0;
  }

  .checkout-mobile .step {
    padding: 0 2px;
  }

  .checkout-mobile .step-circle {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }
}

/* Checkout mobile */
.checkout-mobile .step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.checkout-mobile .step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e9ecef;
  z-index: 0;
}

.checkout-mobile .step {
  position: relative;
  z-index: 1;
  text-align: center;
  background: #f8f9fa;
  padding: 0 10px;
}

.checkout-mobile .step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 5px;
}

.checkout-mobile .step.active .step-circle {
  background: #ff5e00;
  color: white;
}

.checkout-mobile .step.completed .step-circle {
  background: #198754;
  color: white;
}

.checkout-mobile .step-label {
  font-size: 0.85rem;
  color: #6c757d;
  display: block;
}

.checkout-mobile .step.active .step-label {
  color: #ff5e00;
  font-weight: bold;
}

.checkout-mobile .form-step {
  display: none;
}

.checkout-mobile .form-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}