/* ── HEADER ──────────────────────────────────────── */
.dpt-header {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 24px 0 20px;
  position: relative;
  overflow: hidden;
}
.dpt-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dpt-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.dpt-header > * { position: relative; z-index: 1; }

.dpt-bread {
  display: flex; align-items: center; gap: 8px;
  font-size: .67rem; letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.3); flex-wrap: wrap;
}
.dpt-bread a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.dpt-bread a:hover { color: rgba(255,255,255,.7); }
.dpt-bread span:last-child { color: rgba(255,255,255,.55); }

/* ── LAYOUT ──────────────────────────────────────── */
.pd-wrap { background: var(--bg); padding: 40px 0 60px; }
.pd-layout { display: grid; grid-template-columns: 440px 1fr; gap: 48px; align-items: start; }

/* ── IMAGE COLUMN ────────────────────────────────── */
.pd-img-col { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.pd-img-main {
  background: var(--white); border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden;
}
.pd-img-main img { width: 100%; height: 100%; object-fit: contain; padding: 32px; transition: transform .4s; }
.pd-img-main:hover img { transform: scale(1.04); }
.pd-img-error::after { content: 'Image unavailable'; font-size: .72rem; color: var(--ink-3); letter-spacing: .05em; }
.pd-img-error img { display: none; }

.pd-trust { display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--white); }
.pd-trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: .72rem; color: var(--ink-3);
  border-bottom: 1px solid var(--rule-lt);
}
.pd-trust-item:last-child { border-bottom: none; }
.pd-trust-item svg { color: var(--red); flex-shrink: 0; }

/* ── INFO COLUMN ─────────────────────────────────── */
.pd-info-col { display: flex; flex-direction: column; gap: 24px; }

/* ── IDENTITY ────────────────────────────────────── */
.pd-identity { display: flex; align-items: stretch; border: 1px solid var(--rule); background: var(--white); overflow: hidden; }
.pd-identity-brand,
.pd-identity-mfr { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px; flex: 1; }
.pd-identity-divider { width: 1px; background: var(--rule); flex-shrink: 0; }
.pd-identity-label { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pd-identity-value { font-size: .9rem; font-weight: 700; color: var(--ink); }
.pd-identity-brand .pd-identity-value { color: var(--red); }
.pd-identity-code { font-family: "Geist Mono", "Roboto Mono", monospace !important; font-size: .84rem; font-weight: 600; letter-spacing: .06em; }

/* ── TITLE ───────────────────────────────────────── */
.pd-title { font-family: "Instrument Serif", serif; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--ink); line-height: 1.25; }

/* ── KEY SPECS ───────────────────────────────────── */
.pd-key-specs { border: 1px solid var(--rule); background: var(--white); }
.pd-ks-row { display: flex; border-bottom: 1px solid var(--rule-lt); }
.pd-ks-row:last-child { border-bottom: none; }
.pd-ks-l { padding: 9px 14px; font-size: .74rem; color: var(--ink-3); min-width: 160px; flex-shrink: 0; border-right: 1px solid var(--rule-lt); background: var(--bg); }
.pd-ks-v { padding: 9px 14px; font-size: .74rem; font-weight: 500; color: var(--ink); flex: 1; }

