/* main content */ 
.archive-product-container {
    max-width: 1440px;
    padding: 50px 50px 100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 50px;
    transition: all 0.4s ease;
}
/* breadcrumbs */
.archive-product-title {
    grid-column: span 2;
}
/*Archive-page right side */
.archive-product-content ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
.archive-dropdown-cont {
    display: flex;
    gap: 24px;
}
.archive-results-and-sorting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 32px;
}
.archive-product-container {
    .single-product-img a {
        width: 100%;
    }
}
/* order by */
.result-and-sorting-name {
    color: var(--greyText1);
}
#orderby-form,
#per-page-form {
    display: none;
}
.archive-orderby-dropdown,
.archive-per-page-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.archive-per-page-dropdown-mob,
.archive-orderby-dropdown-mob {
    display: none;
}
.dropdown-title,
.dropdown-count-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 215px;
    gap: 10px;
    height: 50px;
    padding: 10px 24px;
    border: 1px solid var(--greyBorder1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.archive-sorting-count .dropdown-count-title {
    min-width: 100px;
}
.dropdown-title:hover,
.dropdown-count-title:hover {
    color: var(--blue1);
}
.dropdown-title::after,
.dropdown-count-title::after {
    content: "";
    background-image: url(../../icons/arrow_down_passive_black.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    display: block;
    transition: all 0.4s ease;
}
.dropdown-title:hover::after,
.dropdown-count-title:hover::after {
    background-image: url(../../icons/arrow_down_hover.svg);
}
.dropdown-title.open::after,
.dropdown-count-title.open::after {
    transform: rotate(180deg);
}
#dropdown-menu,
#per-page-dropdown-menu {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--white1);
    border: 1px solid var(--greyBorder1);
    color: var(--black1);
    border-radius: 6px;
    overflow: hidden;
    z-index: 100;
}
#dropdown-menu {
    left: unset;
    width: 215px;
}
#per-page-dropdown-menu{
    left: unset;
    width: 100px;
}
#dropdown-menu li,
#per-page-dropdown-menu li {
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.4s ease;
}
#dropdown-menu li:hover,
#per-page-dropdown-menu li:hover {
    background: var(--blue2);
}
#dropdown-menu li.active,
#per-page-dropdown-menu li.active {
    background: var(--blue1);
    color: var(--white1);
}
#dropdown-menu,
#per-page-dropdown-menu {
    display: none;
}
/* pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    padding-top: 32px;

    .pagination-list,
    .page-numbers,
    .archive-pag-list {
        display: flex !important;
        gap: 8px;
    }
    #archive-pag-list .number-list {
        display: flex;
        gap: 8px;
    }

    .archive-pag-prev,
    .archive-pag-next {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 45px;
        width: 45px;
        /* padding: 6px 12px; */
        color: var(--black1);
        border: 1px solid var(--blue1);
        border-radius: 6px;
        pointer-events: auto;
        transition: all 0.4s ease;

        svg {
            width: 20px;
            height: 20px;
        }
    }
    .archive-pag-prev a,
    .archive-pag-next a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 45px;
        width: 45px;
    }
    .archive-pag-prev:hover,
    .archive-pag-next:hover {
        background: var(--blue1);
    }
    .archive-pag-prev:hover svg ,
    .archive-pag-next:hover svg {
        color: var(--white1);
    }

    .archive-pag-prev.disabled,
    .archive-pag-next.disabled {
        border-color: var(--greyBorder1);
        color: var(--greyBorder1);
        pointer-events: none;
    }
    .page-numbers {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 45px;
        width: 45px;
    
        color: var(--black1);
        border: 1px solid var(--greyBorder1);
        border-radius: 6px;
        transition: all 0.4s ease;
    }
    .page-numbers.current {
        color: var(--white1);
        background: var(--blue1);
        border-color: var(--blue1);
    }
    .page-numbers:hover {
        /* color: var(--blue1); */
        /* background: var(--blue1); */
        border-color: var(--blue1);
    }
    .pagination-btns-numbers {
        display: flex;
        gap: 8px;
    }
}
/* search error */
.search-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 118px;
}
.search-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
/* Categories left side */
.product-archive-categories {
    color: var(--black1);
    display: flex;
    flex-direction: column;
    min-width: 225px;
}
.search-product-section {
    border-bottom: 1px solid var(--greyBorder1);
    padding: 26px 0px 24px 0px;
}
.search-product-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s ease;
}

