/* ===== Detail Page ===== */
.detail-page {
  padding-top: 100px;
  min-height: 70vh;
}

.detail-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.detail-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.detail-breadcrumb a {
  color: var(--sage-dark);
  transition: color 0.3s;
}

.detail-breadcrumb a:hover {
  color: var(--text);
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #F0E8DB 0%, #E3D5C3 50%, #ECD9C8 100%);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-main .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  background: linear-gradient(135deg, #F0E8DB 0%, #E3D5C3 50%, #ECD9C8 100%);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.gallery-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
  opacity: 0.6;
  background: linear-gradient(135deg, #F0E8DB 0%, #E3D5C3 50%, #ECD9C8 100%);
}

.gallery-thumb:hover {
  opacity: 0.85;
}

.gallery-thumb.active {
  border-color: var(--warm-deep);
  opacity: 1;
}

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

.gallery-thumb .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F0E8DB 0%, #E3D5C3 50%, #ECD9C8 100%);
}

/* ===== Product Info ===== */
.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-name {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--text);
}

.detail-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 2;
  letter-spacing: 0.03em;
}

.detail-back {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 32px;
  border: 1px solid var(--warm-deep);
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-radius: 40px;
  transition: all 0.4s;
  cursor: pointer;
  background: transparent;
}

.detail-back:hover {
  background: var(--warm-deep);
  color: var(--white-warm);
}

/* ===== No images state ===== */
.gallery-no-images {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-name {
    font-size: 1.5rem;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
}
