.capa {
    background-size: cover;
    position: relative; /* Necessário para posicionamento do skeleton */
}

.skeleton2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ccc; /* Cor do skeleton */
    z-index: 10; /* Certifica-se de que o skeleton está acima da imagem de fundo */
}

.skeleton2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
}

.skeleton3 {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.skeleton3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
}


.skeleton4 {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.skeleton4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
}


.skeleton5 {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.skeleton5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: loading 1.5s infinite;
}




.capa {
    position: relative;
}

.capa .skeleton2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    z-index: 1;
}

.capa.loaded .skeleton2 {
    display: none;
}

.capa.loaded {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
 
        .skeleton {
            background-color: #e0e0e0;
            border-radius: 4px;
            margin: 10px 0;
            position: relative;
            overflow: hidden;
        }
        
        .skeleton::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
            animation: loading 1.5s infinite;
        }

        .skeleton-text {
            height: 20px;
            width: 100%;
        }
        
        .skeleton-image {
            width: 100%;
            height: 200px;
        }

        @keyframes loading {
            0% {
                transform: translateX(-100%);
            }
            100% {
                transform: translateX(100%);
            }
        }

        /* Oculta as imagens até que estejam carregadas */
.image-container img {
    display: none;
}

/* === Skeleton placeholder cards (JS-injected before AJAX fetch) === */
.col-skel-placeholder { margin-bottom: 30px; }
.skel-image  { height: 160px; border-radius: 4px; margin-bottom: 8px; }
.skel-title  { height: 15px; width: 75%; border-radius: 4px; margin: 8px 0 6px; }
.skel-desc   { height: 12px; width: 90%; border-radius: 4px; margin-bottom: 6px; }
.skel-price  { height: 18px; width: 40%; border-radius: 4px; }
.novoproduto .skel-image { height: 85px; }
.skel-section-title { height: 22px; width: 200px; border-radius: 4px; margin-bottom: 20px; }

/* === Full card skeleton overlay === */
.produto     { position: relative; }
.novoproduto { position: relative; }

.skel-full-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.skel-full-overlay .skel-img-block {
  width: 100%;
  flex: 1;
  min-height: 180px;
  border-radius: 6px 6px 0 0;
}
.skel-full-overlay .skel-texts {
  padding: 8px 10px 10px;
}
.skel-full-overlay .skel-label     { height: 12px; width: 55%; border-radius: 4px; margin-bottom: 5px; }
.skel-full-overlay .skel-price-line { height: 20px; width: 45%; border-radius: 4px; margin-bottom: 10px; }
.skel-full-overlay .skel-btn-line   { height: 38px; width: 100%; border-radius: 6px; }

/* Theme 2 (novoproduto) — horizontal layout, no button */
.novoproduto .skel-full-overlay { flex-direction: row; align-items: stretch; padding: 8px; gap: 10px; }
.novoproduto .skel-full-overlay .skel-texts { flex: 1; padding: 4px 0; display: flex; flex-direction: column; gap: 6px; }
.novoproduto .skel-full-overlay .skel-label { width: 80%; }
.novoproduto .skel-full-overlay .skel-img-block { flex: 0 0 90px; min-height: 75px; border-radius: 6px; }