html body .mma-has-product-gallery > :is(.image-wrapper, .product-image-list-container) {
  display: none !important;
}

.mma-product-gallery {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 16px;
  background: var(--mma-white);
  border: 1px solid var(--mma-line);
  border-radius: var(--mma-radius);
  color: var(--mma-graphite);
}

.mma-product-gallery .mma-product-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
}

.mma-product-gallery .mma-product-photo-caption,
.mma-product-gallery .mma-catalogue-status {
  margin: 0;
  text-align: center;
}

.mma-product-gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

html:root body .mma-product-gallery .mma-product-gallery-controls button {
  min-width: 42px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid var(--mma-blue) !important;
  border-radius: var(--mma-radius);
  background: var(--mma-white) !important;
  color: var(--mma-blue) !important;
  font: 600 .875rem var(--mma-body);
  cursor: pointer;
}

html:root body .mma-product-gallery .mma-product-gallery-controls button:hover {
  background: var(--mma-ice) !important;
}

html:root body .mma-product-gallery .mma-product-gallery-controls button[aria-pressed="true"] {
  color: var(--mma-silver) !important;
  background: var(--mma-blue) !important;
}

.mma-catalogue-status {
  color: var(--mma-graphite);
  font-size: .82rem;
  line-height: 1.5;
}

.mma-catalogue-entry .mma-catalogue-status {
  display: block;
  margin-top: 6px;
}

.mma-catalogue-entry .hl-product-list-item-details {
  width: 100%;
}

.mma-catalogue-entry .hl-product-list-product-image {
  object-fit: contain;
}

html[data-mma-page="home"] body [data-zdp-retatrutide-image][src*="/mma-products/"] {
  mix-blend-mode: multiply;
}

.mma-catalogue-page {
  margin: 0;
  min-height: 100vh;
}

.mma-catalogue-page :is(header, footer) {
  padding: 10px max(24px, calc((100vw - 1100px) / 2));
  background: var(--mma-ice);
}

.mma-catalogue-page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--mma-white);
  border-bottom: 1px solid var(--mma-line);
}

.mma-catalogue-page a {
  color: var(--mma-blue);
}

.mma-catalogue-page main {
  max-width: 1100px;
  min-height: 65vh;
  margin: auto;
  padding: clamp(32px, 6vw, 76px) 24px;
}

.mma-catalogue-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.mma-catalogue-detail h1 {
  margin: 8px 0 16px;
  font: 600 clamp(2rem, 5vw, 3.5rem)/1.1 var(--mma-display);
}

.mma-catalogue-detail p {
  line-height: 1.6;
}

