/* ProductCard.css — Ramos de Atuação
   Layout: 3 colunas no desktop; primeiro card (destaque) ocupa 2 colunas. */

/* ── Grid Container ── */
.product-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ── Card base ── */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* ── Card Destaque (primeiro item — ocupa 2 colunas) ── */
.product-card--featured {
    grid-column: 1 / 3;
    flex-direction: row;
    min-height: 360px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── Imagem ── */
.product-image {
    width: 100%;
    padding-top: 62%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card--featured .product-image {
    width: 52%;
    padding-top: 0;
    flex-shrink: 0;
    min-height: 360px;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* ── Detalhes ── */
.product-details {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.product-card--featured .product-details {
    padding: 2rem 2rem 2rem 1.75rem;
    justify-content: center;
    gap: 0.9rem;
}

/* ── Badge de subtítulo ── */
.product-category-badge {
    display: inline-block;
    background: rgba(187, 6, 6, 0.08);
    color: #BB0606;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    width: fit-content;
}

/* ── Título ── */
.product-title-card {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    text-overflow: ellipsis;
    margin: 0;
}

.product-card--featured .product-title-card {
    font-size: 1.6rem;
    line-height: 1.25;
    color: #111111;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    margin-bottom: 0.25rem;
}

/* ── Descrição (em todos os cards) ── */
.product-description {
    font-size: 0.84rem;
    color: #777;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin: 0;
}

.product-card--featured .product-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

/* ── Botão / CTA ── */
.product-button {
    background-color: #BB0606;
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-top: auto;
    width: fit-content;
    font-family: inherit;
}

.product-button span { display: inline; }

.product-button:hover {
    background-color: #9a0505;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(187, 6, 6, 0.3);
}

.product-card--featured .product-button {
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.chevron-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ── Estado vazio ── */
.pc-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    padding: 2.5rem 1rem;
    font-size: 0.95rem;
}

/* ── Responsividade ── */
@media (max-width: 1024px) {
    .product-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card--featured {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .product-card-container {
        grid-template-columns: 1fr;
        padding: 0 0.75rem 1.5rem;
        gap: 16px;
    }
    .product-card--featured {
        flex-direction: column;
        grid-column: 1;
        min-height: unset;
    }
    .product-card--featured .product-image {
        width: 100%;
        padding-top: 56%;
        min-height: unset;
    }
    .product-card--featured .product-details {
        padding: 1.25rem;
    }
    .product-card--featured .product-title-card {
        font-size: 1.3rem;
    }
    .product-card--featured .product-description {
        font-size: 0.9rem;
    }
}
