body {
    font-family: 'Poppins', sans-serif;
    background: #fff8f2;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 0.9rem; /* Fonte base reduzida */
}

/* --- Estilos do Novo Cabeçalho e Navegação --- */
.bg-custom {
    background: #ff6f61 !important;
}

.navbar-brand h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ff6f61;
        padding: 1rem 0;
    }

    .navbar-nav {
        text-align: center;
    }
}
/* --- Fim dos Estilos do Cabeçalho --- */

.container {
    max-width: 700px;
    margin: auto;
    padding: 12px;
}

label {
    font-weight: 500;
    font-size: 0.8rem;
}

input, select, textarea {
    width: 100%;
    padding: 6px 8px;
    margin: 4px 0 12px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.75rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* Card do Bolo (versão simplificada) */
.cake-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cake-card img {
    max-height: 180px;
    object-fit: cover;
    width: 100%;
}

.cake-card .card-body {
    padding: 12px;
}

.cake-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cake-card .card-text {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cake-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6f61;
    margin-bottom: 8px;
}

.details-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.7rem;
    margin-bottom: 12px;
}

.details-list li {
    margin-bottom: 4px;
}

/* Botão de Selecionar */
.btn-selecionar {
    background: #ff6f61;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-selecionar:hover {
    background: #e66255;
}

/* Paginação (versão simplificada) */
.pagination {
    justify-content: center;
    margin-top: 24px;
    padding-left: 0;
}

.page-item .page-link {
    color: #ff6f61;
    border: 1px solid #ff6f61;
    margin: 0 4px;
    border-radius: 8px;
}

.page-item.active .page-link {
    background-color: #ff6f61;
    color: white;
    border-color: #ff6f61;
}

.page-item.disabled .page-link {
    color: #ccc;
    border-color: #ccc;
}

/* Estilo para o container do preço total no modal */
.total-price-container {
    text-align: right;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    margin-top: 16px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.total-price-container span {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ff6f61;
}

/* Estilos para o campo de quantidade */
.input-quantidade-compacto {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.input-quantidade-compacto .form-control {
    flex: 1;
    border: none;
    text-align: center;
    padding: 6px 0;
    margin: 0;
}

.input-quantidade-compacto .btn {
    width: 40px;
    height: 38px;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    border: none;
    background-color: #f8f9fa;
    color: #555;
    border-radius: 0;
}

.input-quantidade-compacto .btn:first-child {
    border-right: 1px solid #ccc;
}

.input-quantidade-compacto .btn:last-child {
    border-left: 1px solid #ccc;
}

/* Estilos para o campo de CEP */
.input-group .form-control#cepCliente {
    flex: 0 0 120px;
}

.input-group #btn-buscar-cep {
    border-radius: 8px;
    background-color: #ff6f61;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.input-group #btn-buscar-cep:hover {
    background-color: #e66255;
}

/* Regras de estilo para formulários compactos em modais */
.modal-body .row .col-md-6 {
    padding-left: 5px;
    padding-right: 5px;
}

.modal-body .mb-3 {
    margin-bottom: 0.75rem !important;
}

/* Estilo para destacar o campo de data de retirada (vermelho claro) */
.modal-body #dataEntrega {
    background-color: #ffe6e6;
    border: 1px solid #ff6f61;
    transition: all 0.3s ease;
}

.modal-body #dataEntrega:focus {
    background-color: #fff;
    border-color: #e66255;
    box-shadow: 0 0 0 0.25rem rgba(255, 111, 97, 0.25);
}

.modal-body .row,
.modal-body form .row {
  margin-left: -5px;
  margin-right: -5px;
}

.modal-body .row .col-12,
.modal-body .row .col-md-6 {
  padding-left: 5px;
  padding-right: 5px;
}

/* --- Estilos do Icone do Carrinho --- */
.nav-link .bi-cart {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 5px;
}
/* --- Fim dos Estilos do Icone do Carrinho --- */

/* --- Estilos do Cabeçalho com Rolagem --- */
.bg-custom {
    background: #ff6f61 !important;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Container de Rolagem */
.scrolling-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
    padding-bottom: 5px; /* Espaço para evitar cortes na sombra */
    
    /* Esconder a barra de rolagem visualmente mas manter a função */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Esconder barra de rolagem no Chrome/Safari/Opera */
.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.navbar-nav.d-flex.flex-row {
    gap: 10px; /* Espaço entre os botões */
    padding-right: 15px; /* Espaço extra no final da rolagem */
}

/* Estilo dos Botões (Pills) */
.nav-link.btn-scroll {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15); /* Fundo branco translúcido */
    border-radius: 50px; /* Formato de pílula */
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link.btn-scroll:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Botão Ativo (Categoria Selecionada) */
.nav-link.btn-scroll.active {
    background: #fff;
    color: #ff6f61 !important; /* Cor do texto igual ao fundo do header */
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Botão do Carrinho (Destaque opcional) */
.nav-link.btn-scroll.btn-carrinho {
    background: rgba(0, 0, 0, 0.1);
}

/* Remover efeitos antigos que possam conflitar */
.nav-link::after {
    display: none !important;
}
/* --- Fim dos Estilos do Cabeçalho --- */

