.compare-floating-bar {
    position: fixed;
    right: 18px;
    bottom: 94px;
    z-index: 1065;
    display: none;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 36px);
    padding: 10px 12px;
    border: 1px solid rgba(24, 24, 24, 0.08);
    border-radius: 999px;
    background: #181818;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.compare-floating-bar.is-visible {
    display: inline-flex;
}

.compare-floating-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #181818;
    font-size: 13px;
    font-weight: 900;
}

.compare-floating-text {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.compare-floating-link,
.compare-floating-clear {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #181818;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.compare-floating-clear {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.js-compare-toggle.is-active {
    color: #fff;
    background: #181818;
}

.compare-page {
    background: #fafafa;
}

.compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.compare-head h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
}

.compare-head p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.compare-back-link,
.compare-empty a,
.compare-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #181818;
    border-radius: 999px;
    color: #181818;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.compare-empty {
    padding: 42px 18px;
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.compare-empty h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.compare-empty p {
    margin-bottom: 18px;
    color: #666;
}

.compare-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.compare-clear {
    border-color: #f0d6d6;
    color: #b42318;
}

.compare-table-wrap {
    overflow: auto;
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.05);
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    min-width: 210px;
    padding: 16px;
    border-bottom: 1px solid #f1f1f1;
    color: #252525;
    font-size: 14px;
    line-height: 1.8;
    vertical-align: top;
}

.compare-table th {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 150px;
    color: #777;
    background: #fbfbfb;
    font-weight: 900;
}

.compare-products-row th,
.compare-products-row td {
    background: #fff;
}

.compare-product-card {
    display: grid;
    gap: 10px;
    color: #181818;
}

.compare-product-image {
    display: block;
    width: 140px;
    max-width: 100%;
    aspect-ratio: 1 / 1.18;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f5f5;
}

.compare-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-product-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.compare-price {
    color: #111;
    font-weight: 900;
}

.compare-remove {
    margin-bottom: 8px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    color: #b42318;
    background: #fff3f3;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .compare-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .compare-floating-bar {
        right: 10px;
        bottom: 82px;
        gap: 6px;
        padding: 8px;
    }

    .compare-floating-text {
        display: none;
    }
}
