/* Product Detail Page */

.product-page {
  padding: 40px 0 80px;
}

.back-link {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--violet);
}

/* Main layout: image left, info right */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

/* Images */
.product-images {
  position: sticky;
  top: 100px;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-dark);
  margin-bottom: 12px;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-thumbnails {
  display: flex;
  gap: 8px;
}

.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 1px solid transparent;
}

.thumb:hover,
.thumb.active {
  opacity: 1;
  border-color: var(--violet);
}

/* Product info */
.product-detail-info {
  padding-top: 8px;
}

.product-category {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}

.product-detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-detail-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--violet-dark);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.product-description {
  margin-bottom: 40px;
}

.product-description p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  color: var(--text);
  margin-bottom: 16px;
}

.flavor-box {
  background: var(--cream-dark);
  padding: 20px 24px;
  margin: 24px 0;
}

.flavor-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--violet-dark);
  margin-bottom: 12px;
}

.set-contents {
  margin: 24px 0;
}

.set-contents ul {
  list-style: none;
  padding: 0;
}

.set-contents li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--cream-dark);
  letter-spacing: 0.03em;
}

.set-contents li::before {
  content: '—  ';
  color: var(--violet-light);
}

.btn-customize {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: var(--violet);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 12px;
}

.btn-customize:hover {
  background: var(--violet-dark);
}

.customize-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Lifestyle / detail images */
.lifestyle-section {
  margin-bottom: 64px;
}

.lifestyle-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.lifestyle-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Story link */
.product-story-link {
  padding: 32px 0;
  border-top: 1px solid var(--cream-dark);
}

.product-story-link p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
}

.product-story-link a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid var(--violet-light);
  padding-bottom: 1px;
}

.product-story-link a:hover {
  color: var(--violet-dark);
  border-color: var(--violet-dark);
}

/* Mobile */
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-images {
    position: static;
  }

  .lifestyle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
