/* Product detail pages (products/<name>/) and the card links that lead to them.
   A separate, versioned file on purpose: styles.css is cached by browsers for days, so new rules here reach
   visitors immediately. Uses the tokens from styles.css. */

/* ---- links on catalogue / home / related cards ---- */
.p-img a.p-link, .p-card > a.p-link { display: block; }
.p-card > a.p-link .p-img { width: 100%; }
.p-body h3 a { color: inherit; text-decoration: none; }
.p-body h3 a:hover { color: var(--teal-dark); }

/* ---- the product page ---- */
.prod-page { padding: 36px 0 90px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 24px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--teal-dark); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.prod-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.prod-media { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.prod-media .p-img { aspect-ratio: 4 / 3; }

.prod-code { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; color: var(--blue); text-transform: uppercase; }
.prod-info h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; letter-spacing: -.01em; margin: 8px 0 16px; }
.prod-desc { color: var(--muted); font-size: 1.04rem; margin-bottom: 24px; }
.prod-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin-bottom: 26px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.prod-facts dt { color: var(--muted); font-size: .9rem; }
.prod-facts dd { font-weight: 600; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa { color: #fff; background: var(--wa-green); box-shadow: 0 8px 22px rgba(37, 211, 102, .32); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, .42); }
.prod-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }

.prod-related { margin-top: 64px; }
.prod-related h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 20px; }

@media (max-width: 860px) {
  .prod-grid { grid-template-columns: 1fr; gap: 28px; }
}
