/* IndoSurgicals BP Monitors & Sphygmomanometers subcategory - FCP v1.0 */

/* v1.0.1 card-density correction:
   BP product cards intentionally inherit the shared subcategory discovery grid
   used by Stethoscopes and other Diagnostic categories: 4 columns on wide
   desktop, 3 on compact desktop, 2 on tablet/mobile and 1 only on very
   narrow phones. Do not add a BP-specific 2-column desktop override. */

.isp-subcategory-page .isp-bp-group-heading {
    grid-column: 1 / -1;
    margin: 12px 0 2px;
    padding: 16px 18px;
    border: 1px solid #d9e7eb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f5fafb 100%);
}

.isp-subcategory-page .isp-bp-group-heading span {
    display: block;
    color: #073f52;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.isp-subcategory-page .isp-bp-group-heading p {
    margin: 5px 0 0;
    color: #60757f;
    font-size: 13px;
    line-height: 1.55;
}

.isp-subcategory-page .isp-product-card--bp .isp-product-category-label {
    color: #07566d;
    background: #eef8f9;
    border-color: #d2e9ec;
}

.isp-subcategory-page .isp-product-card--bp-aneroid .isp-product-category-label {
    color: #285d46;
    background: #eef8f1;
    border-color: #d2e8d8;
}

.isp-subcategory-page .isp-product-card--bp-mercury .isp-product-category-label {
    color: #68531b;
    background: #fff8e8;
    border-color: #efd9a7;
}

.isp-bp-cat-content,
.isp-bp-cat-content * {
    box-sizing: border-box;
}

.isp-bp-cat-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #29414b;
    font-size: 15px;
    line-height: 1.7;
}

.isp-bp-cat-content h3,
.isp-bp-cat-content h4 {
    color: #073f52 !important;
}

.isp-bp-cat-content h3 {
    margin: 0 0 12px !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
}

.isp-bp-cat-content h4 {
    margin: 0 0 7px !important;
    font-size: 17px !important;
}

.isp-bp-cat-content p:last-child {
    margin-bottom: 0;
}

.isp-bp-cat-section {
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid #dbe8ec;
    border-radius: 15px;
    background: #ffffff;
}

.isp-bp-cat-intro {
    border-left: 5px solid #0b8496;
    background: linear-gradient(135deg, #f3f9fa 0%, #ffffff 100%);
}

.isp-bp-cat-highlights {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #073f52 0%, #075667 62%, #087d79 100%);
}

.isp-bp-cat-highlight {
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    text-align: center;
}

.isp-bp-cat-highlight strong,
.isp-bp-cat-highlight span {
    display: block;
}

.isp-bp-cat-highlight strong {
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1.25;
}

.isp-bp-cat-highlight span {
    margin-top: 4px;
    color: rgba(255,255,255,.82);
    font-size: 11px;
    line-height: 1.4;
}

.isp-bp-cat-grid,
.isp-bp-cat-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.isp-bp-cat-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.isp-bp-cat-card,
.isp-bp-cat-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dbe8ec;
    border-radius: 13px;
    background: #f8fbfc;
}

.isp-bp-cat-card strong {
    display: block;
    margin-bottom: 6px;
    color: #07566d !important;
    font-size: 17px;
}

.isp-bp-cat-card span {
    display: block;
    color: #667a83;
    font-size: 13px;
    line-height: 1.55;
}

.isp-bp-cat-card a {
    color: inherit !important;
    text-decoration: none !important;
}

.isp-bp-cat-card:hover {
    border-color: #acd1d7;
    background: #f4fafb;
}

/* Dedicated comparison grid: intentionally not a HTML table, so global table CSS cannot override it. */
.isp-bp-compare {
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid #d7e5e9;
    border-radius: 14px;
    background: #ffffff;
}

.isp-bp-compare__head,
.isp-bp-compare__row {
    display: grid;
    grid-template-columns: minmax(120px, 1.05fr) minmax(180px, 1.55fr) minmax(150px, 1.25fr) minmax(110px, .9fr) minmax(220px, 1.8fr);
}

