.product-description {
  margin: 0 0 1rem;
}

.product-description p {
  margin: 0 0 0.85rem;
}

.bundle-page-listing {
  margin: 1.1rem 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.bundle-page-listing h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.bundle-page-list {
  margin: 0;
  padding-left: 1.35rem;
  columns: 2;
  column-gap: 2rem;
}

.bundle-page-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}

.gallery-main {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.gallery-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
}

.gallery-zoom-trigger {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.gallery-zoom-trigger > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  touch-action: pan-y;
}

.gallery-zoom-trigger:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: -4px;
}

.gallery-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid #d4cab7;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: #505743;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(50, 50, 40, 0.12);
  pointer-events: none;
}

.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid #d4cab7;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.94);
  color: #596149;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(50, 50, 40, 0.12);
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-arrow.prev {
  left: 0.65rem;
}

.gallery-arrow.next {
  right: 0.65rem;
}

.gallery-thumbs {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.75rem 0.15rem 0.25rem;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.gallery-thumb {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb.active {
  border-color: #7a8268;
}

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

.gallery-lightbox {
  width: min(96vw, 1100px);
  height: min(92dvh, 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fffdf8;
  color: var(--char);
  box-shadow: 0 24px 80px rgba(20, 23, 19, 0.32);
}

.gallery-lightbox::backdrop {
  background: rgba(24, 28, 23, 0.78);
  backdrop-filter: blur(3px);
}

.gallery-lightbox-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.gallery-lightbox-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  border-bottom: 1px solid var(--line);
}

.gallery-lightbox-count,
.gallery-zoom-level {
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #d4cab7;
  border-radius: 50%;
  background: #fff;
  color: #4f5845;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-control.close {
  margin-left: 0.35rem;
  background: #616a54;
  color: #fff;
}

.gallery-control:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.gallery-control:focus-visible,
.gallery-thumb:focus-visible,
.gallery-arrow:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.gallery-lightbox-viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #efeee6;
  overscroll-behavior: contain;
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  transition:
    width 160ms ease,
    height 160ms ease;
}

.gallery-lightbox-help {
  margin: 0;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--line);
  color: #626651;
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 699px) {
  .bundle-page-list {
    columns: 1;
  }

  .detail {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .detail > * {
    min-width: 0;
    max-width: 100%;
  }

  .gallery-stage {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
  }

  .gallery-arrow.prev {
    left: 0.4rem;
  }

  .gallery-arrow.next {
    right: 0.4rem;
  }

  .gallery-zoom-hint {
    right: 0.55rem;
    bottom: 0.55rem;
    font-size: 0.75rem;
  }

  .gallery-thumbs {
    gap: 0.4rem;
    padding: 0.55rem 0.1rem 0.15rem;
  }

  .gallery-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
    border-radius: 9px;
  }

  .gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .gallery-lightbox-toolbar {
    padding-left: 0.75rem;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
  }

  .gallery-lightbox-help {
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .gallery-lightbox-count {
    font-size: 0.78rem;
  }

  .gallery-zoom-controls {
    gap: 0.2rem;
  }

  .gallery-control {
    width: 36px;
    height: 36px;
  }

  .gallery-zoom-level {
    min-width: 38px;
    font-size: 0.82rem;
    text-align: center;
  }
}
