 .product-list-page {
        padding: 10px 20px;
        background-color: #fff;
    }

    .product-list-container {
        display: flex;
        gap: 30px;
    }

    /* Sidebar Styles */
    .sidebar {
        width: 250px;
        flex-shrink: 0;
        padding-left: 20px;
    }

    .sidebar-section {
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    .sidebar-section:last-child {
        border-bottom: none;
    }

    .sidebar-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .sidebar-content {
        display: block;
    }

    .filter-item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
    }



    .filter-item input {
        margin-right: 10px;
        width: 16px;
        height: 16px;
        accent-color: #000;
    }

    .size-filter-text {
        text-transform: uppercase;
    }

    .filter-count {
        margin-left: auto;
        color: #888;
        font-size: 12px;
    }

    /* Product Grid Styles */
    .product-grid-wrapper {
        flex-grow: 1;
    }

    .product-grid-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .product-count {
        font-size: 14px;
        color: #666;
    }

    .sort-dropdown {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
        background: #fff;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    @media (max-width: 992px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .product-list-container {
            flex-direction: column;
        }

        .sidebar {
            display: none !important;
            width: 100%;
            margin-bottom: 20px;
            position: relative; /* Context for dropdowns if needed, or static */
        }
        
        .sidebar form {
            display: flex;
            flex-wrap: nowrap;
            gap: 10px;
            align-items: center;
            overflow-x: auto;
            padding-bottom: 5px; /* Space for scrollbar if visible, or touch area */
            -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
            scrollbar-width: none; /* Firefox */
        }
        
        .sidebar form::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }

        /* Adjust Clear Button for horizontal row */
        .sidebar form .btn {
            width: auto !important;
            margin-top: 0 !important;
            white-space: nowrap;
            flex: 0 0 auto;
            border-radius: 30px;
            padding: 8px 15px;
            font-size: 14px;
            border: 1px solid #333;
            background-color: #fff;
            color: #333;
            transition: all 0.3s ease;
        }

        .sidebar form .btn:hover {
            background-color: #333;
            color: #fff;
        }

        .sidebar-section {
            border: 1px solid #ddd;
            border-radius: 30px;
            padding: 8px 15px;
            margin-bottom: 0;
            cursor: pointer;
            position: relative;
            background: #fff;
            flex: 0 0 auto;
        }
        
        .sidebar-title {
            margin-bottom: 0;
            font-size: 14px;
            gap: 8px;
        }
        
        /* Mobile Dropdown Logic */
        .sidebar-content {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            z-index: 1000;
            border: 1px solid #eee;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-radius: 8px;
            padding: 15px;
            min-width: 280px;
            margin-top: 10px;
            display: none; /* JS toggles this */
        }
        
        /* Ensure price slider context fits */
        .price-slider-wrapper {
            min-width: 300px;
        }
    }

    @media (max-width: 576px) {
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }
    }
    /* Filter Styles */
    .filter-group {
        max-height: 200px;
        overflow-y: auto;
        padding-right: 5px;
    }
    
    .filter-group::-webkit-scrollbar {
        width: 4px;
    }
    
    .filter-group::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .color-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .color-option {
        position: relative;
        cursor: pointer;
    }

    .color-option input {
        display: none;
    }

    .color-circle {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 1px solid #ddd;
        display: block;
        transition: transform 0.2s, border-color 0.2s;
    }

    .color-option input:checked + .color-circle {
        transform: scale(1.1);
        border: 2px solid #000;
        box-shadow: 0 0 0 2px #fff inset;
    }

    /* Price Slider */
    .price-slider-wrapper {
        padding: 0 10px;
    }
    
    .price-values {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 13px;
        font-weight: 500;
    }

    .range-slider {
        position: relative;
        width: 100%;
        height: 5px;
        background: #ddd;
        border-radius: 5px;
        margin-top: 20px;
    }

    .range-slider .progress {
        position: absolute;
        height: 100%;
        background: #000;
        border-radius: 5px;
        left: 0;
        right: 0;
    }

    .range-input {
        position: relative;
    }

    .range-input input {
        position: absolute;
        top: -5px;
        height: 5px;
        width: 100%;
        background: none;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
    }

    .range-input input::-webkit-slider-thumb {
        height: 15px;
        width: 15px;
        border-radius: 50%;
        background: #000;
        pointer-events: auto;
        -webkit-appearance: none;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 0 3px rgba(0,0,0,0.3);
    }

    .range-input input::-moz-range-thumb {
        height: 15px;
        width: 15px;
        border: none;
        border-radius: 50%;
        background: #000;
        pointer-events: auto;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 0 3px rgba(0,0,0,0.3);
    }

    /* Loading Overlay */
    .product-grid-wrapper {
        position: relative;
    }
    .grid-loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.7);
        z-index: 10;
        display: none;
        justify-content: center;
        align-items: flex-start;
        padding-top: 100px;
    }
    .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #000;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Wishlist Card Style Overrides */
    .products-grid .product-card .product-details {
        text-align: left; /* Align text left like wishlist */
        align-items: flex-start;
    }
    
    .products-grid .product-card .product-title {
        text-align: left;
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .products-grid .product-card .product-price {
        justify-content: flex-start;
    }

    /* Image Wrapper: Tall Portrait Ratio (2:3 approx) */
    .products-grid .product-card .product-image-wrapper {
        aspect-ratio: 2 / 3;
        margin-bottom: 12px;
        background: #f4f4f4;
    }

    .products-grid .product-card .product-image {
        object-fit: cover;
    }

    /* Wishlist Button: Top Right */
    .products-grid .product-card .wishlist-btn {
        top: auto;
        right: 15px;
        left: auto; /* Reset left from default */
        bottom: 15px;
        opacity: 1; /* Always visible or hover logic handled by base, but wishlist style often keeps it visible */
        transform: translateY(0);
        background: rgba(255, 255, 255, 0.9);
        color: #1C1C1C;
    }

    .products-grid .product-card .wishlist-btn:hover {
        background: #1C1C1C;
        color: #fff;
    }
    
    /* Hide image overlay cart button */
    .products-grid .product-card .product-image-wrapper .cart-btn {
        display: none !important;
    }
    
    /* Show 'Add to Cart' Buttons (Below content) - Full Width */
    .products-grid .product-card .btn-add-cart {
        display: flex;
        margin-top: auto;
        width: 100%;
        justify-content: center;
        align-items: center;
        background: #000;
        color: #fff;
        border: 1px solid #000;
        padding: 10px;
        font-size: 13px;
        border-radius: 4px;
    }
    
    .products-grid .product-card .btn-add-cart:hover {
        background: transparent;
        color: #000;
    }
    
    /* Hide 'Buy Now' button if present from component defaults (though passed var often hides it) */
    .products-grid .product-card .btn-buy-now {
        display: none !important;
    }

    /* Mobile specific adjustments for buttons inside card */
    @media (max-width: 576px) {
        .products-grid .product-card .btn-add-cart {
            padding: 8px 5px;
            font-size: 11px; /* Smaller text for 2-column layout */
        }
        
        .products-grid .product-card .product-title {
            /* font-size: 13px; */
             /* Slightly smaller title */
            height: 40px;
            /* height: auto; */
            /* Let it grow or clamp */
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
            /* text-overflow: ellipsis;
            line-height: 1.3;
            height: 30px; */
        }
        
        .products-grid .product-card .product-price {
            font-size: 13px;
        }
        
        /* Smaller wishlist button */
        .products-grid .product-card .wishlist-btn {
            width: 30px;
            height: 30px;
            right: 8px;
            bottom: 8px;
            font-size: 12px;
        }
    }



    /* Mobile Specific Adjustments */
    /* Hide Mobile Drawers on Desktop */
    .mobile-drawer,
    .mobile-drawer-overlay,
    .mobile-filter-bar {
        display: none;
    }

    /* Mobile Filter Bar & Drawers */
    @media (max-width: 992px) {

        .sort-dropdown{
        display: none;
    }
        .mobile-filter-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #fff;
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
            margin-bottom: 20px;
        }

        .mobile-filter-btn {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px; /* Rounded corners */
            padding: 10px 11.5px;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 12.5px;
            font-weight: 500;
            color: #333;
            margin-right: 10px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }

        .mobile-filter-btn:last-child {
            margin-right: 0;
        }
        
        .mobile-filter-divider {
             display: none; 
        }

        /* Drawer Overlay */
        .mobile-drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1040;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .mobile-drawer-overlay.active {
            display: block;
            opacity: 1;
        }

        /* Drawer Styles */
        .mobile-drawer {
            position: fixed;
            bottom: -100%;
            left: 0;
            width: 100%;
            max-height: 85vh; /* Bottle sheet style */
            background: #fff;
            z-index: 1050;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
            transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }
        
        .mobile-drawer.active {
            bottom: 0;
        }
        
        .mobile-drawer-header {
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mobile-drawer-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .mobile-drawer-close {
            background: none;
            border: none;
            font-size: 20px;
            color: #333;
            cursor: pointer;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .mobile-drawer-content {
            padding: 0;
            overflow-y: auto;
            flex: 1;
        }
        
        /* Accordion Styles */
        .mobile-filter-section {
            border-bottom: 1px solid #f0f0f0;
        }
        
        .mobile-filter-title {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 500;
            font-size: 15px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .mobile-filter-title:active {
            background: #f9f9f9;
        }
        
        .mobile-filter-body {
            padding: 0 20px 20px 20px;
            background: #fff;
        }
        
        /* Sort Options */
        .mobile-sort-options {
            display: flex;
            flex-direction: column;
        }
        
        .mobile-sort-option {
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
            color: #333;
            text-decoration: none;
            font-size: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mobile-sort-option.active {
            font-weight: 600;
            background-color: #f9f9f9;
        }
        
        .mobile-drawer-footer {
             padding: 20px;
             border-top: 1px solid #f0f0f0;
             background: #fff;
             /* margin-top: auto; */
             display: flex;
             gap: 15px;
        }

        .mobile-drawer-btn {
            background-color: #fff;
            color: #555;
            border: 1px solid #e5e5e5;
            padding: 12px 10px;
            font-size: 14px;
            font-weight: 500;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            flex: 1;
            white-space: nowrap;
        }

        .mobile-drawer-btn:hover {
            border-color: #000;
            color: #000;
            background-color: #f9f9f9;
        }

        .mobile-drawer-btn-primary {
            background-color: #000;
            color: #fff;
            border-color: #000;
        }

        .mobile-drawer-btn-primary:hover {
            background-color: #333;
            color: #fff;
            border-color: #333;
        }

        /* Mobile Price Slider Specifics */
        .mobile-price-slider .range-slider {
            height: 6px;
            background: #f0f0f0;
            border-radius: 3px;
        }

        .mobile-price-slider .range-slider .progress {
            background: #000;
            height: 6px;
            border-radius: 3px;
        }
        
        /* Custom Thumb for Mobile */
        .mobile-price-slider .range-input input::-webkit-slider-thumb {
            height: 24px;
            width: 24px;
            border-radius: 50%;
            background: #000;
            border: 4px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            margin-top: -9px; /* (6px track / 2) - (24px thumb / 2) = 3 - 12 = -9 */
        }
        
        .mobile-price-slider .range-input input::-moz-range-thumb {
            height: 24px;
            width: 24px;
            border-radius: 50%;
            background: #000;
            border: 4px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
            border: none; /* Reset Mozilla default */
        }
        
        .mobile-price-slider .price-values span {
            font-size: 16px;
            color: #000;
        }

        /* Mobile Category Hierarchy Overrides */
        .mobile-filter-body .node-header {
            padding: 12px 0; /* Larger touch target */
            border-bottom: 1px solid #f9f9f9;
        }

        .mobile-filter-body .toggle-icon {
            padding: 10px; /* Larger hit area */
            font-size: 14px;
        }

        .mobile-filter-body .node-children {
             padding-left: 15px; /* Slightly less indentation on small screens if needed */
        }
    }

    /* Custom Sort Dropdown Styles */
    .custom-sort-dropdown {
        position: relative;
        min-width: 200px;
        z-index: 20;
    }

    .sort-trigger {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 30px; /* Pill shape for premium feel */
        font-size: 14px;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }

    .sort-trigger:hover {
        border-color: #000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .sort-trigger i {
        font-size: 12px;
        color: #666;
        transition: transform 0.3s ease;
    }
    
    .custom-sort-dropdown.active .sort-trigger i {
        transform: rotate(180deg);
    }

    .custom-sort-options {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 220px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
        padding: 8px;
        z-index: 100;
        border: 1px solid rgba(0,0,0,0.05);
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.98);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }

    .custom-sort-dropdown.active .custom-sort-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .custom-option {
        padding: 12px 16px;
        font-size: 14px;
        color: #555;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 400;
    }

    .custom-option:hover {
        /* background: #f7f7f7; */
        color: #000;
    }

    .custom-option.active {
        /* background: #f2f2f2; */
        color: #000;
        font-weight: 600;
    }
    
    .custom-option.active::after {
        content: '\f00c'; /* FontAwesome Check */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 12px;
        color: #000;
    }

    /* Hide on Mobile */
    @media (max-width: 992px) {
        .custom-sort-dropdown {
            display: none;
        }
    }

    /* Redesigned Filter Buttons */
    .btn-filter-primary {
        background-color: #fff;
        color: #555;
        border: 1px solid #e5e5e5;
        padding: 6px 15px;
        font-size: 12px;
        font-weight: 500;
        border-radius: 30px; /* Pill shape */
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .btn-filter-primary:hover {
        border-color: #000;
        color: #000;
        background-color: #f9f9f9;     
    }

    .btn-filter-secondary {
        background-color: #fff;
        color: #555;
        border: 1px solid #e5e5e5;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 30px; /* Pill shape */
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-filter-secondary:hover {
        border-color: #000 !important;
        color: #000 !important;
        background-color: #f9f9f9 !important;
    }


    /* Category Hierarchy Styles */
    .category-node {
        width: 100%;
    }

    .node-header {
        display: flex;
        justify-content: space-between;
        /* align-items: center; */
        padding: 5px 0;
        cursor: pointer;
        
    }

    .node-header:hover {
        background-color: transparent; /* Keep uniform background */
    }

    .toggle-icon {
        cursor: pointer;
        font-size: 12px;
        color: #888;
        padding: 5px;
        transition: transform 0.2s ease;
        width: 24px;
        text-align: center;
    }

    .toggle-icon:hover {
        color: #000;
    }

    .node-children {
        padding-left: 20px;
    }
    
    .root-node > .node-header {
        font-weight: 500;
    }
    
    .child-node > .node-header {
        font-weight: 400;
        font-size: 13px;
        color: #555;
    }
    
    .grand-node label {
        font-size: 13px;
        color: #666;
        padding-left: 5px;
    }
/* Custom class for uppercasing size names */

/* =========================================
   Pagination Styles
   ========================================= */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px auto;
    padding: 10px 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50px; /* Pill shape */
    width: fit-content;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    gap: 10px;
}

.pagination-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; 
    flex: 1; /* Take up available space */
    justify-content: center; /* Center the pagination links */
}

/* Dots specific style */
.page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
    width: 30px; 
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #fff;
    cursor: pointer; /* Ensure cursor pointer */
}

.page-link:hover {
    border-color: #000;
    color: #000;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-link.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
    /* background: #f9f9f9; */
}

.page-numbers {
    display: flex;
    gap: 8px;
}

/* Go To Page Input */
.goto-page-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.goto-page-input {
    width: 60px;
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 30px; /* Pill shape */
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

.goto-page-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Chrome/Safari/Edge - Remove spin buttons for number input to look cleaner like design */
.goto-page-input::-webkit-outer-spin-button,
.goto-page-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.goto-page-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: row; /* Keep row */
        gap: 10px;
        width: 330px; /* Fixed width as requested */
        max-width: 100%; /* Ensure it doesn't overflow very small screens */
        padding: 10px; /* Reduce padding */
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping if absolutely needed, but try to fit */
    }
    
    .pagination-container {
        /* gap: 0;  */
        justify-content: center;
        width: 100%; /* Take full width of the wrapper */
        flex-wrap: nowrap; /* Prevent wrapping */
        align-items: center;
    }
    
    .page-numbers {
        gap: 2px; /* Tighten number spacing */
    }
    
    .page-link {
        width: 28px; /* Smaller buttons */
        height: 28px;
        font-size: 12px;
    }

    .goto-page-wrapper {
        width: auto; /* Don't force full width */
        font-size: 13px;
    }
    
    .goto-page-input {
        width: 50px;
        padding: 6px;
    }
}

