/* MyPeptides chrome overrides — thin layer that bridges the Nutreko home-2
 * theme CSS to the MyPeptides clinical voice without forking any of the
 * upstream assets/*.css files. Loaded LAST in the chrome bundle so any
 * selector here wins over theme defaults.
 *
 * Brand voice (MyPeptides_Website_Brief §2.3): generous whitespace,
 * left-aligned everything, photography sparse and clinical, NO icons.
 * Pllex Sans throughout, Plex Mono for ALL numerical values.
 *
 * Why a separate file: every theme override that isn't a token belongs
 * here — wordmark styling, announcement-bar background, footer accent
 * stripe — keeping tokens.css purely declarative and assets/*.css
 * upstream-pristine.
 */

/* ---- Page canvas (off-white, paper-like) ---------------------------- */
.mypeptides {
  background: var(--mp-bg);
  color: var(--mp-text);
  font-family: var(--body-font-family);
  font-size: var(--base-font-size);
  line-height: 1.6;
}

.mypeptides h1, .mypeptides h2, .mypeptides h3,
.mypeptides h4, .mypeptides h5, .mypeptides h6 {
  font-family: var(--hd-font-family);
  color: var(--mp-text);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.mypeptides h1 { font-weight: 300; font-size: 48px; letter-spacing: -0.02em; line-height: 1.1; }
.mypeptides h2 { font-weight: 500; font-size: 32px; }
.mypeptides h3 { font-weight: 500; font-size: 22px; }

.mypeptides p { margin: 0 0 16px; }

/* ---- Wordmark (header + footer) --------------------------------- */
.mypeptides .mypeptides-wordmark {
  font-family: var(--hd-font-family);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.375rem;
  color: var(--mp-text);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

/* Nutreko's header-2 sets `flex: 0 1` on .header__logo at desktop, which
   collapses to zero with no min-content. Combined with the wordmark
   wrapping inside, that renders the brand name letter-by-letter
   vertically. Force the column to size to its content. */
.mypeptides .header__logo {
  flex: 0 0 auto !important;
  min-width: max-content;
}

.mypeptides .mypeptides-wordmark__accent {
  color: var(--mp-accent);
}

.mypeptides .header__logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 56px;
}

.mypeptides .header__logo {
  margin: 0;
}

/* ---- Header layout (header-2 — full container, no vertical menu) ---- */
.mypeptides .header.header-2 {
  background: var(--mp-bg);
  border-bottom: 1px solid var(--mp-border);
  position: relative;
  z-index: 5;
}

.mypeptides .header_wrapper {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.mypeptides .header__inline-wrapper {
  flex: 1 1 auto;
}

.mypeptides .header__linklist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mypeptides .header__linklist-item {
  list-style: none;
}

.mypeptides .header__linklist-link {
  color: var(--mp-text);
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 160ms ease;
}

.mypeptides .header__linklist-link:hover {
  color: var(--mp-accent);
  text-decoration: none;
}

.mypeptides .header__secondary-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.mypeptides .mypeptides-cart-button {
  background: transparent;
  border: 1px solid var(--mp-border);
  color: var(--mp-text);
  padding: 10px 18px;
  border-radius: 2px;
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mypeptides .mypeptides-cart-button:hover {
  background: var(--mp-surface);
  border-color: var(--mp-accent);
  color: var(--mp-accent);
}

.mypeptides .header__ap-cartcount {
  background: var(--mp-accent);
  color: var(--mp-bg);
  border-radius: 2px;
  padding: 0.1em 0.5em;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--mp-mono);
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
}

/* ---- Announcement bar -------------------------------------------- */
.mypeptides .mypeptides-announcementbar {
  background: var(--mp-accent);
  color: var(--mp-bg);
  border-bottom: 1px solid var(--mp-accent);
}

.mypeptides .ap-announcementbar__message {
  color: var(--mp-bg);
  font-family: var(--hd-font-family);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 9px 0;
  justify-content: center;
}

.mypeptides .ap-announcementbar__message-mono {
  font-family: var(--mp-mono);
  font-weight: 500;
}

/* ---- Brand footer (non-compliance) ------------------------------ */
.mypeptides .footer.mypeptides-brand-footer {
  background: var(--mp-surface);
  color: var(--mp-text);
  border-top: 1px solid var(--mp-border);
  padding: 72px 0 32px;
}

.mypeptides .footer__item-title {
  color: var(--mp-text);
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.mypeptides .footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mypeptides .footer__list li {
  margin-bottom: 10px;
}

.mypeptides .footer__list a {
  color: var(--mp-text);
  text-decoration: none;
  font-size: 15px;
}

.mypeptides .footer__list a:hover {
  color: var(--mp-accent);
  text-decoration: none;
}

.mypeptides .mypeptides-footer-brand .mypeptides-wordmark {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.mypeptides .mypeptides-footer-brand__pitch {
  color: var(--mp-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}

.mypeptides .mypeptides-footer-mailto {
  margin-top: 14px;
  font-size: 15px;
}

.mypeptides .mypeptides-footer-mailto a {
  color: var(--mp-accent);
  text-decoration: none;
  font-family: var(--mp-mono);
}

.mypeptides .footer__item-list.row {
  gap: 24px 0;
}

@media (max-width: 991px) {
  .mypeptides .header__inline-wrapper {
    display: none;
  }
  .mypeptides .header_wrapper {
    padding: 14px 16px;
  }
}

/* ===================================================================
 * SHOP — table-style listing per Brief §3.2.
 * Each row reads like a research-paper data row, NOT a product card.
 * Plex Sans for compound names, Plex Mono for ALL numerical values.
 * =================================================================== */
.mypeptides .mp-collection {
  background: var(--mp-bg);
  padding: 64px 0 96px;
}

.mypeptides .mp-collection__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.mypeptides .mp-collection__header h1 {
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.mypeptides .mp-collection__lede {
  color: var(--mp-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 640px;
}

.mypeptides .mp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
}

.mypeptides .mp-filter-chip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--mp-border);
  border-radius: 2px;
  background: var(--mp-bg);
  color: var(--mp-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.mypeptides .mp-filter-chip:hover {
  border-color: var(--mp-accent);
  color: var(--mp-accent);
}

.mypeptides .mp-filter-chip--active {
  background: var(--mp-accent);
  color: var(--mp-bg);
  border-color: var(--mp-accent);
}

.mypeptides .mp-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--mp-border);
  font-size: 13px;
  color: var(--mp-muted);
}

.mypeptides .mp-meta-bar select,
.mypeptides .mp-meta-bar input,
.mypeptides .mp-pdp-qty {
  background: var(--mp-bg);
  color: var(--mp-text);
  border: 1px solid var(--mp-border);
  border-radius: 2px;
  padding: 6px 10px;
  font-family: var(--mp-mono);
  font-size: 13px;
}

/* The table-style product listing.
 * <ap-productlist class="mp-product-table"> wraps the rows.
 * Each <product-item> renders a single row. */
.mypeptides .mp-product-table {
  display: block;
  width: 100%;
  margin: 0;
}

.mypeptides .mp-product-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.2fr)   /* Compound */
    minmax(200px, 2fr)     /* Tagline */
    minmax(80px, 0.8fr)    /* Class */
    minmax(80px, 0.6fr)    /* Dose */
    minmax(80px, 0.7fr)    /* Price */
    minmax(60px, 0.5fr);   /* View link */
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--mp-border);
  text-decoration: none;
  color: var(--mp-text);
  transition: background 120ms ease;
}

.mypeptides .mp-product-row:hover {
  background: var(--mp-surface);
}

.mypeptides .mp-product-row__compound {
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 18px;
  color: var(--mp-text);
  margin: 0;
}

.mypeptides .mp-product-row__tagline {
  color: var(--mp-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.mypeptides .mp-product-row__class {
  color: var(--mp-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.mypeptides .mp-product-row__dose,
.mypeptides .mp-product-row__price {
  font-family: var(--mp-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--mp-data);
  margin: 0;
  letter-spacing: 0.01em;
}

.mypeptides .mp-product-row__view {
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 13px;
  color: var(--mp-accent);
  letter-spacing: 0.04em;
  text-align: right;
}

.mypeptides .mp-product-row__view::after {
  content: "  ›";
  margin-left: 4px;
}

@media (max-width: 900px) {
  .mypeptides .mp-product-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
  .mypeptides .mp-product-row__view {
    text-align: left;
  }
}

.mypeptides .mp-empty-state {
  color: var(--mp-muted);
  text-align: left;
  padding: 48px 0;
  font-size: 15px;
}

/* ===================================================================
 * PDP — split layout per Brief §3.3.
 * Left column 60%: compound name, tagline, data table, ATC.
 * Right column 40%: vial photo (placeholder), COA link.
 * =================================================================== */
.mypeptides .mp-pdp {
  background: var(--mp-bg);
  padding: 64px 0 96px;
}

.mypeptides .mp-pdp__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.mypeptides .mp-pdp__main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.mypeptides .mp-pdp__data-col h1 {
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.mypeptides .mp-pdp__descriptor {
  color: var(--mp-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 540px;
}

.mypeptides .mp-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  border-top: 1px solid var(--mp-border);
}

.mypeptides .mp-data-table tr {
  border-bottom: 1px solid var(--mp-border);
}

.mypeptides .mp-data-table th,
.mypeptides .mp-data-table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.mypeptides .mp-data-table th {
  font-family: var(--hd-font-family);
  font-weight: 500;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  width: 35%;
  padding-right: 16px;
}

.mypeptides .mp-data-table td {
  font-family: var(--mp-mono);
  font-weight: 500;
  color: var(--mp-data);
  letter-spacing: 0.01em;
}

.mypeptides .mp-data-table td.mp-data-table__prose {
  font-family: var(--body-font-family);
  font-weight: 400;
  color: var(--mp-text);
  letter-spacing: 0;
}

.mypeptides .mp-pdp__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 32px 0 24px;
}

.mypeptides .mp-pdp__price-amount {
  font-family: var(--mp-mono);
  font-weight: 500;
  font-size: 28px;
  color: var(--mp-text);
  letter-spacing: 0.01em;
}

.mypeptides .mp-pdp__form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
}

.mypeptides .mp-pdp__qty-label {
  font-size: 13px;
  color: var(--mp-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mypeptides .mp-pdp__qty {
  width: 64px;
  text-align: center;
  background: var(--mp-bg);
  border: 1px solid var(--mp-border);
  border-radius: 2px;
  padding: 12px 8px;
  color: var(--mp-text);
  font-family: var(--mp-mono);
  font-size: 15px;
}

.mypeptides .mp-pdp__add {
  background: var(--mp-accent);
  color: var(--mp-bg);
  border: 1px solid var(--mp-accent);
  padding: 14px 28px;
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.mypeptides .mp-pdp__add:hover {
  background: var(--mp-bg);
  color: var(--mp-accent);
}

.mypeptides .mp-pdp__ruo {
  margin: 16px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mp-muted);
  text-transform: uppercase;
}

.mypeptides .mp-pdp__media {
  position: sticky;
  top: 24px;
}

.mypeptides .mp-pdp__media-frame {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 2px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mypeptides .mp-pdp__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mypeptides .mp-pdp__media-placeholder {
  font-family: var(--mp-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--mp-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mypeptides .mp-pdp__coa-link {
  margin-top: 16px;
  display: block;
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  color: var(--mp-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.mypeptides .mp-pdp__coa-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .mypeptides .mp-pdp__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mypeptides .mp-pdp__media {
    position: static;
  }
}

.mypeptides .mp-pdp__notes {
  margin: 64px 0 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--mp-border);
  max-width: 720px;
}

.mypeptides .mp-pdp__notes h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 16px;
}

.mypeptides .mp-pdp__notes p {
  color: var(--mp-text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.mypeptides .mp-pdp__related {
  margin: 64px 0 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--mp-border);
}

.mypeptides .mp-pdp__related h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

/* ===================================================================
 * Tab system on PDP (Notes / Methodology / Shipping)
 * =================================================================== */
.mypeptides .mp-tabs {
  margin: 64px 0 0;
}

.mypeptides .mp-tabs__list {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--mp-border);
  padding: 0;
  list-style: none;
  margin: 0 0 24px;
}

.mypeptides .mp-tabs__trigger {
  background: transparent;
  border: 0;
  padding: 14px 0;
  color: var(--mp-muted);
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 140ms ease, border-color 140ms ease;
}

.mypeptides .mp-tabs__trigger:hover {
  color: var(--mp-text);
}

.mypeptides .mp-tabs__trigger.active,
.mypeptides .mp-tabs__trigger[aria-selected="true"] {
  color: var(--mp-accent);
  border-bottom-color: var(--mp-accent);
}

.mypeptides .mp-tabs__panel[hidden] {
  display: none;
}

.mypeptides .mp-tabs__panel p {
  max-width: 720px;
}

/* ===================================================================
 * Home — Brief §3.1. Left-aligned hero statement, table-form catalog
 * below, methods callout at the bottom.
 * =================================================================== */
.mypeptides .mp-home {
  background: var(--mp-bg);
  padding: 96px 0 96px;
}

.mypeptides .mp-home__hero {
  margin: 0 0 96px;
  max-width: 760px;
}

.mypeptides .mp-home__hero-statement {
  font-family: var(--hd-font-family);
  font-weight: 300;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--mp-text);
  margin: 0 0 24px;
}

.mypeptides .mp-home__hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mp-muted);
  margin: 0 0 32px;
  max-width: 560px;
}

.mypeptides .mp-home__hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.mypeptides .mp-home__hero-cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--mp-accent);
  color: var(--mp-bg);
  border: 1px solid var(--mp-accent);
  text-decoration: none;
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 160ms ease, color 160ms ease;
}

.mypeptides .mp-home__hero-cta:hover {
  background: var(--mp-bg);
  color: var(--mp-accent);
}

.mypeptides .mp-home__hero-cta--ghost {
  background: transparent;
  color: var(--mp-accent);
  border-color: var(--mp-border);
}

.mypeptides .mp-home__hero-cta--ghost:hover {
  background: var(--mp-surface);
  border-color: var(--mp-accent);
}

.mypeptides .mp-home__catalog-header {
  margin: 0 0 24px;
  max-width: 760px;
}

.mypeptides .mp-home__catalog-header h2 {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 8px;
}

.mypeptides .mp-home__catalog-lede {
  color: var(--mp-muted);
  font-size: 16px;
  margin: 0;
}

.mypeptides .mp-home__methods-callout {
  margin: 96px 0 0;
  padding: 48px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  max-width: 900px;
}

.mypeptides .mp-home__methods-callout h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--mp-text);
}

.mypeptides .mp-home__methods-callout p {
  color: var(--mp-text);
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 16px;
  max-width: 720px;
}

.mypeptides .mp-home__methods-link {
  display: inline-block;
  font-family: var(--hd-font-family);
  font-weight: 500;
  font-size: 14px;
  color: var(--mp-accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mypeptides .mp-home__methods-link::after {
  content: "  ›";
  margin-left: 4px;
}

.mypeptides .mp-home__methods-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .mypeptides .mp-home__hero-statement {
    font-size: 40px;
  }
  .mypeptides .mp-home__methods-callout {
    padding: 32px 24px;
  }
}
