/* ==========================================================================
   Home: productos destacados
   ========================================================================== */

.home-featured {
    /* Ajustá estos valores a la paleta de tu theme */
    --hf-media-bg: #f5f5f5;                       /* gris de fondo de las imágenes */
    --hf-strong: var(--color-black, #202020);
    --hf-muted: #8a8a8a;
    --hf-line: #e6e6e6;
    --hf-gap: clamp(1rem, 2vw, 1.75rem);         /* espacio horizontal entre productos */
    --hf-min: 220px;                             /* ancho mínimo de cada producto */

    padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* Encabezado: título centrado entre dos líneas finas
   -------------------------------------------------------------------------- */

.home-featured__header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.home-featured__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    color: var(--hf-strong);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
}

.home-featured__title::before,
.home-featured__title::after {
    content: "";
    flex: 0 1 160px;
    height: 1px;
    background: var(--hf-line);
}

.home-featured__subtitle {
    margin: 0.75rem 0 0;
    color: var(--hf-muted);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Grilla
   - Celular (< 600px): 2 columnas
   - Desde 600px: tantas columnas como entren, hasta el máximo de --hf-cols,
     sin que ningún producto baje de --hf-min de ancho
   -------------------------------------------------------------------------- */

.home-featured__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem var(--hf-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) {
    .home-featured__list {
        grid-template-columns: repeat(
            auto-fit,
            minmax(
                max(
                    var(--hf-min),
                    calc((100% - (var(--hf-cols, 4) - 1) * var(--hf-gap)) / var(--hf-cols, 4))
                ),
                1fr
            )
        );
    }
}

/* Tarjeta
   -------------------------------------------------------------------------- */

.home-featured__card {
    display: flex;
    flex-direction: column;
    color: var(--hf-strong);
    text-align: left;
    text-decoration: none;
}

.home-featured__media {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--hf-media-bg);
    isolation: isolate;   /* la mezcla de la imagen solo se hace con este fondo gris */
	border-radius: 10px;
}

.home-featured__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;   /* el fondo blanco de la foto toma el gris */
    transition: transform 0.6s ease;
}

.home-featured__card:hover .home-featured__image {
    transform: scale(1.04);
}

.home-featured__name {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

/* Precio: nuevo primero y anterior tachado después, como en la referencia */
.home-featured__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: left;
    gap: 0.5rem;
    margin-top: 0.375rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.home-featured__price del {
    order: 2;
    color: var(--hf-muted);
    font-size: 0.8125rem;
    font-weight: 400;
}

.home-featured__price ins {
    text-decoration: none;
}

.home-featured__card:focus-visible {
    outline: none;
}

.home-featured__card:focus-visible .home-featured__media {
    outline: 2px solid var(--color-gold, #b89c49);
    outline-offset: 3px;
}

/* Movimiento reducido
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .home-featured__image {
        transition: none;
    }
}