/* Estilos específicos para la página de productos */
.products-main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-header {
    text-align: center;
    margin-bottom: 30px;
}

.products-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.products-header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.filters-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-container {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-container label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.filter-dropdown, .search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.filter-button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    align-self: flex-end;
}

.filter-button.secondary {
    background-color: #95a5a6;
}

.filter-button:hover {
    background-color: #2980b9;
}

.filter-button.secondary:hover {
    background-color: #7f8c8d;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-sku {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.3em;
    color: #27ae60;
    font-weight: bold;
    margin: 10px 0;
}

.product-stock {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.in-stock {
    background-color: #d4edda;
    color: #155724;
}

.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.product-description {
    color: #34495e;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 10px;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    display: none;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message, .no-products {
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin: 20px 0;
}

.no-products {
    background-color: #f8f9fa;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-container {
        width: 100%;
    }
    
    .filter-button {
        width: 100%;
        margin-top: 10px;
    }
}