.wc-variation-table-wrapper {
    margin: 16px 0;
    padding: 0;
    background: transparent;
}

/* ===== FILTERS ===== */

.variation-filters {
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.variation-filters h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    margin-bottom: 3px;
    font-weight: 600;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.variation-filter {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.variation-filter:focus {
    outline: none;
    border-color: #0073aa;
}

.reset-filters {
    padding: 6px 14px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.reset-filters:hover {
    background: #444;
}

/* ===== TABLE ===== */

.wc-variation-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    font-size: 13px;
}

.wc-variation-table thead {
    background: #2c3e50;
    color: #fff;
}

.wc-variation-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.wc-variation-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.wc-variation-table th.sortable:hover {
    background: #34495e;
}

.sort-indicator {
    display: inline-block;
    margin-left: 5px;
    opacity: 0.3;
    font-size: 9px;
}

.wc-variation-table th.sorted-asc .sort-indicator,
.wc-variation-table th.sorted-desc .sort-indicator {
    opacity: 1;
}

.wc-variation-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.wc-variation-table tbody tr:last-child td {
    border-bottom: none;
}

.wc-variation-table tbody tr {
    transition: background 0.15s ease;
}

.wc-variation-table tbody tr:hover {
    background: #f7f9fb;
}

.wc-variation-table tbody tr.out-of-stock {
    opacity: 0.5;
}

/* ===== TABLE COLUMNS ===== */

.name-col {
    width: 65%;
}

.quantity-col {
    width: 20%;
    text-align: center;
}

.select-col {
    width: 15%;
    text-align: center;
}

.variation-name {
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.out-of-stock-label {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 2px;
}

.quantity-input {
    width: 56px;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.quantity-input:focus {
    outline: none;
    border-color: #0073aa;
}

.quantity-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.variation-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.variation-checkbox:disabled {
    cursor: not-allowed;
}

/* ===== ACTIONS ===== */

.variation-table-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.select-all-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #34495e;
    color: #fff;
    border: none;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.select-all-btn:hover {
    background: #2c3e50;
}

.add-selected-to-cart {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.add-selected-to-cart:hover {
    background: #229954;
}

.add-selected-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.variation-table-message {
    display: none;
    margin-top: 10px;
}

.variation-table-message .success {
    color: #27ae60;
    background: #d5f4e6;
    padding: 8px 14px;
    border-radius: 3px;
    display: inline-block;
    font-size: 13px;
}

.variation-table-message .error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 8px 14px;
    border-radius: 3px;
    display: inline-block;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .wc-variation-table th,
    .wc-variation-table td {
        padding: 7px 8px;
    }

    .quantity-input {
        width: 48px;
    }

    .variation-table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .select-all-btn,
    .add-selected-to-cart {
        width: 100%;
        text-align: center;
    }
}