/* Buyer pages only. No global theme, account or checkout changes. */
/* The body and header retain the original site's purple background. */
.buyer-market .mk-side,.buyer-detail-layout>.mk-side{display:block!important}
.buyer-market,.buyer-detail-layout{--mk-bg2:#1b2540;--mk-border2:#30344e}
.buyer-market,.buyer-detail-layout{--mk-primary:#21ceaa;--mk-accent:#21ceaa;--mk-panel:#151e31;--mk-panel2:#1b2540;--mk-bg:#151e31;--mk-text:#f3effb;--mk-text2:#d7d0e8;--mk-muted:#aaa1bf;--mk-border:#30344e;--mk-amber:#e3b341;color:#f3effb;font-family:Arial,sans-serif;box-sizing:border-box}
.buyer-market.mk-shell{width:100%!important;max-width:none!important;margin:0!important;padding:20px 20px 40px 0!important;display:grid!important;grid-template-columns:228px minmax(0,1fr)!important;gap:22px!important;align-items:start}
.buyer-market .mk-side,.buyer-detail-layout>.mk-side{width:auto!important;min-width:0;position:sticky;top:85px;max-height:calc(100vh - 90px);overflow:auto;scrollbar-width:thin}
.buyer-market .mk-main{min-width:0;width:100%}
.buyer-market .mk-card,.buyer-detail-layout .mk-card{background:#151e31!important;color:#f3effb;border:1px solid #30344e!important;box-shadow:0 2px 8px #24103906;border-radius:9px}
.buyer-market .mk-side>.mk-card,.buyer-market .mk-side form>.mk-card,.buyer-detail-filters>.mk-card{border-radius:0 8px 8px 0}
.buyer-market .mk-panel-h,.buyer-detail-layout .mk-panel-h{border-color:#30344e;background:transparent;padding:16px}
.buyer-market .mk-panel-h h2,.buyer-detail-layout .mk-panel-h h2{color:#f3effb;font-size:13px}
.buyer-market .mk-fgroup,.buyer-detail-layout .mk-fgroup{padding:15px 16px;border-bottom:1px solid #30344e}
.buyer-market .mk-fgroup h4,.buyer-detail-layout .mk-fgroup h4{color:#bcb3cf;font-size:10px;letter-spacing:.06em;margin:0 0 12px}
.buyer-market .mk-radio,.buyer-market .mk-check{font-size:12px;min-height:27px;color:#d7d0e8;gap:8px}
.buyer-market input{accent-color:#21ceaa}
.buyer-market .mk-radio em{background:#252b45;color:#bcb3cf;border-radius:3px;padding:1px 4px}
.buyer-market .mk-head{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:12px;gap:16px;flex-wrap:wrap}
.buyer-market .buyer-view-switch{margin-left:auto;flex-shrink:0}
.buyer-market .mk-head h1{font-size:27px;color:#f3effb;margin:0 0 8px}
.buyer-market .mk-head p{font-size:12px;color:#bcb3cf;margin:0}
.buyer-market .mk-btn,.buyer-detail-layout .mk-btn{background:#21ceaa;color:#151e31;border-color:#21ceaa;border-radius:6px;font-size:12px;min-height:34px;padding:8px 14px;box-shadow:none}
.buyer-market .mk-btn.ghost,.buyer-detail-layout .mk-btn.ghost{background:#151e31;color:#21ceaa;border:1px solid #514073}
.buyer-market .mk-bigsearch{max-width:560px;margin:12px 0 16px;display:flex;gap:8px}
.buyer-market .mk-bigsearch input{background:#151e31;color:#f3effb;border:1px solid #30344e;border-radius:6px;height:36px;font-size:12px;padding:8px 12px;min-width:0;flex:1}
.buyer-market .mk-bigsearch button{background:#21ceaa;color:white;border:0;border-radius:6px;width:38px;height:36px}
.buyer-market .mk-tabs{display:none}
.buyer-market .mk-tabrow{border-top:1px solid #30344e;padding:12px 0;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.buyer-sort-links,.buyer-view-switch{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
.buyer-sort-links a,.buyer-view-switch button{font:12px Arial,sans-serif;border:1px solid transparent;background:transparent;color:#d7d0e8;border-radius:5px;padding:9px 14px;text-decoration:none;cursor:pointer}
.buyer-sort-links a[aria-current=page],.buyer-view-switch button[aria-pressed=true]{background:#21ceaa;color:white}
.buyer-view-switch{padding:3px;border:1px solid #30344e;border-radius:7px;background:#151e31}
.buyer-view-switch button[aria-pressed=true]{background:#342166;color:#21ceaa}
.buyer-market .mk-sel{background:#151e31;color:#d7d0e8;border:1px solid #30344e;border-radius:5px;font-size:12px}
.buyer-market .mk-mgrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(215px,1fr))!important;gap:18px!important;align-items:start}
.buyer-market .mk-mgrid[data-view=small]{grid-template-columns:repeat(auto-fill,minmax(165px,1fr))!important;gap:12px!important}
.buyer-market .mk-mgrid[data-view=large]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.buyer-market .mk-mgrid[data-view=single]{grid-template-columns:1fr!important}
.buyer-market .mk-mgrid[data-view=single] .mk-mcard{display:grid;grid-template-columns:minmax(230px,35%) 1fr}
.buyer-market .mk-mcard{width:100%!important;min-width:0;overflow:hidden;position:relative;animation:none}
.buyer-market .mk-mthumb{display:block;aspect-ratio:16/10;height:auto!important;background:#09090e;overflow:hidden}
.buyer-market .mk-mthumb img{width:100%;height:100%;object-fit:contain}
.buyer-market .mk-mbody{padding:10px;display:flex;flex-direction:column;gap:6px;min-width:0}
.buyer-market .mk-mtitle{font-size:12px;color:#f3effb;font-weight:600;line-height:1.4;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buyer-market .mk-mcreator{font-size:10px;color:#bcb3cf;margin:0;line-height:1.3;min-height:16px}
.buyer-market .mk-mcreator .mk-av{display:none}
.buyer-market .buyer-card-description{font-size:10px;line-height:1.4;color:#bcb3cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;min-height:14px}
.buyer-market .mk-mstats{display:flex;align-items:center;gap:7px;color:#bcb3cf;font-size:9px;border:0;margin:0;padding:0;white-space:nowrap;min-width:0}
.buyer-market .mk-price,.buyer-detail .mk-dprice-v{color:#21ceaa!important;font-weight:700}
.buyer-market .mk-mfoot{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:nowrap;border:0;margin:0;padding:2px 0 0;min-height:28px}
.buyer-market .mk-mfoot .mk-price{font-size:11px;white-space:nowrap}
.buyer-market .mk-mfoot .mk-btn{font-size:10px;padding:6px 9px;min-height:27px;line-height:15px;flex-shrink:0;background:#21ceaa;color:#071b24}
.buyer-market .mk-mgrid[data-view=small]{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))!important}
.buyer-market .mk-mgrid[data-view=single] .mk-mthumb{aspect-ratio:16/10;max-height:230px}
.buyer-market .mk-mgrid[data-view=single] .mk-mbody{justify-content:center;padding:18px}
.buyer-market .mk-mgrid[data-view=single] .mk-mfoot{justify-content:flex-start;gap:18px}
.buyer-market .mk-pro{background:#21ceaa;color:white}
.buyer-market .mk-fav{background:#191624aa;color:white}
.buyer-market .mk-rail{display:none}
.buyer-market .buyer-creators{margin-top:14px}
.buyer-market .buyer-creators .mk-mini{color:#d7d0e8;font-size:11px}
.buyer-detail-layout{display:grid;grid-template-columns:228px minmax(0,1fr);gap:24px;width:100%;padding:20px 24px 40px 0;box-sizing:border-box}
.buyer-detail.mk-dwrap{max-width:none!important;width:100%!important;padding:0!important;margin:0!important;min-width:0}
.buyer-filter-link{display:block;padding:7px 0;font-size:12px;color:#bcb3cf;text-decoration:none}
.buyer-filter-link:hover{color:#21ceaa}
.buyer-detail .mk-crumb{color:#bcb3cf;font-size:12px;margin:8px 0 28px}
.buyer-detail .mk-crumb a{color:#bcb3cf}
.buyer-detail .mk-dgrid2{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:30px;align-items:start}
.buyer-detail .mk-dgrid2>div{min-width:0}
.buyer-detail .mk-gallery{background:#08070d;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center}
.buyer-detail #mkMain{width:100%;height:100%;max-height:70vh;object-fit:contain;cursor:zoom-in}
.buyer-detail .mk-gthumbs{background:#08070d;padding:14px;display:flex;gap:10px;overflow:auto}
.buyer-detail .mk-gthumb{flex:0 0 90px;border-radius:6px;border:2px solid transparent;background:#161220}
.buyer-detail .mk-gthumb.on{border-color:#8649ff}
.buyer-detail .mk-dside>.mk-card:first-child{box-shadow:0 18px 55px rgba(11,4,35,.25);border:1px solid #5b4385!important}
.buyer-detail .mk-panel-b{color:#d7d0e8;padding:20px;line-height:1.7}
.buyer-detail .mk-dside>.mk-card:first-child>.mk-panel-b{padding:24px}
.buyer-detail .mk-dtitle{font-size:28px;color:#f3effb;line-height:1.25}
.buyer-detail .mk-dshort{color:#bcb3cf;font-size:13px}
.buyer-detail .mk-dcreator{background:#1b2540;color:#d7d0e8;border:1px solid #30344e;padding:12px;border-radius:6px}
.buyer-detail .mk-dprice{border-color:#30344e}
.buyer-detail .mk-tbl{color:#bcb3cf;font-size:12px;width:100%;background:transparent}
.buyer-detail .mk-tbl td{border-color:#30344e;color:#bcb3cf}
.buyer-detail .mk-btn.block{width:100%;box-sizing:border-box;text-align:center}
.buyer-detail .mk-works,.buyer-detail .mk-dlabel{color:#d7d0e8}
.buyer-preview{border:1px solid #514073;background:#151e31;color:#21ceaa;padding:10px;border-radius:6px;cursor:pointer;width:100%;margin-top:10px}
.buyer-lightbox{border:0;background:#0b0813f5;padding:25px;color:white;width:94vw;max-width:1800px;height:88vh}
.buyer-lightbox::backdrop{background:#000b}
.buyer-lightbox img{width:100%;height:calc(100% - 45px);object-fit:contain}
.buyer-lightbox button{display:block;margin-left:auto;padding:8px 18px;cursor:pointer}
@media(min-width:2400px){.buyer-market .mk-mgrid[data-view=single]{grid-template-columns:1fr!important}}
@media(max-width:1100px){.buyer-market.mk-shell,.buyer-detail-layout{grid-template-columns:190px minmax(0,1fr)!important;gap:16px}.buyer-detail .mk-dgrid2{grid-template-columns:minmax(0,1fr)}.buyer-detail .mk-dside{position:static}}
@media(max-width:700px){.buyer-market.mk-shell,.buyer-detail-layout{display:block!important;padding:12px!important}.buyer-market .mk-side,.buyer-detail-layout>.mk-side{position:static;max-height:220px;margin-bottom:20px;border:1px solid #30344e;border-radius:8px}.buyer-market .mk-mgrid,.buyer-market .mk-mgrid[data-view=large],.buyer-market .mk-mgrid[data-view=small]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.buyer-market .mk-mgrid[data-view=single]{grid-template-columns:1fr!important}.buyer-market .mk-mgrid[data-view=single] .mk-mcard{display:block}.buyer-market .mk-head h1{font-size:23px}.buyer-market .mk-mbody{padding:10px}.buyer-detail .mk-dgrid2{display:block}.buyer-detail .mk-dside{margin-top:24px}.buyer-detail .mk-dtitle{font-size:23px}}

/* Large view: horizontal preview and information cards. */
.buyer-market .mk-mgrid[data-view=large]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important;align-items:stretch}
.buyer-market .mk-mgrid[data-view=large] .mk-mcard{display:grid;grid-template-columns:55% minmax(0,1fr);min-height:184px;height:auto;align-self:stretch}
.buyer-market .mk-mgrid[data-view=large] .mk-mthumb{aspect-ratio:auto;height:100%!important;min-height:184px;min-width:0;border-radius:0}
.buyer-market .mk-mgrid[data-view=large] .mk-mthumb img{display:block;width:100%;height:100%;object-fit:contain;position:absolute;inset:0}
.buyer-market .mk-mgrid[data-view=large] .mk-mthumb{position:relative}
.buyer-market .mk-mgrid[data-view=large] .mk-mbody{padding:14px;gap:7px;justify-content:flex-start}
.buyer-market .mk-mgrid[data-view=large] .mk-mtitle{font-size:13px;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding-right:22px}
.buyer-market .mk-mgrid[data-view=large] .mk-mcreator{font-size:11px;min-height:14px}
.buyer-market .mk-mgrid[data-view=large] .buyer-card-description{font-size:11px;line-height:1.45;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:0;max-height:2.9em}
.buyer-market .mk-mgrid[data-view=large] .buyer-card-description:empty{display:none}
.buyer-market .mk-mgrid[data-view=large] .mk-mfoot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;margin-top:auto;padding-top:5px}
.buyer-market .mk-mgrid[data-view=large] .mk-mfoot .mk-price{grid-column:1/-1;font-size:13px;line-height:1.3}
.buyer-market .mk-mgrid[data-view=large] .mk-mstats{font-size:10px;gap:8px;flex-wrap:wrap;line-height:1.4}
.buyer-market .mk-mgrid[data-view=large] .mk-mfoot .mk-btn{font-size:11px;padding:5px 10px;min-height:27px;text-align:center}
.buyer-market .mk-mgrid[data-view=large] .mk-fav{position:absolute;top:9px;right:9px;width:25px;height:25px;padding:0;display:grid;place-items:center;z-index:2}
@media(min-width:2400px){.buyer-market .mk-mgrid[data-view=large]{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:3200px){.buyer-market .mk-mgrid[data-view=large]{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:1250px){.buyer-market .mk-mgrid[data-view=large]{grid-template-columns:1fr!important}}
@media(max-width:480px){
.buyer-market .mk-mgrid[data-view=large] .mk-mcard{grid-template-columns:1fr}
.buyer-market .mk-mgrid[data-view=large] .mk-mthumb{aspect-ratio:16/9;min-height:0;height:auto!important}
.buyer-market .mk-mgrid[data-view=large] .mk-mbody{padding:14px}
}

/* Product detail summary: reference layout in the FPS Vault purple/teal theme. */
.buyer-detail .mk-dside>.mk-card:first-child{overflow:hidden;background:linear-gradient(155deg,#211247 0%,#17152e 54%,#122439 100%)!important}
.buyer-product-summary{position:relative}
.buyer-product-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:5px;background:#6f32e8;color:#fff;font-size:10px;font-weight:800;line-height:1;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px}
.buyer-detail .buyer-product-summary .mk-dtitle{margin:0;color:#f8f6ff;font-size:29px;font-weight:800;line-height:1.18;letter-spacing:-.025em;overflow-wrap:anywhere}
.buyer-detail .buyer-product-summary .mk-dcreator{display:inline-flex;align-items:center;gap:8px;width:auto;margin:10px 0 0;padding:0;background:transparent;border:0;color:#ddd6ee;text-decoration:none}
.buyer-detail .buyer-product-summary .mk-dcreator .mk-av{width:27px!important;height:27px!important;font-size:11px!important}
.buyer-detail .buyer-product-summary .mk-dcreator>span:nth-child(2)>span{display:none}
.buyer-detail .buyer-product-summary .mk-dcreator>span:nth-child(2) br{display:none}
.buyer-detail .buyer-product-summary .mk-dcreator>span:nth-child(2)::before{content:'by ';color:#aaa1bf;font-size:12px}
.buyer-detail .buyer-product-summary .mk-dcreator b{font-size:12px!important;color:#f3effb}
.buyer-detail .buyer-product-summary .mk-pro{margin-left:1px;border-radius:999px;font-size:8px;padding:3px 6px;background:#21ceaa;color:#09241f}
.buyer-product-stats{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:15px 0 0;color:#c7bddb;font-size:12px}
.buyer-product-stats>span{display:inline-flex;align-items:center;gap:5px}
.buyer-product-stats i{color:#21ceaa}
.buyer-product-stats .buyer-rating{gap:3px;color:#e3b341}
.buyer-product-stats .buyer-rating i{color:#e3b341!important}
.buyer-product-stats .buyer-rating b{margin-left:3px;color:#f2e9cf;font-size:12px}
.buyer-product-stats .buyer-rating small{color:#aaa1bf;font-size:10px}
.buyer-detail .buyer-product-summary .mk-dshort{margin:16px 0 0;color:#d4cde2;font-size:13px;line-height:1.65}
.buyer-summary-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}
.buyer-summary-tags a{padding:5px 9px;border:1px solid #4d416d;border-radius:6px;background:#211c39;color:#cfc5e4;font-size:10px;line-height:1;text-decoration:none}
.buyer-summary-tags a:hover{border-color:#21ceaa;color:#21ceaa}
.buyer-summary-compat{margin:18px 0 0;padding:13px 14px;border:1px solid #40345f;border-radius:8px;background:rgba(13,12,31,.42)}
.buyer-summary-compat strong{display:block;margin-bottom:9px;color:#f3effb;font-size:12px}
.buyer-summary-compat>div{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.buyer-summary-compat span{display:inline-flex;align-items:center;gap:5px;color:#c9c1da;font-size:10px}
.buyer-summary-compat i{color:#21ceaa;font-size:10px}
.buyer-detail .buyer-product-summary .mk-dprice{display:flex;align-items:baseline;gap:9px;margin:19px 0 16px;padding:0;border:0}
.buyer-detail .buyer-product-summary .mk-dprice-v{font-size:27px;line-height:1}
.buyer-detail .buyer-product-summary .mk-dprice-l{color:#aaa1bf;font-size:11px}
.buyer-detail .buyer-product-summary .mk-btn.block{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;font-weight:700}
.buyer-detail .buyer-product-summary .mk-btn.ghost{background:rgba(17,15,38,.48)}
.buyer-detail .buyer-product-summary .buyer-preview{margin-top:9px;min-height:40px;background:rgba(17,15,38,.48);font:700 12px Arial,sans-serif}
.buyer-detail .mk-dside>.mk-card:first-child .mk-tblwrap{background:rgba(9,8,25,.2);border-color:#40345f!important}
.buyer-detail .mk-dside>.mk-card:first-child .mk-tbl td{padding:11px 15px;border-color:#352c50;color:#dad4e6}
@media(max-width:700px){
.buyer-detail .buyer-product-summary .mk-dtitle{font-size:24px}
.buyer-detail .mk-dside>.mk-card:first-child>.mk-panel-b{padding:19px}
.buyer-product-stats{gap:10px}
}
