/* Products pages (grid + detail) */

.PageContainer{
    width: min(1200px, 92vw);
    margin: 20px auto 80px auto;
}

.PageTitle{
    font-size: 28pt;
    color: var(--Secundario);
    margin: 20px 0 10px 0;
}

.PageSubtitle{
    font-size: 14pt;
    color: #3f3f3f;
    margin: 0 0 20px 0;
}

.ProductGrid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.ProductCard{
    display: block;
    background: white;
    border: var(--BordeCartas);
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.ProductCard:hover{
    background: #e8e8e8;
}

.ProductCard img{
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
    
    border-radius: 12px;
}

.ProductName{
    margin: 12px 0 4px 0;
    font-size: 16pt;
}

.ProductMeta{
    margin: 0;
    color: #555;
}

.LoadMore{
    margin-top: 18px;
    width: 100%;
    background: white;
    border: 3px solid var(--Secundario);
    border-radius: 18px;
    padding: 14px 16px;
    font-size: 14pt;
    cursor: pointer;
}

.LoadMore:hover{
    background: #e8e8e8;
}

/* Product detail */
.Detail{
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 22px;
    background: white;
    border: 3px solid var(--Secundario);
    border-radius: 18px;
    padding: 18px;
}

.Detail img{
    width: 100%;
    height: 340px;
    object-fit: contain;
    border: 2px solid #d7d7d7;
    border-radius: 12px;
}

.Detail h2{
    margin: 0 0 8px 0;
    font-size: 24pt;
}

.Detail p{
    margin: 6px 0;
    font-size: 13pt;
}

.BackLink{
    display: inline-block;
    margin: 10px 0 16px 0;
    color: var(--Primario);
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px){
    .Detail{
        grid-template-columns: 1fr;
    }
}
