/* ============================================================
   Hearthcore — Product Detail Page (B2B display-only)
   Depends on: main.css (tokens + base components)
   ============================================================ */

/* ====== DEPRECATED (no longer rendered) ======
   .prod-rating — retail-style star reviews removed for B2B context.
   Kept here commented out in case future re-introduction is needed.
   ============================================================ */

/* ====== Breadcrumb ====== */
.crumb {
  padding: 16px 0;
  border-bottom: var(--line);
  background: var(--ink-50);
  font-size: 13px;
  color: var(--ink-500);
}
.crumb .wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a { color: var(--ink-700); }
.crumb a:hover { color: var(--orange); }
.crumb span[aria-hidden] { color: var(--ink-300); }
.crumb .cur { color: var(--ink-900); font-weight: 500; }

/* ====== Product Hero ====== */
.prod-hero { padding: 64px 0 56px; background: white; }
.prod-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }

/* Gallery */
.prod-gallery-main {
  position: relative;
  height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--line);
  background: linear-gradient(135deg, #F2EDE7 0%, #D5CFC8 100%);
  display: grid;
  place-items: center;
}
.prod-gallery-main .prod-vis {
  width: 220px; height: 380px;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.prod-gallery-main .prod-vis::before {
  content: ''; position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 240px; background: var(--ink-900); border-radius: 6px;
}
.prod-gallery-main .prod-vis::after {
  content: ''; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 5px; background: var(--orange); border-radius: 2px;
}
.prod-gallery-main .prod-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.3px;
}
.prod-gallery-main .hot { background: var(--orange); color: white; border-radius: 4px; }
.prod-gallery-main .oem { background: var(--ink-900); color: white; border-radius: 4px; padding: 6px 12px; font-weight: 600; }
.prod-gallery-main .gallery-marker {
  position: absolute; top: 24px; right: 24px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  display: flex; align-items: center; gap: 6px;
}
.prod-gallery-main .gallery-marker::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
}

.prod-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.prod-thumbs .thumb {
  height: 96px; border-radius: 8px;
  border: 1.5px solid var(--ink-200);
  background: var(--ink-100);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.prod-thumbs .thumb::before {
  content: ''; width: 24px; height: 40px;
  background: white; border: 1px solid rgba(0,0,0,0.1); border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.prod-thumbs .thumb:hover { border-color: var(--ink-400); }
.prod-thumbs .thumb.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(194,83,30,0.12); }

/* Info column */
.prod-info-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--orange); font-weight: 500;
  margin-bottom: 14px;
  padding: 4px 10px; background: var(--orange-soft);
  border-radius: 4px;
}
.prod-info-cat::before { content: 'HC'; font-weight: 700; color: white; background: var(--orange); padding: 1px 6px; border-radius: 3px; }

.prod-info h1 {
  font-size: 40px; line-height: 1.15; letter-spacing: -0.025em;
  font-weight: 700; margin-bottom: 16px;
}
.prod-info h1 em { font-style: normal; color: var(--orange); }

.prod-tagline {
  font-size: 17px; line-height: 1.6;
  color: var(--ink-500); margin-bottom: 24px;
  padding-bottom: 24px; border-bottom: var(--line);
}

.prod-rating {
  /* DEPRECATED — kept for backward compat, no longer rendered in HTML */
  display: none;
}

.prod-info .prod-specs { margin-bottom: 24px; }
.prod-info .prod-specs .spec-chip { font-size: 12px; padding: 6px 10px; }

.prod-cta-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.prod-cta-row .btn { flex: 1; min-width: 160px; justify-content: center; }

/* Compact trade terms line (replaces trade-badges + quick-meta) */
.prod-trade-line {
  font-size: 13px; color: var(--ink-500); line-height: 1.6;
  padding: 14px 18px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
}
.prod-trade-line strong { color: var(--ink-900); font-weight: 600; font-family: 'JetBrains Mono', monospace; }

