.product_item a.product_popup_trigger {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product_item a.product_popup_trigger .thumb {
  overflow: hidden;
}

.product_item a.product_popup_trigger .thumb img {
  transition: transform 0.3s ease;
}

.product_item a.product_popup_trigger:hover .thumb img {
  transform: scale(1.05);
}

/* ライトボックス */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

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

.product-lightbox__content {
  position: relative;
  z-index: 1;
  background: #fff;
  max-width: 720px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.product-lightbox[aria-hidden="false"] .product-lightbox__content {
  transform: scale(1);
}

.product-lightbox__close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 3.2rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.product-lightbox__close:hover {
  color: #6b613d;
}

.product-lightbox__img-wrap {
  width: 100%;
  background: #f5f5f5;
  text-align: center;
}

.product-lightbox__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.product-lightbox__info {
  padding: 2rem 2.4rem 2.4rem;
}

.product-lightbox__title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 0 1rem;
  color: #333;
}

.product-lightbox__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.product-lightbox__tags:empty {
  display: none;
}

.product-lightbox__tag-item {
  display: inline-block;
  background: #6b613d;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.2rem 1rem;
  border-radius: 2px;
}

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