/* Custom CSS for Shri Khakhra Website */

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

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ffbf00, #f5af00);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e6ac00, #dd9e00);
}

/* Product card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}
/* Cart modal animation */
#cartModal {
    transition: opacity 0.3s ease;
}

#cartModal > div {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#cartModal:not(.hidden) {
    display: flex !important;
    opacity: 1;
}

#cartModal:not(.hidden) > div {
    transform: translateY(0);
}

/* Ensure custom components take full width */
custom-navigation,
custom-footer {
    display: block;
    width: 100%;
}
/* Loading animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ffbf00;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile menu animation */
.mobile-menu-enter {
    transform: translateX(100%);
}

.mobile-menu-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.mobile-menu-exit {
    transform: translateX(0);
}

.mobile-menu-exit-active {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ffbf00 0%, #f5af00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 191, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 191, 0, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Print styles */
@media print {
    #cartButton,
    .product-add-btn {
        display: none !important;
    }
}