/* public/js/front/components/ProductList.css
   Ported from resources/js/index/components/ProductList.vue's <style> block — this was
   never extracted during the original storefront migration, leaving the pagination
   nav's 3 sibling <ul> (prev-arrow / numbers / next-arrow) with no shared flex layout,
   so they stacked as separate block rows instead of sitting in one line. */

/* ===============================
   Skeleton Loaders
================================ */
.skeleton-box {
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-circle {
    background-color: #e0e0e0;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ===============================
   Sorting Dropdown
================================ */
.sort-by-dropdownlists {
    position: absolute;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 8px;
    z-index: 1000;
    width: 160px;
    animation: fadeIn 0.25s ease-in-out;
    transition: all 0.3s ease;
}

.sort-by-dropdownlists-w { width: 160px; }
.show-dropdownlists-w { width: 100px; }

.sort-by-dropdownlists ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sort-by-dropdownlists ul li {
    display: block;
    width: 100%;
}

.sort-by-dropdownlists ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.sort-by-dropdownlists ul li a:hover {
    background-color: #058bc2;
    color: #ffffff;
}

.sort-by-dropdownlists ul li a.active {
    font-weight: 600;
    background-color: #058bc2;
    color: #ffffff;
}

/* ===============================
   Filter Bar Layout
================================ */
.shop-product-fillter {
    gap: 10px;
}

.shop-product-fillter .totall-product {
    flex: 1;
}

.shop-product-fillter .sort-by-product-area {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

/* ===============================
   Pagination
================================ */
.pagination-area {
    min-height: 60px; /* Reserve space to prevent CLS */
    display: flex;
    align-items: center;
}

.number_pagination {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

@media only screen and (max-width:575px) {
    .number_pagination {
        justify-content: center;
        gap: 10px;
    }
    .number_list {
        width: 100%;
        justify-content: center;
    }
    .left_navigation { order: 2; }
    .right_navigation { order: 3; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Sidebar Filter UI (CRITICAL FIX)
================================ */
.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h6 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.filter-list li {
    margin-bottom: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    transition: color 0.2s ease;
}

.filter-item:hover .filter-label {
    color: #005f85;
}

/* Checkbox styling */
.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #cccccc;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.filter-checkbox:checked {
    border-color: #005f85;
    background-color: #005f85;
}

.filter-checkbox:checked::after {
    content: "✔";
    position: absolute;
    top: 0;
    left: 2px;
    font-size: 12px;
    color: white;
    line-height: 12px;
}

/* Label text */
.filter-label {
    user-select: none;
    line-height: 1.4;
    font-weight: 500;
}

/* Show more button */
.sidebar-widget .btn-link {
    padding: 0;
    margin-top: 6px;
    font-size: 13px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

.sidebar-widget .btn-link:hover {
    text-decoration: none;
    color: #ffffff;
}