.search-product-title::after {
    content: "";
    display: block;
    background-image: url(../../icons/arrow_down_passive_black.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    transition: transform 0.4s ease;
}
.search-product-title.active::after {
    transform: rotate(180deg);
}
.search-product-title:hover {
    color: var(--blue1);
}

.search-product-title-wrapper {
    display: flex;
    gap: 4px;
    align-items: center;
}

.search-product-title-wrapper > p:last-child {
    color: var(--greyText1);
}

.price-input-wrapper .currency-unit {
  position: absolute;
  top: 50%;
  right: 0.5em;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--blue1);
}

/* open/close categories */
.search-product-content {
    display: block; 
    padding-top: 24px;
}
.search-product-content ul,
.search-product-content > #stock-filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.search-product-content label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
}
/* Price slider */
.search-product-content-price {
    display: none;
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.price-range-slider {
  position: relative;
  width: 100%;
}
.range-wrapper {
  position: absolute;
  top: 50%;
  width: 100%;
}
.range-value {
  position: absolute;
  top: 10px;
  white-space: nowrap;
  pointer-events: none;
  color: var(--blue1);
}
.price-range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  top: 50%;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  height: 2px;
  margin: 0;
}
/* Thumbs */
.price-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--white1);
  border: 2px solid var(--blue1);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 3;
  /* margin-top: -6px; */
}
/* Track with neutral background */
/* Selected range */
.slider-track,
.slider-track-power {
  position: absolute;
  height: 2px;
  background: var(--greyBorder1);
  top: 50%;
  width: 100%;
  z-index: 1;
  border-radius: 4px;
  --min: 0%;
  --max: 100%;
}
.slider-track::before,
.slider-track-power::before {
  content: '';
  position: absolute;
  height: 100%;
  background: var(--blue1);  /* blue highlight */
  left: var(--min);
  width: calc(var(--max) - var(--min));
  z-index: 2;
  border-radius: 4px;
}
/* price range inputs */
.price-range-inputs .button5:hover {
    border-color: var(--greyText1);
    color: var(--blue1);
}
.price-range-inputs .button5:focus {
    outline: none;
    border-color: var(--blue1);
}
.price-range-inputs .button5:not(:placeholder-shown) {
    color: var(--black1);
}
/* price inputs */
.price-range-inputs {
    display: flex;
    gap: 16px;
    padding-top: 20px;
}

.shop-category-item > a {
    color: var(--greyText1);
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease all;
}

.shop-category-item > a:hover{
    color: var(--blue1);
    transition: 0.3s ease all;
}

.shop-category-item > a label {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid var(--greyBorder1);
    border-radius: 50%;
    appearance: none;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}
.shop-category-item > a:hover label {
    border-color: var(--blue1);
}
.shop-category-item > a.active label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    background-color: var(--blue1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.shop-category-item > a.active label {
    border-color: var(--blue1);
}

.price-range-inputs .button5 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
    color: var(--greyText1);
    border: 1px solid var(--greyBorder1);
    border-radius: 4px;
    width: 100%;
    touch-action: pan-y;
    transition: all 0.4s ease;
}
/* number imputs arrows */
/* Chrome, Safari, Edge, Opera */
.price-range-inputs .button5::-webkit-outer-spin-button,
.price-range-inputs .button5::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* custom check-box */
.custom-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--greyBorder1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
}
.custom-checkbox:checked {
    width: 16px;
    height: 16px;
    background-color: var(--blue1);
    border-color: var(--blue1);
}
.custom-checkbox::after {
    content: '';
    position: relative;
    display: block;
    width: 4px;
    height: 8px;
    border: solid var(--white1);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 25%;
}
/* Manufacturer category */
.search-product-content .manufacturer-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 8px;
}
.manufacturer-filters li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.manufacturer-filters li:hover {
    opacity: 0.9;
}
.manufacturer-filters li.active {
    opacity: 1;
}
/* .manufacturer-filters a img {
    display: block;
    padding: 8px 18px;
    object-fit: contain;
    object-position: center;
    height: 100%;
    width: 100%;
} */
.manufacturer-filters li img {
    display: block;
    padding: 8px;
    object-fit: contain;
    object-position: center;
    max-height: 50px;
    max-width: 140px;
    height: 100%;
    width: 100%;
}
/* categories list */
.shop-category-parents-list a {
    color: var(--greyText1);
    transition: all 0.4s ease;
}
.shop-category-parents-list a:hover {
    color: var(--blue1);
}
/* close/open filter on mobile device */
#open-filter,
#filter-menu-header {
    display: none;
}
/* labels */
.search-product-section label a,
.search-product-section label {
    color: var(--greyText1);
    transition: all 0.4s ease;
}
.search-product-section label:hover,
.search-product-section label a:hover {
    color: var(--blue1);
}
.search-product-section label.active,
.search-product-section li.active label a {
    color: var(--black1);
}

