

.custom-product-listing-container {
    display: flex;
    gap: 50px;
    margin-top: 30px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.custom-listing-filters-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.filters-toggle-btn {
    font-size: 18px;
    font-weight: 600;
    padding: 0!important;
    border: none;
    background: #00000000;
    color: #00A7C7;
    font-family: var(--inter);
}


.custom-listing-content .filters-toggle-btn {
    display: none;
}

.filters-toggle-btn i {
    font-size: 14px;
}

.custom-listing-content {
    flex-grow: 1;
}

.custom-listing-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
}
.custom-listing-sorting {
    font-size: 18px;
    color: #00A7C7;
    font-weight: 600;
}
.custom-listing-sorting select {
    padding: 8px 30px 8px 12px;
    border-radius: 4px;
    font-size: 18px;
    background-color: #fff;
    cursor: pointer;
    color: #00A7C7;
    border: none;
    font-weight: 600;
}

.product_loop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 20px;
}

/* Accordion Styling */
.filter-accordion-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.custom-listing-filters {
    margin-top: 40px;
}
.filter-stock-only-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-direction: row-reverse;
}

.filter-stock-only-container .stock-label {
    font-size: 18px;
    font-weight: 600;
    color: #00A7C7;
}

.custom-listing-filters .filter-accordion-item h3.filter-accordion-title {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--inter);
    margin: 0;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
   color: #00A7C7;
}

.filter-accordion-content {
    display: none;
    padding: 10px 0 20px 0;
}

.filter-accordion-item.active .filter-accordion-content {
    display: block;
}

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

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

.custom-listing-filters .filter-accordion-item  .filter-accordion-content .filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #00A7C7;
}

.filter-list label:hover {
    color: var(--primary-color);
}

.filter-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #00A7C7;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

/* Checked state */
.filter-list input[type="checkbox"]:checked {
    background-color: #00A7C7;
    border-color: #00A7C7;
}

/* Tick mark */
.filter-list input[type="checkbox"]:checked::after {
    content: "\f00c"; /* Font Awesome check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 167, 199, 0.3);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00A7C7;
}

input:checked + .slider:before {
    transform: translateX(18px);
}




.pruduct_price del {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-right: 5px;
}

.pruduct_price ins {
    text-decoration: none;
}


/* Range Sliders */
.input-range {
    margin-bottom: 25px;
}

.input-range__container-number {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: space-between;
}

.input-number-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-range__container-number > .input-number-wrapper:nth-child(2) {
    text-align: end;
}
.input-range__number {
    width: 100%;
    padding: 20px 0;
    border-radius: 4px;
    background: #00000000;
    -moz-appearance: textfield;
    color: #00A7C7;
    font-size: 18px;
    font-weight: 600;
    border: none;
    pointer-events: none;
}


.input-range__container-number .input-number-wrapper span.input-currency{
    color: #00A7C7;
    font-size: 18px;
    font-weight: 600;
}
.input-range__number::-webkit-outer-spin-button,
.input-range__number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-unit, .input-currency {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: #999;
}

.input-currency {
    left: 8px;
    right: auto;
}

.input-range[data-type="price"] .input-range__number {
    padding-left: 20px;
}

.input-range__dash {
    display: block;
    width: 10px;
    height: 1px;
    background-color: #333;
    margin: 0 10px;
}

.range-slider-container {
    padding: 10px 0;
    position: relative;
    height: 20px;
}

.range-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #D9D9D9;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2px;
}

.filter-accordion-item.active .filter-accordion-content .input-range {
    display: flex;
    flex-direction: column-reverse;
}
.range-slider-track::after {
    content: "";
    position: absolute;
    height: 100%;
    background: #00A7C7;
    border-radius: 2px;
    left: var(--range-start, 0%);
    right: var(--range-end, 0%);
}


.range-slider-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    margin: 0;
    z-index: 10;
    height: 4px;
}

