/* WC Category Product Table Widget Styles */

.wc-category-product-table-widget-wrapper {
    display: flex;
    flex-wrap: wrap; /* Wrap columns on smaller screens */
    gap: 30px; /* Space between columns */
    margin-top: 20px;
}

/* Filters Column */
.product-table-filters-column {
    min-width: 150px; /* Prevent excessive shrinking */
}

.product-table-filters-column h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: bold;
}

.product-filters-form .filter-group {
    margin-bottom: 20px;
}

.product-filters-form .filter-group h4 {
    margin-bottom: 7px;
    font-size: 14px;
}

.product-filters-form .filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-filters-form .filter-options li {
    margin-bottom: 5px;
}

.product-filters-form .filter-options label {
    display: flex; /* Align checkbox and text */
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    gap: 8px;
    font-size: 14px;
}

.product-filters-form .filter-options input[type="checkbox"] {
    width: 16px; /* Adjust size if needed */
    height: 16px;
    cursor: pointer;
}

.product-filters-form .clear-filters-button {
    margin-top: 15px;
    padding: 8px 15px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.product-filters-form .clear-filters-button:hover {
    background-color: #ddd;
}

/* Table Column */
.product-table-column {
    flex: 3 1 60%; /* Grow more than filters, base width */
    min-width: 300px; /* Ensure table has reasonable width */
}

.product-table-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.product-table-container {
    overflow-x: auto; /* Allow horizontal scroll on small screens */
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.product-table th,
.product-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.product-table thead th {
    background-color: #000;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap; /* Prevent headers from wrapping */
}

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

.product-table td {
    font-size: 14px;
}

.product-table td.product-name {
    white-space: nowrap;
    font-weight: bold;
}

.product-table td a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.product-table td a:hover {
    text-decoration: underline;
}

.product-table .no-results-message {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #777;
}

/* Responsive adjustments (example) */
@media (max-width: 767px) {
    .wc-category-product-table-widget-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .product-table-filters-column {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 20px;
        flex-basis: auto; /* Reset flex basis */
    }
    .product-table-column {
        flex-basis: auto; /* Reset flex basis */
    }
    .product-table th,
    .product-table td {
        padding: 8px;
    }
} 