.ws-outfits-page{padding:4px 0 30px;color:#e8f0fc}.ws-outfits-head{margin:0 0 22px;padding:24px 26px;background:linear-gradient(115deg,#101d30,#172b43);border:1px solid #334b65;border-radius:14px}.ws-outfits-head>span{color:#93b4d6;letter-spacing:3px;font-size:11px;font-weight:800}.ws-outfits-head h2{font-size:clamp(28px,3vw,43px);line-height:1.2;margin:9px 0 6px;font-weight:900;letter-spacing:-1px}.ws-outfits-head h2 span{color:#8bb8ee}.ws-outfits-head p{color:#a8bdd6;font-size:13px;margin:0}.ws-outfits-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 19px}.ws-outfit-filter{padding:10px 17px;background:#142237;color:#b8cbe0;border:1px solid #354b64;border-radius:9px;cursor:pointer;font-weight:700}.ws-outfit-filter.chosen,.ws-outfit-filter:hover{background:#254265;border-color:#7195bf;color:#fff}.ws-outfits-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:16px}.ws-outfit-card{min-width:0;text-align:left;overflow:hidden;background:#111f31;border:1px solid #344a63;border-radius:12px;cursor:pointer;color:#e9f1ff;padding:0;transition:border-color .2s,transform .2s}.ws-outfit-card:hover{border-color:#729ac5;transform:translateY(-2px)}.ws-outfit-cover{aspect-ratio:4/4.4;background:#19293c;display:grid;place-items:center;color:#7e98b4;font-size:11px}.ws-outfit-cover img{width:100%;height:100%;object-fit:cover}.ws-outfit-card-info{padding:13px;display:flex;flex-direction:column;gap:7px}.ws-outfit-card-info small{font-size:11px;color:#93abc5}.ws-outfit-card-info strong{font-size:15px}.ws-outfit-card-info>span{font-size:10px;font-weight:800;color:#9cc5f4}.ws-outfit-empty,.ws-outfit-panel{padding:22px;background:#101d2f;border:1px solid #344a63;border-radius:12px;color:#aebfd3}.ws-outfit-overlay[hidden]{display:none!important}.ws-outfit-overlay{position:fixed;inset:0;background:rgba(3,9,17,.85);z-index:9999;display:grid;place-items:center;padding:18px;overflow:auto}.ws-outfit-dialog{background:#0d1929;border:1px solid #46617e;border-radius:16px;max-width:920px;width:100%;max-height:calc(100vh - 36px);overflow:auto;box-shadow:0 22px 70px #0009}.ws-outfit-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid #2a4059}.ws-outfit-dialog-head small{font-size:10px;color:#8daacb;letter-spacing:2px}.ws-outfit-dialog-head h3{margin:5px 0 0;font-size:21px}.ws-outfit-close{border:1px solid #47627d;border-radius:9px;background:#1c3049;color:#e7f0ff;width:36px;height:36px;font-size:25px;cursor:pointer}.ws-outfit-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px;padding:20px}.ws-outfit-preview{background:#1b2a3d;border:1px solid #344960;border-radius:11px;min-height:300px;display:grid;place-items:center;color:#8da5c0;overflow:hidden}.ws-outfit-preview img{width:100%;height:100%;max-height:67vh;object-fit:contain}.ws-outfit-side{min-width:0}.ws-outfit-desc{font-size:13px;color:#afc3dc;white-space:pre-wrap;margin:0 0 20px}.ws-outfit-texture-title{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #2e445e;padding-bottom:12px;margin-bottom:13px}.ws-outfit-texture-title small{color:#8da9c6}.ws-outfit-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:46vh;overflow-y:auto;padding:2px}.ws-outfit-thumb{background:#17283d;border:2px solid transparent;border-radius:9px;padding:5px;cursor:pointer;color:#b6c8dc;min-width:0}.ws-outfit-thumb.chosen{border-color:#8db7e8;background:#244263}.ws-outfit-thumb img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:5px}.ws-outfit-thumb span{display:block;font-size:10px;padding:6px 0 1px}.ws-outfit-current{font-size:12px;color:#91b5dc;margin-top:15px}.ws-outfit-modal-open{overflow:hidden}.ws-outfit-panel{margin-bottom:16px;color:#e3efff}.ws-outfit-panel h3{margin:0 0 16px}.ws-outfit-panel label{display:block;color:#b9cee6;font-size:12px;font-weight:700;margin-bottom:12px}.ws-outfit-panel input,.ws-outfit-panel select,.ws-outfit-panel textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:11px 12px;border:1px solid #3b526d;border-radius:8px;background:#17273b;color:#f1f6ff;font:inherit;outline:none}.ws-outfit-panel input:focus,.ws-outfit-panel textarea:focus{border-color:#80addf}.ws-outfit-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.ws-outfit-primary,.ws-outfit-danger{background:#2b4d72;color:#f2f7ff;border:1px solid #597da5;border-radius:8px;padding:10px 14px;cursor:pointer;font-weight:700}.ws-outfit-danger{background:#49252c;border-color:#80434d}.ws-outfit-feedback{color:#9ebcda;font-size:12px;min-height:15px}.ws-outfit-admin-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.ws-outfit-admin-top strong{display:block;font-size:17px}.ws-outfit-admin-top small{display:block;margin-top:4px;color:#9ab2cc}.ws-outfit-upload-row{display:flex;align-items:end;gap:15px;flex-wrap:wrap;margin:18px 0}.ws-outfit-upload-row label{flex:1;min-width:200px;margin:0}.ws-outfit-admin-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.ws-outfit-admin-photo{background:#1a2b41;border:1px solid #3a536f;padding:7px;border-radius:9px;text-align:center}.ws-outfit-admin-photo img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px}.ws-outfit-admin-photo span{display:block;font-size:11px;margin:6px 0}.ws-outfit-admin-photo div{display:flex;justify-content:center;gap:4px}.ws-outfit-admin-photo button{background:#2a4563;border:1px solid #537395;color:#fff;border-radius:5px;cursor:pointer;padding:4px 9px}.ws-outfit-admin-photo button:disabled{opacity:.3;cursor:default}@media(max-width:650px){.ws-outfit-detail{grid-template-columns:1fr}.ws-outfit-preview{min-height:210px}.ws-outfit-preview img{max-height:42vh}.ws-outfit-thumbs{max-height:28vh}.ws-outfit-form-grid{grid-template-columns:1fr}.ws-outfits-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ws-outfits-head{padding:18px}.ws-outfit-dialog-head{padding:14px}.ws-outfit-detail{padding:13px}}

.ws-outfit-create-uploads{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px}.ws-outfit-create-hint{font-size:12px;color:#94aecb;margin:0 0 14px}@media(max-width:650px){.ws-outfit-create-uploads{grid-template-columns:1fr}}

/* V3: Foto preview mengikuti ukuran gambar, tanpa ruang kosong atas/bawah. */
.ws-outfit-preview{display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;background:transparent;border:0;border-radius:10px}
.ws-outfit-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:min(67vh,680px);object-fit:contain;border-radius:10px}
/* Scrollbar tipis dan senada dengan tema WILSTORE. */
.ws-outfit-dialog,.ws-outfit-thumbs,.ws-outfit-overlay{scrollbar-width:thin;scrollbar-color:#486481 transparent}
.ws-outfit-dialog::-webkit-scrollbar,.ws-outfit-thumbs::-webkit-scrollbar,.ws-outfit-overlay::-webkit-scrollbar{width:5px;height:5px}
.ws-outfit-dialog::-webkit-scrollbar-track,.ws-outfit-thumbs::-webkit-scrollbar-track,.ws-outfit-overlay::-webkit-scrollbar-track{background:transparent}
.ws-outfit-dialog::-webkit-scrollbar-thumb,.ws-outfit-thumbs::-webkit-scrollbar-thumb,.ws-outfit-overlay::-webkit-scrollbar-thumb{background:#486481;border-radius:12px}
.ws-outfit-dialog::-webkit-scrollbar-thumb:hover,.ws-outfit-thumbs::-webkit-scrollbar-thumb:hover,.ws-outfit-overlay::-webkit-scrollbar-thumb:hover{background:#6f91b5}
@media(max-width:650px){.ws-outfit-preview img{max-height:42vh}}

/* V4: Ukuran panel foto konsisten saat mengganti texture. */
@media (min-width:651px){
  .ws-outfit-preview{position:relative;align-self:start;width:100%;height:auto;aspect-ratio:438 / 496;min-height:0;display:block;overflow:hidden;background:#1b2a3d;border:0;border-radius:10px}
  .ws-outfit-preview img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:10px}
  .ws-outfit-preview>span{position:absolute;inset:0;display:grid;place-items:center}
}

/* V5: konsisten di setiap texture dan tanpa celah navy kiri/kanan. */
@media (min-width:651px){
  .ws-outfit-preview{aspect-ratio:4 / 5}
  .ws-outfit-preview img{object-fit:cover;object-position:center center}
}
@media (max-width:650px){
  .ws-outfit-preview{width:100%;aspect-ratio:4 / 5;position:relative;display:block;background:#1b2a3d}
  .ws-outfit-preview img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center center}
}

/* V7 - single shared site heading, wide catalog, fullscreen preview */
#page-outfits,#page-outfits-admin{width:100%;max-width:none;min-width:0;padding-top:0}
#page-outfits .ws-outfits-gallery{width:100%;grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr))}
#page-outfits .ws-outfits-filters{margin-top:0}
#ws-outfit-modal.ws-outfit-overlay{position:fixed;inset:0;padding:0;overflow:hidden;place-items:stretch}
#ws-outfit-modal .ws-outfit-dialog{width:100%;height:100dvh;max-width:none;max-height:none;border-radius:0;border:0;display:flex;flex-direction:column;overflow:auto}
#ws-outfit-modal .ws-outfit-dialog-head{flex:none}
#ws-outfit-modal .ws-outfit-dialog-body{flex:1;min-height:0}

/* V8: match Our Works filter pills, with consistent separation from header and cards. */
#page-outfits .ws-outfits-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:14px 0 13px!important;padding:0!important}
#page-outfits .ws-outfit-filter{padding:10px 17px;border:1px solid #3c526a;border-radius:999px;background:#112238;color:#b9cee3;cursor:pointer;font-weight:500;line-height:1.2;transition:background .15s,color .15s,border-color .15s}
#page-outfits .ws-outfit-filter.chosen,#page-outfits .ws-outfit-filter:hover{background:#c6d8ed;color:#122339;border-color:#c6d8ed}
#page-outfits .ws-outfits-gallery{margin-top:0}

/* V9 — Align Outfit Bocil footer with Our Works at the bottom of the viewport.
   Keep gallery scrolling inside the page when the collection grows. */
@media (min-width:851px){
  .main:has(#page-outfits:not([hidden])){height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  .main:has(#page-outfits:not([hidden])) #page-outfits{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#486481 transparent;padding-bottom:12px}
  .main:has(#page-outfits:not([hidden])) > footer{flex:0 0 auto;margin-top:auto;padding:8px 2px 0}
  .main:has(#page-outfits-admin:not([hidden])){height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  .main:has(#page-outfits-admin:not([hidden])) #page-outfits-admin{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#486481 transparent;padding-bottom:12px}
  .main:has(#page-outfits-admin:not([hidden])) > footer{flex:0 0 auto;margin-top:auto;padding:8px 2px 0}
}
@media (max-width:850px){
  .main:has(#page-outfits:not([hidden])),.main:has(#page-outfits-admin:not([hidden])){min-height:calc(100dvh - 120px);display:flex;flex-direction:column}
  .main:has(#page-outfits:not([hidden])) > footer,.main:has(#page-outfits-admin:not([hidden])) > footer{margin-top:auto}
}

/* V10: matching spacing on outfit manager, compact editing, category manager */
#page-outfits-admin{padding-top:14px!important}
#ws-outfits-admin-content{display:flex;flex-direction:column;gap:16px}
#ws-outfits-admin-content .ws-outfit-panel{margin:0}
.ws-outfit-cat-tools{display:flex;justify-content:flex-end}
.ws-outfit-pencil{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;background:#1a3049;color:#dce8f8;border:1px solid #3d5976;border-radius:9px;cursor:pointer;font:inherit}
.ws-outfit-pencil:hover{background:#294462}
.ws-outfit-cat-manager{padding:18px 20px;background:#101f32;border:1px solid #344d69;border-radius:12px}
.ws-outfit-cat-manager[hidden]{display:none!important}
#ws-outfit-cat-add{display:flex;gap:10px;margin:14px 0}
#ws-outfit-cat-add input{flex:1;min-width:0;background:#192c44;color:#e8f1ff;border:1px solid #405a76;border-radius:8px;padding:10px}
.ws-outfit-cat-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #2a4059;padding:10px 0}
.ws-outfit-cat-row span{flex:1}
.ws-outfit-cat-row button{background:#223a55;color:#e5f0ff;border:1px solid #42607e;border-radius:7px;padding:5px 11px;cursor:pointer}
.ws-outfit-category-edit{grid-template-columns:1fr!important}
@media(max-width:650px){#ws-outfit-cat-add{flex-wrap:wrap}}

/* V11: pencil beside category selector, Portfolio-style category modal */
.ws-outfit-category-control{display:flex;align-items:flex-end;gap:9px;min-width:0}
.ws-outfit-category-control>label{flex:1;min-width:0}
.ws-outfit-cat-edit-button{height:43px;width:43px;flex:none;display:grid;place-items:center;background:#1c354f;color:#e7f2ff;border:1px solid #486584;border-radius:9px;cursor:pointer}
.ws-outfit-cat-edit-button:hover{background:#2b4b6d}
.ws-outfit-cat-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(1,8,19,.73);backdrop-filter:blur(7px);padding:16px}
.ws-outfit-cat-overlay[hidden]{display:none!important}
.ws-outfit-cat-dialog{width:min(520px,100%);max-height:min(85dvh,750px);overflow:auto;padding:23px;background:#11253b;border:1px solid #3c5875;border-radius:16px;box-shadow:0 25px 80px #0009;color:#e6effd}
.ws-outfit-cat-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}
.ws-outfit-cat-heading small{font-size:10px;letter-spacing:3px;color:#9ab5d2}
.ws-outfit-cat-heading h3{font-size:23px;margin:10px 0 0}
#ws-outfit-cat-close{border:1px solid #496681;background:#233e5a;color:#fff;border-radius:9px;width:36px;height:36px;font-size:24px;cursor:pointer}
#ws-outfit-cat-add{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:8px;margin:0 0 17px}
#ws-outfit-cat-add input,.ws-outfit-cat-row input{width:100%;min-width:0;background:#0c1c2e;color:#e7efff;border:1px solid #41617f;border-radius:8px;padding:11px}
#ws-outfit-cat-add .ws-outfit-primary{background:#c5d9f0;color:#14233a}
.ws-outfit-cat-row{display:grid;grid-template-columns:minmax(0,1fr) 76px 76px;gap:8px;border:0;padding:4px 0}
.ws-outfit-cat-row button{background:#203b56;border:1px solid #486683;color:#e4efff;border-radius:8px;padding:9px 5px;cursor:pointer}
.ws-outfit-cat-row button[data-delete]{color:#ffb0bd}
@media(max-width:480px){#ws-outfit-cat-add{grid-template-columns:minmax(0,1fr) 100px}.ws-outfit-cat-row{grid-template-columns:minmax(0,1fr) 65px 65px}}

/* V12: category pencil aligned precisely to the select input, not its label. */
#page-outfits-admin .ws-outfit-category-control{display:grid;grid-template-columns:minmax(0,1fr) 43px;align-items:start;gap:9px;min-width:0}
#page-outfits-admin .ws-outfit-category-control>label{min-width:0;margin:0}
#page-outfits-admin .ws-outfit-category-control>label select{height:43px;min-height:43px;margin-top:7px}
#page-outfits-admin .ws-outfit-cat-edit-button{box-sizing:border-box;width:43px;height:43px;min-height:43px;margin-top:calc(1em + 7px);padding:0;align-self:start;justify-self:stretch}
/* Keep the admin manager within the available viewport and scroll its full content. */
@media (min-width:851px){
 .main:has(#page-outfits-admin:not([hidden])){height:100dvh;max-height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .main:has(#page-outfits-admin:not([hidden]))>header{flex:0 0 auto}
 .main:has(#page-outfits-admin:not([hidden])) #page-outfits-admin{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:14px 6px 42px 0!important;scrollbar-width:thin;scrollbar-color:#486481 transparent}
 .main:has(#page-outfits-admin:not([hidden]))>footer{flex:0 0 auto;position:relative;z-index:1;background:#07111f}
}
@media(max-width:850px){#page-outfits-admin{overflow:visible;padding-bottom:50px!important}}

/* V13: exact bottom alignment to select (label height independent of font metrics). */
#page-outfits-admin .ws-outfit-category-control{align-items:end!important}
#page-outfits-admin .ws-outfit-category-control>label{display:flex;flex-direction:column;justify-content:flex-end;align-self:stretch;margin:0!important}
#page-outfits-admin .ws-outfit-category-control>label select{box-sizing:border-box;height:43px!important;min-height:43px!important;margin-top:7px!important;margin-bottom:0!important}
#page-outfits-admin .ws-outfit-cat-edit-button{align-self:end!important;margin:0!important;height:43px!important;min-height:43px!important;transform:none!important}
/* Lock both document and nested admin scrolling, while allowing the modal's own list to scroll. */
html.ws-outfit-cat-locked,body.ws-outfit-cat-locked{overflow:hidden!important;overscroll-behavior:none!important}
#page-outfits-admin.ws-outfit-cat-scroll-locked{overflow:hidden!important;overscroll-behavior:none!important}
.ws-outfit-cat-overlay{overscroll-behavior:contain;touch-action:none}
.ws-outfit-cat-dialog{display:flex;flex-direction:column;overflow:hidden!important;max-height:min(85dvh,750px);touch-action:auto}
.ws-outfit-cat-heading,#ws-outfit-cat-add,#ws-outfit-cat-feedback{flex-shrink:0}
#ws-outfit-cat-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#526d8c transparent}

/* V14: restore centered, fixed-size customer outfit detail modal.
   Override V7 fullscreen rules; keep page and admin fullscreen untouched. */
#ws-outfit-modal.ws-outfit-overlay{
  position:fixed;inset:0;display:grid;place-items:center;
  padding:16px;overflow:hidden;background:rgba(3,9,17,.85);
}
#ws-outfit-modal .ws-outfit-dialog{
  width:min(920px,calc(100vw - 32px));max-width:920px;
  height:auto;max-height:calc(100dvh - 32px);
  display:block;overflow:hidden;
  border:1px solid #46617e;border-radius:16px;
}
#ws-outfit-modal .ws-outfit-dialog-body{min-height:0;overflow:hidden}
#ws-outfit-modal .ws-outfit-detail{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:22px;padding:20px;align-items:start;
}
#ws-outfit-modal .ws-outfit-preview{
  width:100%;aspect-ratio:4 / 5;height:auto;min-height:0;
  overflow:hidden;border-radius:10px;
}
#ws-outfit-modal .ws-outfit-preview img{
  width:100%;height:100%;max-width:none;max-height:none;
  object-fit:cover;object-position:center center;
}
#ws-outfit-modal .ws-outfit-thumbs{
  max-height:min(46vh,420px);overflow-y:auto;overscroll-behavior:contain;
}
@media(max-width:650px){
  #ws-outfit-modal .ws-outfit-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
  #ws-outfit-modal .ws-outfit-detail{grid-template-columns:1fr;gap:14px;padding:14px}
  #ws-outfit-modal .ws-outfit-preview{max-height:42vh;aspect-ratio:4 / 5;width:min(100%,330px);margin:auto}
  #ws-outfit-modal .ws-outfit-thumbs{max-height:28vh}
}

/* V15 - category popup is mounted directly under body, so the blur covers sidebar too. */
body > .ws-outfit-cat-overlay{position:fixed!important;inset:0!important;z-index:2147483000!important;background:rgba(2,9,21,.66)!important;-webkit-backdrop-filter:blur(9px)!important;backdrop-filter:blur(9px)!important;isolation:isolate}
body > .ws-outfit-cat-overlay:not([hidden]){animation:wsCatBackdropIn .22s ease-out both}
body > .ws-outfit-cat-overlay:not([hidden]) .ws-outfit-cat-dialog{animation:wsCatDialogIn .24s cubic-bezier(.2,.8,.2,1) both}
@keyframes wsCatBackdropIn{from{opacity:0}to{opacity:1}}
@keyframes wsCatDialogIn{from{opacity:.65;transform:translateY(10px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
.ws-outfit-cat-dialog button{transition:transform .13s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,filter .16s ease;transform-origin:center;user-select:none;-webkit-tap-highlight-color:transparent}
.ws-outfit-cat-dialog button:not(:disabled):hover{filter:brightness(1.14);box-shadow:0 3px 12px rgba(92,151,215,.14)}
.ws-outfit-cat-dialog button:not(:disabled):active{transform:scale(.93);filter:brightness(1.25)}
.ws-outfit-cat-dialog button:focus-visible{outline:2px solid #94c3f4;outline-offset:2px}
@media(prefers-reduced-motion:reduce){body > .ws-outfit-cat-overlay:not([hidden]),body > .ws-outfit-cat-overlay:not([hidden]) .ws-outfit-cat-dialog{animation:none}.ws-outfit-cat-dialog button{transition:none}}

/* V16: stable photo frames while images decode; avoid repainting blank sections. */
#ws-outfit-modal .ws-outfit-preview,#ws-outfit-modal .ws-outfit-thumb{contain:layout paint;}
#ws-outfit-modal .ws-outfit-thumb img{background:#1b2c42;content-visibility:auto;}
#ws-outfit-modal .ws-outfit-preview img{background:#1b2c42;}

/* V17: outfit detail opens with a subtle animation; no overlay-click dismissal. */
#ws-outfit-modal:not([hidden]) .ws-outfit-dialog{animation:wsOutfitDetailEnter .19s cubic-bezier(.2,.8,.2,1) both}
@keyframes wsOutfitDetailEnter{from{opacity:.65;transform:translateY(7px) scale(.992)}to{opacity:1;transform:translateY(0) scale(1)}}
#ws-outfit-modal button{transition:transform .13s ease,background-color .15s ease,border-color .15s ease,filter .15s ease;transform-origin:center;-webkit-tap-highlight-color:transparent}
#ws-outfit-modal button:not(:disabled):hover{filter:brightness(1.10)}
#ws-outfit-modal button:not(:disabled):active{transform:scale(.955)}
#ws-outfit-modal button.ws-outfit-click-feedback{animation:wsOutfitButtonClick .24s ease-out}
@keyframes wsOutfitButtonClick{0%{transform:scale(1)}42%{transform:scale(.94);filter:brightness(1.25)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#ws-outfit-modal:not([hidden]) .ws-outfit-dialog,#ws-outfit-modal button.ws-outfit-click-feedback{animation:none}#ws-outfit-modal button{transition:none}}

/* V18: no outfit name field; category selector uses full form width. */
#ws-outfit-create .ws-outfit-form-grid{grid-template-columns:minmax(0,1fr)!important}
#ws-outfit-create .ws-outfit-category-control{width:100%;min-width:0}
/* Consistent tactile feedback on every outfit page button without moving layouts. */
#page-outfits button,#page-outfits-admin button,.ws-outfit-cat-dialog button{transform-origin:center;transition:filter .14s ease,background-color .14s ease,border-color .14s ease,box-shadow .14s ease;-webkit-tap-highlight-color:transparent}
#page-outfits button:not(:disabled):active,#page-outfits-admin button:not(:disabled):active,.ws-outfit-cat-dialog button:not(:disabled):active{filter:brightness(1.2)}
#page-outfits button.ws-outfit-tap,#page-outfits-admin button.ws-outfit-tap,.ws-outfit-cat-dialog button.ws-outfit-tap{animation:wsOutfitTapV18 .23s ease-out}
@keyframes wsOutfitTapV18{0%{filter:brightness(1);transform:scale(1)}40%{filter:brightness(1.24);transform:scale(.975)}100%{filter:brightness(1);transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#page-outfits button.ws-outfit-tap,#page-outfits-admin button.ws-outfit-tap,.ws-outfit-cat-dialog button.ws-outfit-tap{animation:none}}

/* V20: only the existing outfit cards scroll; the create form stays visible. */
@media (min-width:851px) {
 .main:has(#page-outfits-admin:not([hidden])) #page-outfits-admin {display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-bottom:0!important;}
 #page-outfits-admin #ws-outfits-admin-content {flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden;gap:14px;}
 #page-outfits-admin #ws-outfit-create {flex:0 0 auto;}
 #page-outfits-admin #ws-outfit-admin-list {flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#486481 transparent;padding-bottom:18px;}
 #page-outfits-admin.ws-outfit-cat-scroll-locked #ws-outfit-admin-list {overflow:hidden!important;}
}

/* V22 — catalog: show at most two complete rows (14 items on 7-column desktop),
   with all remaining outfits accessible inside the gallery scrollbar. */
@media (min-width:851px) {
  .main:has(#page-outfits:not([hidden])) #page-outfits {
    display:flex!important; flex-direction:column!important;
    overflow:hidden!important; padding-bottom:0!important;
  }
  #page-outfits .ws-outfits-filters {flex:0 0 auto!important;}
  #page-outfits #ws-outfits-gallery {
    flex:0 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
    align-content:start;overscroll-behavior:contain;
    scrollbar-width:thin;scrollbar-color:#486481 transparent;
    padding-bottom:0!important;
  }
  #page-outfits #ws-outfits-gallery::-webkit-scrollbar{width:5px}
  #page-outfits #ws-outfits-gallery::-webkit-scrollbar-thumb{background:#486481;border-radius:10px}
}

/* V23: prevent a partially visible third row beneath the two-row gallery. */
@media (min-width:851px){
 #page-outfits #ws-outfits-gallery{
  position:relative!important;display:grid!important;
  grid-auto-rows:max-content!important;align-content:start!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  flex-shrink:1!important;min-height:0!important;
  overscroll-behavior-y:contain!important;
 }
 #page-outfits .ws-outfit-card{align-self:start!important;}
}

/* V24 — Fill the remaining space above the pinned footer with exactly two
   complete card rows. Additional cards stay scrollable inside the gallery. */
@media (min-width:851px){
  #page-outfits #ws-outfits-gallery{
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    grid-auto-rows:calc((100% - 16px)/2)!important;
    align-content:start!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  #page-outfits #ws-outfits-gallery>.ws-outfit-card{
    display:flex!important;
    flex-direction:column!important;
    height:100%!important;
    min-height:0!important;
    align-self:stretch!important;
  }
  #page-outfits #ws-outfits-gallery>.ws-outfit-card .ws-outfit-cover{
    flex:1 1 0!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
  }
  #page-outfits #ws-outfits-gallery>.ws-outfit-card .ws-outfit-cover img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  #page-outfits #ws-outfits-gallery>.ws-outfit-card .ws-outfit-card-info{
    flex:0 0 auto!important;
  }
}

/* V25: compact the new-outfit form to give the existing outfits more scroll room. */
@media (min-width:851px){
 #page-outfits-admin #ws-outfit-create{
   padding:16px 20px 14px!important;
   min-height:0!important;height:auto!important;
   flex:0 0 auto!important;
 }
 #page-outfits-admin #ws-outfit-create h3{margin:0 0 10px!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-form-grid{gap:8px!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-uploads{margin-top:8px!important;gap:12px!important;}
 #page-outfits-admin #ws-outfit-create label{margin-bottom:6px!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-hint{margin:4px 0 9px!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-feedback{min-height:0!important;margin:4px 0 0!important;}
 #page-outfits-admin #ws-outfits-admin-content{gap:12px!important;}
 #page-outfits-admin #ws-outfit-admin-list{flex:1 1 0!important;min-height:0!important;}
}

/* V26: category, cover, and textures share one compact horizontal row. */
@media (min-width:851px){
 #page-outfits-admin #ws-outfit-create{
  display:grid!important;
  grid-template-columns:minmax(180px,.75fr) minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:12px!important;row-gap:7px!important;
  align-items:start!important;
 }
 #page-outfits-admin #ws-outfit-create>h3{grid-column:1/-1!important;margin:0 0 5px!important;}
 #page-outfits-admin #ws-outfit-create>.ws-outfit-form-grid,
 #page-outfits-admin #ws-outfit-create>.ws-outfit-create-uploads{display:contents!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-category-control{grid-column:1!important;min-width:0!important;align-self:start!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-uploads>label:first-child{grid-column:2!important;min-width:0!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-uploads>label:last-child{grid-column:3!important;min-width:0!important;}
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-hint{grid-column:1/-1!important;margin:0!important;}
 #page-outfits-admin #ws-outfit-create>button[type="submit"]{grid-column:1!important;justify-self:start!important;}
 #page-outfits-admin #ws-outfit-create>.ws-outfit-feedback{grid-column:2/-1!important;align-self:center!important;}
}

/* V27 — pencil sits next to the texture upload, with the category input unobstructed. */
@media (min-width:851px){
 #page-outfits-admin #ws-outfit-create{
  grid-template-columns:minmax(180px,.75fr) minmax(0,1fr) minmax(0,1fr) 43px!important;
  column-gap:12px!important;
 }
 #page-outfits-admin #ws-outfit-create .ws-outfit-category-control{
  display:block!important;grid-column:1!important;
 }
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-uploads>label:last-child{grid-column:3!important;}
 #page-outfits-admin #ws-outfit-create>.ws-outfit-cat-edit-button{
  grid-column:4!important;grid-row:2!important;
  margin:0 0 6px!important;align-self:end!important;justify-self:end!important;
  width:43px!important;height:43px!important;min-height:43px!important;
 }
 #page-outfits-admin #ws-outfit-create .ws-outfit-create-hint{grid-column:1/-1!important;}
 #page-outfits-admin #ws-outfit-create>.ws-outfit-feedback{grid-column:2/-1!important;}
 /* Add a visible breathing space between individual outfit editor cards. */
 #page-outfits-admin #ws-outfit-admin-list>.ws-outfit-panel{margin-bottom:18px!important;}
 #page-outfits-admin #ws-outfit-admin-list>.ws-outfit-panel:last-child{margin-bottom:20px!important;}
}
@media (max-width:850px){
 #page-outfits-admin #ws-outfit-create>.ws-outfit-cat-edit-button{margin:0 0 10px 0!important;}
 #page-outfits-admin #ws-outfit-admin-list>.ws-outfit-panel{margin-bottom:16px!important;}
}

/* V28 — Empty category: centered message only, no tall card/background. */
#page-outfits #ws-outfits-gallery.ws-outfits-gallery-empty{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:0!important;
}
#page-outfits #ws-outfits-gallery.ws-outfits-gallery-empty>.ws-outfit-empty{
  display:block!important;flex:none!important;align-self:auto!important;
  width:auto!important;height:auto!important;min-height:0!important;max-width:100%!important;
  margin:0!important;padding:12px 18px!important;box-sizing:border-box!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  color:#aebfd3!important;text-align:center!important;line-height:1.5!important;
}

/* V30: keep upload input and button on the same row, matching category field height. */
#ws-outfit-admin-list .ws-outfit-upload-row{
  display:flex;
  flex-direction:row;
  align-items:flex-end;
  flex-wrap:nowrap;
  gap:15px;
}
#ws-outfit-admin-list .ws-outfit-upload-row > label{
  flex:1 1 auto;
  width:auto;
  min-width:0;
  margin:0;
}
#ws-outfit-admin-list .ws-outfit-upload-row > label > input[type="file"]{
  display:block;
  width:100%;
  height:43px;
  box-sizing:border-box;
}
#ws-outfit-admin-list .ws-outfit-upload-row > button[data-action="upload"]{
  flex:0 0 auto;
  align-self:flex-end;
  height:43px;
  box-sizing:border-box;
}
@media(max-width:650px){
  #ws-outfit-admin-list .ws-outfit-upload-row{flex-wrap:wrap;}
}

/* V31: remove unused space below the last texture row in each outfit editor.
   Feedback is shown only when it has a message; keep card-to-card spacing. */
#page-outfits-admin #ws-outfit-admin-list > .ws-outfit-admin-card{
  padding-bottom:12px!important;
  height:auto!important;min-height:0!important;
}
#page-outfits-admin #ws-outfit-admin-list > .ws-outfit-admin-card > .ws-outfit-feedback:empty{
  display:none!important;min-height:0!important;margin:0!important;padding:0!important;
}
#page-outfits-admin #ws-outfit-admin-list > .ws-outfit-admin-card > .ws-outfit-feedback:not(:empty){
  margin:10px 0 0!important;min-height:0!important;
}
#page-outfits-admin #ws-outfit-admin-list > .ws-outfit-admin-card > .ws-outfit-admin-photos{
  margin-bottom:0!important;
}

/* V32: the texture scroller ends after three COMPLETE rows, not halfway
   through row three. Its exact height is calculated from the actual cards. */
@media (min-width:651px){
 #ws-outfit-modal .ws-outfit-thumbs{
   max-height:none;
   overflow-y:auto;
   overflow-x:hidden;
   align-content:start;
   grid-auto-rows:max-content;
   overscroll-behavior:contain;
 }
 #ws-outfit-modal .ws-outfit-thumb{align-self:start;}
}


/* V37 — PHONE ONLY. Desktop CSS is byte-for-byte the V33 baseline above. */
@media screen and (max-width:650px){
  /* Mobile catalog: compact two-column cards and horizontally swipeable filters. */
  #page-outfits .ws-outfits-head{padding:15px 16px!important;margin-bottom:12px!important;border-radius:12px!important;}
  #page-outfits .ws-outfits-head h2{font-size:clamp(24px,7vw,34px)!important;line-height:1.08!important;}
  #page-outfits .ws-outfits-filters{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain;gap:7px!important;padding:2px 1px 8px!important;margin-bottom:10px!important;scrollbar-width:none;}
  #page-outfits .ws-outfits-filters::-webkit-scrollbar{display:none;}
  #page-outfits .ws-outfit-filter{flex:0 0 auto!important;white-space:nowrap;padding:9px 12px!important;border-radius:999px!important;}
  #page-outfits #ws-outfits-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;}
  #page-outfits .ws-outfit-card{width:100%!important;min-width:0!important;}
  #page-outfits .ws-outfit-card-info{padding:9px!important;gap:4px!important;}
  #page-outfits .ws-outfit-card-info small{font-size:10px!important;}
  #page-outfits .ws-outfit-card-info>span{font-size:10px!important;}
  #page-outfits .ws-outfit-empty{grid-column:1/-1;text-align:center;padding:20px 12px!important;background:none!important;border:0!important;}

  /* Fixed-screen gallery: the preview never scrolls with the textures. */
  #ws-outfit-modal:not([hidden]){position:fixed!important;inset:0!important;z-index:2147482000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px!important;padding-top:max(8px,env(safe-area-inset-top))!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important;overflow:hidden!important;box-sizing:border-box!important;background:rgba(2,8,19,.82)!important;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);}
  #ws-outfit-modal .ws-outfit-dialog{width:100%!important;max-width:480px!important;height:100%!important;max-height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:13px!important;box-sizing:border-box!important;}
  #ws-outfit-modal .ws-outfit-dialog-head{flex:0 0 auto!important;padding:12px 14px!important;gap:12px!important;min-height:58px!important;box-sizing:border-box!important;}
  #ws-outfit-modal .ws-outfit-dialog-head h3{font-size:17px!important;line-height:1.2!important;margin-top:3px!important;}
  #ws-outfit-modal .ws-outfit-dialog-head small{font-size:9px!important;letter-spacing:1.2px!important;}
  #ws-outfit-modal .ws-outfit-close{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;margin:0!important;line-height:1!important;font-family:Arial,sans-serif!important;font-size:25px!important;font-weight:400!important;text-align:center!important;}
  #ws-outfit-modal .ws-outfit-detail{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:10px!important;padding:10px 12px 12px!important;overflow:hidden!important;box-sizing:border-box!important;}
  #ws-outfit-modal .ws-outfit-preview{flex:0 1 auto!important;align-self:center!important;position:relative!important;display:block!important;width:auto!important;max-width:100%!important;height:min(38dvh,350px)!important;max-height:min(38dvh,350px)!important;aspect-ratio:4/5!important;min-height:0!important;margin:0 auto!important;overflow:hidden!important;border-radius:9px!important;}
  #ws-outfit-modal .ws-outfit-preview img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;}
  #ws-outfit-modal .ws-outfit-side{display:flex!important;flex:1 1 0!important;min-height:0!important;flex-direction:column!important;overflow:hidden!important;}
  #ws-outfit-modal .ws-outfit-desc{flex:0 0 auto!important;margin:0 0 8px!important;font-size:11px!important;line-height:1.3!important;}
  #ws-outfit-modal .ws-outfit-texture-title{flex:0 0 auto!important;margin-bottom:8px!important;padding-bottom:8px!important;font-size:13px!important;}
  #ws-outfit-modal .ws-outfit-thumbs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:max-content!important;align-content:start!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;gap:7px!important;padding:1px 2px 6px!important;}
  #ws-outfit-modal .ws-outfit-thumb{align-self:start!important;padding:4px!important;border-radius:8px!important;}
  #ws-outfit-modal .ws-outfit-thumb img{width:100%!important;height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;}
  #ws-outfit-modal .ws-outfit-thumb span{font-size:9px!important;padding:4px 0 0!important;}
  #ws-outfit-modal .ws-outfit-current{flex:0 0 auto!important;margin:6px 0 0!important;font-size:10px!important;}
  body.ws-outfit-modal-open{overflow:hidden!important;}

  /* Outfit management: keep all controls within phone width. */
  #page-outfits-admin #ws-outfit-create{height:auto!important;min-height:0!important;padding:14px!important;}
  #page-outfits-admin #ws-outfit-create .ws-outfit-form-grid,
  #page-outfits-admin #ws-outfit-create .ws-outfit-create-uploads{grid-template-columns:minmax(0,1fr)!important;}
  #page-outfits-admin .ws-outfit-panel{min-width:0!important;}
  #page-outfits-admin input[type=file],#page-outfits-admin select{max-width:100%!important;}
  #ws-outfit-cat-manager .ws-outfit-cat-dialog{width:calc(100vw - 24px)!important;max-width:480px!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;box-sizing:border-box!important;}
}
@media screen and (max-width:650px) and (max-height:640px){
  #ws-outfit-modal .ws-outfit-preview{height:min(28dvh,220px)!important;max-height:min(28dvh,220px)!important;}
}

/* V38 MOBILE ONLY: the backdrop/page never moves; only texture grid scrolls. */
@media screen and (max-width:650px){
 html:has(body.ws-outfit-modal-open){overscroll-behavior:none!important;}
 body.ws-outfit-modal-open{overscroll-behavior:none!important;touch-action:none!important;}
 #ws-outfit-modal:not([hidden]){touch-action:none!important;overscroll-behavior:none!important;}
 #ws-outfit-modal .ws-outfit-dialog,
 #ws-outfit-modal .ws-outfit-detail,
 #ws-outfit-modal .ws-outfit-preview,
 #ws-outfit-modal .ws-outfit-side{touch-action:none!important;}
 #ws-outfit-modal .ws-outfit-thumbs{
   touch-action:pan-y!important;
   overscroll-behavior-y:contain!important;
   -webkit-overflow-scrolling:touch!important;
 }
 #ws-outfit-modal .ws-outfit-thumb{touch-action:pan-y!important;}
}

/* V44 — MOBILE ONLY. Full-width primary image within the outlined preview area.
   Keep the original aspect ratio, avoid cropping, and retain texture-only scrolling. */
@media screen and (max-width:650px){
 #ws-outfit-modal .ws-outfit-preview{
   flex:0 0 auto!important;
   align-self:stretch!important;
   width:100%!important;
   max-width:100%!important;
   height:auto!important;
   max-height:min(47dvh,430px)!important;
   aspect-ratio:4/5!important;
   margin:0!important;
   border-radius:9px!important;
   overflow:hidden!important;
 }
 #ws-outfit-modal .ws-outfit-preview img{
   width:100%!important;height:100%!important;
   object-fit:contain!important;object-position:center!important;
 }
 #ws-outfit-modal .ws-outfit-side{flex:1 1 0!important;min-height:0!important;}
 #ws-outfit-modal .ws-outfit-thumbs{min-height:0!important;overflow-y:auto!important;}
}
@media screen and (max-width:650px) and (max-height:640px){
 #ws-outfit-modal .ws-outfit-preview{max-height:42dvh!important;}
}

/* V45 — PHONE ONLY: fill the preview with no side bars, show exactly two
   full thumbnail rows and scroll further textures inside their own panel. */
@media screen and (max-width:650px){
 #ws-outfit-modal .ws-outfit-preview{
   flex:0 0 auto!important;
   width:100%!important;
   max-width:100%!important;
   height:min(40dvh,360px)!important;
   max-height:min(40dvh,360px)!important;
   aspect-ratio:auto!important;
   background:#0b1829!important;
 }
 #ws-outfit-modal .ws-outfit-preview img{
   width:100%!important;height:100%!important;
   object-fit:cover!important;object-position:center center!important;
 }
 #ws-outfit-modal .ws-outfit-side{flex:1 1 0!important;min-height:0!important;}
 #ws-outfit-modal .ws-outfit-thumbs{
   flex:1 1 0!important;min-height:0!important;
   max-height:calc(2 * ((min(100vw, 480px) - 58px) / 3 + 24px) + 7px)!important;
   overflow-y:auto!important;overflow-x:hidden!important;
   align-content:start!important;overscroll-behavior-y:contain!important;
 }
}
@media screen and (max-width:650px) and (max-height:640px){
 #ws-outfit-modal .ws-outfit-preview{height:32dvh!important;max-height:32dvh!important;}
}

