/* Watch & Buy Frontend Styles - Horizontal Carousel */

/* Reset and Base */
.wab-reels-feed {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: #f5f5f5;
}

.wab-reels-container {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Slick Slider Customization */
.wab-reels-container .slick-list {
    margin: 0 -15px;
    padding: 0 15px;
}


.wab-reels-container .slick-slide>div {
    height: 100%;
}

/* Reel Item - Horizontal Card */
.wab-reel-item {
    position: relative;
    width: 100%;
    height: auto;
    /* min-height: 500px; */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0 10px;
}

.wab-reel-item:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wab-reel-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 190%;
    /* 3:4 aspect ratio for vertical videos */
    background: #000;
    overflow: hidden;
}

.wab-reel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    cursor: pointer;
}

/* Video Controls */
.wab-reel-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.wab-control-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s;
    padding: 0;
}

.wab-control-btn:hover,
.wab-control-btn:focus {
    background: rgba(0, 0, 0, 0.7);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wab-control-btn:active {
    transform: scale(0.95);
}

.wab-icon-mute,
.wab-icon-unmute,
.wab-icon-play,
.wab-icon-pause {
    display: inline-block;
}

.wab-reel-video[data-muted="true"]~.wab-reel-controls .wab-icon-unmute,
.wab-reel-video[data-muted="false"]~.wab-reel-controls .wab-icon-mute {
    display: none;
}

.wab-reel-video[data-playing="true"]~.wab-reel-controls .wab-icon-play,
.wab-reel-video[data-playing="false"]~.wab-reel-controls .wab-icon-pause {
    display: none;
}

/* Product Overlay - Inside Video Container */
.wab-product-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 100%;
    padding: 0;
    background: transparent;
    pointer-events: auto;
    opacity: 1;
    z-index: 10;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.wab-product-overlay.wab-visible {
    opacity: 1;
    pointer-events: auto;
}

.wab-product-overlay.wab-position-top {
    bottom: auto;
    top: 10px;
    transform: translateX(-50%);
}

.wab-product-card {
    background: #fff;
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    /* gap: 12px; */
    max-width: 100%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.wab-product-card-inner-left {
    flex: 0 0 auto;
    flex-basis: 30%;
}

.wab-product-card-inner-right {
    flex: 1;
    min-width: 0;
    display: flex;
    /* flex-direction: row; */
    /* align-items: center; */
    gap: 6px;
    position: relative;
    flex-direction: column;
    padding: 8px;
}

.wab-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wab-product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.wab-product-favorite {
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wab-product-favorite:hover,
.wab-product-favorite:focus {
    color: #ffc107;
    transform: scale(1.1);
    outline: none;
}

.wab-product-favorite:active {
    transform: scale(0.95);
}

.wab-product-favorite.active {
    color: #ffc107;
}

.wab-product-image img {
    /* width: 60px;
    height: 60px; */
    object-fit: cover;
    min-height: 100px;
    /* aspect-ratio: 1 / 1; */
    /* border-radius: 8px; */
}

.wab-product-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    flex: 1;
    min-width: 0;
}

.wab-product-price {
    /* font-size: 18px; */
    font-weight: 700;
    /* color: #d32f2f; */
    margin: 0;
    line-height: 1.2;
}
.wab-product-price .amount {
    color: #000;
    font-size: 12px;
    text-decoration: none;
}

.wab-product-price del {
    color: #999;
    font-size: 12px;
    margin-right: 5px;
}

.wab-product-actions {
    flex: 0 0 auto;
    line-height: 1;
}

.wab-add-to-cart-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    min-height: unset;
    line-height: 1.3;
    /* min-width: 100px; */
}

.wab-add-to-cart-btn:hover,
.wab-add-to-cart-btn:focus {
    /* background: #1565c0;
    outline: 2px solid #fff; */
    /* outline-offset: 2px; */
}

.wab-add-to-cart-btn:active {
    transform: scale(0.98);
}

.wab-add-to-cart-btn.wab-disabled,
.wab-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.wab-product-actions .added_to_cart{
    margin-left: 10px;
    font-size: 13px;
}

.wab-add-to-cart-btn.wab-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.wab-add-to-cart-btn.wab-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wab-spin 0.6s linear infinite;
}

