#page-navigation nav ul li a.has-submenu{
    padding-left:5px;
    padding-right:5px;
}
.page-header {
 --header-nav-item-hoz-padding: 18px!important;
}
#page-header-inner{
    border-bottom:1px solid #ccc;
}
#page-breadcrumb{
    margin-top:30px;
}

/* 强制限制 WooCommerce 产品主图的最大高度 */
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
    max-height: 600px !important; /* 这里的高度可以根据你的版面自行调整，建议与宽度 600px 保持一致 */
    width: 100% !important;
    object-fit: contain !important; /* 核心：保证图片完整显示且不变形，不足部分自动留白 */
    margin: 0 auto !important; /* 确保窄图片居中显示 */
}

/* 防止某些主题的包裹层依然被撑开 */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    display: flex;
    align-items: center;
}

/* 强制所有画廊缩略图在前台视觉上呈现完美的 1:1 正方形 */
.woocommerce-product-gallery .flex-control-thumbs li img,
.minimog-thumbs-swiper-wrap .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important; /* 强制画框为正方形 */
    object-fit: cover !important; /* 像壁纸一样填满画框，多余部分自动裁切，绝对不变形 */
}

#conta1 h3{
    font-size:18px!important;
    margin: 0 0 8px!important;
}
#conta1 p{
    margin-bottom:0.3em!important;
}

.entry-product-meta .meta-label{
    min-width: 0!important;
    margin:0!important;
}

.row-popular-search-keywords{
    display: none;
}

.wpcf7-form fieldset{
    display:none!important;
}

/* 强制给 WooCommerce 商品主图预留高度，消灭 CLS 偏移 */
.product-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1; /* 注意：如果你的商品图是正方形就用 1/1。如果是竖图，请改为 3/4 或 4/5 */
    display: block;
    overflow: hidden;
    position: relative;
}
.product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; 
}

.widget_shopping_cart_content p.return-to-shop{
    display:none!important;
}

/* 1. 强制欧洲超长单词自动折行，防止撑破 DOM */
html, body, p, span, a, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* 3. 全局 X 轴终极防御 */
html, body {
    overflow-x: clip !important; 
    width: 100%;
}
html, body, p, span, a, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}