/* Product Comparison Table */

.product-compare {
    margin-top: 64px;
}

.product-compare__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 0 32px;
    gap: 8px;
}

.product-compare__heading {
    font-family: 'Glober', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #133156;
    margin: 0;
}

.product-compare__subheading {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #5A6577;
    margin: 0;
    line-height: 1.3;
}

/* Scroll container — right-edge inset shadow via scroll-driven animation */
.product-compare__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 1080px;
    margin: 0 auto;
    animation: compare-scroll-shadow linear both;
    animation-timeline: scroll(self inline);
}

@keyframes compare-scroll-shadow {
    0%   { box-shadow: inset -8px 0 10px -6px rgba(19, 49, 86, 0.12), inset  8px 0 10px -6px rgba(19, 49, 86, 0); }
    5%   { box-shadow: inset -8px 0 10px -6px rgba(19, 49, 86, 0.12), inset  8px 0 10px -6px rgba(19, 49, 86, 0.12); }
    95%  { box-shadow: inset -8px 0 10px -6px rgba(19, 49, 86, 0.12), inset  8px 0 10px -6px rgba(19, 49, 86, 0.12); }
    100% { box-shadow: inset -8px 0 10px -6px rgba(19, 49, 86, 0),    inset  8px 0 10px -6px rgba(19, 49, 86, 0.12); }
}

/* Table */
.product-compare__table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Sticky label column */
.product-compare__label-cell {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    width: 180px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #133156;
    text-align: left;
    white-space: nowrap;
    animation: compare-sticky-shadow linear both;
    animation-timeline: scroll(nearest inline);
}

@keyframes compare-sticky-shadow {
    0%   { box-shadow: 6px 0 10px -4px rgba(19, 49, 86, 0); }
    5%   { box-shadow: 6px 0 10px -4px rgba(19, 49, 86, 0.08); }
    100% { box-shadow: 6px 0 10px -4px rgba(19, 49, 86, 0.08); }
}

/* Header row — border on cells (border-collapse: separate) */
thead .product-compare__label-cell,
thead .product-compare__product-cell {
    border-bottom: 1px solid #CADAE6;
}

thead .product-compare__label-cell {
    z-index: 3;
}

/* Product name header cells */
.product-compare__product-cell {
    min-width: 180px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #133156;
    text-align: center;
}

.product-compare__product-cell a {
    color: #005A8B;
    text-decoration: none;
}

.product-compare__product-cell a:hover {
    text-decoration: underline;
}

/* Data rows — border on cells (border-collapse: separate) */
tbody .product-compare__label-cell,
tbody .product-compare__data-cell {
    border-bottom: 1px solid #ECEEF1;
}

tbody .product-compare__row--last .product-compare__label-cell,
tbody .product-compare__row--last .product-compare__data-cell {
    border-bottom: 1px solid #CADAE6;
}

/* Data cells */
.product-compare__data-cell {
    min-width: 180px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #4a5568;
    text-align: center;
}

/* Boolean checkmark icons */
.product-compare__data-cell svg {
    display: inline-block;
    vertical-align: middle;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .product-compare {
        margin-top: 40px;
    }

    .product-compare__header {
        padding: 40px 0 24px;
    }

    .product-compare__heading {
        font-size: 24px;
    }

    .product-compare__subheading {
        font-size: 14px;
    }

    .product-compare__label-cell {
        width: 140px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .product-compare__product-cell,
    .product-compare__data-cell {
        font-size: 13px;
        padding: 10px 12px;
    }
}
