/* STLTYPE v1.7 Pazaryeri arama ve listeleme ek stilleri */
.nav-search-bar { overflow: hidden; }
.nav-search-submit { background: transparent; border: 0; color: var(--text-muted); width: 38px; height: 34px; cursor: pointer; font-size: 1.1rem; }
.nav-search-submit:hover { color: var(--primary-glow); }
.hero-action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.marketplace-main { gap: 28px; }
.market-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.market-hero p { color: var(--text-muted); margin-top: 10px; line-height: 1.7; max-width: 760px; }
.market-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 12px; min-width: 330px; }
.market-hero-stats div { background: rgba(255,255,255,.035); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px; text-align: center; }
.market-hero-stats strong { display: block; color: var(--primary-glow); font-size: 1.45rem; }
.market-hero-stats span { color: var(--text-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .8px; }
.marketplace-layout { display: grid; grid-template-columns: 310px 1fr; gap: 24px; align-items: start; }
.filter-panel { position: sticky; top: 86px; }
.filter-panel .form-field { margin-bottom: 15px; }
.marketplace-checks { margin: 12px 0 18px; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.market-results { min-width: 0; }
.marketplace-section-header { margin-bottom: 16px; }
.result-muted { color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.active-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; min-height: 24px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(0,240,255,.22); color: var(--primary-glow); background: rgba(0,240,255,.06); border-radius: 999px; padding: 6px 10px; font-size: .78rem; }
.marketplace-grid { align-items: stretch; }
.marketplace-card .card-display { display: block; overflow: hidden; }
.card-media-img { width: 100%; height: 100%; object-fit: cover; opacity: .82; display: block; transition: var(--transition); }
.marketplace-card:hover .card-media-img { transform: scale(1.04); opacity: .94; }
.model-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .78rem; text-align: center; padding: 20px; }
.market-price-status { position: absolute; top: 36px; left: 8px; z-index: 10; border-radius: 999px; padding: 3px 8px; font-size: .62rem; font-weight: 800; border: 1px solid var(--glass-border); background: rgba(0,0,0,.68); color: #fff; }
.market-price-status.free { color: var(--accent-green); border-color: rgba(16,185,129,.45); }
.market-price-status.paid { color: #fff; border-color: rgba(255,255,255,.18); }
.card-hover-price strong { color: var(--primary-glow); font-size: .76rem; }
.card-meta-line { color: var(--text-muted); font-size: .72rem; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagination-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; color: var(--text-muted); }
.empty-state { text-align: center; padding: 42px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 22px; }
.category-ring-card:hover { border-color: var(--primary-glow); box-shadow: 0 12px 28px rgba(0,240,255,.1); transform: translateY(-3px); }

@media (max-width: 1100px) {
    .market-hero { flex-direction: column; align-items: stretch; }
    .market-hero-stats { min-width: 0; }
    .marketplace-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
}
@media (max-width: 700px) {
    .market-hero-stats { grid-template-columns: 1fr; }
    .filter-actions { flex-direction: column; }
    .filter-actions .btn-primary-glow, .filter-actions .btn-ghost { width: 100%; text-align: center; }
    .marketplace-section-header { align-items: flex-start; gap: 16px; flex-direction: column; }
}


/* --- STLTYPE PHASE 12 / v2.2: Pazaryeri kontrast ekleri --- */
.market-hero-stats div,
.filter-panel,
.market-results .glass-panel,
.empty-state {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.016)), rgba(28, 38, 54, .84);
    border-color: rgba(255,255,255,.17);
    box-shadow: 0 16px 38px rgba(0,0,0,.30);
}
.filter-chip {
    background: rgba(0, 240, 255, 0.10);
    border-color: rgba(0, 240, 255, 0.28);
}
.market-price-status { background: rgba(12, 18, 28, .92); }
.card-media-img { opacity: .9; }

/* STLTYPE product card image fit fix - keep full image visible inside cards */
.marketplace-card .card-display {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #070707 !important;
}
.marketplace-card .card-media-img,
.marketplace-card .card-media-img.card-media-gif,
.product-matrix .marketplace-card .card-media-img,
.marketplace-grid .marketplace-card .card-media-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: .98 !important;
    transform: none !important;
    background: #070707 !important;
}
.marketplace-card:hover .card-media-img,
.marketplace-card:hover .card-media-img.card-media-gif {
    transform: none !important;
}
.marketplace-card .card-badge-left,
.marketplace-card .market-price-status,
.marketplace-card .club-offer-badge {
    z-index: 12 !important;
}
.card-gif-toggle {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 18;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border: 1px solid rgba(0,240,255,.46);
    border-radius: 50%;
    background: rgba(3,10,15,.88);
    color: #fff;
    font: 700 11px/1 system-ui, sans-serif;
    letter-spacing: .05em;
    box-shadow: 0 8px 20px rgba(0,0,0,.34);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.card-gif-toggle [data-gif-toggle-text] { display: none !important; }
.card-gif-toggle:hover,
.card-gif-toggle:focus-visible,
.card-gif-toggle[aria-pressed="true"] {
    color: #001014;
    background: #00f0ff;
    outline: none;
}
.card-gif-toggle[aria-pressed="true"] [data-gif-toggle-icon] { font-size: 0; }
.card-gif-toggle[aria-pressed="true"] [data-gif-toggle-icon]::after { content: "■"; font-size: 10px; }
.card-media-gif.is-gif-loading { opacity: .78 !important; }
@media (max-width: 720px) {
    .marketplace-card .card-media-img,
    .product-matrix .marketplace-card .card-media-img,
    .marketplace-grid .marketplace-card .card-media-img {
        object-fit: contain !important;
        transform: none !important;
    }
}

/* QA 2026-06-19: advanced filters and mobile overflow guards */
.filter-range-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.filter-range-row input{width:100%;min-width:0}
.marketplace-card,.marketplace-card *{min-width:0}
.moderation-dock{display:flex;flex-wrap:wrap;gap:8px}
.btn-mod-trigger{white-space:normal;text-align:center}
@media (max-width:720px){.filter-range-row{grid-template-columns:1fr}.filter-panel{overflow:hidden}.market-hero-stats{grid-template-columns:1fr}.dual-price-dock{grid-template-columns:1fr}.card-details h4,.card-meta-line,.quality-mini-line{overflow-wrap:anywhere}}

/* STLTYPE 2026-07-10: product-card details are controlled from Admin > Settings.
   Old cached card HTML stays hidden unless the new visibility classes are present. */
.marketplace-card:not(.card-show-hover-price) .card-hover-price {
    display: none !important;
}
.marketplace-card:not(.card-show-price-status) .market-price-status:not(.boost-card-badge) {
    display: none !important;
}
.marketplace-card:not(.card-show-boost-badge) .boost-card-badge {
    display: none !important;
}
.marketplace-card.card-cover-hidden .card-display {
    background: linear-gradient(135deg, rgba(0,240,255,.035), rgba(255,255,255,.015));
}
.marketplace-card.card-has-favorite-count .card-stats-row {
    flex-wrap: wrap;
    gap: 6px 10px;
}


/* STLTYPE 2026-06-26: license template labels on product cards */
.license-template-line{display:block;margin-top:3px;color:var(--text-muted,#9ca3af);font-size:.68rem;line-height:1.2;overflow-wrap:anywhere}

/* STLTYPE 2026-06-29: premium horizontal marketplace filters */
.marketplace-main{gap:18px}.market-hero{position:relative;overflow:hidden;padding:26px 28px}.market-hero:before{content:"";position:absolute;inset:-80px auto auto 22%;width:380px;height:180px;background:radial-gradient(circle,rgba(0,240,255,.13),transparent 70%);pointer-events:none}.market-filter-shell{position:relative;overflow:hidden;margin-top:-4px;margin-bottom:4px;padding:18px 22px;border-color:rgba(0,240,255,.16);background:linear-gradient(135deg,rgba(0,240,255,.055),rgba(255,255,255,.025)),rgba(8,12,16,.88);box-shadow:0 18px 46px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.045)}.market-filter-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.market-filter-head h2{margin:6px 0 0;font-size:1.16rem;letter-spacing:-.02em}.market-filter-head p{max-width:780px;margin:0;color:var(--text-muted);font-size:.9rem;line-height:1.55}.market-filter-form{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(160px,1fr) minmax(132px,.8fr) minmax(132px,.85fr) minmax(142px,.9fr);gap:12px;align-items:end}.market-filter-form .market-filter-field{margin:0}.market-filter-form label{display:block;margin-bottom:7px;color:var(--text-muted);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}.market-filter-form input,.market-filter-form select{width:100%;min-height:43px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:linear-gradient(180deg,rgba(10,16,20,.94),rgba(4,8,12,.94));color:#eefcff;padding:9px 36px 9px 12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);color-scheme:dark}.market-filter-form select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(180deg,rgba(10,16,20,.94),rgba(4,8,12,.94)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:0 0,right 12px center;background-size:auto,14px}.market-filter-form input:focus,.market-filter-form select:focus{outline:none;border-color:rgba(0,240,255,.55);box-shadow:0 0 0 3px rgba(0,240,255,.10),inset 0 0 0 1px rgba(255,255,255,.04)}.market-filter-form select option{background:#071115;color:#eefcff}.market-filter-form .filter-range-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.market-filter-checks{grid-column:span 2;margin:0;align-self:center;display:flex;gap:10px;flex-wrap:wrap}.market-filter-checks .check-pill{min-height:38px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(0,240,255,.18);border-radius:999px;background:rgba(0,240,255,.045);padding:8px 12px;color:#cfeff2;font-size:.82rem}.market-filter-checks input{width:auto;min-height:0;padding:0;accent-color:#00f0ff}.market-filter-actions{grid-column:span 3;display:flex;justify-content:flex-end;gap:10px;align-self:center}.market-filter-actions .btn-primary-glow,.market-filter-actions .btn-ghost{min-height:42px;white-space:nowrap}.marketplace-layout-full{display:block}.marketplace-layout-full .market-results{width:100%}.filter-panel{position:static}.marketplace-section-header{padding-top:2px}.active-filter-row{margin-bottom:14px}
@media(max-width:1380px){.market-filter-form{grid-template-columns:repeat(4,minmax(0,1fr))}.market-filter-checks{grid-column:span 2}.market-filter-actions{grid-column:span 2}}
@media(max-width:980px){.market-filter-head{display:block}.market-filter-head p{margin-top:8px}.market-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.market-filter-checks,.market-filter-actions{grid-column:1/-1}.market-filter-actions{justify-content:flex-start}.market-hero{align-items:stretch;flex-direction:column}.market-hero-stats{min-width:0}}
@media(max-width:640px){.market-filter-shell{padding:16px}.market-filter-form{grid-template-columns:1fr}.market-filter-checks{display:grid;grid-template-columns:1fr}.market-filter-actions{display:grid;grid-template-columns:1fr}.market-filter-form .filter-range-row{grid-template-columns:1fr}.market-hero{padding:20px}.market-hero-stats{grid-template-columns:1fr}.marketplace-section-header{align-items:flex-start;flex-direction:column}}
.market-filter-checks input[type="checkbox"]{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:4px!important}

/* STLTYPE 2026-06-29: compact usable marketplace filter panel
   Replaces the oversized horizontal filter with a slim search toolbar and collapsible advanced filters. */
.marketplace-main{gap:14px}
.market-compact-panel{position:relative;overflow:hidden;margin:0 0 18px;padding:14px 16px;border-color:rgba(0,240,255,.16);background:linear-gradient(135deg,rgba(0,240,255,.052),rgba(255,255,255,.022)),rgba(8,12,16,.90);box-shadow:0 16px 42px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.05)}
.market-compact-panel:before{content:"";position:absolute;inset:-90px auto auto 18%;width:360px;height:150px;background:radial-gradient(circle,rgba(0,240,255,.11),transparent 68%);pointer-events:none}
.market-compact-panel>*{position:relative;z-index:1}
.market-compact-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:12px}
.market-compact-title .club-tag{margin:0 0 6px;padding:6px 12px;font-size:.68rem}
.market-compact-title .section-headline{margin:0 0 4px;font-size:1.32rem;line-height:1.08;letter-spacing:-.03em}
.market-compact-title p{max-width:780px;margin:0;color:var(--text-muted);font-size:.83rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-compact-stats{min-width:0;display:grid;grid-template-columns:repeat(3,76px);gap:8px}
.market-compact-stats div{min-height:56px;padding:9px 10px;border-radius:14px}
.market-compact-stats strong{font-size:1.08rem;line-height:1.1}
.market-compact-stats span{font-size:.62rem;letter-spacing:.09em}
.market-inline-alert{display:flex;gap:8px;align-items:center;margin:0 0 10px;padding:9px 12px;border:1px solid rgba(255,0,60,.28);border-radius:14px;background:rgba(255,0,60,.07);color:#ffd7df;font-size:.82rem}
.market-inline-alert span{color:var(--text-muted)}
.market-compact-form{margin:0}
.market-basic-row{display:grid;grid-template-columns:minmax(260px,1.45fr) minmax(170px,1fr) minmax(138px,.72fr) minmax(170px,.9fr) auto;gap:10px;align-items:end}
.market-compact-form .market-filter-field{min-width:0;margin:0}
.market-compact-form label{display:block;margin:0 0 6px;color:var(--text-muted);font-size:.67rem;line-height:1;letter-spacing:.08em;text-transform:uppercase}
.market-compact-form input,.market-compact-form select{width:100%;min-height:40px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:linear-gradient(180deg,rgba(10,16,20,.94),rgba(4,8,12,.94));color:#eefcff;padding:8px 34px 8px 12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);color-scheme:dark}
.market-compact-form select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(180deg,rgba(10,16,20,.94),rgba(4,8,12,.94)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:0 0,right 12px center;background-size:auto,14px}
.market-compact-form input:focus,.market-compact-form select:focus{outline:none;border-color:rgba(0,240,255,.55);box-shadow:0 0 0 3px rgba(0,240,255,.10),inset 0 0 0 1px rgba(255,255,255,.04)}
.market-compact-form select option{background:#071115;color:#eefcff}
.market-compact-actions{display:flex;gap:8px;align-items:end;justify-content:flex-end;white-space:nowrap}
.market-compact-actions .btn-primary-glow,.market-compact-actions .btn-ghost{min-height:40px;padding:10px 16px;border-radius:13px;white-space:nowrap}
.market-advanced-filters{margin-top:10px}
.market-advanced-filters summary{width:max-content;max-width:100%;min-height:36px;display:inline-flex;align-items:center;gap:10px;list-style:none;cursor:pointer;border:1px solid rgba(0,240,255,.18);border-radius:999px;background:rgba(0,240,255,.045);padding:7px 12px;color:#eaffff;font-size:.78rem;font-weight:800;user-select:none}
.market-advanced-filters summary::-webkit-details-marker{display:none}
.market-advanced-filters summary:before{content:"+";display:grid;place-items:center;width:18px;height:18px;border-radius:999px;background:rgba(0,240,255,.13);color:var(--primary-glow);font-weight:900}
.market-advanced-filters[open] summary:before{content:"-"}
.market-advanced-filters summary small{color:var(--text-muted);font-size:.72rem;font-weight:600}
.market-advanced-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:10px;padding:12px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.025)}
.market-price-range-field{grid-column:span 2}
.market-advanced-grid .filter-range-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.market-advanced-checks{display:flex;flex-wrap:wrap;gap:8px;align-items:end;align-content:end}
.market-advanced-checks .check-pill{min-height:40px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(0,240,255,.18);border-radius:999px;background:rgba(0,240,255,.045);padding:8px 12px;color:#cfeff2;font-size:.8rem;white-space:nowrap}
.market-advanced-checks input[type="checkbox"]{width:auto;min-height:0;padding:0;accent-color:#00f0ff;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:4px!important}
.marketplace-layout-full{display:block}.marketplace-layout-full .market-results{width:100%}.filter-panel{position:static}.marketplace-section-header{padding-top:0}.active-filter-row{margin-bottom:12px}
@media(max-width:1400px){.market-basic-row{grid-template-columns:minmax(240px,1.3fr) repeat(3,minmax(145px,1fr));}.market-compact-actions{grid-column:1/-1;justify-content:flex-end}.market-advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.market-compact-head{grid-template-columns:1fr}.market-compact-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.market-basic-row{grid-template-columns:repeat(2,minmax(0,1fr))}.market-search-field{grid-column:1/-1}.market-compact-actions{justify-content:flex-start}.market-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-price-range-field{grid-column:1/-1}.market-compact-title p{white-space:normal}}
@media(max-width:640px){.market-compact-panel{padding:14px}.market-compact-title .section-headline{font-size:1.12rem}.market-compact-stats{grid-template-columns:1fr 1fr 1fr}.market-compact-stats div{min-height:50px;padding:8px 6px}.market-compact-stats strong{font-size:.95rem}.market-basic-row,.market-advanced-grid{grid-template-columns:1fr}.market-compact-actions{display:grid;grid-template-columns:1fr 1fr}.market-compact-actions .btn-primary-glow,.market-compact-actions .btn-ghost{text-align:center;width:100%}.market-advanced-filters summary{width:100%;justify-content:flex-start}.market-advanced-filters summary small{display:none}.market-advanced-grid .filter-range-row{grid-template-columns:1fr}.market-advanced-checks{display:grid;grid-template-columns:1fr}.market-advanced-checks .check-pill{justify-content:flex-start}}

/* STLTYPE 2026-06-29: compact filter gap cleanup
   The global app.css sets .main-container gap with !important. On marketplace pages that created
   an unnecessary large empty space between the compact filter panel and model results. */
body:not(.account-embedded-direct):not(.account-embedded-body) .main-container.marketplace-main{
    gap:12px!important;
}
.marketplace-main>.market-compact-panel{
    margin-bottom:0!important;
}
.marketplace-main>.marketplace-layout-full{
    margin-top:0!important;
}
.marketplace-main .market-results{
    margin-top:0!important;
}
.marketplace-main .marketplace-section-header{
    margin-top:0!important;
    margin-bottom:14px!important;
}
@supports (content-visibility:auto){
    body:not(.account-embedded-direct):not(.account-embedded-body) .main-container.marketplace-main>section{
        content-visibility:visible!important;
        contain-intrinsic-size:none!important;
    }
}

/* STLTYPE 2026-06-29: view switch moved into compact filter bar and result title removed */
.market-filter-control-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-top:10px;
}
.market-filter-control-row .market-advanced-filters{
    flex:1 1 auto;
    min-width:0;
    margin-top:0!important;
}
.market-view-controls{
    flex:0 0 auto;
    min-height:36px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 6px 5px 10px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015)),rgba(4,8,12,.72);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    white-space:nowrap;
}
.market-view-controls span{
    color:var(--text-muted);
    font-size:.76rem;
    line-height:1;
}
.market-view-controls .grid-btn{
    width:28px;
    min-width:28px;
    height:28px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:var(--text-muted);
    font-weight:900;
    font-size:.82rem;
    cursor:pointer;
    transition:var(--transition);
}
.market-view-controls .grid-btn:hover{
    color:var(--primary-glow);
    background:rgba(0,240,255,.07);
}
.market-view-controls .grid-btn.active{
    color:#021015;
    background:#eaffff;
    box-shadow:0 0 14px rgba(0,240,255,.52);
}
.marketplace-layout-full{
    padding-top:0!important;
}
.marketplace-main .market-results>.product-matrix,
.marketplace-main .market-results>.empty-state{
    margin-top:2px!important;
}
@media(max-width:760px){
    .market-filter-control-row{
        flex-direction:column;
        align-items:stretch;
    }
    .market-view-controls{
        width:100%;
        justify-content:flex-end;
        overflow-x:auto;
    }
    .market-view-controls span{
        margin-right:auto;
    }
}

/* STLTYPE 2026-07-15: admin-controlled 2-6 column marketplace grid.
   Card media grows with the card instead of staying fixed at 180px. */
.marketplace-main .marketplace-grid.matrix-col-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.marketplace-main .marketplace-grid.matrix-col-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.marketplace-main .marketplace-grid.matrix-col-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.marketplace-main .marketplace-grid.matrix-col-5{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.marketplace-main .marketplace-grid.matrix-col-6{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.marketplace-main .marketplace-grid .marketplace-card{width:100%;min-width:0}
.marketplace-main .marketplace-grid .marketplace-card .card-display{
    width:100%!important;
    height:auto!important;
    min-height:180px;
    aspect-ratio:4/3;
}
.marketplace-main .marketplace-grid .marketplace-card .card-media-img,
.marketplace-main .marketplace-grid .marketplace-card .card-media-img.card-media-gif{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
}
@media(max-width:1180px){
    .marketplace-main .marketplace-grid.matrix-col-4,
    .marketplace-main .marketplace-grid.matrix-col-5,
    .marketplace-main .marketplace-grid.matrix-col-6{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
    .marketplace-main .marketplace-grid.matrix-col-2,
    .marketplace-main .marketplace-grid.matrix-col-3,
    .marketplace-main .marketplace-grid.matrix-col-4,
    .marketplace-main .marketplace-grid.matrix-col-5,
    .marketplace-main .marketplace-grid.matrix-col-6{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .marketplace-main .marketplace-grid .marketplace-card .card-display{height:180px!important;min-height:180px;aspect-ratio:auto}
}
@media(max-width:440px){
    .marketplace-main .marketplace-grid.matrix-col-2,
    .marketplace-main .marketplace-grid.matrix-col-3,
    .marketplace-main .marketplace-grid.matrix-col-4,
    .marketplace-main .marketplace-grid.matrix-col-5,
    .marketplace-main .marketplace-grid.matrix-col-6{grid-template-columns:minmax(0,1fr)!important}
}

/* STLTYPE 2026-07-15: one bottom-centered license band on card hover. */
.marketplace-card .card-hover-price{
    inset:auto auto 12px 50%!important;
    width:min(360px,calc(100% - 24px));
    max-width:calc(100% - 24px);
    padding:10px 15px!important;
    border-radius:12px!important;
    text-align:center;
    line-height:1.35;
    white-space:normal;
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,8px)!important;
    z-index:20!important;
}
.marketplace-card .card-hover-price strong{
    display:block;
    color:var(--primary-glow,#00f0ff);
    font-size:.78rem;
    font-weight:800;
}
.marketplace-card:hover .card-hover-price,
.marketplace-card:focus-within .card-hover-price{
    opacity:1;
    transform:translate(-50%,0)!important;
}
.marketplace-card.is-gif-cover .card-gif-toggle{
    top:10px!important;
    right:auto!important;
    bottom:auto!important;
    left:10px!important;
}
.marketplace-card.is-gif-cover .format-badge{
    right:8px!important;
    left:auto!important;
}

/* STLTYPE 2026-08-17: advanced marketplace filter full-width layout fix */
.market-filter-control-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:12px!important;
    position:relative;
}
.market-filter-control-row .market-advanced-filters{
    grid-column:1/-1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-top:0!important;
}
.market-filter-control-row .market-view-controls{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:start!important;
    z-index:3!important;
}
.market-filter-control-row .market-advanced-filters[open] .market-advanced-grid{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
.market-advanced-checks{
    grid-column:1/-1!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    align-content:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
}
.market-advanced-checks .check-pill{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
}

@media(max-width:760px){
    .market-filter-control-row{
        display:flex!important;
        flex-direction:column!important;
        align-items:stretch!important;
    }
    .market-filter-control-row .market-advanced-filters,
    .market-filter-control-row .market-view-controls{
        width:100%!important;
        align-self:stretch!important;
    }
    .market-advanced-checks{
        display:grid!important;
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .market-advanced-checks .check-pill{
        width:100%!important;
        justify-content:flex-start!important;
    }
}
@media(max-width:520px){
    .market-advanced-checks{
        grid-template-columns:1fr!important;
    }
}
