/* styles.css
   Global custom styles
   Most styling should be handled by Tailwind classes, 
   but specific overrides or animations can go here. 
*/

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
    transform: translateY(4px);
}

/* Custom Webkit Scrollbar for smoother looks */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* Toast slide-in animation */
@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(2rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Modal transitions (Vue <Transition name="modal">) */
.modal-enter-active {
    transition: opacity 0.25s ease;
}
.modal-enter-active > div {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.modal-leave-active {
    transition: opacity 0.2s ease;
}
.modal-leave-active > div {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.modal-enter-from {
    opacity: 0;
}
.modal-enter-from > div {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
}
.modal-leave-to {
    opacity: 0;
}
.modal-leave-to > div {
    opacity: 0;
    transform: scale(0.95) translateY(5px);
}

/* Product image zoom on hover */
.img-zoom {
    transition: transform 0.3s ease;
}
.img-zoom:hover {
    transform: scale(1.8);
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}

/* ── Dark Mode Overrides ── */
.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
