.product-compare-container {
    margin: 20px 0;
    position: relative;
}

.product-compare-message {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-compare-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-compare-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.product-compare-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-compare-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-compare-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-compare-item h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.product-compare-item .price {
    color: #4054b2;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-compare-item .attributes {
    font-size: 14px;
}

.product-compare-item .attributes dt {
    font-weight: bold;
    margin-top: 8px;
}

.product-compare-item .attributes dd {
    margin-left: 0;
    color: #666;
}

.add-to-compare {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-compare.added {
    background-color: #4054b2;
    color: white;
    border-color: #4054b2;
}
