/* Custom scrollbar for cart sidebar */
#cartItems {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #1a202c;
}

#cartItems::-webkit-scrollbar {
    width: 8px;
}

#cartItems::-webkit-scrollbar-track {
    background: #1a202c;
}

#cartItems::-webkit-scrollbar-thumb {
    background-color: #4a5568;
    border-radius: 4px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animation for cart count */
#cartCount {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Custom scrollbar styles */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: #f97316 #1f2937;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 2px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: #f97316;
    border-radius: 2px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}