/* IndoSurgicals Diagnostic FCP - Ophthalmology Instruments R1 */

/* Compact grouped product cards */
.isp-subcategory-page .isp-ophthalmology-group-heading {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    margin: 14px 0 2px;
    padding: 17px 20px;
    border: 1px solid #d8e7eb;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f4fafb 100%);
    box-shadow: 0 8px 20px rgba(22, 50, 74, .035);
}
.isp-subcategory-page .isp-ophthalmology-group-heading::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    content: "";
    background: #0a8f92;
}
.isp-subcategory-page .isp-ophthalmology-group-heading--iop::before { background: #526f95; }
.isp-subcategory-page .isp-ophthalmology-group-heading--viewing::before { background: #6c5a98; }
.isp-subcategory-page .isp-ophthalmology-group-heading--binocular::before { background: #8a6344; }
.isp-subcategory-page .isp-ophthalmology-group-heading span {
    display: block;
    color: #15364b;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}
.isp-subcategory-page .isp-ophthalmology-group-heading p {
    max-width: 940px;
    margin: 6px 0 0;
    color: #60757f;
    font-size: 13px;
    line-height: 1.6;
}

.isp-subcategory-page .isp-product-card--ophthalmology .isp-product-image {
    min-height: 190px;
    height: 190px;
    padding: 10px 12px;
}
.isp-subcategory-page .isp-product-card--ophthalmology .isp-product-image img {
    width: auto !important;
    max-width: 100% !important;
    height: 168px !important;
    max-height: 168px !important;
    object-fit: contain;
}
.isp-subcategory-page .isp-product-card--ophthalmology .isp-image-fallback {
    min-height: 168px;
    height: 168px;
}
.isp-subcategory-page .isp-product-card--ophthalmology-refraction .isp-product-category-label {
    color: #075d67;
    background: #edf8f7;
    border-color: #cee7e5;
}
.isp-subcategory-page .isp-product-card--ophthalmology-iop .isp-product-category-label {
    color: #425e82;
    background: #f0f4fa;
    border-color: #d5ddea;
}
.isp-subcategory-page .isp-product-card--ophthalmology-viewing .isp-product-category-label {
    color: #625181;
    background: #f5f2fb;
    border-color: #ded6ee;
}
.isp-subcategory-page .isp-product-card--ophthalmology-binocular .isp-product-category-label {
    color: #765437;
    background: #fbf5ed;
    border-color: #eadcc8;
}

/* Neutral image fallback, used only after an actual image error. */
.isp-subcategory-page .isp-product-image .isp-image-fallback--neutral {
    min-height: 160px;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}
.isp-subcategory-page .isp-product-image .isp-image-fallback--neutral::before {
    display: block;
    width: 42px;
    height: 32px;
    content: "";
    border: 2px solid rgba(23, 78, 90, .38);
    border-radius: 7px;
    opacity: .7;
}

/* Modern Medical-Reflex-Hammers-style category information */
.isp-oph-cat-content,
.isp-oph-cat-content * { box-sizing: border-box; }
.isp-oph-cat-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #304954;
    font-size: 15px;
    line-height: 1.72;
}
.isp-subcategory-page .isp-oph-cat-content h2,
.isp-subcategory-page .isp-oph-cat-content h3 {
    color: #15364b !important;
}
.isp-subcategory-page .isp-oph-cat-content h2 {
    margin: 0 0 12px !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
}
.isp-subcategory-page .isp-oph-cat-content h3 {
    margin: 0 0 8px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
}
.isp-oph-cat-content p:last-child { margin-bottom: 0; }
.isp-oph-cat-content a {
    color: #075f68 !important;
    font-weight: 750;
    text-decoration: none !important;
}
.isp-oph-cat-content a:hover,
.isp-oph-cat-content a:focus { text-decoration: underline !important; }

.isp-oph-cat-section {
    width: 100%;
    margin: 0 0 20px;
    padding: 24px;
    border: 1px solid #d8e7eb;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(22, 50, 74, .045);
}
.isp-oph-cat-intro {
    background:
        radial-gradient(circle at 95% 5%, rgba(0, 155, 149, .11), transparent 31%),
        linear-gradient(135deg, #edf9f8 0%, #ffffff 68%, #f4f8fb 100%);
    border-color: #cfe5e3;
}
.isp-oph-cat-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #08746f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.isp-oph-cat-highlights {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0 0 20px;
    padding: 15px;
    border-radius: 17px;
    background: linear-gradient(145deg, #17364d 0%, #174e5a 58%, #08746f 100%);
    box-shadow: 0 14px 30px rgba(22, 50, 74, .13);
}
.isp-oph-cat-highlight {
    min-width: 0;
    padding: 14px 12px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
}
.isp-oph-cat-highlight strong,
.isp-oph-cat-highlight span { display: block; }
.isp-oph-cat-highlight strong {
    margin-bottom: 4px;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.3;
}
.isp-oph-cat-highlight span {
    color: #eaf7f6;
    font-size: 11.5px;
    line-height: 1.45;
}

.isp-oph-cat-grid {
    display: grid;
    gap: 13px;
    margin-top: 15px;
}
.isp-oph-cat-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.isp-oph-cat-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.isp-oph-cat-card,
.isp-oph-cat-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid #dce8eb;
    border-radius: 14px;
    background: #f8fbfc;
}
.isp-oph-cat-card strong {
    display: block;
    margin-bottom: 7px;
    color: #15364b !important;
    font-size: 15px;
    line-height: 1.35;
}
.isp-oph-cat-card span,
.isp-oph-cat-panel p {
    color: #60757f;
    font-size: 13px;
    line-height: 1.62;
}

.isp-oph-cat-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}
.isp-oph-cat-note {
    margin-top: 14px;
    padding: 15px 17px;
    border-left: 4px solid #0a8f92;
    border-radius: 10px;
    background: #eef8f7;
    color: #526a73;
    font-size: 13px;
    line-height: 1.62;
}

/* CSS-grid comparison, intentionally not an HTML table. */
.isp-oph-compare {
    overflow: hidden;
    margin-top: 15px;
    border: 1px solid #d8e7eb;
    border-radius: 14px;
    background: #fff;
}
.isp-oph-compare__header,
.isp-oph-compare__row {
    display: grid;
    grid-template-columns: .8fr 1.15fr 1.45fr 1.45fr;
}
.isp-oph-compare__header {
    color: #fff;
    background: #17364d;
    font-size: 12px;
    font-weight: 800;
}
.isp-oph-compare__header > div,
.isp-oph-compare__cell {
    min-width: 0;
    padding: 12px 13px;
    border-right: 1px solid #dce7eb;
}
.isp-oph-compare__header > div { border-color: rgba(255,255,255,.13); }
.isp-oph-compare__header > div:last-child,
.isp-oph-compare__cell:last-child { border-right: 0; }
.isp-oph-compare__row { border-top: 1px solid #dce7eb; }
.isp-oph-compare__cell {
    color: #526a73;
    font-size: 12.5px;
    line-height: 1.55;
}
.isp-oph-compare__cell--group {
    color: #15364b;
    background: #f1f7f8;
    font-weight: 800;
}
.isp-oph-compare__label { display: none; }

.isp-oph-cat-procurement {
    border-color: #cfe5e3;
    background: linear-gradient(135deg, #f3faf9 0%, #ffffff 100%);
}
.isp-oph-cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}
.isp-oph-cat-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid #bddedb;
    border-radius: 9px;
    background: #fff;
    font-size: 12.5px;
}

@media (max-width: 1100px) {
    .isp-oph-cat-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .isp-oph-cat-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .isp-oph-cat-section { padding: 19px; border-radius: 14px; }
    .isp-oph-cat-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .isp-oph-cat-grid--four,
    .isp-oph-cat-grid--three,
    .isp-oph-cat-split { grid-template-columns: 1fr; }
    .isp-oph-compare { border: 0; background: transparent; overflow: visible; }
    .isp-oph-compare__header { display: none; }
    .isp-oph-compare__row {
        display: block;
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid #d8e7eb;
        border-radius: 12px;
        background: #fff;
    }
    .isp-oph-compare__cell {
        display: block;
        padding: 10px 13px;
        border: 0;
        border-bottom: 1px solid #e2ecef;
    }
    .isp-oph-compare__cell:last-child { border-bottom: 0; }
    .isp-oph-compare__label {
        display: block;
        margin-bottom: 3px;
        color: #758991;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
}
@media (max-width: 500px) {
    .isp-oph-cat-highlights { grid-template-columns: 1fr; }
}
