/* Example product pages (produit-*.html), built on the SC400 page (css/original.css, css/complete.css):
   one picture instead of a thumbnail strip, line icon when the category has no photo, a purchase panel that quotes. */

.gallery-single .galleryrow { grid-template-columns: minmax(0, 1fr); }
.gallery-single .features { margin-left: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-single .mainphoto { position: relative; display: grid; place-items: center; overflow: hidden; background: #e8ecef; }
.gallery-single .mainphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mainphoto.is-icon svg, .tech-photo.is-icon svg { width: 34%; height: auto; fill: none; stroke: var(--orange); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.tech-photo.is-icon { display: grid; place-items: center; }
.feature b { overflow-wrap: anywhere; }

.purchase .prod-variants { margin: 18px 0 4px; }
.dot.is-quote { background: var(--orange); }
.buyform { display: grid; grid-template-columns: 124px 1fr; gap: 12px; margin: 18px 0; }
.buyform .orangebtn { display: inline-flex; align-items: center; justify-content: center; }
.purchase .outlinebtn { display: flex; align-items: center; justify-content: center; }
.qty button:disabled { opacity: .35; cursor: default; }

.cat-compat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cat-compat-grid p { color: #18232c; font-size: var(--fs-body); }
.product-related { border-top: 1px solid #e8ebee; }
.product-closing { margin-top: 0; padding-top: 56px; }

@media (max-width: 900px) {
  .gallery-single .features { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .cat-compat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .cat-compat-grid { grid-template-columns: 1fr; }
  .buyform { grid-template-columns: 110px 1fr; }
  /* A line icon needs less height than the SC400's portrait photo. */
  .gallery-single .mainphoto.is-icon { aspect-ratio: 1.6; }
}
