/* Hallmark · redesign: polish · theme: custom · product gallery from the supplied references */
:root {
  --product-gallery-surface: #fffdfb;
  --product-gallery-ink: #262626;
  --product-gallery-arrow-border: #ddd;
  --product-gallery-thumb-border: #a9a9a9;
  --product-gallery-selected: #3e790d;
  --product-gallery-focus: #1e5692;
  --product-gallery-pressed-surface: #ece9e6;
  --product-availability-ink: #a50000;
}

.product-card .card_left {
  float: none;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

.product-gallery {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
}

.product-gallery-stage {
  position: relative;
  touch-action: pan-y pinch-zoom;
}

.product-gallery [hidden] {
  display: none;
}

.product-gallery-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--product-gallery-ink);
  cursor: pointer;
}

.product-gallery-arrow span {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 1px solid var(--product-gallery-arrow-border);
  border-radius: 3px;
  background: var(--product-gallery-surface);
}

.product-gallery-arrow span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-1px) rotate(45deg);
}

.product-gallery-prev span::before {
  transform: translateX(1px) rotate(-135deg);
}

.product-gallery-prev {
  left: 8px;
}

.product-gallery-next {
  right: 8px;
}

.product-gallery-thumbs {
  /* The visible photo sets the gallery width. */
  contain: inline-size;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
}

.product-gallery-thumb {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 24px) / 4);
  min-width: 0;
  aspect-ratio: 550 / 470;
  padding: 2px;
  border: 1px solid var(--product-gallery-thumb-border);
  background: var(--product-gallery-surface);
  cursor: pointer;
}

.product-gallery-thumb[aria-pressed="true"] {
  border: 2px solid var(--product-gallery-selected);
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery button:focus-visible {
  outline: 2px solid var(--product-gallery-focus);
  outline-offset: 2px;
}

.product-gallery-arrow:active span,
.product-gallery-thumb:active {
  background: var(--product-gallery-pressed-surface);
}

@media (max-width: 991px) {
  .product-gallery-arrow {
    display: none;
  }
}

.product-card .card_left .cena {
  float: none;
  margin: 12px auto 0;
}

.product-card .desc {
  font: 17px Tahoma;
}

.product-card .desc p {
  line-height: inherit;
  text-align: inherit;
}

.product-card .desc:empty {
  display: none;
}

.product-card .product-availability {
  margin: 0;
  padding: 12px 0;
  color: var(--product-availability-ink);
  font: bold 26px/1.2 Georgia, serif;
  text-align: center;
  overflow-wrap: break-word;
}

.product-card .form {
  float: none;
  max-width: 576px;
  margin: 12px auto 0;
  padding: 0 0 20px;
}

.product-card .form .buton {
  max-width: 100%;
}

.product-category .box-item__img {
  max-width: 275px;
  margin-right: auto;
  margin-left: auto;
}

.product-category .box-item__foot,
.product-home .box-item__foot {
  max-width: 275px;
  margin: 8px auto 0;
}
