/* 结账页面，不显示产品缩略信息 */
.woocommerce-checkout .wc-block-components-product-metadata {
    display: none !important;
}

.post .wp-post-image {
    border-radius: 6px;
}

/*  全局 - 禁止手机端左右滑动，超过边界 @02 */
html, body {
    overflow-x: hidden; 
  }
  body {
    position: relative;
  }

/* Woo 产品页面图片全宽屏-产品 - 产品页面，图片自动居中并且最大宽度 */
.wp-block-image img {
    width: 100%;
}

/* 字体 @02 产品-产品页面H1 字体单独设置 手机端小20% */
body.single-product h1 {
    font-size: larger;
    color: #222222;
}
@media (max-width: 767px) {
    body.single-product h1 {
        font-size: 24px;
    }
	.summary h1 {
	padding-right: 1px!important;
	}
}
@media (max-width: 768px) { 
    h1.entry-title {
        font-size: 1.6rem;
    }
}

/* 分类页面的封面图-全宽显示 - 分类图片，背景颜色半透明调整 */
header.woocommerce-products-header, .shoptimizer-category-banner {
    background-color: #f5f5f7!important;
}
.tax-product_cat header.woocommerce-products-header {
	flex-wrap: wrap;
}
.content-area header.woocommerce-products-header img {
	order: 1;
	max-width: 100%!important;
}
.term-description {
	order: 2;
}
@media (min-width: 993px) {
    .image-exists .term-description {
        width: 100%;
    }
}

/*4 messages WooC - 4种消息提醒的颜色 @0901V2 */
/* 加入购物车：樱花粉(#FFB7C5) + 主色深调(#5A2A35)
成功消息：薄荷绿(#A0D6B4) + 松针绿(#1A3B23)
错误消息：珊瑚粉(#FF9AA2) + 酒红(#7A1C27)
提示消息：婴儿蓝(#89CFF0) + 海军蓝(#1E3A5F)*/
.woocommerce-error {
    background-color: #e2401c;
}

/* Normally Blue */
.woocommerce-info {
    background-color: #FFB7C5;
}

/* Normally Green */
.woocommerce-message {
    background-color: #FFB7C5;
    margin: 1rem 0;
}

/* Normally Green */
body.single-product .woocommerce-message .message-inner {
    background-color: #CF665F;
}


/* 11. 货币切换 - css 样式自定义，仅在产品页面应用样式 - */
.single-product .customer-price-container {
    display: block;
    background: linear-gradient(145deg, #ffffff, #f9f2f4);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(156, 55, 73, 0.08);
    border: 1px solid rgba(156, 55, 73, 0.1);
    position: relative;
    overflow: visible;
    margin-bottom: 10px;
}

.single-product .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.single-product .current-price-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-product .now-text {
    font-size: 1rem;
    color: #666;
}

.single-product .current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #9c3749;
}

.single-product .savings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.single-product .original-price-container {
    flex: 1;
}

.single-product .original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.single-product .discount-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-product .discount-badge {
    background: linear-gradient(135deg, #ff6b8b, #9c3749);
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
}

.single-product .savings-info {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.single-product .savings-text {
    color: #666;
}

.single-product .savings-amount {
    color: #9c3749;
    font-weight: 700;
}

/* 隐藏产品页默认的折扣标签 */
.single-product span.sale-item.product-label.type-bubble {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .single-product .current-price {
        font-size: 1.5rem;
    }
    
    .single-product .original-price {
        font-size: 1rem;
    }
    
    .single-product .discount-badge {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .single-product .savings-info {
        font-size: 0.85rem;
    }
}


/* 购物车 - 隐藏商品描述模块@0721 */
.wc-block-components-product-metadata__description {
    display: none !important;
}

/* 全局屏蔽所有图片下方自动生成的描述（如标题、说明文字）@0630 */
.wp-caption-text,
figcaption,
.gallery-caption,
.attachment-caption {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}
.wp-block-image figcaption {
    display: none;
}
/* 隐藏未分类的博客 */
li.cat-item.cat-item-1.current-cat {
    display: none;
}




/* 产品页面 - 信任清单美化css 严格限定在 #text-5 模块内 */
div.product-widget > div#text-5.widget_text .textwidget {
    background: #FFF9FA;
    border-radius: 8px;
    border: 1px solid rgba(156, 55, 72, 0.15);
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0 !important; /* 覆盖主题默认间距 */
}

/* 标题 - 仅针对此模块 */
div.product-widget > div#text-5.widget_text .widget-title {
    color: #9C3748 !important;
    font-size: 15px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 盾牌图标 - 仅在此模块生效 */
div.product-widget > div#text-5.widget_text .widget-title:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C3748"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11V11.99z"/></svg>');
    background-size: contain;
}

/* 手风琴 - 精准限定 */
div.product-widget > div#text-5.widget_text details {
    margin-bottom: 8px !important;
    border: 1px solid rgba(156, 55, 72, 0.1) !important;
    border-radius: 6px !important;
}

div.product-widget > div#text-5.widget_text summary {
    padding: 4px 10px !important;
    background: #f5f5f7;
    font-weight: 500 !important;
    cursor: pointer !important;
}

/* 隐藏默认箭头 */
div.product-widget > div#text-5.widget_text summary::-webkit-details-marker {
    display: none !important;
}

/* 自定义箭头 */
div.product-widget > div#text-5.widget_text summary:after {
    content: "›" !important;
    margin-left: auto !important;
    font-size: 16px !important;
    transition: transform 0.2s !important;
}

div.product-widget > div#text-5.widget_text details[open] summary:after {
    transform: rotate(90deg) !important;
}

/* 内容区域 */
div.product-widget > div#text-5.widget_text .cg-accordion-item {
    padding: 8px 10px 10px !important;
    font-size: 13px !important;
    color: #555 !important;
}

/* 链接样式 */
div.product-widget > div#text-5.widget_text a {
    color: #9C3748 !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* 配送信息段落 */
div.product-widget > div#text-5.widget_text > .textwidget > p:not(.cg-accordion-item p) {
    padding: 0 10px !important;
    border-left: 2px solid #9C3748 !important;
    font-size: 13px !important;
}

/* 支付徽章 */
div.product-widget > div#text-5.widget_text fieldset {
    border: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
}

div.product-widget > div#text-5.widget_text legend {
    font-size: 12px !important;
    color: #666 !important;
    text-align: center !important;
    padding: 0 !important;
}



/* 全局 - emoji 图片限制大小 @06*/
img[src^="https://s.w.org/images/core/emoji/"] {
	height: 1em;
	max-height: 1em;
}


/* 分类 - 调整分类底部的框架模式@02 */
.below-woocommerce-category {
    border: none !important;
    padding: 0 !important;
}
