/* header */
.sec__banner {
    display: grid;
    background-color: var(--cw);
}

.sec__banner .img .overlay {
    background-color: rgba(255, 255, 255, 0.25);
}

.sec__banner .img img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.sec__banner .container {
    display: flex;
    flex-direction: column;
}

.sec__banner .shop-page-title {
    font-size: var(--size-5);
    text-align: center;
    text-transform: uppercase;
    order: 1;
}

.sec__banner .breadcrumbs {
    text-transform: uppercase;
    padding: var(--size-2) 0 var(--size-1);
    display: flex;
    align-items: center;
    gap: var(--size-1);
}

.sec__banner .breadcrumbs,
.sec__banner .breadcrumbs a {
    font-size: var(--size-1);
    font-weight: 700;
    color: var(--c3);
}

.sec__banner .breadcrumbs a {
    font-weight: 400;
    color: var(--c3);
}

.sec__banner .breadcrumbs .divider {
    margin: 0;
    opacity: 1;
}

.sec__banner .cat_header {
    margin-top: var(--size-0);
}

.sec__banner .cat_header {
    order: 2;
}

.custom-category-header {
    display: none;
}

#main {
    color: var(--c3) !important;
}

.sec__products .sanko-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--size-f);
    padding: var(--size-f) 0;
    border-bottom: 2px solid var(--c6);
    margin-bottom: var(--size-3);
}

.sec__products .sanko-filters .col {
    display: flex;
    gap: var(--size-1);
}

.sec__products .sanko-filters .col.col--R {
    justify-content: flex-end;
}

.sec__products .sanko-filters .btn {
    min-width: fit-content;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: var(--c3);
    border-color: var(--c3);
    padding: 8px 32px;
    margin: 0;
    border-radius: 8px;
    box-shadow: none;
}

.sec__products .sanko-filters .btn:hover {
    color: white;
}

.sec__products .sanko-filters .btn.btn-all.disactive,
.sec__products .sanko-filters .btn.btn-remove {
    background-color: #A9A9A9;
    border-color: #A9A9A9;
    cursor: not-allowed;
}

.sec__products .sanko-filters .btn.btn-remove.active {
    background-color: var(--c3);
    border-color: var(--c3);
    color: white;
    cursor: pointer;
}

.sec__products .sanko-filters .sanko-filter {
    position: relative;
}

.sec__products .sanko-filters .sanko-filter button {
    margin: 0;
    background-color: white;
    padding: var(--size-0) var(--size-1);
    border: 1px solid var(--c4);
    font-size: var(--size-1);
    line-height: 1.2;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
}

.sec__products .sanko-filters .filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--cw);
    box-shadow: var(--box-shadow);
    padding: var(--size-1);
    display: none;
    z-index: 99;
}

.sec__products .sanko-filters .filter-dropdown label {
    font-size: var(--size-1);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--size-0);
    cursor: pointer;
}

.sec__products .sanko-filters .filter-dropdown label:last-child {
    margin-bottom: 0;
}

.sec__products .sanko-filters .filter-dropdown label input {
    margin: 0;
}

.sec__products .sanko-filters .sanko-filter.active .filter-dropdown {
    display: block;
}

.sec__products .sanko-filters .filter-toggle {
    cursor: pointer;
}

.sec__products .sanko-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--size-f);
}

.sec__products .sanko-products-grid .product .product--thumbnail img {
    width: 100%;
    height: 100%;
}


.sec__products .sanko-pagination {
    display: flex;
    justify-content: center;
    gap: var(--size-0);
    margin-top: var(--size-1);
}

.sec__products .sanko-pagination .page-btn {
    width: var(--size-4);
    height: var(--size-4);
    min-height: fit-content;
    font-size: var(--size-f-1);
    line-height: 1.2;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--c3);
    border-radius: 8px;
    margin: 0;
}

.sec__products .sanko-pagination .page-btn.active,
.sec__products .sanko-pagination .page-btn:hover {
    background-color: var(--c4);
    color: var(--cw);
    border-color: var(--c4)
}

