/* Skeleton Loader Styles */
.skeleton-loader {
    padding: 2rem 0;
    animation: fadeIn 0.3s ease-in;
}

.skeleton-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Skeleton para la sección de imágenes */
.skeleton-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--border-radius);
    animation: shimmer 1.5s infinite;
}

.skeleton-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 5px 0;
}

.skeleton-thumbnail {
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--border-radius-small);
    animation: shimmer 1.5s infinite;
    animation-delay: 0.1s;
}

/* Skeleton para la información del producto */
.skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-back-btn {
    width: 120px;
    height: 36px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--border-radius-small);
    animation: shimmer 1.5s infinite;
    margin-bottom: 1rem;
}

.skeleton-title {
    width: 80%;
    height: 32px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

.skeleton-category {
    width: 100px;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 15px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.3s;
}

.skeleton-price {
    width: 150px;
    height: 28px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.4s;
}

.skeleton-description {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-description-line {
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.skeleton-description-line:nth-child(1) {
    width: 100%;
    animation-delay: 0.5s;
}

.skeleton-description-line:nth-child(2) {
    width: 95%;
    animation-delay: 0.6s;
}

.skeleton-description-line:nth-child(3) {
    width: 88%;
    animation-delay: 0.7s;
}

.skeleton-description-line:nth-child(4) {
    width: 92%;
    animation-delay: 0.8s;
}

.skeleton-description-line:nth-child(5) {
    width: 75%;
    animation-delay: 0.9s;
}

.skeleton-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skeleton-button {
    height: 44px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: var(--border-radius);
    animation: shimmer 1.5s infinite;
}

.skeleton-button:first-child {
    width: 140px;
    animation-delay: 1s;
}

.skeleton-button:last-child {
    width: 120px;
    animation-delay: 1.1s;
}

/* Animación shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive para mobile */
@media (max-width: 768px) {
    .skeleton-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skeleton-main-image {
        height: 300px;
    }
    
    .skeleton-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .skeleton-title {
        height: 28px;
    }
    
    .skeleton-actions {
        flex-direction: column;
    }
    
    .skeleton-button {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .skeleton-loader {
        padding: 1rem 0;
    }
    
    .skeleton-main-image {
        height: 250px;
    }
    
    .skeleton-thumbnail {
        width: 45px;
        height: 45px;
    }
}
