/* Gallery Container */
.shoppable-reels-container {
    padding: 20px 0;
    max-width: 100%;
    margin: 0 auto;
}

.shoppable-reels-gallery {
    padding: 20px 0;
}

.shoppable-reel-card {
    width: 250px;
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    background: #000;
}

.shoppable-reel-card:hover {
    transform: translateY(-5px);
}

.reel-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

.reel-inner-label {
    position: absolute;
    bottom: 80px;
    left: 15px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Glassmorphism Product Card */
.product-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin: 10px;
    padding: 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 5;
    position: relative;
}

.product-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    flex: 1;
    overflow: hidden;
}

.product-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.product-price {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    margin-top: 2px;
}

.product-price del {
    color: #777;
    margin-left: 5px;
    font-weight: 400;
}

.product-add-action {
    flex-shrink: 0;
}

.add-btn-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Lightbox Styling */
.reels-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 999999;
}

.lightbox-swiper {
    width: 100%;
    height: 100%;
}

.lightbox-slide {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #000;
}

.lightbox-video-container {
    width: 100%;
    height: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.lightbox-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Advanced Controls UI */

/* Progress Bar */
.reels-progress-bar-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    z-index: 100;
    overflow: hidden;
}

.reels-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.1s linear;
}

/* Top Controls */
.reels-top-controls {
    position: absolute;
    top: 25px;
    right: 15px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.action-btn {
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.action-btn:hover {
    background: rgba(0,0,0,0.5);
}

/* Side Actions */
.reels-side-actions {
    position: absolute;
    right: 15px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 90;
}

.action-circle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.action-circle svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Navigation Buttons */
.reels-nav-buttons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 90;
}

.nav-btn {
    cursor: pointer;
    background: rgba(255,255,255,0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.lightbox-overlay-content {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 60px; /* Leave space for side actions */
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .shoppable-reel-card {
        width: 160px;
    }
    .reels-nav-buttons {
        display: none; /* Hide nav arrows on mobile, swipe is enough */
    }
    .lightbox-overlay-content {
        right: 10px;
    }
    .reels-side-actions {
        bottom: 140px;
        right: 10px;
    }
}
