/* Products Loader Styles */
.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.loading-spinner {
    text-align: center;
    color: var(--primary-color, #6366f1);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 1.1rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
}

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

/* Error State */
.products-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    grid-column: 1 / -1;
    padding: 2rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 20px;
    border: 1px solid #fca5a5;
}

.products-error i {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
}

.products-error h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.products-error p {
    color: #991b1b;
    margin-bottom: 2rem;
    max-width: 400px;
    line-height: 1.6;
}

.retry-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

/* Empty State */
.products-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    grid-column: 1 / -1;
    padding: 2rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 20px;
    border: 1px solid #d1d5db;
}

.products-empty i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.products-empty h3 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.products-empty p {
    color: #6b7280;
    max-width: 400px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-loading,
    .products-error,
    .products-empty {
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .loading-spinner i,
    .products-error i,
    .products-empty i {
        font-size: 3rem;
    }
    
    .products-error h3,
    .products-empty h3 {
        font-size: 1.3rem;
    }
}

/* Animation for product cards when loaded */
.product-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Category Badge */
.product-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    text-transform: capitalize;
}