/* AI Sales Advisor Styles */
.ai-sales-advisor {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bubbles Container */
.advisor-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.advisor-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

.advisor-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.advisor-bubble.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    transform: translateY(-2px);
}

/* Details Panel */
.advisor-details {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-title {
    font-weight: 600;
    font-size: 16px;
}

.details-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.details-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.details-content {
    padding: 20px;
}

/* Typing Animation */
.typing-animation {
    font-size: 15px;
    line-height: 1.6;
    min-height: 40px;
    color: #333;
}

.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    animation: blink 1s infinite;
    font-weight: bold;
    color: #667eea;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Similar Products Section */
.similar-products-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.similar-products-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.similar-product-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.similar-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    background: white;
}

.similar-product-card a {
    text-decoration: none;
    color: inherit;
}

.similar-product-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.similar-product-card h5 {
    font-size: 14px;
    margin: 10px 0 5px;
    color: #333;
    line-height: 1.3;
}

.similar-product-card .price {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

/* Frequently Bought Together */
.frequently-bought-together {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #dee2e6;
}

.frequently-bought-together h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.bundle-icon {
    font-size: 24px;
    margin-right: 10px;
}

.bundle-products {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.bundle-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    min-width: 180px;
    transition: all 0.3s ease;
}

.bundle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.bundle-item.main-product {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bundle-item.main-product .price {
    color: #fff;
}

.product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-info h5 {
    font-size: 14px;
    margin: 8px 0 5px;
    line-height: 1.3;
    font-weight: 600;
}

.product-info .price {
    font-weight: bold;
    font-size: 16px;
    color: #667eea;
}

.plus-icon {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
    margin: 0 10px;
    display: flex;
    align-items: center;
}

.bundle-pricing {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.pricing-details {
    text-align: center;
    margin-bottom: 20px;
}

.pricing-details > div {
    margin-bottom: 8px;
    font-size: 16px;
}

.individual-total {
    color: #666;
    text-decoration: line-through;
}

.bundle-discount {
    color: #28a745;
    font-size: 20px;
    font-weight: bold;
}

.savings {
    color: #dc3545;
    font-weight: bold;
    background: #fff3cd;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    border: 1px solid #ffeaa7;
}

.add-bundle-to-cart {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.add-bundle-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.add-bundle-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cart-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Loading States */
.loading {
    opacity: 0.6;
}

.loading::after {
    content: " ⏳";
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .advisor-bubbles {
        justify-content: center;
        gap: 8px;
    }
    
    .advisor-bubble {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .bundle-products {
        flex-direction: column;
        align-items: center;
    }
    
    .plus-icon {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .bundle-item {
        min-width: 150px;
    }
    
    .frequently-bought-together {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .ai-sales-advisor {
        margin: 10px 0;
    }
    
    .details-content {
        padding: 15px;
    }
    
    .advisor-bubble {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .bundle-item {
        min-width: 130px;
        padding: 12px;
    }
    
    .product-image img {
        width: 60px;
        height: 60px;
    }
}

/* Admin Styles Enhancement */
.notice.notice-success {
    border-left-color: #28a745;
    background: #d4edda;
}