/* ── Product Detail Page ─────────────────────────────────────────────── */
.product-layout  { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
.related-section { margin-top: 40px; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--primary); }
.product-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 1rem; margin-bottom: 8px; }
.product-breadcrumb a { color: #666; text-decoration: none; }
.product-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.product-breadcrumb span { color: #bbb; }
.product-breadcrumb .breadcrumb-current { color: #444; font-weight: 500; }

/* Gallery */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.gallery-main img { width: 100%; border-radius: var(--radius); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; border: 2px solid var(--border); cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--primary); }
.gallery-main { position: relative; width: 475px; max-width: 100%; }
.gallery-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.82); color: #222; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  padding-left: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.gallery-play-btn:hover { background: rgba(255,255,255,.97); transform: translate(-50%,-50%) scale(1.08); }
.thumb-video { width: 70px; height: 70px; border-radius: 6px; border: 2px solid var(--border); cursor: pointer; overflow: hidden; position: relative; background: #000; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.thumb-video img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video.active { border-color: var(--primary); }
.thumb-play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: rgba(0,0,0,.35); pointer-events: none; }
.gallery-video-active { aspect-ratio: 16/9; }

/* Info box */
.product-info-box h1 { font-size: 1.5rem; margin-bottom: 8px; }
.product-sku { color: var(--text-muted); font-size: .85rem; margin-bottom: 12px; }
.product-price-box { margin-bottom: 16px; }
.price-sale  { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.price-original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.price-main  { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.discount-badge { background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .8rem; font-weight: 700; margin-left: 8px; }
.short-desc  { font-size: .9rem; margin-bottom: 20px; }

/* Variant selectors */
.variant-selectors { margin-bottom: 20px; }
.variant-group  { margin-bottom: 14px; }
.variant-label  { font-size: .85rem; font-weight: 600; color: #555; margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 6px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .85rem; cursor: pointer; background: #fff; color: #333;
  transition: var(--transition); line-height: 1.4;
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600; }
.variant-btn.unavailable { opacity: .4; cursor: not-allowed; }
.variant-sku { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* Actions */
.product-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); }
.qty-btn { width: 40px; height: 44px; font-size: 1.2rem; transition: var(--transition); }
.qty-btn:hover { background: var(--bg-gray); }
#product-qty { width: 50px; height: 44px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); }

/* Tabs */
.product-tabs { margin: 40px 0; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; font-weight: 600; font-size: .95rem; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.desc-video-wrap { margin: 16px 0; }
.desc-video-wrap iframe { width: 100%; aspect-ratio: 16/9; border-radius: 6px; display: block; }

/* Product description content */
.product-description { font-size: .95rem; line-height: 1.8; color: #333; }
.product-description iframe { width: 100%; aspect-ratio: 16/9; height: auto; display: block; border-radius: 6px; margin: 8px 0; }
.product-description p:has(> iframe:only-child) { margin: 16px 0; }
.product-description h1,
.product-description h2 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 12px; color: #1a1a1a; border-left: 4px solid var(--primary); padding-left: 12px; }
.product-description h3,
.product-description h4 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 10px; color: #222; }
.product-description p { margin: 0 0 12px; }
.product-description ul,
.product-description ol { margin: 0 0 14px; padding-left: 22px; }
.product-description li { margin-bottom: 6px; }
.product-description ul li { list-style: disc; }
.product-description ol li { list-style: decimal; }
.product-description hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.product-description blockquote { background: #f8f9fa; border-left: 4px solid var(--primary); margin: 16px 0; padding: 12px 16px; border-radius: 0 6px 6px 0; color: #555; font-style: italic; }
.product-description table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .9rem; }
.product-description table td,
.product-description table th { padding: 10px 14px; border: 1px solid var(--border); vertical-align: top; }
.product-description table thead td,
.product-description table th { background: var(--bg-gray); font-weight: 600; }
.product-description table tr:nth-child(even) td { background: #fafafa; }
.product-description img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; display: block; }
.product-description video { max-width: 100%; border-radius: 6px; margin: 12px 0; }
.product-description b,
.product-description strong { color: #111; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 10px 16px; border: 1px solid var(--border); font-size: .9rem; }
.specs-table th { background: var(--bg-gray); width: 200px; font-weight: 600; text-align: left; }

@media (max-width: 680px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-layout { padding: 12px; }
  .gallery-main { width: 100%; }
}
