.produtos-container {
    max-width: 1250px;
    margin: 0px auto 30px auto;
    padding: 0 15px;
}

.produtos-topo h1 {
    font-size: 34px;
    margin-bottom: 10px;
    color: #222;
}

.produtos-topo p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.total-produtos {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
    color: #222;
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.card-produto {
    background: white;
    border: 1px solid #dddddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.imagem-produto {
    width: 100%;
    height: 220px;
    background: #fffcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.imagem-produto a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagem-produto img,
.img-produto {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.produto-sem-imagem {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #777;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.info-produto {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.conteudo-produto {
    flex: 1;
}

.info-produto h2 {
    font-size: 14px;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #111;
    font-weight: bold;
}

.info-produto p {
    font-size: 14px;
    margin: 6px 0;
    color: #333;
}

.codigo-produto {
    color: #007bff !important;
    font-size: 14px;
}

.aplicacao-produto {
    font-size: 14px;
    margin-top: 6px;
}

.texto-aplicacao {
    margin-top: 4px;
    line-height: 1.35;
}

.texto-limitado {
    max-height: 38px;
    overflow: hidden;
}

.btn-ver-mais {
    margin-top: 4px;
    border: none;
    background: transparent;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
}

.preco-produto {
    font-size: 20px;
    font-weight: bold;
    color: #0d8cff;
    margin-top: 10px;
}

/* BOTÕES DO PRODUTO */

.botoes-produto {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.form-add-carrinho {
    display: flex;
    gap: 6px;
    flex: 1;
    margin: 0;
}

.input-qtd-produto {
    width: 55px;
    height: 34px;
    padding: 4px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.btn-detalhes,
.btn-whatsapp {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    min-height: 34px;
}

.btn-detalhes {
    background: #0d8cff;
    color: white;
}

.btn-detalhes:hover {
    background: #006dcc;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ebc59;
}

/* PAGINAÇÃO NOVA */

.paginacao-produtos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.paginacao-produtos a {
    background: #0d8cff;
    color: white;
    padding: 9px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.paginacao-produtos a:hover {
    background: #006dcc;
}

.paginacao-produtos span {
    font-weight: bold;
    color: #333;
}

/* PAGINAÇÃO ANTIGA - pode deixar para compatibilidade */

.paginacao {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 30px 0;
}

.paginacao a,
.paginacao span {
    padding: 8px 11px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 5px;
    color: #0d8cff;
    background: white;
}

.pagina-atual {
    background: #0d8cff !important;
    color: white !important;
    font-weight: bold;
}

.sem-produtos {
    text-align: center;
    font-size: 18px;
    color: #777;
    margin-top: 30px;
}

.sem-produtos a {
    display: inline-block;
    margin-top: 12px;
    background: #0d8cff;
    color: white;
    padding: 9px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* MODAL APLICAÇÃO */

.modal-aplicacao {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-aplicacao-conteudo {
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    padding: 22px;
    position: relative;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

.modal-aplicacao-conteudo h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #111;
}

.texto-modal-aplicacao {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    white-space: pre-line;
}

.fechar-modal-aplicacao {
    position: absolute;
    right: 12px;
    top: 8px;
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.item-aplicacao-modal {
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.4;
    border-bottom: 1px solid #eee;
}

.item-aplicacao-modal:last-child {
    border-bottom: none;
}

/* RESPONSIVO */

@media (max-width: 768px) {
    .produtos-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .produtos-topo h1 {
        font-size: 26px;
    }

    .grid-produtos {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .imagem-produto {
        height: 160px;
    }

    .info-produto {
        padding: 10px;
    }

    .info-produto h2 {
        font-size: 13px;
    }

    .info-produto p {
        font-size: 12px;
    }

    .preco-produto {
        font-size: 17px;
    }

    .botoes-produto {
        flex-direction: column;
    }

    .form-add-carrinho {
        width: 100%;
    }

    .input-qtd-produto {
        width: 55px;
    }

    .btn-detalhes,
    .btn-whatsapp {
        width: 100%;
    }

    .paginacao-produtos {
        gap: 8px;
    }

    .paginacao-produtos a {
        padding: 8px 11px;
        font-size: 13px;
    }
}