/* =====================================================
   Premium product page (admin-managed, paid)
   Rendered inside layouts/main for above-Basic manufacturers.
   Shares the visual language of premium-profile.css.
   ===================================================== */
.pd {
    --pd-primary: var(--primary, #0d6efd);
    --pd-dark: #0b1220;
    --pd-accent: #7dd3fc;
    --pd-line: #e5e7eb;
    --pd-muted: #6b7280;
    color: #1f2937;
}
/* No .container override — see premium-profile.css. Bootstrap + miimd.css
   already size it; pinning 1200px made this page narrower than the header. */
.pd-section { padding: 2.5rem 0; }
.pd-muted { background: #f6f8fb; }

/* Section + card shells */
.pd-card {
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: 10px;
    padding: 1.4rem;
    height: 100%;
}
.pd-eyebrow {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pd-muted);
    margin-bottom: .9rem;
}
.pd-h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pd-primary);
    margin-bottom: .8rem;
    line-height: 1.35;
}
.pd-body { font-size: .87rem; line-height: 1.75; color: #374151; }
.pd-body p { margin-bottom: .8rem; }
.pd-body p:last-child { margin-bottom: 0; }

/* Icon lists */
.pd-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.pd-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .84rem;
    line-height: 1.5;
    color: #374151;
    padding: .4rem 0;
}
.pd-list li > i {
    color: var(--pd-primary);
    font-size: .9rem;
    margin-top: .18rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.pd-list--check li > i { color: #10b981; }
.pd-bullets { list-style: none; padding: 0; margin: .6rem 0 0; }
.pd-bullets li {
    position: relative;
    padding: .22rem 0 .22rem .85rem;
    font-size: .81rem;
    line-height: 1.5;
    color: var(--pd-muted);
}
.pd-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .68rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pd-primary);
}

/* Grids */
.pd-grid { display: grid; gap: 1.25rem; }
.pd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pd-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pd-grid-overview { grid-template-columns: .9fr 1fr 1.05fr; }
.pd-grid-flow { grid-template-columns: 1fr; }

/* -----------------------------------------------------
   Anchor nav
   ----------------------------------------------------- */
.pd-nav { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--pd-line); }
.pd-nav-inner { display: flex; align-items: center; gap: 1rem; height: 58px; }
.pd-nav-brand { font-weight: 800; color: var(--pd-primary); white-space: nowrap; }
.pd-nav-links { display: flex; gap: 1.25rem; list-style: none; margin: 0 auto 0 1.5rem; padding: 0; flex-wrap: wrap; }
.pd-nav-links a { color: #374151; font-size: .88rem; text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.pd-nav-links a:hover { color: var(--pd-primary); border-bottom-color: var(--pd-primary); }
.pd-nav-cta { background: var(--pd-primary); color: #fff; padding: .5rem 1rem; border-radius: 6px; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pd-nav-cta:hover { color: #fff; opacity: .92; }

/* -----------------------------------------------------
   Hero
   ----------------------------------------------------- */
.pd-hero {
    background: linear-gradient(135deg, var(--pd-dark) 0%, #12324a 100%);
    color: #fff;
    padding: 3rem 0;
}
.pd-hero-grid { display: grid; grid-template-columns: 1.05fr 1.05fr 230px; gap: 2rem; align-items: center; }
.pd-hero h1 { font-size: 2.5rem; font-weight: 800; color: #fff !important; margin-bottom: .5rem; line-height: 1.12; }
.pd-hero-tagline { color: var(--pd-accent); font-size: 1.15rem; font-weight: 600; line-height: 1.4; margin-bottom: 1rem; }
.pd-hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; font-size: .76rem; }
.pd-hero-tags span { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); padding: .22rem .6rem; border-radius: 20px; }
.pd-hero-tags b { color: rgba(255,255,255,.55); font-weight: 600; align-self: center; }
.pd-hero-desc { color: rgba(255,255,255,.8); font-size: .87rem; line-height: 1.75; }
.pd-hero-desc p { margin-bottom: .7rem; }
.pd-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--pd-primary);
    color: #fff;
    padding: .65rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: .87rem;
}
.pd-btn:hover { color: #fff; opacity: .92; }
.pd-btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); }
.pd-btn--light { background: #fff; color: var(--pd-dark); }
.pd-btn--light:hover { color: var(--pd-dark); }

.pd-hero-media { text-align: center; }
.pd-hero-media img { max-width: 100%; max-height: 300px; object-fit: contain; }
.pd-hero-media-ph {
    height: 240px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px dashed rgba(255,255,255,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.35);
    font-size: 2.5rem;
}
.pd-hero-badges { display: flex; flex-direction: column; gap: .6rem; }
.pd-badge { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.96); color: var(--pd-dark); border-radius: 10px; padding: .7rem .9rem; }
.pd-badge i { font-size: 1.15rem; color: var(--pd-primary); width: 24px; text-align: center; flex-shrink: 0; }
.pd-badge-title { font-weight: 700; font-size: .82rem; line-height: 1.3; }
.pd-badge-sub { font-size: .72rem; color: var(--pd-muted); }

