/* Widget Chatbot Carrstm */
#chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #e31e24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9998;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#chat-header {
    background: #e31e24;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

#chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafafa;
}

.msg-bot {
    align-self: flex-start;
    max-width: 80%;
    padding: 10px 14px;
    background: #f1f1f1;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.msg-user {
    align-self: flex-end;
    max-width: 80%;
    padding: 10px 14px;
    background: #333;
    color: white;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

.chat-products {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.product-card {
    min-width: 140px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.product-name {
    font-size: 12px;
    font-weight: 600;
    margin: 6px 0;
}

.product-price {
    font-size: 12px;
}

.product-price .original {
    text-decoration: line-through;
    color: #999;
    margin-right: 4px;
}

.product-price .offer {
    color: #e31e24;
    font-weight: bold;
}

.product-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #e31e24;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 11px;
}

.chat-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.category-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.quick-reply-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e31e24;
    color: #e31e24;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

#chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    align-items: center;
}

#chat-input {
    flex-grow: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#chat-send {
    width: 40px;
    height: 40px;
    background: #e31e24;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 16px;
}
