/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */



/*==================================
  导航栏菜单优化
==================================*/
/* 隐藏主菜单下拉小箭头 */
#header-menu-1 .ct-toggle-dropdown-desktop {
  display: none !important;
}

/* 账户icon左右外边距 */
[data-header*="type-1"] [data-id="account"] {
    --margin: 0 13px !important;
}
/* 购物车icon右外边距 */
[data-column=end] [data-items=primary]>*:last-child {
    --margin: 0 17px 0 10px;
}

/* 1000px~1279px端菜单结构调整 */
@media (min-width: 1000px) and (max-width: 1279px) {
/* 重写容器的左右外边距+铺满全宽 */
[class*=ct-container-fluid] {
    margin-inline-start: 10px !important;
    margin-inline-end: 10px !important;

    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

/* 重写主菜单的字体大小 */
.menu a,
.menu .ct-menu-link {
    font-size: 14px !important;
		 padding:0 7px !important;
  }

  /* 重写每个菜单项的左右间距 */
.ct-header [data-device="mobile"] nav > ul > li,
.ct-header [data-device="mobile"] .ct-header-navigation > ul > li {
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

}

/*==================================
  二级菜单重塑
==================================*/
/* 强制脱离 header 布局 */
#header-menu-1 li.menu-item-has-children {
    position: static !important;
}
/* submenu 直接锚定 viewport */
#header-menu-1 ul.sub-menu {
    position: absolute !important;
    top: 100% !important;

    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 999999;
}

/* wrapper 只管内容，不参与定位 */
.mega-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 40px auto;
    display: grid;

    /* 5列结构 */
    grid-template-columns:
     13.3% /* col1 left margin */
     12% /* col2 MENU */
     11.4% /* col3 gap */
     50% /* col4 IMAGE */
     13.3%;/* col5 right margin */
    align-items: start;
}
@media (min-width: 1000px) and (max-width: 1279px) {
.mega-wrapper {
    grid-template-columns:
      15% 12% 8% 50% 15% ;
    }
}
@media (min-width: 1280px) and (max-width: 1439px) {
.mega-wrapper {
    grid-template-columns:
      16% 12% 6% 50% 16% ;
    }
}
/* 左侧菜单 -> 第2列 */
.mega-left {
    grid-column: 2 / 3;
}
/* 图片区域 -> 第4列 */
.mega-right {
    grid-column: 4 / 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MENU LINKS */
.mega-left,
.mega-left ul li,
.mega-left a {
    font-size: 14px !important;
    color: #161515 ;
    text-decoration: none;
    position: relative;
    line-height: 2 !important;
}

/* underline animation：宽度跟随文本 */
.mega-left a {
    position: relative !important;
   display: inline-flex !important;
    width: max-content !important;
}

/* underline */
.mega-left a::after {
    content: "";
    position: absolute;

    left: 4;
    bottom: -3px;
    height: 1px;
    background: #161515;
    width:100% ;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.mega-left a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* RIGHT IMAGE */
.mega-img {
    width: 500px;
    height: 306px;
    object-fit: cover;
    display: block;
}

/* CTA */
.mega-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #161515;
    text-decoration: none;
}

/* =========================
  首页图片跑马灯
========================= */
/* FULL BLEED */
.kousyn-fullbleed{
    width:100vw;
    margin-left:calc(50% - 50vw);
    background:#fff;
}

/* LOOKBOOK */
.kousyn-lookbook{
    position:relative;
    width:100%;
    overflow:hidden;
}

/* MARQUEE TRACK */
.marquee-track{
    display:flex;
    width:max-content;
    animation: kousynMove 15s linear infinite;
}

@keyframes kousynMove{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
}

/* IMAGE */
.img-wrap{
    width:381px;
    flex-shrink:0;
    overflow:hidden;
}

.img-wrap img{
    width:100%;
    aspect-ratio: 381 / 850;
    object-fit:cover;
    display:block;
}

/* OVERLAY LAYER */
.lookbook-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:5;
    pointer-events:none;
}

/* TEXT STYLE */
.overlay-text{
    text-align:center;
    z-index:999;
    color:#ffffff !important;
}

/* 强制所有子元素继承白色 */
.overlay-text,
.overlay-text *{
    color:#ffffff !important;
}

/* small text */
.overlay-text .small{
padding-top:10px!important;
    font-size:24px;
    font-weight:600;
    letter-spacing:3px;
    text-transform:uppercase;
    opacity:0.9;
}

/* large text */
.overlay-text .large{
    font-size:138px;
    letter-spacing:8px;
    line-height: 1;
    text-transform:uppercase;
    font-weight:500;
}

/* LUXURY HOVER EFFECT */
.kousyn-lookbook .img-wrap {
    background-color: #161515 !important;
}

.kousyn-lookbook:hover .img-wrap img{
    filter: blur(2px);
    opacity:0.8;
    transform: scale(1);
    transition:all .3s ease;
}

.kousyn-lookbook .img-wrap img:hover{
    filter: blur(0);
    opacity:1;
    transform: scale(1.06);
}

/* MOBILE */
@media (max-width:767px){

.marquee-track{
   overflow-x:auto;
   scroll-snap-type:x mandatory;
   -webkit-overflow-scrolling:touch;
    }

.img-wrap{
        width:70vw;
    }

.overlay-text .large{
        font-size:68px;
        letter-spacing:4px;
    }

.overlay-text .small{
padding-top:10px!important;
    font-size:13px;
    font-weight:500;
    letter-spacing:2px;
    text-transform:uppercase;
    opacity:0.9;
}
}


/* =========================
  SELECT CONTAINER
========================= */
.wc-blocks-components-select__container {
    transition: all 0.2s ease;
}

/* hover 外框 */
.wc-blocks-components-select__container:hover {
    border-color: #000 !important;
}

/* focus 点击 */
.wc-blocks-components-select__container:focus-within {
    border-color: #000 !important;
}

/* 移除结账页右侧订单摘要的外边框和阴影 */
.wp-block-woocommerce-checkout-order-summary-block {
    border: none !important;
    box-shadow: none !important;
}

/* =========================
  KOUSYN HERO SYSTEM
========================= */
/* 不同设备的背景图 - Desktop */
.kousyn-hero {
    background-image: url("https://kousyn.com/wp-content/uploads/2026/07/KOUSYN-Hero-Desktop.webp") !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 98vh;
}

/* Tablet */
@media (max-width: 1024px) {
.kousyn-hero {
    background-image: url("https://kousyn.com/wp-content/uploads/2026/05/Kousyn-Hero-Tablet.webp") !important;
    min-height: 85vh !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
.kousyn-hero {
   background-image: url("https://kousyn.com/wp-content/uploads/2026/05/Kousyn-Hero-mobile.webp") !important;
   background-position: center center;
    }
}
/* SHOP NEW ARRIVALS 样式 - 精准定位，赋予默认样式 */
.stk-88c4a0e .stk-block-text__text a {
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding-bottom: 4px;
    display: inline-block;
    position: relative;
}

/* 制作默认显示的下划线（scaleX 默认为 1） */
.stk-88c4a0e .stk-block-text__text a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.6);

    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

