/* Hidroactiv IBO warranty and comparison styles */

.hidroactiv-online-price-note {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: #555;
    text-transform: uppercase;
}

.hidroactiv-footer-price-note {
    padding-bottom: 16px;
}

/* Warranty callout near the buy area */
.hidroactiv-warranty-block {
    margin: 16px 0;
    padding: 12px 16px;
    background: #eef7ee;
    border: 1px solid #bfe0c0;
    border-left: 4px solid #2e7d32;
    border-radius: 4px;
}

.hidroactiv-warranty-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #1b5e20;
}

/* Category guide */
.hidroactiv-ibo-guide {
    margin: 24px 0;
}

.hidroactiv-ibo-guide h2 {
    margin: 24px 0 12px;
}

/* Spec tables (comparison and Q/H) */
.hidroactiv-spec-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    margin: 16px 0;
    -webkit-overflow-scrolling: touch;
}

.hidroactiv-spec-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.hidroactiv-spec-table caption {
    padding: 8px 0;
    font-weight: 600;
    text-align: left;
}

.hidroactiv-spec-table th,
.hidroactiv-spec-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.hidroactiv-spec-table thead th {
    background: #f5f5f5;
    font-weight: 600;
}

.hidroactiv-spec-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.hidroactiv-spec-table a {
    color: inherit;
    text-decoration: underline;
}

.hidroactiv-spec-table.hidroactiv-comparison-table {
    min-width: 560px;
    table-layout: fixed;
}

.hidroactiv-comparison-table tbody th,
.hidroactiv-comparison-table thead th:first-child {
    width: 24%;
    text-transform: none;
}

/* Legacy child-theme rules force nowrap on every spec table. Keep long model
 * names inside their own column so the sticky cell cannot cover the values. */
.hidroactiv-spec-table.hidroactiv-comparison-table th,
.hidroactiv-spec-table.hidroactiv-comparison-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Keep the model visible while comparing the columns on a phone. */
.hidroactiv-comparison-table tbody th,
.hidroactiv-comparison-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #f5f5f5;
}

.hidroactiv-scroll-hint {
    display: none;
    font-size: 13px;
}

.hidroactiv-spec-table-wrap:focus-visible {
    outline: 2px solid #087986;
    outline-offset: 2px;
}

.hidroactiv-product-guide h2 {
    margin: 24px 0 12px;
}

/* Purchase-decision summary: a small subset, not a copy of the full table. */
.hidroactiv-quick-specs {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #d4e1e4;
    border-radius: 5px;
    background: #f7fafb;
}

.hidroactiv-quick-specs h2 {
    margin: 0 0 .75rem;
    font-size: 1.15rem;
    text-transform: none;
}

.hidroactiv-quick-specs dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
    margin: 0;
}

.hidroactiv-quick-specs dl > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .45rem 0;
    border-bottom: 1px solid #e1e9eb;
}

.hidroactiv-quick-specs dt {
    color: #506166;
    font-weight: 400;
}

