
:root {
    --filter-w: 200px;
    --trans: all 250ms ease-in-out;
}


.js-collections-header {
    flex-wrap: wrap;
    align-items: center;
}

.collection-head {
    margin: 0 0 20px;
    font-size: 21px;
    font-weight: 500;
    width: calc(100% - 280px);
    padding-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 34px;
}

.collection-filter {
    width: 280px
}

.collections-banner {
    width: 100%;
    margin: 10px 0 25px;
}


.js-category-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-gap: 20px;
}
.product-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    box-shadow: 0 0 5px rgba(11, 11, 11, 0.1);
    border-radius: 3px;
}

.product-image-box {
    height: 280px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.product-image-box img {
    width: 100%;
    height: 100%;
}

.product-info {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;
    text-align: center;
    padding: 10px;
}

.product-in-cat-heading {
    width: 100%;
    text-align: center;
    font-size: 19px;
    font-weight: 500;
    padding: 0 15px;
    line-height: 26px;
    margin-bottom: 15px;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 80px;
}

.product-price {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 7px 15px;
}

.product-price span {
    margin: 0 3px;
}

.new-price {
    color: var(--error);
    font-size: 19px;
    font-weight: 500;
}

.old-price {
    font-size: 15px;
    color: var(--gray);
    text-decoration: line-through;
    font-weight: 400;
}
.category-info {
    margin-left: auto;
    width: 100%;
}

.pagination {
    margin-top: 20px;
}

/* search page */
.search-page-contain {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 25px 0 15px;
}

.filter-product,
.category-content-wrapper,
.js-category-content {
    width: 100%;
    min-height: 1px;
}

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

.link-selected {
    align-items: center;
    appearance: none;
    background: transparent;
    background-color: #f2f2f6;
    border: 0;
    border-radius: 4px;
    color: #19124f;
    cursor: pointer;
    display: inline-flex;
    outline: 0;
    padding: 6px 8px;
    font-size: 0.85rem;
}

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

.filter-child-link {
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    padding: 7px 0;
    color: var(--black);
    font-size: 15px;
    line-height: 1;
    transition: var(--trans);
}

.filter-child-link::before {
    content: "";
    display: block;
    width: 14px;
    min-width: 14px;
    height: 14px;
    border-radius: 16px;
    border: 1px solid var(--gray);
    margin-right: 7px;
    transition: var(--trans);
}

.filter-child-link.active:after,
.filter-child-link::after {
    content: "";
    width: 6px;
    min-width: 6px;
    height: 6px;
    display: block;
    position: absolute;
    left: 4px;
    top: calc(50% - 3px);
    border-radius: 10px;
    background-color: var(--primary);
    transition: var(--trans);
    opacity: 0;
}

.filter-child-link:hover,
.filter-child-link.active {
    color: var(--primary)
}

.filter-child-link.active:before,
.filter-child-link:hover::before {
    border-color: var(--primary)
}

.filter-child-link.active:after,
.filter-child-link:hover::after {
    opacity: 1;
}

.filter-heading {
    font-weight: 600;
    display: block;
    margin-bottom: 7px;
    color: var(--black);
}

.no-product-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.no-product-box .button {
    margin: 0 10px 0 0;
    border: 1px solid var(--flash)
}

.reset-filer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.reset-filer .button {
    border: 1px solid var(--flash);
    margin-top: 25px;
}

.filler-button {
    opacity: 0;
    visibility: hidden;
    position: absolute;
}

/* table landscape and desktop */
@media (min-device-width: 992px) and (max-device-width: 1360px) and (orientation: landscape), (min-width: 1024px) {
    .filter-product {
        width: var(--filter-w);
    }

    .category-content-wrapper {
        width: calc(100% - var(--filter-w));
        padding-left: 25px;
    }
}

@media (max-width: 992px) {

}

@media  (min-device-width: 760px) and (max-device-width: 1024px) and (orientation: portrait),
(max-width: 760px) and (orientation: portrait),
(max-width: 992px) and (orientation: landscape) {
    .collection-head,
    .collection-filter {
        width: 100%;
    }

    .collections-banner {
        height: 160px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .collections-banner img {
        height: 100%;
        object-fit: contain;
        max-width: inherit;
    }

    .js-category-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        margin-top: 25px;
    }

    .product-image-box {
        height: 160px;
    }

    .product-in-cat-heading {
        font-size: 15px;
    }

    .filter-product {
        height: 100%;
        width: calc(100vw - 100px);
        max-width: 300px;
        overflow-x: hidden;
        overflow-y: auto;
        display: none;
        background-color: #fff;;
        box-shadow: 0 8px 10px -5px rgb(0 0 0 / 20%), 0 16px 24px 2px rgb(0 0 0 / 14%), 0 6px 30px 5px rgb(0 0 0 / 10%);
        position: fixed;
        top: 0;
        right: 0;
        z-index: 123;
        list-style: none;
        margin: 0;
        padding: 20px 20px 80px 20px;
    }


    .filter-background {
        height: 100%;
        width: 100%;
        display: none;
        background-color: rgba(11, 11, 11, 0.4);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 11;
        margin: 0;
        padding: 0;
    }

    .filler-button:checked ~ .filter-product,
    .filler-button:checked ~ .filter-product + .filter-background {
        display: block;
    }

    .filter-background::before,
    .filter-background::after {
        content: "";
        width: 30px;
        height: 2px;
        background-color: #fff;
        border-radius: 2px;
        display: block;
        position: absolute;
        top: 75px;
        left: 35px;
        transform: rotate(45deg);;
    }

    .filter-background::after {
        transform: rotate(-45deg);
    }


    .collection-head {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        margin-bottom: 15px;
        padding: 0;
    }

    .collection-head .filter-button {
        width: 30px;
        height: 30px;
        min-width: 30px;
        margin-left: auto;
        background-color: #f8f8f8;
        border-radius: 3px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        color: var(--primary)
    }
}
