/* ===================================================================
   /products — consumables & spares hub (2026-11-12)
   -------------------------------------------------------------------
   Direction: Swiss / minimal B2B (ui-ux-pro-max "minimalism-and-swiss-
   style", same as /machines): strict grid, generous white space, one
   accent, 1px borders over heavy shadows, clear type hierarchy.

   Accessibility:
   - Small magenta text uses --brand-700 (#a81264, 7.5:1 on white);
     --brand (#e2208c, 4.36:1) is kept for rules/large/decorative use.
   - Every link/button is >= 44px tall; focus rings are visible.
   - No data-aos: nothing is hidden waiting for JavaScript. The filter
     chips carry [hidden] in HTML and are revealed by products-hub.js.
   - Hover motion is removed under prefers-reduced-motion.
   Loaded only on /products via $page['css'].
   =================================================================== */

.ph-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0 0 14px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-700);
}
.ph-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); flex: 0 0 auto; }
.ph-eyebrow-light { color: var(--brand-tint-2); }

.ph-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.6rem);
    line-height: 1.06; letter-spacing: -.01em;
    color: var(--ink); margin: 0 0 18px;
}
.ph-h1-sub {
    display: block; margin-top: 8px;
    font-family: var(--font-body); font-weight: 500; letter-spacing: 0;
    font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); color: var(--ink-70);
}
.ph-h2 {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.4rem);
    line-height: 1.15; color: var(--ink); margin: 0 0 12px;
}
.ph-lede { color: var(--ink-70); font-size: 1.04rem; line-height: 1.65; margin: 0; max-width: 62ch; }
.ph-head { max-width: 720px; margin-bottom: clamp(26px, 3vw, 40px); }

/* ---------- Hero ---------- */
.ph-hero {
    padding-block: clamp(12px, 2vw, 28px) clamp(36px, 4vw, 60px);
    background:
        radial-gradient(60% 70% at 85% 35%, var(--brand-tint) 0%, rgba(253,242,248,0) 70%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    border-bottom: 1px solid var(--line);
}
.ph-hero .quick-answer {
    color: var(--ink-70); font-size: 1.04rem; line-height: 1.7;
    margin: 0 0 26px; max-width: 60ch;
    padding-left: 16px; border-left: 3px solid var(--brand-tint-2);
}
.ph-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ph-btn { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding-inline: 24px; }
.ph-btn-line {
    min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px;
    border: 1.5px solid var(--line-strong); border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--surface);
    transition: border-color .2s ease, color .2s ease;
}
.ph-btn-line:hover { border-color: var(--ink); color: var(--ink); }
.ph-btn-line:focus-visible, .ph-chip:focus-visible, .ph-link:focus-visible,
.ph-mparts a:focus-visible, .ph-glist a:focus-visible, .ph-table a:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 2px;
}

.ph-hero-figure { margin: 0; }
.ph-hero-frame {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(14px, 2vw, 24px); box-shadow: var(--sh-md);
    aspect-ratio: 1280 / 853;
}
.ph-hero-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ph-hero-cap { margin: 12px 2px 0; font-size: .86rem; line-height: 1.5; color: var(--ink-50); }

.ph-facts {
    list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
    overflow: hidden;
}
.ph-facts li { padding: 18px 22px; border-left: 1px solid var(--line); }
.ph-facts li:first-child { border-left: 0; }
.ph-facts strong {
    display: block; font-family: var(--font-display); font-weight: 400;
    font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.1; color: var(--ink);
}
.ph-facts span { display: block; margin-top: 4px; font-size: .88rem; color: var(--ink-70); }
@media (max-width: 767.98px) {
    .ph-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-facts li:nth-child(odd) { border-left: 0; }
    .ph-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Range ---------- */
.ph-range-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 12px 24px; margin-bottom: 22px;
}
.ph-range-head > div { max-width: 720px; }
.ph-count { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink-70); }

