﻿/* ==========================
   BOTÕES DE FILTRO — PADRÃO SITE
   ========================== */

.catalog-top-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* Botão base */
.cat-btn {
    appearance: none;
    background: transparent;
    border: 1px solid #d7dbe0;
    color: #1a1a1a;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

    /* Hover discreto (igual site) */
    .cat-btn:hover {
        background: #f5f7fa;
        border-color: #1a344f;
        color: #1a344f;
    }

    /* Botão ativo (estilo CTA secundário) */
    .cat-btn.active {
        background: #1a344f;
        border-color: #1a344f;
        color: #ffffff;
    }

/* Mobile */
@media (max-width: 600px) {
    .cat-btn {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
}
.cat-btn.active {
    background: #1a344f;
    border-color: #1a344f;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(26, 52, 79, 0.25);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.book-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .book-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(0,0,0,.10);
    }

    /* CONTÊINER DA IMAGEM */
    .book-card img {
        width: 100%;
        max-height: 220px; /* 🔑 controla o tamanho */
        object-fit: contain; /* não corta, não distorce */
        border-radius: 8px;
        margin-bottom: 12px;
    }

    /* TÍTULO DO LIVRO */
    .book-card span {
        display: block;
        font-size: 0.85rem;
        font-weight: 500;
        line-height: 1.35;
    }


.book-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 12px;
}

.book-tagline {
    font-size: 0.8rem;
    color: #666;
    margin: 6px 0;
    line-height: 1.4;
}

.book-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a344f;
}
