/* ------------------------------------------
   GENERAL SECTION STYLES
------------------------------------------- */
.shoppable-reels-section {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.shoppable-reels-heading {
    text-align: center;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.shoppable-reels-title {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.shoppable-reels-description {
    font-size: 15px;
    color: #454545;
}

/* Wrapper */
.custom-video-slider-wrapper {
    margin: 0 auto;
    padding: 0 10px;
    overflow: hidden;
}

/* ------------------------------------------
   SWIPER BASE
------------------------------------------- */
#videoSlider {
    width: 100%;
    margin: 0 auto;
    padding: 40px 0px 60px 0px;
}

#videoSlider .swiper-wrapper {
    align-items: center;
}

#videoSlider .swiper-slide {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s ease;
}

/* Slight scale on active slide */
#videoSlider .swiper-slide-active {
    transform: scale(1.1);
}

/* Video */
#videoSlider video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* ------------------------------------------
   PRODUCT OVERLAY
------------------------------------------- */
/* ------------------------------------------
   FIXED + STABLE OVERLAY
------------------------------------------- */
.shoppable-product-overlay {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 26px); /* consistent desktop + mobile */
    max-width: 90%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3; /* avoids overlap under scaling */
}

/* FLEX product row */
.shoppable-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* always same size */
.shoppable-product-image {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    transform: none !important; /* REMOVE your scale(1.5) */
}

.shoppable-product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

/* title adjustments */
.shoppable-product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: white !important;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
}

/* price */
.shoppable-product-price {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* button fix */
.shoppable-button {
    padding-left: 3.3rem !important;
    background-color: #121212;
    color: white !important;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    border: none;
    position: relative;
}

/* icon */
.shoppable-button:before {
    content: "🛒";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}


/* ------------------------------------------
   SWIPER NAVIGATION (DESKTOP ONLY)
------------------------------------------- */
#videoSlider .swiper-button-prev,
#videoSlider .swiper-button-next {
    color: #121212;
    width: 35px;
    height: 35px;
    display: none;
}

@media (min-width: 1025px) {
    #videoSlider .swiper-button-prev,
    #videoSlider .swiper-button-next {
        display: block;
    }
}

/* ------------------------------------------
   PAGINATION (MOBILE ONLY)
------------------------------------------- */
#videoSlider .swiper-pagination {
    margin-top: 12px;
    text-align: center;
}

@media (min-width: 1025px) {
    #videoSlider .swiper-pagination {
        display: none !important;
    }
}

#videoSlider .swiper-pagination-bullet {
    background: #ba6c95 !important;
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

#videoSlider .swiper-pagination-bullet-active {
    opacity: 1 !important;
}

/* ------------------------------------------
   MOBILE RESPONSIVE
------------------------------------------- */
@media (max-width: 1024px) {

    /* slide width – important for the look */
    #videoSlider .swiper-slide {
        width: 265.333px !important;
        margin-right: 20px !important;;
        aspect-ratio: 9 / 16 !important;;
    }

    /* overlay text tweaks */
    .shoppable-product-overlay {
        padding: 10px 12px;
        bottom: 14px;
        gap: 8px;
        border-radius: 12px;
    }

    .shoppable-product-title {
        font-size: 15px;
    }

    .shoppable-product-price {
        font-size: 12px;
    }

    .shoppable-product-image {
        width: 42px;
        height: 42px;
    }

    .add-to-cart-btn {
        padding: 7px;
        font-size: 13px;
    }
}

/* ------------------------------------------
   DESKTOP STYLES
------------------------------------------- */
@media (min-width: 1025px) {

    /* center slider */
    #videoSlider {
        width: 50vw;
        margin-left: auto;
        margin-right: auto;
    }

    /* ensure wrapper doesn't stretch */
    #videoSlider .swiper-wrapper {
        width: max-content !important;
    }

    /* fixed slide width on desktop */
    #videoSlider .swiper-slide {
        width: 300px !important;
        flex-shrink: 0 !important;
        border-radius: 16px;
    }
}