.ph-filter { margin: 0 0 26px; }
.ph-filter-label { margin: 0 0 10px; font-size: .86rem; font-weight: 600; color: var(--ink-70); }
.ph-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ph-chip {
    min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
    padding: 0 18px; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: var(--surface);
    color: var(--ink); font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.ph-chip:hover { border-color: var(--ink); }
.ph-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ph-chip-n {
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-3); color: var(--ink-70); font-size: .78rem;
}
.ph-chip[aria-pressed="true"] .ph-chip-n { background: rgba(255,255,255,.18); color: #fff; }

.ph-group-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 34px 0 16px; }

.ph-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: clamp(16px, 2vw, 24px);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.ph-grid > li { min-width: 0; display: flex; }
.ph-grid > li[hidden] { display: none; }

.ph-card {
    position: relative; flex: 1; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ph-card:hover { border-color: var(--line-strong); box-shadow: var(--sh-md); transform: translateY(-3px); }
.ph-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.ph-card .stretched-link:focus-visible { outline: none; }
.ph-card-figure {
    position: relative; aspect-ratio: 1 / 1; background: var(--surface-2);
    border-bottom: 1px solid var(--line); display: grid; place-items: center;
}
.ph-card-figure img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .35s ease; }
.ph-card:hover .ph-card-figure img { transform: scale(1.03); }
.ph-card-placeholder { color: var(--ink-40); }
.ph-ref {
    position: absolute; left: 12px; top: 12px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.94); border: 1px solid var(--line);
    font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-70);
}
.ph-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.ph-card-title { margin: 0; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.ph-card-title a { color: inherit; text-decoration: none; }
.ph-card:hover .ph-card-title a { color: var(--brand-700); }
.ph-fits { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--ink-70); }
.ph-fits-k {
    display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px;
    background: var(--accent-tint); color: var(--accent-600);
    font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.ph-meta {
    margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 0 0; border-top: 1px dashed var(--line);
}
.ph-meta dt { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-50); }
.ph-meta dd { margin: 2px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.ph-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ph-price { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.ph-price small { display: block; font-size: .76rem; font-weight: 500; color: var(--ink-50); margin-top: 2px; }
.ph-price-q { font-size: .98rem; color: var(--ink-70); }
.ph-go {
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    font-size: .88rem; font-weight: 700; color: var(--brand-700);
}
.ph-go svg { transition: transform .2s ease; }
.ph-card:hover .ph-go svg { transform: translateX(3px); }
.ph-empty { margin: 18px 0 0; color: var(--ink-70); }

/* ---------- By machine ---------- */
.ph-machines { border-top: 1px solid var(--line); }
.ph-mgrid {
    list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2vw, 24px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.ph-mgrid > li { display: flex; }
.ph-mcard {
    flex: 1; display: flex; gap: 18px; align-items: flex-start;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.ph-mcard > img {
    flex: 0 0 auto; width: 88px; height: 88px; object-fit: contain;
    border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); padding: 6px;
}
.ph-mcard-body { min-width: 0; flex: 1; }
.ph-mcard-title { margin: 0; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.ph-mcard-n { margin: 2px 0 10px; font-size: .86rem; font-weight: 600; color: var(--ink-50); }
.ph-mparts { list-style: none; margin: 0 0 12px; padding: 0; }
.ph-mparts li + li { border-top: 1px solid var(--line); }
.ph-mparts a {
    display: flex; align-items: center; min-height: 44px; padding: 4px 0;
    color: var(--ink); font-size: .93rem; text-decoration: none;
}
.ph-mparts a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.ph-mcard-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ph-link {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: .9rem; font-weight: 700; color: var(--accent); text-decoration: none;
}
.ph-link:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent-600); }

/* ---------- Compare table (stacks under 768px) ---------- */
.ph-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.ph-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ph-table th, .ph-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ph-table thead th {
    border-top: 0; background: var(--surface-3);
    font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70);
}
.ph-table tbody th { font-weight: 600; max-width: 380px; }
.ph-table tbody th a { color: var(--ink); text-decoration: none; }
.ph-table tbody th a:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.ph-table-ref { display: block; margin-top: 3px; font-size: .78rem; font-weight: 600; color: var(--ink-50); }
.ph-table td { color: var(--ink-70); }
.ph-table .ph-num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.ph-table tbody tr:hover { background: var(--surface-2); }
@media (max-width: 767.98px) {
    .ph-table-wrap { border: 0; background: none; border-radius: 0; overflow: visible; }
    .ph-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .ph-table, .ph-table tbody, .ph-table tr, .ph-table th, .ph-table td { display: block; width: 100%; max-width: none; }
    .ph-table tr {
        margin-bottom: 14px; padding: 6px 0;
        border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
    }
    .ph-table tbody th { border-top: 0; padding: 12px 16px; font-size: .98rem; }
    .ph-table td {
        display: flex; justify-content: space-between; gap: 16px;
        padding: 9px 16px; text-align: right;
    }
    .ph-table td::before {
        content: attr(data-label); text-align: left; flex: 0 0 auto;
        font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-50);
    }
    .ph-table .ph-num { white-space: normal; }
    .ph-table tbody tr:hover { background: var(--surface); }
}

