/*
Theme Name: Otaku Child - ANIMEAIPRINT
Description: OTAKU主题的子主题，专为ANIMEAIPRINT定制，包含LinkPrint功能
Author: ANIMEAIPRINT Team
Template: otaku
Version: 1.0.0
Text Domain: otaku-child
*/

/* 
==========================================================================
ANIMEAIPRINT 自定义样式
==========================================================================
*/



/* ANIMEAIPRINT 品牌Logo优化 */
.header-logo .logo-text {
    color: #EE9CA7 !important;
    font-family: Helvetica !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

.page_content_wrap {
    padding-top: 2.1rem !important;
    padding-bottom: 3.4rem !important;
}

/* 搜索框增强效果 */
.search-field:focus {
    box-shadow: 0 0 0 3px rgba(111, 201, 205, 0.2);
    border-color: #6FC9CD;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .linkprint-top-banner {
        padding: 6px 0;
    }
    
    .linkprint-top-banner .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* 动画效果 */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



/* 自定义按钮样式 */
.btn-animeai {
    background: linear-gradient(135deg, #6FC9CD, #5AB8BC);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-animeai:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 201, 205, 0.3);
    color: white;
}
.content_wrap, .content_container{
    width:  var(--theme-var-page_width_boxed,1400px);
    max-width: 1400px !important;
    margin: 0 auto;
    padding-left: var(--theme-var-page_fullwide_extra);
    padding-right: var(--theme-var-page_fullwide_extra);
}

/* ================================================================ */
/* 核心LinkPrint Header和Footer样式 - 确保所有页面都有基本样式 */
/* ================================================================ */

/* LinkPrint Top Banner */
.linkprint-top-banner {
    background: #000000;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.linkprint-top-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--theme-var-page_width_boxed);
    max-width: 1400px !important;
    margin: 0 auto;
    padding-left: var(--theme-var-page_fullwide_extra);
    padding-right: var(--theme-var-page_fullwide_extra);
}

.banner-location, .banner-brand {
    color: #e59c0e;
    font-size: 0.85rem;
    font-weight: bold;
}

/* LinkPrint Header */
.linkprint-header {
    background: #000000;
    color: white;
    padding: 0;
}

.linkprint-header .container, .header-navigation .container, .linkprint-footer .container {
    width: var(--theme-var-page_width_boxed);
    max-width: 1400px !important;
    margin: 0 auto;
    padding-left: var(--theme-var-page_fullwide_extra);
    padding-right: var(--theme-var-page_fullwide_extra);
}

.header-content {
    display: flex;
    align-items: center;
    padding: 5px 0;
    justify-content: space-between;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    width: 32px !important;
    height: 32px !important;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.header-search {
    flex: 1;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 40px;
    width: 400px !important;
    max-width: 550px !important;
}

.search-field {
    width: 100%;
    padding: 15px 60px 15px 25px !important;
    border: none;
    border-radius: 30px !important;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-field::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.search-submit {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: black !important;
    cursor: pointer;
    padding: 12px 15px !important;
    border-radius: 30px !important;
    display: flex;
    align-items: center;
    background: white !important;
    justify-content: center;
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: fit-content;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 7px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.header-action:hover span {
    color: #EE9CA7;
}

.header-action svg {
    width: 24px;
    height: 24px;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -8px;
    left: 15px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Account Dropdown Styles */
.account-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.account-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.account-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.account-trigger:hover span {
    color: #EE9CA7;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.account-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.account-dropdown:hover .account-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: #EE9CA7;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.dropdown-item:hover svg {
    color: #EE9CA7;
}

/* Mobile Sidebar User Info Styles */
.sidebar-user-info {
    padding: 20px 16px 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.user-greeting svg {
    color: #EE9CA7;
}

.logout-item {
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
    padding-top: 16px;
}

.logout-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.logout-item:hover svg {
    color: #dc2626;
}

/* Header Navigation */
.header-navigation {
    background: #1A1A1A;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    justify-content: center;
    height: 50px;
    align-items: center;
    font-size: 0.9rem;
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item.current .nav-link {
    color: #EE9CA7;
}

/* LinkPrint Footer */
.linkprint-footer {
    background: #000000;
    color: white;
    padding: 60px 0 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    display: block !important;
    visibility: visible !important;
}

.footer-section p {
    line-height: 1.6;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.footer-section.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
    visibility: visible !important;
}

.footer-section.menu li {
    margin-bottom: 6px;
    display: block !important;
    visibility: visible !important;
}

.footer-section.menu a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.menu a:hover {
    color: #60A5FA;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #374151;
}

.footer-copyright p {
    margin: 0;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* 404 Page Specific Styles */
.error-404-container {
    text-align: center;
    padding: 2rem 0;
    max-width: 100%;
    margin: 0 auto;
}

.error-404-image {
    max-width: 600px;
    width: 60%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.error-404-actions {
    margin-top: 2rem;
}

.back-to-home-btn {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 7px 18px;
    border: 2px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.back-to-home-btn:hover {
    background-color: #EE9CA7;
    color: white;
    border-color: #EE9CA7;
    box-shadow: 0 4px 12px rgba(238, 156, 167, 0.3);
}

.back-to-home-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(238, 156, 167, 0.3);
}

/* Ensure proper spacing for the 404 page */
body.error404 .page_content_wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

body.error404 .content_wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

body.error404 .content {
    width: 100%;
}

/* 平板端优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .error-404-image {
        max-width: 500px;
        width: 70%;
    }
}

/* 通用下拉框样式修改 - 箭头距离右侧5px */
.select_container:after {
    right: 8px !important;
}

/* 通用select元素样式 - 适用于所有下拉框 */
select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
}


/* 响应式设计 - 基本版本 */
@media (max-width: 768px) {
    /* 手机端Logo文字大小 */
    .header-logo .logo-text {
        font-size: 18px !important;
        margin-left: 5px !important;
    }
    
    .linkprint-top-banner .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        align-items: center;
    }
    
    .header-search {
        order: 2;
        max-width: 100%;
        width: 100%;
    }
    
    .search-wrapper {
        width: calc(100% - 60px) !important;
        max-width: calc(100% - 60px) !important;
    }
    
    .header-actions {
        order: 3;
        justify-content: center;
        gap: 25px;
    }
    
    .header-action {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 12px 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* 404 Page Mobile Styles */
    body.error404 .page_content_wrap {
        padding: 0.5rem 0;
        min-height: auto;
        display: block;
        align-items: flex-start;
    }
    
    .error-404-container {
        padding: 0.5rem;
    }
    
    .error-404-image {
        max-width: 350px;
        width: 75%;
        margin-bottom: 1rem;
    }
    
    .back-to-home-btn {
        padding: 10px 25px;
        font-size: 14px;
        margin: 0 1rem;
    }
    
    .error-404-actions {
        margin-top: 1rem;
    }
}

/* WooCommerce 下拉框箭头位置修正 - 强制样式 */
.woocommerce .woocommerce-ordering .select_container:after,
body.woocommerce .woocommerce-ordering .select_container:after,
html body.woocommerce .woocommerce-ordering .select_container:after {
    right: 10px !important;;
}

/* WooCommerce 商品列表顶部对齐 */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0;
}

.woocommerce .woocommerce-result-count {
    line-height: 48px; /* 与下拉框高度对齐 */
    margin-right: 20px;
    font-size: 18px;
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}

.woocommerce .woocommerce-ordering select {
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 30px 0 15px !important;
    font-size: 16px !important;
}

/* ================================================================ */
/* 产品页面购物车按钮样式 */
/* ================================================================ */

.add_to_cart_wrap button,
.add_to_cart_wrap input[type="button"],
.add_to_cart_wrap input[type="submit"],
.add_to_cart_wrap .button,
.add_to_cart_wrap .btn,
.add_to_cart_wrap a.button,
.add_to_cart_wrap a.btn {
    background: #000000 !important;
    color: #FFFFFF !important;
    font-family: Helvetica !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    border: none !important;
    padding: 0 15px !important;
    height: 40px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.add_to_cart_wrap button:hover,
.add_to_cart_wrap input[type="button"]:hover,
.add_to_cart_wrap input[type="submit"]:hover,
.add_to_cart_wrap .button:hover,
.add_to_cart_wrap .btn:hover,
.add_to_cart_wrap a.button:hover,
.add_to_cart_wrap a.btn:hover {
    background: #555555 !important;
    /* 移除按钮移动效果 */
    transform: none !important;
}

/* 平板端购物车按钮优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .add_to_cart_wrap button,
    .add_to_cart_wrap input[type="button"],
    .add_to_cart_wrap input[type="submit"],
    .add_to_cart_wrap .button,
    .add_to_cart_wrap .btn,
    .add_to_cart_wrap a.button,
    .add_to_cart_wrap a.btn {
        font-size: 13px !important;
        padding: 0 12px !important;
        height: 38px !important;
        min-width: 80px !important;
    }
}

/* 手机端购物车按钮优化 */
@media (max-width: 768px) {
    .add_to_cart_wrap button,
    .add_to_cart_wrap input[type="button"],
    .add_to_cart_wrap input[type="submit"],
    .add_to_cart_wrap .button,
    .add_to_cart_wrap .btn,
    .add_to_cart_wrap a.button,
    .add_to_cart_wrap a.btn {
        font-size: 16px !important;
        padding: 0 20px !important;
        height: 44px !important;
        min-width: 120px !important;
        border-radius: 6px !important;
        touch-action: manipulation !important;
    }
}

/* 小手机端购物车按钮优化 */
@media (max-width: 480px) {
    .add_to_cart_wrap button,
    .add_to_cart_wrap input[type="button"],
    .add_to_cart_wrap input[type="submit"],
    .add_to_cart_wrap .button,
    .add_to_cart_wrap .btn,
    .add_to_cart_wrap a.button,
    .add_to_cart_wrap a.btn {
        font-size: 14px !important;
        padding: 0 16px !important;
        height: 42px !important;
        min-width: 100px !important;
    }
}

/* ================================================================ */
/* 全站通用产品价格样式设置 - 适用于整个主题 */
/* ================================================================ */

/* 全站原价样式 ($18.50) - 深灰色，Inter字体 */
/* 适用于：产品列表、单品页、购物车、结账页、订单页、小工具等所有位置 */
.woocommerce .price del,
.woocommerce .price del *,
.woocommerce .price del .amount,
.woocommerce .price del .woocommerce-Price-amount,
.woocommerce .price del .woocommerce-Price-currencySymbol,
.woocommerce-Price-amount del,
.price del,
.price del *,
.price del .amount,
.woocommerce .regular-price,
.woocommerce-price-suffix del,
del .amount,
del .woocommerce-Price-amount,
/* 产品列表页 */
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del *,
.woocommerce-page ul.products li.product .price del,
.woocommerce-page ul.products li.product .price del *,
/* 单品页 */
.woocommerce div.product .price del,
.woocommerce div.product .price del *,
.single-product .price del,
.single-product .price del *,
/* 购物车页面 */
.woocommerce-cart .price del,
.woocommerce-cart .price del *,
.cart-item .price del,
.cart-item .price del *,
/* 结账页面 */
.woocommerce-checkout .price del,
.woocommerce-checkout .price del *,
/* 订单页面 */
.woocommerce-order .price del,
.woocommerce-order .price del *,
.woocommerce-account .price del,
.woocommerce-account .price del *,
/* 小工具 */
.widget .price del,
.widget .price del *,
.sidebar .price del,
.sidebar .price del *,
/* 相关产品 */
.related .price del,
.related .price del *,
.cross-sells .price del,
.cross-sells .price del *,
.up-sells .price del,
.up-sells .price del * {
    color: #333333 !important;
    font-family: Inter !important;
    font-size: 16px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    text-decoration: line-through !important;
}

/* 全站现价样式 ($15.00) - 红色，Helvetica字体 */
/* 适用于：产品列表、单品页、购物车、结账页、订单页、小工具等所有位置 */
.woocommerce .price ins,
.woocommerce .price ins .amount,
.woocommerce .price ins .woocommerce-Price-amount,
.woocommerce-Price-amount ins,
.price ins,
.price ins .amount,
.sale-price,
.woocommerce .sale-price,
.woocommerce .price > .amount,
.woocommerce .price > .woocommerce-Price-amount,
.price > .amount,
.woocommerce-Price-amount,
/* 产品列表页 */
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins *,
.woocommerce-page ul.products li.product .price ins,
.woocommerce-page ul.products li.product .price ins *,
.woocommerce ul.products li.product .price > .amount,
.woocommerce-page ul.products li.product .price > .amount,
/* 单品页 */
.woocommerce div.product .price ins,
.woocommerce div.product .price ins *,
.single-product .price ins,
.single-product .price ins *,
.woocommerce div.product .price > .amount,
.single-product .price > .amount,
/* 购物车页面 */
.woocommerce-cart .price ins,
.woocommerce-cart .price ins *,
.cart-item .price ins,
.cart-item .price ins *,
.woocommerce-cart .price > .amount,
.cart-item .price > .amount,
/* 结账页面 */
.woocommerce-checkout .price ins,
.woocommerce-checkout .price ins *,
.woocommerce-checkout .price > .amount,
/* 订单页面 */
.woocommerce-order .price ins,
.woocommerce-order .price ins *,
.woocommerce-account .price ins,
.woocommerce-account .price ins *,
.woocommerce-order .price > .amount,
.woocommerce-account .price > .amount,
/* 小工具 */
.widget .price ins,
.widget .price ins *,
.sidebar .price ins,
.sidebar .price ins *,
.widget .price > .amount,
.sidebar .price > .amount,
/* 相关产品 */
.related .price ins,
.related .price ins *,
.cross-sells .price ins,
.cross-sells .price ins *,
.up-sells .price ins,
.up-sells .price ins *,
.related .price > .amount,
.cross-sells .price > .amount,
.up-sells .price > .amount {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

/* 强制现价显示红色 */
.woocommerce .price ins *,
.price ins *,
ins * {
    color: #F5222D !important;
    font-family: Helvetica !important;
    text-decoration: none !important;
}

/* 价格区间连字符样式 */
.woocommerce .price,
.price {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1 !important;
}

/* 价格区间中的连字符 "-" 样式 */
.woocommerce .price .separator,
.woocommerce .price-separator,
.price .separator,
.price-separator {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 4px !important;
}

/* 通用连字符样式 - 匹配所有可能的连字符 */
.woocommerce .price:contains("–"),
.woocommerce .price:contains("-"),
.price:contains("–"),
.price:contains("-") {
    color: #F5222D !important;
}

/* 更具体的价格区间样式 */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce .single-product .price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

/* 使用伪元素处理连字符 */
.woocommerce .price del + ins::before,
.price del + ins::before {
    content: " – " !important;
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 隐藏原始连字符，用我们的样式替换 */
.woocommerce .price .woocommerce-price-suffix,
.price .woocommerce-price-suffix {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 针对WooCommerce价格区间的特殊处理 */
.woocommerce .price .amount:first-child + .amount::before,
.price .amount:first-child + .amount::before {
    content: " – " !important;
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 4px !important;
}

/* 强制所有价格容器内的文本显示红色 - 最高优先级 */
.woocommerce .price,
.woocommerce .price *,
.woocommerce .price::before,
.woocommerce .price::after,
.price,
.price *,
.price::before,
.price::after {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 覆盖所有可能的连字符和文本节点 */
.woocommerce .price,
.woocommerce .price span,
.woocommerce .price .amount,
.woocommerce .price .woocommerce-Price-amount,
.woocommerce .price .woocommerce-Price-currencySymbol,
.price,
.price span,
.price .amount,
.price .woocommerce-Price-amount,
.price .woocommerce-Price-currencySymbol {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 全站强制价格相关文本节点显示红色 */
.woocommerce .price,
.woocommerce .price *,
.price,
.price *,
/* 产品列表页 */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price *,
.woocommerce-page ul.products li.product .price,
.woocommerce-page ul.products li.product .price *,
/* 单品页 */
.woocommerce div.product .price,
.woocommerce div.product .price *,
.single-product .price,
.single-product .price *,
/* 购物车页面 */
.woocommerce-cart .price,
.woocommerce-cart .price *,
.cart-item .price,
.cart-item .price *,
/* 结账页面 */
.woocommerce-checkout .price,
.woocommerce-checkout .price *,
/* 订单页面 */
.woocommerce-order .price,
.woocommerce-order .price *,
.woocommerce-account .price,
.woocommerce-account .price *,
/* 小工具 */
.widget .price,
.widget .price *,
.sidebar .price,
.sidebar .price *,
/* 相关产品 */
.related .price,
.related .price *,
.cross-sells .price,
.cross-sells .price *,
.up-sells .price,
.up-sells .price * {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 全站单一价格 (无折扣时) - 显示为红色突出 */
.woocommerce .price:not(:has(del)):not(:has(ins)) .amount,
.woocommerce .price:not(:has(del)):not(:has(ins)) .woocommerce-Price-amount,
.price:not(:has(del)):not(:has(ins)) .amount,
/* 产品列表页单一价格 */
.woocommerce ul.products li.product .price:not(:has(del)):not(:has(ins)) .amount,
.woocommerce-page ul.products li.product .price:not(:has(del)):not(:has(ins)) .amount,
/* 单品页单一价格 */
.woocommerce div.product .price:not(:has(del)):not(:has(ins)) .amount,
.single-product .price:not(:has(del)):not(:has(ins)) .amount,
/* 购物车页面单一价格 */
.woocommerce-cart .price:not(:has(del)):not(:has(ins)) .amount,
.cart-item .price:not(:has(del)):not(:has(ins)) .amount,
/* 结账页面单一价格 */
.woocommerce-checkout .price:not(:has(del)):not(:has(ins)) .amount,
/* 订单页面单一价格 */
.woocommerce-order .price:not(:has(del)):not(:has(ins)) .amount,
.woocommerce-account .price:not(:has(del)):not(:has(ins)) .amount,
/* 小工具单一价格 */
.widget .price:not(:has(del)):not(:has(ins)) .amount,
.sidebar .price:not(:has(del)):not(:has(ins)) .amount,
/* 相关产品单一价格 */
.related .price:not(:has(del)):not(:has(ins)) .amount,
.cross-sells .price:not(:has(del)):not(:has(ins)) .amount,
.up-sells .price:not(:has(del)):not(:has(ins)) .amount {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

/* 平板端价格样式优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    /* 原价 (划线价格) */
    .woocommerce .price del,
    .woocommerce .price del .amount,
    .woocommerce .price del .woocommerce-Price-amount,
    .price del,
    .price del .amount {
        font-size: 15px !important;
    }
    
    /* 现价 */
    .woocommerce .price ins,
    .woocommerce .price ins .amount,
    .woocommerce .price > .amount,
    .woocommerce .price > .woocommerce-Price-amount,
    .sale-price,
    .woocommerce .sale-price,
    .woocommerce .price:not(:has(del)):not(:has(ins)) .amount {
        font-size: 18px !important;
    }
    
    /* 平板端价格对齐 */
    .woocommerce .price,
    .price {
        gap: 6px !important;
    }
    
    /* 平板端连字符 */
    .woocommerce .price .separator,
    .price .separator {
        font-size: 18px !important;
    }
}

/* 手机端价格样式优化 */
@media (max-width: 768px) {
    /* 原价 (划线价格) */
    .woocommerce .price del,
    .woocommerce .price del .amount,
    .woocommerce .price del .woocommerce-Price-amount,
    .price del,
    .price del .amount {
        font-size: 16px !important;
        font-weight: 600 !important;
    }
    
    /* 现价 */
    .woocommerce .price ins,
    .woocommerce .price ins .amount,
    .woocommerce .price > .amount,
    .woocommerce .price > .woocommerce-Price-amount,
    .sale-price,
    .woocommerce .sale-price,
    .woocommerce .price:not(:has(del)):not(:has(ins)) .amount {
        font-size: 18px !important;
        font-weight: 600 !important;
    }
    
    /* 手机端价格对齐 */
    .woocommerce .price,
    .price {
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }
    
    /* 手机端连字符 */
    .woocommerce .price .separator,
    .price .separator {
        font-size: 18px !important;
    }
}

/* 小手机端价格样式优化 */
@media (max-width: 480px) {
    /* 原价 (划线价格) */
    .woocommerce .price del,
    .woocommerce .price del .amount,
    .woocommerce .price del .woocommerce-Price-amount,
    .price del,
    .price del .amount {
        font-size: 14px !important;
    }
    
    /* 现价 */
    .woocommerce .price ins,
    .woocommerce .price ins .amount,
    .woocommerce .price > .amount,
    .woocommerce .price > .woocommerce-Price-amount,
    .sale-price,
    .woocommerce .sale-price,
    .woocommerce .price:not(:has(del)):not(:has(ins)) .amount {
        font-size: 16px !important;
    }
    
    /* 小手机端价格对齐 */
    .woocommerce .price,
    .price {
        gap: 3px !important;
        font-size: 14px !important;
    }
    
    /* 小手机端连字符 */
    .woocommerce .price .separator,
    .price .separator {
        font-size: 16px !important;
    }
}

/* ================================================================ */
/* JavaScript辅助样式 - 处理动态生成的连字符 */
/* ================================================================ */

/* 为JavaScript添加的红色连字符类 */
.red-separator {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

/* 通用文本节点强制样式 */
.woocommerce .price {
    color: #F5222D !important;
}

.woocommerce .price > * {
    color: inherit !important;
}

.woocommerce-table--order-details .woocommerce-table__line-item .woocommerce-table__product-name a{
    color: var(--theme-color-text_dark) !important;
}

/* 全站最高优先级强制样式 - 覆盖所有其他样式 */
html body .woocommerce .price,
html body .price,
html body .woocommerce ul.products li.product .price,
html body .woocommerce-page ul.products li.product .price,
html body .woocommerce div.product .price,
html body .single-product .price,
html body .woocommerce-cart .price,
html body .cart-item .price,
html body .woocommerce-checkout .price,
html body .woocommerce-order .price,
html body .woocommerce-account .price,
html body .widget .price,
html body .sidebar .price,
html body .related .price,
html body .cross-sells .price,
html body .up-sells .price {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

html body .woocommerce .price *:not(del):not(del *),
html body .price *:not(del):not(del *),
html body .woocommerce ul.products li.product .price *:not(del):not(del *),
html body .woocommerce-page ul.products li.product .price *:not(del):not(del *),
html body .woocommerce div.product .price *:not(del):not(del *),
html body .single-product .price *:not(del):not(del *),
html body .woocommerce-cart .price *:not(del):not(del *),
html body .cart-item .price *:not(del):not(del *),
html body .woocommerce-checkout .price *:not(del):not(del *),
html body .woocommerce-order .price *:not(del):not(del *),
html body .woocommerce-account .price *:not(del):not(del *),
html body .widget .price *:not(del):not(del *),
html body .sidebar .price *:not(del):not(del *),
html body .related .price *:not(del):not(del *),
html body .cross-sells .price *:not(del):not(del *),
html body .up-sells .price *:not(del):not(del *) {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-weight: 700 !important;
}

/* 全站原价强制覆盖 - 确保删除线价格显示深灰色 */
html body .woocommerce .price del,
html body .woocommerce .price del *,
html body .price del,
html body .price del *,
html body .woocommerce ul.products li.product .price del,
html body .woocommerce ul.products li.product .price del *,
html body .woocommerce-page ul.products li.product .price del,
html body .woocommerce-page ul.products li.product .price del *,
html body .woocommerce div.product .price del,
html body .woocommerce div.product .price del *,
html body .single-product .price del,
html body .single-product .price del *,
html body .woocommerce-cart .price del,
html body .woocommerce-cart .price del *,
html body .cart-item .price del,
html body .cart-item .price del *,
html body .woocommerce-checkout .price del,
html body .woocommerce-checkout .price del *,
html body .woocommerce-order .price del,
html body .woocommerce-order .price del *,
html body .woocommerce-account .price del,
html body .woocommerce-account .price del *,
html body .widget .price del,
html body .widget .price del *,
html body .sidebar .price del,
html body .sidebar .price del *,
html body .related .price del,
html body .related .price del *,
html body .cross-sells .price del,
html body .cross-sells .price del *,
html body .up-sells .price del,
html body .up-sells .price del * {
    color: #333333 !important;
    font-family: Inter !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

/* ================================================================ */
/* 购物车页面价格红色修改 - 仅修改颜色，保持其他样式 */
/* ================================================================ */

/* 购物车表格中的价格 - 只修改颜色为红色，排除表格标题 */
html body.woocommerce-cart table.cart tbody .product-price,
html body.woocommerce-cart table.cart tbody .product-price *,
html body.woocommerce-cart table.cart tbody .product-price .woocommerce-Price-amount,
html body.woocommerce-cart table.cart tbody .product-price .woocommerce-Price-currencySymbol,
html body.woocommerce-cart table.cart tbody .product-subtotal,
html body.woocommerce-cart table.cart tbody .product-subtotal *,
html body.woocommerce-cart table.cart tbody .product-subtotal .woocommerce-Price-amount,
html body.woocommerce-cart table.cart tbody .product-subtotal .woocommerce-Price-currencySymbol,
html body.woocommerce-cart table.cart tbody td.product-price,
html body.woocommerce-cart table.cart tbody td.product-price *,
html body.woocommerce-cart table.cart tbody td.product-subtotal,
html body.woocommerce-cart table.cart tbody td.product-subtotal *,
html body.woocommerce-cart .price:not(thead *):not(th *),
html body.woocommerce-cart .price *:not(thead *):not(th *),
html body.woocommerce-cart .price .woocommerce-Price-amount:not(thead *):not(th *),
html body.woocommerce-cart .price .woocommerce-Price-currencySymbol:not(thead *):not(th *),
html body.cart-item .price,
html body.cart-item .price *,
html body.cart-item .price .woocommerce-Price-amount,
html body.cart-item .price .woocommerce-Price-currencySymbol {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

/* 购物车总计区域价格 - 只修改颜色为红色 */
html body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-Price-amount,
html body.woocommerce-cart .cart-collaterals .cart_totals .woocommerce-Price-currencySymbol,
html body.woocommerce-cart .order-total .woocommerce-Price-amount,
html body.woocommerce-cart .order-total .woocommerce-Price-currencySymbol {
    color: #F5222D !important;
    font-family: Helvetica !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-decoration: none !important;
}

/* ================================================================ */
/* 电脑端购物车总计样式 - 与平板端保持一致 */
/* ================================================================ */

/* 电脑端购物车总计区域样式优化 */
@media (min-width: 769px) {
    html body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 30px !important;
    }
    
    html body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 400px !important;
        max-width: 100% !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        padding: 30px !important;
        margin: 0 !important;
    }
    
    html body.woocommerce-cart .cart_totals h2 {
        text-align: center !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    html body.woocommerce-cart .cart_totals table {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr:last-child {
        border-bottom: none !important;
        font-weight: 700 !important;
    }
    
    html body.woocommerce-cart .cart_totals table th,
    html body.woocommerce-cart .cart_totals table td {
        padding: 15px 0 !important;
        text-align: left !important;
        vertical-align: middle !important;
    }
    
    html body.woocommerce-cart .cart_totals table td {
        text-align: right !important;
    }
    
    html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin-top: 20px !important;
        text-align: center !important;
    }
    
    html body.woocommerce-cart .cart_totals .checkout-button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
    }
}

/* ================================================================ */
/* 手机端购物车总计样式 - 兼容布局 */
/* ================================================================ */

/* 手机端购物车总计区域样式优化 */
@media (max-width: 768px) {
    html body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-top: 20px !important;
        padding: 0 15px !important;
    }
    
    html body.woocommerce-cart .cart-collaterals .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 8px !important;
        padding: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    html body.woocommerce-cart .cart_totals h2 {
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #e9ecef !important;
    }
    
    html body.woocommerce-cart .cart_totals table {
        width: 100% !important;
        margin-bottom: 0 !important;
        font-size: 14px !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr {
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    html body.woocommerce-cart .cart_totals table tr:last-child {
        border-bottom: none !important;
        font-weight: 700 !important;
    }
    
    html body.woocommerce-cart .cart_totals table th,
    html body.woocommerce-cart .cart_totals table td {
        padding: 12px 0 !important;
        text-align: left !important;
        vertical-align: middle !important;
        font-size: 14px !important;
    }
    
    html body.woocommerce-cart .cart_totals table td {
        text-align: right !important;
    }
    
    html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin-top: 15px !important;
        text-align: center !important;
    }
    
    html body.woocommerce-cart .cart_totals .checkout-button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }
}

/* 小手机端进一步优化 */
@media (max-width: 480px) {
    html body.woocommerce-cart .cart-collaterals {
        padding: 0 10px !important;
        margin-top: 15px !important;
    }
    
    html body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 15px !important;
    }
    
    html body.woocommerce-cart .cart_totals h2 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
    }
    
    html body.woocommerce-cart .cart_totals table {
        font-size: 13px !important;
    }
    
    html body.woocommerce-cart .cart_totals table th,
    html body.woocommerce-cart .cart_totals table td {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }
    
    html body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
        margin-top: 12px !important;
    }
    
    html body.woocommerce-cart .cart_totals .checkout-button {
        padding: 15px !important;
        font-size: 13px !important;
    }
}

/* ================================================================ */
/* 手机端购物车变体信息间距优化 */
/* ================================================================ */

/* 手机端购物车变体信息样式调整 */
@media (max-width: 768px) {
    /* 变体信息容器 */
    .woocommerce table.cart .variation,
    .woocommerce-page table.cart .variation {
        margin: 5px 0 0 0 !important;      /* 上边距5px，左边距0 */
        padding: 0 !important;             /* 移除内边距 */
        text-align: left !important;       /* 左对齐 */
    }
    
    /* 变体信息列表 */
    .woocommerce table.cart .variation dl,
    .woocommerce-page table.cart .variation dl {
        margin: 0 !important;              /* 移除外边距 */
        padding: 0 !important;             /* 移除内边距 */
    }
    
    /* 变体信息项目 */
    .woocommerce table.cart .variation dt,
    .woocommerce table.cart .variation dd,
    .woocommerce-page table.cart .variation dt,
    .woocommerce-page table.cart .variation dd {
        margin: 0 !important;              /* 移除外边距 */
        padding: 0 !important;             /* 移除内边距 */
        display: inline !important;        /* 内联显示 */
        font-size: 13px !important;        /* 字体大小 */
        color: #666 !important;            /* 灰色文字 */
        line-height: 1.4 !important;       /* 行高 */
    }
    
    /* 变体标签样式 */
    .woocommerce table.cart .variation dt {
        font-weight: 500 !important;       /* 稍微加粗 */
        margin-right: 5px !important;      /* 右边距5px */
    }
    
    /* 变体值样式 */
    .woocommerce table.cart .variation dd {
        margin-right: 15px !important;     /* 右边距15px，用于分隔多个变体 */
    }
    
    /* 最后一个变体值不需要右边距 */
    .woocommerce table.cart .variation dd:last-child {
        margin-right: 0 !important;
    }
    
    /* 如果变体信息在产品名称内部 */
    .woocommerce table.cart .product-name .variation,
    .woocommerce-page table.cart .product-name .variation {
        margin-top: 3px !important;        /* 更小的上边距 */
        margin-left: 0 !important;         /* 左边距0，与产品名称对齐 */
    }
    
    /* 产品名称内的变体信息 */
    .woocommerce table.cart .product-name-inner .variation,
    .woocommerce-page table.cart .product-name-inner .variation {
        margin-top: 3px !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* 小手机端进一步优化 */
@media (max-width: 480px) {
    /* 小屏幕下的变体信息 */
    .woocommerce table.cart .variation,
    .woocommerce-page table.cart .variation {
        margin-top: 3px !important;        /* 更小的上边距 */
        font-size: 12px !important;        /* 更小的字体 */
    }
    
    .woocommerce table.cart .variation dt,
    .woocommerce table.cart .variation dd,
    .woocommerce-page table.cart .variation dt,
    .woocommerce-page table.cart .variation dd {
        font-size: 12px !important;        /* 更小的字体 */
    }
    
    .woocommerce table.cart .variation dd {
        margin-right: 10px !important;     /* 更小的右边距 */
    }
}