@keyframes wab-spin {
    to {
        transform: rotate(360deg);
    }
}

.wab-overlay-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: background 0.3s;
    z-index: 1;
}

.wab-overlay-close:hover,
.wab-overlay-close:focus {
    background: rgba(0, 0, 0, 0.7);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Cart Notification */
.wab-cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 300px;
}

.wab-cart-notification.wab-show {
    opacity: 1;
    transform: translateX(0);
}

.wab-cart-notification.wab-error {
    background: #f44336;
}

/* Full-screen Reels Page */
.wab-reels-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.wab-reels-page-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.wab-no-reels {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #fff;
    font-size: 18px;
}

/* Slick Slider Navigation Buttons */
.wab-reels-container .slick-prev,
.wab-reels-container .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, transform 0.2s;
}

.wab-reels-container .slick-prev:hover,
.wab-reels-container .slick-prev:focus,
.wab-reels-container .slick-next:hover,
.wab-reels-container .slick-next:focus {
    background: #fff;
    /* transform: translateY(-50%) scale(1.1); */
    /* outline: 2px solid #0073aa; */
    /* outline-offset: 2px; */
}

.wab-reels-container .slick-prev {
    left: 0;
}

.wab-reels-container .slick-next {
    right: 0;
}

.wab-reels-container .slick-prev:before,
.wab-reels-container .slick-next:before {
    content: none;
}

.wab-reels-container .slick-prev i,
.wab-reels-container .slick-next i {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* Slick Slider Dots */
.wab-reels-container .slick-dots {
    bottom: -40px;
    text-align: center;
}

.wab-reels-container .slick-dots li button:before {
    color: rgba(0, 0, 0, 0.3);
    font-size: 12px;
}

.wab-reels-container .slick-dots li.slick-active button:before {
    color: #d32f2f;
}

/* Responsive Product Overlay */
@media (max-width: 768px) {
    .wab-product-overlay {
        /* width: calc(100% - 16px); */
        margin-bottom: 20px;
    }

    .wab-product-card {
        /* padding: 10px; */
        gap: 10px;
        width: 90%;
        margin: 0 auto;
    }

    .wab-product-image img {
        /* width: 50px;
        height: 50px; */
    }

    .wab-product-title {
        font-size: 13px;
    }

    .wab-product-price {
        font-size: 16px;
    }

    .wab-add-to-cart-btn {
        /* padding: 8px 16px;
        font-size: 13px;
        min-width: 90px; */
    }

    .wab-product-favorite {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wab-product-overlay {
        /* width: calc(100% - 12px); */
        /* margin-bottom: 6px; */
    }

    .wab-product-card {
        /* padding: 8px; */
        gap: 8px;
    }

    .wab-product-image img {
        /* width: 45px;
        height: 45px; */
    }

    .wab-product-title {
        /* font-size: 12px; */
    }

    .wab-product-price {
        font-size: 15px;
    }

    .wab-add-to-cart-btn {
        /* padding: 8px 12px; */
        /* font-size: 12px; */
        /* min-width: 80px; */
    }

    .wab-product-card-inner-right {
        gap: 8px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    /* .wab-add-to-cart-btn {
        padding: 12px 20px;
        font-size: 15px;
    } */

    .wab-reels-container .slick-prev,
    .wab-reels-container .slick-next {
        width: 50px;
        height: 50px;
    }

    .wab-reels-container .slick-prev {
        left: 0;
    }

    .wab-reels-container .slick-next {
        right: 0;
    }
}

/* Accessibility */
.wab-reel-video:focus,
.wab-control-btn:focus,
.wab-add-to-cart-btn:focus,
.wab-overlay-close:focus {
    /* outline: 2px solid #0073aa;
    outline-offset: 2px; */
}

/* Loading State */
.wab-reel-item.wab-loading .wab-reel-video {
    opacity: 0.5;
}

/* Hide elements for screen readers when appropriate */
.wab-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */

/* Lightbox Container */
.wab-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    overflow: hidden;
}

.wab-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.wab-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Lightbox Header */

.wab-lightbox-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    position: absolute;
    top: 20px;
    right: 0;
    z-index: 10001;
}

.wab-lightbox-close i {
    font-size: 20px;
    line-height: 1;
}

.wab-lightbox-close:hover,
.wab-lightbox-close:focus {
    /* background: rgba(255, 255, 255, 0.3); */
    /* transform: scale(1.1); */
    /* outline: 2px solid #fff;
    outline-offset: 2px; */
}

/* Lightbox Reel Container - Carousel */
.wab-lightbox-reel-container {
    width: 100%;
    max-width: 800px;
    height: 100%;
    /* max-height: 90vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    position: relative;
    padding: 0;
}

/* Lightbox Carousel */
.wab-lightbox-carousel {
    width: 100%;
    /* padding: 0 80px; */
}

.wab-lightbox-carousel .slick-list {
    overflow: visible;
    /* Allow partial visibility of side slides */
    margin: 0 -10px;
}

.wab-lightbox-carousel .slick-slide {
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    transform: scale(0.85);


}

.wab-lightbox-carousel .slick-slide.slick-center {
    opacity: 1;
    transform: scale(1);
}

/* Ensure only 3 slides are visible - hide any overflow */
.wab-lightbox-carousel .slick-track {
    display: flex;
    align-items: center;
}

.wab-lightbox-reel-item {
    /* padding: 0 10px; */
    outline: none;
}

.wab-lightbox-reel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 380px;
    margin: 0 auto;
}

/* Lightbox Navigation Arrows */
.wab-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    width: 50px;
    height: 50px;
    border: none;
    background: #fff;
    color: #000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    backdrop-filter: blur(10px);
}

