/* /css/pages/ai-search.css */
body { background: #f0f2f5; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

.chat-header {
    background: var(--white);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.msg-ai {
    align-self: flex-start;
    background: var(--white);
    color: var(--dark);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.msg-user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.input-area {
    background: var(--white);
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 24px;
    outline: none;
}
.chat-input:focus { border-color: var(--primary); }

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--dark);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Product Card inside Chat */
.chat-product-card {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}
.chat-product-card img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }