/* WinMax4 V4.10 | Cartões alinhados e mais compactos.
   Aplicável às grelhas das páginas comerciais; não altera heroes ou formulários. */
body.wmv3 .wm48-gallery-section { padding-block:32px!important; }
body.wmv3 .wm48-gallery-section .retail-fit-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  grid-auto-rows:minmax(max-content,1fr)!important;
  gap:14px!important;
  margin-top:24px!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card {
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  align-self:stretch!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e4e8ee!important;
  border-radius:18px!important;
  box-shadow:0 8px 22px rgba(18,37,60,.06)!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > img {
  display:block!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:100%!important;
  height:170px!important;
  aspect-ratio:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center 38%!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body {
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-width:0!important;
  gap:0!important;
  padding:14px 16px 16px!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body small {
  display:block!important;
  font-size:.68rem!important;
  line-height:1.35!important;
  letter-spacing:.09em!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body h3 {
  margin:6px 0 6px!important;
  font-size:1.08rem!important;
  line-height:1.2!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body p {
  margin:0!important;
  font-size:.82rem!important;
  line-height:1.48!important;
}
/* Six-card grids (pricing and broader solutions) are balanced in two rows of three. */
@media(min-width:901px) {
  body.wmv3 .wm48-gallery-section .retail-fit-grid:has(> :nth-child(6)) {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:900px) {
  body.wmv3 .wm48-gallery-section .retail-fit-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:13px!important;
  }
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > img {height:180px!important;}
}
@media(max-width:620px) {
  body.wmv3 .wm48-gallery-section {padding-block:26px!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin-top:17px!important;
  }
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card {border-radius:14px!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > img {height:120px!important;object-position:center 35%!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body {padding:10px 11px 12px!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body small {font-size:.62rem!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body h3 {font-size:.92rem!important;margin:5px 0!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body p {font-size:.74rem!important;line-height:1.35!important;}
}
@media(max-width:340px) {
  body.wmv3 .wm48-gallery-section .retail-fit-grid {grid-template-columns:1fr!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > img {height:160px!important;}
}

/* V4.9: o conjunto inteiro mantém a mesma altura, inclusive entre linhas.
   O texto não é truncado: a maior descrição define a altura comum. */
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card{box-sizing:border-box!important;}
body.wmv3 .wm48-gallery-section .retail-fit-body p{overflow-wrap:break-word;}


/* WinMax4 V4.10 — alinhamento estrutural transversal (PT / EN / ES).
   Grelhas partilham fotografia, etiqueta, título e descrição na mesma posição.
   Não se ocultam descrições, não se usa line-clamp ou texto artificial. */
body.wmv3 .wm48-gallery-section .retail-fit-grid {
  grid-auto-rows:1fr!important;
  align-items:stretch!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card {
  --wm10-img:156px;
  --wm10-label:15px;
  --wm10-title:42px;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:var(--wm10-img) minmax(0,1fr)!important;
  align-items:stretch!important;
  min-height:0!important;
  height:100%!important;
  box-sizing:border-box!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > img {
  width:100%!important;
  height:var(--wm10-img)!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 36%!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(var(--wm10-label),auto) minmax(var(--wm10-title),auto) minmax(0,1fr)!important;
  align-content:start!important;
  align-items:start!important;
  row-gap:3px!important;
  height:100%!important;
  padding:11px 14px 13px!important;
  box-sizing:border-box!important;
}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body small,
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body h3,
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body p {
  display:block!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  overflow-wrap:break-word!important;
  hyphens:auto;
}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body small {font-size:.66rem!important;line-height:1.3!important;}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body h3 {font-size:1.03rem!important;line-height:1.21!important;letter-spacing:-.025em!important;}
body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body p {font-size:.8rem!important;line-height:1.4!important;align-self:start!important;}
@media (min-width:621px) and (max-width:900px){
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card {--wm10-img:158px;--wm10-label:16px;--wm10-title:42px;}
}
@media (max-width:620px){
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card {--wm10-img:110px;--wm10-label:15px;--wm10-title:37px;}
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card > .retail-fit-body {padding:9px 10px 11px!important;row-gap:3px!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body small {font-size:.61rem!important;line-height:1.25!important;letter-spacing:.065em!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body h3 {font-size:.88rem!important;line-height:1.2!important;letter-spacing:-.018em!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-card .retail-fit-body p {font-size:.71rem!important;line-height:1.33!important;}
}
@media (max-width:340px){
  /* 1 coluna: altura natural para não criar scroll desnecessário. */
  body.wmv3 .wm48-gallery-section .retail-fit-grid {grid-auto-rows:auto!important;}
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card {--wm10-img:150px;--wm10-title:26px;--wm10-label:14px;}
}

/* Home — cartões fotográficos dos setores (todas as versões de idioma).
   Separar o nome do setor e a descrição em linhas coerentes. */
body.wmv3 .wm38-sector-section .wm38-photo-grid {
  grid-auto-rows:1fr!important;
  align-items:stretch!important;
}
body.wmv3 .wm38-sector-section .wm38-photo-grid > .wm38-photo-card {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  align-items:stretch!important;
  height:100%!important;
}
body.wmv3 .wm38-sector-section .wm38-photo-grid .wm38-card-copy {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(2.45em,auto) minmax(0,1fr)!important;
  align-content:start!important;
  align-items:start!important;
  row-gap:4px!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.wmv3 .wm38-sector-section .wm38-card-copy strong,
body.wmv3 .wm38-sector-section .wm38-card-copy small {
  display:block!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  overflow-wrap:break-word!important;
}
@media (max-width:740px){
  body.wmv3 .wm38-sector-section .wm38-photo-grid .wm38-card-copy {grid-template-rows:minmax(3.35em,auto) minmax(0,1fr)!important;}
}
@media (max-width:355px){
  body.wmv3 .wm38-sector-section .wm38-photo-grid{grid-auto-rows:auto!important;}
  body.wmv3 .wm38-sector-section .wm38-photo-grid .wm38-card-copy{grid-template-rows:auto auto!important;}
}

/* V4.11: remove unnecessary vertical space while retaining aligned content. */
@media (min-width:621px){
  body.wmv3 .wm48-gallery-section .retail-fit-grid > .retail-fit-card{--wm10-title:25px!important;}
}
@media (max-width:620px) and (min-width:341px){
  body.wmv3 .wm48-gallery-section .retail-fit-grid.wm11-short-title-grid > .retail-fit-card{--wm10-title:23px!important;}
}
