/* --- Base & Typography --- */
body {
    font-family: 'Nunito', sans-serif;
    -webkit-tap-highlight-color: transparent;
    background-color: #FFF5F7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'Fredoka', sans-serif;
}

/* --- Stylish Mesh Gradient Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #ffeff4;
    background-image:
        radial-gradient(at 10% 10%, hsla(330, 80%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 90% 0%, hsla(280, 70%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(340, 60%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(220, 60%, 94%, 1) 0px, transparent 50%);
    filter: blur(40px);
}

/* --- Glassmorphism --- */
.glass-pill {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.1);
}

/* --- Animations --- */
@keyframes float-slow {

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

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.animate-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

/* --- Utilities --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-zoom {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-zoom:active {
    transform: scale(0.96);
}

/* Flip Card Effect */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Phone Screen Styles */
.phone-mockup {
    border: 8px solid #333;
    border-radius: 30px;
    overflow: hidden;
    background: white;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 20px;
    background: #333;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* --- Cart Styles --- */
.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.cart.active {
    visibility: visible;
    opacity: 1;
}

.cart__inner {
    position: absolute;
    right: -100%;
    top: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    transition: all 0.4s ease;
    padding: 20px;
    overflow-y: auto;
}

.cart.active .cart__inner {
    right: 0;
}

/* --- Fly to Cart Animation --- */
.fly-to-cart {
    position: fixed;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4);
    border: 3px solid white;
}

.swiper-pagination-bullet {
    background: #e2e8f0 !important;
    opacity: 1 !important;
    width: 6px !important;
    height: 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #f43f5e !important;
    width: 20px !important;
    border-radius: 4px !important;
}

/* --- Skeleton Loading --- */
@keyframes skeleton-loading {
    0% {
        background-color: #f1f5f9;
    }

    50% {
        background-color: #f8fafc;
    }

    100% {
        background-color: #f1f5f9;
    }
}

.skeleton {
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 1rem;
}

.skeleton-img {
    aspect-ratio: 3/4;
    width: 100%;
}

.skeleton-text {
    height: 1rem;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
}