/*
  主题名称: V966 主题
  描述: V966 印刷电商主题
  版本: 9.9
  文本域: wshop
*/

/* ============================================
   WooCommerce 全局样式
   ============================================ */
/* 隐藏 WooCommerce AJAX 添加后自动插入的"查看购物车"链接 */
.added_to_cart {
    display: none !important;
}

/* ============================================
   CSS 变量 / 设计令牌
   ============================================ */
:root,
[data-bs-theme="light"] {
    /* 品牌色 */
    --primary-color: #2ebec0;
    --primary-light: #6ED8D9;
    --primary-dark: #239ea0;
    --primary-pale: #97E3E4;
    --ps-primary-lt: #e5f9f8;
    --ps-green: #1da851;

    /* 中性色 */
    --white: #FFFFFF;
    --body-bg: #f8f9fa;
    --medium-gray: #999;
    --heading-color: #444;
    --black: #121212;
    --red: #e74c3c;
    --notice-bg: #ffd332;
    --bs-table-border-color: rgba(0, 0, 0, 0.09);

    /* 排版 */
    --font-heading-en: 'Montserrat', sans-serif;
    --font-body-en: 'Open Sans', sans-serif;
    --font-zh: 'Noto Sans TC', sans-serif;
    --font-serif: MiSans, "PingFang SC", "PingFang HK", "Microsoft Yahei", 微软雅黑, Arial, sans-serif;

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

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* 阴影 */
    --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);

    /* 过渡效果 */
    --transition: all 0.3s ease;
    --link-hover-color-rgb: 9, 9, 11;
}

/* ============================================
   基础样式 / 重置
   ============================================ */
html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body,
h1, h2, h3, h4, h5, h6,
html, p {
    font-family: var(--font-serif);
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--heading-color);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

.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);
}

/* ============================================
   排版工具类
   ============================================ */
.text-secondary {
    color: rgba(0, 0, 0, 0.46) !important;
}

.color-secondary,
.text-primary {
    color: var(--primary-color) !important;
}

.badge {
    font-size: 0.8rem;
}

.display-1 {
    font-weight: 300;
    line-height: 4.8rem;
    font-size: calc(3rem + 2.6vw);
}

/* ============================================
   按钮
   ============================================ */
.btn-light {
    color: var(--primary-color);
}

.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: var(--primary-color);
    --bs-btn-hover-bg: color-mix(in srgb, var(--primary-color) 20%, transparent);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: var(--primary-color);
    --bs-btn-active-bg: color-mix(in srgb, var(--primary-color) 20%, transparent);
    --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;
}

.btn-outline-secondary {
    --bs-btn-color: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: var(--primary-color);
    --bs-btn-hover-bg: none;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108,117,125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none
}
/* 按钮加载动画 */
.add-to-cart-btn {
    transition: var(--transition);
}

.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-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 0.25rem rgba(0, 0, 0, 0.065);
}

.form-control:focus,
.form-control.filled {
    color: rgba(0, 0, 0, 1);
}

.form-control::placeholder {
    opacity: 1;
    transition: opacity 0.2s;
}

.form-control:focus::placeholder {
    opacity: 0;
}

.login label {
    display: block;
    margin-bottom: 0.5rem;
}

.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: #000;
    cursor: pointer;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 0.7em;
    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;
}

/* ============================================
   布局
   ============================================ */
.table-light {
    --bs-table-border-color: rgba(0, 0, 0, 0.09);
}

.table {
    --bs-table-border-color: rgba(0, 0, 0, 0.09);
}

