.producthub {
    --ph-border: var(--border-color, #dfe3e8);
    --ph-surface: var(--body-bg, #fff);
    --ph-surface-muted: var(--gray-100, #f6f7f9);
    --ph-text: var(--body-color, #20242a);
    --ph-text-muted: var(--gray-700, #5d6570);
    --ph-link: var(--link-color, #0d6efd);
    --ph-radius: .75rem;
    --ph-shadow: 0 .35rem 1rem rgba(21, 31, 45, .08);
    max-width: 1200px;
    margin-inline: auto;
    color: var(--ph-text);
}

.producthub *,
.producthub *::before,
.producthub *::after {
    box-sizing: border-box;
}

.producthub img {
    max-width: 100%;
}

.ph-catalogue-header,
.ph-collection-header {
    margin-bottom: 1rem;
}

.ph-catalogue-header h1,
.ph-collection-header h1 {
    margin-bottom: .35rem;
}

.ph-catalogue-intro,
.ph-collection-header .ph-lead {
    max-width: 62rem;
    margin: 0;
    color: var(--ph-text-muted);
}

.ph-filters {
    display: grid;
    grid-template-columns: minmax(15rem, 2fr) repeat(3, minmax(10rem, 1fr));
    gap: .85rem;
    align-items: end;
    margin: 1.25rem 0 1rem;
    padding: 1rem;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-surface-muted);
}

.ph-filter-field {
    min-width: 0;
}

.ph-filter-field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .875rem;
    font-weight: 650;
}

.ph-filter-field input,
.ph-filter-field select {
    width: 100%;
    min-height: 2.75rem;
    padding: .6rem .7rem;
    border: 1px solid var(--ph-border);
    border-radius: .45rem;
    background: var(--ph-surface);
    color: var(--ph-text);
}

.ph-filter-field input:focus,
.ph-filter-field select:focus,
.ph-button:focus-visible,
.ph-product-card a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ph-link) 35%, transparent);
    outline-offset: 2px;
}

.ph-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.ph-button {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .58rem .95rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ph-button--primary {
    border-color: var(--ph-link);
    background: var(--ph-link);
    color: #fff;
}

.ph-button--primary:hover,
.ph-button--primary:focus {
    color: #fff;
    filter: brightness(.93);
}

.ph-button--secondary {
    border-color: var(--ph-border);
    background: var(--ph-surface);
    color: var(--ph-text);
}

.ph-button--secondary:hover,
.ph-button--secondary:focus {
    color: var(--ph-text);
    background: var(--ph-surface-muted);
}

.ph-catalogue-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin: .75rem 0 1rem;
    color: var(--ph-text-muted);
    font-size: .925rem;
}

.ph-product-grid,
.ph-grid,
.ph-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ph-product-card,
.ph-card,
.ph-offer {
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-surface);
}

.ph-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ph-product-card:hover {
    border-color: color-mix(in srgb, var(--ph-link) 45%, var(--ph-border));
    box-shadow: var(--ph-shadow);
    transform: translateY(-2px);
}

.ph-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--ph-border);
    background: #fff;
}

.ph-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .7rem;
}

.ph-product-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 1rem;
    background: linear-gradient(145deg, #f6f7f9, #eceff3);
    color: var(--ph-text-muted);
    font-size: .9rem;
    text-align: center;
}

.ph-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem;
}

.ph-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .4rem;
    margin: 0 0 .45rem;
    color: var(--ph-text-muted);
    font-size: .83rem;
    line-height: 1.4;
}

.ph-product-card__meta a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
}

.ph-product-card__meta a:hover {
    color: var(--ph-link);
    text-decoration: underline;
}

.ph-product-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

.ph-product-card__title a {
    color: var(--ph-text);
    text-decoration: none;
}

.ph-product-card__title a:hover {
    color: var(--ph-link);
}

.ph-product-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: .65rem 0 0;
    color: var(--ph-text-muted);
    font-size: .9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ph-product-card__commerce {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .75rem;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
}

.ph-product-card__price {
    margin: 0;
    color: var(--ph-text);
    font-size: 1.05rem;
    font-weight: 750;
}

.ph-product-card__offers {
    margin: 0;
    color: var(--ph-text-muted);
    font-size: .82rem;
}

.ph-product-card__button {
    width: 100%;
    margin-top: .8rem;
}

.ph-empty-state {
    display: grid;
    justify-items: center;
    gap: .55rem;
    margin: 1rem 0;
    padding: 2.5rem 1rem;
    border: 1px dashed var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-surface-muted);
    text-align: center;
}

.ph-empty-state__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: var(--ph-surface);
    color: var(--ph-text-muted);
    font-size: 1.65rem;
}

.ph-empty-state h2,
.ph-empty-state p {
    margin: 0;
}

.ph-empty-state p {
    max-width: 36rem;
    color: var(--ph-text-muted);
}

.ph-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ph-border);
}

