/*
 * Homepage redesign components (peptidology4).
 *
 * Loaded only on the front page, versioned by filemtime. Everything here is
 * namespaced home-* so it cannot collide with the existing card and section
 * styles in style.css.
 *
 * Visual language: the --pep-* system from pdp-redesign.css (the Kisspeptin
 * direction), so the homepage and the redesigned PDP read as one site. This
 * file loads on the front page only, so :root tokens here are safe.
 */

:root {
    --pep-primary: #de0076;
    --pep-ink: #171419;
    --pep-body: #4c4551;
    --pep-muted: #6a6570;
    --pep-line: #ece8ec;
    --pep-line2: #f4f1f5;
    --pep-green: #0a7d3f;
    --pep-greenbg: #e7f8ee;
    --pep-greenline: #cddde0;
    --pep-grad: linear-gradient(158deg, #d8fdff 0%, #ffdcef 50%, #ffd6bd 100%);
    --pep-silver: linear-gradient(180deg, #f5f5f7 0%, #fcfcfd 100%);
    --pep-shadow: 0 10px 26px rgba(90, 20, 60, .09);
}

/* ---------- hero: the quality case ---------- */
/* The header is position:fixed and floats over the page; the old hero cleared
   it with padding: 150px (110px mobile). Same clearance, expressed as margin
   because our gradient is an inset card rather than a full-bleed band. */
.home-hero {
    margin-top: 78px;
}

.home-hero__main {
    background: var(--pep-grad);
    border-radius: 26px;
    padding: 24px 20px 22px;
}

.home-hero__eyebrow {
    margin: 0;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pep-primary);
}

.home-hero__title {
    font-family: var(--secondary-font);
    font-weight: 300;
    font-size: clamp(29px, 5.5vw, 48px);
    line-height: 1.07;
    letter-spacing: -.035em;
    margin: 9px 0 11px;
    color: var(--pep-ink);
    text-wrap: balance;
}

.home-hero__title b {
    font-weight: 800;
}

.home-hero__sub {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--pep-body);
    max-width: 52ch;
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .16s ease, transform .16s ease;
}

.home-hero__btn--primary {
    background: var(--pep-primary);
    color: #fff;
    flex: 1 1 0;
}

.home-hero__btn--primary:hover,
.home-hero__btn--primary:focus-visible {
    background: #c30068;
    color: #fff;
    transform: translateY(-1px);
}

.home-hero__btn--ghost {
    background: rgba(255, 255, 255, .85);
    color: var(--pep-ink);
    flex: 0 0 auto;
}

.home-hero__btn--ghost:hover,
.home-hero__btn--ghost:focus-visible {
    background: #fff;
    color: var(--pep-ink);
}

/* ---------- differentiator tiles ---------- */
/* One hairline-divided panel, typographic anchors instead of icons - the
   pep-coa-cell vocabulary. Mobile: three columns, value + label only.
   Desktop: three rows with the evidence line shown. */
.home-hero__tiles {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--white-color);
    border: 1px solid var(--pep-line);
    border-radius: 16px;
    overflow: hidden;
}

.home-hero__tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 12px 14px;
    height: 100%;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}

.home-hero__tile:hover,
.home-hero__tile:focus-visible {
    background: #fafafb;
    color: inherit;
}

/* 2 x 2 on the phone: verticals on the right column, horizontals on row two */
.home-hero__tiles li:nth-child(even) {
    border-left: 1px solid var(--pep-line);
}

.home-hero__tiles li:nth-child(n+3) {
    border-top: 1px solid var(--pep-line);
}

/* the chevron: proof is one tap away; mobile keeps the compact 3-up clean */
.home-hero__tile-arw {
    display: none;
    flex: none;
    color: var(--pep-muted);
    opacity: .55;
    transition: transform .18s ease, opacity .18s ease;
}

.home-hero__tile:hover .home-hero__tile-arw,
.home-hero__tile:focus-visible .home-hero__tile-arw {
    transform: translateX(3px);
    opacity: 1;
    color: var(--pep-primary);
}

.home-hero__tile-val {
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 19px;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--pep-ink);
}

