/* WHERING 4.5.1 — composição visual compacta dos looks.
   Objetivo: o look inteiro deve caber no card; peças principais mantêm escala útil;
   acessórios ocupam as laterais sem roubar altura da composição. */

/* Banco de reserva: impede cards de esticarem até a altura do maior item da linha. */
.saved-bank-grid{
  align-items:start!important;
  grid-auto-rows:max-content!important;
  gap:12px!important;
}
.saved-look-card{
  grid-template-rows:auto auto auto!important;
  align-self:start!important;
  height:auto!important;
}
.saved-look-card-head{
  padding:7px 9px 5px!important;
}
.saved-look-card-title strong{
  font-size:9.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
.saved-look-card-title small{
  font-size:7px!important;
  margin-top:1px!important;
}
.saved-look-status{
  font-size:7px!important;
  padding:3px 6px!important;
}

/* Canvas de look: altura fixa e composição levemente sobreposta.
   Isso elimina os grandes vazios verticais sem colar as peças. */
.saved-stage{
  position:relative!important;
  display:block!important;
  height:360px!important;
  min-height:360px!important;
  margin:0 8px!important;
  padding:0!important;
  overflow:hidden!important;
}
.saved-stage.has-optionals{
  display:block!important;
  grid-template-columns:none!important;
}
.saved-stage-main{
  position:absolute!important;
  left:12%!important;
  right:12%!important;
  min-width:0!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.saved-stage-top{
  top:1%!important;
  height:34%!important;
}
.saved-stage-bottom{
  top:29%!important;
  height:49%!important;
}
.saved-stage-footwear{
  bottom:1%!important;
  height:25%!important;
}
.saved-stage-top-pair{
  width:100%!important;
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0!important;
  overflow:visible!important;
}
.saved-stage-top.two .saved-stage-top-pair{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  padding:0!important;
}
.saved-stage img{
  object-fit:contain!important;
}
.saved-stage-top img{
  max-width:190px!important;
  max-height:120px!important;
}
.saved-stage-top.two img{
  max-width:135px!important;
  max-height:112px!important;
}
.saved-stage-bottom img{
  max-width:190px!important;
  max-height:176px!important;
}
.saved-stage-bottom.is-short img{
  max-width:170px!important;
  max-height:145px!important;
}
.saved-stage-footwear img{
  max-width:190px!important;
  max-height:92px!important;
}
.saved-stage-code{
  bottom:-1px!important;
  font-size:6px!important;
  opacity:.62!important;
}

/* Opcionais gerais ficam numa doca lateral e NÃO comprimem top/bottom/calçado. */
.saved-stage-optionals{
  position:absolute!important;
  z-index:8!important;
  right:7px!important;
  top:42%!important;
  transform:translateY(-50%)!important;
  width:72px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:0!important;
}
.saved-stage-optional{
  width:70px!important;
  height:68px!important;
  min-height:68px!important;
  padding:4px!important;
  flex:0 0 68px!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.93)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.045)!important;
}
.saved-stage-optional img{
  max-width:58px!important;
  max-height:56px!important;
}

/* Meias e relógios voltam a ter leitura visual real. */
.saved-stage-socks,
.saved-stage-watch{
  z-index:9!important;
  width:70px!important;
  height:72px!important;
  border-radius:10px!important;
  padding:4px!important;
  background:rgba(255,255,255,.95)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.05)!important;
}
.saved-stage-socks{
  left:7px!important;
  bottom:7px!important;
}
.saved-stage-watch{
  right:7px!important;
  bottom:7px!important;
}
.saved-stage-socks img,
.saved-stage-watch img{
  max-width:53px!important;
  max-height:52px!important;
}
.saved-stage-socks span,
.saved-stage-watch span{
  font-size:5.8px!important;
  bottom:2px!important;
}

.saved-look-card-foot{
  padding:6px 9px 9px!important;
}
.saved-look-codes-full{
  margin-bottom:5px!important;
  font-size:6.7px!important;
}

/* Trocar look: todos os cards têm exatamente a mesma geometria. */
.wear-swap-dialog{
  width:min(1240px,calc(100vw - 24px))!important;
  max-height:94vh!important;
}
.wear-swap-shell{
  max-height:94vh!important;
  padding:16px!important;
}
.wear-swap-head h3{
  font-size:19px!important;
}
.wear-swap-head p{
  font-size:11px!important;
}
.wear-swap-search{
  margin-bottom:10px!important;
}
.wear-swap-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start!important;
  grid-auto-rows:max-content!important;
  gap:10px!important;
  overflow:auto!important;
  padding:2px 5px 5px 0!important;
}
.wear-swap-card.wear-swap-card-visual{
  display:grid!important;
  grid-template-rows:310px 42px 38px!important;
  height:406px!important;
  min-height:406px!important;
  gap:5px!important;
  align-items:stretch!important;
  padding:8px!important;
  border-radius:13px!important;
  background:#fbfcfa!important;
  overflow:hidden!important;
}
.wear-swap-card .saved-stage{
  width:100%!important;
  height:310px!important;
  min-height:310px!important;
  margin:0!important;
  border-radius:10px!important;
}
.wear-swap-card .saved-stage-main{
  left:10%!important;
  right:10%!important;
}
.wear-swap-card .saved-stage-top img{
  max-width:160px!important;
  max-height:103px!important;
}
.wear-swap-card .saved-stage-top.two img{
  max-width:110px!important;
  max-height:96px!important;
}
.wear-swap-card .saved-stage-bottom img{
  max-width:165px!important;
  max-height:150px!important;
}
.wear-swap-card .saved-stage-bottom.is-short img{
  max-width:145px!important;
  max-height:125px!important;
}
.wear-swap-card .saved-stage-footwear img{
  max-width:160px!important;
  max-height:78px!important;
}
.wear-swap-card .saved-stage-optionals{
  width:60px!important;
  right:5px!important;
  gap:4px!important;
}
.wear-swap-card .saved-stage-optional{
  width:58px!important;
  height:57px!important;
  min-height:57px!important;
  flex-basis:57px!important;
  padding:3px!important;
}
.wear-swap-card .saved-stage-optional img{
  max-width:48px!important;
  max-height:47px!important;
}
.wear-swap-card .saved-stage-socks,
.wear-swap-card .saved-stage-watch{
  width:58px!important;
  height:60px!important;
  padding:3px!important;
}
.wear-swap-card .saved-stage-socks{
  left:5px!important;
  bottom:5px!important;
}
.wear-swap-card .saved-stage-watch{
  right:5px!important;
  bottom:5px!important;
}
.wear-swap-card .saved-stage-socks img,
.wear-swap-card .saved-stage-watch img{
  max-width:44px!important;
  max-height:43px!important;
}
.wear-swap-card-main{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:2px!important;
  padding:0 2px!important;
  overflow:hidden!important;
}
.wear-swap-card-main strong{
  font-size:9.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.wear-swap-card-main small{
  font-size:6.5px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.wear-swap-card>button{
  align-self:end!important;
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:10px!important;
  line-height:1!important;
}

@media(max-width:1050px){
  .wear-swap-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:760px){
  .saved-stage{height:330px!important;min-height:330px!important}
  .saved-stage-top img{max-width:170px!important;max-height:108px!important}
  .saved-stage-bottom img{max-width:175px!important;max-height:160px!important}
  .saved-stage-footwear img{max-width:170px!important;max-height:84px!important}
  .saved-stage-optionals{width:62px!important}
  .saved-stage-optional{width:60px!important;height:59px!important;min-height:59px!important;flex-basis:59px!important}
  .saved-stage-optional img{max-width:50px!important;max-height:48px!important}
  .saved-stage-socks,.saved-stage-watch{width:61px!important;height:63px!important}

  .wear-swap-dialog{width:calc(100vw - 10px)!important;max-height:96vh!important}
  .wear-swap-shell{max-height:96vh!important;padding:11px!important}
  .wear-swap-grid{grid-template-columns:1fr!important;gap:8px!important}
  .wear-swap-card.wear-swap-card-visual{
    grid-template-rows:300px 38px 38px!important;
    height:392px!important;
    min-height:392px!important;
  }
  .wear-swap-card .saved-stage{height:300px!important;min-height:300px!important}
}