/* ── ACTION BOX ──────────────────────────────────── */
.pd-action-box { background: var(--white); border: 1px solid var(--rule); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pd-action-divider { height: 1px; background: var(--rule-lt); margin: 4px 0; }

.pd-rfq-btn {
  width: 100%; background: var(--red); color: #fff; border: none;
  padding: 14px 20px; font-family: "Geist", sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s;
}
.pd-rfq-btn:hover         { background: var(--red-lt); }
.pd-rfq-btn.added         { background: #2a7a3b; cursor: pointer; }
.pd-rfq-btn.added:hover   { background: var(--red); }

.pd-rfq-note { font-size: .68rem; color: var(--ink-3); line-height: 1.5; margin: 0; text-align: center; }

/* ── SECONDARY ACTIONS ───────────────────────────── */
.pd-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.pd-act-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; font-family: "Geist", sans-serif;
  font-size: .71rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--rule);
  color: var(--ink-3); background: var(--white);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.pd-act-btn:hover           { border-color: var(--ink-3); color: var(--ink); }
.pd-act-whatsapp:hover      { border-color: #25d366; color: #25d366; }
.pd-act-email:hover         { border-color: var(--red); color: var(--red); }

/* bookmark active state */
.pd-act-bookmark.active     { border-color: var(--gold); color: var(--gold); background: rgba(160,120,48,.05); }
.pd-act-bookmark.active svg { fill: var(--gold); stroke: var(--gold); }
.pd-act-bookmark:hover      { border-color: var(--gold); color: var(--gold); }

/* compare active state */
.pd-act-compare.active      { border-color: var(--nova); color: var(--nova); background: rgba(26,46,82,.05); }
.pd-act-compare:hover       { border-color: var(--nova); color: var(--nova); }

/* search similar */
.pd-act-similar:hover       { border-color: var(--red); color: var(--red); }

/* ── SEARCH SIMILAR MODAL ────────────────────────── */
.pd-sim-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 500;
}
.pd-sim-overlay.open { display: block; }

.pd-sim-modal {
  display: none; position: fixed;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 94vw); max-height: 80vh;
  background: var(--white); z-index: 501;
  flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.pd-sim-modal.open { display: flex; }

.pd-sim-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 18px; border-bottom: 1px solid var(--rule);
  background: var(--dark); flex-shrink: 0;
}
.pd-sim-modal-title { font-family: "Instrument Serif", serif; font-size: 1.15rem; color: #fff; }
.pd-sim-modal-sub   { font-size: .71rem; color: rgba(255,255,255,.4); margin-top: 3px; letter-spacing: .03em; }
.pd-sim-modal-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.4); padding: 2px; flex-shrink: 0;
  transition: color .2s;
}
.pd-sim-modal-close:hover { color: #fff; }

.pd-sim-modal-body { flex: 1; overflow-y: auto; padding: 8px 0; }

.pd-sim-spec-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px; cursor: pointer;
  border-bottom: 1px solid var(--rule-lt);
  transition: background .15s;
}
.pd-sim-spec-row:last-child { border-bottom: none; }
.pd-sim-spec-row:hover { background: var(--bg); }
.pd-sim-spec-row input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--red);
  flex-shrink: 0; cursor: pointer;
}
.pd-sim-spec-name { font-size: .74rem; color: var(--ink-3); min-width: 160px; flex-shrink: 0; }
.pd-sim-spec-val  { font-size: .74rem; font-weight: 600; color: var(--ink); flex: 1; }
.pd-sim-empty     { font-size: .8rem; color: var(--ink-3); padding: 16px 24px; }

.pd-sim-modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 24px; border-top: 1px solid var(--rule);
  background: var(--bg); flex-shrink: 0;
}
.pd-sim-foot-left   { display: flex; gap: 8px; }
.pd-sim-toggle-btn  {
  background: none; border: 1px solid var(--rule);
  font-family: "Geist", sans-serif; font-size: .68rem;
  font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); padding: 7px 12px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.pd-sim-toggle-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.pd-sim-search-btn  {
  background: var(--red); color: #fff; border: none;
  font-family: "Geist", sans-serif; font-size: .74rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 20px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: background .2s;
}
.pd-sim-search-btn:hover { background: var(--red-lt); }

