/* ============================================================
   RS2EYEWEAR — Page catégorie / collection
   Pleine largeur, grille aérée, cartes produit homogènes.
   ============================================================ */

/* ---------- 1. Mise en page : on récupère la largeur ---------- */
body#category #left-column{ display: none; }
body#category #center-column{
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}
body#category .breadcrumb__wrapper{
  border-bottom: 1px solid rgba(255,255,255,.06);
}

body#category #main{
  padding-top: 0;
}

body#category .rs2-commerce{
  padding-top: 1.5rem;
}

/* ---------- 2. En-tête de collection ---------- */
body#category #js-product-list-header{
  margin-bottom: 40px;
}
body#category .category__header{
  border-radius: 22px;
}
body#category .category__header h1,
body#category #js-product-list-header h1{
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

/* ---------- 3. Grille produits ---------- */
body#category .rs2-products{ margin-bottom: 56px; }
body#category .products{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
body#category .product-miniature{
  height: 100%;
}
body#category .product-miniature__inner{
  background: var(--rs2-card) !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0 !important;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body#category .product-miniature:hover .product-miniature__inner{
  transform: none;
}

/* Panneau visuel — commerce.css impose des hauteurs fixes, on les reprend ici */
body#category .rs2-product-card .product-miniature__top{
  border-radius: 0 !important;
  min-height: 250px !important;
  height: 250px !important;
  width: 100%;
}
body#category .rs2-product-card .product-miniature__image-container{
  background: #0d0e12;
  height: 250px !important;
  width: 100% !important;
  overflow: hidden;
}
body#category .rs2-product-card .product-miniature__image-link,
body#category .rs2-product-card .product-miniature__image-container picture{
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center;
  justify-content: center;
}
body#category .rs2-product-card .product-miniature__image{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  padding: 0 !important;
  transform: scale(1.025);
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
body#category .product-miniature:hover .product-miniature__image{ transform: scale(1.075); }

body#category .rs2-product-card__technology{
  backdrop-filter: blur(10px);
  background: rgba(8,9,13,.64);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: rgba(255,255,255,.76);
  left: 14px;
  line-height: 1;
  padding: 7px 9px;
  top: 14px;
}

body#category .rs2-product-card .product-flags{
  left: auto !important;
  padding: 0 !important;
  right: 14px !important;
  top: 14px !important;
  width: auto !important;
}

body#category .rs2-product-card .product-flag,
body#category .rs2-product-card .rs2-product-flag{
  box-shadow: 0 8px 22px rgba(255,29,29,.24);
  font-size: .58rem;
  line-height: 1;
  padding: 8px 10px;
}

/* Bloc texte : compact, aligné d'une carte à l'autre */
body#category .product-miniature__bottom{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  gap: 10px;
}
body#category .product-miniature__infos{
  flex: 1 1 auto;
  gap: 6px;
}
body#category .product-miniature__title{
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -.01em;
}
body#category .rs2-product-card__promise{
  margin: 6px 0 0;
  font-size: .84rem;
  line-height: 1.5;
}
body#category .product-miniature__variants{ margin: 10px 0 0; }
body#category .product-miniature__prices{ margin-top: 6px; }
body#category .product-miniature__actions{
  margin-top: auto;
  padding-top: 16px;
}

/* ---------- 4. Bandeau réassurance bas de page ---------- */
body#category .rs2-commerce-benefits{
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ---------- 5. Responsive ---------- */
@media (max-width: 991.98px){
  body#category .products{
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  body#category .category__header{ padding: 40px !important; }
}
@media (max-width: 575.98px){
  body#category .products{ grid-template-columns: 1fr; }
  body#category .category__header{ padding: 28px !important; }
}

/* ---------- 6. Accroche produit : 2 lignes maximum ---------- */
body#category .rs2-product-card__promise{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

/* ---------- 7. Compteur de résultats lisible ---------- */
body#category .products-bottom,
body#category .total-products,
body#category .pagination__summary,
body#category .products-selection p{
  color: var(--rs2-muted) !important;
  font-size: .88rem;
}

/* Keep the CTA useful without turning every card into a red billboard. */
body#category .rs2-product-card .product-miniature__add,
body#category .rs2-product-card .product-miniature__details{
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  color: #fff !important;
  min-height: 42px;
}

body#category .rs2-product-card .product-miniature__add:hover,
body#category .rs2-product-card .product-miniature__details:hover{
  background: var(--rs2-red-strong) !important;
  border-color: var(--rs2-red-strong) !important;
}

body#category .rs2-product-card .product-miniature__add::after,
body#category .rs2-product-card .product-miniature__details::after{
  color: var(--rs2-red-hover);
  content: "→";
  font-size: 1rem;
}

body#category .rs2-product-card .product-miniature__add:hover::after,
body#category .rs2-product-card .product-miniature__details:hover::after{
  color: #fff;
}

@media (max-width: 575.98px){
  body#category .rs2-product-card__technology{
    font-size: .52rem;
    letter-spacing: .11em;
  }

  body#category .rs2-product-card .product-miniature__top,
  body#category .rs2-product-card .product-miniature__image-container{
    height: 235px !important;
    min-height: 235px !important;
  }
}
