/*
 * Section d'accueil « À la une » (motif casas-vela/featured-products) : produits WooCommerce mis en avant.
 * Reprend les règles de « Produits similaires » (site-parity.css, limitées à .single-product) sans cette
 * portée ; la carte elle-même vient de .casas-pro-product-card. Les !important suivent ceux de
 * .casas-pro-product-template (site-parity.css), qu'il faut surcharger pour passer à quatre colonnes.
 */
.casas-featured {
    padding: 0 28px 112px;
    background-color: var(--wp--preset--color--ivory);
}

.casas-featured .casas-pro-product-related__inner {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 80px;
    border-top: 1px solid var(--wp--preset--color--gold);
}

.casas-featured .casas-pro-product-related__eyebrow {
    margin: 0 0 10px;
    color: var(--wp--preset--color--deep-green);
    font-family: Inter, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-align: center;
}

.casas-featured .casas-pro-product-related__title {
    margin: 0 0 52px;
    color: var(--wp--preset--color--deep-green);
    font-family: Cormorant, serif;
    font-size: clamp(2.2rem, 3.4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.06;
    text-wrap: balance;
    text-align: center;
}

.casas-featured .casas-pro-product-related__collection {
    width: 100%;
    margin: 0;
}

.casas-featured .casas-pro-product-template--related {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px 22px !important;
}

.casas-featured .casas-pro-product-template--related > li {
    width: 100% !important;
    max-width: 100%;
}

.casas-featured .casas-pro-product-card__media {
    max-width: none;
    border-radius: 12px;
    box-shadow: none;
}

.casas-featured .casas-pro-product-card__title,
.casas-featured .casas-pro-product-card__title a,
.casas-featured .casas-pro-product-card__price {
    color: var(--wp--preset--color--deep-green);
}

/* Aucun produit mis en avant : la section disparaît (le bloc ne rend alors aucune carte). */
.casas-featured:not(:has(.casas-pro-product-card)) {
    display: none;
}

@media (max-width: 700px) {
    .casas-featured {
        padding-bottom: 80px;
    }

    .casas-featured .casas-pro-product-related__inner {
        padding-top: 56px;
    }

    .casas-featured .casas-pro-product-related__title {
        margin-bottom: 34px;
        font-size: 2.2rem;
    }

    .casas-featured .casas-pro-product-template--related {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px 16px !important;
    }
}
