:root {
  --red: #c4292f;
  --red-deep: #840717;
  --line: rgba(196, 41, 47, 0.95);
  --muted: #e9e9e9;
  --heart-bg: #fdebed;
}

.jpg-product-gallery * {
  box-sizing: border-box;
}

.jpg-product-gallery .jpg-card {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 44px;
  padding: 26px 26px 24px;
  position: relative;
}

.jpg-product-gallery .jpg-top-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 4px;
  margin-bottom: 18px;
}

.jpg-product-gallery .jpg-indicator {
  all: unset;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
  cursor: pointer;
}

.jpg-product-gallery .jpg-indicator.is-active {
  background: var(--red);
}

.jpg-product-gallery .jpg-indicator:focus-visible {
  outline: 2px solid rgba(196, 41, 47, 0.6);
  outline-offset: 4px;
  border-radius: 999px;
}

.jpg-product-gallery .jpg-hero {
  position: relative;
  border-radius: 26px;
  height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.jpg-product-gallery .jpg-hero:active {
  cursor: grabbing;
}

.jpg-product-gallery .jpg-hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  transform: scale(0.98);
  pointer-events: none;
}

.jpg-product-gallery .jpg-wish {
  position: absolute;
  top: 10px;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: none;
  background: rgba(253, 235, 237, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.jpg-product-gallery .jpg-wish:hover {
  background: rgba(253, 235, 237, 1);
}

.jpg-product-gallery .jpg-wish:active {
  transform: scale(0.98);
}

.jpg-product-gallery .jpg-wish:focus-visible {
  outline: 2px solid rgba(196, 41, 47, 0.55);
  outline-offset: 6px;
}

.jpg-product-gallery .jpg-wish svg {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--red);
}

.jpg-product-gallery .jpg-wish svg path {
  fill: transparent !important;
  stroke: currentColor !important;
  stroke-width: 40px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.12s ease, stroke 0.12s ease;
}

.jpg-product-gallery .jpg-wish:hover svg path,
.jpg-product-gallery .jpg-wish.is-active svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 40px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.12s ease, stroke 0.12s ease;
}

.jpg-product-gallery .jpg-thumbs {
  margin-top: 22px;
  padding: 0 42px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.jpg-product-gallery .jpg-thumb {
  height: 86px;
  border-radius: 14px;
  border: 2px solid rgba(107, 114, 128, 0.95);
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.jpg-product-gallery .jpg-thumb.is-active {
  border-color: var(--red);
}

.jpg-product-gallery .jpg-thumb-btn {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.jpg-product-gallery .jpg-thumb-btn:focus-visible {
  outline: 2px solid rgba(196, 41, 47, 0.65);
  outline-offset: 2px;
  border-radius: 12px;
}

.jpg-product-gallery .jpg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 55%;
}

@media (max-width: 520px) {
  .jpg-product-gallery .jpg-hero {
    height: 560px;
  }
  .jpg-product-gallery .jpg-wish {
    top: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
  }
  .jpg-product-gallery .jpg-thumbs {
    padding: 0 12px 6px;
    gap: 12px;
  }
  .jpg-product-gallery .jpg-thumb {
    height: 76px;
  }
}

