/* compare.css – без изменений, но можно добавить дополнительные стили, если нужно */
.compare-button {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compare-button i {
    font-size: 1.1em;
}

.compare-table-wrapper {
    margin: 30px 0;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.compare-table th,
.compare-table td {
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    vertical-align: middle;
}

.compare-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    text-align: left;
    width: 220px;
}

.compare-table td {
    text-align: center;
    min-width: 180px;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: #fafafa;
}

.compare-table .product-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.compare-table .product-title a {
    color: #222529;
    text-decoration: none;
}

.compare-table .product-title a:hover {
    color: #0088cc;
}

.compare-table .product-image {
    display: block;
    text-align: center;
}

.compare-table .product-image a {
    display: inline-block;
    cursor: pointer;
}

.compare-table .product-image img {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.compare-table .product-image img:hover {
    transform: scale(1.05);
}

.compare-table .product-price {
    font-size: 18px;
    font-weight: 600;
    color: #222529;
}

.compare-table .remove-compare {
    display: inline-block;
    margin-top: 10px;
    color: #ff0000;
    text-decoration: none;
    font-size: 12px;
}

.compare-table .remove-compare:hover {
    text-decoration: underline;
}

.compare-buttons {
    text-align: right;
    margin-bottom: 20px;
}

.compare-buttons .button {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .compare-table {
        display: block;
        overflow-x: auto;
    }
    .compare-table th,
    .compare-table td {
        min-width: 120px;
    }
    .compare-table th {
        width: 150px;
    }
}