.hidroactiv-quick-specs dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.hidroactiv-complete-specs-link {
    display: inline-block;
    margin-top: .75rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Flatsome's two-column section rail is too narrow for an H2 and caused the
 * title to cover the first attribute. Headings now sit above full-width data. */
.hidroactiv-product-section-heading h2 {
    margin: 1rem 0 .75rem;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.hidroactiv-product-section-content .woocommerce-product-attributes {
    margin-bottom: 0;
}

.hidroactiv-product-section-content .woocommerce-product-attributes th {
    width: 38%;
    white-space: normal;
}

.hidroactiv-product-guide > .hidroactiv-spec-table,
.hidroactiv-spec-table.hidroactiv-quick-spec-table {
    min-width: 0;
}

.hidroactiv-original-description {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hidroactiv-spec-note {
    font-size: 13px;
}

.hidroactiv-catalog-nav,
.hidroactiv-product-links {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f5f8f8;
    border-left: 3px solid #087986;
}

.hidroactiv-catalog-nav p {
    margin-bottom: 8px;
}

.hidroactiv-range-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    list-style: none;
}

.hidroactiv-range-links li {
    margin: 0;
}

.hidroactiv-range-links a,
.hidroactiv-catalog-nav a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.widget .hidroactiv-range-links {
    display: block;
}

.widget .hidroactiv-range-links a {
    display: block;
    padding: 6px 0;
}

.hidroactiv-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.hidroactiv-footer-nav h2 {
    font-size: 18px;
}

/* Q/H section */
.hidroactiv-qh-table {
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hidroactiv-qh-table h3 {
    margin: 0 0 12px;
}

.hidroactiv-qh-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.hidroactiv-qh-chart {
    margin: 16px 0;
}

.hidroactiv-qh-chart img {
    max-width: 100%;
    height: auto;
}

/* Small screens: keep tap targets and readability */
@media (max-width: 600px) {
    .hidroactiv-quick-specs dl {
        grid-template-columns: 1fr;
    }

    .hidroactiv-quick-specs dl > div {
        align-items: baseline;
    }

    .hidroactiv-product-section-content .woocommerce-product-attributes th {
        width: 48%;
    }

    .hidroactiv-warranty-block {
        margin: 12px 0;
        padding: 10px 12px;
    }

    .hidroactiv-warranty-text {
        font-size: 14px;
    }

    .hidroactiv-ibo-guide {
        margin: 16px 0;
    }

    .hidroactiv-spec-table {
        font-size: 13px;
    }

    /* Quick specifications have only two columns, so show both columns instead
     * of hiding the value column behind horizontal scrolling. The first selector
     * supports descriptions already stored in WooCommerce; the class is used by
     * descriptions generated after this release. */
    .panel.entry-content > .hidroactiv-spec-table,
    .hidroactiv-product-guide > .hidroactiv-spec-table,
    .hidroactiv-spec-table.hidroactiv-quick-spec-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .panel.entry-content > .hidroactiv-spec-table th:first-child,
    .hidroactiv-product-guide > .hidroactiv-spec-table th:first-child,
    .hidroactiv-spec-table.hidroactiv-quick-spec-table th:first-child {
        width: 62%;
    }

    .panel.entry-content > .hidroactiv-spec-table th,
    .panel.entry-content > .hidroactiv-spec-table td,
    .hidroactiv-product-guide > .hidroactiv-spec-table th,
    .hidroactiv-product-guide > .hidroactiv-spec-table td,
    .hidroactiv-spec-table.hidroactiv-quick-spec-table th,
    .hidroactiv-spec-table.hidroactiv-quick-spec-table td {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .hidroactiv-spec-table th,
    .hidroactiv-spec-table td {
        padding: 8px 10px;
    }

    .hidroactiv-qh-table {
        margin: 16px 0;
    }

    .hidroactiv-scroll-hint {
        display: block;
    }

    .hidroactiv-footer-nav {
        grid-template-columns: 1fr;
    }
}
.hidroactiv-delivery {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-left: 3px solid #167c91;
    background: #f3f8fa;
    color: #25383e;
    font-size: .9rem;
}
.hidroactiv-delivery p { margin: 0 0 .4rem; }
.hidroactiv-delivery p:last-child { margin-bottom: 0; }
.hidroactiv-selection-help { margin: 1rem 0 1.4rem; }
.hidroactiv-selection-help p { margin: .4rem 0 .75rem; font-size: .95rem; }
.hidroactiv-help-link.button { margin-bottom: .5rem; white-space: normal; line-height: 1.5; padding: .55rem .8rem; }
.hidroactiv-call { display: inline-block; padding: .4rem 0; }
.hidroactiv-contact-guide { scroll-margin-top: 110px; }
.hidroactiv-pump-comparison { margin: 1.5rem 0; padding-top: 1.5rem; border-top: 1px solid #ddd; }
.hidroactiv-pump-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hidroactiv-pump-card { display: flex; flex-direction: column; padding: 1rem; border: 1px solid #d4dfe2; border-radius: 4px; }
.hidroactiv-pump-card img { display: block; width: 100%; height: 180px; object-fit: contain; margin: 0 auto .75rem; }
.hidroactiv-pump-card h3 { font-size: 1.05rem; line-height: 1.45; text-transform: none; }
.hidroactiv-pump-card p { margin-bottom: .6rem; }
.hidroactiv-pump-card dl { font-size: .9rem; margin: 0 0 1rem; }
.hidroactiv-pump-card dl div { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #edf1f2; padding: .25rem 0; }
.hidroactiv-pump-card dt { font-weight: normal; }
.hidroactiv-pump-card dd { margin: 0; text-align: right; white-space: nowrap; }
.hidroactiv-pump-card .price { margin-top: auto; }
.hidroactiv-stock-note { font-size: .8rem; color: #4a5b61; }
.hidroactiv-pump-card .button { margin: .5rem 0 0; white-space: normal; }
@media (max-width: 700px) {
    .hidroactiv-pump-cards { grid-template-columns: 1fr; }
    .hidroactiv-selection-help .button { width: 100%; }
}
/* Original IBO portrait photos: show the complete pump beside its product details. */
.woocommerce-product-gallery__image[data-thumb*="hidroactiv-20260910-ibo-"] img:not(.zoomImg) {
    width: 100%;
    height: 480px;
    object-fit: contain;
}
@media (max-width: 549px) {
    .woocommerce-product-gallery__image[data-thumb*="hidroactiv-20260910-ibo-"] img:not(.zoomImg) { height: 340px; }
}

/* Availability appears below every product price; avoid a duplicate image overlay. */
.product-small .out-of-stock-label { display: none; }
