/* V750 — final universal product-card contrast contract.
   This file is intentionally loaded after page styles by the shared footer. */
:root {
  --ths-product-card-surface: #fff;
  --ths-product-card-text: #111111;
  --ths-product-button-surface: #76172f;
  --ths-product-button-text: #fff;
}

/* Veterinary full-catalogue cards: defeat the legacy ID-scoped white-copy
   declaration that was intended for maroon panels, not white cards. */
html body.v64-medtech-layout.category-catalogue-page main
  #complete-veterinary-section .full-vet-page {
  background: var(--ths-product-card-surface) !important;
  background-color: var(--ths-product-card-surface) !important;
}

html body.v64-medtech-layout.category-catalogue-page main
  #complete-veterinary-section .full-vet-page > .full-vet-body,
html body.v64-medtech-layout.category-catalogue-page main
  #complete-veterinary-section .full-vet-page > .full-vet-body > h3,
html body.v64-medtech-layout.category-catalogue-page main
  #complete-veterinary-section .full-vet-page > .full-vet-body > p,
html body.v64-medtech-layout.category-catalogue-page main
  #complete-veterinary-section .full-vet-page > .full-vet-body > .ref-line {
  color: var(--ths-product-card-text) !important;
  -webkit-text-fill-color: var(--ths-product-card-text) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

html body.v64-medtech-layout main :is(
  .surg-cat-card, .surg-ref-card, .surg-page-card,
  .dental-cat-card, .dental-ref-card, .dental-page-card,
  .vet-cat-card, .ref-dropdown-card, .full-vet-page,
  .homepage-implant-card, .implant-card,
  .beauty-expanded .card, .matched-product-card, .real-product-card
) {
  background: var(--ths-product-card-surface) !important;
  background-color: var(--ths-product-card-surface) !important;
  color: var(--ths-product-card-text) !important;
  -webkit-text-fill-color: var(--ths-product-card-text) !important;
}

html body.v64-medtech-layout main :is(
  .surg-cat-body, .surg-ref-card, .surg-page-body,
  .dental-cat-body, .dental-ref-card, .dental-page-body,
  .vet-cat-body, .ref-dropdown-card, .full-vet-body,
  .homepage-implant-body, .implant-body,
  .beauty-expanded .card > .body, .matched-product-card, .real-product-card
),
html body.v64-medtech-layout main :is(
  .surg-cat-body, .surg-ref-card, .surg-page-body,
  .dental-cat-body, .dental-ref-card, .dental-page-body,
  .vet-cat-body, .ref-dropdown-card, .full-vet-body,
  .homepage-implant-body, .implant-body,
  .beauty-expanded .card > .body, .matched-product-card, .real-product-card
) :is(h1, h2, h3, h4, h5, h6, p, li, dt, dd, span, small, b, strong, em, .desc, .refs, .meta, .sub, .ref-line, .page-chip) {
  color: var(--ths-product-card-text) !important;
  -webkit-text-fill-color: var(--ths-product-card-text) !important;
  text-shadow: none !important;
}

html body.v64-medtech-layout main :is(
  .surg-cat-body, .surg-ref-card, .surg-page-body,
  .dental-cat-body, .dental-ref-card, .dental-page-body,
  .vet-cat-body, .ref-dropdown-card, .full-vet-body,
  .homepage-implant-body, .implant-body,
  .beauty-expanded .card > .body, .matched-product-card, .real-product-card
) a:not(.btn):not(.small-btn):not([role="button"]) {
  color: var(--ths-product-card-text) !important;
  -webkit-text-fill-color: var(--ths-product-card-text) !important;
}

html body.v64-medtech-layout main :is(
  .surg-cat-card, .surg-ref-card, .surg-page-card,
  .dental-cat-card, .dental-ref-card, .dental-page-card,
  .vet-cat-card, .ref-dropdown-card, .full-vet-page,
  .homepage-implant-card, .implant-card,
  .beauty-expanded .card, .matched-product-card, .real-product-card
) :is(a.btn, a.small-btn, button.btn, button.small-btn, [role="button"]),
html body.v64-medtech-layout main :is(
  .surg-cat-card, .surg-ref-card, .surg-page-card,
  .dental-cat-card, .dental-ref-card, .dental-page-card,
  .vet-cat-card, .ref-dropdown-card, .full-vet-page,
  .homepage-implant-card, .implant-card,
  .beauty-expanded .card, .matched-product-card, .real-product-card
) :is(a.btn, a.small-btn, button.btn, button.small-btn, [role="button"]):link,
html body.v64-medtech-layout main :is(
  .surg-cat-card, .surg-ref-card, .surg-page-card,
  .dental-cat-card, .dental-ref-card, .dental-page-card,
  .vet-cat-card, .ref-dropdown-card, .full-vet-page,
  .homepage-implant-card, .implant-card,
  .beauty-expanded .card, .matched-product-card, .real-product-card
) :is(a.btn, a.small-btn, button.btn, button.small-btn, [role="button"]):visited {
  background: var(--ths-product-button-surface) !important;
  background-color: var(--ths-product-button-surface) !important;
  color: var(--ths-product-button-text) !important;
  -webkit-text-fill-color: var(--ths-product-button-text) !important;
}

/* Visitor Statistics value badges: white numbers on maroon universally. */
html body.v64-medtech-layout > footer
  .ths-visitor-stats__dialog
  .ths-visitor-stats__result
  .ths-visitor-stats__metric
  > .ths-visitor-stats__number {
  background: #76172f !important;
  background-color: #76172f !important;
  border-color: #76172f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

html body.v64-medtech-layout main :is(
  .surg-cat-card, .surg-ref-card, .surg-page-card,
  .dental-cat-card, .dental-ref-card, .dental-page-card,
  .vet-cat-card, .ref-dropdown-card, .full-vet-page,
  .homepage-implant-card, .implant-card,
  .beauty-expanded .card, .matched-product-card, .real-product-card
) :is(a.btn, a.small-btn, button.btn, button.small-btn, [role="button"]) * {
  color: var(--ths-product-button-text) !important;
  -webkit-text-fill-color: var(--ths-product-button-text) !important;
}
