/* ==========================================================
   TROPICOR FOODS — Product detail pages
   ========================================================== */

/* ---------- PRODUCT HERO ---------- */
.product-hero {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: var(--section-pad);
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.product-hero .brand-line {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1.25rem;
}
/* Hero H1: heaviest step (700), consistent with every other hero on the site. */
.product-hero h1 {
  max-width: 16ch;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.product-hero .t-lead { margin-top: 1.5rem; max-width: 48ch; }

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.product-hero-meta div strong {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
}
.product-hero-meta div span {
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-hero-media {
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
/* Tall variant for portrait packshots (e.g. the Umamite jar) */
.product-hero-media--tall { aspect-ratio: 4 / 5; }
.product-hero-media picture {
  display: block;
  width: 100%; height: 100%;
}
.product-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* .shot-contain lives in theme.css so it applies on every page (incl. homepage) */

@media (max-width: 63.99em) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-hero-media { order: -1; aspect-ratio: 4 / 3; }
}

/* ---------- SPECS ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.spec-grid .t-title { max-width: 14ch; position: sticky; top: 7rem; }

.spec-table { width: 100%; border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.8fr) 1.4fr;
  gap: 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.spec-row dt {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.1rem;
}
.spec-row dd { line-height: 1.6; }

@media (max-width: 63.99em) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid .t-title { position: static; }
}

/* ---------- APPLICATIONS ---------- */
.apps-list { border-top: 1px solid var(--line); margin-top: clamp(2rem, 4vw, 3rem); }
.apps-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.6fr) 1.6fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.apps-row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.apps-row p { color: var(--muted); font-size: var(--fs-small); max-width: 56ch; }

@media (max-width: 39.99em) {
  .apps-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- CERT STRIP ---------- */
.cert-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  padding-block: 2.25rem;
  border-block: 1px solid var(--line);
}
.cert-strip img { height: 3.25rem; width: auto; object-fit: contain; }
.cert-strip p {
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- ENQUIRY PANEL ---------- */
.enquiry-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.enquiry-panel .t-title { max-width: 16ch; }
.enquiry-panel p { margin-top: 1rem; color: rgba(255, 255, 255, 0.85); font-size: var(--fs-small); max-width: 44ch; }
.enquiry-panel .actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 63.99em) {
  .enquiry-panel { grid-template-columns: 1fr; }
  .enquiry-panel .actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- RELATED ---------- */
.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- SPECIFICATION SHEET PAGES ---------- */
.specdoc { max-width: 56rem; }
.specdoc-sub {
  margin-top: 0.75rem;
  font-size: var(--fs-lead);
  color: var(--muted);
}
.specdoc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.specdoc-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.specdoc-block > h2 {
  font-family: var(--font-display);
  font-size: var(--fs-subtitle);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.specdoc-block p { color: var(--text); line-height: 1.7; max-width: 70ch; }
.specdoc-block p + p { margin-top: 1rem; }
.specdoc-block .lang-label {
  display: block;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.spec-nutrition {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
}
.spec-nutrition th, .spec-nutrition td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.spec-nutrition th {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 40%;
  padding-right: 1.5rem;
}
.spec-nutrition td { font-weight: 600; }
.specdoc-note {
  margin-top: 1rem;
  font-size: var(--fs-meta);
  color: var(--muted);
  max-width: 70ch;
}
.specdoc-apps { list-style: none; border-top: 1px solid var(--line); }
.specdoc-apps li {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}

/* Print: a clean A4 document */
@media print {
  .site-header, .site-footer, .wa-fab, .specdoc-actions, .crumbs,
  .enquiry-panel, .specdoc-backlink { display: none !important; }
  body { background: #fff; }
  .section, .product-hero { padding-block: 0.75rem !important; }
  .product-hero { padding-top: 1.5rem !important; }
  .specdoc, .container { max-width: 100% !important; }
  .specdoc-block { margin-top: 1.5rem; break-inside: avoid; }
  .spec-row, .spec-nutrition tr, .specdoc-apps li { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}
