.storefront-section {
    padding: 0.9rem 0;
}

.storefront-section__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.storefront-section__header--tight {
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.storefront-section__header--stack {
    grid-template-columns: minmax(0, 1fr);
}

.storefront-section__lead {
    min-width: 0;
}

.storefront-section__eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.62rem;
    margin-bottom: 0.42rem;
    font-size: 0.72rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.storefront-section__title {
    margin: 0;
    font-size: clamp(1.3rem, 5.4vw, 1.48rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.storefront-section__description {
    margin: 0.28rem 0 0;
    max-width: 42rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.storefront-section__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    justify-self: end;
    min-height: 2.25rem;
    padding: 0.5rem 0.76rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.storefront-section__lead .storefront-section__link {
    margin-top: 0.5rem;
}

.storefront-section__controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-self: end;
}

.storefront-section__control {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: var(--mybooze-primary, var(--primary-color, #ff6b35));
    box-shadow: 0 8px 18px rgba(255, 107, 53, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.storefront-section__control:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.28);
}

.storefront-section__control .carousel-control-prev-icon,
.storefront-section__control .carousel-control-next-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.storefront-section__rail-wrap {
    position: relative;
    width: 100%;
    overflow: visible;
}

.storefront-card-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.storefront-card-rail--compact {
    gap: 0.6rem;
}

.storefront-card-rail__item {
    flex: 0 0 11.1rem;
    min-width: 11.1rem;
    scroll-snap-align: start;
}

.storefront-card-rail__item > * {
    width: 100%;
    max-width: none;
}

/* Shared compact rails own the card width; legacy product-container width rules
   should not narrow the inner card inside these rails. */
.storefront-card-rail__item--product > .product-container.product-item.web-product-item-small {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.storefront-section--spotlight .storefront-card-rail,
.storefront-section--catalog .storefront-card-rail {
    gap: 0.75rem;
}

.storefront-card-rail__item--product {
    flex-basis: 11.1rem;
    min-width: 11.1rem;
}

.storefront-section--editorial {
    padding: 1.1rem;
}

.storefront-section--editorial .storefront-section__header {
    margin-bottom: 1rem;
}

.storefront-section--editorial .storefront-section__eyebrow {
    padding: 0.24rem 0.62rem;
    margin-bottom: 0.42rem;
    font-size: 0.7rem;
}

.storefront-section--editorial .storefront-section__title {
    font-size: clamp(1.3rem, 5.4vw, 1.48rem);
    line-height: 1.14;
}

.storefront-section--editorial .storefront-section__description {
    font-size: 0.88rem;
    line-height: 1.45;
}

.storefront-section--editorial .storefront-section__link {
    width: 100%;
}

@media (min-width: 576px) {
    .storefront-card-rail__item {
        flex-basis: 11.85rem;
        min-width: 11.85rem;
    }
}

@media (min-width: 768px) {
    .storefront-section {
        padding: 1rem 0;
    }

    .storefront-section__header {
        gap: 1rem;
        margin-bottom: 0.95rem;
    }

    .storefront-section__eyebrow {
        padding: 0.28rem 0.72rem;
        margin-bottom: 0.5rem;
        font-size: 0.74rem;
    }

    .storefront-section__title {
        font-size: clamp(1.45rem, 2.2vw, 1.8rem);
        line-height: 1.08;
    }

    .storefront-section__description {
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .storefront-section__link {
        min-height: 2.65rem;
        padding: 0.72rem 0.95rem;
        font-size: 0.88rem;
    }

    .storefront-section__controls {
        gap: 0.55rem;
    }

    .storefront-section__control {
        width: 2.55rem;
        height: 2.55rem;
    }

    .storefront-card-rail {
        gap: 1rem;
    }

    .storefront-card-rail--compact {
        gap: 0.85rem;
    }

    .storefront-card-rail__item {
        flex-basis: 13.75rem;
        min-width: 13.75rem;
    }

    .storefront-section__header--tight {
        gap: 1rem;
        margin-bottom: 0.95rem;
    }

    .storefront-section--spotlight .storefront-card-rail,
    .storefront-section--catalog .storefront-card-rail {
        gap: 1rem;
    }

    .storefront-card-rail__item--product {
        flex-basis: 13.75rem;
        min-width: 13.75rem;
    }

    .storefront-section--editorial {
        padding: 1.75rem;
    }

    .storefront-section--editorial .storefront-section__header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1rem;
    }

    .storefront-section--editorial .storefront-section__eyebrow {
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }

    .storefront-section--editorial .storefront-section__title {
        font-size: clamp(1.45rem, 2.2vw, 1.8rem);
        line-height: 1.1;
    }

    .storefront-section--editorial .storefront-section__description {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .storefront-section--editorial .storefront-section__link {
        width: auto;
    }
}
