/* Edviseo Shop V10 - Performance SEO Engine
   Safe CSS only. Does not override main theme layout. */
img {
  max-width: 100%;
  height: auto;
}

.product-card img,
.product-image img,
.catalog-card img,
.edv-product-card img {
  object-fit: contain;
}

/* Reduce layout shift for common ecommerce image containers without changing design. */
.product-card,
.catalog-card,
.edv-product-card {
  contain: layout paint;
}

/* Better rendering smoothness for long product grids. */
.product-grid,
.catalog-grid,
.products-grid,
.edv-product-grid {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

/* Keep anchors stable while browser restores scroll after pagination/search. */
html {
  scroll-behavior: smooth;
}
