/* === Skeleton Loading === */
.skeleton {
    background: #e1e4e8;
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    display: inline-block;
    border-radius: 4px;
    animation: skeletonShimmer 1.5s infinite linear;
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.product-card.skeleton-card {
    pointer-events: none;
}

.product-card.skeleton-card .product-image {
    background: #e1e4e8;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-btn {
    height: 40px;
    width: 100%;
    border-radius: var(--radius-md);
}

/* === Fly To Cart Animation === */
.flying-img {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === Hero 3D Tilt Effect === */
.hero-image-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-img,
.floating-card {
    transition: transform 0.1s ease-out;
    /* Smooth instant movement */
}

/* === Scroll Animations === */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes bump { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } } .bump { animation: bump 0.3s ease; }
