/* ===== RESET E VARIÁVEIS ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --cor-primaria: #1a55ff;
    --cor-secundaria: #0be5e7;
    --cor-preto: #1e1e1e;
    --branco: #ffffff;
    --cinza-claro: #f4faff;
    --texto-suave: #555555;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


/* ===== BASE DA PÁGINA ===== */
.headerProdutos {
    /* background-color: var(--branco); */
    padding: 10px;
}

.produtos-page .grid-produtos {
    /* background-color: var(--branco); */
    padding-bottom: 80px;
    display: flex;
    flex-wrap: wrap; /* Permite que os cards pulem para a linha de baixo */
    gap: 20px;
    justify-content: flex-start;
}
.produtos-page .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== CABEÇALHO ===== */
.secao-header {
    text-align: center;
    margin-bottom: 40px;
}

.secao-header h1 {
    color: var(--cor-preto);
    font-size: 2rem;
    margin-bottom: 10px;
}

.secao-header p {
    color: #555;
}

/* ===== TÍTULO DE CATEGORIA ===== */
.categoria-header {
    margin: 50px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.categoria-header h2 {
    color: var(--cor-preto);
    font-size: 1.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.linha-design {
    height: 3px;
    flex: 1;
    background: linear-gradient(to right, #0be5e7, transparent);
}

/* ===== GRID DE PRODUTOS (DESKTOP) ===== */
.produtos-page .grid-produtos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ===== CARD ===== */
.card-produto {
    flex: 0 1 calc(25% - 15px); /* Ocupa 25% menos o espaço do gap */
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e6edf5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: 0.3s;
}

.card-produto:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.img-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #eef3f8;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.conteudo-produto {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.conteudo-produto h3 {
    color: var(--cor-preto);
    font-size: 1rem;
    margin-bottom: 8px;
}

.conteudo-produto p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-card {
    margin-top: auto;
    padding: 10px;
    border: 1.5px solid #1a55ff;
    color: #1a55ff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-card:hover {
    background: #1a55ff;
    color: white;
}

/* ===== SEÇÃO DE PAGAMENTO ===== */
.pagamento-info {
    background: var(--branco);
    padding: 80px 0;
    border-top: 1px solid #e0eefd;
}

.pagamento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.pagamento-box {
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.box-pf { background: #f4faff; }
.box-pj  { background: #f4faff; }

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--branco);
    flex-shrink: 0;
}

/* ===== RESPONSIVIDADE (MEDIA QUERIES) ===== */

/* Tablet */
@media (max-width: 1024px) {
    .card-produto {
        flex: 0 1 calc(33.33% - 14px);
    }
}

/* Mobile (1 por linha - SEM ERRO) */
@media (max-width: 768px) {
    .produtos-page .grid-produtos {
        gap: 15px;
    }

    .card-produto {
        flex: 0 1 100% !important; /* Força 100% da largura da tela */
    }

    /* Ajuste de separação do último card conforme sua preferência */
    .grid-produtos .card-produto:last-child {
        margin-bottom: 20px;
    }
}