.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: box-shadow .3s ease, transform .2s ease;
}
.product-card:hover {
    box-shadow: 0 8px 50px #23232333;
  }
.product-image {
    width: 500px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.product-brand, .product-code, .product-category {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;
}

.product-availability {
    font-weight: bold;
    color: green;
}

.product-availability.out-of-stock {
    color: red;
}


/* Estilos para la paginación */
.pagination-container {
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #0d6efd;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.pagination-btn:hover:not([disabled]) {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0a58ca;
}

.pagination-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination-btn[disabled] {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Estilos para las tarjetas de productos */
.product-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Estilos para lazy loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.lazy[src]:not([src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]) {
    opacity: 1;
}

/* Estilos para el estado de disponibilidad */
.product-availability {
    font-weight: bold;
    margin-bottom: 0;
}

.out-of-stock {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination-container {
        flex-wrap: wrap;
    }
    
    .product-image {
        height: 150px;
    }
}