.pp-card-gallery {
  display: none;
}

.pp-card-gallery-ready .product-img-wrapper:has(> .pp-card-gallery) {
  position: relative;
}

.pp-card-gallery-ready .pp-card-gallery:not([hidden]) {
  position: absolute;
  z-index: 3;
  inset: auto 3px 4px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.pp-card-gallery__buttons {
  display: flex;
  align-items: center;
  color: #1b2036;
  background: #fff;
  border: 1px solid #dce4e7;
  border-radius: 999px;
  box-shadow: 0 2px 8px #1b20361a;
  pointer-events: auto;
}

.pp-card-gallery__buttons button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.pp-card-gallery__buttons button:hover {
  color: #ac2309;
  background: #fff2ed;
}

.pp-card-gallery__buttons button:focus-visible {
  outline: 2px solid #ac2309;
  outline-offset: -3px;
}

.pp-card-gallery__buttons .pp-card-gallery__count-button {
  width: auto;
  min-width: 36px;
  padding-inline: 4px;
}

.pp-card-gallery__count {
  min-width: 3ch;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.pp-card-gallery__mobile {
  display: none;
}

.pp-card-gallery[data-pp-gallery-feedback="loading"] [data-pp-gallery-count],
.pp-card-gallery[data-pp-gallery-feedback="error"] [data-pp-gallery-count] {
  font-size: 10px;
}

.pp-card-gallery__arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

[data-pp-gallery-step="-1"] .pp-card-gallery__arrow {
  transform: rotate(135deg);
}

.pp-card-gallery__alternate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.pp-card-gallery__alternate.is-visible {
  visibility: visible;
}

.pp-card-gallery__alternate img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.pp-card-gallery-is-alternate > :is(picture, .js-main-img) {
  opacity: 0;
}

.list-2-card-1:has(.js-alt-img-wrap:is(:hover, :focus)) .pp-card-gallery-is-alternate > .js-main-img {
  opacity: 1;
}

.list-2-card-1:has(.js-alt-img-wrap:is(:hover, :focus)) .pp-card-gallery__alternate {
  visibility: hidden;
}

@media (pointer: fine) {
  .pp-card-gallery__buttons button {
    width: 34px;
    height: 32px;
  }
}

@media (max-width: 767px) and (pointer: coarse) {
  .pp-card-gallery-ready .product-img-wrapper:has(> .pp-card-gallery:not([hidden])) {
    touch-action: pan-y pinch-zoom;
  }

  .pp-card-gallery-ready .pp-card-gallery:not([hidden]) {
    bottom: 2px;
  }

  .pp-card-gallery__buttons {
    display: none;
  }

  .pp-card-gallery__mobile {
    display: grid;
    place-items: center;
    min-width: 30px;
    min-height: 24px;
    padding: 0;
    color: #1b2036;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .pp-card-gallery__mobile span {
    padding: 0 4px;
    border-radius: 4px;
    background: #fffffff0;
    font: 500 11px/16px system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .pp-card-gallery__mobile:focus-visible {
    outline: 2px solid #ac2309;
    outline-offset: 1px;
  }

  .pp-gallery-hint {
    flex: 0 1 auto;
    max-inline-size: calc(100% - 105px);
    padding: 3px 7px;
    color: #34314a;
    background: #f5efff;
    border-radius: 5px;
    font: 500 12px/16px system-ui, sans-serif;
  }
}

@media (min-width: 768px), (pointer: fine) {
  .pp-gallery-hint {
    display: none;
  }
}

@media (max-width: 767px) {
  .category-product-list > #page_cat_artlist:not([data-pp-list-ready]):is(:not(:has(> *)), :has(> .page_content_ajax:only-child)) {
    min-block-size: 85vh;
    min-block-size: 85svh;
  }
}

@media (scripting: none) {
  .category-product-list > #page_cat_artlist:not([data-pp-list-ready]):is(:not(:has(> *)), :has(> .page_content_ajax:only-child)) {
    min-block-size: 0;
  }
}
