/* ===== Product Detail Page Styles ===== */

/* Layout */
.product-detail { margin-top: 70px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  padding: 4rem 8%;
  align-items: start;
}

/* Visual Panel */
.product-visual {
  position: sticky;
  top: 90px;
}

.product-swatch-large {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.product-swatch-large .swatch-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stone-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.product-badge-strip {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.badge-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.badge-tag.gold {
  border-color: var(--gold);
  color: var(--gold);
}

/* Info Panel */
.product-info .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.product-info .breadcrumb a {
  color: var(--gold);
  transition: var(--transition);
}

.product-info .breadcrumb a:hover {
  text-decoration: underline;
}

.product-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.4rem;
  color: var(--text-white);
}

.product-info .product-en {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.product-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.8rem;
}

/* Desc */
.product-desc p {
  color: var(--text-gray);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.product-desc h3 {
  color: var(--text-white);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.6rem;
  padding-right: 0.8rem;
  border-right: 3px solid var(--gold);
}

/* Specs Table */
.specs-section {
  margin-top: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.specs-section h3 {
  padding: 1rem 1.5rem;
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--gold);
}

.spec-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.spec-row:last-child { border-bottom: none; }

.spec-key {
  padding: 0.75rem 1.5rem;
  color: var(--text-gray);
  background: rgba(255,255,255,0.02);
}

.spec-val {
  padding: 0.75rem 1.5rem;
  color: var(--text-white);
}

/* Uses */
.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.use-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-gray);
  transition: var(--transition);
}

.use-item:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.use-item .use-icon { font-size: 1.3rem; margin-bottom: 0.3rem; }

/* CTA Buttons */
.product-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.product-cta .btn-primary,
.product-cta .btn-outline {
  flex: 1;
  text-align: center;
  min-width: 140px;
}

/* Related Products */
.related-section {
  padding: 4rem 8%;
  background: var(--green-dark);
  border-top: 1px solid var(--border);
}

/* ===== Related Slider ===== */
.rel-outer {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
}

.rel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  gap: 0;
}

.rel-slide {
  flex-shrink: 0;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.rel-slide .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.rel-slide .card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.rel-slide .product-card:hover .card-img img {
  transform: scale(1.05);
}

/* Nav Buttons */
.rel-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(13,27,22,0.85);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(6px);
}

.rel-nav:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.rel-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.rel-prev { right: 0; }
.rel-next { left: 0; }

/* Dots */
.rel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 1.2rem;
}

.rel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.rel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    padding: 2.5rem 5%;
    gap: 2rem;
  }
  .product-visual { position: static; }
  .product-swatch-large { height: 300px; }
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .related-section { padding: 3rem 5%; }
  .rel-nav { width: 34px; height: 34px; font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; }
  .spec-key { border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
  .spec-val { padding-top: 0.3rem; }
  .rel-prev { right: 2px; }
  .rel-next { left: 2px; }
}
