/* 
 Theme Name:   Blocksy child new
 Theme URI:    https://rongsenac.com/
 Description:  Blocksy child new
 Author:       rongsenac
 Author URI:   https://rongsenac.com/
 Template:     blocksy
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 /* == Add your own styles below this line ==
--------------------------------------------*/


/* 侧边栏产品类别小工具的一级菜单样式 */
.widget_product_categories .product-categories li {
    background: #eeeeee; /* 背景颜色 */
    margin-bottom: 5px; /* 菜单项间距 */
    padding: 5px; /* 内边距 */
    position: relative; /* 相对定位 */
}

/* 侧边栏产品类别小工具的一级菜单链接样式 */
.widget_product_categories .product-categories li a {
    text-decoration: none; /* 去除下划线 */
    color: #333; /* 文字颜色 */
}

/* 侧边栏产品类别小工具的二级菜单样式 */
.widget_product_categories .product-categories li ul.children {
    display: none; /* 默认隐藏二级菜单 */
    background: #fff; /* 二级菜单背景颜色 */
    padding-left: 0px; /* 二级菜单内边距 */
    position: absolute; /* 绝对定位 */
    top: 0; /* 与一级菜单项顶部对齐 */
    left: 100%; /* 位于一级菜单项的右侧 */
    min-width: 150px; /* 设置最小宽度 */
    max-width: 300px; /* 设置最大宽度 */
    width: auto; /* 根据内容自动调整宽度 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    z-index: 100; /* 确保在其他元素之上 */
    opacity: 0; /* 默认透明度为0 */
    visibility: hidden; /* 默认不可见 */
    transition: opacity 0.3s, visibility 0.3s, left 0.3s; /* 平滑过渡效果，包括left属性 */
}

/* 当一级菜单项悬停时，显示二级菜单 */
.widget_product_categories .product-categories li:hover ul.children {
    display: block; /* 显示二级菜单 */
    opacity: 1; /* 透明度为1 */
    visibility: visible; /* 可见 */
    left: 100%; /* 确保在悬停时也位于一级菜单项的右侧 */
    white-space: nowrap;
}

/* 侧边栏产品类别小工具的二级菜单链接样式 */
.widget_product_categories .product-categories li ul.children li a {
    color: #555; /* 二级菜单链接颜色 */
    font-size: 0.8em; /* 字体大小 */
}

/* 当一级菜单项悬停时的样式 */
.widget_product_categories .product-categories li:hover {
    background: #FF9900; /* 悬停背景颜色 */
}

/* 当一级菜单项悬停时的文字颜色 */
.widget_product_categories .product-categories li:hover a {
    color: #FFFFFF; /* 悬停时的文字颜色为白色 */
}

/* 当二级菜单项悬停时的样式 */
.widget_product_categories .product-categories li ul.children li:hover {
    background: #FF9900; /* 悬停背景颜色 */
}

/* 当二级菜单项悬停时的文字颜色 */
.widget_product_categories .product-categories li ul.children li:hover a {
    color: #FFFFFF; /* 悬停文字颜色 */
}

/* 选中的一级菜单项的背景颜色 */
.widget_product_categories .product-categories li.active {
    background: #FF9900; /* 选中背景颜色 */
}

/* 选中的一级菜单项的文字颜色 */
.widget_product_categories .product-categories li.active a {
    color: #FFFFFF; /* 选中时的文字颜色为白色 */
}

/* 选中的二级菜单项的背景颜色 */
.widget_product_categories .product-categories li ul.children li.active {
    background: #FF9900; /* 选中背景颜色 */
}

/* 选中的二级菜单项的文字颜色 */
.widget_product_categories .product-categories li ul.children li.active a {
    color: #FFFFFF; /* 选中时的文字颜色为白色 */
}

@media (max-width: 768px) {
    .widget_product_categories .product-categories li ul.children {
        min-width: 100px;
        max-width: 200px;
    }
}


.single_add_to_cart_button {
    width: 200px; /* 设置按钮宽度 */
    height: 40px; /* 设置按钮高度 */
    line-height: 40px; /* 使文本垂直居中 */
    text-align: center; /* 使文本水平居中 */
    display: block; /* 使按钮作为块级元素，以便设置宽度和高度 */
    margin: 0 auto; /* 水平居中块级元素 */
}


.single_add_to_cart_button.button.alt {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* 其他你想要的样式 */
}


.woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制为2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}
.skip-link {
    display: none;
}

@media (max-width: 767px) {
  .mobile-menu .sub-menu {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
}


/* 隐藏整个品牌栏容器 */
.pt-brand-bar {
  display: none !important;
}

/* 备用方案：如果品牌栏残留，强制覆盖内联样式 */
div[style*="position: absolute"][class="pt-brand-bar"] {
  visibility: hidden !important;
  height: 100 !important;
  padding: 50 !important;
}