

/* Chat Widget Styles */
.wc-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: bounce 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.chat-icon {
    font-size: 24px;
    color: white;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

.notification-badge.pulse {
    animation: pulse 1.5s infinite;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
}

.chat-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
}

.bot-message .message-content {
    background: white;
    padding: 15px;
    border-radius: 15px 15px 15px 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.chat-input-area {
    padding: 20px;
    background: white;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.chat-btn {
    flex: 1;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Ofertas Styles */
.offers-container {
    margin-top: 15px;
}

.offer-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.offer-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.offer-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-details h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 11px;
}

.sale-price {
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
}

.discount {
    background: #ff4757;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.view-product {
    color: #667eea;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.view-product:hover {
    color: #764ba2;
}

/* Recomendaciones Styles */
.recommendations-container {
    margin-top: 15px;
}

.recommendation-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #e8f5e8;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
}

.rec-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
}

.rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-details h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.rec-details .price {
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wc-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-container {
        width: 300px;
        height: 450px;
    }
    
    .chat-toggle {
        width: 55px;
        height: 55px;
    }
    
    .chat-icon {
        font-size: 22px;
    }
}

/* Scrollbar personalizada */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
