/* ============================================
   SKELETON LOADER - Estilos para pantallas de carga
   ============================================ */

/* Animación de shimmer/pulso */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton para imágenes/productos */
.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-image--large {
    height: 400px;
}

.skeleton-image--medium {
    height: 300px;
}

.skeleton-image--small {
    height: 150px;
}

/* Skeleton para texto */
.skeleton-text {
    height: 1em;
    margin: 0.5em 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-text--title {
    height: 1.5em;
    width: 70%;
    margin-bottom: 1em;
}

.skeleton-text--subtitle {
    height: 1.2em;
    width: 50%;
    margin-bottom: 0.8em;
}

.skeleton-text--line {
    height: 1em;
    width: 100%;
}

.skeleton-text--line-short {
    width: 60%;
}

.skeleton-text--line-medium {
    width: 80%;
}

/* Skeleton para botones */
.skeleton-button {
    height: 40px;
    width: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-button--large {
    width: 180px;
    height: 48px;
}

/* Skeleton para cards de productos */
.skeleton-product-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.skeleton-product-card__image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.skeleton-product-card__content {
    padding: var(--spacing-sm) 0;
}

/* Skeleton dentro de product-card existente */
.product-card .skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.product-card .skeleton-text {
    margin-bottom: 0.5rem;
}

.product-card .skeleton-button {
    margin-top: var(--spacing-sm);
}

/* Skeleton para grid de productos */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.skeleton-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.skeleton-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.skeleton-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .skeleton-grid,
    .skeleton-grid--2,
    .skeleton-grid--3,
    .skeleton-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .skeleton-grid,
    .skeleton-grid--2,
    .skeleton-grid--3,
    .skeleton-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Skeleton para galería de imágenes (producto-detalle) */
.skeleton-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.skeleton-gallery__main {
    width: 100%;
    height: 500px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-gallery__thumbs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.skeleton-gallery__thumb {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Skeleton para información de producto */
.skeleton-product-info {
    padding: var(--spacing-lg);
}

.skeleton-product-info__title {
    height: 2em;
    width: 80%;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-product-info__price {
    height: 2.5em;
    width: 200px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-product-info__description {
    margin-top: var(--spacing-lg);
}

.skeleton-product-info__description > div {
    height: 1em;
    margin-bottom: 0.8em;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-product-info__description > div:nth-child(1) {
    width: 100%;
}

.skeleton-product-info__description > div:nth-child(2) {
    width: 95%;
}

.skeleton-product-info__description > div:nth-child(3) {
    width: 90%;
}

.skeleton-product-info__description > div:nth-child(4) {
    width: 85%;
}

/* Skeleton para BLACK DAYS (hero products) */
.skeleton-hero-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    width: 100%;
}

@media (max-width: 1024px) {
    .skeleton-hero-products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .skeleton-hero-products {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.skeleton-hero-product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skeleton-hero-product-card--featured {
    grid-column: span 2;
    border: 2px solid var(--color-accent, #FF6600);
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.2);
}

@media (max-width: 1024px) {
    .skeleton-hero-product-card--featured {
        grid-column: span 1;
    }
}

.skeleton-hero-product-card__image {
    width: 100%;
    height: 250px;
    min-height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    flex-shrink: 0;
}

.skeleton-hero-product-card__info {
    padding: var(--spacing-sm) 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.skeleton-hero-product-card__info .skeleton-text {
    margin: 0;
}

/* Skeleton para breadcrumbs */
.skeleton-breadcrumb {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-md) 0;
}

.skeleton-breadcrumb__item {
    height: 1.2em;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-breadcrumb__item:nth-child(1) {
    width: 60px;
}

.skeleton-breadcrumb__item:nth-child(2) {
    width: 80px;
}

.skeleton-breadcrumb__item:nth-child(3) {
    width: 100px;
}

.skeleton-breadcrumb__item:nth-child(4) {
    width: 120px;
}

/* Ocultar skeletons cuando se carga el contenido */
.skeleton-hidden {
    display: none !important;
}

