/* Skeleton Loader Styles */

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    background: linear-gradient(90deg,
        var(--neutral100) 0%,
        var(--neutral200) 50%,
        var(--neutral100) 100%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Banner Skeleton */
.skeleton-banner {
    width: 100%;
    max-width: 100%;
    height: 400px;
    margin: 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    .skeleton-banner {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .skeleton-banner {
        height: 150px;
    }
}

/* Product Card Skeleton */
.skeleton-product-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: 350px;
    width: 100%;
}

.skeleton-product-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-product-title {
    width: 80%;
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-product-price {
    width: 40%;
    height: 20px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-product-button {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

/* Products Grid Skeleton */
.skeleton-products-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 15px;
}

.skeleton-products-container .skeleton-product-card {
    min-width: 280px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .skeleton-products-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow-x: visible;
    }

    .skeleton-products-container .skeleton-product-card {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .skeleton-products-container {
        gap: 15px;
    }

    .skeleton-products-container .skeleton-product-card {
        min-width: 200px;
    }
}

/* Hide actual content until loaded */
.loading .swiper-container,
.loading .swiper-wrapper {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Show content when loaded */
.loaded .skeleton-banner,
.loaded .skeleton-products-container {
    display: none;
}

.loaded .swiper-container,
.loaded .swiper-wrapper {
    opacity: 1;
    height: auto;
}
