/* Home Page Specific Styles - Optimized */

/* Skeleton Loader Styles */
.skeleton-loader {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
}

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

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

.skeleton-image {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-image.small {
    height: 80px;
    width: 80px;
    border-radius: 50%;
}

.skeleton-video {
    width: 100%;
    height: 250px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

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

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-content {
    padding: 10px;
}

/* Category Skeleton */
.category-skeleton {
    text-align: center;
    padding: 15px;
}

.category-skeleton .skeleton-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    border-radius: 12px;
}

.category-skeleton .skeleton-text {
    width: 80px;
    margin: 0 auto;
}

/* Product Skeleton */
.product-skeleton {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-skeleton .skeleton-image {
    height: 200px;
    margin-bottom: 15px;
}

/* Video Product Skeleton */
.video-product-skeleton {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.video-product-skeleton .skeleton-video {
    height: 180px;
}

/* Blog Skeleton */
.blog-skeleton {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-skeleton .skeleton-image {
    height: 200px;
    margin-bottom: 15px;
}

/* Lazy Loading Section Styles */
.lazy-section {
    min-height: 200px;
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}

/* Maintain proper structure for category slider */
.category-slider-wrapper {
    min-height: 300px;
    width: 100%;
    display: block;
}

.category-slider-wrapper .category-slider {
    width: 100%;
    display: block;
}

/* Maintain proper structure for watch slider */
.watch-slider-wrapper {
    min-height: 250px;
    width: 100%;
    display: block;
}

.watch-slider-wrapper .watch-slider {
    width: 100%;
    display: block;
}

/* Maintain proper structure for other sliders */
.slider-wrapper {
    min-height: 400px;
    width: 100%;
    display: block;
}

.slider-wrapper .slider-3_3 {
    width: 100%;
    display: block;
}

.slider-bank-wrapper {
    min-height: 300px;
    width: 100%;
    display: block;
}

.slider-bank-wrapper .slider-bank-3 {
    width: 100%;
    display: block;
}

.blog-slider-wrapper {
    min-height: 350px;
    width: 100%;
    display: block;
}

.blog-slider-wrapper .slider-3-blog {
    width: 100%;
    display: block;
}

/* Blog section specific styles */
.blog-section .slider-3-blog {
    margin-top: 20px;
}

.blog-section .blog-box {
    margin-bottom: 0;
}

/* Ensure content maintains structure */
.lazy-section>* {
    width: 100%;
    display: block;
}

.lazy-section.loading {
    opacity: 0.7;
}

.lazy-section.loaded {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

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

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

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #79ac42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Section Container */
.section-container {
    position: relative;
    min-height: 300px;
}

/* Optimized Image Loading */
img[data-lazy] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-lazy].loaded {
    opacity: 1;
}

/* Performance Optimizations */
.lazy-section * {
    will-change: opacity, transform;
}

/* Featured Collections Styles */
.featured-collections-row {
    margin-left: -10px;
    margin-right: -10px;
}

.featured-collection-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

.featured-collection-card {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.featured-collection-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-collection-image-box {
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    min-height: 200px;
    padding: 0;
}

.featured-product-img-wrapper {
    width: 100%;
    height: 100%;
    min-height: 200px;
    position: relative;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-collection-img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.featured-collection-card:hover .featured-collection-img {
    transform: scale(1.05);
}

.featured-collection-arrow-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-collection-arrow-icon i {
    font-size: 14px;
    color: #333;
}

.featured-collection-card:hover .featured-collection-arrow-icon {
    background: #79ac42;
}

.featured-collection-card:hover .featured-collection-arrow-icon i {
    color: white;
}

.featured-collection-info {
    text-align: left;
    padding: 0 5px;
    margin-top: 15px;
    padding-top: 10px;
}

.featured-collection-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-collection-items {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .skeleton-image {
        height: 150px;
    }

    .category-skeleton .skeleton-image {
        width: 120px;
        height: 120px;
    }

    .product-skeleton .skeleton-image {
        height: 180px;
    }

    .featured-collections-row {
        margin-left: -8px;
        margin-right: -8px;
    }

    .featured-collection-col {
        padding-left: 8px;
        padding-right: 8px;
        margin-bottom: 16px;
    }

    .featured-collection-card {
        padding: 12px;
        border-radius: 12px;
    }

    .featured-collection-image-box {
        min-height: 150px;
        padding: 0;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .featured-product-img-wrapper {
        min-height: 150px;
    }

    .featured-collection-img {
        min-height: 150px;
    }

    .featured-collection-info {
        padding: 0 4px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .featured-collection-title {
        font-size: 15px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .featured-collection-items {
        font-size: 12px;
    }

    .featured-collection-arrow-icon {
        width: 28px;
        height: 28px;
        bottom: 8px;
        right: 8px;
    }

    .featured-collection-arrow-icon i {
        font-size: 12px;
    }
}