/* Shared Product Tables Styles */
/* Used across all product listing pages for consistent admin-style tables */

/* 85% Width Container */
.product-list-container {
    max-width: 85%;
    margin: 0 auto;
}

/* Table Thumbnail Images */
.table-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Search and Filter Cards */
.search-filter-card {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-filter-card .search-input {
    flex: 1;
}

.search-filter-card .filter-buttons {
    flex: 0 0 auto;
}

/* Table Header with Count */
.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.table-header h5 {
    margin-bottom: 0;
}

/* Loading States */
.loading-container {
    text-center: true;
    padding: 3rem 0;
}

.loading-spinner {
    margin-bottom: 1rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
}

/* Badge Styling */
.product-count-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.6rem;
}

/* Radzen DataGrid Overrides for Product Tables */
.rz-datatable {
    border: none !important;
}

.rz-datatable-data td {
    vertical-align: middle !important;
    padding: 0.75rem !important;
}

.rz-datatable-data tr:hover {
    background-color: rgba(49, 129, 168, 0.05) !important;
}

/* Product Name Column */
.product-name-cell strong {
    font-size: 0.95rem;
    color: #212529;
}

.product-name-cell small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Category Badge in Tables */
.category-badge {
    display: inline-block;
}

/* Action Buttons */
.action-button {
    white-space: nowrap;
}

/* Responsive Table Adjustments */
@media (max-width: 768px) {
    .product-list-container {
        max-width: 95%;
    }
    
    .table-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .search-filter-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filter-card .search-input,
    .search-filter-card .filter-buttons {
        flex: 1;
        width: 100%;
    }
}

/* Pagination Styling */
.rz-paginator {
    justify-content: center !important;
    margin-top: 1rem !important;
}

/* Table Row Hover Effect */
.product-table-row {
    transition: all 0.2s ease;
}

.product-table-row:hover {
    background-color: rgba(49, 129, 168, 0.05);
    transform: translateX(2px);
}
