/* Meesuk Supply - Custom Styles */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Dropdown animation */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

/* Cart badge animation */
#cart-count {
    transition: transform 0.3s ease;
}

/* Toast animation */
#cart-toast {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Input focus animation */
input:focus, textarea:focus, select:focus {
    transition: all 0.2s ease;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Bounce animation for badge */
@keyframes bounce-sm {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.animate-bounce-sm {
    animation: bounce-sm 0.3s ease;
}

/* Print styles */
@media print {
    header, footer, nav, .no-print {
        display: none !important;
    }
}
