/* ==========================================================================
   Core Coatings — range.css (Range page + product pages)
   Loaded after site.css. Tokens only, no hard-coded colours.
   ========================================================================== */

/* ---------- Range page */
.range .tabs { margin-bottom: var(--s-7); }
.range__note { color: var(--muted); max-width: 62ch; margin-bottom: var(--s-7); }
.group-intro { color: var(--muted); font-size: 15px; margin: calc(-1 * var(--s-2)) 0 var(--s-4); max-width: 62ch; }
.group-label .label { font-weight: 500; }
.tile__note { margin-top: var(--s-1); font-size: 14px; color: var(--muted); }
.range__more { margin-top: var(--s-8); }

/* ---------- Product page */
.product { padding-top: var(--s-7); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: 14px; color: var(--muted); margin-bottom: var(--s-6); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 40px; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

.product__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.product__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--paper-2); }
.product__media img { width: 82%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product__media--empty svg { width: 96px; height: auto; opacity: .12; }

.product__intro > .label { color: var(--blue); }
.product__h, .section .product__h { font-size: 15px; font-weight: 600; letter-spacing: 0; margin: var(--s-6) 0 var(--s-2); }
.page-title + .product__h { margin-top: 0; }
.product__intro p + p { margin-top: var(--s-2); }
.product__intro .lead { color: var(--ink); font-size: 19px; }
.product__extra { color: var(--muted); }
.product__actions { margin-top: var(--s-6); }
.product__price-note { margin-top: var(--s-3); font-size: 14px; color: var(--muted); }
.switch-link { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }

.product__detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-8); margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.product__h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: var(--s-4); }
.section .product__h2 { font-size: 24px; } /* beat site.css ".section h2" */
.data-table td.is-request { color: var(--muted); }
.data-table--items th[scope="row"] { font: 600 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); width: 30%; }
.data-table--items thead th { width: auto; }
.product__table-note { margin-top: var(--s-4); font-size: 14px; color: var(--muted); }

.downloads { list-style: none; border-top: 1px solid var(--line); }
.downloads li { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.downloads .icon { color: var(--muted); margin-top: 2px; }
.downloads div { display: grid; gap: var(--s-1); }
.downloads strong { font-weight: 600; font-size: 16px; }
.downloads a { font-size: 15px; font-weight: 500; }

/* ---------- Responsive */
@media (max-width: 1023px) {
  .product__top { gap: var(--s-7); }
  .product__detail { grid-template-columns: 1fr; gap: var(--s-7); }
}
@media (max-width: 767px) {
  .product { padding-top: var(--s-5); }
  .crumbs { margin-bottom: var(--s-4); }
  .product__top { grid-template-columns: 1fr; gap: var(--s-5); }
  .product__intro .lead { font-size: 17px; }
  .product__actions .btn { flex: 1 1 100%; }
  .product__detail { margin-top: var(--s-7); padding-top: var(--s-6); }
  .range .tabs { margin-bottom: var(--s-6); }
  .range__note { margin-bottom: var(--s-6); }
  .data-table--items thead { display: none; }
  .data-table--items tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .data-table--items th, .data-table--items td { border-bottom: 0; padding: 2px 0; width: auto; }
  .data-table--items td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); }
  .data-table--items td:nth-child(3) { grid-row: 1; grid-column: 2; font-size: 13px; color: var(--muted); }
}

/* ---------- Print (A4): product sheet on one page */
@media print {
  .product { padding-top: 0; }
  .product__top { grid-template-columns: 38% 1fr; gap: 10mm; }
  .product__media { aspect-ratio: auto; height: 50mm; background: none; border: 1px solid #ccc; }
  .product__media img { mix-blend-mode: normal; width: auto; max-height: 46mm; }
  .product__intro > .label { color: #000; }
  .product__h { margin: 8pt 0 2pt; font-size: 11pt; }
  .product__price-note { display: none; }
  .product__detail { grid-template-columns: 1.4fr 1fr; gap: 10mm; margin-top: 8mm; padding-top: 6mm; border-color: #999; }
  .product__h2, .section .product__h2 { font-size: 14pt; }
  .downloads a { color: #000; }
  .downloads a::after { content: " (corecoatings.com.au/pricing/)"; font-size: 9pt; }
}


/* Phone polish: a shorter product image so the name, what it's for and the price button sit higher */
@media (max-width: 639px) {
  .product__media { aspect-ratio: 16 / 9; }
  .product__media img { width: 66%; }
}