/* 鼠标悬浮时，下划线向右边缩进消失 */
.stk-88c4a0e .stk-block-text__text a:hover::after {
    transform: scaleX(0);
    transform-origin: bottom right;
}

/* =================================
  购物车和结账页面共同属性
================================= */
/* 隐藏购物车和结账页面的商品描述 - 新版WooCommerce-Cart商品描述隐藏 */
.wc-block-cart-items .wc-block-components-product-metadata {
    display: none !important;
}

/* 新版WooCommerce-Checkout订单摘要里的商品描述隐藏 */
.wc-block-checkout__sidebar .wc-block-components-product-metadata,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-product-metadata {
    display: none !important;
}

/* 兼容传统 WooCommerce 购物车页面的商品短描述 */
.shop_table .product-name .description,
.product-item-meta {
    display: none !important;
}

/* CART + CHECKOUT主内容背景 */
.ct-woocommerce-checkout,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
    background: #f6f6f6 !important;
    padding: 0 !important;
}

/* 左右不等高+ sticky结构 */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout {
 align-items: flex-start !important;
}
/* 左右按内容自动高度 */
.woocommerce-cart .wc-block-cart__main,
.woocommerce-cart .wc-block-cart__sidebar,
.woocommerce-checkout .wc-block-checkout__main,
.woocommerce-checkout .wc-block-checkout__sidebar {
 height: auto !important;
 align-self: flex-start !important;
}

/* Cart + Checkout左右块宽与间距 */
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main {
 width: calc(68% - 10px) !important;
}
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
 width: calc(32% - 10px) !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout{
    gap: 20px !important;
}

/* Cart + Checkout 左侧（自增长+样式） */
.woocommerce-cart .wc-block-cart__main,
.woocommerce-checkout .wc-block-checkout__main {
 overflow: visible !important;
 background: #ffffff !important;
 padding: 20px !important;
 box-sizing: border-box !important;
 align-self: flex-start !important;
}

/* Cart + Checkout 右侧卡片 */
.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block {
    background: #ffffff !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    max-width: 100% !important;
    padding: 30px 20px !important;
 box-sizing: border-box !important;
    height: auto !important;
 align-self: flex-start !important;
}

/* 右侧吸顶：Sticky核心逻辑 */
.woocommerce-cart .wc-block-cart__sidebar,
.woocommerce-checkout .wc-block-checkout__sidebar {
    position: sticky !important;
    top: 150px !important;
 align-self: flex-start !important;
    height: fit-content !important;
}

/* 如果sticky被父级overflow干扰 */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout {
    overflow: visible !important;
}

/* 右侧防止内部block撑高sidebar */
.woocommerce-cart .wc-block-cart__sidebar > * {
    height: auto !important;
}
.woocommerce-checkout .wc-block-checkout__sidebar > * {
    height: auto !important;
}


/* 移动端响应式兼容 */
@media (max-width: 1024px) {
/* 强行打破 Flex 左右并排，改为上下堆叠，并调整间距 */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
 flex-direction: column !important;
 gap: 24px !important;
    }

/* 左右两栏全部拉满 100% 宽度 */
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__sidebar {
   width: 100% !important;
   max-width: 100% !important;
    }

/* 取消右侧侧边栏的吸顶效果，恢复正常文档流 */
.woocommerce-cart .wc-block-cart__sidebar,
.woocommerce-checkout .wc-block-checkout__sidebar {
    position: static !important;
    height: auto !important;
    }

/* 收紧手机端左侧白底卡片的内边距 */
.woocommerce-cart .wc-block-cart__main,
.woocommerce-checkout .wc-block-checkout__main {
     padding: 15px !important;
    }
}

/* =========================
  Kousyn Shopping BAG
========================= */
/* 空购物袋隐藏默认伪元素图标 */
.woocommerce-cart .with-empty-cart-icon::before {
    display: none !important;
}

/* 取消右侧submit按钮下边距 */
.wc-block-cart__submit{
	margin:0 !important;
}


/* svg图表样式 - Totals 容器保持正常 */
body.woocommerce-cart .wc-block-components-sidebar{
    text-align:center !important;;
}
/* Estimated total 左对齐 */
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__description{
	text-align: left ;
}

/* cart__submit 边距 */
.wc-block-cart__submit{
		margin:40px 0px 0px !important;
}
/* 让所有 figure 变成 inline-flex */
body.woocommerce-cart figure.wp-block-image{
    display:inline-flex !important;
    justify-content:center !important;
    align-items:center !important;
    margin:10px 4px 0px !important;
}

/* 图片尺寸 */
body.woocommerce-cart figure.wp-block-image img{
    width:30px !important;
    height:20px !important;
    object-fit:contain !important;
    display:block !important;
}

/* 防止 Gutenberg 默认 block 行为 */
body.woocommerce-cart figure.wp-block-image{
    float:none !important;
    clear:none !important;
}

/* 防止 wrapper 强制换行 */
body.woocommerce-cart .wc-block-components-sidebar{
    line-height:1 !important;
}
/* 左侧产品展示样式 - 图片容器 */
body.woocommerce-cart .wc-block-cart-item__image{
    width:80px !important;
    min-width:80px !important;
}

/* 图片本身 */
body.woocommerce-cart .wc-block-cart-item__image img{
    width:80px !important;
    height:100px !important;

    object-fit:cover !important;
    display:block !important;
}
/* 数量选择器布局样式 - 让总价 td 支持垂直弹性布局 */
.wc-block-cart-item__total {
    display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
 justify-content: center !important;
    gap: 20px;
}

/* 修正移动过来的数量框间距 */
.wc-block-cart-item__total .wc-block-cart-item__quantity {
    margin: 0 !important;

}

/* 数量选择器 - 强制清空所有圆角 */
.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector__input {
    border-radius: 0px !important;
}

/* 数量选择器外壳样式 */
.wc-block-components-quantity-selector {
    transition: border-color 0.3s ease !important;
    overflow: hidden !important;
}

/* 按钮默认状态 */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    background-color: transparent !important;
    color: #161515 !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
    border: none !important;
}

/* 数量选择器：默认状态下的 - 和 + 按钮 */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    border-radius:0 !important;
    background-color: transparent !important;
    color: #161515 !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* 数量选择器：悬停状态-整个数量选择器外边框变黑色 */
.wc-block-components-quantity-selector:hover {
    border-color: #000000 !important;
}

/* 数量选择器：悬停状态-鼠标悬停在按钮本身上时，按钮背景变黑，文本变白 */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
    border-radius:0 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* 数量选择器：优化中间数字输入框 */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    width: 40px !important;
		 height:40px !important;
}


/* 更换remove图标 - 隐藏原有图标 */
.wc-block-cart-item__remove-link span,
.wc-block-cart-item__remove-link svg {
    display: none !important;
}

