/* CSS Styling */
.horizontal-videos {
    display: flex;
    overflow: hidden;
    gap: 10px;
    max-width: calc((200px * 6) + (10px * 5));
    margin: 20px auto 0;
    margin-bottom: 25px !important;
    scroll-behavior: smooth;
}

.video-wrapper {
    position: relative;
}

.video-wrapper iframe {
    border-radius: 15px;
    width: 200px;
    height: 355px;
    cursor: pointer;
}

.iframe-click-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: transparent;
}

#videoOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

#videoOverlay.active {
    display: flex;
}

#videoOverlay iframe {
    width: 400px;
    height: 700px;
    border-radius: 15px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.shimmer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 15px;
}

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

@media (max-width: 767px) {
    .horizontal-videos {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: calc((160px * 2) + (10px * 1));
    }
    .video-wrapper iframe {
    width: 160px;
    height: 285px;
    }
    
    #videoOverlay iframe {
    width: 90%;
    height: 80%;
    max-height: 80%;
    }          
}    
#road-container {
    width: 100%;
    max-width: 100%;
    height: 100px;
    background-color: black; 
    position: relative; 
    overflow: hidden; 
}

#road-container > div:first-child {
    height: 40%; 
    border-bottom: 6px dashed white;
}



#car-1 {
    top: -15px !important; 
    background-color: transparent; 
}

#car-2 {
    top: 40px !important; 
    background-color: transparent;
}



.category-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

.skeleton-img-circle {
    width: 80px;
    height: 80px;
    border-radius: 50% !important;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
  #featured-skeleton .col-6 {
    display: none;
  }
  .category-skeleton:nth-child(n+4) {
    display: none;
  }
  .category-shimmer-wrapper {
    display: flex;
    flex-wrap: wrap !important;
    }
  .category-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% / 3) - 18px) !important;
 }
 .skeleton-img-circle {
    width: 100% !important;
    height: 126px !important;
    border-radius: 50% !important;
    margin-bottom: 10px;
}
}
@media (max-width: 534px) {
    .skeleton-img-circle {
    width: 100% !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin-bottom: 10px;
    }
    #featured_products_list {
         max-width: unset !important; 
        margin: 0 auto;
    }
}

.category-skeleton .skeleton-text {
    width: 60px;
}

.category-shimmer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px;
}
       
    .skeleton {
        background-color: #ffe4bc;
        background-image: linear-gradient(
            90deg,
            #fde9c8 0px,
            #fff3dc 50%,
            #fde9c8 100%
        );
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite linear;
        border-radius: 4px;
    }

    .skeleton-card {
        background: #ffe4bc;
        padding: 10px;
        border-radius: 8px;
    }

    .skeleton-img {
        width: 100%;
        height: 180px; 
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .skeleton-text {
        height: 14px; 
        margin-bottom: 8px;
        border-radius: 4px;
    }

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