
/* V16 Marketplace product gallery + variations */

.market-media-shell{
    position:relative;
    width:100%;
}
.product-media-gallery .media-stage{
    width:100%;
    aspect-ratio:1/1;
    min-height:0!important;
    max-height:560px;
    background:#fff;
    border:1px solid #eceeef;
    border-radius:18px;
    overflow:hidden;
    display:grid;
    place-items:center;
    touch-action:pan-y;
}
.product-media-gallery .media-stage img{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#fff;
}
.product-media-gallery .media-stage video{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#000;
}
.media-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:42px;height:42px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:50%;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(8px);
    display:grid;
    place-items:center;
    font-size:28px;
    line-height:1;
    cursor:pointer;
    z-index:5;
    box-shadow:0 4px 16px rgba(0,0,0,.10);
}
.media-arrow-prev{left:12px}
.media-arrow-next{right:12px}
.media-dots-v16{
    position:absolute;
    left:50%;
    bottom:13px;
    transform:translateX(-50%);
    display:flex;
    gap:5px;
    padding:6px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.72);
    backdrop-filter:blur(8px);
}
.media-dots-v16 button{
    width:6px;height:6px;
    border:0;border-radius:50%;
    background:#b9bdc0;
    padding:0;
    cursor:pointer;
}
.media-dots-v16 button.active{
    width:18px;
    border-radius:999px;
    background:#A6F527;
}
.media-thumbs{
    margin-top:10px!important;
}

.product-variants-v16{
    border-top:1px solid #eceeef;
    border-bottom:1px solid #eceeef;
    padding:15px 0;
    margin:14px 0;
}
.variant-group-v16 + .variant-group-v16{margin-top:14px}
.variant-group-head{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:8px;
}
.variant-group-head strong{
    font-size:11px;
}
.variant-group-head span{
    font-size:9px;
    color:#777;
}
.variant-option-row-v16{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}
.variant-color-v16,
.variant-chip-v16{
    border:1px solid #dfe3e6;
    background:#fff;
    border-radius:10px;
    cursor:pointer;
    font-size:9px;
    font-weight:700;
}
.variant-chip-v16{
    min-width:48px;
    padding:9px 12px;
}
.variant-color-v16{
    display:flex;
    align-items:center;
    gap:7px;
    padding:5px 9px 5px 5px;
}
.color-swatch-v16{
    width:31px;height:31px;
    border-radius:8px;
    background:#f2f3f4;
    overflow:hidden;
    display:grid;
    place-items:center;
    border:1px solid #eceeef;
}
.color-swatch-v16 img{
    width:100%;height:100%;object-fit:cover;
}
.variant-color-v16.active,
.variant-chip-v16.active{
    border-color:#111;
    box-shadow:0 0 0 2px rgba(166,245,39,.65);
}
.variant-color-v16.disabled,
.variant-chip-v16.disabled{
    opacity:.35;
    pointer-events:none;
}
.variant-selection-summary-v16{
    margin-top:10px;
    font-size:9px;
    color:#666;
}
.variant-selection-summary-v16 strong{color:#111}

@media(max-width:700px){
    .product-detail.section{
        padding-top:12px!important;
    }
    .product-detail-grid{
        gap:16px!important;
    }
    .product-media-gallery .media-stage{
        aspect-ratio:1/1;
        max-height:430px;
        border-radius:16px;
    }
    .media-arrow{
        width:36px;height:36px;
        font-size:24px;
        opacity:.88;
    }
    .media-arrow-prev{left:8px}
    .media-arrow-next{right:8px}
    .media-dots-v16{bottom:10px}
    .media-thumbs{
        gap:7px!important;
        overflow-x:auto!important;
        scrollbar-width:none;
        padding-bottom:2px;
    }
    .media-thumbs::-webkit-scrollbar{display:none}
    .media-thumbs button{
        flex:0 0 62px!important;
        width:62px!important;
        height:62px!important;
        border-radius:10px!important;
    }

    .product-copy h1{
        font-size:32px!important;
        line-height:1.02!important;
    }
    .product-variants-v16{
        padding:13px 0;
        margin:12px 0;
    }
    .variant-option-row-v16{
        flex-wrap:nowrap;
        overflow-x:auto;
        scrollbar-width:none;
        padding-bottom:2px;
    }
    .variant-option-row-v16::-webkit-scrollbar{display:none}
    .variant-color-v16,
    .variant-chip-v16{
        flex:0 0 auto;
    }
}
