/* Smooth Animations & Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.product, .product-card, .order, .stat-card, .info-card, .category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product:hover, .product-card:hover, .order:hover, .stat-card:hover, .info-card:hover, .category-card:hover {
    transform: translateY(-8px) scale(1.02);
}

button, .btn, .submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button::after, .btn::after, .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after, .btn:active::after, .submit-btn:active::after {
    width: 300px;
    height: 300px;
}

img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: scale(1.02);
}

.modal-overlay {
    animation: fadeIn 0.3s ease;
}

.modal {
    animation: slideUpBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpBounce {
    0% { opacity: 0; transform: translateY(100px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cart-badge, .badge {
    animation: pulse 2s ease-in-out infinite;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a5490, #ff6600);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6600, #1a5490);
}

a {
    transition: all 0.3s ease;
}

.form-group {
    animation: fadeInUp 0.5s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