/* V47 — phone-only: show the complete main photo, with photo-derived fill
   instead of blank sidebars; desktop and two-row texture scroller unchanged. */
@media screen and (max-width:650px){
 #ws-outfit-modal .ws-outfit-preview{isolation:isolate!important;background:#16263a!important;}
 #ws-outfit-modal .ws-outfit-preview::before{content:"";position:absolute;inset:-14px;z-index:0;background-image:var(--ws-preview-image);background-size:cover;background-position:center;filter:blur(15px) brightness(.55);pointer-events:none;}
 #ws-outfit-modal .ws-outfit-preview img{position:relative!important;z-index:1!important;object-fit:contain!important;object-position:center center!important;}
}

/* V48 — HP only: blurred version of the selected texture fills both sidebars.
   Foreground stays fully visible, and the desktop layout is untouched. */
@media screen and (max-width:650px){
  #ws-outfit-modal .ws-outfit-preview{
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
    background:#16263a!important;
  }
  #ws-outfit-modal .ws-outfit-preview::before{
    content:""!important;
    position:absolute!important;
    inset:-22px!important;
    z-index:0!important;
    background-image:var(--ws-preview-image)!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    filter:blur(19px) brightness(.73)!important;
    transform:scale(1.05)!important;
    pointer-events:none!important;
  }
  #ws-outfit-modal .ws-outfit-preview > img{
    position:absolute!important;
    inset:0!important;
    z-index:1!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    background:transparent!important;
  }
}

/* Fix: keep a real viewport for one-item categories (e.g. Kostum Female).
   The existing two-row grid and card appearance remain unchanged. */
@media (min-width:851px){
  #page-outfits #ws-outfits-gallery{
    flex:1 1 0!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    grid-auto-rows:calc((100% - 16px)/2)!important;
  }
}
