/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* 移动端more like this大小位置 */
@media (max-width: 767px) {
    .elementor-element-db016c4 .wd-el-title.title.element-title {
        font-size: 16px !important;
        margin-top: 25px !important;
    }
}

/* 在颜色筛选器标题下方添加文字 */
#woocommerce_layered_nav-2 .widget-title:after {
    content: "Filter by Star Color (Golden goose)";
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #fff9e6;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

/* 设置账户链接区域的网格布局 */
.wd-my-account-links[class*="wd-grid"] {
    --wd-col-md: 2;
    --wd-col-sm: 2;
}


/* 修复主产品区域在中等屏幕下的布局问题 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 外层容器 - 改为垂直排列 */
    .elementor-element-5ed62da .e-con-inner {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* 图片区域 - 全宽度显示，移除所有限制 */
    .elementor-element-c06a463 {
        flex: 0 0 auto !important;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        order: 1 !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* 强制主图容器全屏宽度 */
    .elementor-element-c06a463 .e-con-inner {
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 主图画廊容器 */
    .elementor-element-c06a463 .wd-single-gallery {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .elementor-element-c06a463 .woocommerce-product-gallery {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
    }
    
    .elementor-element-c06a463 .wd-carousel-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    .elementor-element-c06a463 .wd-carousel-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .elementor-element-c06a463 .wd-carousel {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .elementor-element-c06a463 .wd-carousel-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 强制图片本身响应式 */
    .elementor-element-c06a463 .wd-carousel-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .elementor-element-c06a463 .woocommerce-product-gallery__image {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .elementor-element-c06a463 .woocommerce-product-gallery__image a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .elementor-element-c06a463 .woocommerce-product-gallery__image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* 购买区域 - 全宽度显示，在图片下面 */
    .elementor-element-4e927e2 {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: auto !important;
        order: 2 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 10 !important;
        margin-top: 20px !important;
    }
    
    /* 策略和政策区域 */
    .elementor-element-632da3a {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        order: 3 !important;
        margin-top: 30px !important;
    }
    
    /* 描述和评论区域 */
    .elementor-element-0371915 {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        order: 4 !important;
    }
    
    /* 相关产品区域 */
    .elementor-element-cadafa4 {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        order: 5 !important;
    }
}

/* 防止图片被压扁和按钮变形 */
@media (min-width: 769px) and (max-width: 1024px) {
    .variations_button {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        width: 100% !important;
    }
    
    .single_add_to_cart_button,
    .wd-buy-now-btn {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 160px !important;
        max-width: 100% !important;
    }
}

/* 额外保护：重置所有可能的宽度限制 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 重置Elementor容器的宽度限制 */
    .elementor-element-c06a463.e-con-boxed,
    .elementor-element-c06a463.e-con {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    /* 确保图片导航也响应式 */
    .elementor-element-c06a463 .wd-nav-arrows,
    .elementor-element-c06a463 .wd-nav-pagin-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    /* 如果还有问题，强制覆盖所有可能的固定宽度 */
    .elementor-element-c06a463 [style*="width"],
    .elementor-element-c06a463 [style*="max-width"],
    .elementor-element-c06a463 [style*="min-width"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

/* 如果仍然不响应，使用更激进的方法 */
@media (min-width: 769px) and (max-width: 1024px) {
    .elementor-element-c06a463 * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 强制移除所有内联样式中的宽度限制 */
    .elementor-element-c06a463 .wd-carousel[style] {
        width: 100% !important;
        max-width: 100% !important;
    }
}




/* 隐藏不可用的变体选项 */
.variations select option:disabled {
    display: none !important;
}

/* 可选：给可用选项添加样式 */
.variations select option:not(:disabled) {
    color: #000 !important;
}

.woocommerce-variation{
	display:none!important;
}
@media (min-width: 1025px){
	.trp-shortcode-switcher{
		background-color:#fff;
	}
	.trp-language-item:hover .trp-language-item-name,.trp-language-item-name{
		color:#6347d6;
	}
	.trp-shortcode-arrow{
		fill:#6347d6!important;
	}
	
/* 隐藏Blog分类链接 */
.wd-post-cat.wd-style-with-bg a[href*="category/blog"] {
    display: none !important;
}

/* 或者更精确的选择器 */
.wd-single-post-header .wd-post-cat a[href="https://06shop.com/category/blog/"] {
    display: none !important;
}

/* 或者隐藏整个分类容器 */
.wd-single-post-header .wd-post-cat {
    display: none !important;
}

/* =============================================== */	