.range-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #00A7C7;
    cursor: pointer;
    border: 4px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: auto;
}

.range-slider-container input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 4px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    pointer-events: auto;
}

/* Load More */
.custom-listing-load-more-container {
    text-align: center;
    margin-top: 50px;
}

.custom-listing-load-more-container button#custom-load-more {
    border: 2px solid #00A7C7;
    border-radius: 50px;
    background-color: #fff;
    color: #00A7C7;
    font-size: 32px;
    font-weight: 400;
    padding: 16px 40px;
    font-family: var(--leauge-gothic);
}
.custom-listing-load-more-container button#custom-load-more:hover{
    color: #fff;
    background-color: #00A7C7;
}


#custom-load-more:hover {
    background: var(--primary-color);
    color: #fff;
}



.product_loop_item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

/* 1st, 4th, 7th, ... */
.product_loop > .product_loop_item:nth-child(3n+1) .product_loop_item_upper {
    background: #FFFFD4;
}

/* 2nd, 5th, 8th, ... */
.product_loop > .product_loop_item:nth-child(3n+2) .product_loop_item_upper {
    background: #FCD7E5;
}

/* 3rd, 6th, 9th, ... */
.product_loop > .product_loop_item:nth-child(3n+3) .product_loop_item_upper {
    background: #DAD7FC;
}

.product_loop > .product_loop_item .product_loop_item_upper {
    border-radius: 500px;
    position: relative;
    overflow: hidden;
}

.product_loop_item_badges {
    position: absolute;
    top: 14px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.product_badge {
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}

.badge_on_sale {
    background-color: #8B8B8B;
}

.badge_sold_out {
    background-color: #FF5D5D;
}
.product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image {
    padding: 90px 10px;
            display: flex;
        justify-content: center;
        align-items: center;
}
.product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image p.product_loop_item_thca_prfile {
    position: absolute;
    text-align: center;
    width: 100%;
    top: 64px;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    font-family: var(--inter);
}
.product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image_add_cart {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: rgb(0 0 0 / 20%);
    border-radius: 500px;
    opacity: 0;
}
.product_loop > .product_loop_item .product_loop_item_upper:hover .product_loop_item_upper_image_add_cart{
    opacity: 1;
}
.product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image_add_cart a.button {
    padding: 18px 46px;
    border-radius: 50px;
    background: #00A7C7;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    transition: 0.3s ease all;
}
.product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image_add_cart a.button:hover {
    background: #C41F4B;
}

.product_loop > .product_loop_item .product_loop_item_lower p.product_loop_item_category_name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #00A7C7;
    text-align: center;
}

.product_loop > .product_loop_item .product_loop_item_lower p.product_loop_item_category_name a{
    color: #00A7C7; 
}
.product_loop > .product_loop_item .product_loop_item_lower p.product_loop_item_category_name a:hover{
    color: #C41F4B;
}
.product_loop > .product_loop_item .product_loop_item_lower a.product_loop_item__product_name {
    text-align: center;
    margin: 10px auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: var(--leauge-gothic);
    font-size: 36px;
    font-weight: 400;
    color: #00A7C7;
    line-height: 1.2;
    letter-spacing: 0.5%;
}
.product_loop > .product_loop_item .product_loop_item_lower a.product_loop_item__product_name:hover{
       color: #C41F4B; 
}

.product_loop > .product_loop_item .product_loop_item_lower p.pruduct_price {
    text-align: center;
    font-family: var(--leauge-gothic);
    margin: 10px 0;
    color: #00A7C7;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 400;
}


.product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image img {
    max-width: 280px;
    width: 100%;
}

