/* Страница сравнения */
.compare-page {
    width: 100%;
    margin-bottom: 2.5rem;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e4e;
    -webkit-font-smoothing: antialiased;
}

.compare-page__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.compare-page__head h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
    color: #2c3e4e;
}

.compare-page__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.compare-page__clear-form {
    margin: 0;
}

.compare-page__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 36rem;
    padding: 2rem 1.5rem;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fafafa;
}

.compare-page__empty-lead {
    margin: 0;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #2c3e4e;
}

.compare-page__empty-hint {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #5c6b7a;
}

.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px -18px rgba(44, 62, 78, 0.22);
}

.compare-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: collapse;
    background: #fff;
}

.compare-table thead th {
    padding: 1rem;
    border-bottom: 1px solid #e8e8e8;
    background: #f7f8f9;
    vertical-align: top;
}

.compare-table tbody th,
.compare-table tbody td {
    padding: 0.85rem 1rem;
    border-top: 1px solid #eef1f3;
    vertical-align: top;
}

.compare-table__label-col {
    width: 11.5rem;
    min-width: 10rem;
    background: #f7f8f9;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5c6b7a;
    text-align: left;
}

.compare-table__product-col {
    min-width: 11.5rem;
}

.compare-table__product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.compare-table__thumb {
    display: block;
    line-height: 0;
}

.compare-table__thumb img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
}

.compare-table__name {
    display: block;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #2c3e4e;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}

.compare-table__name:hover,
.compare-table__name:focus {
    color: #026602;
    text-decoration: none;
}

.compare-table__price {
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #026602;
}

.compare-table__product-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    width: 100%;
    max-width: 12.5rem;
    margin-top: 0.25rem;
}

.compare-table__product-actions .site-btn {
    width: 100%;
    justify-content: center;
}

.compare-table__value {
    font-size: 14px;
    line-height: 1.45;
    color: #2c3e4e;
}

.compare-table__value--diff {
    background: #fff9eb;
}

.compare-table__color {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-table__color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px) {
    .compare-page__head {
        align-items: flex-start;
    }

    .compare-page__actions {
        width: 100%;
    }

    .compare-table tbody .compare-table__label-col {
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 4px 0 8px -6px rgba(44, 62, 78, 0.18);
    }
}

/* Кнопки сравнения в карточках каталога */
.col-item__compare {
    margin-top: 8px;
}

.col-item__compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f7173;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

.col-item__compare-link:hover,
.col-item__compare-link:focus {
    color: #026602;
    text-decoration: none;
}

.col-item__compare-link.compare-btn--active {
    color: #026602;
    font-weight: 600;
}

.col-item__compare-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f7173;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.compare-btn--large {
    font-size: 15px;
}

.compare-btn:hover,
.compare-btn:focus {
    color: #026602;
    text-decoration: none;
}

.compare-btn--active {
    color: #026602;
    font-weight: 600;
}

.product-view__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.compare-widget {
    margin-bottom: 15px;
}

.compare-widget__link {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e3ecec;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.compare-widget__link:hover,
.compare-widget__link:focus {
    color: #026602;
    text-decoration: none;
}

.compare-widget__link .navbar-toolbar__badge {
    margin-left: 6px;
}