.isp-bp-compare__head {
    color: #ffffff;
    background: linear-gradient(90deg, #123047 0%, #0e4b59 58%, #087d79 100%);
}

.isp-bp-compare__head > div {
    padding: 13px 12px;
    border-right: 1px solid rgba(255,255,255,.16);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.isp-bp-compare__row > div {
    min-width: 0;
    padding: 13px 12px;
    border-right: 1px solid #dfeaec;
    border-bottom: 1px solid #dfeaec;
    color: #435963;
    font-size: 12.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.isp-bp-compare__row:nth-child(odd) > div {
    background: #fbfdfd;
}

.isp-bp-compare__row > div:first-child {
    color: #16364a;
    font-weight: 800;
    background: #f2f8f9;
}

.isp-bp-compare__head > div:last-child,
.isp-bp-compare__row > div:last-child {
    border-right: 0;
}

.isp-bp-compare__row:last-child > div {
    border-bottom: 0;
}

.isp-bp-cat-note {
    margin-top: 14px;
    padding: 14px 16px;
    border-left: 4px solid #0b8496;
    border-radius: 8px;
    background: #eef7f8;
    color: #526b75;
}

.isp-bp-cat-note--amber {
    border-left-color: #b58b20;
    background: #fff9ea;
    color: #665929;
}

.isp-bp-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.isp-bp-cat-links a {
    display: inline-flex;
    padding: 8px 11px;
    border: 1px solid #cfe0e4;
    border-radius: 8px;
    background: #ffffff;
    color: #07566d !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

@media (max-width: 1050px) {
    .isp-bp-cat-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .isp-bp-cat-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .isp-bp-compare__head,
    .isp-bp-compare__row {
        grid-template-columns: minmax(115px, 1fr) minmax(165px, 1.45fr) minmax(145px, 1.2fr) minmax(105px, .9fr) minmax(190px, 1.6fr);
    }
}

@media (max-width: 820px) {
    .isp-bp-compare {
        display: grid;
        gap: 11px;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .isp-bp-compare__head {
        display: none;
    }

    .isp-bp-compare__row {
        display: block;
        overflow: hidden;
        border: 1px solid #d7e5e9;
        border-radius: 12px;
        background: #ffffff;
    }

    .isp-bp-compare__row > div,
    .isp-bp-compare__row > div:first-child,
    .isp-bp-compare__row:nth-child(odd) > div {
        position: relative;
        display: grid;
        grid-template-columns: minmax(125px, .36fr) minmax(0, .64fr);
        gap: 12px;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid #e3edef;
        background: #ffffff;
    }

    .isp-bp-compare__row > div::before {
        content: attr(data-label);
        color: #07566d;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.45;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .isp-bp-compare__row > div:first-child {
        color: #ffffff;
        background: linear-gradient(90deg, #123047, #0b6c70);
        font-size: 14px;
    }

    .isp-bp-compare__row > div:first-child::before {
        color: #b9ece7;
    }

    .isp-bp-compare__row > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .isp-bp-cat-section {
        padding: 18px 15px;
        border-radius: 12px;
    }

    .isp-bp-cat-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .isp-bp-cat-grid,
    .isp-bp-cat-grid--four,
    .isp-bp-cat-split {
        grid-template-columns: 1fr;
    }

    .isp-subcategory-page .isp-bp-group-heading {
        padding: 14px 15px;
    }

    .isp-bp-compare__row > div,
    .isp-bp-compare__row > div:first-child,
    .isp-bp-compare__row:nth-child(odd) > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Quiet visual fallback: no crawler-visible "image unavailable" text. */
.isp-subcategory-page .isp-product-card--bp .isp-product-image .isp-image-fallback[hidden] {
    display: none !important;
}

.isp-subcategory-page .isp-product-card--bp .isp-product-image .isp-image-fallback:not([hidden]) {
    display: flex !important;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: linear-gradient(145deg, #f4fbfa 0%, #e7f4f3 100%);
}

.isp-subcategory-page .isp-product-card--bp .isp-image-fallback--neutral::before {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    content: "BP";
    color: rgba(7, 63, 82, .62);
    border: 2px solid rgba(23, 78, 90, .28);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}
