/* Product Inventory Styles */
.product-inventory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-filters {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-table-wrapper {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-table th,
.product-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.product-table th {
    background-color: #f1f1f1;
    font-weight: bold;
    white-space: nowrap;
}

.product-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-table tr:hover {
    background-color: #f0f7ff;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 15px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.pagination .page-info {
    margin: 0 10px;
}

.pagination select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Categories styles */
.product-categories {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.product-categories h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.main-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-category {
    margin-bottom: 10px;
}

.main-category a {
    text-decoration: none;
    color: #007cba;
    font-weight: bold;
}

.main-category a:hover {
    text-decoration: underline;
}

.sub-categories {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.sub-categories li {
    margin-bottom: 5px;
}

.sub-categories a {
    color: #333;
    font-weight: normal;
}

/* Responsive styles */
@media (max-width: 768px) {
    .product-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .product-table th,
    .product-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .product-inventory {
        padding: 10px;
    }
    
    .product-table {
        font-size: 12px;
    }
    
    .pagination button {
        padding: 5px 10px;
        font-size: 12px;
    }
}
