/* Products hub (/products). Builds on home.css (.hp) and solution.css (.sp). */

/* Hero: product finder */
.ph-finder { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 24px; }
.ph-finder__head { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-gold); margin: 0 0 12px; }
.ph-finder__search { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border: 0; border-radius: 12px; padding: 14px 16px; color: var(--hp-muted); font-size: .95rem; text-align: left; cursor: text; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: box-shadow .2s; }
.ph-finder__search:hover { box-shadow: 0 0 0 3px rgba(229, 187, 25, .6); }
.ph-finder__search i { color: var(--hp-blue); }
.ph-finder__sub { font-size: .85rem; color: rgba(255, 255, 255, .7); margin: 16px 0 10px; }
.ph-finder__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ph-finder__chips a { display: inline-block; font-size: .82rem; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: 20px; padding: 5px 12px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.ph-finder__chips a:hover { background: var(--hp-gold); border-color: var(--hp-gold); color: var(--hp-navy); }

/* Category groups */
.ph-groups { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 20px; row-gap: 56px; }
.ph-group { grid-column: 1 / -1; }
.ph-group--half { grid-column: auto; }
.ph-group--half .ph-grid { grid-template-columns: repeat(2, 1fr); }
.ph-group__title { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-bottom: 22px; padding-left: 14px; border-left: 4px solid var(--hp-gold); }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ph-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s, border-color .25s; }
.ph-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(10, 44, 70, .1); border-color: #c9dbe8; }
.ph-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; padding: 22px; background: linear-gradient(180deg, #f6f9fb 0%, #eaf1f6 100%); }
.ph-card__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(10, 44, 70, .16)); transition: transform .35s ease; }
.ph-card:hover .ph-card__img img { transform: scale(1.05); }
.ph-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.ph-card h3 { font-size: 1.08rem; color: var(--hp-ink); margin-bottom: 8px; }
.ph-card p { color: var(--hp-muted); font-size: .9rem; line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ph-card__cta { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--hp-blue); }
.ph-card__cta i { font-size: .8rem; margin-left: 4px; transition: transform .2s; }
.ph-card:hover .ph-card__cta i, .ph-extra:hover .ph-card__cta i { transform: translateX(4px); }

.ph-card--help { background: var(--hp-navy); border-color: var(--hp-navy); }
.ph-card--help .ph-card__body { justify-content: center; padding: 28px 24px; }
.ph-card--help h3 { color: #fff; font-size: 1.2rem; }
.ph-card--help p { color: rgba(255, 255, 255, .8); -webkit-line-clamp: unset; }
.ph-card--help .ph-card__cta { margin-top: 6px; color: var(--hp-gold); }
.ph-card__help-icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: var(--hp-gold); font-size: 1.35rem; margin-bottom: 18px; }

/* Labels, integration, repair */
.ph-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ph-extra { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; padding: 26px; color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s; }
.ph-extra:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10, 44, 70, .09); }
.ph-extra__icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--hp-cream); color: var(--hp-gold-dark); font-size: 1.3rem; margin-bottom: 16px; border: 1px solid rgba(229, 187, 25, .45); }
.ph-extra h3 { font-size: 1.15rem; color: var(--hp-ink); margin-bottom: 8px; }
.ph-extra p { color: var(--hp-muted); font-size: .95rem; margin-bottom: 16px; flex: 1; }

/* FAQ */
.ph-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.ph-faq__item { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 0 22px; }
.ph-faq__item[open] { border-color: #c9dbe8; box-shadow: 0 10px 26px rgba(10, 44, 70, .06); }
.ph-faq__item summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; font-weight: 600; color: var(--hp-ink); position: relative; }
.ph-faq__item summary::-webkit-details-marker { display: none; }
.ph-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--hp-blue); }
.ph-faq__item[open] summary::after { content: "−"; }
.ph-faq__item p { color: #33434f; margin: 0 0 18px; line-height: 1.65; }

@media (max-width: 1199.98px) {
    .ph-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .ph-groups { grid-template-columns: 1fr; }
    .ph-grid { grid-template-columns: repeat(2, 1fr); }
    .ph-extras { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .ph-grid { gap: 12px; }
    .ph-card__img { padding: 14px; }
    .ph-card__body { padding: 14px; }
    .ph-card h3 { font-size: .98rem; }
    .ph-card p { display: none; }
    .ph-card--help p { display: block; }
}
