/*
 * SDEO My Products Additions
 * Version: 1.4
 * Description: Styles the filter bar and product table on the 'My Products' page.
 */

/* Main Filter Bar Styling */
.dokan-product-listing-area .sdeo-filters form {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}
.dokan-product-listing-area .sdeo-filter-item { margin: 0; }
.dokan-product-listing-area .sdeo-filter-item input[type="search"],
.dokan-product-listing-area .sdeo-filter-item select {
    width: 100%; height: 40px; padding: 0 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box;
}
.dokan-product-listing-area .sdeo-filter-item button[type="submit"] {
    height: 40px; padding: 0 30px; border: none; background-color: #3b82f6; color: white; font-weight: 600; border-radius: 6px; cursor: pointer; font-size: 14px; white-space: nowrap; transition: background-color 0.2s ease;
}
.dokan-product-listing-area .sdeo-filter-item button[type="submit"]:hover { background-color: #2563eb; }

/* Product Table Styling */
.sdeo-product-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sdeo-product-table thead tr { background-color: #f8f9fa; border-bottom: 2px solid #e9ecef; }
.sdeo-product-table th { padding: 12px 15px; text-align: left; font-weight: 600; color: #495057; text-transform: uppercase; font-size: 12px; }
.sdeo-product-table tbody tr { border-bottom: 1px solid #e9ecef; }
.sdeo-product-table tbody tr:last-child { border-bottom: none; }
.sdeo-product-table td { padding: 8px 15px; vertical-align: middle; }

/* --- FINAL IMAGE SIZE --- */
.sdeo-product-table .sdeo-product-image img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.sdeo-product-table td p { margin: 0; }
.sdeo-product-table td a { font-weight: 500; color: #333; text-decoration: none; transition: color 0.2s; }
.sdeo-product-table td a:hover { color: #3b82f6; }


/* --- NEW PAGINATION STYLES --- */
.sdeo-pagination {
    margin-top: 30px;
    text-align: center;
}
.sdeo-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.sdeo-pagination .page-numbers li {
    margin: 0;
}
.sdeo-pagination .page-numbers a,
.sdeo-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e7e7e7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fff;
    transition: all 0.2s ease;
    border-right-width: 0;
}
.sdeo-pagination .page-numbers li:first-child a,
.sdeo-pagination .page-numbers li:first-child span {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.sdeo-pagination .page-numbers li:last-child a,
.sdeo-pagination .page-numbers li:last-child span {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right-width: 1px;
}
.sdeo-pagination .page-numbers a:hover {
    background-color: #f5f5f5;
    color: #222;
}
.sdeo-pagination .page-numbers span.current {
    background-color: #333;
    color: #fff;
    border-color: #333;
    z-index: 1;
}