@font-face {
  font-family: 'BootstrapIcons';
  src: url('/fonts/bootstrap-icons.woff2') format('woff2');
  font-display: swap;
}
.nav-link:hover,
.nav-link:focus {
  color: #000 !important;              /* texto preto */
  background-color: #e9ecef !important; /* cinza claro */
  border-radius: 4px;                  /* opcional, arredonda */
}


/* Reset e ajustes gerais */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.produto-card {
  transition: transform 0.2s;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.produto-card:hover { transform: translateY(-3px); }

.preco-antigo { 
  text-decoration: line-through; 
  color: #999; 
  font-size: 0.8rem; 
}

.desconto-badge {
  background: #dc3545; 
  color: #fff; 
  font-size: 0.7rem;
  padding: 2px 8px; 
  border-radius: 20px; 
  font-weight: bold; 
  display: inline-block;
}

.banner-capa {
  background: linear-gradient(135deg, #ff8c00, #ffcc00);
  border-radius: 0 0 30px 30px;
}

.preco-atual { 
  font-size: 1.1rem; 
  font-weight: bold; 
  color: #28a745; 
}

/* Imagem responsiva */
.produto-img {
  width: 100%;
  aspect-ratio: 1 / 1; /* quadrado */
  object-fit: contain;
}


.card-body-produto { 
  padding: 10px; 
}

/* Texto responsivo */
.produto-titulo {
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: bold; 
  margin-bottom: 3px;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.produto-descricao {
  font-size: clamp(0.65rem, 3.5vw, 0.7rem);
  color: #777; 
  margin-bottom: 5px;
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden;
}

.btn-adicionar { 
  font-size: 0.75rem; 
  padding: 5px 10px; 
}

/* Media queries */
@media (max-width: 576px) {
  .banner-capa .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .produto-img {
    min-height: 80px;
    max-height: 100px;
  }
  .card-body-produto { padding: 8px; }
  .preco-atual { font-size: 0.95rem; }
  .preco-antigo { font-size: 0.7rem; }
  .desconto-badge { font-size: 0.6rem; padding: 1px 6px; }
  .banner-capa img { width: 70px !important; height: 70px !important; }
  .banner-capa h1 { font-size: 1.5rem; }
  .banner-capa span { font-size: 0.8rem; }
  .bi-whatsapp, .bi-instagram, .bi-facebook, .bi-tiktok {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 380px) {
  .produto-titulo { font-size: 0.7rem; }
  .produto-descricao { font-size: 0.6rem; }
  .preco-atual { font-size: 0.85rem; }
  .card-body-produto { padding: 6px; }
}

@media (max-width: 768px) {
  .produto-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .btn-adicionar, .produto-card, a {
    touch-action: manipulation;
  }
}

/* Grid responsivo */
.row-produtos {
  display: flex;
  flex-wrap: wrap;
  margin-right: -8px;
  margin-left: -8px;
}

/* Container fluído */
.container-custom {
  width: 100%;
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

@media (max-width: 576px) {
  .container-custom {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* Navegação */
nav a {
   font-size: 0.95rem;
   padding: 6px 10px;
   border-radius: 5px;
}
nav a:hover {
  background: #3213b0;
  color: #000;
}
.btn-circle {
    width: 50px;          /* largura fixa */
    height: 50px;         /* altura fixa */
    border-radius: 50%;   /* deixa redondo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;    /* tamanho do ícone */
    padding: 0;
}
.btn-cart-rect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;              /* espaço entre ícone e texto */
    padding: 5px 15px;    /* altura e largura do botão */
    border-radius: 8px;    /* cantos levemente arredondados */
    font-size: 1.4rem;       /* tamanho do texto */
    font-weight: 600;
     
    background: #3213b0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

.btn-cart-rect i {
    font-size: 1.0rem;     /* tamanho do ícone */
    color: #fff;           /* cor do ícone */
}

.btn-cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3213b0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}
.btn-cart-float i {
    color: #fff;
    font-size: 1.0rem;
}

/* só aparece em mobile */
@media (min-width: 769px) {
  #btnCarrinho {
    display: none;
  }
}
.carrinho-itens-extras {
    font-size: 0.85rem;   /* diminui a fonte */
    color: #555;          /* cor mais suave */
    margin-left: 15px;    /* dá um recuo para diferenciar */
}
.carrinho-itens-extras li {
    margin-bottom: 4px;   /* espaço entre os itens */
}
.carrinho-itens-extras {
    font-size: 0.85rem;   /* fonte menor */
    color: #444;
    margin: 0;            /* remove recuo */
    padding-left: 0;      /* garante alinhamento à esquerda */
    list-style-position: inside; /* bolinha/ícone alinhado à esquerda */
}

.carrinho-itens-extras li {
    text-align: left;     /* força alinhamento à esquerda */
    margin-bottom: 4px;
    white-space: nowrap;  /* evita quebra de linha desnecessária */
    overflow: hidden;
    text-overflow: ellipsis; /* se for muito longo, coloca "..." */
}

/* Ajuste para celular */
@media (max-width: 576px) {
    .carrinho-itens-extras {
        font-size: 0.75rem; 
        line-height: 1.2;
    }
    .carrinho-itens-extras li {
        margin-bottom: 2px;
    }
}
.badge {
    font-size: 0.75rem;
    padding: 4px 6px;
}
.modal {
  display: none; /* oculto por padrão */
  position: fixed;
  z-index: 9999; /* fica acima de tudo só quando aberto */
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  overflow-y: auto; /* permite rolagem dentro do modal */
  pointer-events: none; /* não captura cliques quando oculto */
}

.modal.show {
  display: block;
  pointer-events: auto; /* só captura cliques quando aberto */
}

.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
}
.resumo-conta {
  border: 2px solid #0d6efd;   /* azul da borda */
  background-color: #e7f1ff;   /* azul clarinho no fundo */
  border-radius: 6px;          /* cantos arredondados */
}
.product-card {
    display: flex;
    align-items: flex-start; /* alinha pelo topo */
    gap: 20px;               /* espaço entre imagem e textos */
}

.product-image img {
    max-width: 100px;        /* controla largura da imagem */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.product-info {
    flex: 1;                 /* ocupa o restante do espaço */
}

.produto-titulo {
    font-size: 1.2rem;
    font-weight: bold;
    /* text-align: center;  /* centraliza dentro do card */
    color: #0c0c0e;      /* azul mais forte */
}

.product-description {
    margin-top: 10px;
    font-size: 0.95rem;   /* um pouco menor que o título */
    color: #555;          /* cinza suave para não competir com o preço */
    line-height: 1.4;     /* melhora a leitura */
    font-style: italic;   /* opcional, dá um ar de subtítulo */
    text-align: center;
}
:root {
    --primary-color: #ff7e00;
    --primary-dark: #e66a00;
    --primary-light: #ff9e40;
    --secondary-color: #2d3436;
    --gray-light: #f8f9fa;
    --gray-border: #e9ecef;
}

body {
    background: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 1rem 0;
    min-height: 100vh;
}

.product-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
.product-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Corpo */
.product-body {
    padding: 1.25rem;
}

/* Grupo */
.grupo-card {
    background: var(--gray-light);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-border);
}

.grupo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.grupo-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.grupo-info {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Itens compactos */
.itens-list {
    display: flex;
    flex-direction: column;
}

.item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-border);
    font-size: 0.9rem;
}

.item-card:last-child { border-bottom: none; }

.item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: var(--secondary-color);
}

.item-price {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Quantidade super compacta */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.qty-btn {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    background: var(--gray-light);
    color: var(--secondary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 28px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    background: transparent;
}

/* Botão de Submit */
.submit-section {
    margin-top: 1rem;
    text-align: right;
}

.btn-add-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}
#agendamentoCampos .form-control {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
}
#agendamentoCampos label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
@media (max-width: 576px) {
    .btn-add-cart {
        width: 100%;
        margin-top: 0.5rem;
    }
    #totalPedidoBottom {
        width: 100%;
        text-align: center;
    }
}
/* Garantir que o footer não sobreponha o conteúdo */
body {
    padding-bottom: 80px;
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
    .modal-footer .d-flex {
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center;
    }
}
.modal-header {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-title {
    margin: 0 auto;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-body {
    font-size: 0.95rem;
    color: #444;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-msg.invalid {
    text-align: center;
    color: #d9534f; /* vermelho para alerta */
    font-weight: bold;
}

.modal-footer {
    justify-content: center;
}
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 6px 14px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-success {
    background-color: #4786ca;
    border: none;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}
.bg-azul {
    background-color: #007bff; /* azul Bootstrap */
    color: #fff;
}
/* Estilo para os botões de quantidade */
.btn-mais,
.btn-menos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f9fa;
  cursor: pointer;
}

/* Ícones dentro dos botões não recebem clique */
.btn-mais i,
.btn-menos i {
  pointer-events: none;
}

/* Input de quantidade */
.qty-input {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0 5px;
}

/* Badge para obrigatório/opcional */
.badge-obrigatorio {
  background-color: #dc3545; /* vermelho */
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-opcional {
  background-color: #007bff; /* verde */
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Lista de extras no carrinho */
.carrinho-itens-extras {
  margin-top: 8px;
  padding-left: 16px;
  font-size: 0.9rem;
}
