/**
 * Single Product Module: Gallery & Interactive Media Stage
 * Location: css/single-product/gallery-single-product.css
 */

.mcb-spg-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

/* Badges Overlay */
.mcb-spg-badges-overlay {
    position: absolute;
    top: 36px;
    left: 36px;
    z-index: 5;
    display: flex;
    gap: 8px;
    align-items: center;
}

.mcb-spg-pill-discount {
    background: #ef4444;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    letter-spacing: 0.5px;
}

.mcb-spg-pill-version {
    background: #7c3aed;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    letter-spacing: 0.5px;
}

/* Stage Wrapper */
.mcb-spg-stage-wrapper {
    width: 100%;
    height: 480px;
    background: #090d16;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mcb-spg-stage-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mcb-spg-stage-wrapper:hover img {
    transform: scale(1.025);
}

/* Fullscreen Expander Button */
.mcb-spg-fullscreen-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    padding: 0;
    z-index: 4;
}

.mcb-spg-fullscreen-btn:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    transform: scale(1.08);
}

/* Thumbnails Selector */
.mcb-spg-thumbs-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.mcb-spg-thumbs-row::-webkit-scrollbar {
    height: 4px;
}

.mcb-spg-thumbs-row::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

.mcb-spg-thumb-btn {
    width: 82px;
    height: 62px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #0f172a;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.mcb-spg-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mcb-spg-thumb-btn.active,
.mcb-spg-thumb-btn:hover {
    border-color: #7c3aed;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* Actions Bar */
.mcb-spg-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
    flex-wrap: wrap;
}

.mcb-spg-action-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.mcb-spg-action-pill:hover {
    border-color: #7c3aed;
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.1);
}

.mcb-spg-action-pill.fav-btn.favorited {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.mcb-spg-action-pill.fav-btn.favorited svg {
    fill: #ef4444;
    stroke: #ef4444;
}

/* Lightbox Modal */
.mcb-spg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.mcb-spg-lightbox.open {
    display: flex;
}

.mcb-spg-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.mcb-spg-lightbox-close:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.mcb-spg-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
}

@media screen and (max-width: 950px) {
    .mcb-spg-stage-wrapper {
        height: 380px;
    }
}

@media screen and (max-width: 600px) {
    .mcb-spg-card {
        padding: 16px;
    }
    
    .mcb-spg-stage-wrapper {
        height: 280px;
    }

    .mcb-spg-badges-overlay {
        top: 26px;
        left: 26px;
    }
}