/* Local storefront repairs. Do not change product content, pricing, or media. */

/* The KOL template's global 320px minimum was overriding Swiper's measured
   collection slides. Let the existing three/two-up carousel own its widths. */
.homenewcollection .newcollection-list > .swiper-wrapper > .swiper-slide {
    min-width: 0;
}
.homenewcollection .newcollection-list .pic img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Give every KOL card the same media/text proportions, independent of the
   video's intrinsic metadata. Keep the existing carousel and brand styling. */
.carousel-module .my-swiper > .swiper-wrapper > .swiper-slide {
    width: 55vw;
    min-width: 0;
}
.carousel-module .display-card .video-section {
    flex: 0 0 48%;
    width: 48%;
    min-width: 0;
    height: auto;
    align-self: flex-start;
}
.carousel-module .display-card .text-section {
    min-width: 0;
    padding-left: clamp(16px, 2.1vw, 40px);
}
.carousel-module .text-content-wrapper,
.carousel-module .kol-quote {
    min-width: 0;
    overflow-wrap: break-word;
}
.carousel-module .kol-name {
    padding-right: 0;
    overflow-wrap: anywhere;
}
.carousel-module .action-container {
    padding-left: 0;
    margin-top: 24px;
}
.carousel-module .explore-btn {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
}

/* Scroll the basket column as one surface. A tall coupon/totals footer must
   not reduce the product viewport to a small strip on shorter screens. */
#cart-sidebar .cart-sidebar-content {
    height: 100dvh !important;
    max-height: 100dvh;
}
#cart-sidebar .cart-sidebar-main {
    min-height: 0;
}
#cart-sidebar .cart-content-wrapper {
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
#cart-sidebar .cart-sidebar-header,
#cart-sidebar .cart-sidebar-body,
#cart-sidebar .cart-sidebar-footer {
    flex: 0 0 auto;
}
#cart-sidebar .cart-sidebar-body {
    overflow: visible;
}
#cart-sidebar .cart-item-details {
    min-width: 0;
    overflow-wrap: anywhere;
}
#cart-sidebar .cart-item-image img {
    display: block;
    object-fit: contain;
}

@media (min-width: 769px) and (max-width: 1366px) {
    .carousel-module .my-swiper > .swiper-wrapper > .swiper-slide { width: 70vw; }
}
@media (max-width: 768px) {
    .carousel-module .my-swiper > .swiper-wrapper > .swiper-slide { width: 75vw; }
    .carousel-module .my-swiper .display-card { padding: 16px; }
    .carousel-module .display-card .video-section {
        flex: 0 0 auto;
        width: 100%;
    }
    .carousel-module .display-card .text-section { padding: 0; }
}
@media (max-width: 1024px) {
    /* The theme already scrolls the complete mobile drawer and places the
       basket before recommendations; retain that ordering without nesting. */
    #cart-sidebar .cart-content-wrapper { overflow: visible; }
}
