/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.vertical-product-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.vertical-product-menu > .menu-item > .menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: #333;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vertical-product-menu .menu-item-header a {
    color: #192a3d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;

}

.vertical-product-menu > .menu-item.current > .menu-item-header {
    background-color: #d60000;
    color: #fff;
}

.vertical-product-menu .menu-item.current > .menu-item-header > .menu-toggle {
    color: #fff;
}

.vertical-product-menu .menu-item.current > .menu-item-header > a {
    color: #fff;
}

.vertical-product-menu > .menu-item > .menu-item-header:hover {
    background-color: #d60000;
    color: #fff;
    transform: translateX(5px);
}

.vertical-product-menu > .menu-item > .menu-item-header:hover a {
    color: #fff;
}

.vertical-product-menu > .menu-item > .menu-item-header:hover .menu-toggle {
    color: #fff;
}

.vertical-product-menu .submenu .menu-item-header {
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
    cursor: pointer;
}

.vertical-product-menu .submenu .menu-item.current .menu-item-header {
    background-color: #ffebeb;
}

.vertical-product-menu .submenu .menu-item.current a {
    color: #d60000!important;
    font-weight: 700;
}

.vertical-product-menu .submenu .menu-item  a {
    color: #3a4f66;
}


.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #d60000;
    transition: transform 0.3s ease, color 0.3s ease;
    border-radius: 6px;
}

.menu-toggle:hover {
    background-color: rgba(214, 0, 0, 0.1);
    color: #fff;
}

.menu-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.menu-toggle.open .menu-icon {
    transform: rotate(90deg);
}

.menu-toggle.no-submenu {
    cursor: default;
}

.submenu {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #ddd;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, margin-top 0.3s ease;
}

.submenu.open {
    max-height: 500px;
    margin-top: 10px;
}

.submenu .menu-item-header:hover {
    background-color: #f5f5f5;
}

.vertical-product-menu .submenu .menu-item-header {
    display: block;
    position: relative;
}

.vertical-product-menu .submenu .menu-item-header a {
    display: block;
    width: 100%;
    padding: 12px 20px;
}



/* 推荐产品 */
.related-products-horizontal {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}


.related-products-horizontal .swiper-slide {
    text-align: center;
    box-sizing: border-box;
    width: calc(33.33% - 50px);  /* 每行显示3个产品，并设置50px的间距 */
    margin-right: 30px;  /* 添加右边距 */
}

/* 确保最后一个元素右侧不留多余间距 */
.related-products-horizontal .swiper-slide:last-child {
    margin-right: 0;
}

.related-products-horizontal .thumb img {
    width: 100%;
    height: auto;
    display: block;
    border: solid 1px #dddddd;
}

.related-products-horizontal h4 {
    font-size: 16px;
    margin-top: 10px;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 30px!important; 
    font-weight: bold!important;
}


.swiper-button-next, .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0);
    padding: 15px!important;
    border-radius: 50%;
    color: #7a7a7a!important;

}

.swiper-button-next {
    right: 0px;
}

.swiper-button-next:hover,.swiper-button-prev:hover {
    color: #C70404!important;
}

.swiper-button-prev {
    left: 0px;
}

@media (max-width:768px) {
.swiper-button-next, .swiper-button-prev {
    display: none!important;
}    
}