/* Skeleton Loading Animation */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
    border-radius: 4px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Image skeleton placeholders */
.img-skeleton {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hide the actual image until loaded */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Specific skeleton dimensions for different image types */
.product-card .img-skeleton {
    height: 200px;
}

.about-image .img-skeleton {
    height: 300px;
}

.contact-person .img-skeleton {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    margin: 0 auto;
}

.logo .img-skeleton {
    height: 60px;
    width: 120px;
}

.footer-logo .img-skeleton {
    height: 50px;
    width: 100px;
}
