/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


/* 以下为商品详情页主图css代码 */
/* 以下为商品详情页主图css代码 */
/* 以下为商品详情页主图css代码-开始 */


/* 商品主图区域容器 */
.product-gallery {
    position: relative;
    margin-bottom: 20px;
}

/* 主图滑块容器 */
.woocommerce-product-gallery__wrapper {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 主图样式 */
.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.woocommerce-product-gallery__image a:hover img {
    transform: scale(1.02);
}

/* 折扣标签样式 */
.badge-container .badge-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff5252;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-inner.secondary.on-sale {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* 导航箭头按钮 */
.flickity-button {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.flickity-button:hover {
    background: #2196F3;
}

.flickity-button-icon {
    fill: #333;
}

.flickity-button:hover .flickity-button-icon {
    fill: white;
}

.flickity-prev-next-button.previous {
    left: 15px;
}

.flickity-prev-next-button.next {
    right: 15px;
}

/* 缩略图区域 */
.product-thumbnails {
    margin-top: 15px;
}

/* 单个缩略图 */
.product-thumbnails .col {
    padding: 0 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-thumbnails .col:hover,
.product-thumbnails .col.is-nav-selected {
    opacity: 1;
}

.product-thumbnails img {
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-thumbnails .col:hover img,
.product-thumbnails .col.is-nav-selected img {
    border-color: #2196F3;
}

/* 放大按钮 */
.zoom-button {
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s ease;
}

.zoom-button:hover {
    background: #2196F3;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .badge-container .badge-circle {
        width: 50px;
        height: 50px;
    }
    
    .flickity-button {
        width: 35px;
        height: 35px;
    }
    
    .zoom-button {
        width: 35px;
        height: 35px;
    }
}


/* 以上为商品详情页主图css代码-结束 */
/* 以上为商品详情页主图css代码-结束 */
/* 以上为商品详情页主图css代码-结束 */


/* 以下为商品详情页标题css代码-开始 */
/* 以下为商品详情页标题css代码-开始 */
/* 以下为商品详情页标题css代码-开始 */

/* 面包屑导航样式 */
.woocommerce-breadcrumb.breadcrumbs {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.woocommerce-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #2196F3;
    text-decoration: underline;
}

.woocommerce-breadcrumb .divider {
    margin: 0 5px;
    color: #aaa;
}

/* 商品标题样式 */
.product-title.product_title.entry-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* 标题分隔线样式 */
.is-divider.small {
    height: 3px;
    background-color: #2196F3;
    margin: 0 0 25px 0;
    width: 80px;
    border: none;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-title.product_title.entry-title {
        font-size: 24px;
    }
    
    .woocommerce-breadcrumb.breadcrumbs {
        font-size: 13px;
    }
}

/* 以上为商品详情页标题css代码-结束 */
/* 以上为商品详情页标题css代码-结束 */
/* 以上为商品详情页标题css代码-结束 */



/* 以下为商品详情页的变体css代码-开始 */
/* 以下为商品详情页的变体css代码-开始 */
/* 以下为商品详情页的变体css代码-开始 */

/* 变体选择器整体样式 */
table.variations {
    margin: 1em 0;
    width: 100%;
}

/* 标签样式 */
.variations .label {
    padding: 0 10px 10px 0;
    text-align: left;
    vertical-align: top;
    width: 30%;
}

.variations .label label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.woo-selected-variation-item-name {
    color: #666;
    margin-left: 5px;
    font-size: 14px;
}

/* 变体选项按钮容器 */
.variable-items-wrapper.button-variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 5px 0;
}

/* 单个变体选项按钮 */
.variable-item.button-variable-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
    margin: 0;
}

/* 变体选项按钮文字 */
.variable-item-span.variable-item-span-button {
    font-size: 14px;
    color: #555;
}

/* 选中状态的变体选项 - 确保文字可见 */
.variable-item.button-variable-item.selected {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1); /* 半透明背景 */
    color: #2196F3;
}

.variable-item.button-variable-item.selected .variable-item-span {
    color: #2196F3 !important; /* 强制文字颜色 */
    font-weight: 600;
}

/* 悬停效果 */
.variable-item.button-variable-item:hover {
    border-color: #2196F3;
    background-color: #e6f2ff;
}

.variable-item.button-variable-item:hover .variable-item-span {
    color: #2196F3;
}

/* 重置链接样式 */
.reset_variations {
    display: block;
    margin-top: 10px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.reset_variations:hover {
    color: #2196F3;
    text-decoration: underline;
}


/* 以上为商品详情页的变体css代码-结束 */
/* 以上为商品详情页的变体css代码-结束 */
/* 以上为商品详情页的变体css代码-结束 */



/* 以下为商品详情页的短简介css代码-开始 */

/* 商品短简介容器 */
.product-short-description {
    margin: 1.5em 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #2196F3;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 短简介段落文本 */
.product-short-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-short-description {
        padding: 12px;
        font-size: 15px;
    }
}

/* 以上为商品详情页的短简介css代码-结束 */





/* 美化产品meta和分享图标-开始*/
/* 美化产品meta和分享图标-开始*/
/* 美化产品meta和分享图标-开始*/


/* 产品 meta 信息容器 */
.product_meta {
    padding: 5px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* 分类标签样式 */
.product_meta .posted_in {
    display: block;
    margin-bottom: 8px;
}

.product_meta .posted_in a {
    color: #2196F3;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.product_meta .posted_in a:hover {
    color: #0d8aee;
    text-decoration: underline;
}

/* 分享图标容器 */
.social-icons.share-icons {
    margin: 15px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 分享图标通用样式 */
.share-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background: white;
    color: #555;
    position: relative;
}

/* 图标悬停效果 */
.share-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 各平台图标颜色 */
.share-icons a.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-icons a.facebook:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.share-icons a.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-icons a.email:hover {
    background: #555;
    color: white;
    border-color: #555;
}

.share-icons a.pinterest:hover {
    background: #E60023;
    color: white;
    border-color: #E60023;
}

.share-icons a.linkedin:hover {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

/* 图标大小 */
.share-icons i {
    font-size: 16px;
}

/* 工具提示样式 */
.tooltip:hover::after {
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    bottom: 100%;
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-icons.share-icons {
        justify-content: center;
    }
    
    .share-icons a {
        width: 36px;
        height: 36px;
    }
    
    .share-icons i {
        font-size: 14px;
    }
}

/* 移除 product-main 的下边距和内边距 */
.product-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.product-info.summary.entry-summary {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 减少 product-main 的上方内边距 */
.product-main {
    padding-top: 20px !important; /* 调整为更小的值，如 10px */
}



/* 美化产品meta和分享图标-结束*/
/* 美化产品meta和分享图标-结束*/
/* 美化产品meta和分享图标-结束*/


/* 商品详情中的文字与图片-开始*/
/* 商品详情中的文字与图片-开始*/
/* 商品详情中的文字与图片-开始*/

/* 最优方案 - 弹性宽度控制 */
.woocommerce-Tabs-panel img {
    max-width: 80%;  /* 最大不超过容器80% */
    width: auto;     /* 保持原始比例 */
    height: auto;    /* 高度自适应 */
    margin: 0 auto;  /* 水平居中 */
    display: block;
}

/* 带背景缓冲的方案（推荐） */
.product-image-container {
    padding: 15px;
    background: #f9f9f9;
    text-align: center;
}
.product-image-container img {
    max-width: min(100%, 800px); /* 双重限制 */
    width: auto;
    height: auto;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 商品详情中的文字与图片-结束*/
/* 商品详情中的文字与图片-结束*/
/* 商品详情中的文字与图片-结束*/

/* 商品主图上的优惠图标-开始*/
/* 商品主图上的优惠图标-开始*/
/* 商品主图上的优惠图标-开始*/

/* 优惠图标容器 */
.badge-container.is-larger {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 徽章基础样式 */
.callout.badge.badge-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* 徽章内圈样式 */
.badge-inner.secondary.on-sale {
    background: linear-gradient(135deg, #FF5252 0%, #FF4081 100%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 -3px 5px rgba(0,0,0,0.1),
        inset 0 3px 5px rgba(255,255,255,0.2);
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

/* 添加光泽效果 */
.badge-inner.secondary.on-sale::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

/* 折扣文字样式 */
.onsale {
    color: white;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    transform: rotate(-5deg);
}

/* 悬停动画效果 */
.badge-container:hover {
    transform: scale(1.1) rotate(5deg);
}

/* 脉冲动画 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 光泽动画 */
@keyframes shine {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .callout.badge.badge-circle {
        width: 60px;
        height: 60px;
    }
    .onsale {
        font-size: 14px;
    }
}

/* 商品主图上的优惠图标-结束*/
/* 商品主图上的优惠图标-结束*/
/* 商品主图上的优惠图标-结束*/

/* mini购物车-按钮-开始*/
/* mini购物车-按钮-开始*/
/* mini购物车-按钮-开始*/

/* 迷你购物车按钮样式 */
.woocommerce-mini-cart__buttons .button {
    border-radius: 25px !important; /* 圆角效果 */
    padding: 10px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* 查看购物车按钮 - 绿色 */
.woocommerce-mini-cart__buttons .button.wc-forward:first-child {
    background-color: #4CAF50 !important;
}

/* 结账按钮 - 蓝色 */
.woocommerce-mini-cart__buttons .button.checkout.wc-forward {
    background-color: #2196F3 !important;
}

/* 悬停效果 */
.woocommerce-mini-cart__buttons .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    opacity: 0.9 !important;
}


/* mini购物车-按钮-结束*/
/* mini购物车-按钮-结束*/
/* mini购物车-按钮-结束*/



/* mini购物车-商品-开始*/
/* mini购物车-商品-开始*/
/* mini购物车-商品-开始*/

/* 仅处理迷你购物车中过长的商品标题 */
.woocommerce-mini-cart-item.mini_cart_item a:not(.remove) {
    display: inline-block;
    max-width: 200px; /* 根据需要调整这个值 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* mini购物车-商品-结束*/
/* mini购物车-商品-结束*/
/* mini购物车-商品-结束*/


/* 添加到购物车按钮区域的样式--开始 */
/* 添加到购物车按钮区域的样式--开始 */
/* 添加到购物车按钮区域的样式--开始 */



/* 主容器样式 */
.variations_button.woocommerce-variation-add-to-cart-enabled {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* 数量输入框样式 - 通用 */
.ux-quantity.quantity {
	display: flex;
	align-items: center;
	border-radius: 25px;
	overflow: hidden;
	border: 1px solid #ddd;
	height: 45px; /* 统一高度 */
}

.ux-quantity__button {
	width: 45px;
	height: 45px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 16px;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ux-quantity__button:hover {
	background: #e0e0e0;
}

.input-text.qty.text {
	width: 50px;
	height: 45px;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	-moz-appearance: textfield;
	padding: 0;
	font-size: 16px;
}

.input-text.qty.text::-webkit-outer-spin-button,
.input-text.qty.text::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* 添加到购物车按钮 */
.single_add_to_cart_button.button.alt {
	flex: 1;
	min-width: 0;
	height: 45px;
	border-radius: 25px;
	background-color: #4caf50;
	color: white;
	border: none;
	transition: all 0.3s;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 14px;
	padding: 0 15px;
}

.single_add_to_cart_button.button.alt:hover {
	background-color: #3e8e41;
}

/* 立即购买按钮 */
.ux-buy-now-button.button.primary.ml-half {
	width: 100%;
	height: 45px;
	border-radius: 25px;
	background-color: #2196f3;
	color: white;
	border: none;
	transition: all 0.3s;
	text-transform: uppercase;
	font-weight: bold;
	margin-top: 10px;
	font-size: 14px;
	padding: 0 15px;
}

.ux-buy-now-button.button.primary.ml-half:hover {
	background-color: #0b7dda;
}

/* 支付方式容器 */
.wc-stripe-product-checkout-container.bottom {
	width: 100%;
	margin-top: 15px;
}

/* 添加到购物车按钮区域的样式--结束 */
/* 添加到购物车按钮区域的样式--结束 */
/* 添加到购物车按钮区域的样式--结束 */




/* 变体价格的样式--开始 */
/* 变体价格的样式--开始 */
/* 变体价格的样式--开始 */

/* 价格容器整体样式 */
.woocommerce-variation-price {
    margin: 5px 0;
    line-height: 1.4;
}

/* 原价（划线价）样式 */
.price del {
    display: block;
    color: #999;
    font-size: 1.2em;
    position: relative;
    margin-bottom: 5px;
}

.price del .woocommerce-Price-amount {
    position: relative;
    padding-right: 5px;
}

/* （使用现代渐变线条） */
.price del .woocommerce-Price-amount:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff3e3e 0%, transparent 100%);
    transform: translateY(-50%) rotate(-3deg);
}

/* 现价（促销价）样式 */
.price ins {
    display: block;
    text-decoration: none;
    font-size: 1.8em;
    color: #d32f2f;
    font-weight: 700;
}

.price ins .woocommerce-Price-amount {
    background: linear-gradient(135deg, #ffeb3b 0%, #ff5722 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 3px 8px;
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

/* 货币符号特殊样式 */
.price .woocommerce-Price-currencySymbol {
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 2px;
}

/* 价格标签悬浮效果 */
.price ins .woocommerce-Price-amount:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(135deg, #ff5722 0%, #ffeb3b 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .price del {
        font-size: 1em;
    }
    .price ins {
        font-size: 1.5em;
    }
}

/* 增强分行后的视觉关联性 */
.price del {
    margin-top: -5px; /* 缩小两行间距 */
    font-size: 0.9em; /* 原价略小于促销价 */
}

.price ins {
    display: inline-block;
    margin-bottom: 0; 
    padding: 3px 10px; /* 扩大橙色背景区域 */
    
}

/* 变体价格的样式--结束 */
/* 变体价格的样式--结束 */
/* 变体价格的样式--结束 */





/* 以下为首页的实时通讯表格的样式--开始 */
/* 以下为首页的实时通讯表格的样式--开始 */
/* 以下为首页的实时通讯表格的样式--开始 */


/* 容器宽度限制和居中 */
.subscription-form-wrapper {
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
}

/* 输入框样式 */
.custom-email-field {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  transition: all 0.3s;
  margin-bottom: 15px;
}

.custom-email-field:focus {
  border-color: #446084; /* Flatsome 主色调 */
  outline: none;
  box-shadow: 0 0 0 3px rgba(68, 96, 132, 0.1);
}

/* 按钮样式 */
.primary-button {
  width: 100%;
  padding: 14px;
  background-color: #446084 !important; /* Flatsome 默认蓝色 */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.primary-button:hover {
  background-color: #3a5474 !important;
  transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 480px) {
  .subscription-form-wrapper {
    padding: 10px;
  }
  .custom-email-field,
  .primary-button {
    padding: 12px;
  }
}

/* 以上为首页的实时通讯表格的样式 --结束*/
/* 以上为首页的实时通讯表格的样式 --结束*/
/* 以上为首页的实时通讯表格的样式 --结束*/








@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}