.ph-pagination__counter {
    color: var(--ph-text-muted);
    font-size: .9rem;
}

.ph-pagination__links .pagination {
    margin: 0;
}

.ph-card {
    padding: 1rem;
}

.ph-card h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.ph-meta,
.ph-disclosure,
.ph-condition {
    color: var(--ph-text-muted);
    font-size: .9rem;
}

.ph-price,
.ph-offer-price {
    font-size: 1.15rem;
    font-weight: 700;
}

.ph-offers {
    display: grid;
    gap: .75rem;
}

.ph-offer {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, .7fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.ph-offer small {
    display: block;
}

.ph-condition {
    grid-column: 1 / -1;
    margin: 0;
}

.ph-specs {
    border-top: 1px solid var(--ph-border);
}

.ph-specs > div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 2fr;
    padding: .65rem 0;
    border-bottom: 1px solid var(--ph-border);
}

.ph-specs dt {
    font-weight: 600;
}

.ph-specs dd {
    margin: 0;
}

.ph-breadcrumb {
    margin-bottom: 1rem;
    font-size: .9rem;
}

.ph-editorial-review {
    margin-top: 2rem;
}

.ph-editorial-review > div {
    margin: 1.25rem 0;
}

.ph-pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.ph-pros-cons > div {
    padding: 1rem;
    border: 1px solid var(--ph-border);
    border-radius: .5rem;
}

.ph-faq details {
    padding: .75rem 0;
    border-bottom: 1px solid var(--ph-border);
}

.ph-faq summary {
    font-weight: 600;
    cursor: pointer;
}

.ph-editorial-status {
    opacity: .75;
}

.ph-landing-description {
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .ph-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ph-filter-field--search {
        grid-column: 1 / -1;
    }

    .ph-product-grid,
    .ph-grid,
    .ph-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ph-product-grid,
    .ph-grid,
    .ph-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ph-offer {
        grid-template-columns: 1fr;
    }

    .ph-condition {
        grid-column: auto;
    }

    .ph-specs > div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
}

@media (max-width: 520px) {
    .ph-filters {
        grid-template-columns: 1fr;
        padding: .85rem;
    }

    .ph-filter-field--search,
    .ph-filter-actions {
        grid-column: auto;
    }

    .ph-filter-actions,
    .ph-filter-actions .ph-button {
        width: 100%;
    }

    .ph-product-grid,
    .ph-grid,
    .ph-products-grid {
        grid-template-columns: 1fr;
    }

    .ph-catalogue-summary,
    .ph-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .ph-product-card__media {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ph-product-card {
        transition: none;
    }
}

/* Product detail 2.6.3 */
.ph-product-detail {
    display: grid;
    gap: 1.5rem;
}

.ph-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ph-breadcrumb a {
    color: var(--ph-text-muted);
    text-decoration: none;
}

.ph-breadcrumb a:hover,
.ph-breadcrumb a:focus {
    color: var(--ph-link);
    text-decoration: underline;
}

.ph-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}

.ph-product-hero__media {
    display: grid;
    min-height: 22rem;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: #fff;
}

.ph-product-hero__media img {
    display: block;
    width: 100%;
    max-height: 34rem;
    object-fit: contain;
    padding: clamp(.75rem, 2vw, 1.5rem);
}

.ph-product-hero__placeholder {
    display: grid;
    width: 100%;
    min-height: 22rem;
    place-items: center;
    padding: 2rem;
    background: linear-gradient(145deg, #f6f7f9, #eceff3);
    color: var(--ph-text-muted);
    text-align: center;
}

.ph-product-hero__summary {
    min-width: 0;
}

.ph-product-hero__summary h1 {
    margin: .35rem 0 .85rem;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.16;
}

.ph-product-eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
    margin: 0;
    color: var(--ph-text-muted);
    font-size: .95rem;
    font-weight: 650;
}

.ph-product-eyebrow a,
.ph-product-group-link a {
    color: var(--ph-link);
    text-decoration: none;
}

.ph-product-eyebrow a:hover,
.ph-product-group-link a:hover {
    text-decoration: underline;
}

.ph-product-summary-lead {
    margin: 0 0 1rem;
    color: var(--ph-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.ph-product-group-link {
    margin: 0 0 1rem;
}

.ph-product-buybox {
    display: grid;
    gap: .45rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-surface-muted);
}

.ph-product-buybox__label,
.ph-product-buybox__meta {
    color: var(--ph-text-muted);
    font-size: .9rem;
}

.ph-product-buybox__price {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.2;
}

.ph-product-buybox .ph-button {
    margin-top: .35rem;
}

.ph-detail-section {
    scroll-margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ph-border);
}

.ph-detail-section > h2,
.ph-section-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.ph-section-heading {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ph-section-heading p {
    margin: .35rem 0 0;
    color: var(--ph-text-muted);
}

.ph-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: var(--ph-surface-muted);
    color: var(--ph-text-muted);
    font-size: .85rem;
    font-weight: 650;
}

