  .carousel-container2 {
            display: flex;
            overflow-x: hidden;
/*            scroll-snap-type: x mandatory;*/
            gap: 10px;
/*            padding: 10px;*/
            width: 100%;
        }

        .carousel-item2 {
            flex: none;
            scroll-snap-align: start;
            position: relative;
            width: 200px;
            height: 355px;
            background: black;
            border-radius: 10px;
            overflow: hidden;
            display: flex; /* Ensure no gaps */
            justify-content: center; /* Center iframe vertically and horizontally */
            align-items: center;

        }
        .checked {
          color: orange;
        }

        video, iframe {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            border: none;
            display: block; /* Ensures no inline spacing */
            box-sizing: border-box; /* Consistent sizing */
            z-index: 10000000;

        }

        .product-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 15px;
            text-align: left;
            z-index: 2;
            line-height: normal;
        }

        .product-details {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .product-image {
            width: 40px;
            height: 40px;
            border-radius: 5px;
            background: #fff;
            object-fit: cover;
        }

        .product-info {
            flex-grow: 1;
        }

        .product-title {
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-price {
            font-size: 12px;
            color: #ffb400;
            margin-top: 4px;
        }

        .add-to-cart {
            width: 100%;
            text-align: center;
            background: #ff4500;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px;
            font-size: 14px;
            cursor: pointer;
            margin-top: 10px;
        }

        .add-to-cart:hover {
            background: #ff5722;
        }

        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 100000000;
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup-content {
            width: 80%;
            max-width: 720px;
            height: 400px;
            background: black;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            display: flex;
            justify-content: center;
        }

        .popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: white;
            font-size: 18px;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .popup-close:hover {
            background: rgba(255, 255, 255, 0.5);
            color: black;
            transform: scale(1.1);
            transition: 0.3s ease;
        }

        .overlay {
            position: absolute;
            top: -2px;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            background: transparent;
            cursor: pointer;
        }
        .popup-content video,
        .popup-content iframe {
            pointer-events: none; /* Disable interaction on popup videos */
        }

        .carousel-item iframe {
            pointer-events: none; /* Prevent iframe interaction in carousel */
        }
        .popup-mobile-actions {
    display: none; /* Default hidden */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    z-index: 5;
    box-sizing: border-box;
}

.popup-mobile-actions .product-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-mobile-actions .add-to-cart {
    background: #ff4500;
    border: none;
    color: white;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
}

.popup-mobile-actions .add-to-cart:hover {
    background: #ff5722;
}

        /* Add responsive styling */
@media (max-width: 768px) {
    .popup-content {
        width: 90%;
        height: 70%; /* Adjust height for better mobile experience */
        border-radius: 8px;
    }

    .popup-close {
        top: 5px;
        right: 5px;
        font-size: 16px;
        width: 25px;
        height: 25px;
    }

    .product-overlay {
        padding: 10px;
    }

    .product-title {
        font-size: 12px;
    }

    .product-price {
        font-size: 11px;
    }

    .add-to-cart {
        font-size: 12px;
        padding: 8px;
    }
        .popup-mobile-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
 .popup-content {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 100000;
    }

    .popup-close {
        font-size: 14px;
        width: 20px;
        height: 20px;
    }

    .product-overlay {
        padding: 8px;
    }

    .product-title {
        font-size: 11px;
    }

    .product-price {
        font-size: 10px;
    }

    .add-to-cart {
        font-size: 11px;
        padding: 6px;
    }
}
