/*
Theme Name: twentytwentyone Child
Description: Child theme for the twentytwentyone theme
Template: twentytwentyone
Version: 1.0.0
*/

:root,
[data-bs-theme=light] {
    /* Brand Colors */
    /* --primary-color: #ff7b47; */
    --primary-light: #6ED8D9;
    --primary-dark: #239ea0;
    --primary-pale: #97E3E4;

    /* Neutral Colors */
    --white: #FFFFFF;
    --body-bg: #f8f9fa;
    --medium-gray: #999;
    --heading-color: #444;
    --black: #1a1a1a;
    --red: #ff6b6b;
    --notice-bg: #ffd332;

    /* Typography */
    --font-heading-en: 'Montserrat', sans-serif;
    --font-body-en: 'Open Sans', sans-serif;
    --font-zh: 'Noto Sans TC', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition: all 0.3s ease;
    --link-hover-color-rgb: 9, 9, 11;
}
/* 字体 */
.text-secondary{ color: rgba(0, 0, 0, 0.46)!important;}
.color-secondary{ color: var(--primary-color);}

/* 按钮加载动画 */
.add-to-cart-btn {
    transition: all 0.3s ease;
}
.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}
/* 已加入购物车状态 */
.add-to-cart-btn.in-cart {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
}
.add-to-cart-btn.in-cart:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}


/* 按钮 */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-gradient: none
}

/* 确保html和body占满全宽，防止水平滚动 */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--heading-color);
}
img{
    max-width: 100%;
    height: auto;
}
.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ri-heading-color,inherit)
}

dl,
ol,
ul {
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 1rem
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
a:hover{
    color: var(--primary-color);
}
.btn-light{ color: var(--primary-color);}

/* 搜索框 */

.form-control{
    box-shadow:none;
}
.form-control:focus{
    border-color:rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 0 .25rem rgba(0, 0, 0, 0.065);
}
.form-control::placeholder {
    opacity: 1;
    transition: opacity 0.2s;
}
.form-control:focus::placeholder {
    opacity: 0;
}

/* 版头 */
.site-hd{
    border-bottom: 2px var(--black) solid;
}
.site-hd i{
    margin-right: .8rem;
}
.animate-default>a{
    color: var(--white);
    font-size: 1.2rem;
    text-align: left;
    background: var(--black);
    display: block;
    width: 100%;
    line-height: 48px;
    text-indent: .6rem;
}
.main-menu{
    margin: 0 0 0 1rem;
    font-size: 1.2rem;
    line-height: 48px;
    text-align: right;
}
.main-menu li{
    margin: 0 0 0 2.5rem;
}
.main-menu li.current-menu-item{
    color: var(--primary-color);
    font-weight: 600;
}

.navbar{ position: relative;}
.navbar-toggler{ position: absolute; top:-3.4rem; right: .8rem;}
@media (max-width: 768px) {
.site-hd{ position: fixed; background-color: var(--white); height: 5rem; z-index: 999; top:0; left: 0; right: 0; border: 0;}
.site-hd .container-fluid{ position: relative; background-color: var(--body-bg);}
.main-menu{ padding: 1rem 0;}
.main-menu li{ margin: 0; text-align: left;}
.main-menu li a{ display: block;}
.header-gap{ height: 5rem;}
.foot-logo .icon use{left: -.8rem!important;}
.cart-icon-wrap{ position: absolute; right: 1rem; top: 1rem;}
}

/* 左侧菜单样式 */
.left-menu {
    background: var(--body-bg);
    height: 100%;
    position: relative;
}

.left-menu .menu-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.left-menu .menu-item:last-child {
    border-bottom: none;
}
.left-menu .menu-item a:hover .menu-icon,
.left-menu .menu-item a:hover,
.left-menu .menu-item:hover{
    background-color: var(--primary-color);
    color: var(--white);
}
.left-menu .menu-item:hover{padding-left: 25px;}

.left-menu .menu-item:hover .menu-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}
.home-widget .left-menu{ padding: 1rem 0 0 0;}
.menu-icon {
    width: 18px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: .8rem!important;
    color: var(0,0,0,.5);
    transition: color 0.3s ease;
}

