@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");




.page-title {
  font-size: 25px;
  font-weight: 300;
  color: #000;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  margin-left:60px;
}
.order-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #555;
}
.order-selector label {
  font-weight: 600;
  color: #333;
}
.custom-select {
  position: relative;
  width: 230px;
}
.custom-select select {
  width: 100%;
  padding: 12px 15px;
  padding-right: 40px;
  border-radius: 8px;
  background-color: #f5f7fa;
  border: 1px solid #d2d6dc;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: 0.2s;
}
.custom-select select:hover {
  background-color: #eef1f5;
}
.custom-select select:focus {
  border-color: #263164;
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.3);
}
.select-arrow {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 14px;
} /* Estilo da Listagem de Produtos */

/* Container principal com menu à esquerda e produtos à direita */
.container-principal {
    display: flex;
    gap: 30px; /* Espaço entre menu e produtos */
    justify-content: flex-start;
    align-items: flex-start;
    margin: 40px;
    flex-wrap: wrap; /* Para responsividade */
}

/* Menu lateral */
.menu-lateral {
    width: 300px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    height: 700px;

    /* NOVO */
    position: sticky;
    top: 20px; /* distância do topo da viewport ao "grudar" */
    align-self: flex-start; /* essencial: sem isso o sticky não funciona dentro de flex */
}
.menu-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}
.menu-list {
    list-style: none;
    padding: 0;
}

.menu-list a {
    text-decoration: none;
    color: #333;
    font-weight: 300;
    font-size: 18px; 
    border-radius: 6px;
    transition: 0.3s;
    padding: 10px 15px;

    /* NOVO: espaço entre os links */
    display: block;
    margin-bottom: 20px; /* distância entre os itens */
}

.menu-list a:last-child {
    margin-bottom: 0; /* remove margem do último item */
}

.menu-list a:hover {
  border-bottom: 2px solid #263164;    
}
.menu-lateral.abrir {
    display: block;
}

/* Indicar o item ativo */
.menu-list a.active {
    background-color: #263164; /* Azul mais escuro */
    color: #fff;
}

/* Área dos produtos */
.contente-cards {
    flex: 1; /* Ocupa o máximo possível */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* Responsivo para telas pequenas */
@media (max-width: 992px) {

    .menu-lateral, .contente-cards {
        width: 100%;
    }
    .contente-cards {
        justify-content: center;
    }
}
/* Botão hamburguer */
.menu-hamburguer {
    display: none;
    background: #263164;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 15px;
}

/* MOBILE - até 768px */
@media (max-width: 768px) {

.page-title {
  margin-left:30px;
}
    /* Exibe o botão hamburguer */
    .menu-hamburguer {
        display: block;
        width: fit-content;
    }

    /* Esconde o menu lateral inicialmente */
    .menu-lateral {
        display: none;
        width: 100%;
        height: auto;
        position: statc;
        animation: slideDown 0.3s ease;
    }

    /* Menu aberto */
    .menu-lateral.abrir {
        display: block;
    }

    /* Estilo dos itens */
    .menu-list a {
        margin-bottom: 15px;
        font-size: 17px;
    }

    /* Cards dos produtos no centro */
    .contente-cards {
        justify-content: center;
    }
}

/* Animação suave */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {

    .custom-select {
        width: 100%; 
    }

    .order-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-selector label {
        font-size: 14px;
    }
}


 .alert-box {
    max-width: 400px;
    margin: 15px auto; 
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
    animation: fadeDown 0.35s ease;
}

/* Erro */
.alert-error {
    background: #ffe1e1;
    color: #c0392b;
    border-left: 5px solid #c0392b;
}

/* Sucesso */
.alert-success {
    background: #e2ffe8;
    color: #1e7e34;
    border-left: 5px solid #1e7e34;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* FUNDO ESCURO - Estado Padrão (Escondido) */
.modal-carrinho {
    display: none; /* Apenas NONE aqui */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    /* Remova as linhas de flex daqui */
    z-index: 99999;
}

/* Nova classe para quando estiver ABERTA */
.modal-carrinho.aberto {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* CAIXA DA MODAL */
.modal-content-carrinho {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    width: 340px;
    text-align: center;
    animation: scaleIn .25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ANIMAÇÃO */
@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1;}
}

/* TÍTULO */
.modal-content-carrinho h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #222;
}

/* BOTÕES */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-ir {
    background: #263164;
    padding: 12px;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-ir:hover {
    background: #004f91;
}

.btn-continuar {
    background: #009c35;
    border: none;
    padding: 12px;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.btn-continuar:hover {
    background: #007a2a;
}

/* RESPONSIVO */
@media (max-width: 500px) {
    .modal-content-carrinho {
        width: 85%;
        padding: 22px;
    }
}
