/* Custom styles for Pandey Vastra Bhandar */

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

/* Fixed navbar styles */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* Product button size override */
.product-card button {
    padding: 0.375rem 0.75rem !important; /* py-1.5 px-3 equivalent */
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(229, 192, 123, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(229, 192, 123, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(229, 192, 123, 0.5);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero slider styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Product card hover effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Navigation styles - dropdown removed */

/* Back to top button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

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

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

::-webkit-scrollbar-thumb {
    background: #800000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E5C07B;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Indicator styles for slider */
.indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Text animations */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slideIn {
    animation: slideIn 0.8s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.5s ease-out;
}

/* Festival section animations */
.festival-bounce {
    animation: bounce 2s infinite;
}

.festival-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Custom gradient backgrounds */
.gradient-maroon {
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #E5C07B 0%, #f0d08a 100%);
}

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(128, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Custom badge styles */
.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Admin panel specific styles */
.admin-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Drag and drop styles */
.drag-over {
    border-color: #800000 !important;
    background-color: #FDF6E3 !important;
}

/* Success/Error states */
.success {
    border-color: #10B981;
    background-color: #ECFDF5;
}

.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .product-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}


/* ===== Independence Day Theme ===== */

/* Waving flag / emoji animation */
@keyframes flagWave {
    0%, 100% {
        transform: rotate(-6deg) translateY(0);
    }
    50% {
        transform: rotate(6deg) translateY(-3px);
    }
}

.animate-flag-wave {
    display: inline-block;
    animation: flagWave 2.2s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Ashoka Chakra spin */
@keyframes chakraSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-chakra-spin {
    display: inline-block;
    animation: chakraSpin 8s linear infinite;
}

/* Announcement marquee */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track {
    animation: marqueeScroll 22s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-flag-wave,
    .animate-chakra-spin,
    .marquee-track {
        animation: none;
    }
}
