.cate-tree ul {
    display: none;
    margin-left: 1rem;
    padding-left: 0;
    list-style: none;
}
.cate-tree{
    list-style: none;
    padding-left: 0;
}
.cate-tree li.open > ul {
    display: block;
}

.cate-tree li a {
    text-decoration: none;
    display: block;
    padding: 7px 0.5rem;
}

.cate-tree li.has-children {
    position: relative;
}

.cate-tree li.has-children > .toggle-icon {
    cursor: pointer;
    position: absolute;
    right: 0.5rem;
    top: 8px;
    transition: transform 0.2s;
    font-size: 20px;
}
li.has-children.open > span.toggle-icon i {
    transform: rotate(180deg) !important;
    display: inline-block;
}
.cate-tree li.open > .toggle-icon {
}

/* Active state */
.cate-tree li.current-cat > a,
.cate-tree li.current-cat-parent > a {
    font-weight: bold;
}
.cate-tree li > a:before {
    content: '';
    width: 15px;
    height: 15px;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid #000;
    border-radius: 2px;
}
.cate-tree li a{
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px dashed #e0e0e0;
}
.custom-product-list .elementor-post__thumbnail__link {
    width: 25%!important;
    margin-bottom: 0!important;
}
.custom-product-list .elementor-post__thumbnail__link:after {
    display:none!important;
}
.custom-product-list .elementor-post__text {
    width: 75% !important;
    padding-top: 28px !important;
}
.custom-product-list .elementor-post__card {
    flex-direction: row!important;
}
.custom-product-list .elementor-post__thumbnail {
    /* top: 50% !important; */
    /* transform: translateY(-50%); */
    height: 100%;
}
.custom-product-list .elementor-posts-container .elementor-post__thumbnail img {
    object-fit: contain;
    width: 100% !important;
    height: 100% !important;
}
.page-numbers
{
    width: 35px;
    height: 35px;
    display: inline-block;
    line-height: 35px;
    border: 1px solid #a0a0a0;
}
a.page-numbers:hover, span.page-numbers {
    background: #000 !important;
    color: #fff !important;
}

/* Container */
.custom-product-gallery {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

/* Main slider */
.custom-product-gallery .gallery-main {
    position: relative;
    width: 100%;
    height: auto;
}
.custom-product-gallery .gallery-main .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    max-height: 650px;
}

/* Main navigation buttons (use default Swiper look) */
.custom-product-gallery .swiper-button-prev,
.custom-product-gallery .swiper-button-next {
    color: #222;
    width: 35px;
    height: 35px;
    background: #ffffffc7;
    border-radius: 100%;
}
.custom-product-gallery .swiper-button-next:after, .custom-product-gallery .swiper-button-prev:after{
    font-size: 14px;
}
.elementor-widget-theme-post-content table {
    width: 100% !important;
}
/* Thumbs wrapper */
.custom-product-gallery .gallery-thumbs-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Thumbs slider */
.custom-product-gallery .gallery-thumbs {
    flex: 1 1 auto;
}
.custom-product-gallery .gallery-thumbs .swiper-slide {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ededed;
}
.custom-product-gallery .gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    /* box-shadow: 0 0 2px 0px rgb(0 0 0 / 0%); */
    border-color: #3F51B5;
}
.custom-product-gallery .gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbs nav buttons container */
.custom-product-gallery .thumbs-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.custom-product-gallery .thumbs-nav .swiper-button-prev,
.custom-product-gallery .thumbs-nav .swiper-button-next {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    color: #333;
}
#cate-filter{
    cursor: pointer;
}
.cate-tree li.current-cat > a:before {
    content: "\e64c";
    font-family: 'themify';
    font-size: 11px;
    line-height: 15px;
    text-align: center;
}
@media (max-width: 768px){
    .elementor-widget-theme-post-content table {
        width: max-content !important;
    }
    .custom-product-list .elementor-post__thumbnail__link {
        width: 100%!important;
        margin-bottom: 0!important;
    }

    .custom-product-list .elementor-post__text {
        width: 100% !important;
        padding-top: 28px !important;
    }
    .custom-product-list .elementor-post__card {
        flex-direction: column !important;
    }
    .custom-product-list .elementor-posts-container .elementor-post__thumbnail img {
        /*object-fit: cover;*/
        background: #ededed;
    }
    .custom-product-list .elementor-post__thumbnail {
        padding-bottom: calc(0.7 * 100%) !important;
    }
    div#cate-list {
        display: none;
    }
    .custom-product-gallery .gallery-main .swiper-slide img {
        max-height: 350px;
    }
}
/* Responsive tweaks */
@media (max-width: 600px) {
    .custom-product-gallery .gallery-thumbs .swiper-slide {
        width: 56px !important;
        height: 56px;
    }
    .custom-product-gallery {
        max-width: 100%;
        padding: 0 12px;
    }
}