.menu-text {
    flex: 1;
    font-weight: 500;
    color: var(--dark-text);
}

.menu-arrow {
    color: #bdc3c7;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* 产品分类 */
.list-group i{ width: 2rem; text-align: center; padding: 4px 0 0 0;}
.list-group-flush>.list-group-item{display: flex; }

/* 子菜单样式 */
.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 600px;
    background: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: .5rem;
}

.left-menu .menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.submenu-img {
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
}

.submenu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.submenu-img:hover img {
    transform: scale(1.05);
}

.submenu-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.submenu-item {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--black);
    background-color: var(--body-bg);
    cursor: pointer;
}

.submenu-item:hover {
    color: var(--primary-color);
}

/* 导航栏「所有分类」下拉菜单 */
.category-dropdown-wrapper {
    position: relative;
}

.category-dropdown-wrapper > .left-menu {
    position: absolute;
    top: calc( 100% + 2px );
    left: 0;
    width: 30px;
    min-height: auto;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-radius: .5rem;
}

.category-dropdown-wrapper:hover > .left-menu,
.category-dropdown-wrapper > .left-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.navbar .menu-list{ background-color:var(--body-bg); min-width:308px; box-shadow: 0 5px 30px rgba(0,0,0,0.15);}

/* 页面标题 */
.entry-header{
    margin: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, transparent) 100%);
    box-shadow: 0 8px 90px color-mix(in srgb, var(--primary-color) 10%, transparent);
}

/* 关于我们 */
.timeline-item {
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 54px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-color), 0 4px 12px rgba(70, 205, 207, 0.4);
    transition: all 0.3s;
}

 /* 页码 */
 .pagination {
    --bs-pagination-disabled-color: var(--medium-gray);
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
}
.page-link:focus{box-shadow:none}

/* 商店 */
del .woocommerce-Price-amount{ color: var(--medium-gray)!important; text-decoration:line-through;}
del { text-decoration: none; font-weight: 300;}
ins{ color: var(--primary-color); float: left; text-decoration: none; }
.woocommerce-breadcrumb{ display: none;}
.woocommerce .woocommerce-ordering, .woocommerce-page .woocommerce-ordering,.woocommerce .woocommerce-result-count{ margin: 0;}
.woocommerce-Price-amount{ margin-right: 1rem; color: var(--primary-color);}
.woocommerce-pagination ul.page-numbers{line-height: .6; margin-top: 2rem;}
.border-primary{ border-color: var(--primary-color)!important;}
.single-product div.product .product_meta{ font-size: .9rem; color: var(--medium-gray);}
.sx-bar{ background-color: rgba(0, 0, 0, 0.05); border-radius: .5rem;}
.ratio::before {
    display: block;
    padding-top: var(--ri-aspect-ratio);
    content: "";
}
.ratio-1x1 {
    --ri-aspect-ratio: 100%
}

.ratio-2x3 {
    --ri-aspect-ratio: 150%
}

.ratio-3x2 {
    --ri-aspect-ratio: 66.6666666667%
}

.ratio-3x4 {
    --ri-aspect-ratio: 133.3333333333%
}

.ratio-4x3 {
    --ri-aspect-ratio: 75%
}

.ratio-16x9 {
    --ri-aspect-ratio: 56.25%
}

.ratio-21x9 {
    --ri-aspect-ratio: 42.8571428571%
}
.sale-hot{
    width: auto;
    height:auto;
    top:.5rem;
    left:.7rem;
}
.shop-cont-wrap  img{ width: 100%;}

