/* Custom Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure footer stays at bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Dark Mode Overrides specific if Tailwind classes aren't enough */
.dark-bg {
    background-color: #1a202c; /* Gray 900 */
}

.dark-card {
    background-color: #2d3748; /* Gray 800 */
}

.dark-text {
    color: #e2e8f0; /* Gray 200 */
}

@keyframes button-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animate-pop {
    animation: button-pop 0.3s ease-in-out;
}

/* Cart Shake Animation */
@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.shake {
    animation: shake 0.5s ease-in-out;
    display: inline-block; /* Ensure transform works */
}

/* Chat Widget Styles */
#chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

#chat-widget-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #2d3748; /* Gray 800 */
    border: 1px solid #4a5568; /* Gray 700 */
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.3s ease;
}

#chat-widget-window.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.chat-header {
    background-color: #2563eb; /* Blue 600 */
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1d4ed8;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #4a5568;
    background-color: #1a202c;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.chat-message.bot {
    background-color: #4a5568;
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background-color: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-option-btn {
    background-color: transparent;
    border: 1px solid #4299e1;
    color: #4299e1;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.chat-option-btn:hover {
    background-color: #4299e1;
    color: white;
}
