/* Product detail page (prod-page.php). Uses tokens from site.css. */
.prod-page { padding-top: 18px; padding-bottom: 40px; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #b3bfcf; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Top: image + buy box */
.prod-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.prod-gallery { position: sticky; top: 90px; }
.prod-image { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 20px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.prod-image img { width: 100%; height: 100%; object-fit: contain; }

.prod-brand { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.prod-info h1 { font-size: 30px; font-weight: 800; line-height: 1.25; color: var(--ink); margin: 0 0 12px; letter-spacing: -.3px; }
.prod-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.prod-meta span { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.prod-meta strong { color: var(--ink); }
.prod-summary { font-size: 16px; line-height: 1.65; color: #3b4757; margin-bottom: 20px; }

.prod-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.prod-actions .btn-tsc { flex: 1 1 220px; }
.prod-download { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.prod-download i { color: var(--accent); font-size: 20px; }

.prod-assure { list-style: none; padding: 16px 0 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.prod-assure li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 4px 0; }
.prod-assure i { color: #1f9d55; width: 18px; text-align: center; }

.prod-upsell { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--radius); background: #fff5f6; border: 1px solid #f8d3d7; color: var(--ink); }
.prod-upsell:hover { text-decoration: none; color: var(--ink); border-color: var(--accent); }
.prod-upsell img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.prod-upsell span { flex: 1; }
.prod-upsell strong { display: block; font-size: 15px; }
.prod-upsell small { color: var(--muted); font-size: 13px; }
.prod-upsell i { color: var(--accent); }

/* Section links */
.prod-tabs { display: flex; gap: 6px; margin: 40px 0 0; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.prod-tabs::-webkit-scrollbar { display: none; }
.prod-tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.prod-tabs a:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }

.prod-body { max-width: 920px; }
.prod-section { padding: 28px 0 8px; scroll-margin-top: 90px; }
.prod-section h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; color: var(--ink); }

/* Content pasted into the admin editor */
.rich-text { font-size: 15.5px; line-height: 1.7; color: #3b4757; overflow-wrap: break-word; }
.rich-text p { font-size: inherit; line-height: inherit; margin-bottom: 14px; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 20px 0 10px; line-height: 1.35; }
.rich-text ul, .rich-text ol { padding-left: 22px; margin-bottom: 16px; }
.rich-text li { margin-bottom: 6px; }
.rich-text a { font-weight: 600; }
.rich-text img { height: auto; border-radius: 8px; }
.rich-text iframe { max-width: 100%; }
.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.rich-text table { width: 100% !important; border-collapse: collapse; font-size: 14.5px; margin: 0; }
.rich-text table td, .rich-text table th { border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; vertical-align: top; line-height: 1.5; }
.rich-text table tr:last-child td { border-bottom: 0; }
.rich-text table tr:nth-child(even) td { background: var(--soft); }
.rich-text table td:first-child { font-weight: 700; color: var(--ink); }
.rich-text table td { min-width: 120px; overflow-wrap: normal; word-break: normal; }
.rich-text table td:first-child:nth-last-child(2) { width: 40%; }
.rich-text table p { margin: 0; }

/* Video: thumbnail until clicked */
.video-facade, #video iframe { display: block; position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-facade .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 50px; border-radius: 14px; background: #ff0000; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.video-facade:hover .play { background: #cc0000; }

.prod-cta { margin-top: 30px; background: var(--brand); color: #fff; border-radius: 14px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.prod-cta h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.prod-cta p { margin: 0; color: #d6e2f3; font-size: 15px; }

.related { margin-top: 10px; }

/* Tablet */
@media (max-width: 991px) {
  .prod-top { grid-template-columns: 1fr; gap: 22px; }
  .prod-gallery { position: static; }
  .prod-image { max-width: 520px; margin: 0 auto; }
}

/* Phone */
@media (max-width: 767px) {
  .prod-page { padding-top: 12px; }
  .crumbs { font-size: 12px; margin-bottom: 12px; }
  .prod-image { padding: 12px; }
  .prod-info h1 { font-size: 23px; }
  .prod-summary { font-size: 15px; }
  .prod-actions .btn { flex: 1 1 calc(50% - 5px); font-size: 15px; padding: .65rem .8rem; }
  .prod-actions .btn-tsc { flex-basis: 100%; }
  .prod-tabs { margin-top: 28px; }
  .prod-tabs a { padding: 9px 12px; font-size: 14px; }
  .prod-section { padding-top: 22px; }
  .prod-section h2 { font-size: 19px; }
  .rich-text { font-size: 15px; }
  .rich-text table td, .rich-text table th { padding: 8px 10px; font-size: 13.5px; }
  .prod-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; }
}

/* Missing photo placeholder and representative-image note */
.prod-image-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; border-radius: 10px; background: var(--soft); color: var(--muted); text-align: center; }
.prod-image-ph i { font-size: 46px; color: #b8c6d9; }
.prod-image-ph span { font-weight: 700; font-size: 16px; color: var(--ink); }
.prod-image-ph small { font-size: 13px; }
.prod-image-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