.wab-lightbox-nav:hover,
.wab-lightbox-nav:focus {
    opacity: 0.9;
}

.wab-lightbox-nav-prev {
    left: 10px;
}

.wab-lightbox-nav-next {
    right: 10px;
}

.wab-lightbox-nav.slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Lightbox Video Wrapper */
.wab-lightbox-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 175%;
    /* 3:4 aspect ratio */
    background: transparent;
    /* border-radius: 12px; */
    overflow: hidden;
    /* margin-bottom: 20px; */
    max-width: 380px;
}
.wab-lightbox-video{
    border-radius: 12px;
}

.wab-lightbox-product-title {
    font-family: sans-serif;
    margin-bottom: 0;
    font-size: 13px;
}

.wab-lightbox-add-to-cart {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-right: 10px;
    min-height: unset;
}
.wab-lightbox-product-price .amount {
    color: #000;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}
.wab-lightbox-product-price del .amount{
    color: #ababab;
}
.wab-lightbox-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

/* Lightbox Video Controls */
.wab-lightbox-video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    pointer-events: none;
}

.wab-lightbox-controls-top {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.wab-lightbox-play-pause,
.wab-lightbox-mute {
    width: 35px;
    height: 35px;
    min-height: unset;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    pointer-events: auto;
}

/* Hover and active states for play/pause and mute buttons can be added here if needed */

.wab-lightbox-play-pause .wab-icon-pause,
.wab-lightbox-play-pause .wab-icon-play {
    display: none;
}

.wab-lightbox-play-pause .wab-icon-play {
    display: inline-block;
}

.wab-lightbox-mute .wab-icon-mute,
.wab-lightbox-mute .wab-icon-unmute {
    display: none;
}

.wab-lightbox-mute .wab-icon-unmute {
    display: inline-block;
}

/* Share button - same row as mute */
.wab-lightbox-share {
    width: 35px;
    height: 35px;
    min-height: unset;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    pointer-events: auto;
    flex-direction: column;
    gap: 2px;
}

.wab-lightbox-share:hover,
.wab-lightbox-share:focus {
    background: rgba(0, 0, 0, 0.85);
    outline: none;
}

.wab-lightbox-share .wab-lightbox-share-text {
    font-size: 10px;
    line-height: 1;
    display: none;
}

/* Share dialog - centered overlay in lightbox */
.wab-lightbox-share-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}

.wab-lightbox-share-dialog[aria-hidden="false"] {
    pointer-events: auto;
}

