﻿/* Sand-concrete product additions; category styles remain unchanged. */
.sand-product-page [hidden] { display: none !important; }
.sand-product-page .product-hero .hero-copy { align-items: flex-start; }
.sand-product-page .product-hero-price { min-width: 0; }
.sand-product-page .product-hero-price:only-child { max-width: 330px; }
.sand-product-page .product-hero-price > strong { line-height: 1.3; }
.sand-product-page .product-hero-price-note { max-width: 68ch; }

.sand-product-page .sand-category .sand-table th:first-child { width: 90px; }
.sand-product-page .sand-mark { font-weight: 700; white-space: nowrap; }
.sand-product-page .sand-primary {
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  max-width: none;
}
.sand-product-page .sand-base-badge {
  display: inline-block;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 7px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #fff0dc;
  color: #8c4c09;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}
.sand-product-page .sand-product-note {
  max-width: 86ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.sand-product-page .sand-product-note p { margin: 0; }
.sand-product-page .sand-product-note p + p { margin-top: 6px; }

.sand-product-page .sand-product-specs { min-width: 0; }
.sand-product-page .sand-product-specs table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.sand-product-page .sand-product-specs :is(th, td) {
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.6;
  text-transform: none;
  overflow-wrap: anywhere;
}
.sand-product-page .sand-product-specs tr > :first-child { width: 42%; }
.sand-product-page .sand-product-specs tbody tr > :first-child {
  color: var(--muted);
  font-weight: 600;
}
.sand-product-page .sand-product-specs tbody tr:last-child > * { border-bottom: none; }
.sand-product-page .sand-product-specs caption {
  padding: 0 0 12px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
.sand-product-page .sand-other-grades h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}
.sand-product-page .sand-other-grades .grade-grid { margin-top: 20px; }
.sand-product-page .sand-category-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sand-product-page .sand-category-link:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

@container sand-price (min-width: 761px) {
  .sand-product-page .sand-category .sand-class { padding-top: 17px; }
}
@container sand-price (max-width: 820px) {
  .sand-product-page .sand-primary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sand-product-page .sand-product-note { font-size: 12px; }
  .sand-product-page .sand-product-specs table,
  .sand-product-page .sand-product-specs tbody { display: block; }
  .sand-product-page .sand-product-specs thead { display: none; }
  .sand-product-page .sand-product-specs tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sand-product-page .sand-product-specs tbody tr > * {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0 0 12px;
    font-size: 13px;
  }
  .sand-product-page .sand-product-specs tbody tr > :first-child {
    width: auto;
    padding: 12px 0 3px;
    border-bottom: none;
    font-size: 12px;
  }
}