.product_loop_item 
.product_loop_item_lower 
> a.login-for-pricing {
    font-size: 14px;
    font-weight: 500;
    font-family: var(--inter);
    color: #00A7C7;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}
.product_loop_item .product_loop_item_lower > a.login-for-pricing > i {
    margin-right: 6px;
}

@media (max-width: 1366px) {
    .product_loop > .product_loop_item .product_loop_item_lower a.product_loop_item__product_name {
        font-size: 30px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower p.pruduct_price {
        font-size: 22px;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image {
        padding: 70px 16px;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image img {
        max-width: 240px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower p.product_loop_item_category_name {
        font-size: 16px;
    }
    .product_badge {
        padding: 6px 18px;
        border-radius: 20px;
        font-size: 14px;
    }
}
/* Responsive */
@media screen and (max-width: 1024px) {
    .custom-product-listing-container {
        flex-direction: column;
        padding: 0 0;
    }

    .custom-listing-filters-sidebar {
        display: none; /* Modal handled via JS */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 9999;
        padding: 30px;
        overflow-y: auto;
        transition: 0.3s ease all;
        max-width: 320px;
    }

    .custom-listing-filters-sidebar.active {
        display: block;
    }

    .close-filters-modal {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
    }

    .sidebar-desktop-only {
        display: none;
    }

    .custom-listing-content .filters-toggle-btn {
        display: flex;
        width: fit-content;
    }

    .custom-listing-top-bar {
        justify-content: flex-end;
    }

    .product_loop {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 20px;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image_add_cart a.button {
        padding: 14px 32px;
        font-weight: 700;
        font-size: 18px;
    }
    .custom-listing-top-bar button#open-filters-modal {
        align-items: center;
        gap: 8px;
        color: #fff;
        background: #00A7C7;
        border-radius: 50px;
        padding: 10px 16px!important;
        position: fixed;
        bottom: 60px;
        z-index: 99;
        right: 20px;
    }
    .custom-listing-load-more-container button#custom-load-more {
        font-size: 24px;
        padding: 12px 30px;
    }
    .product_badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}
@media (max-width:920px) {
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image p.product_loop_item_thca_prfile {
        top: 56px;
        font-size: 14px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower a.product_loop_item__product_name {
        font-size: 22px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower p.product_loop_item_category_name {
        font-size: 14px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower p.pruduct_price {
        font-size: 18px;
        margin: 8px 0;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image_add_cart a.button {
        padding: 10px 26px;
        font-size: 14px;
    }
    
}
@media screen and (max-width: 600px) {
    .product_loop {
        grid-template-columns: 1fr;
    }
    .product_loop {
        grid-template-columns: 1fr 1fr;
    }
    .product_loop {
        grid-template-columns: 1fr 1fr;
        gap: 40px 12px;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image_add_cart a.button {
        padding: 10px 16px;
        font-size: 10px;
    }
    .custom-listing-sorting select {
        padding: 0;
        border-radius: 0;
        font-size: 14px;
        color: #00A7C7;
        font-weight: 600;
    }
    .custom-listing-sorting {
        font-size: 14px;
        color: #00A7C7;
        font-weight: 600;
    }
    .product_loop_item {
        gap: 12px;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image {
        padding: 46px 16px;
    }
    .product_loop > .product_loop_item .product_loop_item_upper .product_loop_item_upper_image p.product_loop_item_thca_prfile {
        top: 40px;
        font-size: 10px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower p.product_loop_item_category_name {
        font-size: 10px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower a.product_loop_item__product_name {
        font-size: 16px;
        margin: 4px 0px;
    }
    .product_loop > .product_loop_item .product_loop_item_lower p.pruduct_price {
        font-size: 12px;
        margin: 4px 0;
    }
        .custom-listing-load-more-container button#custom-load-more {
        font-size: 20px;
        padding: 10px 26px;
    }
    .custom-listing-load-more-container {
        margin-top: 24px;
    }
    .custom-listing-top-bar button#open-filters-modal {
        padding: 8px 12px!important;
        font-size: 12px;
    }
    .product_badge {
        padding: 6px 12px;
        font-size: 8px;
    }
    .product_loop_item 
    .product_loop_item_lower 
    > a.login-for-pricing {
        font-size: 8px;

    }
}
