/**
 * B2B Product Hub, Product Category archives and SCF Product detail refinements.
 * Shared card, FAQ, button and typography primitives remain in the global/catalog CSS.
 */

.product-hub,
.product-category-page,
.product-b2b-detail {
    background: #fff;
}

.product-hub-breadcrumbs {
    margin: 0 0 24px;
    color: var(--color-muted, #667085);
    font-size: .82rem;
}

.product-hub-breadcrumbs ol {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.product-hub-breadcrumbs li + li::before {
    margin-right: 8px;
    color: #a9b5ad;
    content: '/';
}

.product-hub-breadcrumbs a {
    color: var(--color-secondary-text, #4f8c45);
}

/* Product Hub hero */
.product-hub-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(112, 167, 92, .12) 0 11%, transparent 11.3%),
        linear-gradient(118deg, #f4f8f1 0%, #ffffff 58%, #f7f4ec 100%);
}

.product-hub-hero__grid {
    display: grid;
    min-height: 620px;
    padding-block: clamp(66px, 7vw, 104px);
    align-items: center;
    grid-template-columns: minmax(0, 1.04fr) minmax(500px, .96fr);
    gap: clamp(54px, 5.5vw, 84px);
}

.product-hub-hero__copy h1 {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--color-heading, #171d29);
    font-size: var(--type-hero-page);
    line-height: 1.02;
    letter-spacing: -.052em;
}

.product-hub-hero__lead {
    max-width: 700px;
    margin: 24px 0 0;
    color: var(--color-muted, #59636f);
    font-size: var(--type-lead, 1.125rem);
    line-height: 1.72;
}

.product-hub-hero__actions {
    margin-top: 30px;
}

.product-hub-hero__visual {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 520px;
    margin: 0;
    border: 1px solid rgba(37, 77, 50, .09);
    border-radius: 30px;
    background: #eef4e9;
    box-shadow: 0 28px 70px rgba(30, 54, 36, .12);
}

.product-hub-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.product-hub-hero__panel {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    padding: 24px 26px 22px;
    border: 1px solid rgba(37, 77, 50, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(30, 54, 36, .12);
    backdrop-filter: blur(10px);
}

.product-hub-hero__panel h2 {
    max-width: 520px;
    margin: 7px 0 8px;
    color: var(--color-heading, #171d29);
    font-size: clamp(1.35rem, 1.7vw, 1.7rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.product-hub-hero__panel > p:not(.kr-kicker) {
    max-width: 620px;
    margin: 0;
    color: var(--color-muted, #59636f);
    font-size: .91rem;
    line-height: 1.58;
}

.product-hub-hero__steps {
    display: flex;
    margin: 18px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.product-hub-hero__steps li {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf5e9;
    color: #456f3d;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Shared Product Hub section heading */
.product-hub-section-head,
.product-hub-manufacturing__head {
    display: grid;
    margin-bottom: 44px;
    align-items: end;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: clamp(48px, 6vw, 88px);
}

.product-hub-section-head h2,
.product-hub-manufacturing__head h2 {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-heading, #171d29);
    font-size: var(--type-section-title);
    line-height: 1.07;
    letter-spacing: -.045em;
}

.product-hub-section-head > p,
.product-hub-manufacturing__head > p {
    max-width: 570px;
    margin: 0;
    color: var(--color-muted, #59636f);
    font-size: 1.03rem;
    line-height: 1.72;
}

.product-hub-section-head--compact {
    margin-bottom: 34px;
}

/* Six dosage-form cards */
.product-hub-formats {
    scroll-margin-top: 92px;
}

.product-format-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-format-card {
    overflow: hidden;
    border: 1px solid #dfe7df;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(27, 54, 35, .055);
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.product-format-card:hover,
.product-format-card:focus-within {
    border-color: #c8dac8;
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(27, 54, 35, .1);
}

.product-format-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #eff5ec;
}

.product-format-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.product-format-card:hover .product-format-card__media img {
    transform: scale(1.025);
}

.product-format-card__body {
    padding: 28px 28px 30px;
}

.product-format-card__body h3 {
    margin: 8px 0 12px;
    color: var(--color-heading, #171d29);
    font-size: clamp(1.35rem, 1.65vw, 1.7rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.product-format-card__body h3 a {
    color: inherit;
}

.product-format-card__body > p:not(.kr-kicker) {
    min-height: 76px;
    margin: 0;
    color: var(--color-muted, #59636f);
    font-size: .95rem;
    line-height: 1.68;
}

.product-format-card__tags {
    display: flex;
    margin: 22px 0 20px;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.product-format-card__tags li {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf5e9;
    color: #456f3d;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.2;
}

/* Product direction cards are reused on dosage-form category archives. */
.product-hub-product-grid .kr-product-card {
    box-shadow: 0 12px 34px rgba(25, 47, 31, .045);
}

.product-hub-product-grid .kr-product-card h3 {
    margin: 7px 0 12px;
    font-size: 1.45rem;
    line-height: 1.16;
    letter-spacing: -.03em;
}

.product-hub-product-grid .kr-product-card h3 a {
    color: inherit;
}

.product-hub-product-grid .kr-product-card__body > p:not(.kr-kicker) {
    color: var(--color-muted, #59636f);
    font-size: .94rem;
    line-height: 1.66;
}

/* Private label vs custom formulation */
.product-route-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-route-card {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 3vw, 42px);
    border: 1px solid #dfe8df;
    border-radius: 24px;
    background: #fff;
}

.product-route-card--green {
    border-color: #d4e2d1;
    background: linear-gradient(135deg, #edf6e8, #f9fbf7);
}

.product-route-card__code {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #73ad61;
    color: #fff;
    font-size: .76rem;
    font-weight: 850;
}

.product-route-card h3 {
    max-width: 570px;
    margin: 8px 0 13px;
    color: var(--color-heading, #171d29);
    font-size: clamp(1.55rem, 1.85vw, 1.9rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.product-route-card > p:not(.kr-kicker) {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--color-muted, #59636f);
    font-size: .97rem;
    line-height: 1.68;
}

.product-route-card__tags {
    display: flex;
    margin: 22px 0 10px;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.product-route-card__tags li {
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf5e9;
    color: #456f3d;
    font-size: .72rem;
    font-weight: 760;
    line-height: 1.2;
}

.product-route-card--green .product-route-card__tags li {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(86, 137, 72, .12);
}

.product-route-card__link {
    margin-top: 10px;
}

/* Connected manufacturing section */
.product-hub-manufacturing {
    background: #f1f7ed;
}

.product-hub-manufacturing__head {
    margin-bottom: 34px;
}

.product-hub-process {
    display: grid;
    border-top: 1px solid #d7e4d3;
    border-bottom: 1px solid #d7e4d3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-hub-process article {
    position: relative;
    display: grid;
    min-height: 232px;
    padding: 32px 32px;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
}

.product-hub-process article + article::before {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 0;
    width: 1px;
    background: rgba(106, 143, 98, .22);
    content: '';
}

.product-hub-process article > span {
    color: #86b875;
    font-family: var(--font-numeric, inherit);
    font-size: clamp(2.55rem, 3vw, 3rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.05em;
}

.product-hub-process h3 {
    margin: 8px 0 11px;
    color: var(--color-heading, #171d29);
    font-size: 1.45rem;
    line-height: 1.16;
    letter-spacing: -.03em;
}

.product-hub-process p:not(.kr-kicker) {
    margin: 0;
    color: var(--color-muted, #59636f);
    font-size: .94rem;
    line-height: 1.64;
}

.product-hub-manufacturing__link {
    min-height: 44px;
    margin-top: 24px;
    padding: 11px 18px;
}

/* Product Category landing pages */
.product-category-hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(112, 167, 92, .10) 0 12%, transparent 12.3%),
        linear-gradient(120deg, #f4f8f1, #fff 60%, #f7f3eb);
}

.product-category-hero__grid {
    display: grid;
    min-height: 590px;
    padding-block: clamp(64px, 7vw, 94px);
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr);
    gap: clamp(58px, 6vw, 90px);
}

.product-category-hero__copy h1 {
    max-width: 790px;
    margin: 11px 0 0;
    color: var(--color-heading, #171d29);
    font-size: var(--type-hero-page);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.product-category-hero__lead {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--color-muted, #59636f);
    font-size: var(--type-lead, 1.125rem);
    line-height: 1.7;
}

.product-category-hero__media {
    overflow: hidden;
    margin: 0;
    border: 1px solid #dfe8df;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(29, 56, 36, .11);
}

.product-category-hero__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.product-category-hero__media figcaption {
    padding: 22px 26px 24px;
}

.product-category-hero__media figcaption span,
.product-category-hero__media figcaption strong {
    display: block;
}

.product-category-hero__media figcaption span {
    color: var(--color-secondary-text, #4f8c45);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.product-category-hero__media figcaption strong {
    margin-top: 7px;
    color: var(--color-heading, #171d29);
    font-size: .92rem;
    line-height: 1.5;
}

.product-category-catalog {
    padding-block: var(--kr-section-md);
    scroll-margin-top: 92px;
}

.product-category-catalog--empty {
    padding-block: var(--kr-section-sm);
}

.product-category-section-head:not(.product-hub-section-head--compact) {
    margin-bottom: 38px;
}

.product-category-catalog--empty .product-category-section-head {
    margin-bottom: 26px;
}

.product-category-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-category-product-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    box-shadow: 0 14px 38px rgba(27, 54, 35, .055);
    transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.product-category-product-card:hover,
.product-category-product-card:focus-within {
    border-color: #c8dac8;
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(27, 54, 35, .095);
}

.product-category-product-card .kr-product-card__media img {
    transition: transform .35s ease;
}

.product-category-product-card:hover .kr-product-card__media img {
    transform: scale(1.025);
}

.product-category-product-card .kr-product-card__body {
    display: flex;
    height: 100%;
    padding: 26px 26px 28px;
    flex-direction: column;
}

.product-category-product-card .kr-product-card__body > p:not(.kr-kicker) {
    margin-bottom: 0;
}

.product-category-product-card__tags {
    display: flex;
    margin: 18px 0 19px;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
}

.product-category-product-card__tags li {
    padding: 6px 9px;
    border-radius: 999px;
    background: #edf5e9;
    color: #456f3d;
    font-size: .69rem;
    font-weight: 760;
    line-height: 1.2;
}

.product-category-product-card .text-link {
    margin-top: auto;
    padding-top: 4px;
}

.product-category-customization {
    padding-block: var(--kr-section-md);
    background: #f7f8f3;
}

.product-category-customization .kr-card,
.product-category-packaging .kr-card {
    min-height: 0;
    padding: clamp(28px, 2.6vw, 38px);
}

.product-category-customization .kr-card__tag,
.product-category-packaging .kr-card__tag {
    margin-bottom: 24px;
}

.product-category-customization .kr-card h3,
.product-category-packaging .kr-card h3 {
    margin-bottom: 13px;
    font-size: clamp(1.35rem, 1.55vw, 1.62rem);
    line-height: 1.13;
}

.product-category-customization .kr-card p,
.product-category-packaging .kr-card p {
    font-size: .95rem;
    line-height: 1.65;
}

.product-category-customization .kr-card ul,
.product-category-packaging .kr-card ul {
    margin-top: 18px;
    gap: 8px;
}

.product-category-customization .kr-card li,
.product-category-packaging .kr-card li {
    font-size: .87rem;
}

.product-category-manufacturing {
    padding-block: var(--kr-section-md);
    background: #f0f6ec;
}

.product-category-process {
    display: grid;
    border-top: 1px solid #d7e4d3;
    border-bottom: 1px solid #d7e4d3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-category-process article {
    position: relative;
    display: grid;
    min-height: 212px;
    padding: 30px 32px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
}

.product-category-process article + article::before {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 0;
    width: 1px;
    background: rgba(106, 143, 98, .22);
    content: '';
}

.product-category-process article > span {
    color: #86b875;
    font-family: var(--font-numeric, inherit);
    font-size: clamp(2.8rem, 3.2vw, 3.2rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.05em;
}

.product-category-process h3 {
    margin: 8px 0 11px;
    color: var(--color-heading, #171d29);
    font-size: 1.45rem;
    line-height: 1.16;
    letter-spacing: -.03em;
}

.product-category-process p:not(.kr-kicker) {
    margin: 0;
    color: var(--color-muted, #59636f);
    font-size: .94rem;
    line-height: 1.64;
}

.product-category-manufacturing__link {
    min-height: 44px;
    margin-top: 24px;
    padding: 11px 18px;
}

.product-category-packaging {
    padding-block: var(--kr-section-md);
    background: #fff;
}

.product-category-starting-point {
    padding-block: var(--kr-section-md);
    background: #f7f8f3;
}

.product-category-starting-point .product-hub-section-head--compact {
    margin-bottom: 30px;
}

.product-category-route-grid .product-route-card {
    padding: clamp(28px, 2.45vw, 36px);
}

.product-category-route-grid .product-route-card h3 {
    margin-top: 9px;
}

.product-category-route-grid .product-route-card__tags {
    margin-top: 18px;
}

.product-category-empty {
    display: grid;
    padding: 30px 34px;
    align-items: center;
    border: 1px solid #dce7d9;
    border-radius: 22px;
    background: #f5f8f2;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
}

.product-category-empty h3 {
    margin: 7px 0 9px;
    color: var(--color-heading, #171d29);
    font-size: 1.5rem;
    line-height: 1.14;
}

.product-category-empty p:not(.kr-kicker) {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--color-muted, #59636f);
}

.product-category-faq {
    padding-block: var(--kr-section-md);
}

.product-category-faq .kr-faq {
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.52fr);
    gap: clamp(54px, 6vw, 96px);
}

.product-category-faq .kr-faq__intro h2 {
    max-width: 560px;
}

.product-category-faq .kr-faq__list {
    gap: 10px;
}

.product-category-faq .kr-faq__list details {
    padding-inline: 26px;
    border-radius: 18px;
}

.product-category-faq .kr-faq__list summary {
    padding-block: 20px;
    font-size: 18px;
}

.product-category-faq .kr-faq__list summary::after {
    font-size: 22px;
    opacity: .78;
}

.product-category-faq .kr-faq__list details p {
    padding-bottom: 22px;
    font-size: 16px;
}

/* Product detail: only small B2B-specific adjustments; the catalog stylesheet owns the base. */
.product-b2b-detail .kr-product-hero__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-b2b-detail .kr-product-card h3 {
    font-size: 1.4rem;
}

/* FAQ and final CTA use shared components; only hub-specific proportions are tuned here. */
.product-hub-faq .kr-faq {
    grid-template-columns: minmax(300px, .68fr) minmax(0, 1.48fr);
    gap: clamp(54px, 6.5vw, 104px);
}


.product-hub-faq .kr-faq__intro h2 {
    max-width: 530px;
}

.product-hub-faq .kr-faq__intro p:not(.kr-kicker) {
    max-width: 470px;
}

.product-hub-faq .kr-faq__list {
    gap: 10px;
}

.product-hub-faq .kr-faq__list details {
    padding-inline: 26px;
    border-radius: 18px;
}

.product-hub-faq .kr-faq__list summary {
    padding-block: 20px;
    font-size: 18px;
}

.product-hub-faq .kr-faq__list summary::after {
    font-size: 22px;
    opacity: .78;
}

.product-hub-faq .kr-faq__list details p {
    padding-bottom: 22px;
    font-size: 16px;
}

.product-hub .kr-cta-section .kr-callout,
.product-b2b-detail .kr-cta-section .kr-callout {
    width: min(100%, 1240px);
    margin-inline: auto;
}

.product-category-page .kr-cta-section .kr-callout {
    width: min(100%, 1320px);
    margin-inline: auto;
}

@media (max-width: 1100px) {
    .product-hub-hero__grid,
    .product-category-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr);
        gap: 48px;
    }

    .product-format-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-category-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-hub-process article,
    .product-category-process article {
        padding-inline: 25px;
        grid-template-columns: 54px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .product-hub-hero__grid,
    .product-category-hero__grid,
    .product-hub-section-head,
    .product-hub-manufacturing__head,
    .product-route-grid,
    .product-category-empty,
    .product-hub-faq .kr-faq,
    .product-category-faq .kr-faq {
        grid-template-columns: 1fr;
    }

    .product-hub-hero__grid,
    .product-category-hero__grid {
        min-height: 0;
    }

    .product-hub-hero__visual {
        max-width: 720px;
        min-height: 500px;
    }

    .product-hub-hero__image {
        min-height: 500px;
    }

    .product-hub-section-head,
    .product-hub-manufacturing__head {
        align-items: start;
        gap: 20px;
    }

    .product-hub-process,
    .product-category-process {
        grid-template-columns: 1fr;
    }

    .product-hub-process article,
    .product-category-process article {
        min-height: 0;
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .product-hub-process article + article,
    .product-category-process article + article {
        border-top: 1px solid #d7e4d3;
    }

    .product-hub-process article + article::before,
    .product-category-process article + article::before {
        display: none;
    }
}

@media (max-width: 680px) {
    .product-hub-hero__grid,
    .product-category-hero__grid {
        padding-block: 46px 58px;
    }

    .product-hub-hero__visual {
        min-height: 430px;
        border-radius: 22px;
    }

    .product-hub-hero__image {
        min-height: 430px;
    }

    .product-hub-hero__panel {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 20px;
        border-radius: 17px;
    }

    .product-hub-hero__panel > p:not(.kr-kicker) {
        font-size: .86rem;
    }

    .product-hub-hero__steps {
        margin-top: 14px;
    }

    .product-format-grid,
    .product-category-product-grid {
        grid-template-columns: 1fr;
    }

    .product-format-card__body {
        padding: 24px;
    }

    .product-format-card__body > p:not(.kr-kicker) {
        min-height: 0;
    }

    .product-route-card {
        min-height: 0;
        padding: 28px 24px;
    }

    .product-route-card__code {
        margin-bottom: 20px;
    }

    .product-hub-process article,
    .product-category-process article {
        padding: 28px 2px;
    }

    .product-category-hero__media {
        border-radius: 20px;
    }

    .product-category-empty {
        padding: 28px 24px;
        gap: 24px;
    }

    .product-category-empty .button {
        width: 100%;
    }
}
