.sme-home-product-showcase {
    width: min(calc(100% - 32px), var(--sme-home-product-showcase-width));
    max-width: var(--sme-home-product-showcase-width);
    min-width: 0;
    margin: 20px auto;
    overflow: visible;
    box-sizing: border-box;
}

.sme-home-product-showcase__section {
    position: relative;
    z-index: 1;
    max-width: 100%;
    min-width: 0;
    padding: 24px 18px 18px;
    border: 1px solid var(--sme-color-border);
    border-radius: 18px;
    background: var(--sme-color-surface);
    overflow: visible;
    isolation: isolate;
    box-sizing: border-box;
}

.sme-home-product-showcase__section + .sme-home-product-showcase__section { margin-top: 20px; }

.sme-home-product-showcase__section:hover,
.sme-home-product-showcase__section:focus-within { z-index: 2; }

.sme-home-product-showcase__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sme-home-product-showcase__header h2 {
    margin: 0;
    color: var(--sme-color-heading);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.sme-home-product-showcase__header a {
    color: var(--sme-color-heading);
    font-size: 1rem;
    font-weight: var(--sme-font-weight-bold);
    text-decoration: none;
}

.sme-home-product-showcase__header a:hover,
.sme-home-product-showcase__header a:focus-visible {
    color: var(--sme-color-primary);
    outline: none;
    box-shadow: var(--sme-focus-ring);
}

.sme-home-product-showcase__rule {
    height: 1px;
    margin: 16px 0 18px;
    background: var(--sme-home-product-showcase-rule);
}

.sme-home-product-showcase ul.products,
.sme-home-product-showcase.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 1;
    list-style: none;
    overflow: visible !important;
    isolation: isolate;
}

.sme-home-product-showcase ul.products::before,
.sme-home-product-showcase ul.products::after,
.sme-home-product-showcase.woocommerce ul.products::before,
.sme-home-product-showcase.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

.sme-home-product-showcase__list > li.product,
.sme-home-product-showcase.woocommerce .sme-home-product-showcase__list > li.product {
    position: relative;
    z-index: 1;
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    isolation: auto !important;
    contain: none !important;
    transform: none !important;
}

.sme-home-product-showcase__list > li.product:hover,
.sme-home-product-showcase__list > li.product:focus-within,
.sme-home-product-showcase.woocommerce .sme-home-product-showcase__list > li.product:hover,
.sme-home-product-showcase.woocommerce .sme-home-product-showcase__list > li.product:focus-within { z-index: 100 !important; }

.sme-home-product-showcase__list > li.product:hover > .sme-product-card,
.sme-home-product-showcase__list > li.product:focus-within > .sme-product-card,
.sme-home-product-showcase.woocommerce .sme-home-product-showcase__list > li.product:hover > .sme-product-card,
.sme-home-product-showcase.woocommerce .sme-home-product-showcase__list > li.product:focus-within > .sme-product-card {
    position: relative;
    z-index: 101 !important;
}

.sme-home-product-showcase .sme-product-card--home-showcase,
.sme-home-product-showcase .sme-product-card--home-showcase .sme-product-card__media,
.sme-home-product-showcase .sme-product-card--home-showcase .sme-product-card__image { border-radius: 0 !important; }

@media (max-width: 1023px) {
    .sme-home-product-showcase { overflow-x: clip; }

    .sme-home-product-showcase__section {
        padding: 22px 16px 16px;
        overflow-x: clip;
    }

    .sme-home-product-showcase ul.products,
    .sme-home-product-showcase.woocommerce ul.products {
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: var(--sme-home-product-showcase-tablet-card);
        max-width: 100%;
        padding-bottom: 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        scrollbar-width: none;
        touch-action: pan-x pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
    }

    .sme-home-product-showcase ul.products::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .sme-home-product-showcase__list > li.product { scroll-snap-align: start; }
}

@media (max-width: 767px) {
    .sme-home-product-showcase ul.products,
    .sme-home-product-showcase.woocommerce ul.products { grid-auto-columns: var(--sme-home-product-showcase-mobile-card); }
}

@media (max-width: 640px) {
    .sme-home-product-showcase { width: min(calc(100% - 16px), var(--sme-home-product-showcase-width)); }
    .sme-home-product-showcase__header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
    .sme-home-product-showcase { width: min(calc(100% - 12px), var(--sme-home-product-showcase-width)); }
}

@media (max-width: 1023px) and (hover: hover) and (pointer: fine) {
    .sme-home-product-showcase .sme-product-card--home-showcase:hover,
    .sme-home-product-showcase .sme-product-card--home-showcase:focus-within {
        box-shadow: var(--sme-shadow-card-idle);
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sme-home-product-showcase ul.products,
    .sme-home-product-showcase.woocommerce ul.products { scroll-behavior: auto; }
}