/* -----------------------------------------------------
   Feature strip
   ----------------------------------------------------- */
.pd-strip { background: #fff; border-bottom: 1px solid var(--pd-line); }
.pd-strip-inner { display: flex; flex-wrap: wrap; }
.pd-strip-item {
    flex: 1 1 0;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem .9rem;
    border-right: 1px solid var(--pd-line);
}
.pd-strip-item:last-child { border-right: none; }
.pd-strip-item i { color: var(--pd-primary); font-size: 1.1rem; flex-shrink: 0; }
.pd-strip-item span { font-size: .78rem; font-weight: 700; color: #374151; line-height: 1.3; }

/* -----------------------------------------------------
   Snapshot & status tables
   ----------------------------------------------------- */
.pd-table { width: 100%; border-collapse: collapse; font-size: .81rem; }
.pd-table th {
    background: #eef4ff;
    color: var(--pd-dark);
    font-weight: 700;
    text-align: left;
    padding: .55rem .7rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pd-table td { padding: .55rem .7rem; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.pd-table tr:last-child td { border-bottom: none; }
.pd-table td:first-child { color: var(--pd-primary); font-weight: 600; width: 46%; }
.pd-table td i { margin-right: .4rem; opacity: .75; }
.pd-status-value { display: inline-flex; align-items: center; gap: .35rem; }
.pd-status-value i { color: #10b981; }

/* -----------------------------------------------------
   Challenge note
   ----------------------------------------------------- */
.pd-note {
    margin-top: 1rem;
    background: #eef4ff;
    border-radius: 8px;
    padding: .8rem 1rem;
    font-size: .82rem;
    line-height: 1.6;
    color: #374151;
}

/* -----------------------------------------------------
   How it works
   ----------------------------------------------------- */
/* Sized so a six-step flow stays on one row inside the 1.9fr column. */
.pd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(102px, 1fr)); gap: .5rem; }
.pd-step { text-align: center; padding: 0 .35rem; position: relative; }
.pd-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--pd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin: 0 auto .7rem;
}
.pd-step h4 { font-size: .85rem; font-weight: 700; margin-bottom: .35rem; color: var(--pd-dark); }
.pd-step p { font-size: .76rem; color: var(--pd-muted); line-height: 1.5; margin: 0; }
.pd-step:not(:last-child)::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 18px;
    right: -8px;
    color: var(--pd-line);
    font-size: .75rem;
}

/* -----------------------------------------------------
   Key highlights panel (dark)
   ----------------------------------------------------- */
.pd-highlights {
    background: linear-gradient(160deg, var(--pd-dark) 0%, #12324a 100%);
    border-radius: 10px;
    padding: 1.4rem;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pd-highlights .pd-eyebrow { color: var(--pd-accent); }
.pd-highlights ul { list-style: none; padding: 0; margin: 0; }
.pd-highlights li { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; line-height: 1.5; padding: .38rem 0; color: rgba(255,255,255,.9); }
.pd-highlights li i { color: #10b981; margin-top: .2rem; flex-shrink: 0; }
.pd-highlights img { width: 100%; border-radius: 8px; margin-top: 1.1rem; object-fit: cover; }

/* -----------------------------------------------------
   Feature / benefit cards
   ----------------------------------------------------- */
.pd-fcard { background: #fff; border: 1px solid var(--pd-line); border-radius: 10px; padding: 1.1rem; height: 100%; }
.pd-fcard-head { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .3rem; }
.pd-fcard-head i {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--pd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.pd-fcard-head h4 { font-size: .88rem; font-weight: 700; color: var(--pd-primary); line-height: 1.35; margin: .3rem 0 0; }

/* -----------------------------------------------------
   Two-column icon lists (applications, partnerships)
   ----------------------------------------------------- */
/* Single column: Clinical Applications and Competitive Advantages read
   down the page rather than splitting into two. */
.pd-split { columns: 1; }
.pd-split .pd-list { margin-top: 0; }
.pd-split li { break-inside: avoid; }

.pd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .75rem; }
.pd-tile { text-align: center; border: 1px solid var(--pd-line); border-radius: 8px; padding: .8rem .4rem; }
.pd-tile i { color: var(--pd-primary); font-size: 1.15rem; display: block; margin-bottom: .45rem; }
.pd-tile span { font-size: .72rem; color: var(--pd-muted); line-height: 1.3; display: block; }

/* Target user groups */
.pd-group + .pd-group { margin-top: 1rem; }
.pd-group h5 { font-size: .82rem; font-weight: 700; color: var(--pd-primary); margin-bottom: .2rem; }

/* Evidence */
.pd-evidence-img { width: 100%; border-radius: 8px; margin-top: 1rem; }

/* -----------------------------------------------------
   Dark closing band: manufacturer / connect / perspective
   ----------------------------------------------------- */
.pd-dark-band { background: var(--pd-dark); padding: 2.5rem 0; color: #fff; }
.pd-dark-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    padding: 1.4rem;
    height: 100%;
}
.pd-dark-card .pd-eyebrow { color: var(--pd-accent); }
.pd-dark-card p { font-size: .84rem; line-height: 1.75; color: rgba(255,255,255,.78); }
.pd-dark-card img { width: 100%; border-radius: 8px; margin-bottom: 1rem; object-fit: cover; }
.pd-quote { position: relative; }
.pd-quote > i { font-size: 1.4rem; color: var(--pd-accent); opacity: .8; margin-bottom: .7rem; display: block; }

/* Connect requirement cards */
.pd-connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1rem; }
.pd-connect-card {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .7rem .75rem;
    color: #fff;
    text-decoration: none;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.35;
    transition: background .15s ease, border-color .15s ease;
}
.pd-connect-card:hover { background: rgba(255,255,255,.14); border-color: var(--pd-accent); color: #fff; text-decoration: none; }
.pd-connect-card i { color: var(--pd-accent); font-size: .9rem; margin-top: .1rem; flex-shrink: 0; }

/* -----------------------------------------------------
   Next-steps rail
   ----------------------------------------------------- */
.pd-next { background: #f6f8fb; border-top: 1px solid var(--pd-line); padding: 2rem 0; }
.pd-next-grid { display: grid; grid-template-columns: 30% 1fr; align-items: center; gap: 1.5rem; }
.pd-next-head { min-width: 0; }
.pd-next-head h3 { font-size: 1rem; font-weight: 800; color: var(--pd-dark); margin-bottom: .3rem; }
.pd-next-head p { font-size: .78rem; color: var(--pd-muted); margin: 0; }
.pd-next-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
.pd-next-step { text-align: center; width: auto; position: relative; }
.pd-next-step i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto .45rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--pd-line);
    color: var(--pd-primary);
    font-size: .9rem;
}
.pd-next-step span { font-size: .68rem; color: var(--pd-muted); line-height: 1.3; display: block; }
.pd-next-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 21px;
    left: calc(50% + 26px);
    width: calc(100% - 52px + .4rem);
    height: 1px;
    background: var(--pd-line);
}

/* -----------------------------------------------------
   Responsive
   ----------------------------------------------------- */
@media (max-width: 1100px) {
    .pd-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .pd-grid-overview { grid-template-columns: 1fr 1fr; }
    .pd-grid-flow { grid-template-columns: 1fr; }
    .pd-hero-grid { grid-template-columns: 1.1fr 1fr; }
    .pd-hero-badges { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .pd-hero-badges .pd-badge { flex: 1 1 200px; }
    .pd-next-step:not(:last-child)::after { display: none; }
}

@media (max-width: 860px) {
    .pd-nav-links { display: none; }
    .pd-hero { padding: 2rem 0; }
    .pd-hero-grid { grid-template-columns: 1fr; }
    .pd-hero h1 { font-size: 1.85rem; }
    .pd-hero-tagline { font-size: 1rem; }
    .pd-grid-2,
    .pd-grid-3,
    .pd-grid-4,
    .pd-grid-overview,
    .pd-connect-grid { grid-template-columns: 1fr; }
    .pd-split { columns: 1; }
    .pd-step:not(:last-child)::after { display: none; }
    .pd-next-step { width: 78px; }
}


/* =====================================================
   Website Changes 02 — dark bands, single-column lists,
   centred partnership tiles, manufacturer split section.
   Dark value #0b1220 matches --pd-dark and the profile page.
   ===================================================== */

/* Sections that turn dark. Every colour is restated: the light-background
   defaults are unreadable on navy. */
.pd-section--dark { background: var(--pd-dark); color: #fff; }
/* EVERY card variant inside a dark section must go dark too. .pd-fcard was
   missed here once: the card stayed solid white while the rules below turned
   its text white, so Key Benefits rendered as four blank cards. */
.pd-section--dark .pd-card,
.pd-section--dark .pd-fcard {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.09);
}
.pd-section--dark .pd-eyebrow { color: var(--pd-accent); }
.pd-section--dark .pd-h3 { color: #fff; }
.pd-section--dark p,
.pd-section--dark li,
.pd-section--dark span { color: rgba(255,255,255,.78); }
.pd-section--dark h4 { color: #fff; }
/* .pd-body carries its own dark colour and often holds the text directly,
   so the p/li/span rules above never reach it. */
.pd-section--dark .pd-body,
.pd-section--dark .pd-body p { color: rgba(255,255,255,.78); }
.pd-section--dark .pd-step-icon { background: rgba(255,255,255,.08); color: var(--pd-accent); }
.pd-section--dark .pd-tile { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.pd-section--dark .pd-tile span { color: rgba(255,255,255,.85); }
.pd-section--dark table th { background: rgba(255,255,255,.06); color: #fff; }
.pd-section--dark table td { border-color: rgba(255,255,255,.09); color: rgba(255,255,255,.78); }

/* Partnership tiles: icon centred above its label. The tile is display:block,
   so flex properties are inert here — centre the icon with auto margins. */
.pd-tiles .pd-tile { text-align: center; }
.pd-tiles .pd-tile i { display: block; width: fit-content; margin: 0 auto .35rem; }

/* About the Manufacturer, split out as its own white section */
.pd-maker { background: #fff; }
.pd-maker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
/* No image uploaded — one column, so the copy uses the whole width. */
.pd-maker-grid--solo { grid-template-columns: 1fr; }
.pd-maker-img { align-self: center; }
.pd-maker-img img { width: 100%; height: auto; border-radius: 12px; display: block; }
.pd-maker-body p { font-size: .88rem; line-height: 1.8; color: var(--pd-muted); }
/* This section leads the page's closing block, so its label reads as a real
   heading rather than the small uppercase eyebrow used elsewhere. */
.pd-maker-body .pd-eyebrow {
    font-size: 1.5rem;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--pd-dark);
    line-height: 1.3;
    margin-bottom: .65rem;
}
.pd-maker-body .pd-maker-name { font-size: 1.05rem; color: var(--pd-dark); margin-bottom: 1rem; }

@media (max-width: 900px) {
    .pd-maker-grid { grid-template-columns: 1fr; }
    .pd-next-grid { grid-template-columns: 1fr; }
    .pd-next-rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
}

/* Hero gallery — main image plus thumbnails when a product has several */
.pd-gallery { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.pd-gallery-main { max-width: 100%; max-height: 300px; object-fit: contain; }

/* -----------------------------------------------------
   PHOTO GALLERY — 3-up carousel + lightbox
   ----------------------------------------------------- */
.pd-pg {
    --pg-per-view: 3;   /* the JS reads this, so breakpoints stay the single source of truth */
    --pg-gap: 1rem;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    margin-top: 1.5rem;
}
.pd-pg-viewport { overflow: hidden; }
.pd-pg-track {
    display: flex;
    gap: var(--pg-gap);
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.pd-pg-slide {
    /* Each slide is 1/perView of the viewport, minus its share of the gaps. */
    flex: 0 0 calc((100% - (var(--pg-per-view) - 1) * var(--pg-gap)) / var(--pg-per-view));
    padding: 0;
    /* #f6f8fb matches .pd-muted's surface; --pd-muted is a grey TEXT colour. */
    background: #f6f8fb;
    border: 1px solid var(--pd-line);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}
.pd-pg-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    /* contain, not cover: these are product shots and logos of mixed ratios,
       and cropping a logo looks like a bug. */
    object-fit: contain;
    transition: transform .3s ease;
}
.pd-pg-slide:hover img { transform: scale(1.04); }

.pd-pg-nav {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: 50%;
    color: var(--pd-dark);
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}
.pd-pg-nav:hover:not(:disabled) { background: #f6f8fb; }
.pd-pg-nav:disabled { opacity: .35; cursor: default; }

/* Nothing to scroll (1–2 images, or fewer than fit): centre them and drop the
   arrows, so a small gallery reads as intentional rather than broken. */
.pd-pg--static .pd-pg-track { justify-content: center; }
.pd-pg--static .pd-pg-nav { display: none; }
/* A lone image needs no thumbnail strip to jump between. */
.pd-pg--single .pd-pg-thumbs { display: none; }

.pd-pg-thumbs {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
    margin-top: .5rem;
}
.pd-pg-thumb {
    width: 62px; height: 62px; padding: 2px;
    background: #fff;
    border: 2px solid var(--pd-line);
    border-radius: 8px;
    cursor: pointer; overflow: hidden;
}
.pd-pg-thumb.is-active { border-color: var(--pd-accent); }
.pd-pg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Lightbox: a bare frame — the image is the content. */
.pd-lightbox .modal-content {
    position: relative;
    background: transparent;
    border: 0;
}
.pd-lightbox img {
    width: 100%; height: auto;
    max-height: 88vh; object-fit: contain;
    border-radius: 10px;
}
.pd-lightbox-close {
    /* Inside the frame, not offset outside it — at modal-xl the negative
       offsets fell past the viewport edge and clipped the button. */
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 0; border-radius: 50%;
    color: var(--pd-dark); font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

@media (max-width: 991.98px) { .pd-pg { --pg-per-view: 2; } }
@media (max-width: 575.98px) {
    .pd-pg { --pg-per-view: 1; }
    .pd-pg-thumb { width: 50px; height: 50px; }
}
