/* ==================== EXPLORE PAGE SKELETON ==================== */

/* Category Skeleton */
.category-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.category-skeleton-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: transparent;
}

.category-skeleton-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.category-skeleton-name {
    flex: 1;
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Products Skeleton Grid - Match explore-products-grid EXACTLY */
/* Use display: contents to make skeleton cards direct children of explore-products-grid */
.explore-products-skeleton {
    display: contents; /* Remove container, let skeleton cards be direct grid children */
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 0; /* No gap, parent grid handles gap */
}

/* Skeleton cards should have exact same width constraints as product cards */
.explore-products-grid .product-skeleton {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Allow grid item to shrink */
    min-height: 400px; /* Match .product-card default */
}

.explore-products-grid .skeleton-image {
    flex: 0 0 250px; /* Match .product-image default */
    min-height: 250px;
    max-height: 250px;
}

@media (max-width: 768px) {
    .explore-products-grid .product-skeleton {
        min-height: 340px;
    }

    .explore-products-grid .skeleton-image {
        flex: 0 0 210px;
        min-height: 210px;
        max-height: 210px;
    }
}

@media (max-width: 768px) and (min-width: 601px) {
    .explore-products-grid .product-skeleton {
        min-height: 360px;
    }

    .explore-products-grid .skeleton-image {
        flex: 0 0 230px;
        min-height: 230px;
        max-height: 230px;
    }
}

@media (max-width: 600px) and (min-width: 481px) {
    .explore-products-grid .product-skeleton {
        min-height: 320px;
    }

    .explore-products-grid .skeleton-image {
        flex: 0 0 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .explore-products-grid .skeleton-content {
        padding: 8px;
    }
}

@media (max-width: 480px) and (min-width: 361px) {
    .explore-products-grid .product-skeleton {
        min-height: 300px;
    }

    .explore-products-grid .skeleton-image {
        flex: 0 0 190px;
        min-height: 190px;
        max-height: 190px;
    }

    .explore-products-grid .skeleton-content {
        padding: 8px;
    }
}

@media (max-width: 360px) {
    .explore-products-grid .product-skeleton {
        min-height: 260px;
    }

    .explore-products-grid .skeleton-image {
        flex: 0 0 180px;
        min-height: 180px;
        max-height: 180px;
    }

    .explore-products-grid .skeleton-content {
        padding: 6px;
    }

    .explore-products-grid .skeleton-title {
        height: 24px;
        min-height: 24px;
        margin-bottom: 4px;
    }

    .explore-products-grid .skeleton-rating {
        height: 12px;
        min-height: 12px;
        margin-bottom: 0;
    }

.explore-products-grid .skeleton-price {
    height: 16px;
}

.explore-products-grid .skeleton-button {
    display: none;
}

    .category-skeleton-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .category-skeleton-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .category-skeleton-name {
        height: 12px;
    }
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive - No need for media queries since skeleton uses display: contents */
/* The parent explore-products-grid handles all responsive behavior */

/* Global overrides to keep skeletons in sync with product card ratios */
.explore-products-grid .product-skeleton {
    min-height: auto !important;
}

.explore-products-grid .skeleton-image {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: auto !important;
    height: 70% !important;
    flex: 0 0 70% !important;
}
