body.mc-exact-catalog main :is(.product-grid,.local-product-grid) .mc-category-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

body.mc-exact-catalog main .mc-category-photo > a {
  display: block;
  padding: 0;
  touch-action: pan-y pinch-zoom;
  aspect-ratio: 4 / 3;
}

body.mc-exact-catalog main .mc-category-photo > a img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

body.mc-exact-catalog main .mc-category-photo > button {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #244636;
  transform: translateY(-50%);
  cursor: pointer;
}

.mc-category-photo > .mc-photo-previous { inset-inline-start: 2px; --mc-gallery-angle: -135deg; }
.mc-category-photo > .mc-photo-next { inset-inline-end: 2px; --mc-gallery-angle: 45deg; }

body.mc-exact-catalog main .mc-category-photo > button::before,
body.mc-exact-catalog main .mc-category-photo > button::after {
  content: '';
  grid-area: 1 / 1;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(var(--mc-gallery-angle));
  pointer-events: none;
}

body.mc-exact-catalog main .mc-category-photo > button::before {
  width: 12px;
  height: 12px;
  border-width: 3.5px;
  color: #fff;
}

body.mc-exact-catalog main .mc-category-photo > button:focus-visible {
  outline: 2px solid #007b75;
  outline-offset: -4px;
}

body.mc-exact-catalog main .mc-category-photo > output {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.refinements.scandi.mc-exact-catalog main :is(.product-grid,.local-product-grid) {
    grid-template-columns: minmax(0,1fr);
    grid-auto-rows: auto;
  }

  body.refinements.scandi.mc-exact-catalog main :is(.product-grid,.local-product-grid) > .local-product-card > div {
    grid-template-rows: auto auto auto auto;
    gap: 4px;
    padding: 10px 12px 12px;
    min-height: 0;
  }

  body.refinements.scandi.mc-exact-catalog main .local-product-card .mc-item-price {
    display: block;
    min-height: 0;
    margin: 0;
  }

  body.refinements.scandi.mc-exact-catalog main .local-product-card > div > .button {
    margin-top: 4px;
  }
}