.home-hero__tile-val.is-primary {
    color: var(--pep-primary);
}

.home-hero__tile-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--pep-muted);
}

.home-hero__tile-line,
.home-hero__tile-label--long {
    display: none;
}

/* iPad portrait: the stacked card breathes wider before the desktop split */
@media (min-width: 768px) and (max-width: 991px) {
    .home-hero {
        margin-top: 92px;
    }

    .home-hero__main {
        padding: 32px 30px 28px;
    }

    .home-hero__sub {
        font-size: 15px;
    }

    .home-hero__tile {
        padding: 16px 18px;
    }
}

/* desktop: one gradient band, copy left, tiles stacked right */
@media (min-width: 992px) {
    .home-hero {
        margin-top: 106px;
        background: var(--pep-grad);
        border-radius: 30px;
        padding: 36px 38px;
        display: flex;
        align-items: center;
        gap: 44px;
    }

    .home-hero__main {
        background: none;
        border-radius: 0;
        padding: 0;
        flex: 1 1 56%;
    }

    .home-hero__sub {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .home-hero__btn {
        min-height: 50px;
        padding: 14px 26px;
        font-size: 15px;
        flex: 0 0 auto;
    }

    .home-hero__tiles {
        margin: 0;
        flex: 1 1 44%;
        display: block;
        border: 0;
        border-radius: 18px;
        box-shadow: var(--pep-shadow);
    }

    .home-hero__tile {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 15px 22px;
    }

    .home-hero__tiles li {
        border: 0;
    }

    .home-hero__tiles li + li {
        border-top: 1px solid var(--pep-line);
    }

    .home-hero__tile-arw {
        display: block;
        margin-left: auto;
    }

    .home-hero__tile-txt {
        min-width: 0;
    }

    .home-hero__tile-val {
        font-size: 25px;
        min-width: 76px;
    }

    .home-hero__tile-label {
        font-size: 10px;
    }

    .home-hero__tile-label--long {
        display: inline;
    }

    .home-hero__tile-label--short {
        display: none;
    }

    .home-hero__tile-line {
        display: block;
        font-size: 12.5px;
        line-height: 1.4;
        color: var(--pep-muted);
        margin-top: 2px;
    }
}

/* ---------- trustbox: mobile only, inside the hero card ---------- */
/* Height is reserved so the async Trustpilot script never reflows the fold. */
.home-trustbox {
    margin: 14px 0 0;
    min-height: 24px;
}

@media (min-width: 768px) {
    .home-trustbox {
        display: none;
    }
}

/* ---------- category rail ---------- */
/* Inline chips. Replaces four full-width stacked cards that shared one generic
   icon; the real category thumbnail and the product total both do actual work. */
.home-cat-rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.home-cat-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 7px 12px 7px 7px;
    border: 1px solid var(--pep-line);
    border-radius: 50px;
    background: var(--white-color);
    color: var(--black-color);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.home-cat-chip:hover,
.home-cat-chip:focus-visible {
    border-color: var(--primary-color);
    box-shadow: 0 6px 18px -10px rgba(222, 0, 118, .45);
}

.home-cat-chip__img {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-gray);
    border: 1px solid var(--pep-line);
    display: block;
}

.home-cat-chip__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-cat-chip__name {
    flex: 1 1 auto;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.home-cat-chip__n {
    font-size: 12px;
    font-weight: 700;
    color: var(--pep-muted);
    font-variant-numeric: tabular-nums;
}

.home-cat-chip__arw {
    flex: none;
    opacity: .4;
    color: var(--black-color);
}

/* only meaningful in the desktop tile form, where there is room for a label */
.home-cat-chip__unit {
    display: none;
}

/* ---------- same-day shipping cutoff ---------- */
.home-cutoff {
    margin: 12px 0 0;
}

.home-cutoff__msg {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--pep-greenbg);
    border: 1px solid var(--pep-greenline);
    color: var(--pep-ink);
    font-size: 13.5px;
    line-height: 1.4;
}

.home-cutoff__ico {
    flex: none;
    color: var(--pep-green);
    margin-top: 1px;
}

