/* Watch Collection 1.0.0-0080
   Correctif ciblé :
   - onglet Montres uniquement : vignettes portrait fixes et légèrement agrandies ;
   - Présentation : titre limité à deux lignes et zone média figée afin que les flèches
     ne se déplacent jamais lorsqu'un nom de montre est très long.
   Aucun autre écran n'est modifié. */

:root{
  --wc80-list-photo-w:76px;
  --wc80-list-photo-h:116px;
  --wc80-list-row-h:132px;
}

/* ===== ONGLET MONTRES UNIQUEMENT ===== */
#view-list .watch-table tbody tr{
  height:var(--wc80-list-row-h)!important;
  min-height:var(--wc80-list-row-h)!important;
}
#view-list .watch-table td{
  vertical-align:middle!important;
}
#view-list .watch-table th:nth-child(2),
#view-list .watch-table td:nth-child(2){
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  text-align:center!important;
}
#view-list .table-photos{
  width:100%!important;
  min-width:0!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  overflow:visible!important;
}
#view-list .mini-photo-button,
#view-list .mini-photo,
#view-list .mini-empty{
  width:var(--wc80-list-photo-w)!important;
  min-width:var(--wc80-list-photo-w)!important;
  max-width:var(--wc80-list-photo-w)!important;
  height:var(--wc80-list-photo-h)!important;
  min-height:var(--wc80-list-photo-h)!important;
  max-height:var(--wc80-list-photo-h)!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
}
#view-list .mini-photo-button{
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:#f3f3f1!important;
}
#view-list .mini-photo{
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  background:#f3f3f1!important;
}
#view-list .mini-empty{
  display:grid!important;
  place-items:center!important;
  font-size:.72rem!important;
  line-height:1.1!important;
}
#view-list .mini-photo-more{
  min-width:38px!important;
  width:38px!important;
  height:var(--wc80-list-photo-h)!important;
  border-radius:10px!important;
}

/* Tablette : portrait conservé, dimensions adaptées. */
@media(max-width:1100px){
  :root{
    --wc80-list-photo-w:68px;
    --wc80-list-photo-h:104px;
    --wc80-list-row-h:120px;
  }
  #view-list .watch-table th:nth-child(2),
  #view-list .watch-table td:nth-child(2){
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
  }
}

/* Smartphone : la photo reste verticale et ne passe jamais en paysage. */
@media(max-width:640px){
  :root{
    --wc80-list-photo-w:62px;
    --wc80-list-photo-h:94px;
    --wc80-list-row-h:110px;
  }
  #view-list .watch-table th:nth-child(2),
  #view-list .watch-table td:nth-child(2){
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
  }
}

/* ===== PRÉSENTATION : TITRE LONG SANS DÉCALAGE DES FLÈCHES ===== */
#view-presentation .luxury-feature-grid>.featured-watch-panel .v0039-featured-media{
  height:calc(var(--wc79-featured-photo-h) + 46px)!important;
  min-height:calc(var(--wc79-featured-photo-h) + 46px)!important;
  max-height:calc(var(--wc79-featured-photo-h) + 46px)!important;
  align-self:start!important;
}
#view-presentation .luxury-feature-grid>.featured-watch-panel .featured-watch-copy{
  justify-content:flex-start!important;
  padding-top:clamp(22px,4vh,62px)!important;
}
#view-presentation .luxury-feature-grid>.featured-watch-panel .featured-watch-copy h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
  min-height:2.08em!important;
  max-height:2.08em!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

@media(max-width:1100px){
  #view-presentation .luxury-feature-grid>.featured-watch-panel .v0039-featured-media{
    height:calc(var(--wc79-featured-photo-h) + 46px)!important;
    min-height:calc(var(--wc79-featured-photo-h) + 46px)!important;
    max-height:calc(var(--wc79-featured-photo-h) + 46px)!important;
  }
  #view-presentation .luxury-feature-grid>.featured-watch-panel .featured-watch-copy{
    padding-top:10px!important;
  }
}

@media(max-width:640px){
  #view-presentation .luxury-feature-grid>.featured-watch-panel .v0039-featured-media{
    height:calc(var(--wc79-featured-photo-h) + 42px)!important;
    min-height:calc(var(--wc79-featured-photo-h) + 42px)!important;
    max-height:calc(var(--wc79-featured-photo-h) + 42px)!important;
  }
  #view-presentation .luxury-feature-grid>.featured-watch-panel .featured-watch-copy h3{
    min-height:2.08em!important;
    max-height:2.08em!important;
  }
}
