.product-media-tabs {
    margin-top: 20px;
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 30px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 17px;
    cursor: pointer;
    position: relative;
    color: var(--text-muted-color);
}

.tab-btn.active {
    color: var(--color-black);
    font-weight: 600;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--Rose-Red);
}

/* Content */
.tab-panel {
    display: none;
    padding-top: 20px;
}
.tab-panel.active {
    display: block;
}

/* Photo grid – 5 ảnh / hàng */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.photo-item img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.photo-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.photo-lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--color-white);
    cursor: pointer;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-black);
}

.video-item img {
    width: 100%;
    display: block;
}

/* Play button */
.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--color-white);
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.3s;
}

.video-item:hover .video-play {
    opacity: 1;
}

.video-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Wrapper */
.video-wrapper {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--color-black);
    border-radius: 12px;
    overflow: hidden;
}

/* Close button */
.close-video {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 34px;
    color: var(--color-white);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

/* Video container */
.video-container {
    position: relative;
    padding-top: 56.25%;
}

/* iframe & video */
.video-container iframe,
.video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile */
@media (max-width: 768px) {
	.photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
	
	.video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	
    .video-wrapper {
        width: 95%;
    }
}

