@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:root {
    --himalayan-sunset: #D97706;
    --clay-deep: #92400E;
    --saffron: #DC2626;
    --sage: #78716C;
    --cream: #FAFAF9;
}

html {
    scroll-behavior: smooth;
    background: var(--cream);
}

body {
    background: linear-gradient(to bottom, #FAFAF9 0%, #F5F5F4 100%);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Owl Carousel Custom Dots */
.owl-theme .owl-dots {
    margin-top: 2rem !important;
}

.owl-theme .owl-dots .owl-dot span {
    width: 6px;
    height: 6px;
    margin: 5px 6px;
    background: rgba(0, 0, 0, 0.1);
    display: block;
    transition: all 0.4s ease;
    border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #D97706;
    width: 24px;
}

.category-btn {
    background-color: #FEF3C7;
    color: #92400E;
    border: 2px solid #FDE68A;
}

.category-btn:hover {
    background-color: #FDE68A;
    border-color: #FCD34D;
}

.category-btn.active {
    background-color: #D97706;
    color: white;
    border-color: #D97706;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.scroll-reveal:nth-child(1) {
    transition-delay: 0ms;
}

.scroll-reveal:nth-child(2) {
    transition-delay: 100ms;
}

.scroll-reveal:nth-child(3) {
    transition-delay: 200ms;
}

.scroll-reveal:nth-child(4) {
    transition-delay: 0ms;
}

.scroll-reveal:nth-child(5) {
    transition-delay: 100ms;
}

.scroll-reveal:nth-child(6) {
    transition-delay: 200ms;
}

/* 3D Card Tilt Effect */
.product-card-3d {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.product-card-3d:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.05);
}

/* Smooth glow on hover */
.product-glow {
    position: relative;
}

.product-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #f59e0b, #d97706, #b45309);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s ease;
}

.product-glow:hover::before {
    opacity: 0.6;
}

/* Parallax container */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
}

/* Breathing animation for featured products */
@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

/* Magnetic cursor effect prep */
.magnetic {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image zoom on hover */
.image-zoom-container {
    overflow: hidden;
}

.image-zoom {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover .image-zoom {
    transform: scale(1.1);
}

/* === GPU-BURNING ANIMATIONS === */

/* Animated gradient background */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

/* Floating particles */
.particle-float {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    bottom: -10px;
    animation: float-up 20s infinite ease-in;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* Ambient blob animations */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Slow pulse */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating badge */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

/* Spinning decorations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 25s linear infinite;
}

/* Shimmer effect */
.shimmer-effect {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Text slide-in animations */
@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-up {
    animation: slide-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Fade in */
.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 3D image tilt on mouse move */
.image-3d-tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Scroll indicator bounce */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Skeleton Loader Animation */
@keyframes shimmer-skeleton {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: #e5e7eb;
    background-image: linear-gradient(90deg,
            #e5e7eb 0%,
            #f3f4f6 50%,
            #e5e7eb 100%);
    background-size: 200% 100%;
    animation: shimmer-skeleton 1.5s infinite;
    border-radius: 0.5rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    min-width: 300px;
    padding: 1rem;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid #3b82f6;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #22c55e;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

/* Testimonial Slider Styles */
#testimonials-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-slide {
    scroll-snap-align: center;
    flex: 0 0 100%;
}

/* Stat Counters */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Section Transitions */
.bg-stone-50 {
    background-color: #fafaf9;
}

.bg-amber-900 {
    background-color: #78350f;
}

/* Category Hover Effects */
#category-showcase .group:hover img {
    transform: scale(1.1);
}

#category-showcase .group:hover p {
    opacity: 1;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.animate-marquee-slow {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
    will-change: transform;
}

.animate-marquee:hover,
.animate-marquee-slow:hover {
    animation-play-state: paused;
}

.marquee-card {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.marquee-card:hover {
    border-color: #d97706;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.mini-marquee-card {
    flex: 0 0 auto;
    width: 220px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.mini-marquee-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #d97706;
}