/* =========================================================
   LISTAGEM DE CATEGORIA / BUSCA
========================================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.product-image {
    height: 230px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.product-description {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
    min-height: 40px;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 14px;
    margin-top: auto;
}

.product-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-dark);
    margin-top: 4px;
}

.product-price-large {
    font-size: 38px;
}

.pix-price {
    color: var(--success);
    font-weight: 800;
    margin-top: 4px;
}

.installments {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.btn-buy {
    width: 100%;
    border: 0;
    background: var(--primary);
    color: var(--white);
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 16px;
    transition: 0.2s ease;
}

.btn-buy:hover {
    background: var(--primary-dark);
}

/* =========================================================
   DETALHE DO PRODUTO
========================================================= */

.product-detail {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 44px;
    align-items: start;
}

.product-detail-image {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border);
}

.product-detail-image img {
    width: 100%;
    border-radius: 18px;
}

.product-detail-info {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
}

.product-detail-info h1 {
    margin: 6px 0 12px;
    font-size: 34px;
    color: var(--primary-dark);
}

.product-detail-description {
    color: var(--muted);
    line-height: 1.6;
}

.stock-info {
    margin-top: 18px;
    color: var(--muted);
}

.buy-form {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: end;
}

.buy-form label {
    grid-column: 1 / -1;
    font-weight: 800;
}

.buy-form input {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 12px;
    font-size: 16px;
}

.product-full-description {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
}
