/* Mbote AI Assistant - Modern Glassmorphism Design */
.ai-assistant-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.ai-assistant-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(184, 134, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-assistant-toggle:hover {
    transform: scale(1.1) translateY(-5px);
}

.ai-assistant-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.ai-assistant-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.ai-assistant-header {
    padding: 20px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-assistant-header-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-assistant-header-title i {
    color: #FFD700;
}

.ai-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.ai-message.assistant {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ai-message.user {
    background: #FFD700;
    color: black;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-assistant-input-area {
    padding: 15px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

.ai-assistant-input-area input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 10px;
}

.ai-assistant-send {
    background: none;
    border: none;
    color: #B8860B;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.ai-assistant-send:hover {
    transform: scale(1.2);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (max-width: 480px) {
    .ai-assistant-window {
        width: calc(100vw - 40px);
        bottom: 80px;
        right: -10px;
    }
}

/* Rich Product Cards & Slider */
.ai-product-slider {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 0 15px 0;
    margin-top: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.ai-product-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.ai-product-card {
    flex: 0 0 240px; /* Fixed width for slider items */
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
}

.ai-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.ai-product-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f8f8;
}

.ai-product-info {
    flex: 1;
    min-width: 0;
}

.ai-product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.ai-product-price {
    font-size: 12px;
    color: #B8860B;
    font-weight: 700;
}