/* 给链接容器加上自定义图片 */
.wc-block-cart-item__remove-link {
  display: inline-block !important;
  width:20px!important;
 height:20px!important;
    background-image: url('https://kousyn.com/wp-content/uploads/2026/06/remove.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* 悬停时增强亮度/透明度 */
.wc-block-cart-item__remove-link:hover {
    opacity: 1 !important;
}


/*==================================
  Kousyn Checkout
==================================*/
/* 取消 checkout 顶部默认间距 */
.wp-block-woocommerce-checkout{
		padding-top: 0 !important;
}

/* 产品图大小调整 - 图片容器 */
body.woocommerce-checkout .wc-block-components-order-summary-item__image{
    width:48px !important;
    min-width:48px !important;
}

/* 图片本身 */
body.woocommerce-checkout .wc-block-components-order-summary-item__image img{
    width:48px !important;
    height:60px !important;

    object-fit:cover !important;
    display:block !important;
    border-radius:2px;
}

/* 数量角标 */
.woocommerce-checkout
.wc-block-components-order-summary-item__quantity{
   min-height: 16px !important;
   min-width: 16px !important;
}

/* 彻底抹去价格、行高、折扣信息 */
.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item__description{
    display: none !important;
}

/* 横向布局，横向滑动条 */
.woocommerce-checkout
.wc-block-components-order-summary__content{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto;
    overflow-y:hidden;

    gap:12px;
    padding:8px 0;

    scrollbar-width:thin;
    scrollbar-color:#d8d8d8 transparent;
}

/* 每个商品 */
.woocommerce-checkout
.wc-block-components-order-summary-item{
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
}
/* 滚动条样式 */
.woocommerce-checkout
.wc-block-components-order-summary__content::-webkit-scrollbar{
    height:3px;
}

.woocommerce-checkout
.wc-block-components-order-summary__content::-webkit-scrollbar-track{
    background:transparent;
}

.woocommerce-checkout
.wc-block-components-order-summary__content::-webkit-scrollbar-thumb{
    background:#d4d4d4;
    border-radius:999px;
}

.woocommerce-checkout
.wc-block-components-order-summary__content::-webkit-scrollbar-thumb:hover{
    background:#bdbdbd;
}
/* input、textarea 悬停点击样式 - hover */
body.woocommerce-checkout
.wc-block-components-form input:hover,
.wc-block-components-form textarea:hover,
body.woocommerce-checkout
.wc-block-components-form select:hover {
  border-color: #000 !important;
}

/* focus */
body.woocommerce-checkout
.wc-block-components-form input:focus,
.wc-block-components-form textarea:focus,
body.woocommerce-checkout
.wc-block-components-form select:focus {
    outline: none !important;
}
/*==================================
  产品详情页
==================================*/
/* 隐藏移动端的面包屑 */
@media only screen and (max-width: 767px) {
.hero-section[data-type=type-1]{
display: none !important;
}
}
/* 主图左边缩略图的边框样式 - 干掉外面所有容器、伪元素的灰边和阴影 */
.single-product .flexy-pills li,
.single-product .flexy-pills li::before,
.single-product .flexy-pills li::after,
.single-product .flexy-pills .ct-media-container,
.single-product .flexy-pills .ct-media-container::before,
.single-product .flexy-pills .ct-media-container::after {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 缩略图本身默认状态：不显示边框 */
.single-product .flexy-pills li img {
    width: 80px !important;
    height: 112px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    flex: 0 0 45px !important;
    display: block !important;
    box-sizing: border-box;
    border: 1px solid transparent !important;
    transition: border-color .2s ease;
}


/* Hover + Active时，缩略图加黑边 */
.single-product .flexy-pills li:hover img,
.single-product .flexy-pills li.active img {
    border-color: #000000 !important;
}

/* gallery整体 */
.single-product .woocommerce-product-gallery {
    display: flex;
    align-items: center !important;
}

/* thumbnails column */
.single-product .flexy-pills {
    display: flex;
    flex-direction: column;
    justify-content: center !important;
}


/* 移动端精致的圆点替换画廊缩略图，隐藏上一张下一张切换按钮 */
@media only screen and (max-width: 767px) {
.single-product .woocommerce-product-gallery {
   position: relative !important;
   display: block !important;
    }

.single-product [class*="flexy-arrow"],
.single-product [style*="--flexy-arrow"] {
    display: none !important;
}

.single-product .flexy-pills {
   position: absolute !important;
   bottom: 15px !important;
   left: 50% !important;
   transform: translateX(-50%) !important;
   width: auto !important;
   z-index: 99 !important;
   background: transparent !important;
   display: flex !important;
   justify-content: center !important;
    }

.single-product .flexy-pills ol {
   display: flex !important;
   flex-direction: row !important;
   justify-content: center !important;
   align-items: center !important;
   gap: 8px !important;
   margin: 0 !important;
   padding: 0 !important;
   list-style: none !important;
}

.single-product .flexy-pills li {
   width: 8px !important;
   height: 8px !important;
   margin: 0 !important;
   padding: 0 !important;
   cursor: pointer !important;
   background: #161515 !important;
   opacity: 0.25 !important;
   border-radius: 50% !important;
   transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

.single-product .flexy-pills li.active {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.single-product .flexy-pills li img,
.single-product .flexy-pills li .ct-media-container,
.single-product .flexy-pills li span {
   display: none !important;
}
}

/* 面包屑下外边距重置默认 */
.hero-section[data-type=type-1] {
    margin-top:14px ;
}

/* 精准调整 WooCommerce 颜色缩略图尺寸为 45x63 - 取消Select Color缩略图灰边和阴影 */
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
/* 强行重置外层列表项(li)外观为 45x63 直角 */
.single-product .variable-items-wrapper .variable-item.image-variable-item {
    width: 45px !important;
    height: 63px !important;
    min-width: 45px !important;
    max-width: 45px !important;
    flex: 0 0 45px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

/* 强行重置内部包裹层(contents)和图片比例，直角且铺满 */
.single-product .variable-items-wrapper .variable-item.image-variable-item .variable-item-contents,
.single-product .variable-items-wrapper .variable-item.image-variable-item .variable-item-contents img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* 鼠标悬停(Hover)和选中(Selected)时加上 1px 黑色外框 */
.single-product .variable-items-wrapper .variable-item.image-variable-item:hover,
.single-product .variable-items-wrapper .variable-item.image-variable-item.selected {
    box-shadow: 0 0 0 1px #000 !important;
    outline: none !important;
}

/* 彻底隐藏包裹层(contents)上通过 ::before 或 ::after 渲染的白色对勾 */
.single-product .variable-items-wrapper .variable-item.image-variable-item .variable-item-contents::before,
.single-product .variable-items-wrapper .variable-item.image-variable-item .variable-item-contents::after,
.single-product .variable-items-wrapper .variable-item.image-variable-item.selected .variable-item-contents::before,
.single-product .variable-items-wrapper .variable-item.image-variable-item.selected .variable-item-contents::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 彻底隐藏图片下方的 Clear (清除) 按钮 */
.single-product .reset_variations {
    display: none !important;
}
/* 隐藏In stock */
.woocommerce-variation-availability{
		display: none !important;
}
/* 支付方式边距调整 */
.ct-payment-methods {
    padding: 15px 4px 20px 4px;
}


/* Vertical layout of tab labels on a single product page */
.woocommerce-product-gallery {
	display: flex;
	flex-direction: column;
}

.woocommerce-product-gallery .ct-product-gallery-container,
.woocommerce-product-gallery .woocommerce-tabs {
	width: 100%;
}

.woocommerce-product-gallery > .woocommerce-tabs {
    margin-top: 40px;
}

/* SIZE AND FIT - 变体联动，彻底干掉 Blocksy 原生 Additional Info 表格的所有灰色杂线 */
#tab-additional_information .entry-content table,
#tab-additional_information .entry-content .shop_attributes {
    display: none !important;
}

/* 确保整行容器水平排列，且子元素不换行 */
.kousyn-size-fit-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}


/* 左侧文本区域：标签、数字、单位在同一行绝对不换行 */
.kousyn-size-fit-row .size-text-left {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    color: #161515 !important;
}

/* 强制隐藏 size-fit 行内多余的、导致错位的左侧标签/块 */
.kousyn-size-fit-row .size-label:empty,
.kousyn-size-fit-row .size-label-placeholder {
    display: none !important;
}


/* 标签加粗 500 */
.kousyn-size-fit-row .size-label {
    font-weight: 500 !important;
    margin-right: 6px !important;
}
.kousyn-size-fit-row .size-label::after {
    content: ":" !important;
}

/* 动态变化的数值显示区（防止 x 符号和数字错位） */
.kousyn-size-fit-row .kousyn-display-val {
    font-weight: 400 !important;
    color: #161515 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    min-width:auto !important;
    text-align: left !important;
}

/* 核心：让整个按钮轨道距离左侧的尺寸数据正好 10px */
.kousyn-level-switcher {
    display: inline-flex !important;
    background-color: #888888 !important;
    border-radius: 30px !important;
    padding: 3px !important;
    flex-shrink: 0 !important;
    margin:0px !important;
}

/* 内部药丸按钮：彻底砍掉滑行动画，实现纯跳动 */
.kousyn-level-switcher .unit-toggle {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 4px 14px !important;
    font-size: 11px !important;
    color: #000 !important;
    cursor: pointer !important;
    border-radius: 20px !important;
    line-height: 1.2 !important;
    text-transform: lowercase !important;
    transition: transform 0.3s ease !important;
}

/* 激活状态：黑色背景，白色文字（瞬间切换） */
.kousyn-level-switcher .unit-toggle.active {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: 600 !important;
    transition: none !important;
}

/* 统一折叠面板标题加粗 */
.ct-accordion-item .ct-accordion-title {
    font-weight: 500 !important;
}



html {
  scrollbar-gutter: stable;
}

/*==================================
  全局字体
==================================*/
body,
p,
h1, h2, h3, h4, h5, h6,
button,
input,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
/*==================================
  公告栏
==================================*/
/* 手机端公告栏文本满宽 */
.ct-header-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.ct-header-text .announcement-bar {
    width: 100% !important;
}
.ct-header[data-row="top"] .ct-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* 公告栏基础设置 */
.announcement-bar {
  background: #161515;
  color: #fff;
  font-size: 13px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 容器 */
.announcement-track {
  position: relative;
  width: 100%;
  height: 40px;
}

/* 每条内容 */
.announcement-item {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color:rgba(255, 255, 255, 0.9);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* 只有 a 才可点击 */
.announcement-item:not(a) {
  pointer-events: none !important;
}

/* a 保持可点击（但在动画隐藏时会被 fadeCycle 的 pointer-events 覆盖） */
.announcement-item a,
a.announcement-item {
  cursor: pointer;
}

/* 延迟，总时长需保持6s一循环 */
.announcement-item {
  animation: fadeCycle 9s infinite;
}

.announcement-item:nth-child(1) {
  animation-delay: 0s;
}
.announcement-item:nth-child(2) {
  animation-delay: 3s;
}
.announcement-item:nth-child(3) {
  animation-delay: 6s;
}


/* 动画：增加了 z-index 和 pointer-events 的切换 */
@keyframes fadeCycle {
  0% {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }
  10% {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
  }
  30% {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
  }
  40% {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }
  100% {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
  }
}

/* 高亮 */
.highlight {
	 color:#fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 1);
  padding-bottom: 1px;
}
/* ==================================
  公告栏：解锁15%优惠订阅弹窗
==================================*/
.promo-modal {
  		position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
  		z-index: 99999;
}

.promo-modal.active {
  display: flex;
}

.promo-modal-content {
  color:#000;
  width: 750px;
  padding: 40px 30px;
  border-radius: 14px;
  text-align: center;
  position: relative;
	 background:#fff;

}

.circle {
	 color:#000;
  margin-bottom: 0 !important;
}
.promo-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 28px;
  color:#000;
  cursor: pointer;
}


/* 弹窗新样式 */
.kousyn-confirm {
  text-align: center;
  font-family: sans-serif;
}
.kousyn-confirm .step{
	 font-size:14px ;
}

/* 状态文字 */
.kousyn-confirm .status {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

/* coupon（核心动画） */
.kousyn-confirm .code {
  font-size: 16px;
  color: #000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s ease;
}

/* 按钮 */
.kousyn-confirm .btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.kousyn-confirm .k-btn {
  display: inline-block;
  width: 220px;
  background: #111;
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: 1.1px;
  transition: 0.3s;
}

.kousyn-confirm .k-btn:hover {
  background: #333;
}

.kousyn-confirm .note{
		color: rgba(0,0,0,0.5) !important;
		font-size: 12px !important;
   margin-top: 10px !important;
}

/* reveal状态 */
.kousyn-confirm.active .code {
  opacity: 1;
  transform: translateY(0);
}


/*==================================
  菜单栏
==================================*/
/* 针对菜单(NEW/BESTSELLERS/SALE) */
.header-menu-1 .menu-item-979 a,
.header-menu-1 .menu-item-1109 a,
.header-menu-1 .menu-item-1110 a{
    font-weight: 500 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
}

/* 1000px~1279px端菜单字体调整 */
@media (min-width: 1000px) and (max-width: 1279px) {
.header-menu-1 .menu-item-979 a,
.header-menu-1 .menu-item-1109 a,
.header-menu-1 .menu-item-1110 a {
   font-weight: 500 !important;
   font-size: 14px !important;
   text-transform: uppercase!important;
}
}

/* KOUSYN 页眉主行悬浮：利用属性选择器深度伪装固定状态 - 统一过渡 */
.ct-sticky-container,
.ct-sticky-container [data-row="middle"],
.ct-sticky-container .site-logo-container img,
.ct-sticky-container .ct-menu-link,
.ct-sticky-container .ct-icon,
.ct-sticky-container .wishlist_products_counter_number,
.ct-sticky-container .ct-dynamic-count-cart {
    transition: all 0.25s ease-in-out !important;
}

/* 悬浮主行：强行将背景和阴影对齐到非透明（固定）状态 */
.ct-sticky-container:hover [data-row="middle"] {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Logo 属性伪装切换：悬浮时隐藏白 Logo，激活黑 Logo */
.ct-sticky-container:hover [data-transparent-row="yes"] .default-logo {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}
.ct-sticky-container:hover [data-transparent-row="yes"] .sticky-logo {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 透明行内部基础文本/账户强制上色 */
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-menu-link,
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-account-item {
    color: #161515CC !important;
}

/* 购物袋图标彻底变色：穿透 SVG 内部路径 */
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-icon,
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-icon-container svg,
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-icon-container svg path {
    color: #161515CC !important;
    fill: #161515CC !important;
}

/* 购物车角标：彻底击穿透明态变量，伪装成固定态的黑圈白字 */
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-dynamic-count-cart{
    color: #ffffff !important;
    background: #000000 !important;
    background-color: #000000 !important;
    border-color: #000000 !important;
}

/* 部分 Blocksy 版本可能在伪元素上保留的透明边框或阴影清空 */
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-dynamic-count-cart:before,
.ct-sticky-container:hover [data-transparent-row="yes"] .wishlist_products_counter_number:before {
    background: #161515 !important;
    background-color: #161515 !important;
}

/* 菜单与图标自身的二次悬浮高亮状态 - 基础状态下鼠标停留时变纯黑 */
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-menu-link:hover,
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-icon:hover {
    color: #000000 !important;
    fill: #000000 !important;
}

/* 主行悬浮变白底后，鼠标悬浮在购物袋 SVG 路径上时，锁住纯黑色 */
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-icon-container:hover svg,
.ct-sticky-container:hover [data-transparent-row="yes"] .ct-icon-container:hover svg path {
    color: #000000 !important;
    fill: #000000 !important;
}

/*==================================
  心愿清单
==================================*/
/* 心愿清单-页眉：彻底抹除外层主题容器样式 */
.ct-header-cta {
    --button-padding: 0px;
    --button-border-radius: 0px;
}

/* 图标基础样式设置 */
.ct-header-cta a.wishlist_products_counter {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transition: all 0.3s ease;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;

    position: relative !important;
    overflow: visible !important;
}

/* 图标本体：全状态物理拦截，并引入防视觉错觉粗细修正 */
.ct-header-cta a.wishlist_products_counter::before {
    font-size: 28px !important;
    content: "\e909";
    display: block !important;
    transition: all 0.25s ease-in-out !important;
    margin-right: 0px !important;

    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* 状态联动：未悬浮主行时 - 初始非悬浮的透明状态：纯白色心形 */
[data-transparent-row="yes"] .wishlist_products_counter::before {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* 向下滚动的固定状态/默认状态：呈现品牌基础深色 */
[data-transparent-row="no"] .wishlist_products_counter::before {
    color: #161515CC !important;
    text-shadow: 0px 0px 0.3px #161515CC !important;
}

/* 状态联动：悬浮主行变白底时，强制将心形洗成深色并补粗 */
.ct-sticky-container:hover [data-transparent-row="yes"] .wishlist_products_counter::before {
    color: #161515CC !important;
    text-shadow: 0px 0px 0.3px #161515CC !important;
}

/* 自身悬停效果：物理补强，让心形悬浮变色突出明显 */
.ct-header-cta a.wishlist_products_counter:hover::before,
.ct-sticky-container:hover [data-transparent-row="yes"] .wishlist_products_counter:hover::before {
    color: #000000 !important;

    text-shadow: 0px 0px 0.1px #000000, 0px 0px 0.1px #000000 !important;
}

/* 角标样式：利用属性选择器，伪装并对齐 Blocksy 购物车的全状态变色行为 */
.ct-header-cta .wishlist_products_counter_number {
    position: absolute !important;
    z-index: 10;
    top: -2px !important;
    right: 0px !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    font-size: 10px !important;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.25s ease-in-out;
}

/* 状态联动A：初始透明状态下 -> 白圈黑字 */
[data-transparent-row="yes"] .wishlist_products_counter_number {
    color: #161515 !important;
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* 状态联动B：向下滚动固定状态下 -> 黑圈白字 */
[data-transparent-row="no"] .wishlist_products_counter_number {
    color: #ffffff !important;
    background: #161515 !important;
    border: 1px solid #161515 !important;
}

/* 状态联动C：鼠标悬浮在整个透明主行时 -> 伪装转化为固定状态的黑圈白字 */
.ct-sticky-container:hover [data-transparent-row="yes"] .wishlist_products_counter_number {
    color: #ffffff !important;
    background: #161515 !important;
    border: 1px solid #161515 !important;
}


/* 数量为 0 时，让角标消失但保留占位 */
.ct-header-cta .wishlist_products_counter_number:empty,
.ct-header-cta .wishlist_products_counter_number[style*="display: none"],
.ct-header-cta .wishlist_products_counter_number[aria-hidden="true"],
.ct-header-cta a.wishlist_counter_0 .wishlist_products_counter_number {
    opacity: 0 !important;
    transform: scale(0) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* 解决 Blocksy 按钮残留背景 */
.ct-header-cta a.ct-button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 解决重复链接/边框残留问题 */
.ct-header-cta > a:not(.wishlist_products_counter) {
    display: none !important;
}

/* 心愿清单-列表页 */
.woocommerce ul.products li.product {
    position: relative !important;
    overflow: visible !important;
}

.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 999 !important;

    width: 24px !important;
    height: 24px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: transparent !important;
    border-radius: 0 !important;

    transition: transform 0.2s ease, color 0.2s ease;
}

/* 图标大小（列表页） */
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button:before {
    font-size: 24px !important;
}

/* 悬停微放大 */
.woocommerce ul.products li.product .tinvwl_add_to_wishlist_button:hover {
    transform: scale(1.15);
}


/* 心愿清单-详情页：定位容器（Blocksy安全写法） */
.single-product .woocommerce-product-gallery__wrapper {
    position: relative !important;
}

/* wishlist 按钮 */
.single-product .tinvwl_add_to_wishlist_button {
    position: absolute !important;
    top: 70px !important;
    right: 20px !important;
    z-index: 999 !important;

    width: 40px !important;
    height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: none !important;
    border-radius: 50% !important;

     transition: transform 0.2s ease, color 0.2s ease;
}

/* 图标大小（详情页） */
.single-product .tinvwl_add_to_wishlist_button:before {
    font-size: 24px !important;
}

/* 详情页：只放大图标，不放大圆背景 */
.single-product .tinvwl_add_to_wishlist_button:hover {
    transform: none !important;
}

/* 只作用在 icon 上 */
.single-product .tinvwl_add_to_wishlist_button:hover:before {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* 心愿清单-通用修正 */
.tinvwl_add_to_wishlist_button {
    margin: 0 !important;
    line-height: 0 !important;
}

.tinvwl_add_to_wishlist_button:before {
    display: block;
    text-align: center;
}
/*==================================
  Wishlist页面布局
==================================*/
/* 表格转换为网格卡片布局：隐藏原表格的表头 */
.tinv-wishlist thead {
    display: none !important;
}

/* 将表格主体转换为 4 列网格 */
.tinv-wishlist tbody {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

/* 将每一行(tr)强行转换成独立的产品卡片 */
.tinv-wishlist table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    border: none !important;
    background: #fff;
}

/* 响应式 */
@media (max-width: 1023px) {
.tinv-wishlist tbody {
   grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 手机端自适应：改为 2 列 */
@media (max-width: 767px) {
.tinv-wishlist tbody {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    }
}
/* 769-1024不显示购物车图标显示按钮文本 */
@media only screen and (max-width: 1024px) and (min-width: 769px) {

.tinv-wishlist .product-action>.button>i, .tinv-wishlist .tinvwl-table-manage-list .product-action button[name=tinvwl-remove], .tinv-wishlist table thead th .tinvwl-mobile {
    display: none !important;
}

.tinv-wishlist .product-action .button .tinvwl-txt {
       display: inline-block;
    }

}

/* 移动端（768px以下）愿望单布局修正 */
@media only screen and (max-width: 768px) {
.tinv-wishlist .product-thumbnail img {
   width: 100% !important;
   max-width: 100% !important;
    }

.tinv-wishlist table.tinvwl-table-manage-list tbody td {
   width: 100% !important;
   display: block !important;
 box-sizing: border-box !important;
    }

.tinv-wishlist table.tinvwl-table-manage-list tbody td.product-remove {
    width: auto !important;
    }
}

@media only screen and (max-width: 1024px) and (min-width: 769px) {
.tinv-wishlist .product-thumbnail {
      width: 100% !important;
      max-width: 100% !important;
    }
}

/* 规范卡片内各元素的内部布局：移除单元格默认的表格样式和内边距 */
.tinv-wishlist table tbody td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    box-sizing: border-box;
}

/* 商品图片单元格外壳 */
.tinv-wishlist .product-thumbnail {
    margin-bottom: 8px !important;
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    overflow: hidden !important;
    position: relative !important;
}

/* 规范图片外层自带的 A 标签链接 */
.tinv-wishlist .product-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

/* 图片填充容器 */
.tinv-wishlist .product-thumbnail img {
		 aspect-ratio: 5/7!important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit:cover;
    transform: scale(1.01);
    transition: transform 0.4s ease !important;
}

/* 悬停动效保持 */
.tinv-wishlist .product-thumbnail:hover img {
    transform: scale(1.05) !important;
}

/* 商品名称单元格 */
.tinv-wishlist .product-name {
    order: 2;
}

.tinv-wishlist .product-name a {
    font-size: 14px !important;
    color: #000 !important;
    font-weight: 500 !important;
    text-decoration: none;
}

/* 商品价格单元格 */
.tinv-wishlist .product-price {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #000 !important;
    margin-bottom: 12px !important;
    order: 3;
}

/* 移除按钮/行动点单元格 */
.tinv-wishlist .product-action {
    width: 100% !important;
    margin-top: auto !important;
    order: 4;
}

/* 取消收藏图标及样式：位置优化 */
.tinv-wishlist .product-cb {
    display: none !important;
}
.tinv-wishlist .product-remove {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 999;
    width: auto !important;
    order: 0;
}
.tinv-wishlist .product-remove button{
			padding: 0px !important;
}

/* 初始化移除按钮容器，去掉默认边框和阴影 */
.tinv-wishlist td.product-remove button[name="tinvwl-remove"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

/* 隐藏原有x替换为心形 */
.tinv-wishlist td.product-remove button[name="tinvwl-remove"] i.ftinvwl-times::before {
    content: "\2764" !important;
    font-size: 20px !important;
    color: #161515 !important;
    font-family: Arial, sans-serif !important;

}

/* 聚焦状态优化，防止点击时出现丑陋的蓝色外边框 */
.tinv-wishlist td.product-remove button[name="tinvwl-remove"]:focus {
    outline: none !important;
}

/* 重塑add to bag按钮极简风格 */
.tinv-wishlist .product-action button.button {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 0px !important;
    padding: 12px 0 !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

/* 按钮悬停效果（反色） */
.tinv-wishlist .product-action button.button:hover {
    background: #000 !important;
    color: #fff !important;
}

/* 移除心愿表格的所有边框和线条 */

.tinv-wishlist table,
.tinv-wishlist table thead,
.tinv-wishlist table tbody,
.tinv-wishlist table tfoot,
.tinv-wishlist table tr,
.tinv-wishlist table td,
.tinv-wishlist table th {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 移除特定的网格间距背景色与外层容器包裹线 */
.tinv-wishlist .tinvwl-table-responsive,
.tinv-wishlist .tinv-wishlist-clear {
    border: none !important;
    background: transparent !important;
}

/* 规范每个卡片（tr）的背景，并移除底部默认分割线 */
.tinv-wishlist table tbody tr {
    background-color: #fff !important;
    padding: 0 !important;
    border-bottom: none !important;
}

/* 底部的 tfoot 区域彻底隐藏或去线 */
.tinv-wishlist table tfoot {
    display: block !important;
    border: none !important;
}


/*==================================
  Cookie
==================================*/
/* 设置 Cookie 同意栏中的链接默认为黑色 */
.ct-cookies-content a,
.ct-cookies-consent .privacy-policy-link {
    color: rgba(0, 0, 0, 0.85) !important;
    text-decoration: underline;
}

/*==================================
  品牌理念 卡片动效设置
==================================*/
/* 初始状态 */
.wp-block-stackable-card {
    overflow: hidden;
    border-radius: 4px;
    transition: all .35s ease;

    border: none !important;
    background: #ffffff;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* 悬浮状态 */
.wp-block-stackable-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
}

/*==================================
  分类入口 -> 位移
==================================*/

.fl-cta {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    cursor: pointer;
    user-select: none;
    display: block;
}

.fl-cta span {
    display: inline-block;
    color: #ffffff !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-left: 6px;
}

/* 悬停联动位移 */
.stk-block-image-box:hover .fl-cta span {
    transform: translateX(10px);
}

/* 分类入口：利用 :has 穿透内联样式，强行锁死响应式 */

/* PC端与平板端（768px以上）：强行压死内联，锁死 2x2 四宫格 */
@media (min-width: 768px) {
    .wp-block-grid,
    .is-layout-grid,
div:has(.stk-block-image-box){
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 手机端（767px及以下）：强行压死内联，严格 1 行 1 列垂直堆叠 */
@media (max-width: 767px) {
    .wp-block-grid,
    .is-layout-grid,
div:has(.stk-block-image-box){
    grid-template-columns: repeat(1, 1fr) !important;
    }
}

/*==================================
  产品图右下角 + 按钮（全端兼容及大小自适应版）
==================================*/

/* 隐藏图片外面的默认按钮 */
.woocommerce ul.products li.product > .ct-woo-card-actions {
	display:none !important;
}

/* 保留 figure 内的按钮 */
.woocommerce ul.products li.product figure .ct-woo-card-actions {
	display:flex !important;
}

/* 强制产品卡为定位上下文 */
.woocommerce ul.products li.product {
  position: relative !important;
}

/* 关键修复：让图片容器成为定位基准 */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative !important;
  display: block !important;
}

/* Blocksy 兼容 */
.woocommerce ul.products li.product figure {
  position: relative !important;
}

/* 按钮基础（先隐藏） */
.woocommerce ul.products li.product figure .add_to_cart_button {
  opacity: 0 !important;
  transform: translateY(6px);
  transition: all 0.25s ease;
  pointer-events: none !important;
}

/* hover 显示按钮 */
.woocommerce ul.products li.product:hover .button {
  opacity: 1 !important;
  transform: translateY(0);
  pointer-events: auto !important;
}


/* 局部精准控制：仅影响商品列表内按钮的流式宽高 */
.woocommerce ul.products li.product .button.add_to_cart_button {
  position: absolute !important;
  right: 0px !important;
  bottom: 0px !important;
  z-index: 999;

  /* 核心锁定：在 1024-1920 之间随屏幕宽度流式缩放 */
  width: clamp(24px, 2.5vw, 48px) !important;
  height: clamp(24px, 2.5vw, 48px) !important;

  min-height: 0 !important;
  line-height: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 0 !important;

  border: 1px solid #111;
  background: transparent;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* 局部加号控制（同步流式缩放，防止溢出） */
.woocommerce ul.products li.product .button.add_to_cart_button::after {
  content: "+";
  font-size: clamp(12px, 0.8vw, 16px) !important;
  line-height: 1 !important;
  display: block !important;
  color: #111;
}

/* hover 反转 */
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
  background: #111;
}

.woocommerce ul.products li.product .button.add_to_cart_button:hover::after {
  color: #fff;
}

/* 隐藏 WooCommerce 的 View cart 按钮 */
.added_to_cart.wc-forward {
  display: none !important;
}

/* Added to cart Toast 提示框 */
.cart-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #111;
    color: #fff;
    padding: 12px 16px;
    font-size: 13px;
    letter-spacing: 0.3px;
    z-index: 999999999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式拦截：1023px 及以下安全隐藏，防止双列布局挤压标题 */
@media (max-width: 1023px) {
  .woocommerce ul.products li.product .button.add_to_cart_button,
  .products .product .add_to_cart_button {
    display: none !important;
  }
}


/*==================================
  评论
==================================*/
/* wrapper */
.cusrev-ugc-wrapper{
  overflow:hidden;
  position:relative;
  padding:30px 0;
}

/* track */
.cusrev-ugc-track{
  display:flex;
  gap:18px;
  width:max-content;
  animation:ugcScroll 45s linear infinite;
}

/* card (image only base) */
.ugc-card{
  width:240px;
  height:360px;
  flex:0 0 auto;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* 默认只显示图片 */
.ugc-main-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .4s ease;
}

.ugc-card:hover .ugc-main-img{
  transform:scale(1.05);
}

/* overlay (hidden default) */
.ugc-overlay{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  min-height:30%;
  max-height:100%;
  padding:14px;
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  opacity:0;
  transform:translateY(20%);
  transition:.35s ease;

  overflow:hidden;
}

/* hover reveal */
.ugc-card:hover .ugc-overlay{
  opacity:1;
  transform:translateY(0);
}

/* text auto expand (no limit) */
.ugc-text{
  font-size:13px;
  line-height:1.45;
  color:#111;
  white-space:normal;
}

/* stars */
.ugc-stars{
  color:#FFBC00;
  font-size:14px;
  margin-bottom:6px;
}

/* 姓名单独强化 */
.ugc-meta {
			font-size: 14px;
    font-weight: 500;
			color: #ffffff !important;
    letter-spacing: 0.2px;
    opacity: 1 !important;
}
/* 时间弱化但仍白 */
.ugc-date {
    font-size: 12px;
    color: rgba(255,255,255,0.85) !important;
}

/* 国家容器：清除固定宽高限制，允许内容并排 */
.ugc-country {
    display: flex;
    align-items: center;
}

/* 控制抓取过来的国旗图片大小 */
.ugc-country img {
    width: 16px !important;
    height: auto !important;
    display: block;
    margin: 0;
}


/* 无限滚动动画 */
@keyframes ugcScroll {
 from { transform: translateX(0);}
 to { transform: translateX(-50%);}
}

/* 评论区块：移动端锁死一行展示 2 张完整图片 */
@media (max-width: 767px) {
.cusrev-ugc-track {
    gap: 10px !important;
}

.ugc-card {
        width: calc((100vw - 20px) / 2) !important;
        height: calc(((100vw - 10px) / 2) * 1.5) !important;
    }
}
/*==================================
  Sale WPForms 按钮样式反转
==================================*/

/* 基础容器与按钮初始状态 */
.dark-sale-section .button.add_to_cart_button {
    background-color: transparent !important;
    border: 1px solid #ffffff !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* 初始状态下的 "+" 号颜色 */
.dark-sale-section .button.add_to_cart_button::after {
    content: "+" !important;
    font-size: 16px !important;
    color: #ffffff !important;
}

/* 悬停状态：背景变白 */
.dark-sale-section .button.add_to_cart_button:hover {
    background-color: #ffffff !important;
}

/* 悬停状态："+" 号变黑 */
.dark-sale-section .button.add_to_cart_button:hover::after {
    color: #000000 !important;
}

/* 该板块产品标题与价格在黑底上可见 */
.dark-sale-section .woocommerce-loop-product__title,
.dark-sale-section .price {
    color: #ffffff !important;
}


@media (max-width: 767px) {
/* 移动端产品图右下角按钮 "+" - 基础容器与按钮初始状态 */
.dark-sale-section .button.add_to_cart_button {
  border:1px solid #000 !important;
}
/* 初始状态下的 "+" 号颜色 */
.dark-sale-section .button.add_to_cart_button::after {
    color: #000 !important;
}

/* 悬停状态：背景变白 */
.dark-sale-section .button.add_to_cart_button:hover {
 background-color: #000 !important;
}

/* 悬停状态："+" 号变黑 */
.dark-sale-section .button.add_to_cart_button:hover::after {
    color: #fff !important;
}
}

/*==================================
  邮件订阅板块 (PC & iPad)
==================================*/

/* 整体容器：强制横向排列并居中 */
#wpforms-form-157 {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    position: relative !important;
}

/* 移除 WPForms 默认间距（PC 端行内并排） */
#wpforms-form-157 .wpforms-field-container,
#wpforms-form-157 .wpforms-field,
#wpforms-form-157 .wpforms-submit-container {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 邮件输入框外层容器 */
#wpforms-form-157 .wpforms-field-email {
    position: relative !important;
    display: block !important;
}

/* 邮件文本框样式（PC 端限制尺寸） */
#wpforms-form-157 .wpforms-field-email input[type="email"] {
    display: block !important;
    width: 100% !important;
    min-width: 400px !important;
    max-width: 500px !important;
    height: 50px !important;
    padding: 10px 15px !important;
    border: 1px solid #888 !important;
    box-sizing: border-box !important;
}

#wpforms-form-157 .wpforms-field-email input[type="email"]:focus {
    border: 1px solid #000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 提交按钮样式 */
#wpforms-form-157 .wpforms-submit-container button[type="submit"] {
    height: 50px !important;
    padding: 0 30px !important;
    margin: 0 !important;
}

/* 报错文字对齐输入框首字符 */
#wpforms-form-157 .wpforms-field-email label.wpforms-error,
#wpforms-form-157 .wpforms-field-email em.wpforms-error {
    position: absolute !important;
    top: 56px !important;
    left: 15px !important;
    width: calc(100% - 15px) !important;
    font-size: 12px !important;
    color: #D81C22 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    z-index: 10 !important;
}

/* 修复：成功后防止卡片增大 */
.stk-9591035-column {
    background: rgba(255, 255, 255, .5) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    min-height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* 成功确认消息居中与样式 */
.wpforms-confirmation-container {
    color:#000;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wpforms-confirmation-container p {
    padding: 0 !important;
    text-align: center !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 0.8 !important;
}

.wpforms-confirmation-container a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.wpforms-confirmation-container .custom-btn p {
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 40px !important;
}

@media (max-width: 767px) {
/* 顶部行弹窗设置：弹窗容器宽度 */
.promo-modal-content {
     width: 90% !important;
     padding: 50px 13px !important;
    }

/* 表单布局：横向 flex 改为垂直堆叠 */
#wpforms-form-157 {
    flex-direction: column !important;
    align-items: center !important;
    }

/* 关键修复：打破父级容器的 width: auto 限制，释放全宽空间 */
#wpforms-form-157 .wpforms-field-container,
#wpforms-form-157 .wpforms-field,
#wpforms-form-157 .wpforms-field-email,
#wpforms-form-157 .wpforms-submit-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    }

/* 输入框：强行覆盖 PC 端的 min-width/max-width，实现 100% 满幅 */
#wpforms-form-157 .wpforms-field-email input[type="email"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
    display: block !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    }

/* 提交按钮：强制满幅 100% */
#wpforms-form-157 .wpforms-submit-container button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    }
}

/*==================================
  页脚连接文本下划线样式
==================================*/
/* 精准定位这两个元素，赋予相对定位 */
.stk-j3kd5yz .stk-block-text__text a,
.stk-97v8zog .stk-block-text__text a {
    text-decoration: none;
    padding-bottom: 4px;
    display: inline-block;
    position: relative;
}

/* 制作默认缩放为 0（隐藏）的纯白下划线，动画原点在右边 */
.stk-j3kd5yz .stk-block-text__text a::after,
.stk-97v8zog .stk-block-text__text a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;

    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* 鼠标悬浮时，动画原点切到左边，并向右展开 */
.stk-j3kd5yz .stk-block-text__text a:hover::after,
.stk-97v8zog .stk-block-text__text a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/*==================================
  联系我们表单样式
==================================*/

#wpforms-form-156 label{
  font-size:12px;
  color:#555;
  display:block;
  margin-bottom:6px;
}
#wpforms-form-156 input,
#wpforms-form-156 textarea{
	 width: 100% !important;
  padding:14px;
  border:1px solid #ddd;
  margin-bottom:18px;
  font-size:14px;
}
#wpforms-form-156 input:focus,
#wpforms-form-156 textarea:focus{
  border-color:#111;
  outline:none;
}
#wpforms-form-156 button{
  width:100%;
  padding:14px;
  background:#111;
  color:#fff;
  border:none;
  font-size:13px;
  letter-spacing:1px;
  cursor:pointer;
}
#wpforms-form-156 button:hover{
  background:#333;
}

/*==================================
  WooCommerce产品归档页侧边栏隐藏星级
==================================*/
/* 隐藏侧边栏产品列表中星级评分 */
.sidebar .star-rating,
.widget_top_rated_products .star-rating {
    display: none !important;
}

/* 调整间距，让产品名和价格看起来更紧凑 */
.widget_top_rated_products .product-title {
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 产品简述超长截断... */
[data-products] li.product {
    min-width: 0 !important;
}

li.product .entry-excerpt {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

li.product .entry-excerpt p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

/*==================================
  SALE Badge 极简风格
==================================*/
/* commerce全局 */
.woocommerce span.onsale {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0px 6px !important;
    background: #161515 !important;
    color: #fff !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    text-transform: uppercase;
    border: none !important;
}
.onsale, .out-of-stock-badge, [class*=ct-woo-badge-]{
 height: var(--badge-height, 20px)!important;
  z-index: 999;
}


/*==================================
  WooCommerce 国际标准响应式产品网格布局 (Grid 方案)
==================================*/

/* 基础配置：清除 WooCommerce 默认的浮动和外边距干扰 */
.woocommerce ul.products {
    display: grid !important;
    margin: 0 0 2em 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* 移除商品列表项默认的浮动和宽度限制 */
.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* woo标题、简短描述、价格样式 */
[data-products] .product .woocommerce-loop-product__title {
	font-size:14px;
   margin-bottom:4px !important;
}
[data-products] .product .entry-excerpt{
   font-size:13px;
   margin-bottom:8px !important;
}
[data-products] .product .price{
   font-size:14px;
   font-weight:400;
   margin-bottom:0px !important;
}
/* ---------------------------------
   断点控制 (Breakpoints)
---------------------------------- */

/* 手机移动端：默认状态 1行2列 */
@media (max-width: 767px) {
.woocommerce ul.products {
   grid-template-columns: repeat(2, 1fr) !important;
   gap: 12px !important;
    }

.woocommerce ul.products li.product{
    margin:0!important;
    width:100%!important;
  }
}

/* iPad / 平板端：768px 及以上，1行3列 */
@media (min-width: 768px) and (max-width: 1023px) {
.woocommerce ul.products {
   grid-template-columns: repeat(2, 1fr) !important;
   gap: 20px !important;
    }
}

/* PC 电脑端：1024px 及以上，1行4列 */
@media (min-width: 1024px) {
.woocommerce columns-4 {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
    }
}

/* =========================================================
   已注释代码（保留原样，未删除，统一归档于此）
========================================================= */

/*
@media (min-width: 691px) and (max-width: 1000px) {
.final-sale-home-cta [data-products] {
  --shop-columns: repeat(3, minmax(0, 1fr))
	}
}

.final-sale-home-cta .product {
	--theme-text-color: rgba(255, 255, 255, 0.5);
	--theme-heading-color: #fff;
}
*/

/*
非空购物袋左侧隐藏 "--OR--"
.woocommerce-cart .wc-block-components-express-payment-continue-rule--cart {
    display: none !important;
}
*/

/*
移除payment-options占位
body.woocommerce-cart .wc-block-cart__payment-options {
    display: none !important;
}
*/