/* Reserve the controls' height before carousel initialization. */
.ep-home .ep-home-stock-carousel .ep-home-section-head {
    min-height: 44px;
}

.ep-home .ep-home-stock-carousel .ep-home-section-head h2 {
    font-family: Arial, sans-serif;
}

.ep-home .ep-home-stock-carousel .ep-gallery-card {
    animation: none;
}

.ep-home .ep-home-stock-carousel[aria-labelledby="ep-home-latest-title"] +
    .ep-home-stock-carousel[aria-labelledby="ep-home-recommended-title"] {
    border-top: 1px solid #e2e3d8;
    padding-top: clamp(16px, 3vw, 24px);
}

.ep-home .ep-home-stock-carousel .ep-gallery-grid {
    --ep-gallery-columns: 5;
    touch-action: pan-y;
}

.ep-home .ep-home-stock-carousel .ep-gallery-grid > .ep-gallery-card[hidden],
.ep-home .ep-home-stock-carousel .ep-gallery-grid:not(.is-enhanced) > .ep-gallery-card:nth-child(n + 11) {
    display: none !important;
}

.ep-home .ep-home-stock-carousel .ep-gallery-grid > .ep-gallery-card:not([hidden]) {
    display: flex;
}

.ep-home .ep-home-stock-carousel .ep-gallery-card > a:hover .ep-gallery-name {
    text-decoration: none;
}

.ep-home .ep-home-stock-carousel .ep-gallery-card > a:focus-visible {
    outline: 2px solid #984b2e;
    outline-offset: -2px;
}

@media (hover: hover) and (pointer: fine) {
    .ep-home .ep-home-stock-carousel .ep-gallery-card:hover {
        position: relative;
        z-index: 1;
        box-shadow: 0 5px 15px rgb(62 53 41 / 14%);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .ep-home .ep-home-stock-carousel .ep-gallery-card {
        transition: transform 160ms ease-out, box-shadow 160ms ease-out;
    }

    .ep-home .ep-home-stock-carousel .ep-gallery-card:hover {
        transform: translateY(-2px) scale(1.025);
    }
}

.ep-home .ep-home-stock-carousel .ep-gallery-controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.ep-home .ep-home-stock-carousel .ep-gallery-controls button:focus-visible {
    outline: 2px solid #984b2e;
    outline-offset: 2px;
}

.ep-home .ep-home-stock-carousel .ep-gallery-cart {
    margin: 0 9px 9px;
}

.ep-home .ep-home-stock-carousel .ep-gallery-cart > .button {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--ep-terracotta);
    color: #fff;
    text-align: center;
}

@media (max-width: 700px) {
    .ep-home .ep-home-stock-carousel .ep-gallery-grid {
        --ep-gallery-columns: 2;
    }

    .ep-home .ep-home-stock-carousel .ep-gallery-grid:not(.is-enhanced) > .ep-gallery-card:nth-child(n + 5) {
        display: none !important;
    }
}