.ph-affiliate-notice,
.ph-affiliate-footer {
    display: grid;
    gap: .2rem;
    padding: .85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--ph-link) 25%, var(--ph-border));
    border-radius: .6rem;
    background: color-mix(in srgb, var(--ph-link) 5%, var(--ph-surface));
    color: var(--ph-text-muted);
    font-size: .9rem;
}

.ph-affiliate-notice {
    margin-bottom: 1rem;
}

.ph-affiliate-notice strong,
.ph-affiliate-footer strong {
    color: var(--ph-text);
}

.ph-affiliate-footer {
    margin-top: 1.5rem;
}

.ph-offers--detail {
    gap: .85rem;
}

.ph-offer--detail {
    grid-template-columns: minmax(13rem, 1.2fr) minmax(10rem, .8fr) auto;
    padding: 1rem;
}

.ph-offer__merchant {
    display: flex;
    min-width: 0;
    gap: .75rem;
    align-items: center;
}

.ph-offer__merchant img {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    object-fit: contain;
    border: 1px solid var(--ph-border);
    border-radius: .45rem;
    background: #fff;
    padding: .25rem;
}

.ph-offer__merchant strong,
.ph-offer__merchant small {
    display: block;
}

.ph-stock-status {
    margin-top: .2rem;
    color: var(--ph-text-muted);
}

.ph-offer__action .ph-button {
    min-width: 9.5rem;
}

.ph-empty-state--compact {
    padding: 1.25rem 1rem;
}

.ph-highlights .ph-richtext {
    padding: 1rem 1.1rem;
    border-left: .25rem solid var(--ph-link);
    border-radius: 0 .5rem .5rem 0;
    background: var(--ph-surface-muted);
}

.ph-richtext {
    line-height: 1.75;
}

.ph-richtext > :first-child {
    margin-top: 0;
}

.ph-richtext > :last-child {
    margin-bottom: 0;
}

.ph-key-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin: 0;
}

.ph-key-specs > div {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--ph-border);
    border-radius: .6rem;
    background: var(--ph-surface);
}

.ph-key-specs dt {
    margin-bottom: .35rem;
    color: var(--ph-text-muted);
    font-size: .82rem;
    font-weight: 650;
}

.ph-key-specs dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    line-height: 1.45;
}

.ph-spec-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ph-spec-group {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-surface);
}

.ph-spec-group h3 {
    margin: 0;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--ph-border);
    background: var(--ph-surface-muted);
    font-size: 1.05rem;
}

.ph-specs--grouped {
    margin: 0;
    border-top: 0;
}

.ph-specs--grouped > div {
    gap: .75rem;
    padding: .7rem 1rem;
}

.ph-specs--grouped > div:last-child {
    border-bottom: 0;
}

.ph-specs--grouped dd {
    overflow-wrap: anywhere;
}

.ph-editorial-content {
    display: grid;
    gap: 1.15rem;
}

.ph-editorial-block {
    padding-top: .25rem;
}

.ph-editorial-block h3 {
    margin: 0 0 .55rem;
    font-size: 1.1rem;
}

.ph-product-description {
    padding: 1rem;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    background: var(--ph-surface);
}

.ph-pros-cons > div {
    min-width: 0;
}

.ph-pros-cons h3 {
    margin: 0 0 .7rem;
}

.ph-pros-cons ul {
    margin: 0;
    padding-left: 1.2rem;
}

.ph-pros-cons li + li {
    margin-top: .45rem;
}

.ph-pros-cons__pros {
    background: color-mix(in srgb, #198754 5%, var(--ph-surface));
}

.ph-pros-cons__cons {
    background: color-mix(in srgb, #dc3545 4%, var(--ph-surface));
}

.ph-faq details {
    padding: .85rem 0;
}

.ph-faq summary {
    list-style-position: outside;
    padding-right: 1rem;
}

.ph-faq details > div {
    padding: .75rem 0 0 1.25rem;
    color: var(--ph-text-muted);
    line-height: 1.65;
}

.ph-related {
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .ph-key-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .ph-product-hero {
        grid-template-columns: 1fr;
    }

    .ph-product-hero__media,
    .ph-product-hero__placeholder {
        min-height: 18rem;
    }

    .ph-spec-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ph-offer--detail {
        grid-template-columns: 1fr;
    }

    .ph-offer__action .ph-button {
        width: 100%;
    }

    .ph-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .ph-count-badge {
        align-self: flex-start;
    }
}

@media (max-width: 520px) {
    .ph-product-detail {
        gap: 1.1rem;
    }

    .ph-product-hero__media,
    .ph-product-hero__placeholder {
        min-height: 14rem;
    }

    .ph-product-hero__summary h1 {
        font-size: 1.65rem;
    }

    .ph-key-specs {
        grid-template-columns: 1fr;
    }

    .ph-specs--grouped > div {
        grid-template-columns: 1fr;
    }
}