.border-bottom,
.border {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.mx-n5 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    border-radius: 0 !important;
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* ============================================
   页眉 / 导航
   ============================================ */
.navbar {
    position: relative;
}

.navbar-toggler {
    border: 0;
    position: absolute;
    top: -3.4rem;
    right: 0.8rem;
    z-index: 10001 !important;
}

.site-hd {
    border-bottom: 2px var(--black) solid;
    background: rgba(255, 255, 255, 0.85) !important;
}

.site-hd i {
    margin-right: 0.8rem;
}

.animate-default > a {
    color: var(--white);
    font-size: 1.1rem;
    text-align: left;
    background: var(--black);
    display: block;
    width: 100%;
    line-height: 55px;
    text-indent: 0.6rem;
}

.main-menu {
    margin: 0 0 0 1rem;
    font-size: 1.1rem;
    line-height: 48px;
    text-align: right;
}

.main-menu li {
    line-height: 1.4rem;
}

.main-menu li.current-menu-item {
    color: var(--primary-color);
}

.current_page_parent {
    color: var(--primary-color);
    font-weight: 500;
}

.navbar .menu-list {
    background-color: var(--primary-color);
    min-width: 308px;

    /* box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05); */
}

/* ============================================
   首页
   ============================================ */
.printing-hero {
    background: url(assets/img/bgbanner2.png)  color-mix(in srgb, var(--primary-color) 10%, transparent) no-repeat top -3rem right 20rem;
    position: relative;
    animation: scalePulse 2s ease-out forwards;
}
@keyframes scalePulse {
    0% { background-size: 45%; }
    100% { background-size: 50%; }
}   
.min-vh {    
    min-height: 55vh;
}

.home-background {
    background-color: var(--primary-color);
    color: var(--white);
}

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

/* ========================================
   首页 - 商品分类
   ======================================== */

.category-col {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.category-col img {
  width: 100%;
  height: 100%;
  max-width: inherit;
  object-fit: cover;
  margin-bottom: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.category-col:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 30%, transparent 40%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}
.category-content{
  color: white;
}
.category-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}
.category-content p,
.category-content p a{
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.v966-category-grid .category-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.v966-category-grid .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.v966-category-grid .category-card-img {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.v966-category-grid .category-card-img.ratio-1x1 { padding-bottom: 100%; }
.v966-category-grid .category-card-img.ratio-2x3 { padding-bottom: 150%; }
.v966-category-grid .category-card-img.ratio-3x2 { padding-bottom: 66.67%; }
.v966-category-grid .category-card-img.ratio-3x4 { padding-bottom: 133.33%; }
.v966-category-grid .category-card-img.ratio-4x3 { padding-bottom: 75%; }
.v966-category-grid .category-card-img.ratio-16x9 { padding-bottom: 56.25%; }
.v966-category-grid .category-card-img.ratio-21x9 { padding-bottom: 42.86%; }
.v966-category-grid .category-card-img-src {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v966-category-grid .category-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}
.v966-category-grid .category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1rem;
}
.v966-product-grid .page-nav {
    justify-content: center !important;
}
/* 红色箭头样式 */
.arrow-right {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 2px;
    background: var(--red);
    vertical-align: middle;
}
.arrow-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: -8px;
    width: 30px;
    height: 2px;
    background: var(--red);
    transform: rotate(30deg);
}

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

.left-menu .menu-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    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(--black);
    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: 1rem !important;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

.menu-arrow {
    color: var(--white);
    transition: all 0.3s ease;
    font-size: 14px;
}

/* 分类下拉菜单 */
.category-dropdown-wrapper {
    position: relative;
    z-index: 10002;
}

.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 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
}

.category-dropdown-wrapper:hover > .left-menu,
.category-dropdown-wrapper > .left-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   子菜单
   ============================================ */
.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: 0.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);
}

/* ============================================
   移动端菜单侧边栏
   ============================================ */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}

.mobile-menu-sidebar.active {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-sidebar.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.mobile-menu-sidebar.active .mobile-menu-content {
    transform: translateX(0);
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden !important;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.mobile-menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.mobile-menu-close:hover {
    color: #333;
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mobile-menu-search {
    padding: 4rem 1.5rem 0 1.5rem;
}

.mobile-menu-search .search-form {
    margin: 0;
}

.mobile-menu-search .input-group {
    display: flex;
}

.mobile-menu-search .form-control {
    border: 1px solid var(--primary-color);
    border-radius: 4px 0 0 4px;
    padding: 0.6rem 0.875rem;
    font-size: 16px;
    flex: 1;
}

.mobile-menu-search .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(70, 205, 207, 0.25);
}

.mobile-menu-search .btn {
    border-radius: 0 4px 4px 0;
    padding: 0.6rem 1rem;
}

.mobile-menu-language {
    padding: .4rem 1.6rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-language .language-label {
    font-size: 0.95rem;
    color: #333;
}

.mobile-menu-language .language-selector select {
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
    color: var(--primary-color);
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.mobile-menu-language .language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(70, 205, 207, 0.25);
}

.mobile-menu-list {
    list-style: none;
    padding: 2rem 0 0 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1.6rem;
    color: #333;
    font-size: 1.1rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-list li a:hover::after,
.mobile-menu-list li.current-menu-item a::after {
    color: #fff;
}

.mobile-menu-list li a:hover,
.mobile-menu-list li.current-menu-item a {
    font-size: 2rem;
    color: var(--black);
    position: relative;
}

.mobile-menu-list li.current-menu-item a::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top:0;
    bottom: 0;
    margin: auto;
    width: auto;
    height: 2px;
    background: var(--primary-color);
    /* transform: rotate(30deg); */
}

.mobile-menu-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    display: none;
}

.mobile-menu-list .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-menu-list .sub-menu li a {
    padding: 0.875rem 1.25rem 0.875rem 2.5rem;
    font-size: 0.95rem;
}

.mobile-menu-list .sub-menu li a::before {
    color: #bbb;
    font-size: 0.75rem;
}

.mobile-menu-list .sub-menu li a:hover::before {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-list .menu-item-has-children > a {
    position: relative;
}

.mobile-menu-list .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    color: #999;
    font-size: 0.875rem;
    transition: color 0.2s, transform 0.2s;
}

.mobile-menu-list .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

.mobile-menu-list .menu-item-has-children > a:hover::after,
.mobile-menu-list .menu-item-has-children.current-menu-item > a::after {
    color: #fff;
}

/* ============================================
   Logo
   ============================================ */
.icon {
    vertical-align: -0.15em;
    overflow: hidden;
    fill: var(--primary-color);
}

.icon use {
    width: 40%;
}

.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;
}

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

.list-group-flush > .list-group-item {
    display: flex;
}

/* ============================================
   内容标题
   ============================================ */
.entry-header {
    margin: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, transparent) 0%, color-mix(in srgb, var(--primary-color) 0%, transparent) 100%);
}

