.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.skeleton-image {
    width: 100%;
    height: 300px;
    margin-bottom: 16px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-price {
    height: 24px;
    width: 40%;
    margin-top: 12px;
}

.skeleton-button {
    height: 40px;
    width: 100%;
    margin-top: 16px;
    border-radius: 4px;
}

.skeleton-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.skeleton-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.skeleton-product-image {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    background: linear-gradient(
        90deg,
        #e8e8e8 0px,
        #f4f4f4 40px,
        #e8e8e8 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

.skeleton-product-info {
    padding: 16px;
}

.skeleton-product-title {
    height: 18px;
    width: 85%;
    margin-bottom: 10px;
    background: linear-gradient(
        90deg,
        #e8e8e8 0px,
        #f4f4f4 40px,
        #e8e8e8 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

.skeleton-product-category {
    height: 14px;
    width: 50%;
    margin-bottom: 12px;
    background: linear-gradient(
        90deg,
        #e8e8e8 0px,
        #f4f4f4 40px,
        #e8e8e8 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

.skeleton-product-price {
    height: 22px;
    width: 60%;
    background: linear-gradient(
        90deg,
        #e8e8e8 0px,
        #f4f4f4 40px,
        #e8e8e8 80px
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-list-item {
    display: flex;
    gap: 16px;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.skeleton-list-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
}

.skeleton-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.skeleton-list-title {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-list-subtitle {
    height: 14px;
    width: 50%;
}

@media (max-width: 768px) {
    .skeleton-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .skeleton-product-info {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .skeleton-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton,
    .skeleton-image,
    .skeleton-product-image,
    .skeleton-product-title,
    .skeleton-product-category,
    .skeleton-product-price {
        animation: none;
        background: #f0f0f0;
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #c1a362;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

