/**
 * Product Comparison Styles
 */

/* Add to Compare Button */
.btn-add-to-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #333;
    border: 2px solid #8B4513;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-compare:hover {
    background: #8B4513;
    color: #fff;
}

.btn-add-to-compare.in-comparison {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

.btn-add-to-compare.in-comparison:hover {
    background: #6D3710;
    border-color: #6D3710;
}

.btn-add-to-compare:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-add-to-compare .compare-icon {
    font-size: 18px;
    line-height: 1;
}

/* Floating Comparison Bar */
.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #8B4513;
    color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.comparison-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.comparison-count {
    font-size: 16px;
    font-weight: 600;
}

.btn-view-comparison {
    display: inline-block;
    padding: 10px 24px;
    background: #fff;
    color: #8B4513;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-comparison:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.comparison-bar .close-bar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.comparison-bar .close-bar:hover {
    background: rgba(255,255,255,0.2);
}

/* Notifications */
.lh-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    min-width: 250px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.lh-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.lh-notification-success {
    background: #22c55e;
    color: #fff;
}

.lh-notification-error {
    background: #ef4444;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-bar-content {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .comparison-count {
        font-size: 14px;
    }

    .btn-view-comparison {
        padding: 8px 20px;
        font-size: 14px;
    }

    .lh-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}