.wab-lightbox-share-dialog-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    width: 100%;
    overflow: hidden;
    pointer-events: auto;
}

.wab-lightbox-share-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.wab-lightbox-share-dialog-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.wab-lightbox-share-dialog-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.wab-lightbox-share-dialog-close:hover,
.wab-lightbox-share-dialog-close:focus {
    background: #f0f0f0;
    color: #111;
}

.wab-lightbox-share-dialog-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 16px;
}

.wab-lightbox-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.wab-lightbox-share-option:hover,
.wab-lightbox-share-option:focus {
    background: #f5f5f5;
    color: #111;
}

.wab-share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.wab-share-icon-whatsapp {
    background: #25d366;
}

.wab-share-icon-x {
    background: #000;
}

.wab-share-icon-copy {
    background: #666;
}

.wab-share-icon-facebook {
    background: #1877f2;
}

.wab-share-label {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

/* Font Awesome icon styling */
.wab-lightbox-play-pause i,
.wab-lightbox-mute i {
    font-size: 13px;
    line-height: 1;
    display: inline-block;
}

.wab-lightbox-close i,
.wab-lightbox-nav i {
    font-size: 24px;
    line-height: 1;
    display: inline-block;
}

/* Progress Bar */
.wab-lightbox-progress-container {
    position: absolute;
    top: 0;
    /* bottom: 0; */
    left: 0;
    right: 0;
    padding: 5px;
    pointer-events: auto;
    z-index: 10003;
}

.wab-lightbox-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
    pointer-events: auto;
}

.wab-lightbox-progress-bar:hover {
    height: 6px;
}

