/* ═══════════════════════════════════════════════════════════
   PATHURA — pages/product-detail.css
   Moved verbatim from base.css during Phase 6 CSS split.
   No selectors, values, or comments changed.
═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────
   17. PRODUCT DETAIL PAGE
─────────────────────────────────────────────────────────── */
.pd-wrap {
  max-width: var(--max-width-pd);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.pd-crumb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 1.6rem; }
.pd-crumb a { color: var(--text-muted); text-decoration: none; }
.pd-crumb a:hover { color: var(--text); }
.pd-crumb-home {
  font-size: 14px;
  font-weight: 700;
  color: var(--text) !important;
  padding: .2rem .1rem;
}
.pd-crumb-home:hover { color: var(--primary) !important; text-decoration: underline; }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.pd-gallery { display: flex; flex-direction: column; gap: 0.9rem; }

.pd-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-emoji { font-size: 8rem; }
.pd-media .pbadge { top: 16px; left: 16px; font-size: 10.5px; padding: 4px 10px; }

.pd-thumbs { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.pd-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;

  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;

  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.7;
  transition: border-color var(--transition-fast) ease, opacity var(--transition-fast) ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.active { border-color: var(--primary); opacity: 1; }

.pd-info { padding-top: 0.4rem; }
.pd-brand {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.pd-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}
.pd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.pd-cat {
  text-transform: capitalize;
  padding: 3px 10px;
  background: var(--surface-2);
  border-radius: 20px;
  font-weight: 500;
}
.pd-rating { display: flex; align-items: center; gap: 5px; }
.pd-rating .stars { color: var(--primary); font-size: 12px; }

.pd-pricing { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pd-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text); }
.pd-old   { font-size: 1.05rem; color: var(--text-muted); text-decoration: line-through; }
.pd-disc  { font-size: 13px; color: var(--surface); background: var(--primary); padding: 3px 9px; border-radius: 20px; font-weight: 700; }

.pd-stock { font-size: 13px; font-weight: 600; margin-bottom: 1.6rem; }
.pd-stock--ok  { color: var(--success); }
.pd-stock--low { color: var(--warning); }
.pd-stock--out { color: var(--danger); }

.pd-actions { display: flex; gap: 10px; max-width: 420px; margin-bottom: 1.2rem; }
.pd-atc {
  flex: 1;
  margin-bottom: 0;

  background: var(--primary);
  color: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: var(--btn-radius);
  padding: 14px;

  font-family: var(--btn-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;
  transition: background var(--transition-fast) ease, border-color var(--transition-fast) ease;
}
.pd-atc:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.pd-buynow {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: var(--btn-radius);
  padding: 14px;

  font-family: var(--btn-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;
  transition: background var(--transition-fast) ease, color var(--transition-fast) ease;
}
.pd-buynow:hover { background: var(--text); color: var(--bg); }
.pd-back { display: inline-block; font-size: 13px; color: var(--text-muted); text-decoration: none; font-weight: 500; }
.pd-back:hover { color: var(--text); }

.pd-notfound { text-align: center; padding: 5rem 1rem; }
.pd-notfound-emoji { font-size: 3rem; margin-bottom: 1rem; }
.pd-notfound h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--text); }
.pd-notfound p { color: var(--text-muted); font-size: 14px; margin-bottom: 1.6rem; }

/* Description / Features / Specs */
.pd-section { max-width: 760px; margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--border); }
.pd-section-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.pd-description { font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-line; }
.pd-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.pd-features li { font-size: 13.5px; color: var(--text); padding-left: 1.5rem; position: relative; line-height: 1.5; }
.pd-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pd-specs tr { border-bottom: 1px solid var(--border); }
.pd-specs tr:last-child { border-bottom: none; }
.pd-specs th, .pd-specs td { text-align: left; padding: 10px 0; vertical-align: top; }
.pd-specs th {
  width: 35%;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding-right: 1rem;
}
.pd-specs td { color: var(--text); font-weight: 500; }




/* ─── Responsive ───────────────────────────────
   Extracted from the consolidated Phase 5 "18. RESPONSIVE"
   block — same breakpoint and declarations, unchanged. */
@media (max-width: 720px) {
  .pd-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pd-wrap { padding: 2rem 1.2rem 4rem; }
  .pd-name { font-size: 1.5rem; }
  .pd-price { font-size: 1.6rem; }
  .pd-specs th { width: 45%; }
}