/* Product detail page. */
.product-detail { padding-top: 130px; }
.breadcrumb--dark { color: var(--text-3); margin-bottom: clamp(28px, 4vw, 44px); }
.breadcrumb--dark a:hover { color: var(--accent); }
.breadcrumb--dark .sep { color: var(--accent); margin-inline: 0.6em; }

.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .pd-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Gallery */
.pd-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity var(--dur-fast) var(--ease); }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb { width: 76px; height: 76px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); padding: 0; transition: border-color var(--dur-fast) var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--accent); }

/* Info */
.pd-info .product-brand { font-size: 0.72rem; }
.pd-name { font-size: clamp(1.8rem, 1rem + 2.6vw, 2.8rem); margin: 10px 0 0; }
.pd-price { font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); margin-top: 16px; }
.pd-stock { margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.06em; }
.pd-stock.in { color: #6fae7e; }
.pd-stock.out { color: var(--text-3); }
.pd-desc { margin-top: 22px; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; max-width: 52ch; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pd-actions .btn-ghost[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.pd-meta { margin-top: 34px; border-top: 1px solid var(--line); }
.pd-meta li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.pd-meta li span { color: var(--text-3); }
.pd-meta li strong { color: var(--text); font-weight: 600; }

/* Lightbox */
.pd-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,7,10,0.92); display: none; place-items: center; padding: 5vw; cursor: zoom-out; }
.pd-lightbox.open { display: grid; }
.pd-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius); }
.pd-lightbox .close { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 1.6rem; line-height: 1; }

/* Optional YouTube embed under the thumbnail strip */
.pd-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; margin-top: 14px; border: 1px solid var(--line); background: var(--bg-3); }
.pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* "Tentang Toko" — reuses the About page's settings copy, condensed */
.pd-about { max-width: 68ch; }
.pd-about h2 { margin: 12px 0 16px; font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); }
.pd-about p { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.pd-about .btn-text { margin-top: 18px; display: inline-flex; }

/* rich (Quill) description on the product page */
.pd-desc p { margin: 0 0 0.8em; }
.pd-desc p:last-child { margin-bottom: 0; }
.pd-desc ul, .pd-desc ol { margin: 0 0 0.8em; padding-left: 1.3em; }
.pd-desc a { color: var(--accent); text-decoration: underline; }