.wab-lightbox-progress-filled {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Lightbox Social Actions */
.wab-lightbox-social {
    position: absolute;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10001;
}

.wab-lightbox-action {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
    backdrop-filter: blur(10px);
}

.wab-lightbox-action:hover,
.wab-lightbox-action:focus {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wab-lightbox-icon {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.wab-lightbox-count {
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

/* Lightbox Product Info - inside video wrapper, same as wab-product-overlay */
.wab-lightbox-video-wrapper .wab-lightbox-product {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 10001;
    pointer-events: auto;
    /* display: flex; */
    align-items: center;
}

.wab-lightbox-product.wab-product-overlay {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Only show product overlay on the center (active) slide */
.wab-lightbox-carousel .slick-slide .wab-lightbox-product {
    opacity: 0;
    pointer-events: none;
}

.wab-lightbox-carousel .slick-slide.slick-center .wab-lightbox-product {
    opacity: 1;
    pointer-events: auto;
}

/* Ensure add-to-cart button and product card receive clicks (above video controls layer) */
.wab-lightbox-product .wab-lightbox-product-card,
.wab-lightbox-add-to-cart {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.wab-lightbox-product-info {
    flex: 1;
    min-width: 0;
}

.wab-lightbox-product .wab-lightbox-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    margin-bottom: 20px;
    /* max-width: 100%; */
}

.wab-lightbox-product .wab-lightbox-product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.wab-lightbox-product .wab-lightbox-product-price {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #333;
    line-height: 1.3;
}

.wab-lightbox-product .wab-lightbox-product-image img {
    /* width: 56px;
    height: 56px; */
    object-fit: cover;
    /* border-radius: 8px; */
    /* flex-shrink: 0; */
}


/* Body scroll lock when lightbox is open */
html.wab-lightbox-open,
body.wab-lightbox-open {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

.wab-lightbox-product-card {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wab-lightbox-product-image {
    flex: 0 0 auto;
    flex-basis: 30%;
}

.wab-lightbox-product-image img {
    object-fit: cover;
    /* aspect-ratio: 1 / 1;
    border-radius: 8px; */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wab-lightbox-container {
        padding: 0;
    }

    .wab-lightbox-header {
        padding: 15px 20px;
    }

    .wab-lightbox-title {
        font-size: 16px;
    }

    .wab-lightbox-close {
        width: 30px;
        height: 30px;
        /* font-size: 20px; */
        right: 10px;
        top: 20px;
        background: transparent;
    }

    /* Vertical reels: full viewport (full-screen as per screenshot) */
    .wab-lightbox-reel-container {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        display: block;
        margin: 0;
        padding: 0;
    }

    .wab-lightbox-carousel {
        width: 100%;
        height: 100vh !important;
        min-height: 100vh;
        padding: 0;
    }

    .wab-lightbox-carousel .slick-list {
        height: 100vh !important;
        min-height: 100vh;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .wab-lightbox-carousel .slick-track {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
    }

    .wab-lightbox-carousel .slick-slide {
        height: 100vh !important;
        opacity: 1;
        transform: scale(1);
    }

    .wab-lightbox-carousel .slick-slide > div {
        height: 100% !important;
    }

    .wab-lightbox-reel-item {
        height: 100% !important;
        min-height: 100vh;
    }

    .wab-lightbox-reel {
        height: 100%;
        min-height: 100vh;
        max-width: 100%;
        width: 100%;
    }

    .wab-lightbox-video-wrapper {
        height: 100% !important;
        min-height: 100vh;
        padding-bottom: 0 !important;
        max-width: 100%;
        width: 100%;
    }

    .wab-lightbox-video-wrapper .wab-lightbox-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .wab-lightbox-carousel .slick-slide.slick-center {
        transform: none;
    }

    /* Overlay fix: ensure video controls are above product overlay and receive touches */
    .wab-lightbox-video-wrapper .wab-lightbox-video-controls {
        z-index: 10010;
        pointer-events: none;
    }

    .wab-lightbox-video-wrapper .wab-lightbox-controls-top,
    .wab-lightbox-video-wrapper .wab-lightbox-progress-container {
        pointer-events: auto;
        z-index: 10011;
    }

    .wab-lightbox-video-wrapper .wab-lightbox-mute,
    .wab-lightbox-video-wrapper .wab-lightbox-play-pause,
    .wab-lightbox-video-wrapper .wab-lightbox-share {
        pointer-events: auto;
        touch-action: manipulation;
    }

    .wab-lightbox-share .wab-lightbox-share-text {
        display: block;
    }

    .wab-lightbox-video-wrapper .wab-lightbox-product {
        z-index: 1000;
    }

    .wab-lightbox-carousel .slick-slide .wab-lightbox-product {
        opacity: 1;
        left: 50%;
        pointer-events: auto; /* Mobile: no .slick-center, so enable product overlay clicks */
    }

    /* Hide nav arrows on mobile - use swipe only */
    .wab-lightbox-nav {
        display: none !important;
    }

    .wab-lightbox-social {
        right: 15px;
        bottom: 80px;
        gap: 12px;
    }

    .wab-lightbox-action {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .wab-lightbox-video-wrapper .wab-lightbox-product {
        bottom: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
    }

    .wab-lightbox-product .wab-lightbox-product-card {
        /* padding: 8px 10px; */

    }

    .wab-lightbox-product .wab-lightbox-product-title {
        font-size: 13px;
    }

    .wab-lightbox-product .wab-lightbox-product-price {
        font-size: 14px;
    }

    .wab-lightbox-product .wab-lightbox-product-image img {
        /* width: 48px;
        height: 48px; */
    }

    .wab-lightbox-product-title {
        font-size: 11px;
    }

    .wab-lightbox-product-image img {
        /* height: 70px;
        width: 70px; */
    }
    .wab-lightbox-controls-top {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .wab-lightbox-header {
        padding: 12px 15px;
    }

    .wab-lightbox-title {
        font-size: 14px;
    }

    .wab-lightbox-reel-container {
        max-height: 100vh;
    }

    .wab-lightbox-social {
        right: 10px;
        bottom: 70px;
    }

    .wab-lightbox-action {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Lightbox Notification */
.wab-lightbox-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10010;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 350px;
    min-width: 250px;
}

.wab-lightbox-notification.wab-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wab-lightbox-notification.wab-success {
    background: #4caf50;
    color: #fff;
    border-left: 4px solid #2e7d32;
}

.wab-lightbox-notification.wab-error {
    background: #f44336;
    color: #fff;
    border-left: 4px solid #c62828;
}

.wab-lightbox-notification-message {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 768px) {
    .wab-lightbox-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}