.home-cutoff__msg strong {
    font-weight: 800;
}

.home-cutoff__sub {
    margin: 3px 0 0 30px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #4d7a5f;
}


/* ---------- the quality program ---------- */
.home-quality__head {
    max-width: 62ch;
}

.home-quality__eyebrow {
    margin: 0;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--pep-primary);
}

.home-quality__title {
    text-transform: none; /* the theme capitalizes h2 globally; this is a sentence */
    font-family: var(--secondary-font);
    font-weight: 300;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--pep-ink);
    margin: 8px 0 10px;
    text-wrap: balance;
}

.home-quality__title b {
    font-weight: 800;
}

.home-quality__sub {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pep-body);
}



/* ---- the sterile fill-finish architecture: five zones, ten stages ---- */
/* Cleanroom grade tightens toward the aseptic core (magenta wash); the
   independent-verification zone is the hero - the one layer we own outright
   and the only one whose proof chip links to checkable evidence. */
.home-quality__arch {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(80vw, 290px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px;
}

.home-quality__zone {
    scroll-snap-align: start;
    background: linear-gradient(180deg, #f7f7f9 0%, #fcfcfd 100%);
    border: 1px solid var(--pep-line);
    border-radius: 18px;
    padding: 14px 13px 13px;
    display: flex;
    flex-direction: column;
}

.home-quality__zone.is-core {
    background: linear-gradient(180deg, #fdf1f8 0%, #fef8fc 100%);
    border-color: #f3cfe3;
}

.home-quality__zone.is-verify {
    background: var(--white-color);
    border: 1.5px solid var(--pep-primary);
    box-shadow: 0 18px 34px -26px rgba(222, 0, 118, .55);
}

.home-quality__zone-t {
    margin: 0 0 11px;
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--pep-ink);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.home-quality__zone-g {
    align-self: flex-start;
    font-size: 9px;
    letter-spacing: .07em;
    font-weight: 800;
    color: var(--pep-muted);
    background: var(--white-color);
    border: 1px solid var(--pep-line);
    border-radius: 50px;
    padding: 3px 8px;
}

.home-quality__zone.is-core .home-quality__zone-g {
    color: var(--pep-primary);
    border-color: #f3cfe3;
}

.home-quality__zone.is-verify .home-quality__zone-g {
    color: #fff;
    background: var(--pep-primary);
    border-color: var(--pep-primary);
}

.home-quality__zstages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1 1 auto;
}

.home-quality__zstage {
    background: var(--white-color);
    border: 1px solid var(--pep-line2);
    border-radius: 13px;
    padding: 11px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.home-quality__zone.is-verify .home-quality__zstage {
    border: 0;
    padding: 2px 2px 4px;
}

.home-quality__zstage-n {
    position: absolute;
    top: 10px;
    right: 11px;
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: .05em;
    color: var(--pep-muted);
    opacity: .75;
}

.home-quality__zone.is-core .home-quality__zstage-n,
.home-quality__zone.is-verify .home-quality__zstage-n {
    color: var(--pep-primary);
    opacity: 1;
}

.home-quality__zstage-t {
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -.01em;
    color: var(--pep-ink);
    padding-right: 26px;
}

.home-quality__zstage-l {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--pep-muted);
}

.home-quality__proofchip {
    align-self: flex-start;
    margin-top: 4px;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: .04em;
    color: var(--pep-muted);
    background: linear-gradient(180deg, #f5f5f7 0%, #fcfcfd 100%);
    border: 1px solid var(--pep-line);
    border-radius: 50px;
    padding: 4px 9px;
}

.home-quality__proofchip.is-link {
    color: #fff;
    background: var(--pep-primary);
    border-color: var(--pep-primary);
    font-size: 10.5px;
    padding: 6px 12px;
    text-decoration: none;
    transition: background .16s ease;
}

.home-quality__proofchip.is-link:hover,
.home-quality__proofchip.is-link:focus-visible {
    background: #c30068;
    color: #fff;
}

.home-quality__syst {
    margin: 2px 0 20px;
    background: var(--pep-ink);
    color: #e8e5ea;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 11.5px;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 992px) {
    .home-quality__arch {
        grid-auto-flow: row;
        grid-template-columns: 1fr 1fr 1.08fr 1fr 1.12fr;
        grid-auto-columns: unset;
        gap: 13px;
        overflow: visible;
        padding-bottom: 8px;
    }
}

/* ---- the live data band ---- */
.home-quality__band {
    background: var(--white-color);
    border: 1px solid var(--pep-line);
    border-radius: 24px;
    box-shadow: var(--pep-shadow, 0 10px 26px rgba(90, 20, 60, .09));
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-quality__bandrow {
    display: flex;
    flex-direction: column;
}


.home-quality__data {
    padding: 4px 0 0;
}

.home-quality__kpis {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.home-quality__kpis li {
    padding: 15px 18px;
    border-bottom: 1px solid var(--pep-line2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-quality__kpis li:nth-child(odd) {
    border-right: 1px solid var(--pep-line2);
}

.home-quality__kpis .v {
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 21px;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--pep-ink);
    font-variant-numeric: tabular-nums;
}

.home-quality__kpis .v.is-green {
    color: var(--pep-green);
}

.home-quality__kpis .k {
    font-size: 11px;
    line-height: 1.45;
    color: var(--pep-muted);
}

.home-quality__purity {
    padding: 15px 18px 13px;
    border-bottom: 1px solid var(--pep-line2);
}

.home-quality__purity-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 11px;
    color: var(--pep-muted);
    margin-bottom: 9px;
}

.home-quality__purity-head b {
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 14px;
    color: var(--pep-green);
}

.home-quality__purity-bar {
    position: relative;
    height: 8px;
    border-radius: 50px;
    background: var(--pep-line2);
}

.home-quality__purity-bar .range {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #f3b1d4 0%, var(--pep-primary) 55%, var(--pep-green) 100%);
}

.home-quality__purity-bar .tick {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--pep-ink);
    transform: translateX(-50%);
}

.home-quality__purity-foot {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--pep-muted);
    margin-top: 6px;
}

.home-quality__cadence {
    padding: 14px 18px 6px;
    border-bottom: 1px solid var(--pep-line2);
}

.home-quality__cadence-label {
    display: block;
    font-size: 11px;
    color: var(--pep-muted);
    margin-bottom: 7px;
}

.home-quality__spark {
    width: 100%;
    height: 38px;
    display: block;
}

.home-quality__foot {
    margin: 0;
    padding: 13px 18px 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 16px;
}

.home-quality__foot .labs {
    font-size: 11px;
    color: var(--pep-muted);
}

.home-quality__foot a {
    font-weight: 700;
    font-size: 13px;
    color: var(--pep-primary);
}

/* ---- process-to-proof rail: the closing argument of the merged section ---- */
.home-quality__proof {
    border-top: 1px solid var(--pep-line);
    background: linear-gradient(90deg, #fff4fa, #fff);
    padding: 16px 18px 18px;
}

.home-quality__proof-t {
    margin: 0 0 12px;
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 13.5px;
    color: var(--pep-ink);
}

.home-quality__proof-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.home-quality__proof-grid li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-quality__proof-grid .q {
    font-size: 12px;
    font-weight: 700;
    color: var(--pep-ink);
}

.home-quality__proof-grid .a {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--pep-muted);
}

.home-quality__proof-grid .a b {
    color: var(--pep-green);
    font-weight: 800;
}

.home-quality__ruo {
    margin: 12px 2px 0;
    font-size: 11px;
    /* not italic: the italic style was the only thing on the page pulling
       the 25KB Inter-italic face; muted small type carries the register */
    color: var(--pep-muted);
}

@media (min-width: 768px) {
    .home-quality__proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 18px;
    }
}

@media (min-width: 992px) {
    .home-quality__bandrow {
        flex-direction: row;
        align-items: stretch;
    }


    .home-quality__data {
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-quality__kpis .v {
        font-size: 25px;
    }

    .home-quality__kpis .k {
        font-size: 12px;
    }

    .home-quality__proof {
        padding: 20px 26px 22px;
    }

    .home-quality__proof-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}


/* ---------- section rhythm: the seams carry color, not just distance ----------
   The category rail hands off to the quality chapter at a soft cleanroom-grey
   wash (white nav -> grey process -> blush shop). Before this, categories'
   80px bottom stacked on quality's 84px top: 164px of meaningless white. */
.home-quality.cmn-gap {
    background: linear-gradient(180deg, #f6f5f8 0%, #fdfdfe 46%, #ffffff 100%);
    border-top: 1px solid var(--pep-line2);
    padding-top: 44px;
    padding-bottom: 56px;
}

.home-cat-sec.cmn-gap {
    padding-top: 52px;
    padding-bottom: 48px;
}

@media (min-width: 992px) {
    .home-cat-sec.cmn-gap {
        padding-top: 64px;
    }
}

/* ---------- one heading system ---------- */
/* The legacy sections (categories, featured, research) shipped 28px centered
   capitalized H2s from style.css - a second design language interleaved with
   the pep one. Every home section head now speaks pep: sentence case, light
   300 with an 800 <strong>, left-aligned, same clamp as the quality title. */
.home-cat-sec .cmn-sec-head h2 {
    font-family: var(--secondary-font);
    font-weight: 300;
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.12;
    letter-spacing: -.03em;
    text-transform: none;
    color: var(--pep-ink);
    margin: 0;
    text-wrap: balance;
}

.home-cat-sec .cmn-sec-head h2 strong {
    font-weight: 800;
    color: inherit;
}


/* ---------- top sellers: the luxury shelf ---------- */
/* Fifteen most-ordered compounds. A swipe rail on the phone (the gesture the
   category rail and pipeline already teach), a 5 x 3 grid on desktop. Rank
   numbers are CSS counters - the DOM order IS the sales order. */
.home-sellers {
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(222, 0, 118, .05) 0%, rgba(222, 0, 118, 0) 60%),
        linear-gradient(180deg, #faf8fa 0%, #fff 72%);
}

.home-featured-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(66vw, 250px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 2px 20px;
    counter-reset: seller;
}

.home-featured-grid > .product {
    counter-increment: seller;
    position: relative;
    width: auto;
    max-width: none;
    padding: 0;
    scroll-snap-align: start;
}

/* the rank: a quiet silver plate; the podium three carry the magenta */
.home-featured-grid > .product::before {
    content: counter(seller, decimal-leading-zero);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 4px 9px;
    border-radius: 50px;
    background: linear-gradient(180deg, #f5f5f7 0%, #fcfcfd 100%);
    border: 1px solid var(--pep-line);
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--pep-muted);
    box-shadow: 0 6px 14px -8px rgba(23, 20, 25, .3);
    pointer-events: none;
}

.home-featured-grid > .product:nth-child(-n+3)::before {
    color: var(--pep-primary);
}

.home-sellers .cmn-product-crd {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border: 1px solid var(--pep-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(23, 20, 25, .03), 0 24px 44px -34px rgba(23, 20, 25, .4);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-sellers .cmn-product-crd:hover {
    transform: translateY(-4px);
    border-color: #e6d8e2;
    box-shadow: 0 1px 0 rgba(23, 20, 25, .03), 0 34px 60px -34px rgba(90, 20, 60, .45);
}

/* One buffer layer between card edge and render (Josh, 2026-08-24) - the
   legacy wrapper inset stays zeroed, this panel padding is the single frame.
   (The vial-only crop was tried and reverted the same day: it magnified the
   600px woocommerce_single thumbnail past its resolution.) */
.home-sellers .product-crd-img {
    background: linear-gradient(180deg, #f7f7f9 0%, #fdfdfe 100%);
    border-bottom: 1px solid var(--pep-line2);
    padding: 14px 14px 6px;
    position: relative;
    overflow: hidden;
}

.home-sellers .cmn-img-ratio img {
    transform: scale(1.05);
    transition: transform .35s ease;
}

.home-sellers .cmn-product-crd:hover .cmn-img-ratio img {
    transform: scale(1.08);
}

/* Left-set, lighter, quieter: the luxury register is weight contrast and
   air, not maximum bold. padding:0 kills the legacy 36px/22px wrapper inset
   (style.css:1764) - the last buffer between the photo and the card edge;
   the title and foot carry their own padding instead. */
.home-sellers .cmn-product-crd {
    text-align: center;
    padding: 0;
}

.home-sellers .product-title-wpr {
    padding: 14px 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-sellers .custom-product-title {
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.25;
    letter-spacing: -.015em;
    text-transform: none;
    color: var(--pep-ink);
    margin: 0;
}

/* ---- foot: one price row, one View pill (the aminoclub anatomy) ---- */
.home-sellers__foot {
    margin-top: auto;
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.home-sellers__price {
    font-family: var(--secondary-font);
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -.005em;
    color: var(--pep-ink);
    font-variant-numeric: tabular-nums;
}

.home-sellers__price del {
    font-weight: 500;
    font-size: 12px;
    color: var(--pep-muted);
    margin-right: 7px;
}

.home-sellers__price ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--pep-primary);
}

.home-sellers__view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 50px;
    background: var(--pep-ink);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .015em;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.home-sellers__view:hover,
.home-sellers__view:focus-visible {
    background: var(--pep-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- the sale chip: a computed "-NN%", quiet and deep, top right ---- */
.home-sellers .onsale {
    position: absolute;
    top: 11px;
    right: 52px;
    left: auto;
    z-index: 3;
    margin: 0;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 50px;
    background: #55102e;
    color: #ffe1c4;
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .05em;
}

/* ---- the proof pill: purity + tier as one clean white capsule, straddling
   the image seam like aminoclub's "View COA" pill sits on the shelf edge ---- */
.home-sellers .pcm-badge-row-loop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    order: -1;
    margin: -30px 0 8px;
    position: relative;
    z-index: 3;
    padding: 7px 12px;
    background: var(--white-color);
    border: 1px solid var(--pep-line);
    border-radius: 50px;
    box-shadow: 0 10px 22px -12px rgba(23, 20, 25, .4);
}

.home-sellers .pcm-badge-row-loop .pcm-badge-purity {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .01em;
    color: var(--pep-ink);
}

/* the tier pill keeps PCM's own gold (14x) / green (7x) inside the capsule.
   Colors are copied verbatim from PCM assets/css/frontend.css because the
   plugin's stylesheet is not enqueued on the front page. */
.home-sellers .pcm-badge-row-loop .pcm-tier-pill {
    margin: 0;
    padding: 3px 8px;
    border-radius: 50px;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .01em;
}

.home-sellers .pcm-badge-row-loop .pcm-tier-pill.pcm-tier-14x {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    color: #78350f;
    border: 1px solid #f59e0b;
}

.home-sellers .pcm-badge-row-loop .pcm-tier-pill.pcm-tier-7x {
    background: #d9f2e5;
    color: #0f6e56;
    border: 1px solid #5dcaa5;
}

.home-sellers .pcm-badge-row-loop .pcm-badge-purity::before {
    content: "\2713\00a0";
    color: var(--pep-green);
    font-weight: 800;
}



@media (min-width: 768px) {
    .home-featured-grid {
        grid-auto-columns: 236px;
    }
}

@media (min-width: 992px) {
    .home-featured-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-columns: unset;
        gap: 26px;
        overflow: visible;
        padding-bottom: 6px;
    }

    /* the shelf breathes wider on big screens; the quality chapter's wash
       owns its seam, so it takes a calmer 56/72 */
    .home-sellers.cmn-gap {
        padding-top: 84px;
        padding-bottom: 84px;
    }

    .home-quality.cmn-gap {
        padding-top: 56px;
        padding-bottom: 72px;
    }
}

/* ---- the width ramp: the canvas widens as density rises ----
   Apple's homepage trick, adapted: a composed statement up top, then each
   act down the page gets a progressively wider footprint, so the densest
   sections (the five-zone architecture, the fifteen-card shelf) gain the
   most room instead of reading as clutter. Bootstrap's .container caps at
   ~1320px; these override per act, desktop only. */
/* Tuned to the measured audience (prod access logs, Aug 2026): desktop is
   ~41% of page views, concentrated at laptop widths — Mac 1440/1470/1512
   (48% of desktop) and Windows 1536 + 1920 (52%). Percentage-based acts
   make the ramp legible at every one of those widths (~45px between acts
   on a 1440 laptop), while the px caps set the ceiling for 1920+ monitors
   where the full 1400→1760 expression lands. Tablets are 0.5% — below
   1200px nothing changes. */
@media (min-width: 1200px) {
    /* Act I — the statement: roomy but composed (10% tighter than the
       first cut, per Josh 2026-08-25 — the ramp opens quieter). The
       cutoff strip rides at hero width so the deadline reads as part of
       the same breath. */
    .home-hero.container,
    .home-cutoff .container {
        max-width: min(1260px, 79%);
    }

    /* Act II — navigate: four category tiles gain shoulder room. */
    .home-cat-sec .container {
        max-width: min(1520px, 92%);
    }

    /* Act III — the dense argument: five zones + proof rail get the
       widest hall short of the shelf. */
    .home-quality .container {
        max-width: min(1640px, 96%);
    }

    /* Act IV — commerce: the shelf reaches the header's full footprint. */
    .home-sellers .container {
        max-width: min(1760px, 100% - 40px);
    }
}

@media (min-width: 1500px) {
    /* Five-up shelf: fifteen top sellers as three perfect rows of five.
       1500, not 1600 — the 1536-wide Windows-laptop cohort and 16-inch
       MacBooks (1512) are among the most common desktop widths measured,
       and they deserve the full-row composition. */
    .home-featured-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ---- iPad and up: the chip becomes a product tile ---- */
@media (min-width: 768px) {
    /* Flex, not grid: with six categories a 4-per-row grid strands two
       tiles left-aligned on the second row. Centered wrapping keeps every
       row composed regardless of category count. */
    .home-cat-rail {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .home-cat-chip {
        flex: 0 1 calc(25% - 10.5px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
    }

    .home-cat-chip__img {
        flex: none;
        width: auto;
        height: 104px;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--pep-line);
        background: linear-gradient(180deg, #f5f5f7 0%, #fcfcfd 100%);
        padding: 10px;
    }

    .home-cat-chip__img img {
        object-fit: contain;
    }

    .home-cat-chip__name {
        flex: none;
        font-size: 15px;
        padding: 12px 15px 0;
    }

    .home-cat-chip__n {
        font-size: 12.5px;
        font-weight: 500;
        padding: 3px 15px 13px;
    }

    .home-cat-chip__unit {
        display: inline;
    }

    /* the tile is the target; the arrow was only ever a chip affordance */
    .home-cat-chip__arw {
        display: none;
    }
}

@media (max-width: 575px) {
    .home-cat-rail { gap: 8px; }
    .home-cat-chip { gap: 8px; padding: 6px 10px 6px 6px; }
    .home-cat-chip__img { flex-basis: 32px; width: 32px; height: 32px; }
    .home-cat-chip__name { font-size: 12.5px; letter-spacing: -.01em; }
    .home-cat-chip__n { font-size: 11px; }
    /* the chevron is decoration once the chip is half-width - the whole chip is the target */
    .home-cat-chip__arw { display: none; }
    .home-cutoff__msg { font-size: 14px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-cat-chip { transition: none; }
}

/* ---- the branded vial photo beside the live data (asset drop-in slot) ---- */
.home-quality__photo {
    padding: 16px 16px 0;
    display: grid;
    place-items: center;
}

.home-quality__photo img {
    width: 100%;
    max-width: 360px;
    height: auto; /* honor the aspect ratio from the width/height attrs (CLS) */
    display: block;
}

@media (min-width: 992px) {
    .home-quality__photo {
        flex: 0 0 38%;
        max-width: 430px;
        border-right: 1px solid var(--pep-line);
        padding: 22px 22px 18px;
    }
}
