/* BLACK LINE V8 — Capard-inspired orderly catalog layout, adapted to BLACK LINE. */
/* All four featured items in one desktop row; two per mobile row. */
#featuredGrid.bestseller-grid,
#featuredGrid.bestseller-grid[data-size] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 1350px !important;
  margin: 0 auto !important;
  gap: 20px !important;
  padding: 0 !important;
  align-items: start !important;
}
#featuredGrid.bestseller-grid > .product-card {min-width:0; width:100%;}
#featuredGrid.bestseller-grid .product-image {
  width:100%; aspect-ratio:1/1; background:#f0f0f0;
  border-radius:0; overflow:hidden;
}
#featuredGrid.bestseller-grid .product-card-media img {
  object-fit:contain; mix-blend-mode:multiply;
}
#featuredGrid.bestseller-grid .product-meta {min-width:0; padding-top:10px;}
#featuredGrid.bestseller-grid .product-name {overflow-wrap:break-word;}
/* Keep product photography stable when the right-hand accordion height changes. */
#productPage .product-detail {align-items:start !important; overflow-anchor:none;}
#productPage .product-detail > .product-gallery {
  align-self:start !important; position:relative !important;
  height:max-content !important; min-height:0 !important;
  grid-template-rows:auto !important;
}
#productPage .product-gallery .gallery-arrow {top:50%;}
#productPage .product-accordions details,
#productPage .product-accordions summary,
#productPage .product-accordions details>p {animation:none !important;transition:none !important;}
@media(max-width:980px) {
 #featuredGrid.bestseller-grid,#featuredGrid.bestseller-grid[data-size] {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:14px !important;}
}
@media(max-width:620px) {
 #featuredGrid.bestseller-grid,#featuredGrid.bestseller-grid[data-size] {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
 #featuredGrid.bestseller-grid .product-meta {display:block !important;}
 #featuredGrid.bestseller-grid .product-price {display:block;margin-top:5px;}
 #featuredGrid.bestseller-grid .product-name {font-size:13px;}
}