/* 购物车 */
.cart-collaterals .wc-proceed-to-checkout a {
    display: block;
    padding: .6rem 1rem;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    border: 0;
    font-size: 1.5rem;
}
.cart-collaterals .wc-proceed-to-checkout a:hover {
    background: var(--primary-dark);
    text-decoration: none!important;
}
.woocommerce-error, 
.woocommerce-info, 
.woocommerce-message,
.alert-success{
    font-size: 1.6rem;
    border-color: var(--notice-bg);
    background: color-mix(in srgb, var(--notice-bg), transparent 90%);
}
.alert-success{
    padding:2rem 3rem;
    border-top-width: 3px;
    border-radius: 0;
    border-left-width: 0;
    border-right-width: 0;
    border-bottom-width: 0;
    margin-bottom: 3rem;
}
.home-widget-iocn i{
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    background: color-mix(in srgb, var(--primary-color), transparent 90%);
    border-radius: 50%;
    font-size: 2.3rem;
}
.product-remove a.remove:hover{
    background-color: var(--red)!important;
}
/* 购物车表格样式 */
.woocommerce-cart-form__contents {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
.woocommerce-cart-form__contents thead {
    background: #f9f9f9;
}
.woocommerce-cart-form__contents th {
    padding: 1rem;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
}
.woocommerce-cart-form__contents td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}
.woocommerce-cart-form__contents tr:last-child td {
    border-bottom: none;
}
.woocommerce-cart-form__contents .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.woocommerce-cart-form__contents .product-name {
    font-weight: 500;
    color: #333;
}
.woocommerce-cart-form__contents .product-name a {
    color: #333;
    text-decoration: none;
}
.woocommerce-cart-form__contents .product-name a:hover {
    color: var(--primary-color);
}
.woocommerce-cart-form__contents .product-remove .remove {
    color: #999;
    font-size: 1.5rem;
    text-decoration: none;
}
.woocommerce-cart-form__contents .product-remove .remove:hover {
    color: #dc3545;
}
/* 产品卡片悬停效果 */
.product-card-item:hover {
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
    transform: translateY(-2px);
    transition: box-shadow .25s, transform .25s;
}
.product-card-item:hover .product-card-overlay {
    opacity: 1 !important;
}
.product-card-item:hover img {
    transform: scale(1.04);
}
/* WooCommerce 排序选择框 Bootstrap 化 */
.woocommerce-ordering select {
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: .25rem .75rem;
    font-size: .875rem;
    appearance: auto;
}
/* 分页样式 */
.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-block;
    padding: .375rem .75rem;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    text-decoration: none;
    font-size: .875rem;
    color: #6c757d;
}
.woocommerce-pagination ul li .current {
    color: #fff;
    background: #46cdcf;
    border-color: #46cdcf;
}
.woocommerce-pagination ul li a:hover {
    color: #46cdcf;
    border-color: #46cdcf;
}
/* 面包屑 */
.woocommerce-breadcrumb { font-size: .875rem; color: #6c757d; margin-bottom: 0; }
.woocommerce-breadcrumb a { color: #46cdcf; text-decoration: none; }
/* 数量选择器 */
.woocommerce-cart-form__contents .quantity {
    display: flex;
    align-items: center;
}
.woocommerce-cart-form__contents .quantity .qty {
    width: 60px;
    height: 38px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}
.woocommerce-cart-form__contents .quantity .minus,
.woocommerce-cart-form__contents .quantity .plus {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
}
.woocommerce-cart-form__contents .quantity .minus:hover,
.woocommerce-cart-form__contents .quantity .plus:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
/* 操作按钮 */
.woocommerce-cart-form__contents .actions {
    padding: 1rem;
    background: #f9f9f9;
}
.woocommerce-cart-form__contents .actions .coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.woocommerce-cart-form__contents .actions .coupon label {
    display: none;
}
.woocommerce-cart-form__contents .actions .coupon input {
    flex: 1;
    min-width: 150px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.woocommerce-cart-form__contents .actions button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.woocommerce-cart-form__contents .actions button[name="apply_coupon"] {
    background: #333;
    color: #fff;
}
.woocommerce-cart-form__contents .actions button[name="apply_coupon"]:hover {
    background: #555;
}
.woocommerce-cart-form__contents .actions button[name="update_cart"] {
    background: var(--primary-color);
    color: #fff;
    float: right;
}
.woocommerce-cart-form__contents .actions button[name="update_cart"]:hover {
    background: var(--primary-dark);
}
/* 侧边栏总计 */
.cart-collaterals {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}
.cart-collaterals h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.is-stuck{
    position: fixed;
    transform: translateY(30px);
    top: 0;
}
/* 优惠券表单 */
.coupon-form {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}
.coupon-form h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.coupon-input-wrap {
    display: flex;
    gap: 8px;
}
.coupon-input-wrap input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}
.coupon-input-wrap button {
    padding: 0.6rem 1rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
}
.coupon-input-wrap button:hover {
    background: #555;
}
.cart-collaterals .cart_totals {
    width: 100%;
}
.cart-collaterals .cart_totals table {
    width: 100%;
}
.cart-collaterals .cart_totals tr td {
    padding: 0.5rem 0;
    border: none;
}
.cart-collaterals .cart_totals .order-total td {
    font-weight: 700;
    font-size: 1.2rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .woocommerce-cart-form__contents thead {
        display: none;
    }
    .woocommerce-cart-form__contents tbody tr {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    .woocommerce-cart-form__contents tbody tr td {
        display: block;
        padding: 0.5rem;
        border: none;
        text-align: left;
    }
    .woocommerce-cart-form__contents tbody tr td::before {
        content: attr(data-title);
        font-weight: 600;
        display: block;
        margin-bottom: 0.25rem;
    }
    .woocommerce-cart-form__contents .product-thumbnail {
        display: none;
    }
    .woocommerce-cart-form__contents .product-remove {
        position: absolute;
        right: 0;
        top: 0;
    }
}
/* 个人中心 */
.my-content a{ color: var(--primary-color);}
.my-nav{
    background-color: rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    border-radius: 8px; 
    font-size: 1.1rem; 
    line-height: 3.5rem;
}
.my-nav a{
    display: block;
    border-color: rgba(0,0,0,0.06);
    border-width:0 0 1px 0;
    border-style: solid;
}
.my-nav .is-active a{
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width:0 0 2px 0;
    border-style: solid;
}
.my-nav a::before{
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: inline-block;
    width: 2rem;
    margin-right: 1rem;
    text-align: center;
}
.my-nav ul li:last-child a{
    border: 0;
}
.woocommerce-MyAccount-navigation-link--dashboard a::before{
    content: "\f3fd";
}
.woocommerce-MyAccount-navigation-link--orders a::before{
    content: "\f291";
}
.woocommerce-MyAccount-navigation-link--downloads a::before{
    content: "\f381";
}
.woocommerce-MyAccount-navigation-link--edit-address a::before{
    content: "\f3c5";
}
.woocommerce-MyAccount-navigation-link--edit-account a::before{
    content: "\f2bb";
}
.woocommerce-MyAccount-navigation-link--customer-logout a::before{
    content: "\f00d";
}
.woocommerce-no-products-found{ width: 100%;}
.woocommerce-info{ font-size: 1.2rem; padding:2rem; color: #a28314dc;}
.woocommerce-info a{ color: var(--primary-color);}
.woocommerce-info a:hover{ text-decoration: underline;}
.woocommerce-Address-title,
.woocommerce-Address{ width: 100%; margin-bottom: 2rem;}

/* 页尾 */
/* 自定义图标 */
.icon{
  vertical-align: -0.15em;
  overflow: hidden;
  fill: var(--primary-color);
}
.hd-logo{
    position: relative;
}
.hd-logo img{ max-width: 90%;}
.hd-logo svg{
    position: absolute;
    transform: scale(1.2);
    left:-1.6rem;
    top:-2rem;
}
.hd-logo svg use{
    width: 60%;
}
.foot-logo a{ position: relative; text-align: left; display: block; height: 4.2rem; overflow: hidden;}
.foot-logo .icon{
    position: absolute;
    width: 176px;
    height: 120px;
    top: -30px;
    left: -6px;
}

@media (max-width: 768px) {
.hd-logo svg{
    transform: scale(.8);
    left:-4.2rem;
    top:-3.4rem;
}
}
.icon use{ width: 40%;}
.home-background {
    background-color: var(--primary-color);
    color: var(--white);
}

.home-background h1{
    font-size:var(--heading--font-size-h1);
}

.footer-content {
    background-color: var(--black);
    color: var(--medium-gray);
    font-size: .9rem
}
.footer-content a{
    color: var(--medium-gray);
}

.footer-content h4{
    color: var(--white);
}

.footer-content a:hover {
    color: var(--primary-color);
}

.footer-content ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-content .row {
    border-bottom: 1px solid #333;
}

.footer-content i {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-right: .8rem;
}

.footer-content .copyright {
    text-align: center;
    padding-top: var(--spacing-md);
}


.footer-content .text-primary {
    display: none;
}

/* 语言选择器 - 国旗样式 */
.translateSelectLanguage-wrap {
    position: relative;
    display: inline-block;
}
.translateSelectLanguage-wrap::before {
    content: '🌐';
    filter: grayscale(300%) brightness(80%);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
.translateSelectLanguage-wrap select {
    padding-left: 36px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 18px 6px 36px;
    font-size: 14px;
    cursor: pointer;
    min-width: 110px;
}

/* 购物车图标数量徽章 */
.page-template-page-cart .cart-icon-wrap{
    color: var(--primary-color);
}
.cart-icon-wrap {
    display: inline-block;
    font-size: .9rem; 
    padding-top: .4rem;

}
.cart-icon-wrap .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

/* 滚动动效 */
.fade-up, .fade-down, .fade-left, .fade-right, .zoom-in, .zoom-out, .flip {
    opacity: 0;
    transition: all 0.6s ease-out;
}
.fade-up { transform: translateY(30px); }
.fade-down { transform: translateY(-30px); }
.fade-left { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }
.zoom-in { transform: scale(0.8); }
.zoom-out { transform: scale(1.2); }
.flip { transform: rotateY(90deg); }

.fade-up.visible, .fade-down.visible, .fade-left.visible, .fade-right.visible, 
.zoom-in.visible, .zoom-out.visible, .flip.visible {
    opacity: 1;
    transform: translate(0) scale(1) rotateY(0);
}

/* 延迟动效 */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 滚动显示 */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* 置顶按钮 */
.back-to-top {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--black);
    transform: translateY(-3px);
}
/* 联系我们按钮 */
.needs-validation .btn {
  width: 250px; /* 或其他固定宽度 */
}

/* 窄屏下宽度100% */
@media (max-width: 768px) { /* 或使用 576px 根据需求 */
  .needs-validation .btn {
    width: 100%;
  }
  .rounded-0{
    border-radius: 0 !important;
  }
  .main-image img{margin-left: -20px; margin-right: -20px; max-width: calc(100% + 40px);}
}
/* 详情页 */
.shop-cont-wrap img{ border-radius: .4rem;}
/* 登录页面 */
.lost_password a{ color: var(--primary-color);}
.login label{
    display: block;
    margin-bottom: 1rem;
    font-size:larger;
}
.login .required{
    color:var(--red);
}
.login .password-input{ position: relative;}
.login .show-password-input{ position: absolute; right:1rem;}
.woocommerce form .show-password-input, .woocommerce-page form .show-password-input{
    background-color: transparent;
    border-radius: 0;
    border: 0;
    color: var(--wc-form-color-text, #000);
    cursor: pointer;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    position: absolute;
    right: .7em;
    text-decoration: none;
    top: 50%;
    transform: translateY(-50%);
    -moz-osx-font-smoothing: inherit;
    -webkit-appearance: none;
    -webkit-font-smoothing: inherit;
}
.woocommerce form .show-password-input::before, 
.woocommerce-page form .show-password-input::before{
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    display: block;
    height: 22px;
    width: 22px;
}