/* ============================================
   WooCommerce 通用样式
   ============================================ */
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;
    margin: 0 0 0 1rem;
    text-decoration: none;
}

.woocommerce-breadcrumb {
    display: none;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

.woocommerce-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
    margin: 0;
}

.woocommerce-Price-amount {

    color: var(--primary-color);
}

.woocommerce-pagination ul.page-numbers {
    line-height: 0.6;
    margin-top: 2rem;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.single-product div.product .product_meta {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

.sx-bar {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.shop-cont-wrap img {
    width: 100%;
    border-radius: 0.4rem;
    margin-bottom: 2rem;
}

/* 产品卡片 */
.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 0.25s, transform 0.25s;
}

.product-card-item:hover .product-card-overlay {
    opacity: 1 !important;
}

.product-card-item:hover img {
    transform: scale(1.04);
}

/* ============================================
   WooCommerce 排序
   ============================================ */
.woocommerce-ordering select {
   border: 1px solid #dee2e6;
   border-radius: 0.375rem;
   padding: 0.25rem 0.75rem;
   font-size: 0.875rem;
   appearance: auto;
}

/* ============================================
   商品视图切换
   ============================================ */
.btn-group .btn{
   border: 0;
   border-radius: 0;
}
.btn-group .btn.active{ background: none; color: var(--primary-color);}
.product-view-toggle .btn {
   padding: 0.25rem 1.5rem;
   font-size: 0.875rem;
}
.product-view-toggle .btn i {
   font-size: 0.875rem;
}

/* ============================================
   分页
   ============================================ */
.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;
}

.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.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: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    color: #6c757d;
}

.woocommerce-pagination ul li .current {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.woocommerce-pagination ul li a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================
   WooCommerce 消息
   ============================================ */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.alert-success {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-color: var(--notice-bg);
    background: color-mix(in srgb, var(--notice-bg), transparent 90%);
}

.woocommerce-info {
    font-size: 1.2rem;
    padding: 2rem;
    color: rgba(162, 131, 20, 0.86);
}

.woocommerce-info a {
    color: var(--primary-color);
}

.woocommerce-info a:hover {
    text-decoration: underline;
}

.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;
}

a.restore-item {
    color: var(--primary-color);
}

/* ============================================
   购物车
   ============================================ */
.cart-sidebar-content .dj-color .woocommerce-Price-amount {
    color: var(--bs-secondary-color);
}

.sale-hot {
    width: auto;
    height: auto;
    top: 0.5rem;
    left: 0.7rem;
}

.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 th {
    padding: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 1.4rem;
    border-bottom: 1px 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: var(--red);
}

/* 数量输入框 */
.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;
}

.cart-collaterals .wc-proceed-to-checkout a {
    display: block;
    padding: 0.6rem 1rem;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1rem;
    border: 0;
    font-size: 1.4rem;
}

.cart-collaterals .wc-proceed-to-checkout a:hover {
    background: var(--primary-dark);
    text-decoration: none !important;
}

.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;
}

.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;
}

