.hot-product-gallery-shell {
  margin-bottom: 1rem;
}

.hot-product-gallery {
  --hot-pg-bg: linear-gradient(180deg, #f8f6ef 0%, #f1ede2 100%);
  --hot-pg-border: #d8d2c3;
  --hot-pg-shadow: 0 18px 36px rgba(72, 60, 34, 0.12);
  --hot-pg-thumb-border: rgba(84, 71, 43, 0.12);
  --hot-pg-thumb-active: #6c5f4b;
  --hot-pg-inline-thumb-size: 60px;
  --hot-pg-modal-thumb-size: 58px;
  --hot-pg-button-bg: rgba(255, 255, 255, 0.94);
  --hot-pg-button-text: #1f1a14;
  --hot-pg-caption-bg: rgba(255, 255, 255, 0.88);
  color: #1f1a14;
}

.hot-product-gallery__frame {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hot-product-gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.hot-product-gallery__stage::before {
  content: '';
  display: block;
  aspect-ratio: 1 / 1;
}

.hot-product-gallery__slides,
.hot-product-gallery__slides--modal {
  position: absolute;
  inset: 0;
}

.hot-product-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(2.25%, 0, 0) scale(0.985);
  transition: opacity 340ms ease, transform 340ms ease;
}

.hot-product-gallery--fade .hot-product-gallery__slide {
  transform: scale(0.992);
}

.hot-product-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.hot-product-gallery__open,
.hot-product-gallery__thumb,
.hot-product-gallery__nav,
.hot-product-gallery-modal__close {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
}

.hot-product-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.hot-product-gallery__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.hot-product-gallery__media--modal {
  padding: clamp(0.75rem, 1.8vw, 1.25rem);
}

.hot-product-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.hot-product-gallery__img--modal {
  max-height: min(76vh, 980px);
}

.hot-product-gallery__caption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--hot-pg-caption-bg);
  color: #3c3428;
  font-size: 0.88rem;
  line-height: 1.2;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hot-product-gallery--has-thumbs .hot-product-gallery__caption {
  bottom: calc(var(--hot-pg-inline-thumb-size) + 1.55rem);
}

.hot-product-gallery-modal__counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #534634;
  font-size: 0.84rem;
  font-weight: 600;
}

.hot-product-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-top: -1.4rem;
  border-radius: 999px;
  background: var(--hot-pg-button-bg);
  color: var(--hot-pg-button-text);
  box-shadow: 0 10px 22px rgba(31, 26, 20, 0.14);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hot-product-gallery__nav:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 14px 24px rgba(31, 26, 20, 0.18);
}

.hot-product-gallery__nav--prev {
  left: 0.9rem;
}

.hot-product-gallery__nav--next {
  right: 0.9rem;
}

.hot-product-gallery__thumbs-wrap {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 5;
  margin-top: 0;
}

.hot-product-gallery__thumbs {
  --hot-pg-thumb-size: var(--hot-pg-inline-thumb-size);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.hot-product-gallery__thumb {
  position: relative;
  flex: 0 0 var(--hot-pg-thumb-size);
  overflow: hidden;
  width: var(--hot-pg-thumb-size);
  min-height: var(--hot-pg-thumb-size);
  border: 1px solid var(--hot-pg-thumb-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hot-product-gallery__thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 26, 20, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.hot-product-gallery__thumb.is-active {
  border-color: rgba(108, 95, 75, 0.42);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.92);
}

.hot-product-gallery__thumb::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: transparent;
  transition: background-color 160ms ease;
}

.hot-product-gallery__thumb.is-active::after {
  background: transparent;
}

.hot-product-gallery__thumb-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hot-product-gallery__stamp {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 5;
  width: clamp(56px, 10vw, 84px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.hot-product-gallery__zoom-lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: none;
  width: 174px;
  height: 174px;
  margin-left: -87px;
  margin-top: -87px;
  border: 1px solid rgba(41, 34, 22, 0.12);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.24);
  background-repeat: no-repeat;
  background-size: 220%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.hot-product-gallery-modal__content {
  position: relative;
  border: 1px solid rgba(215, 210, 195, 0.95);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.98), rgba(244, 240, 232, 0.98));
  box-shadow: 0 28px 64px rgba(17, 14, 10, 0.34);
}

.hot-product-gallery-modal__header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(84, 71, 43, 0.08);
  padding: 1rem 1rem 0.5rem;
}

.hot-product-gallery-modal__title {
  margin-bottom: 0.35rem;
  color: #2f281e;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hot-product-gallery-modal__body {
  padding: 0.6rem 1rem 1rem;
}

.hot-product-gallery__stage--modal {
  background: rgba(255, 255, 255, 0.5);
}

.hot-product-gallery__stage--modal::before {
  aspect-ratio: 16 / 12;
}

.hot-product-gallery-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.95rem;
  z-index: 7;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  transform: none;
}

.hot-product-gallery__thumbs--modal {
  margin-top: 0.9rem;
  --hot-pg-thumb-size: var(--hot-pg-modal-thumb-size);
}

.hot-product-gallery__static-link {
  display: block;
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(84, 71, 43, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767.98px) {
  .hot-product-gallery__frame {
    padding: 0;
    border-radius: 0;
  }

  .hot-product-gallery__nav {
    width: 2.45rem;
    height: 2.45rem;
    margin-top: -1.225rem;
  }

  .hot-product-gallery__nav--prev {
    left: 0.55rem;
  }

  .hot-product-gallery__nav--next {
    right: 0.55rem;
  }

  .hot-product-gallery__thumbs {
    --hot-pg-thumb-size: 52px;
  }

  .hot-product-gallery--has-thumbs .hot-product-gallery__caption {
    bottom: calc(var(--hot-pg-inline-thumb-size) + 1.3rem);
  }

  .hot-product-gallery__thumbs--modal {
    --hot-pg-thumb-size: 50px;
  }

  .hot-product-gallery__caption {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    border-radius: 1rem;
    padding: 0.48rem 0.65rem;
    font-size: 0.8rem;
  }

  .hot-product-gallery__zoom-lens {
    display: none !important;
  }

  .hot-product-gallery-modal__header,
  .hot-product-gallery-modal__body {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hot-product-gallery-modal__close {
    top: 0.5rem;
    right: 0.6rem;
    transform: none;
  }
}
