/* Container */
.videoshop-app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Grid Layout */
.videoshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.videoshop-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9/16;
    background: #000;
    transition: transform 0.3s ease;
}

.videoshop-card:hover {
    transform: scale(1.02);
}

.videoshop-card img, .videoshop-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.videoshop-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

/* Modal Player (Desktop Reel Style) */
.videoshop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.videoshop-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
}

.videoshop-player-wrapper {
    position: relative;
    height: 90vh;
    aspect-ratio: 9/16;
    background: #111;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    display: flex;
}

.videoshop-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videoshop-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.videoshop-overlay-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.videoshop-products-sidebar {
    width: 350px;
    height: 90vh;
    background: white;
    border-radius: 0 16px 16px 0;
    padding: 24px;
    overflow-y: auto;
}

.videoshop-product-card {
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
}

.videoshop-product-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.videoshop-product-details {
    margin-left: 14px;
    flex: 1;
}

.videoshop-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.videoshop-product-price {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.videoshop-add-to-cart {
    background: #6b21a8; /* purple-800 */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
}

.videoshop-add-to-cart:hover {
    background: #581c87;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .videoshop-modal {
        flex-direction: column;
    }
    .videoshop-player-wrapper {
        height: 60vh;
        width: 100%;
        border-radius: 0;
        aspect-ratio: auto;
    }
    .videoshop-products-sidebar {
        width: 100%;
        height: 40vh;
        border-radius: 0;
    }
}
