.featured-products-section {
    width: 100%;
    margin: 3rem auto 0;
    padding: 2rem;
    border: 1px solid #d7e2ee;
    border-radius: 28px;
    background: linear-gradient(145deg, #f7fafc 0%, #fff 55%, #fff8f2 100%);
}

.page-home .featured-products-section {
    width: min(calc(100% - 2rem), 1440px);
}

.featured-products-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}

.featured-products-heading-row h3 {
    margin: 0;
    color: #0a2342;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    line-height: 1.1;
}

.featured-products-heading-row > p {
    max-width: 37rem;
    margin: 0;
    color: #596d85;
    font-size: .95rem;
}

.featured-products-eyebrow {
    margin: 0 0 .35rem;
    color: #d95e00;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: .9rem;
}

/* Homepage uses its own design bundle, so featured cards are self-contained here. */
.page-home .featured-products-section .card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #d7e2ee;
    border-radius: 1.15rem;
    background: #fff;
}

.page-home .featured-products-section .card-media {
    position: relative;
    padding: .7rem .7rem 0;
}

.page-home .featured-products-section .card-badge-row {
    position: absolute;
    top: .88rem;
    right: .88rem;
    left: .88rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.page-home .featured-products-section .card-badge {
    display: inline-flex;
    min-height: 1.6rem;
    align-items: center;
    justify-content: center;
    padding: .18rem .48rem;
    border-radius: 999px;
    background: rgba(18, 37, 60, .9);
    color: #fff;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.page-home .featured-products-section .card-badge-sale {
    background: #ffecd8;
    color: #c25c07;
}

.page-home .featured-products-section .card-badge-stock,
.page-home .featured-products-section .card-badge-stock.is-in-stock {
    background: #eef7f2;
    color: #1f8c58;
}

.page-home .featured-products-section .image-wrap {
    display: flex;
    height: 208px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .75rem;
    border: 1px solid #e4ebf1;
    border-radius: 1rem;
    background: #f7fafc;
}

.page-home .featured-products-section .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.page-home .featured-products-section .card-body {
    display: flex;
    min-height: 230px;
    flex: 1;
    flex-direction: column;
    gap: .75rem;
    padding: .9rem;
}

.page-home .featured-products-section .card-brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.page-home .featured-products-section .card-pill {
    display: inline-flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: .26rem .5rem;
    border-radius: 999px;
    background: #edf3f8;
    color: #153b66;
    font-size: .74rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-home .featured-products-section .card-pill.is-muted {
    background: #f3f6f9;
    color: #61738b;
}

.page-home .featured-products-section .card-main h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #0a2342;
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.34;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-home .featured-products-section .meta {
    display: -webkit-box;
    overflow: hidden;
    margin: .15rem 0 0;
    color: #61738b;
    font-size: .82rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-home .featured-products-section .card-bottom {
    display: grid;
    gap: .7rem;
    margin-top: auto;
}

.page-home .featured-products-section .price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
}

.page-home .featured-products-section .price-stack {
    display: grid;
    gap: .15rem;
}

.page-home .featured-products-section .price-old {
    color: #8a9aab;
    font-size: .76rem;
    text-decoration: line-through;
}

.page-home .featured-products-section .price {
    color: #153b66;
    font-size: 1.12rem;
    font-weight: 800;
    white-space: nowrap;
}

.page-home .featured-products-section .availability {
    color: #1f8c58;
    font-size: .74rem;
    font-weight: 800;
}

.page-home .featured-products-section .card-actions {
    display: grid;
    grid-template-columns: 1fr;
}

.page-home .featured-products-section .cta-secondary {
    display: inline-flex;
    width: 100%;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    padding: .62rem .72rem;
    border: 1px solid rgba(28, 62, 98, .28);
    border-radius: .86rem;
    background: linear-gradient(180deg, #284b6e 0%, #193754 100%);
    box-shadow:
        0 10px 22px rgba(18, 38, 61, .14),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .96rem;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.page-home .featured-products-section .cta-secondary:hover,
.page-home .featured-products-section .cta-secondary:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(28, 62, 98, .42);
    background: linear-gradient(180deg, #315b85 0%, #214666 100%);
    box-shadow:
        0 14px 28px rgba(18, 38, 61, .18),
        0 0 0 4px rgba(36, 84, 129, .12),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    color: #fff;
}

.page-home .featured-products-section .cta-secondary:active {
    transform: translateY(0);
    box-shadow:
        0 6px 14px rgba(18, 38, 61, .12),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}

@media (max-width: 1100px) {
    .featured-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .featured-products-section {
        width: 100%;
        margin-top: 2rem;
        padding: 1rem;
        border-radius: 20px;
    }


    .page-home .featured-products-section {
        width: calc(100% - 1rem);
    }

    .featured-products-heading-row {
        align-items: start;
        flex-direction: column;
        gap: .45rem;
    }

    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .page-home .featured-products-section .image-wrap {
        height: 158px;
        padding: .45rem;
    }

    .page-home .featured-products-section .card-body {
        min-height: 218px;
        padding: .72rem;
    }

    .page-home .featured-products-section .card-brand-row {
        display: grid;
        justify-items: start;
    }

    .page-home .featured-products-section .price-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }

}

@media (max-width: 560px) {
    .featured-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    .page-home .featured-products-section .image-wrap {
        height: 132px;
    }

    .page-home .featured-products-section .card-body {
        min-height: 0;
        padding: .62rem;
    }

    .page-home .featured-products-section .card-main h2 {
        font-size: .86rem;
    }

    .page-home .featured-products-section .price {
        font-size: 1rem;
    }
}