/* ---------- Steps ---------- */
.ph-steps {
    list-style: none; margin: 0; padding: 0; counter-reset: ph-step;
    display: grid; gap: clamp(16px, 2vw, 24px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.ph-steps li {
    counter-increment: ph-step; position: relative;
    padding: 24px 22px 22px; border-top: 3px solid var(--ink); background: var(--surface-2);
    border-radius: 0 0 var(--r) var(--r);
}
.ph-steps li::before {
    content: counter(ph-step, decimal-leading-zero);
    display: block; margin-bottom: 10px;
    font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--brand-700);
}
.ph-steps h3 { margin: 0 0 6px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.ph-steps p { margin: 0; color: var(--ink-70); font-size: .95rem; line-height: 1.6; }
.ph-steps a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* ---------- FAQ (site .faq-list/.faq-item base) ---------- */
.ph-faq-call { margin: 22px 0 0; font-size: .95rem; line-height: 1.9; color: var(--ink-70); }
.ph-faq-call a {
    display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle;
    color: var(--ink); font-weight: 700; text-underline-offset: 3px;
}
.ph-faq .faq-answer p { color: var(--ink-70); line-height: 1.7; }

/* ---------- Guides ---------- */
.ph-glist {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.ph-glist a {
    display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 44px;
    padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
    color: var(--ink); font-weight: 700; line-height: 1.4; text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ph-glist a:hover { border-color: var(--line-strong); box-shadow: var(--sh-sm); color: var(--brand-700); }
.ph-glist-k { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); }

/* ---------- Closing band (dark) ---------- */
.ph-band {
    display: grid; gap: 24px; align-items: center;
    padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl);
    background: var(--ink-900); color: #d6d9e0;
}
.ph-band-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); color: #fff; margin: 0 0 10px; }
.ph-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-btn-line-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ph-btn-line-dark:hover { color: #fff; border-color: #fff; }
.ph-band .ph-btn-line:focus-visible { outline-color: var(--accent-bright); }
@media (min-width: 992px) { .ph-band { grid-template-columns: 1.4fr auto; } }

@media (prefers-reduced-motion: reduce) {
    .ph-card, .ph-card-figure img, .ph-go svg, .ph-chip, .ph-btn-line, .ph-glist a { transition: none; }
    .ph-card:hover { transform: none; }
    .ph-card:hover .ph-card-figure img, .ph-card:hover .ph-go svg { transform: none; }
}

@media (max-width: 575.98px) {
    .ph-actions > a, .ph-band-actions > a { width: 100%; justify-content: center; }
}

.ph-range { padding-top: clamp(40px, 5vw, 64px); }
.ph-mref {
    display: inline-block; margin-left: 4px; white-space: nowrap;
    font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-50);
}