/* ====== Section: Key Features ====== */
.pd-features { background: var(--ink-50); }
.pd-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-feat {
  background: white; border: var(--line); border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.2s;
}
.pd-feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--ink-300); }
.pd-feat-ic {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 20px;
  margin-bottom: 16px;
}
.pd-feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.pd-feat p { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }
.pd-feat .feat-tag {
  display: inline-block; margin-top: 10px;
  padding: 2px 8px; background: var(--ink-50);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--ink-600);
}

/* ====== Section: Specs & Dimensions (merged) ====== */
.pd-specs { background: white; }
.pd-spec-dim-grid { margin-bottom: 48px; }

.pd-spec-table {
  border: var(--line); border-radius: var(--radius); overflow: hidden;
}
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--ink-200);
}
.spec-cell {
  background: white; padding: 14px 22px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 0.15s;
}
.spec-cell:hover { background: var(--ink-50); }
.spec-cell:nth-child(4n+3),
.spec-cell:nth-child(4n+4) { background: var(--ink-50); }
.spec-cell:nth-child(4n+3):hover,
.spec-cell:nth-child(4n+4):hover { background: var(--ink-100); }
.spec-k {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-500); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.spec-v {
  font-size: 14px; color: var(--ink-900); line-height: 1.4;
}
.spec-v strong { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--ink-900); }
.spec-v span { font-size: 12px; color: var(--ink-500); }

/* Collapsible spec toggle */
.spec-more { display: contents; }
.spec-more[hidden] { display: none !important; }
.spec-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: white; border: 1px solid var(--ink-100);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  color: var(--ink-600);
  transition: all 0.15s;
}
.spec-toggle:hover { background: var(--ink-50); color: var(--orange); }
.spec-toggle[aria-expanded="true"] { border-radius: 0; }
.tg-icon { display: inline-block; transition: transform 0.2s; font-size: 11px; }

/* ====== Section: Dimensions grid (inside specs section) ====== */
.pd-dim-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }

.pd-dim-vis {
  height: 320px; border-radius: var(--radius);
  background: var(--ink-50); border: var(--line);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.pd-dim-vis svg { width: 70%; height: 70%; }

.pd-dim-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.pd-dim-list .dim-item {
  display: flex; gap: 16px; padding: 16px 18px;
  background: white; border: var(--line); border-radius: var(--radius-sm);
}
.pd-dim-list .dim-ic {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--orange-soft); color: var(--orange);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.pd-dim-list strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pd-dim-list p { font-size: 13px; color: var(--ink-500); line-height: 1.5; }

/* ====== Section: Buying (merged Trade Terms + OEM) ====== */
.pd-buying { background: var(--ink-50); }
.pd-buy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--ink-200);
  border: var(--line); border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.pd-buy-row {
  background: white; padding: 16px 22px;
  display: flex; align-items: baseline; gap: 16px;
}
.buy-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  font-weight: 500; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.3px;
  min-width: 110px; flex-shrink: 0;
}
.buy-val { font-size: 13.5px; color: var(--ink-900); line-height: 1.5; }
.buy-val strong { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--ink-900); }

/* OEM process — 3 columns */
.proc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .prod-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .prod-gallery-main { height: 420px; }
  .pd-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-dim-grid { grid-template-columns: 1fr; gap: 40px; }
  .prod-info h1 { font-size: 32px; }
  .pd-buy-grid { grid-template-columns: 1fr; }
  .proc-grid-3 { grid-template-columns: 1fr; }
  .prod-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .prod-hero { padding: 40px 0; }
  .prod-gallery-main { height: 340px; }
  .prod-gallery-main .prod-vis { width: 160px; height: 280px; }
  .prod-gallery-main .prod-vis::before { width: 110px; height: 180px; top: 20px; }
  .prod-info h1 { font-size: 26px; }
  .pd-feat-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-cell { padding: 12px 16px; }
  .prod-grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   B2B-Specific Additions
   ============================================================ */

/* ====== Related Products — 3 column variant ====== */
.pd-related { background: white; }
.prod-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