/* ── DESCRIPTION ─────────────────────────────────── */
.pd-desc-section { background: var(--bg); padding: 48px 0; border-top: 1px solid var(--rule); }
.pd-desc-body { font-size: .84rem; line-height: 1.8; color: var(--ink); max-width: 820px; }
.pd-desc-body p   { margin: 0 0 1em; }
.pd-desc-body ul,
.pd-desc-body ol  { margin: 0 0 1em; padding-left: 1.4em; }
.pd-desc-body li  { margin-bottom: .35em; }
.pd-desc-body table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-bottom: 1em; }
.pd-desc-body th,
.pd-desc-body td  { padding: 8px 12px; border: 1px solid var(--rule); text-align: left; }
.pd-desc-body th  { background: var(--white); font-weight: 600; }
.pd-desc-body img { max-width: 100%; height: auto; }

/* ── FULL SPECS ──────────────────────────────────── */
.pd-specs-section { background: var(--white); padding: 48px 0 56px; border-top: 1px solid var(--rule); }
.pd-section-head  { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pd-section-title { font-family: "Instrument Serif", serif; font-size: 1.4rem; color: var(--ink); }

.pd-specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--rule); overflow: hidden; }
.pd-spec-row   { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--rule-lt); }
.pd-spec-row:nth-last-child(-n+2) { border-bottom: none; }
/* right-column rows get a left border to visually divide the two halves */
.pd-spec-row:nth-child(even) { border-left: 1px solid var(--rule-lt); }
.pd-spec-l {
  padding: 11px 16px; font-size: .73rem; color: var(--ink-3); font-weight: 500;
  background: var(--bg); border-right: 1px solid var(--rule-lt);
  display: flex; align-items: center;
}
.pd-spec-v {
  padding: 11px 16px; font-size: .74rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center;
}

/* ── SIMILAR PRODUCTS ────────────────────────────── */
.pd-similar-section { background: var(--bg); padding: 48px 0 56px; border-top: 1px solid var(--rule); }
.pd-similar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule-lt); border: 1px solid var(--rule);
}
.pd-sim-card { background: var(--white); text-decoration: none; display: flex; flex-direction: column; transition: background .15s; position: relative; }
.pd-sim-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.pd-sim-card:hover { background: #fdfcfb; }
.pd-sim-card:hover::after { transform: scaleX(1); }
.pd-sim-img { aspect-ratio: 1 / 1; background:white; border-bottom: 1px solid var(--rule-lt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-sim-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.pd-sim-card:hover .pd-sim-img img { transform: scale(1.04); }
.pd-sim-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pd-sim-brand { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pd-sim-title { font-size: .76rem; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd-sim-mfr   { font-size: .67rem; color: var(--ink-3); font-family: "Geist Mono", "Roboto Mono", monospace; }

/* ── CTA ─────────────────────────────────────────── */
.dp-cta { background: var(--dark); padding: 48px 0; }
.dp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width: 1024px) {
  .pd-layout { grid-template-columns: 360px 1fr; gap: 32px; }
  .pd-similar-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-spec-row { grid-template-columns: 160px 1fr; }
}
@media(max-width: 768px) {
  .pd-layout { grid-template-columns: 1fr; gap: 24px; }
  .pd-img-col { position: static; }
  .pd-img-main { max-width: 360px; margin: 0 auto; }
  .pd-specs-grid { grid-template-columns: 1fr; }
  .pd-spec-row:nth-child(even) { border-left: none; }
  .pd-spec-row:last-child { border-bottom: none; }
  .pd-spec-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule-lt); }
  .pd-spec-row:last-child { border-bottom: none; }
  .pd-similar-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-cta-inner { flex-direction: column; align-items: flex-start; }
  .pd-sim-spec-name { min-width: 120px; }
  .pd-actions { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 480px) {
  .pd-similar-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-ks-l   { min-width: 120px; }
  .pd-spec-row { grid-template-columns: 130px 1fr; }
  .pd-identity-brand,
  .pd-identity-mfr { padding: 10px 14px; }
  .pd-act-btn { font-size: .67rem; padding: 8px 10px; }
  .pd-actions { grid-template-columns: repeat(2, 1fr); }
}