.compare-product {
    padding: 40px 0;
}

.compare-product .title-compare {
    font-size: clamp(24px, 4vw, 44px);
    margin-bottom: 40px;
    text-align: center;
}

.table-compare table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table-compare th,
.table-compare td {
    border: 1px solid #e0e0e0;
    padding: 14px 16px;
    vertical-align: top;
    line-height: 1.6;
}

.table-compare thead th {
    background: #fff;
    text-align: center;
    padding: 16px;
    vertical-align: middle;
}

.table-compare thead th.label-col {
    background: #fff;
    width: 180px;
}

.table-compare thead th.close-btn-wrap {
    position: relative;
}

.table-compare .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-compare .btn-close:hover {
    color: #222;
}

.table-compare .product-img {
    display: block;
    margin: 0 auto 12px;
}

.table-compare .product-cat {
    font-size: 18px;
    color: #737373;
    margin-bottom: 4px;
}

.table-compare .product-name {
    font-size: 20px;
    font-weight: 700;
    /* color: #111; */
    margin-bottom: 4px;
}

.table-compare .product-sku {
    font-size: 18px;
    color: #737373;
    margin-bottom: 6px;
}

.table-compare .product-price {
    font-size: 20px;
    font-weight: 700;
    /* color: #111; */
}

.table-compare .product-price span {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-right: 4px;
}

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

.table-compare tbody td.row-label {
    font-weight: 700;
    font-size: 22px;
    /* color: #333; */
    background: #f5f5f5;
}

.table-compare .tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.table-compare .tech-icons img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.table-compare .icon-circle {
    position: relative;
}

.table-compare .icon-circle:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.table-compare .icon-circle .tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 275px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #FFF;
    opacity: 0;
    transition: 0.3s;
    visibility: hidden;
}

.table-compare .icon-circle .tooltip::after{
    content: '';
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #FFF transparent transparent transparent;
}

.table-compare .icon-circle .tooltip::before{
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
  border-style: solid;
  border-color: #ddd transparent transparent transparent;
}

.table-compare .icon-circle .tooltip .title {
    font-size: 16px;
    font-weight: 500;
    background-color: #eee;
    padding: 5px 10px;
}

.table-compare .icon-circle .tooltip .desc {
    padding: 10px;
    font-size: 14px;
}

.table-compare .spec-list {
    list-style: none;
    line-height: 1.8;
}

.table-compare .updating {
    color: #999;
    font-style: italic;
}

.footer-table-compare {
    text-align: center;
    margin-top: 35px;
}

.table-compare .btn-back {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 992px) {
    .table-compare tbody td.row-label {
        font-size: 16px;
    }

    .table-compare thead th.label-col {
        width: 145px;
    }

    .table-compare .product-cat {
        font-size: 14px;
    }

    .table-compare .product-name {
        font-size: 15px;
    }

    .table-compare .product-sku,
    .table-compare .product-price span {
        font-size: 14px;
    }

    .table-compare .product-price {
        font-size: 18px;
    }

    .table-compare .icon-circle .tooltip {
        display: none;
    }
}

@media (max-width: 768px) {
    .table-compare thead th.label-col,
    .table-compare tbody td.row-label {
        display: none;
    }

    .table-responsive table {
        min-width: 800px;
    }
}

