/*
 * Home Featured Products — 6-card grid.
 *
 * WC's default product card markup ships inside <li> wrappers; we
 * scope spacing/typography around them without overriding the card
 * itself (that's Plan 1B-δ). Below 1023px collapses to 3 cols,
 * below 767px to 2, below 519px to 1.
 */

.ecko-home-featured {
    background-color: var(--paper);
    padding: 64px 0;
}

.ecko-home-featured__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.ecko-home-featured__header {
    text-align: center;
    margin-bottom: 32px;
}

.ecko-home-featured__header h2 {
    margin-top: 4px;
}

.ecko-home-featured__grid {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.ecko-home-featured__item {
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

/* WC default markup uses <li class="product"> — reset any conflicting
   styles. Plan 1B-δ replaces the card template entirely. */
.ecko-home-featured__item .product {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ecko-home-featured__more {
    text-align: center;
}

@media (max-width: 1023px) {
    .ecko-home-featured__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .ecko-home-featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 519px) {
    .ecko-home-featured__grid {
        grid-template-columns: 1fr;
    }
}