.sibling-categories-wrapper {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    overflow: auto;
    scrollbar-width: none;
}

.sibling-categories-wrapper > span,
.sibling-categories-wrapper > a {
    border-radius: 8px;
    padding: 15.5px 20px;
    border: 1px solid var(--greyBorder1);
    white-space: nowrap;
}

.sibling-cat.current {
    background-color: var(--blue1);
    color: var(--white1);
}

.sibling-categories-wrapper > a {
    color: var(--greyText1);
    cursor: pointer;
    transition: 0.3s ease all;
}

.sibling-categories-wrapper > a:hover {
    color: var(--blue1);
    background: var(--blue2);
    border: 1px solid var(--blue2);
    transition: 0.3s ease all;
}

.loyalty-section-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.loyalty-points-section {
    padding: 16px;
    border-radius: 6px;
    background-color: var(--blue2);
    display: flex;
    gap: 12px;
}

.loyalty-points-section img, .loyalty-points-section picture {
    width: 21.66px;
    height: 21.63px;
}

.loyalty-points-section > div {
    display: flex;
    gap: 6px;
}

/* form-controller */
.filter-form-controllers {
    display: none;
}

/* Responsive */
@media (max-width: 1250px) {
    .archive-product-content ul {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 1150px) {
    .archive-results-and-sorting {
        flex-direction: column;
        align-items: start;
    }
}
@media (max-width: 950px) {
    .archive-product-content ul {
        grid-template-columns: 1fr;
    }
    .archive-dropdown-cont {
        flex-direction: column;
    }
}
@media (max-width: 767px) {

    /* main content */
    .archive-product-container {
        gap: 30px;
        padding: 30px 20px 50px;
        grid-template-columns: 1fr;
    }
    .archive-product-content ul {
        grid-template-columns: 1fr 1fr;
    }
    .archive-product-title {
        grid-column: span 1;
        width: 100%;
        overflow-x: auto;
    }
    /* close/open filter on mobile device */
    .archive-product-container {
        .btn-component {
            flex-direction: row-reverse;
        }
    }
    #open-filter {
        display: block;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 400;
    }
    #filter-menu-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        padding: 20px;
        color: var(--black1);
        border-bottom: 1px solid var(--greyBorder1);
        background: var(--white1);
        align-items: center;
        z-index: 1000;
    }
    #filter-menu-header {
        .body1 {
            margin: auto;
        }
    }
    #close-filter {
        background: none;
        border: none;
        height: 30px;
        width: 0; 
        cursor: pointer;
    }
    #close-filter svg {
        height: 30px;
        width: 30px;        
    }

    .product-archive-categories {
        display: none;
    }
    .product-archive-categories.active {
        display: flex;
        position: fixed;
        top: 70px;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white1);
        overflow-y: auto;
        scrollbar-width: none;
        z-index: 999;
    }
    .search-product-section {
        order: 2;
        padding: 18px 20px;
        
    }
    .search-product-title::after {
        transform: rotate(-90deg);
    }
    .search-product-title.active::after {
        transform: rotate(0deg);
    }

    /* search error */
    .search-info-container {
        text-align: center;
        padding: 50px 0;
    }
    /* sortby */
    .archive-dropdown-cont {
        order: 1;
        gap: unset;
    }
    .archive-per-page-dropdown,
    .archive-orderby-dropdown {
        display: none;
    }
    .archive-per-page-dropdown-mob,
    .archive-orderby-dropdown-mob {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
        border-bottom: 1px solid var(--greyBorder1);
    }
    .archive-per-page-dropdown-mob li,
    .archive-orderby-dropdown-mob li {
        color: var(--greyText1);
        transition: all 0.4s ease;
    }
    .archive-per-page-dropdown-mob li:hover,
    .archive-orderby-dropdown-mob li:hover{
        color: var(--blue1);
        cursor: pointer;
    }
    .archive-per-page-dropdown-mob li.active,
    .archive-orderby-dropdown-mob li.active{
        color: var(--blue1);
    }
    .dropdown-title,
    .dropdown-count-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: unset;
        padding: 18px 0;
        border: unset;
        border-radius: unset;
        cursor: pointer;
    }
    .dropdown-title::after,
    .dropdown-count-title::after {
        transform: rotate(-90deg);
    }
    .dropdown-title.open::after,
    .dropdown-count-title.open::after {
        transform: rotate(0deg);
    }
    .dropdown-menu {
        padding-bottom: 18px;
    }
    .dropdown-menu li {
        margin-bottom: 16px;
    }
    .dropdown-menu li:last-child {
        margin-bottom: 0;
    }    
    #per-page-dropdown-menu-mob,
    #dropdown-menu-mob {
        display: none;
    }
    /* pagination */
    .archive-pagination {
        padding-top: 24px;

        .archive-pag-prev,
        .archive-pag-next {
            width: 50%;
            transition: all 0.4s ease;
        }

        .archive-pag-prev a,
        .archive-pag-next a {
            width: 100%;
        }
    }
    #archive-pag-list {
        gap: 12px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        width: 100%;
    }
    #archive-pag-list .number-list {
        gap: 12px;
    }
    .archive-pag-list .archive-pag-numbers {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        
    }
    .archive-pag-prev {
        grid-row: 2;
        grid-column: 1;
        justify-self: end;
    }
    .archive-pag-next {
        grid-row: 2;
        grid-column: 2;
        justify-self: start;
    }
    /* form-controller */
    #filter-on-click {
        order: 3;
    }
    .filter-form-controllers {
        display: block;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 18px 20px 38px;

        .btn-submit {
            padding: 0 24px;
            height: 45px;
            width: 100%;
            background: var(--yellow1);
            color: var(--black1);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.4s ease;
        }
        .btn-submit:hover {
            background: var(--hoverYellow1);
        }
        .btn-cancel {
            height: 45px;
            width: 45px;
            min-width: 45px;
            border-radius: 8px;
            background: var(--white1);
            border: 1px solid var(--greyBorder1);
            color: var(--blue1);
            cursor: pointer;
            transition: all 0.4s ease;
        }
        .btn-cancel:hover {
            background: var(--greyBorder1);
        }
    }
}
@media (max-width: 550px) {
    .archive-product-content ul {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    /* pagination */
    .archive-pagination {
        .archive-pag-prev,
        .archive-pag-next {
            width: 100%;
        }
    }
}

/* TOP category - latest products carousel */
.top-category-latest-products {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 64px;
    overflow: hidden;
}

.top-category-latest-products-title {
    margin-bottom: 24px;
}

.top-category-latest-carousel {
    overflow: hidden;
}

.top-category-latest-carousel .slick-track {
    display: flex;
    gap: 24px;
}

.archive-product-container
.top-category-latest-carousel
.single-product-card {
    width: 400px;
}

.top-category-latest-products .slick-carousel-controls {
    margin-top: 16px;
    padding-right: 0;
}

@media (max-width: 767px) {

    .top-category-latest-products {
        margin-top: 40px;
    }

    .top-category-latest-products-title {
        margin-bottom: 16px;
    }

    .archive-product-container
    .top-category-latest-carousel
    .single-product-card {
        width: 280px;
    }
}