.mma-catalogue-detail .mma-catalogue-price {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (max-width: 660px) {
  .mma-catalogue-detail {
    grid-template-columns: 1fr;
  }

  .mma-product-gallery .mma-product-photo {
    max-height: 420px;
  }
}

/* Keep the local catalogue limited to the MMA price list. */
html:root body a:is(
  [href*="/product/6a7d261be9b56b1d9fee37f9"],
  [href*="/product/6a7a9fbad46da10e55cae166"],
  [href*="/product/6a7a9f9f5699aa3535da63e2"],
  [href*="/product/6a7a9f974476535f552a639f"],
  [href*="/product/6a69acb955c9cca97c00045a"],
  [href*="/product/6a68276555c9cc8900eee730"],
  [href*="/product/6a7d24103cd77e5121557426"]
),
html:root body .product-list-container > .relative:has(> a:is(
  [href*="/product/6a7d261be9b56b1d9fee37f9"],
  [href*="/product/6a7a9fbad46da10e55cae166"],
  [href*="/product/6a7a9f9f5699aa3535da63e2"],
  [href*="/product/6a7a9f974476535f552a639f"],
  [href*="/product/6a69acb955c9cca97c00045a"],
  [href*="/product/6a68276555c9cc8900eee730"],
  [href*="/product/6a7d24103cd77e5121557426"]
)) {
  display: none !important;
}
.hl-product-list-item-details:has(> .mma-catalogue-prices) :is(.ecomm-price-desktop-container, .ecomm-price-mobile-container, .hl-product-list-product-price) {
  display: none !important;
}

.mma-catalogue-prices {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0;
  color: var(--mma-graphite);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.55;
}

.mma-catalogue-price-note {
  color: var(--mma-graphite);
  font-size: 0.875rem;
}

/* The homepage highlights eight MMA entries from the same catalogue manifest. */
@layer mma-clinical {
  #featured-products-y1LBqK-mbP .mma-home-native-replaced { display: none !important; }
}
.mma-home-products { width: 100%; min-width: 0; }
.mma-home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.mma-home-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--mma-white);
  border: 1px solid var(--mma-line);
  border-radius: var(--mma-radius);
  overflow: hidden;
  color: var(--mma-graphite);
}
.mma-home-product-image { display: block; padding: 20px; background: var(--mma-white); }
.mma-home-product-image img { display: block; width: 100%; height: 240px; object-fit: contain; }
.mma-home-product-info { display: flex; flex: 1; flex-direction: column; padding: 20px; border-top: 1px solid var(--mma-line); }
.mma-home-product-info h3 { margin: 0 0 8px; font: 600 20px/1.3 var(--mma-display); color: var(--mma-graphite); }
.mma-home-product-info p { color: var(--mma-graphite); font-family: var(--mma-body); }
.mma-home-product-sizes { margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.mma-home-product-price { margin: auto 0 18px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mma-home-product-info .mma-action { display: flex; align-items: center; justify-content: center; padding: 12px; font-size: 12px; text-align: center; }
.mma-home-price-note { margin: 18px 0 0; font: 400 12px/1.6 var(--mma-body); color: var(--mma-graphite); }
@media (max-width: 1000px) {
  .mma-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  .mma-home-product-grid { gap: 12px; }
  .mma-home-product-image { padding: 12px; }
  .mma-home-product-image img { height: 180px; }
  .mma-home-product-info { padding: 12px; }
  .mma-home-product-info h3 { font-size: 16px; }
  .mma-home-product-price { font-size: 14px; }
  .mma-home-product-sizes { min-height: 39px; font-size: 12px; }
}
@media (max-width: 350px) {
  .mma-home-product-grid { grid-template-columns: 1fr; }
}

/* Local catalogue values always take precedence over live GHL price labels. */
@layer mma-clinical {
  .mma-native-catalogue-price,
  .mma-local-pricing :is(.ecomm-price-desktop-container, .ecomm-price-mobile-container,
    .hl-product-detail-product-price, .hl-product-detail-price-override,
    .hl-product-detail-price-discount) { display: none !important; }
  body :is(.mma-pdf-price, .mma-detail-selected-price) {
    color: var(--mma-graphite) !important;
    font-family: var(--mma-body) !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
  }
  body .mma-pdf-price { margin: 12px 0 20px !important; font-size: 16px !important; line-height: 1.5 !important; }
  body .mma-detail-pricing { margin: 16px 0 24px !important; }
  body .mma-detail-selected-price { margin: 0 0 12px !important; font-size: 24px !important; line-height: 1.4 !important; }
  body .mma-detail-variant-prices { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
  body .mma-detail-variant-prices li { padding: 6px 10px; border: 1px solid var(--mma-line); border-radius: var(--mma-radius); font: 400 13px/1.5 var(--mma-body); color: var(--mma-graphite); }
  body .mma-detail-variant-prices li.is-selected { border-color: var(--mma-blue); background: var(--mma-ice); }
  body .mma-detail-pricing .mma-detail-price-note { margin: 0 !important; max-width: 52ch; color: var(--mma-graphite) !important; font: 400 12px/1.6 var(--mma-body) !important; }
}

/* shadcn/ui-inspired input, native select and segmented toggle treatments.
   Native controls keep the existing GHL search/filter handlers and keyboard UX.
   Reference: https://ui.shadcn.com/docs/components/radix/toggle-group */
@layer mma-clinical {
  #zdp-catalogue-controls .zdp-catalogue-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 20px !important;
    padding: 20px !important;
    margin-top: 28px !important;
    background: var(--mma-white) !important;
    border: 1px solid var(--mma-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgb(18 48 77 / 4%) !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-filter-group {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1fr) !important;
    flex: 1 1 540px !important;
    gap: 16px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
  #zdp-catalogue-controls :is(.zdp-catalogue-search-wrap, .zdp-catalogue-category-wrap) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  #zdp-catalogue-controls :is(.zdp-catalogue-search-wrap, .zdp-catalogue-category-wrap) > label {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    white-space: normal !important;
    color: var(--mma-graphite) !important;
    font: 500 12px/1.4 var(--mma-body) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  #zdp-catalogue-controls :is(.zdp-catalogue-search, .zdp-catalogue-category) {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-width: none !important;
    padding: 0 14px !important;
    background-color: var(--mma-white) !important;
    color: var(--mma-graphite) !important;
    border: 1px solid var(--mma-line) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgb(31 35 40 / 4%) !important;
    font: 400 16px/1.5 var(--mma-body) !important;
    transition: border-color 160ms ease, box-shadow 160ms ease !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-category { padding-right: 32px !important; cursor: pointer; }
  #zdp-catalogue-controls .zdp-catalogue-search::placeholder { color: #626b76 !important; opacity: 1; }
  #zdp-catalogue-controls :is(.zdp-catalogue-search, .zdp-catalogue-category):focus-visible {
    outline: 2px solid var(--mma-blue) !important;
    outline-offset: 2px !important;
    border-color: var(--mma-blue) !important;
    box-shadow: 0 0 0 4px rgb(220 235 255 / 65%) !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-controls-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 48px !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
  }
  #zdp-catalogue-controls [data-zdp-result-count] {
    color: var(--mma-graphite) !important;
    font: 500 12px/1.5 var(--mma-body) !important;
    letter-spacing: 0 !important;
    text-transform: lowercase !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    background: #f3f7fc !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-view-switcher {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    gap: 4px !important;
    padding: 4px !important;
    background: #f3f7fc !important;
    border: 1px solid var(--mma-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-view-switcher button {
    min-width: 58px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: var(--mma-graphite) !important;
    box-shadow: none !important;
    font: 500 13px/1.5 var(--mma-body) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--mma-ease-out) !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-view-switcher button[aria-pressed="true"] {
    background: var(--mma-blue) !important;
    color: var(--mma-silver) !important;
    box-shadow: 0 1px 3px rgb(18 48 77 / 14%) !important;
  }
  @media(hover:hover) and (pointer:fine) {
    #zdp-catalogue-controls :is(.zdp-catalogue-search, .zdp-catalogue-category):hover {
      border-color: var(--mma-steel) !important;
    }
    #zdp-catalogue-controls .zdp-catalogue-view-switcher button:not([aria-pressed="true"]):hover {
      background: var(--mma-white) !important;
    }
    #zdp-catalogue-controls .zdp-catalogue-view-switcher button[aria-pressed="true"]:hover {
      background: var(--mma-blue-hover) !important;
    }
  }
  #zdp-catalogue-controls .zdp-catalogue-view-switcher button:active:not(:focus-visible) {
    transform: scale(.97) !important;
  }
  @media(max-width:700px) {
    #zdp-catalogue-controls .zdp-catalogue-toolbar { padding: 16px !important; gap: 16px !important; border-radius: 14px !important; }
    #zdp-catalogue-controls .zdp-catalogue-filter-group { grid-template-columns: minmax(0,1fr) !important; gap: 14px !important; flex-basis: 100% !important; }
    #zdp-catalogue-controls .zdp-catalogue-controls-right { width: 100% !important; flex-basis: 100% !important; gap: 8px !important; }
  }
  @media(prefers-reduced-motion:reduce) {
    #zdp-catalogue-controls :is(input, select, button) { transition: none !important; }
    #zdp-catalogue-controls button:active { transform: none !important; }
  }
}
@layer mma-clinical {
  #zdp-catalogue-controls .zdp-catalogue-toolbar {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
  #zdp-catalogue-controls .zdp-catalogue-filter-group {
    height: auto !important;
    align-items: end !important;
  }
  @media(max-width:1100px) {
    #zdp-catalogue-controls .zdp-catalogue-controls-right { flex-basis: 100% !important; }
  }
}
@layer mma-clinical {
  .hl-product-list-item-details:has(> .mma-catalogue-prices) > .mma-catalogue-prices {
    order: 4 !important;
    margin: 8px 14px 12px !important;
  }
}

/* MMA product surfaces: remove the inherited beige card fill. */
@layer mma-clinical {
  html body .c-featured-products .product-list-container > .relative,
  html body .c-featured-products .product-list-container > .relative:hover,
  html body .mma-catalogue-entry {
    background: var(--mma-white, #fff) !important;
    color: var(--mma-graphite, #1f2328) !important;
  }
}

/* Catalogue surfaces include the grid surround and image dividers, not just cards. */
@layer mma-clinical {
  html body .c-featured-products,
  html body .c-featured-products .product-list-container {
    background: var(--mma-white) !important;
    color: var(--mma-graphite) !important;
  }
  html body .c-featured-products .product-list-container > .relative,
  html body .c-featured-products .image-wrapper {
    border-color: var(--mma-silver) !important;
  }
}
