/* Page Loader Overlay - Optimized for Performance */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    will-change: opacity, visibility;
    contain: layout style paint;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    text-align: center;
}

.page-loader-inner .loader {
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #14BBC6;
    -webkit-mask: repeating-conic-gradient(#0000 0deg, #000 1deg 70deg, #0000 71deg 90deg),
        radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: loaderSpin 0.8s infinite linear;
    margin: 0 auto 16px;
    will-change: transform;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader-inner p {
    font-size: 14px;
    color: #12142F;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.shop-page-wrapper {
    position: relative;
    padding-top: 120px;
}

.shop-page-wrapper:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    background-image: url(https://staging2.artfoxprint.com/wp-content/uploads/2025/07/product-catalog-bg.png);
    background-repeat: no-repeat;
    background-position: top right;
    z-index: -1;
}

.category-section {
    padding-bottom: 100px;
}

.category-title h1 {
    font-size: 32px;
    line-height: normal;
    font-weight: 400;
    font-family: var(--outfit);
    text-align: left;
    margin-bottom: 12px;
    margin-left: 10px;
}

/* .category-list {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px;
} */
.shop-top-slider .page-width {
    max-width: 1620px;
}

.category-slider .slick-track {
    padding-block: 20px;
}

.category-slider .slick-slide>div {
    margin-inline: 10px;
}

.selected-filters p {
    margin-block: 12px;
}

.selected-filters p a {
    padding: 12px 24px;
    font-size: 14px;
    text-transform: uppercase;
}

.selected-filters .filter-chip {
    background-color: var(--cyan-color);
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 14px;
    color: #fff;
    display: inline-block;
    margin: 2px 3px;
}

.selected-filters .filter-chip a {
    color: #fff;
    font-size: 14px;
    font-family: 'Outfit';
    text-decoration: none;
}


.category-list .category-item-image img {
    width: 100%;
    vertical-align: middle;
    height: 260px;
    object-fit: contain;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fbfbfd;
}

.category-list .category-item {
    padding: 10px;
    box-shadow: 0px 0px 16px rgba(24, 27, 62, 0.08);
    border-radius: 15px;
    background-color: var(--white);
}

.category-list .category-item a {
    text-decoration: none;
}

.category-list .category-item-name h2 {
    color: var(--cyan-color);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 15px;
    font-family: var(--inter);
    text-align: center;
    margin-block: 15px 10px;
}

.category-list .category-item-btn {
    text-align: center;
    margin-top: 12px;
}

.category-list .category-item-btn .btn-secondary {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding-block: 13px;
}

.shop-content-section {
    padding-bottom: 100px;
}

.custom-main-sidebar {
    display: grid;
    grid-template-columns: 336px auto;
    gap: 55px;
}

.custom-main-sidebar .product-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    contain: layout style;
}

/* Optimize product card rendering */
.custom-main-sidebar .product-card-list>* {
    contain: layout style paint;
}

.custom-main-sidebar .shop-main {
    display: flex;
    flex-direction: column;
}

h3.filter_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 400;
    font-family: 'Outfit';
    cursor: pointer;
    margin-bottom: 24px;
}

/* The container */
.filter_label {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 18px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: 'Outfit';
}

/* Hide the browser's default checkbox */
.filter_label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.filter_label .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border-radius: 3px;
    border: 1px solid #12142f;
}

/* When the checkbox is checked, add a blue background */
.filter_label.filter-product_cat input:checked~.checkmark {
    background-color: #14BBC6;
}


.filter_label input:checked~.checkmark {
    background-color: #14BBC6;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.filter_label input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.filter_label .checkmark:after {
    left: 7px;
    top: 2px;
    width: 3px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.filter_label.filter-size {
    padding-left: 0;
    margin: 0;
    padding-right: 12px;
}

.shop-sidebar hr {
    background: #9E9FAA;
    height: 1px;
    border: none;
    margin-block: 35px 25px;
}

/* Hierarchical Category Styles */
.filter_label.parent-category {
    font-weight: 600;
    margin-bottom: 8px;
}

.filter_label.parent-category strong {
    font-weight: 600;
}

.subcategory-group {
    padding-left: 20px;
    margin-bottom: 15px;
    border-left: 2px solid #e9ecef;
    margin-left: 8px;
}

.subcategory-group .filter_label.subcategory {
    font-size: 15px;
    margin-bottom: 10px;
    color: #555;
}

.subcategory-group .filter_label.subcategory:last-child {
    margin-bottom: 0;
}

.filter-group button.button {
    padding: 12px 28px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--outfit);
    font-weight: 600;
    transition: all .3s ease;
    display: inline-block;
    text-decoration: none;
}

.filter-group button.button:hover {
    background-color: var(--cyan-color);
    color: var(--white);
}

.filter-group .button.clear-filters {
    padding: 12px 28px;
    border: none;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--outfit);
    font-weight: 600;
    transition: all .3s ease;
    display: inline-block;
    text-decoration: none;
}

