/* =====================================================
BUSINESSBRIDGECHINA — SHARED MARKETPLACE PRODUCT SYSTEM
===================================================== */

.marketplace-directory-hero{
    position:relative;
    overflow:hidden;
    padding:38px 0 42px;
    background:
        radial-gradient(circle at 86% 20%,rgba(76,132,20,.20),transparent 29%),
        linear-gradient(135deg,var(--navy),#17233f);
}

.marketplace-directory-hero h1{
    max-width:760px;
    margin:8px 0 0;
    color:#ffffff;
    font-size:36px;
    font-weight:850;
    line-height:1.2;
}

.marketplace-directory-hero p{
    max-width:720px;
    margin:12px 0 0;
    color:rgba(255,255,255,.72);
    font-size:14px;
    line-height:1.7;
}

.marketplace-directory-kicker{
    color:#9ac774;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.marketplace-industries-content{
    padding:42px 0 56px;
    background:#f7f9fc;
}

.marketplace-industries-toolbar{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:24px;
}

.marketplace-industries-toolbar h2{
    margin:0;
    color:var(--navy);
    font-size:26px;
}

.marketplace-industries-toolbar p{
    margin:6px 0 0;
    color:#64748b;
    font-size:13px;
}

.marketplace-industries-toolbar .marketplace-catalog-search{
    width:min(390px,100%);
}

.marketplace-industry-directory{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.marketplace-industry-directory-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #e2e8f0;
    border-radius:15px;
    background:#ffffff;
    color:inherit;
    text-decoration:none;
    box-shadow:0 7px 22px rgba(12,18,36,.05);
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.marketplace-industry-directory-card:hover{
    border-color:rgba(76,132,20,.4);
    box-shadow:0 16px 34px rgba(12,18,36,.1);
    transform:translateY(-3px);
}

.marketplace-industry-directory-media{
    display:flex;
    align-items:center;
    justify-content:center;
    aspect-ratio:16 / 8;
    overflow:hidden;
    background:
        radial-gradient(circle at 76% 20%,rgba(76,132,20,.22),transparent 28%),
        linear-gradient(135deg,var(--navy),#1a2949);
    color:#ffffff;
    font-size:38px;
}

.marketplace-industry-directory-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.marketplace-industry-directory-content{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:20px;
}

.marketplace-industry-directory-content h2{
    margin:0;
    color:var(--navy);
    font-size:18px;
}

.marketplace-industry-directory-content p{
    display:-webkit-box;
    margin:9px 0 0;
    overflow:hidden;
    color:#64748b;
    font-size:13px;
    line-height:1.6;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}

.marketplace-industry-directory-stats{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:16px;
}

.marketplace-industry-directory-stats span{
    padding:6px 8px;
    border-radius:6px;
    background:#f1f5f9;
    color:#526175;
    font-size:10px;
    font-weight:750;
}

.marketplace-industry-directory-content strong{
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:auto;
    padding-top:18px;
    color:var(--green);
    font-size:12px;
}

@media(max-width:1024px){
    .marketplace-industry-directory{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:650px){
    .marketplace-industries-toolbar{
        align-items:stretch;
        flex-direction:column;
    }

    .marketplace-industry-directory{
        grid-template-columns:1fr;
    }
}

.marketplace-product-grid,
[data-marketplace-grid]{
    display:grid;
    gap:20px;
    min-width:0;
}

.marketplace-product-grid.marketplace-view-large,
[data-marketplace-grid].marketplace-view-large{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.marketplace-product-grid.marketplace-view-compact,
[data-marketplace-grid].marketplace-view-compact{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.marketplace-product-grid.marketplace-view-list,
[data-marketplace-grid].marketplace-view-list{
    grid-template-columns:1fr;
    gap:12px;
}

.marketplace-product-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-width:0;
    height:100%;
    overflow:hidden;
    border:1px solid #e2e8f0;
    border-radius:14px;
    background:#ffffff;
    box-shadow:0 5px 18px rgba(12,18,36,.045);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.marketplace-product-card:hover{
    border-color:rgba(76,132,20,.34);
    box-shadow:0 16px 34px rgba(12,18,36,.10);
    transform:translateY(-3px);
}

.marketplace-product-media{
    position:relative;
    flex:0 0 auto;
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:#eef2f7;
}

.marketplace-media-open{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:zoom-in;
}

.marketplace-product-image{
    position:static;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:1;
    transform:none;
    transition:transform .35s ease;
}

.marketplace-product-card:hover .marketplace-product-image{
    transform:scale(1.035);
}

.marketplace-media-zoom{
    position:absolute;
    right:12px;
    bottom:12px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:30px;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(12,18,36,.78);
    color:#ffffff;
    font-size:11px;
    font-weight:700;
    opacity:0;
    transform:translateY(5px);
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.marketplace-product-card:hover .marketplace-media-zoom,
.marketplace-media-open:focus-visible .marketplace-media-zoom{
    opacity:1;
    transform:translateY(0);
}

.marketplace-product-badges{
    position:absolute;
    top:12px;
    left:12px;
    z-index:5;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    max-width:calc(100% - 72px);
    pointer-events:none;
}

.marketplace-product-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:25px;
    padding:5px 9px;
    border:1px solid rgba(255,255,255,.48);
    border-radius:999px;
    color:#ffffff;
    font-size:10px;
    font-weight:800;
    line-height:1;
    box-shadow:0 4px 12px rgba(12,18,36,.15);
    backdrop-filter:blur(5px);
}

.marketplace-product-badge.is-sponsored{
    background:#0c1224;
}

.marketplace-product-badge.is-featured{
    background:var(--green);
}

.marketplace-product-badge.is-approved{
    border-color:rgba(76,132,20,.20);
    background:rgba(255,255,255,.94);
    color:var(--green);
}

.marketplace-favorite{
    position:absolute;
    top:12px;
    right:12px;
    z-index:7;
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    padding:0;
    border:1px solid rgba(255,255,255,.7);
    border-radius:50%;
    background:rgba(255,255,255,.92);
    color:#475569;
    font-size:16px;
    box-shadow:0 5px 15px rgba(12,18,36,.12);
    cursor:pointer;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.marketplace-favorite:hover,
.marketplace-favorite.is-favorite{
    color:#c73e54;
    background:#ffffff;
    transform:scale(1.06);
}

.marketplace-favorite:disabled{
    cursor:wait;
    opacity:.65;
}

.marketplace-image-nav{
    position:absolute;
    top:50%;
    z-index:6;
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid rgba(255,255,255,.32);
    border-radius:50%;
    background:rgba(12,18,36,.62);
    color:#ffffff;
    opacity:0;
    cursor:pointer;
    transform:translateY(-50%);
    transition:
        opacity .2s ease,
        background .2s ease;
}

.marketplace-image-nav.is-previous{
    left:12px;
}

.marketplace-image-nav.is-next{
    right:12px;
}

.marketplace-product-card:hover .marketplace-image-nav,
.marketplace-image-nav:focus-visible{
    opacity:1;
}

.marketplace-image-nav:hover{
    background:var(--green);
}

.marketplace-product-dots{
    position:absolute;
    left:50%;
    bottom:13px;
    z-index:6;
    display:flex;
    gap:6px;
    padding:5px 8px;
    border-radius:999px;
    background:rgba(12,18,36,.38);
    transform:translateX(-50%);
}

.marketplace-product-dot{
    width:7px;
    height:7px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.65);
    cursor:pointer;
}

.marketplace-product-dot.is-active{
    width:18px;
    border-radius:999px;
    background:#ffffff;
}

.marketplace-product-content{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
    padding:18px;
}

.marketplace-product-type{
    appearance:none;
    width:auto;
    padding:0;
    border:0;
    background:transparent;
    margin-bottom:7px;
    color:var(--green);
    font-family:inherit;
    font-size:11px;
    font-weight:800;
    line-height:1.3;
    letter-spacing:.045em;
    text-align:left;
    text-transform:uppercase;
}

button.marketplace-product-type{
    cursor:pointer;
}

button.marketplace-product-type:hover,
button.marketplace-product-type:focus{
    color:var(--green);
    background:transparent;
    text-decoration:none;
}

button.marketplace-product-type:focus-visible{
    outline:2px solid var(--green);
    outline-offset:3px;
    border-radius:2px;
}

.marketplace-product-title{
    display:-webkit-box;
    min-height:47px;
    margin:0;
    overflow:hidden;
    color:var(--navy);
    font-size:17px;
    font-weight:800;
    line-height:1.38;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.marketplace-product-description{
    display:-webkit-box;
    min-height:59px;
    margin:9px 0 0;
    overflow:hidden;
    color:#64748b;
    font-size:13px;
    line-height:1.55;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}

.marketplace-product-certificates{
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid #eef2f7;
}

.marketplace-product-certificates-label{
    display:flex;
    align-items:center;
    gap:6px;
    margin-bottom:8px;
    color:#64748b;
    font-size:10px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.marketplace-product-certificates-label i{
    color:var(--green);
}

.marketplace-product-certificate-list{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.marketplace-product-certificate{
    max-width:100%;
    overflow:hidden;
    padding:5px 8px;
    border:1px solid #dfe8d7;
    border-radius:6px;
    background:#f4f8f1;
    color:#3a6b0f;
    font-size:10px;
    font-weight:700;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-product-certificate.is-more{
    flex:0 0 auto;
    color:#475569;
    background:#f8fafc;
    border-color:#e2e8f0;
}

.marketplace-product-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin-top:auto;
    padding-top:17px;
}

.marketplace-product-details-button,
.marketplace-product-inquiry-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:42px;
    padding:10px 12px;
    border-radius:8px;
    font-family:inherit;
    font-size:12px;
    font-weight:800;
    line-height:1.15;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.marketplace-product-details-button{
    border:1px solid #cbd5e1;
    background:#ffffff;
    color:var(--navy);
}

.marketplace-product-details-button:hover{
    border-color:var(--green);
    background:#f4f8f1;
    color:var(--green);
}

.marketplace-product-inquiry-button{
    border:1px solid var(--green);
    background:var(--green);
    color:#ffffff;
}

.marketplace-product-inquiry-button:hover{
    border-color:var(--green-dark);
    background:var(--green-dark);
    color:#ffffff;
}

.marketplace-product-inquiry-button.is-full-width{
    grid-column:1 / -1;
}

.marketplace-product-details-button.is-full-width{
    grid-column:1 / -1;
}

/* COMPACT VIEW */

.marketplace-view-compact .marketplace-product-content{
    padding:14px;
}

.marketplace-view-compact .marketplace-product-title{
    min-height:42px;
    font-size:15px;
}

.marketplace-view-compact .marketplace-product-description{
    min-height:40px;
    font-size:12px;
    -webkit-line-clamp:2;
}

.marketplace-view-compact .marketplace-product-certificates{
    margin-top:10px;
    padding-top:10px;
}

.marketplace-view-compact .marketplace-product-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.marketplace-view-compact .marketplace-product-details-button,
.marketplace-view-compact .marketplace-product-inquiry-button{
    min-height:38px;
    padding:8px 9px;
    font-size:11px;
}

/* SEARCHABLE LIST VIEW */

.marketplace-view-list .marketplace-product-card{
    display:grid;
    grid-template-columns:250px minmax(0,1fr);
    min-height:190px;
}

.marketplace-view-list .marketplace-product-media{
    height:100%;
    min-height:190px;
    aspect-ratio:auto;
}

.marketplace-view-list .marketplace-product-content{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(250px,34%);
    grid-template-rows:auto auto 1fr;
    column-gap:24px;
    padding:20px 22px;
}

.marketplace-view-list .marketplace-product-type,
.marketplace-view-list .marketplace-product-title,
.marketplace-view-list .marketplace-product-description{
    grid-column:1;
}

.marketplace-view-list .marketplace-product-title{
    min-height:0;
}

.marketplace-view-list .marketplace-product-description{
    min-height:0;
    -webkit-line-clamp:2;
}

.marketplace-view-list .marketplace-product-certificates{
    grid-column:2;
    grid-row:1 / 3;
    align-self:start;
    margin:0;
    padding:0;
    border:0;
}

.marketplace-view-list .marketplace-product-actions{
    grid-column:2;
    grid-row:3;
    align-self:end;
    margin:0;
    padding-top:14px;
}

.marketplace-products-empty{
    grid-column:1 / -1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:300px;
    padding:40px 24px;
    border:1px dashed #cbd5e1;
    border-radius:14px;
    background:#ffffff;
    text-align:center;
}

.marketplace-products-empty > i{
    margin-bottom:15px;
    color:var(--green);
    font-size:32px;
}

.marketplace-products-empty h3{
    margin:0;
    color:var(--navy);
    font-size:18px;
}

.marketplace-products-empty p{
    max-width:440px;
    margin:8px 0 0;
    color:#64748b;
    font-size:13px;
    line-height:1.6;
}

/* VIEW SWITCH */

.marketplace-catalog-controls{
    margin-top:18px;
}

.marketplace-catalog-search{
    position:relative;
    display:block;
    width:100%;
}

.marketplace-catalog-search > i{
    position:absolute;
    top:50%;
    left:15px;
    color:#94a3b8;
    font-size:13px;
    transform:translateY(-50%);
}

.marketplace-catalog-search input{
    width:100%;
    min-height:46px;
    padding:11px 16px 11px 42px;
    border:1px solid #d9e0e9;
    border-radius:9px;
    background:#ffffff;
    color:var(--navy);
    font:inherit;
    font-size:13px;
    outline:none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.marketplace-catalog-search input:focus{
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(76,132,20,.11);
}

.marketplace-catalog-toolbar-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.marketplace-loading,
.marketplace-error{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:150px;
    margin-top:24px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#ffffff;
    color:#64748b;
    font-size:13px;
    font-weight:600;
}

.marketplace-loading[hidden],
.marketplace-error[hidden]{
    display:none;
}

.marketplace-loading i{
    color:var(--green);
}

.marketplace-error{
    border-color:#f1c9cd;
    background:#fff8f8;
    color:#9f2f3c;
}

.marketplace-category-all,
.marketplace-category-level-one,
.marketplace-category-level-two,
.marketplace-category-level-three{
    width:100%;
    border:0;
    background:transparent;
    color:#475569;
    font-family:inherit;
    text-align:left;
    cursor:pointer;
    transition:
        color .18s ease,
        background .18s ease;
}

.marketplace-category-all{
    padding:12px 18px;
    border-bottom:1px solid #eef2f7;
    color:var(--navy);
    font-size:13px;
    font-weight:800;
}

.marketplace-category-level-one,
.marketplace-category-level-two{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.marketplace-category-level-one{
    padding:12px 18px;
    color:var(--navy);
    font-size:13px;
    font-weight:800;
}

.marketplace-category-level-two{
    padding:10px 18px 10px 28px;
    font-size:12px;
    font-weight:700;
}

.marketplace-category-level-three{
    padding:8px 18px 8px 42px;
    font-size:12px;
}

.marketplace-category-group + .marketplace-category-group{
    border-top:1px solid #eef2f7;
}

.marketplace-category-children,
.marketplace-product-type-list{
    background:#fbfcfd;
}

.marketplace-category-all:hover,
.marketplace-category-level-one:hover,
.marketplace-category-level-two:hover,
.marketplace-category-level-three:hover,
.marketplace-category-all.is-active,
.marketplace-category-level-one.is-active,
.marketplace-category-level-two.is-active,
.marketplace-category-level-three.is-active{
    color:var(--green);
    background:#f1f7ed;
}

.marketplace-category-level-one i,
.marketplace-category-level-two i{
    color:#94a3b8;
    font-size:9px;
    transition:transform .18s ease;
}

.marketplace-category-level-one[aria-expanded="true"] i,
.marketplace-category-level-two[aria-expanded="true"] i{
    transform:rotate(90deg);
}

.marketplace-category-children[hidden],
.marketplace-product-type-list[hidden]{
    display:none;
}

.follow-category-btn.is-following{
    border-color:var(--green);
    background:var(--green);
    color:#ffffff;
}

.follow-category-btn:disabled{
    border-color:#dbe2ea;
    background:#f8fafc;
    color:#94a3b8;
    cursor:not-allowed;
    box-shadow:none;
}

.marketplace-view-switch{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid #e2e8f0;
    border-radius:9px;
    background:#ffffff;
}

.marketplace-view-button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#64748b;
    cursor:pointer;
    transition:
        background .2s ease,
        color .2s ease;
}

.marketplace-view-button:hover{
    color:var(--green);
    background:#f2f7ee;
}

.marketplace-view-button.is-active{
    color:#ffffff;
    background:var(--green);
}

/* IMAGE GALLERY */

body.marketplace-gallery-open{
    overflow:hidden;
}

.marketplace-gallery{
    position:fixed;
    inset:0;
    z-index:5000;
    display:grid;
    place-items:center;
    padding:24px;
}

.marketplace-gallery[hidden]{
    display:none;
}

.marketplace-gallery-backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:rgba(5,9,19,.92);
    cursor:zoom-out;
}

.marketplace-gallery-panel{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    width:min(1180px,96vw);
    height:min(880px,92vh);
    overflow:hidden;
    border:1px solid rgba(255,255,255,.14);
    border-radius:16px;
    background:#0c1224;
    box-shadow:0 30px 90px rgba(0,0,0,.42);
}

.marketplace-gallery-topbar{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    min-height:58px;
    padding:10px 14px 10px 20px;
    border-bottom:1px solid rgba(255,255,255,.1);
    color:#ffffff;
}

.marketplace-gallery-title{
    display:block;
    flex:1 1 auto;
    min-width:0;
    overflow:hidden;
    font-size:14px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-gallery-counter{
    flex:0 0 auto;
    margin-left:0;
    color:rgba(255,255,255,.66);
    font-size:12px;
    line-height:1;
    white-space:nowrap;
}

.marketplace-gallery-close,
.marketplace-gallery-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid rgba(255,255,255,.16);
    border-radius:50%;
    background:rgba(255,255,255,.09);
    color:#ffffff;
    cursor:pointer;
}

.marketplace-gallery-close{
    flex:0 0 38px;
    width:38px;
    height:38px;
}

.marketplace-gallery-stage{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:0;
    padding:20px 76px;
    background:#090e1c;
}

.marketplace-gallery-image{
    display:block;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.marketplace-gallery-nav{
    position:absolute;
    top:50%;
    width:46px;
    height:46px;
    transform:translateY(-50%);
}

.marketplace-gallery-nav:hover,
.marketplace-gallery-close:hover{
    border-color:var(--green);
    background:var(--green);
}

.marketplace-gallery-nav.is-previous{
    left:18px;
}

.marketplace-gallery-nav.is-next{
    right:18px;
}

.marketplace-gallery-thumbnails{
    display:flex;
    gap:10px;
    min-height:92px;
    overflow-x:auto;
    padding:12px 16px;
    border-top:1px solid rgba(255,255,255,.1);
}

.marketplace-gallery-thumbnail{
    flex:0 0 88px;
    height:66px;
    overflow:hidden;
    padding:0;
    border:2px solid transparent;
    border-radius:8px;
    background:#17233f;
    opacity:.64;
    cursor:pointer;
}

.marketplace-gallery-thumbnail.is-active{
    border-color:var(--green);
    opacity:1;
}

.marketplace-gallery-thumbnail img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

@media(max-width:1200px){
    .marketplace-product-grid.marketplace-view-compact,
    [data-marketplace-grid].marketplace-view-compact{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:1024px){
    .marketplace-product-grid.marketplace-view-large,
    [data-marketplace-grid].marketplace-view-large,
    .marketplace-product-grid.marketplace-view-compact,
    [data-marketplace-grid].marketplace-view-compact{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .marketplace-view-list .marketplace-product-card{
        grid-template-columns:210px minmax(0,1fr);
    }

    .marketplace-view-list .marketplace-product-content{
        display:flex;
        flex-direction:column;
    }

    .marketplace-view-list .marketplace-product-certificates{
        margin-top:12px;
        padding-top:10px;
        border-top:1px solid #eef2f7;
    }
}

@media(max-width:700px){
    .marketplace-product-grid.marketplace-view-large,
    [data-marketplace-grid].marketplace-view-large{
        grid-template-columns:1fr;
    }

    .marketplace-product-grid.marketplace-view-compact,
    [data-marketplace-grid].marketplace-view-compact{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }

    .marketplace-view-list .marketplace-product-card{
        grid-template-columns:132px minmax(0,1fr);
        min-height:180px;
    }

    .marketplace-view-list .marketplace-product-media{
        min-height:180px;
    }

    .marketplace-view-list .marketplace-product-content{
        padding:14px;
    }

    .marketplace-view-list .marketplace-product-description,
    .marketplace-view-list .marketplace-product-certificates{
        display:none;
    }

    .marketplace-view-list .marketplace-product-actions{
        grid-template-columns:1fr;
        gap:7px;
    }

    .marketplace-gallery{
        padding:0;
    }

    .marketplace-gallery-panel{
        width:100%;
        height:100%;
        border:0;
        border-radius:0;
    }

    .marketplace-gallery-stage{
        padding:12px 52px;
    }

    .marketplace-gallery-nav{
        width:38px;
        height:38px;
    }

    .marketplace-gallery-nav.is-previous{
        left:8px;
    }

    .marketplace-gallery-nav.is-next{
        right:8px;
    }

    .marketplace-catalog-toolbar-actions{
        width:100%;
        justify-content:space-between;
    }

    .catalog-toolbar{
        align-items:flex-start;
        flex-direction:column;
    }
}

@media(max-width:460px){
    .marketplace-view-compact .marketplace-product-content{
        padding:11px;
    }

    .marketplace-view-compact .marketplace-product-title{
        min-height:38px;
        font-size:13px;
    }

    .marketplace-view-compact .marketplace-product-description,
    .marketplace-view-compact .marketplace-product-certificates,
    .marketplace-view-compact .marketplace-media-zoom{
        display:none;
    }

    .marketplace-view-compact .marketplace-product-actions{
        padding-top:11px;
    }

    .marketplace-view-compact .marketplace-product-details-button,
    .marketplace-view-compact .marketplace-product-inquiry-button{
        min-height:36px;
        font-size:10px;
    }
}

/* =====================================================
UNIFIED MARKETPLACE PRODUCT CARDS
===================================================== */

.marketplace-product-card{
    border-radius:12px;
    box-shadow:none;
}

.marketplace-product-card:hover{
    border-color:#d8dee7;
    box-shadow:0 12px 26px rgba(15,23,42,.07);
}

.marketplace-media-zoom{
    right:10px;
    bottom:10px;
    justify-content:center;
    width:32px;
    min-height:32px;
    padding:0;
    border-radius:50%;
    font-size:12px;
}

.marketplace-product-content{
    padding:15px 16px 16px;
}

.marketplace-product-topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-height:23px;
    margin-bottom:8px;
}

.marketplace-product-type-status{
    display:flex;
    min-width:0;
    align-items:center;
    gap:7px;
    overflow:hidden;
}

.marketplace-product-type{
    min-width:0;
    margin:0;
    overflow:hidden;
    color:#64748b;
    font-size:11px;
    font-weight:650;
    line-height:1.3;
    letter-spacing:0;
    text-overflow:ellipsis;
    text-transform:none;
    white-space:nowrap;
}

.marketplace-product-approved{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    gap:4px;
    color:var(--green);
    font-size:9px;
    font-weight:750;
    white-space:nowrap;
}

.marketplace-product-approved i{
    font-size:9px;
}

.marketplace-product-placement{
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    gap:4px;
    min-height:23px;
    padding:4px 8px;
    border-radius:20px;
    font-size:9px;
    font-weight:750;
    white-space:nowrap;
}

.marketplace-product-placement.is-sponsored{
    background:#fff7e8;
    color:#a16207;
}

.marketplace-product-placement.is-featured{
    background:#eef6e8;
    color:var(--green);
}

.marketplace-product-title{
    min-height:0;
    font-size:16px;
    line-height:1.4;
}

.marketplace-product-description{
    min-height:0;
    margin:7px 0 0;
    font-size:12px;
    line-height:1.55;
    -webkit-line-clamp:2;
}

.marketplace-product-certificates{
    display:flex;
    min-width:0;
    align-items:center;
    gap:6px;
    margin-top:13px;
    padding:0;
    overflow:hidden;
    border:0;
    color:#94a3b8;
    font-size:11px;
    line-height:1.4;
    white-space:nowrap;
}

.marketplace-product-certificates > i{
    flex:0 0 auto;
    color:var(--green);
    font-size:10px;
}

.marketplace-product-certificate-line{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-product-actions{
    grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
    gap:8px;
    margin-top:auto;
    padding-top:14px;
    border-top:1px solid #eef2f7;
}

.marketplace-product-inquiry-button.is-full-width{
    grid-column:1 / -1;
}

.marketplace-view-compact .marketplace-product-content{
    padding:12px 13px 13px;
}

.marketplace-view-compact .marketplace-product-topline{
    gap:5px;
    margin-bottom:6px;
}

.marketplace-view-compact .marketplace-product-approved{
    font-size:8px;
}

.marketplace-view-compact .marketplace-product-placement{
    min-height:20px;
    padding:3px 6px;
    font-size:8px;
}

.marketplace-view-compact .marketplace-product-title{
    min-height:0;
    font-size:14px;
}

.marketplace-view-compact .marketplace-product-description{
    min-height:0;
    margin-top:5px;
    font-size:11px;
}

.marketplace-view-compact .marketplace-product-certificates{
    margin-top:9px;
    padding:0;
    font-size:10px;
}

.marketplace-view-compact .marketplace-product-actions{
    grid-template-columns:repeat(auto-fit,minmax(95px,1fr));
    gap:6px;
    padding-top:11px;
}

.marketplace-view-compact .marketplace-product-details-button,
.marketplace-view-compact .marketplace-product-inquiry-button{
    min-height:36px;
    padding:7px 8px;
    font-size:10px;
}

.marketplace-view-list .marketplace-product-content{
    display:flex;
    flex-direction:column;
    padding:18px 20px;
}

.marketplace-view-list .marketplace-product-topline,
.marketplace-view-list .marketplace-product-title,
.marketplace-view-list .marketplace-product-description,
.marketplace-view-list .marketplace-product-certificates,
.marketplace-view-list .marketplace-product-actions{
    grid-column:auto;
    grid-row:auto;
}

.marketplace-view-list .marketplace-product-certificates{
    margin-top:12px;
    padding:0;
    border:0;
}

.marketplace-view-list .marketplace-product-actions{
    width:min(360px,100%);
    margin-top:auto;
}

.marketplace-category-all{
    display:flex;
    align-items:center;
    gap:9px;
}

.marketplace-category-heading{
    display:flex;
    min-width:0;
    align-items:center;
    gap:9px;
}

.marketplace-category-heading > span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.marketplace-category-heading-icon{
    flex:0 0 auto;
    color:var(--green) !important;
    font-size:11px !important;
    transform:none !important;
}

.marketplace-category-disclosure-icon{
    flex:0 0 auto;
    font-size:9px !important;
    transition:transform .18s ease;
}

.marketplace-category-level-one[aria-expanded="true"]
.marketplace-category-disclosure-icon,
.marketplace-category-level-two[aria-expanded="true"]
.marketplace-category-disclosure-icon{
    transform:rotate(90deg);
}

.marketplace-product-type-icon{
    width:14px;
    margin-right:7px;
    color:#a3afbf;
    font-size:9px;
    text-align:center;
}

.load-more-btn[hidden]{
    display:none !important;
}

@media(max-width:460px){
    .marketplace-view-compact .marketplace-product-approved{
        width:14px;
        overflow:hidden;
        font-size:0;
    }

    .marketplace-view-compact .marketplace-product-placement i{
        display:none;
    }

    .marketplace-view-compact .marketplace-product-description,
    .marketplace-view-compact .marketplace-product-certificates{
        display:-webkit-box;
    }

    .marketplace-view-compact .marketplace-product-certificates{
        display:flex;
    }
}

/* =====================================================
PRODUCT CARD ACTIONS — COMPLETE LABELS IN EVERY VIEW

Both actions remain readable and side by side on homepage compact cards and
on list/table-style rows. Products without details keep one full-width inquiry
button.
===================================================== */

.marketplace-product-card .marketplace-product-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
}

.marketplace-product-card .marketplace-product-details-label{
    display:inline;
}

.marketplace-product-card .marketplace-product-details-button{
    width:auto;
    min-width:0;
    max-width:none;
    white-space:nowrap;
}

.marketplace-product-card .marketplace-product-inquiry-button{
    min-width:0;
    white-space:nowrap;
}

.marketplace-product-card
.marketplace-product-inquiry-button.is-full-width,
.marketplace-product-card
.marketplace-product-details-button.is-full-width{
    grid-column:1 / -1;
}

.marketplace-view-compact
.marketplace-product-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

@media(max-width:460px){
    .marketplace-product-card .marketplace-product-actions{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:5px;
    }

    .marketplace-product-card .marketplace-product-details-button{
        width:auto;
        min-width:0;
        max-width:none;
    }

    .marketplace-product-card .marketplace-product-details-button,
    .marketplace-product-card .marketplace-product-inquiry-button{
        gap:5px;
        padding-right:6px;
        padding-left:6px;
        font-size:10px;
    }
}
