/* 产品比较 */
.cmp-page {
    padding: 40px 0 80px;
    background: #fff;
    min-height: 50vh;
}

.cmp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cmp-head h1 {
    font-size: 28px;
    font-weight: 700;
    color: #151515;
    margin: 0;
}

.cmp-btn-excel {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.cmp-btn-excel:hover {
    opacity: .92;
}

.cmp-wrap {
    overflow-x: auto;
}

.cmp-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #e5e5e5;
}

.cmp-table td {
    border: 1px solid #e5e5e5;
    padding: 14px 16px;
    vertical-align: middle;
    background: #fff;
}

.cmp-side {
    width: 220px;
    background: #fafafa !important;
}

.cmp-add {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.cmp-add input {
    flex: 1;
    min-width: 0;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0 10px;
    font-size: 13px;
}

.cmp-add .btn-add {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 3px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.cmp-filter {
    font-size: 13px;
    color: var(--primary);
    line-height: 1.6;
}

.cmp-filter a {
    color: var(--primary);
    cursor: pointer;
}

.cmp-filter a.active {
    font-weight: 700;
    text-decoration: underline;
}

.cmp-filter span {
    color: #ccc;
    margin: 0 6px;
}

.cmp-prod {
    width: auto;
    text-align: center;
}

.cmp-prod.empty {
    background: #fcfcfc !important;
    min-height: 180px;
}

.cmp-prod .thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
}

.cmp-prod .desc {
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    color: #666;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

.cmp-prod .acts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.cmp-prod .btn-cart {
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 3px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.cmp-prod .btn-remove {
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.cmp-label {
    text-align: left;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.cmp-label label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cmp-label input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.cmp-val {
    text-align: center;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.cmp-val.price {
    color: var(--primary);
    font-weight: 600;
}

.cmp-empty-page {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 15px;
}

.cmp-empty-page a {
    color: var(--primary);
}

@media (max-width: 768px) {
    .cmp-page {
        padding: 20px 0 40px;
    }

    .cmp-head h1 {
        font-size: 20px;
    }

    .cmp-side {
        width: 180px;
    }
}