/* ============================================
   结账
   ============================================ */
.wc-block-components-checkout-place-order-button {
    padding: 0.6rem 2rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    border: 0;
    font-size: 1rem;
}

.bg-danger {
    border: 1px solid var(--red) !important;
    background-color: var(--white) !important;
    color: var(--red);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ============================================
   我的账户
   ============================================ */
.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: var(--bs-table-border-color);
    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 1px 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;
    opacity: 0.5;
}

.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-Address-title,
.woocommerce-Address {
    width: 100%;
    margin-bottom: 2rem;
}

/* ============================================
   时间线（关于我们页面）
   ============================================ */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 52px;
    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;
}

/* ============================================
   首页小工具
   ============================================ */
.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;
}

/* ============================================
   页脚
   ============================================ */
.footer-content {
    background-color: var(--black);
    color: var(--medium-gray);
    font-size: 0.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: 0.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;
}

/* ============================================
   购物车图标
   ============================================ */
.cart-icon-wrap {
    display: inline-block;
    font-size: 0.7rem;
    padding-top: 0.4rem;
    right: 2.5rem;
    bottom: 8rem;
    width: 4rem;
    height: 4rem;
    text-align: center;
    line-height: 3.6rem;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    z-index: 9998;
}

.cart-icon-wrap:hover {
    color: var(--white);
    background: var(--black);
    transform: translateY(-3px);
}
.cart-icon-wrap .dr-dh{
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 46px;
    border: 3px solid transparent;
    box-shadow: 3px 0 0 var(--primary-color), -3px 0 0 var(--primary-color);
    animation: ellipseAnimation 3s ease-out infinite;
}
@keyframes ellipseAnimation {
    0% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.3);
        opacity: 0
    }

    to {
        transform: scale(1.3);
        opacity: 0
    }
}
.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;
}

/* ============================================
   登录
   ============================================ */
.lost_password a {
    color: var(--primary-color);
}

/* ============================================
   动画效果
   ============================================ */
.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: var(--white);
    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;
    bottom: 3rem;
    right: 3rem;
    position: fixed;
}

.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;
}

/* 宽高比 */
.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%;
}

/* ============================================
   响应式设计 - 移动端
   ============================================ */
@media (max-width: 768px) {
    .printing-hero {
        background: url(assets/img/bgbanner2.png)  color-mix(in srgb, var(--primary-color) 10%, transparent) no-repeat top -5rem left 2rem;
        background-size:200%; 
        animation: scalePulse 1.5s ease-out forwards;
    }
    @keyframes scalePulse {
        0% { background-size: 180%; }
        100% { background-size: 200%; }
    }  
    .min-vh {    
        min-height:60vh;
    }
    .site-hd {
        position: fixed;
        background-color: var(--white);
        z-index: 999;
        height: 72px;
        top: 0;
        left: 0;
        right: 0;
        border: 0;
        transition: transform 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .site-hd.show {
        transform: translateY(-100%);
    }

    .site-hd .container-fluid {
        position: relative;
        background-color: var(--white);
    }

    .navbar-toggler {
        position: absolute !important;
        top: -3.4rem !important;
        right: 0.8rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-menu {
        padding: 0 0.8rem;
    }

    .main-menu li {
        margin: 0;
        text-align: right;
    }

    .main-menu li a {
        display: block;
    }

    .main-menu li.current_page_item {
        font-size: 2.2rem;
        line-height: 2rem;
        font-weight: 300;
    }

    .header-gap {
        height: 4.5rem;
    }

    .foot-logo .icon use {
        left: -0.8rem !important;
    }

    .hd-logo svg {
        transform: scale(0.7);
        left: -4.6rem;
        top: -3.4rem;
    }

    .timeline-item::before {
        top: 38px;
    }

    .cart-icon-wrap {
        bottom: 6rem;
        right: 1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .needs-validation .btn {
        width: 100%;
    }

    .rounded-0 {
        border-radius: 0 !important;
    }

    .main-image img {
        margin-left: -1rem;
        margin-right: -1rem;
        max-width: calc(100% + 2rem);
    }

    /* 购物车表格移动端适配 */
    .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;
    }
}

/* ── 变体选择列表样式（Bootstrap list-group） ── */
.variation-item {
    cursor: pointer;
    transition: background-color 0.15s;
}

.variation-item:hover {
    background-color: #f8f9fa;
}

.variation-item.active {
    background-color: var(--primary-pale, #e8f8f8);
    border-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: #212529;
}

.variation-item.active .form-check-input {
    background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
}