/* Latest Update Table Styling */
.lu-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px 0;
    color: #334155;
    width: 100%;
    font-size: 17px; /* Increased general font size by 1px */
}

/* Filter Bar styles */
.lu-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.lu-search-wrapper {
    position: relative;
    flex: 1;
    width: 100%;
}

.lu-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.lu-search-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

#lu-search {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 17px; /* Increased search font size by 1px */
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#lu-search:focus {
    outline: none;
    border-color: #7c3aed;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Stats Bar styling */
.lu-stats-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    padding: 0 4px;
}

.lu-stats-text {
    font-size: 15px; /* Increased stats font size by 1px */
    color: #64748b;
    font-weight: 500;
}

/* Table Responsive wrapper */
.lu-table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02);
    background-color: #ffffff;
}

/* Table styling */
.lu-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 16px; /* Increased table base font size by 1px */
}

.lu-table th, 
.lu-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.lu-table th {
    background-color: #f8fafc;
    color: #7c3aed;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px; /* Increased header font size by 1px */
    letter-spacing: 0.05em;
    user-select: none;
}

.lu-table tbody tr {
    transition: background-color 0.2s ease;
}

.lu-table tbody tr:hover {
    background-color: #f8fafc;
}

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

/* Columns styles */
.lu-product-link {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    font-size: 17px; /* Increased product name font size by 1px */
    transition: color 0.15s ease;
}

.lu-product-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.lu-td-price {
    font-weight: 700;
    color: #0f172a;
    font-size: 17px; /* Increased price font size by 1px */
}

.lu-td-price del {
    color: #94a3b8;
    font-weight: normal;
    margin-right: 6px;
    font-size: 15px; /* Increased original discount price font size by 1px */
}

.lu-td-price ins {
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
}

.lu-td-updated {
    color: #334155;
    font-size: 17px; /* Increased updated date font size by 2px total (15px -> 17px) */
    font-weight: bold; /* Bolded the updated date as requested */
}

/* View Product/Buy Now button */
.lu-buy-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px; /* Increased button font size by 1px */
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(124, 58, 237, 0.15);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.lu-buy-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 5px 10px rgba(109, 40, 217, 0.25);
    transform: translateY(-1px);
}

.lu-buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(109, 40, 217, 0.15);
}

/* No products found notice */
.lu-no-products {
    text-align: center;
    color: #64748b;
    padding: 40px 20px !important;
    font-style: italic;
    font-size: 17px; /* Increased font size by 1px */
}

/* Loading/Shimmer overlay state */
.lu-loading {
    opacity: 0.6;
    filter: blur(0.5px);
    pointer-events: none;
}

/* Pagination container */
.lu-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 0 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.lu-page-btn {
    padding: 10px 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px; /* Increased pagination font size by 1px */
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lu-page-btn:hover:not(:disabled) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.lu-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lu-page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lu-page-number-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 8px;
    font-size: 15px; /* Increased page font size by 1px */
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.lu-page-number-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.lu-page-number-btn.active {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(124, 58, 237, 0.2);
}

.lu-dots {
    color: #94a3b8;
    padding: 0 6px;
    font-size: 17px; /* Increased dot size by 1px */
    user-select: none;
}

/* Error class styling */
.lu-error {
    color: #dc2626;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 16px; /* Increased error font size by 1px */
}

/* Responsive Table layout for Mobile Screen (max-width: 768px) */
@media screen and (max-width: 768px) {
    .lu-filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 14px;
    }

    /* Transform table into stacked cards */
    .lu-table, 
    .lu-table thead, 
    .lu-table tbody, 
    .lu-table th, 
    .lu-table td, 
    .lu-table tr {
        display: block;
    }

    .lu-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .lu-table tr {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    }

    .lu-table td {
        border: none;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        padding-left: 45% !important;
        text-align: right;
        font-size: 16px; /* Increased mobile td size by 1px */
    }

    .lu-table td:last-child {
        border-bottom: none;
        text-align: center;
        padding-left: 20px !important;
    }

    .lu-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: #64748b;
        font-size: 14px; /* Increased mobile label size by 1px */
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: left;
    }
    
    .lu-table td:last-child::before {
        display: none;
    }

    .lu-buy-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
        font-size: 16px; /* Increased button mobile size by 1px */
    }

    .lu-pagination {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