.sec__content {
    margin-top: var(--size-2);
    padding: var(--size-3) 0;
    border-top: 2px solid var(--c6);
}

.sec__content .row {
    display: flex;
    gap: var(--size-3);
    align-items: flex-start;
}

.sec__content .col--L {
    flex: 1;
    min-width: 0;
}

.sec__content .col--R {
    width: 320px;
    position: sticky;
    top: 100px;
}

.sec__content .product-categories ul {
    list-style: none;
    background-color: var(--cw);
    padding: 0;
    margin: 0;
}

.sec__content .product-categories {
    padding: var(--size-1);
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-default);
    box-shadow: 0px 4px 4px 0px #0000004D;
}

.sec__content .product-categories ul li {
    position: relative;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    align-items: center;
}

.sec__content .product-categories ul li:last-child {
    border: none;
}

.sec__content .product-categories ul li a {
    font-size: var(--size-1);
    color: var(--c3);
    width: 100%;
    min-height: var(--size-3);
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
}

.sec__content ul.cat-tree>li>a {
    font-weight: 700;
    text-transform: uppercase;
}

.sec__content ul li a:hover {
    color: var(--c4);
}

.sec__content ul li.has-child>a {
    flex-basis: calc(100% - var(--size-3) - var(--size-0));
}

.sec__content .cat-toggle {
    background: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    width: var(--size-3);
    height: var(--size-2);
    border: 1px solid (--c1);
    min-height: fit-content;
    font-weight: 600;
    font-size: var(--size-1);
    line-height: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.sec__content .cat-toggle:hover {
    border-color: var(--c2);
}

.sec__content .product-categories ul.children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: var(--size-1);
}

.sec__content .has-child.active .children {
    max-height: 500px;
    width: 100%;
}

.sec__content .content-area {
    font-size: var(--size-1);
}

.sec__content .content-area h2,
.sec__content .content-area p {
    margin-bottom: var(--size-0);
}

.archive-description-wrap {
    position: relative;
}

.archive-description {
    max-height: 320px;
    overflow: hidden;
    transition: max-height .4s ease;
    position: relative;
}
.archive-description ul{
    list-style: disc;
  margin-left: 24px;
}

/* Fade dưới */
.archive-description::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;

    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1));

    pointer-events: none;
}

/* Khi mở */
.archive-description-wrap.active .archive-description {
    max-height: 100%;
}

.archive-description-wrap.active .archive-description::after {
    display: none;
}

/* Button */
.archive-description-wrap .btn.archive-toggle {
    margin: var(--size-2) auto 0;
    text-transform: uppercase;
}

/* Toggle text */
.archive-description-wrap .read-less {
    display: none;
}

.archive-description-wrap.active .read-more {
    display: none;
}

.archive-description-wrap.active .read-less {
    display: inline;
}

@media (max-width: 1280px) {
    .sec__products .sanko-products-grid .product-item {
        flex-basis: calc(100% / 4 - var(--size-0));
        max-width: calc(100% / 4 - var(--size-0));
    }
}

@media (max-width: 768px) {
    .sec__banner .shop-page-title {
        font-size: var(--size-4);
        font-weight: 700;
    }

    .sec__products .sanko-filters {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sec__products .sanko-filters .btn,
    .sec__products .sanko-filters .sanko-filter button {
        font-size: var(--size-f-2);
        padding: 8px 16px;
        height: 100%;
    }

    .sec__products .sanko-filters .col,
    .sec__products .sanko-filters .col.col--R {
        justify-content: center;
    }

    .sec__products .sanko-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sec__products .sanko-products-grid .product-item {
        flex-basis: calc(100% / 3 - var(--size-0));
        max-width: calc(100% / 3 - var(--size-0));
    }

    .sec__content .row {
        flex-direction: column-reverse;
    }
    .sec__content .col--R{position:unset;}

    .sec__content .row .col {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .sec__products .sanko-products-grid .product-item {
        flex-basis: calc(100% / 2 - var(--size-0));
        max-width: calc(100% / 2 - var(--size-0));
    }
}