/* 商品詳細 /product/{slug} */
.prose-product h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: #1c1c1a;
}
.prose-product p {
  margin-bottom: 0.75rem;
}
.prose-product ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Amazon風ホバーズーム（lg以上・ホバー可能な環境のみ） */
.product-zoom-panel {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 2rem);
  width: 100%;
  aspect-ratio: 1 / 1;
  z-index: 40;
  pointer-events: none;
  background-color: #fff;
  background-repeat: no-repeat;
  border: 1px solid rgba(212, 196, 176, 0.6);
  border-radius: 0.375rem;
  box-shadow: 0 12px 40px rgba(28, 28, 26, 0.18);
}

@media (min-width: 1024px) {
  .product-zoom-panel {
    left: calc(100% + 3rem);
  }

  @media (hover: hover) and (pointer: fine) {
    .product-zoom-panel.is-active {
      display: block;
    }
  }
}

/* ライトボックス */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(28, 28, 26, 0.82);
  cursor: zoom-out;
}

.product-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 0.375rem;
}

.product-lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: #1c1c1a;
  color: #f5f0e8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.product-lightbox-close:hover {
  background: #c45c26;
}

body.product-lightbox-open {
  overflow: hidden;
}
