﻿/* ================================================================
   MyOnke Marketplace + Portal Cleanup V2
   ================================================================ */

/* Use the browser width more deliberately without creating a giant empty right edge. */
.shell{
    width:min(calc(100% - 28px),1600px)!important;
    max-width:1600px!important;
}
.mx-home,
.mx-page,
.mu-page,
.mu-section,
.mu-hero{
    width:min(calc(100% - 28px),1600px)!important;
    max-width:1600px!important;
    box-sizing:border-box;
}

/* Approved sellers is a compact marketplace menu, not a portal/login mixture. */
.mo-public-trust{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}
.mo-public-trust>span,
.mo-public-trust>a,
.mo-approved-menu>summary{
    color:inherit;
    font-size:inherit;
}
.mo-trust-link{
    color:inherit!important;
    text-decoration:none!important;
}
.mo-approved-menu{
    position:relative;
}
.mo-approved-menu>summary{
    list-style:none;
    cursor:pointer;
    font-weight:700;
    white-space:nowrap;
}
.mo-approved-menu>summary::-webkit-details-marker{
    display:none;
}
.mo-approved-menu>summary::after{
    content:" â–¾";
    font-size:9px;
}
.mo-approved-menu-panel{
    position:absolute;
    z-index:250;
    top:calc(100% + 9px);
    left:0;
    width:270px;
    padding:8px;
    border:1px solid #dfe5ec;
    border-radius:12px;
    background:#fff;
    box-shadow:0 16px 38px rgba(7,26,56,.16);
}
.mo-approved-menu-panel a{
    display:grid!important;
    gap:3px;
    padding:10px 11px!important;
    border-radius:9px;
    color:#10284c!important;
    text-decoration:none!important;
}
.mo-approved-menu-panel a:hover{
    background:#f5f8fa;
}
.mo-approved-menu-panel strong{
    font-size:12px;
}
.mo-approved-menu-panel span{
    color:#7a8798;
    font-size:10px;
    line-height:1.35;
}

/* The homepage now has ONE category selector / selected collection. */
.myo-category-shelves-compact{
    padding-left:0!important;
    padding-right:0!important;
}
.myo-category-shelf-selected{
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
.myo-category-shelf-selected .myo-category-shelf-head{
    margin:0 0 12px!important;
    padding:0 2px;
}
.myo-category-shelf-selected .myo-category-product-row{
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
    gap:12px!important;
    width:100%;
}
.myo-category-shelf-selected .myo-category-product-card{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
}
.myo-category-shelves-compact + .mx-section{
    margin-top:0!important;
    padding-top:20px!important;
}

/* Keep product imagery professional regardless of uploaded source dimensions. */
.mu-product-detail{
    display:grid!important;
    grid-template-columns:minmax(320px,520px) minmax(0,1fr)!important;
    align-items:start!important;
    gap:34px!important;
    width:100%!important;
}
.mu-detail-image{
    width:100%!important;
    max-width:520px!important;
    aspect-ratio:1 / 1!important;
    height:auto!important;
    min-height:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    padding:18px!important;
    box-sizing:border-box!important;
    border:1px solid #e1e7ee!important;
    border-radius:18px!important;
    background:#fff!important;
}
.mu-detail-image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
}

/* Avoid oversized product cards/images elsewhere too. */
.mu-image img,
.rc-product-image img,
.myo-category-product-image img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
}

/* Customer shopping header should remain compact. */
.header-main{
    gap:18px!important;
}
.header-main .search{
    min-width:260px;
    flex:1 1 auto;
}
.account-nav{
    flex:0 0 auto;
}
.account-nav>a strong{
    max-width:190px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

@media(max-width:900px){
    .mu-product-detail{
        grid-template-columns:1fr!important;
        gap:22px!important;
    }
    .mu-detail-image{
        max-width:560px!important;
        margin:0 auto!important;
    }
}
@media(max-width:760px){
    .mo-public-trust{
        gap:5px;
    }
    .mo-approved-menu-panel{
        width:245px;
    }
    .myo-category-shelf-selected .myo-category-product-row{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}
@media(max-width:520px){
    .myo-category-shelf-selected .myo-category-product-row{
        grid-template-columns:1fr!important;
    }
    .mu-detail-image{
        padding:10px!important;
        border-radius:14px!important;
    }
}
