/*
------------------------------------------------
Woodmart Category Carousel
------------------------------------------------
*/

.wm-category-carousel {
    position: relative;
    padding:10px 0;
}

.wm-category-carousel .swiper-wrapper {
    align-items: stretch;
}

.wm-category-carousel .swiper-slide {
    height: auto;
}

.wm-category-card {

    display: flex;
    flex-direction: column;

    height: 100%;

    background: var(--wd-bg-color, #fff);

    border: 1px solid var(--wd-border-color, #ececec);

    border-radius: 12px;

    overflow: hidden;

    transition: all .3s ease;

}

.wm-category-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 10px 25px rgba(0,0,0,.08);

}

.wm-category-image {

    display: block;

    overflow: hidden;

    background: #fff;

}

.wm-category-image img {

    width: 100%;

    height: auto;

    display: block;

    transition: transform .45s ease;

}

.wm-category-card:hover img {

    transform: scale(1.07);

}

/************************************************
CONTENT
************************************************/

.wm-category-content {

    padding: 22px;

    display: flex;

    flex-direction: column;

    flex: 1;

}

.wm-category-title {

    display: inline-block;

    margin-bottom: 18px;

    font-size: 20px;

    font-weight: 600;

    line-height: 1.3;

    color: #000;

    text-decoration: none;

    transition: .25s;

}

.wm-category-title:hover {

    color: var(--wd-primary-color, #e10c18);

}

/************************************************
SUBCATEGORIES
************************************************/

.wm-subcategories {

    list-style: none;

    padding: 0;

    margin: 0;

}

.wm-subcategories li {

    margin-bottom: 10px;

}

.wm-subcategories li:last-child {

    margin-bottom: 0;

}

.wm-subcategories a {

    display: inline-block;

    color: #777;

    text-decoration: none;

    transition: .25s;

    line-height: 1.5;

}

.wm-subcategories a:hover {

    color: var(--wd-primary-color, #e10c18);

}

.wm-hidden {

    display: none;

}

/************************************************
SHOW MORE
************************************************/

.wm-show-more {

    margin-top: 18px;

    padding: 0;

    border: 0;

    background: none;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    color: var(--wd-primary-color, #e10c18);

    transition: .2s;

}

.wm-show-more:hover {

    opacity: .75;

}

/************************************************
NAVIGATION
************************************************/

.wm-category-carousel .swiper-button-prev,
.wm-category-carousel .swiper-button-next{

    width:44px;
    height:44px;

    top:42%;

    margin-top:0px;

    border-radius:50%;

    border:0px solid rgba(0,0,0,.08);

    transition:.25s;

    box-shadow:none;

}

.swiper-button-prev,
.swiper-button-next{

    color: #4b4b4b;
}
.swiper-button-prev:hover,
.swiper-button-next:hover{

    color: #a0a0a0;
}


.wm-category-carousel .swiper-button-prev:hover,
.wm-category-carousel .swiper-button-next:hover{

    border-color:var(--wd-primary-color);

}

.swiper-button-prev::after,
.swiper-button-next::after{

    font-size:18px;

    font-weight:700;

}

.wm-category-carousel .swiper-button-prev:hover::after,
.wm-category-carousel .swiper-button-next:hover::after {

    color: #fff;

}

/************************************************
PAGINATION
************************************************/

.wm-category-carousel .swiper-pagination {

    position: relative;

    margin-top: 25px;

}

.wm-category-carousel .swiper-pagination-bullet {

    width: 10px;

    height: 10px;

    opacity: 1;

    background: #cfcfcf;

}

.wm-category-carousel .swiper-pagination-bullet-active {

    background: var(--wd-primary-color,#e10c18);

}

/************************************************
RESPONSIVE
************************************************/

@media (max-width:1024px){

    .wm-category-content{

        padding:18px;

    }

    .wm-category-title{

        font-size:18px;

    }

}

@media (max-width:768px){

    .wm-category-carousel{

        padding:0 15px;

    }

    .wm-category-content{

        padding:16px;

    }

    .wm-category-title{

        font-size:17px;

    }

    .wm-category-carousel .swiper-button-prev,
    .wm-category-carousel .swiper-button-next{

        display:none;

    }

}

@media (max-width:480px){

    .wm-category-title{

        font-size:16px;

    }

    .wm-subcategories a{

        font-size:14px;

    }

}