.atlas-product-card__catalog-summary {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    color: #7a8494;
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.25;
}

@media (max-width: 360px) {
    .atlas-search-page .atlas-product-card__catalog-summary--boiler {
        font-size: 8px;
    }
    .atlas-search-page .atlas-product-card__catalog-summary--boiler .atlas-product-card__catalog-summary-icon {
        width: 10px;
        height: 10px;
    }
}

.home .atlas-product-card__catalog-summary {
    margin-top: 2px;
}

.atlas-product-card__catalog-summary--complete {
    justify-content: space-between;
}

.atlas-product-card__catalog-summary-item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.atlas-product-card__catalog-summary-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: inherit;
    flex: 0 0 auto;
}

.atlas-product-card__catalog-summary-icon svg {
    width: 100%;
    height: 100%;
}

.atlas-product-card__catalog-summary-mobile-value {
    display: none;
}

.atlas-product-card__catalog-summary--boiler .atlas-product-card__catalog-summary-item--heating-element .atlas-product-card__catalog-summary-value:has(+ .atlas-product-card__catalog-summary-mobile-value) {
    display: none;
}

.atlas-product-card__catalog-summary--boiler .atlas-product-card__catalog-summary-item--heating-element .atlas-product-card__catalog-summary-mobile-value {
    display: inline;
}

.atlas-product-card__main > .atlas-product-card__specs {
    display: none;
}

@media (max-width: 767px) {
    .atlas-product-card__catalog-summary {
        gap: 4px;
        font-size: 10px;
    }

    .home .atlas-product-card__catalog-summary {
        margin-top: 2px;
    }

    .atlas-product-card__catalog-summary-item {
        gap: 1px;
        flex: 0 0 auto;
    }

    .atlas-product-card__catalog-summary .atlas-product-card__catalog-summary-value:has(+ .atlas-product-card__catalog-summary-mobile-value) { display: none; }
    .atlas-product-card__catalog-summary .atlas-product-card__catalog-summary-mobile-value { display: inline; white-space: nowrap; }

    .atlas-product-card__catalog-summary--complete {
        justify-content: space-between;
    }

    .atlas-product-card__catalog-summary--complete .atlas-product-card__catalog-summary-item:nth-child(3) {
        display: inline-flex !important;
    }

    body .atlas-product-card__catalog-summary--complete {
        width: 100% !important;
        justify-content: space-between;
        gap: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .home .mobile-recommendations .atlas-product-card__catalog-summary--boiler {
        font-size: .5rem;
    }

    .atlas-product-card__catalog-summary-icon {
        width: 12px;
        height: 12px;
    }

    /* All three attributes share one full-width row, including the longer categories. */
    body .atlas-product-card__catalog-summary:not(.atlas-product-card__catalog-summary--boiler) {
        display: flex;
        flex-wrap: nowrap;
        width: 100% !important;
        align-items: center;
        gap: 2px;
        padding-inline: 0 !important;
        margin-inline: 0 !important;
    }

    .atlas-product-card__catalog-summary:not(.atlas-product-card__catalog-summary--boiler) .atlas-product-card__catalog-summary-item {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .atlas-product-card__catalog-summary:not(.atlas-product-card__catalog-summary--boiler) .atlas-product-card__catalog-summary-value {
        min-width: 0;
        overflow: visible;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    body .atlas-product-card__catalog-summary { font-size: 9px; gap: 2px; }
    body .atlas-product-card__catalog-summary-icon { width: 10px; height: 10px; }
}

/* Atlantic boilers and convectors: a slightly larger no-script fallback. */
body .atlas-product-card__catalog-summary--atlantic-readable {
    width: 100% !important;
    margin-inline: 0 !important;
    font-size: .8125rem;
}

@media (max-width: 767px) {
    body .atlas-product-card__catalog-summary--atlantic-readable {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    body .atlas-product-card__catalog-summary--atlantic-readable {
        font-size: 10px;
    }
}

/* Width-aware enhancement. Existing rules above remain the no-script fallback. */
html body .catalog-results .atlas-product-card__catalog-summary.atlas-product-card__catalog-summary[data-atlas-summary-fit],
body .atlas-product-card__catalog-summary[data-atlas-summary-fit] {
    font-size: var(--atlas-summary-fit-font) !important;
    gap: var(--atlas-summary-fit-gap) !important;
}

body .atlas-product-card__catalog-summary[data-atlas-summary-fit] .atlas-product-card__catalog-summary-item {
    gap: var(--atlas-summary-fit-item-gap);
    flex-shrink: 0;
    overflow: visible;
}

body .atlas-product-card__catalog-summary[data-atlas-summary-fit] .atlas-product-card__catalog-summary-icon {
    width: var(--atlas-summary-fit-icon);
    height: var(--atlas-summary-fit-icon);
}

html body .catalog-results .atlas-product-card__catalog-summary[data-atlas-summary-fit] :is(.atlas-product-card__catalog-summary-value, .atlas-product-card__catalog-summary-mobile-value),
body .atlas-product-card__catalog-summary[data-atlas-summary-fit] :is(.atlas-product-card__catalog-summary-value, .atlas-product-card__catalog-summary-mobile-value) {
    font-size: inherit !important;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

body .atlas-product-card__catalog-summary[data-atlas-summary-fit] .atlas-product-card__catalog-summary-value {
    display: inline;
}

body .atlas-product-card__catalog-summary[data-atlas-summary-fit] .atlas-product-card__catalog-summary-mobile-value,
body .atlas-product-card__catalog-summary[data-atlas-summary-fit] .atlas-summary-short .atlas-product-card__catalog-summary-value {
    display: none;
}

body .atlas-product-card__catalog-summary[data-atlas-summary-fit] .atlas-summary-short .atlas-product-card__catalog-summary-mobile-value {
    display: inline;
}

/* Comfortable separation of specifications in mobile catalogue cards. */
@media (max-width: 767px) {
    html body .catalog-results .atlas-product-card__catalog-summary {
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }
}