.filter-group .button.clear-filters:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.shop-sorting .woocommerce-ordering select {
    vertical-align: top;
    border-radius: 8px;
    background-color: #DDDEE4;
    border: none;
    padding: 0 30px 0 15px;
    height: 38px;
    max-width: 100%;
    position: relative;
    font-size: 14px;
    font-family: 'Inter';
    font-weight: 400;
    appearance: none;
    background-image: url(https://staging2.artfoxprint.com/wp-content/uploads/2025/09/dropdown-arrow.svg);
    background-repeat: no-repeat;
    background-position: 94% center;
}

.shop-sidebar {
    font-family: 'Inter', sans-serif;
    color: #12142F;
}

.filter_title {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    margin-bottom: 25px;
}

.filter_label {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
    margin-bottom: 4px;
    cursor: pointer;
    position: relative;
}

.filter_label input[type="checkbox"] {
    display: none;
}

.filter_label.filter-size {
    display: inline-flex;
    padding-left: 0;
    margin: 0 6px 8px 0;
}

.filter_label.filter-size .pill {
    display: inline-block;
    background-color: #f5f5f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: #12142F;
    transition: all 0.2s ease;
    user-select: none;
    cursor: pointer;
    min-width: 45px;
    text-align: center;
}

.filter_label.filter-size .pill:hover {
    background-color: #e8e8eb;
    border-color: #14BBC6;
}

.filter_label.filter-size input[type="checkbox"]:checked+.pill {
    background-color: #14BBC6;
    border-color: #14BBC6;
    color: #fff;
    box-shadow: 0 2px 6px rgba(20, 187, 198, 0.3);
}

/* Color Swatches */
.filter_label.filter-color .checkmark {
    width: 20px;
    height: 20px;
    border-radius: 0;
    display: inline-block;
    border: 1px solid #ddd;
}

.filter_label.filter-color input[type="checkbox"]:checked+.checkmark {
    outline: 1px solid #12142F;
    outline-offset: 1px;
}

/* General Checkmark Style for Gender & Category */
.filter_label:not(.filter-size):not(.filter-color) {
    display: flex;
    align-items: center;
}


/* .filter_label input[type="checkbox"]:checked + span.checkmark {
  background-color: #00C2C2;
  border-color: #00C2C2;
} */



.mobile-filter-opened {
    position: relative;
    overflow: hidden;
}

.mobile-filter-opened:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #000;
    opacity: .5;
    z-index: 5;
}





#mobile-filters-wrapper {
    margin-bottom: 20px;
}

#filterDrawer {
    position: fixed;
    z-index: 9;
    background-color: #fff;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 30px 20px 80px;
    height: 85vh;
    max-height: 85vh;
    overflow: auto;
    border-radius: 20px 20px 0 0;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.icon-filter {
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 100px;
    width: max-content;
    box-shadow: 0px 0px 16px rgba(24, 27, 62, 0.08);
}

.icon-filter button {
    font-size: 15px;
    font-family: 'Inter';
    border: none;
    background: transparent;
}

.mobile-filter-opened #filterDrawer {
    opacity: 1;
    visibility: visible;
}

.filter-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    justify-content: space-between;
}

.filter-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.filter-header button {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.filter-actions {
    position: absolute;
    bottom: 15px;
    left: 0;
    padding-inline: 20px;
    width: 100%;
}

.filter-actions button {
    width: 100%;
}

.mobile-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-filter-bar .btn-primary.clear-filters {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
}

.mobile-filter-bar .clear-filters {
    width: 100%;
}

.mobile-filter-bar .clear-filters a {
    width: auto;
}


@media screen and (min-width:990px) and (max-width:1279px) {
    .category-section {
        padding-bottom: 50px;
    }

    .custom-main-sidebar {
        grid-template-columns: 225px auto;
        gap: 40px;
    }

    .custom-main-sidebar .product-card-list {
        gap: 12px;
    }

    .shop-content-section {
        padding-bottom: 50px;
    }

    .category-slider .slick-slide>div {
        margin-inline: 5px;
    }

    .category-list .category-item-image img {
        height: 200px;
        ;
    }
}

@media screen and (min-width:768px) and (max-width:989px) {
    .category-section {
        padding-bottom: 50px;
    }

    .custom-main-sidebar {
        grid-template-columns: 215px auto;
        gap: 32px;
    }

    .custom-main-sidebar .product-card-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .shop-content-section {
        padding-bottom: 50px;
    }

    .shop-page-wrapper {
        padding-top: 100px;
    }

    .category-title h1 {
        font-size: 28px;
        margin-bottom: 0;
    }

    .category-list .category-item-image img {
        height: 200px;
        padding: 20px;
    }
}



@media screen and (min-width:768px) {
    #mobile-filters-wrapper {
        display: none;
    }
}

@media screen and (max-width:767px) {
    #desktop-filters-wrapper {
        display: none;
    }

    .shop-main .shop-sorting {
        display: none;
    }

    .shop-page-wrapper {
        padding-top: 85px;
    }

    .custom-main-sidebar {
        grid-template-columns: 100%;
        gap: 0;
    }

    .custom-main-sidebar .product-card-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-section {
        padding-bottom: 0;
    }

    .category-title h1 {
        font-size: 22px;
        text-transform: uppercase;
        margin-left: 5px;
        margin-bottom: 0;
    }

    .category-list .category-item-image img {
        height: 120px;
        ;
    }

    .category-slider .slick-slide>div {
        margin-inline: 4px;
    }

    .shop-sidebar hr {
        margin-block: 25px 15px;
    }

    h3.filter_title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .filter_label {
        font-size: 16px;
    }

    .filter-group {
        margin-bottom: 15px;
    }

    .shop-content-section {
        padding-bottom: 50px;
    }
}

/* Swatch color filter */
.filter-color.red-oak .checkmark {
    background-color: #A0452E;
}

.filter-color.heather-orange .checkmark {
    background-color: #F28E2B;
}

.filter-color.charity-pink .checkmark {
    background-color: #FF7CA8;
}

.filter-color.solid-white-blend .checkmark {
    background-color: #F5F5F5;
}

.filter-color.true-royal .checkmark {
    background-color: #3453A1;
}


.FI-pagination {
    text-align: center;
    margin-block: 40px 60px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.FI-pagination__nav {
    display: flex;
    align-items: center;
    gap: 15px;
}


