.product-gallery--viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery__hero-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0px;
  overflow: hidden;
  cursor: zoom-in;
}

.product-gallery__hero-btn:hover{
  border: 0;
}

.product-gallery__hero-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}

.product-gallery__thumb {
  padding: 0;
  /* border: 2px solid transparent; */
  background: transparent;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: #ffffff;
}

.product-gallery__thumb-img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.product-lightbox.is-open {
  display: block;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.product-lightbox__dialog {
  position: absolute;
  inset: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 0px;
  display: block;
}

.product-lightbox__close,
.product-lightbox__nav {
  position: absolute;
  border: 0;
  border-radius: 0px;
  width: 44px;
  height: 44px;

  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  top: 0px;
  right: 8px;
  padding: 0;
}

.product-lightbox__nav--prev {
  left: 12px;
  top: 50%;
  /* transform: translateY(-50%); */
}

.product-lightbox__nav--next {
  right: 12px;
  top: 50%;
  /* transform: translateY(-50%); */
}

.product-lightbox__counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 14px;
}

body.lightbox-open {
  overflow: hidden;
}

/* Product page buy*/

.product-gallery {
  width: 100%;
  max-width: 720px;
}

.product-gallery--viewer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-gallery__hero-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  cursor: zoom-in;
}

.product-gallery__hero-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #ffffff;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery__thumb.is-active {
  border-color: #ffffff;
}

.product-gallery__thumb-img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.sale-offer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sale-qty-row {
  display: grid;
  grid-template-columns: 44px minmax(72px, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.sale-qty-btn {
  height: 44px;
  border: 1px solid #E30613;
  background: #fff;
  border-radius: 0px;
  font-size: 22px;
  cursor: pointer;
  color: #E30613;
}

.sale-qty-input {
  height: 44px;
  border: 1px solid #d8d8d8;
  border-radius: 0px;
  text-align: center;
  width: 100%;
}

@media (max-width: 900px) {
  .product-gallery {
    max-width: 100%;
  }

  .product-gallery__hero-img {
    height: 320px;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

