/* BuyPorMim Catálogo — grade de produtos */

.bpm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.bpm-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(20, 22, 40, 0.08), 0 1px 2px rgba(20, 22, 40, 0.06);
    border: 1px solid #eef0f5;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bpm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(20, 22, 40, 0.14), 0 4px 8px rgba(20, 22, 40, 0.08);
}

.bpm-card-imagem {
    background: #f5f6fa;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bpm-card-imagem img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bpm-card-corpo {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bpm-card-loja {
    display: inline-block;
    align-self: flex-start;
    background: #eef0ff;
    color: #3d4fea;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.bpm-card-titulo {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #14152b;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.bpm-card-preco {
    font-size: 22px;
    font-weight: 800;
    color: #14152b;
    margin-bottom: 2px;
    margin-top: auto;
}

.bpm-card-preco-legenda {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 14px;
}

.bpm-card-botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3d4fea;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 9px;
    transition: background 0.15s ease;
}

.bpm-card:hover .bpm-card-botao {
    background: #2c3ccc;
}

.bpm-vazio {
    padding: 24px;
    text-align: center;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* (v2.5) Grade mais larga que a coluna de texto do tema (que é estreita)
 * e 4 cards por linha no computador, 3 em telas médias, 2 no celular. */
.bpm-grid,
.bpm-filtros,
.bpm-paginacao,
.bpm-sem-resultados {
    max-width: var(--wp--style--global--wide-size, 1240px) !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}
.bpm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
    .bpm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 780px) {
    .bpm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .bpm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .bpm-card-imagem {
        height: 150px;
    }
}

/* (v2.6) selo "também na Amazon" no card */
.bpm-card-amazon {
    color: #b45309;
    font-weight: 600;
}

/* (v2.8) Botões de atalho para subcategorias (Hardware, Processadores, Memórias...) */
.bpm-atalhos{display:flex;flex-wrap:wrap;gap:8px;margin:0 auto 20px;max-width:var(--wp--style--global--wide-size,1240px);}
.bpm-atalhos a{display:inline-block;padding:8px 14px;border:1px solid #d0d7de;border-radius:999px;background:#fff;color:#1f2937;font-size:14px;text-decoration:none;line-height:1.2;}
.bpm-atalhos a:hover{border-color:#0073aa;color:#0073aa;}

/* (v2.10.3) Cabeçalho (busca + menu) fica parado no topo da página e some ao rolar,
   em vez de flutuar por cima dos cards. */
header.wp-block-template-part {
    position: static !important;
}

/* (v2.12.1) Página do produto: sem data de publicação e título menor */
body.single-bpm_produto .wp-block-post-date {
    display: none;
}
body.single-bpm_produto h1.wp-block-post-title {
    font-size: clamp(20px, 2.2vw, 28px) !important;
    line-height: 1.3;
    font-weight: 600;
}
