/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton para vista de tarjetas (grid) */
.skeleton-card {
    margin-bottom: 2rem;
}

.skeleton-card__image {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.skeleton-card__title {
    height: 20px;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.skeleton-card__title--short {
    width: 60%;
}

.skeleton-card__title--long {
    width: 100%;
}

.skeleton-card__price {
    height: 24px;
    width: 100px;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.skeleton-card__price-label {
    height: 12px;
    width: 80px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-card__button {
    height: 40px;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-card__controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skeleton-card__control-btn {
    height: 40px;
    flex: 1;
    border-radius: 4px;
}

.skeleton-card__amount {
    height: 40px;
    width: 60px;
    border-radius: 4px;
}

/* Skeleton para vista de lista */
.skeleton-list-card {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.skeleton-list-card__row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skeleton-list-card__image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
}

.skeleton-list-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-list-card__title {
    height: 24px;
    width: 70%;
    border-radius: 4px;
}

.skeleton-list-card__subtitle {
    height: 18px;
    width: 50%;
    border-radius: 4px;
}

.skeleton-list-card__price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 150px;
}

.skeleton-list-card__price {
    height: 20px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-list-card__price-label {
    height: 12px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-list-card__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.skeleton-list-card__control-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.skeleton-list-card__amount {
    width: 50px;
    height: 40px;
    border-radius: 4px;
}

.skeleton-list-card__cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

/* Skeleton para vista móvil (collapse cards) */
.skeleton-collapse-card {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.skeleton-collapse-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-collapse-card__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
}

.skeleton-collapse-card__header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-collapse-card__title {
    height: 20px;
    width: 80%;
    border-radius: 4px;
}

.skeleton-collapse-card__sku {
    height: 16px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-collapse-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-collapse-card__price-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-collapse-card__price {
    height: 20px;
    width: 120px;
    border-radius: 4px;
}

.skeleton-collapse-card__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.skeleton-collapse-card__control-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
}

.skeleton-collapse-card__amount {
    width: 50px;
    height: 36px;
    border-radius: 4px;
}

.skeleton-collapse-card__cart-btn {
    flex: 1;
    height: 36px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .skeleton-list-card__row {
        flex-direction: column;
    }

    .skeleton-list-card__image {
        width: 100%;
        max-width: 300px;
    }

    .skeleton-list-card__content {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .skeleton-card {
        margin-bottom: 6.25rem;
    }

    .skeleton-card:nth-last-child(-n+4) {
        margin-bottom: 0;
    }
}

.skeleton-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    min-height: 180px;
}

.skeleton-brand-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.skeleton-brand-card__title {
    height: 20px;
    width: 80%;
    border-radius: 4px;
    margin-top: 0.5rem;
}


