/* v48y (29 nov 2026): pack-shoten ska fylla bildrutan (ca 85–90 %).
   Wictor 21:52: «Kan man fylla ut rutan med bilden».
   Bildfilerna är tätt beskurna från 3200-masters (motivet orört, proportioner bevarade).
   Den här filen överstyr äldre tall-vial-regler: 82×176-stämpel (v48-varukorg),
   object-fit:cover + scale(1.22) på mobil (v43) och width/height 400×692 som ger en hög, luftig brunn. */
html body[class] :is(#product-grid, #featured-product-grid, #available-now-grid, #recently-viewed-grid, .product-grid)
  .product-card .product-card__visual:has(.product-official-photo) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  aspect-ratio: 1 / 1 !important;
  max-height: none !important;
  min-height: 0 !important;
}
html body[class] :is(#product-grid, #featured-product-grid, #available-now-grid, #recently-viewed-grid, .product-grid)
  .product-card .product-card__visual :is(img.product-official-photo, img.product-official-photo.product-photo, picture, picture img) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  aspect-ratio: auto !important;
  flex: 1 1 auto !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
}

/* Produktsida: kvadratisk brunn, inte den gamla 400×692-vialens proportion. */
html body[class] .product-summary :is(.product-photo--official, .product-main-image--official, img.product-official-photo),
html body[class] .product-visual-card :is(.product-photo--official, .product-main-image--official, img.product-official-photo),
html body.product-page img.product-main-image.product-official-photo,
html body.product-page .product-visual-card .product-main-image.product-official-photo {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  padding: 0 !important;
  margin-inline: auto !important;
}
