/*
Theme Name: Leahz Theme
Theme URI: https://leahz.com
Author: Leah z
Author URI: https://leahz.com
Description: Custom WordPress theme for Leahz jewelry store
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leahz
Tags: jewelry, e-commerce, custom

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;400;800&display=swap');

/* 全局变量定义 - 统一字体大小为11px */
:root {
    --font-light: 200;
    --font-medium: 400;
    --font-bold: 800;
    --font-size-small: 11px;
    --font-size-medium: 11px;
    --font-size-large: 11px;
}

/* 全局盒模型设置 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 导入原始样式表 - 已集成到当前文件 */
/* 原来的导入已被移除，因为文件不存在 */
/* @import url('../styles.css'); */
/* @import url('../home.css'); */

/* 全局基础样式 */
body, button, input, select, textarea {
    font-family: 'Open Sans', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 修复WordPress默认包装问题 */
#page, #content, .site, .site-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: var(--font-light);
}

p, li, a, span, div {
    font-family: 'Open Sans', sans-serif;
}

/* 产品页面样式 - 非单一产品页面的样式 */
/* 注意：这些样式不应该应用于单一产品页面，单一产品页面使用 single-product.css */

/* 产品详情页面布局 - 非单一产品页面 */
body:not(.single-product) .product-detail {
    display: flex;
    flex-direction: row;
    padding: 0;
    max-width: 100%;
    margin: 0;
    position: relative;
}

/* 左侧图片区域 - 非单一产品页面 */
body:not(.single-product) .product-images {
    flex: 1;
    width: 60%;
    position: relative;
}

.image-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* 右侧信息区域 - 非单一产品页面 */
body:not(.single-product) .product-detail .product-info {
    flex: 1;
    width: 40%;
    padding: 60px 60px 60px 40px;
    display: flex;
    flex-direction: column;
}

body:not(.single-product) .product-detail .product-title {
    font-size: var(--font-size-large);
    font-weight: var(--font-light);
    margin: 0 0 10px 0;
    text-transform: none;
    letter-spacing: 0;
}

body:not(.single-product) .product-detail .brand-name {
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body:not(.single-product) .product-detail .product-price {
    font-size: var(--font-size-medium);
    font-weight: var(--font-light);
    margin: 20px 0 30px 0;
}

body:not(.single-product) .product-detail .brand-description {
    font-size: var(--font-size-medium);
    font-weight: var(--font-light);
    margin: 20px 0;
    line-height: 1.5;
}

body:not(.single-product) .brand-name {
    font-size: 10px;
    color: #666;
    margin-bottom: 30px;
}

body:not(.single-product) .brand-description {
    font-size: 10px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 颜色选择 - 非单一产品页面 */
body:not(.single-product) .color-selection {
    margin: 30px 0;
}

body:not(.single-product) .color-selection h3 {
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    margin-bottom: 15px;
}

body:not(.single-product) .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

body:not(.single-product) .color-option {
    min-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    font-size: var(--font-size-small);
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

body:not(.single-product) .color-option:hover {
    border-color: #000;
}

body:not(.single-product) .color-option.active {
    border: 2px solid #000;
}

/* 购物车按钮和收藏按钮容器 - 非单一产品页面 */
body:not(.single-product) .cart-wishlist-container {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    width: 100%;
}

/* 收藏按钮 - 非单一产品页面 */
body:not(.single-product) .wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body:not(.single-product) .wishlist-btn i {
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

body:not(.single-product) .wishlist-btn:hover {
    background: #f5f5f5;
}

/* 添加到购物车按钮 - 非单一产品页面 */
body:not(.single-product) .add-to-cart {
    flex: 1;
    padding: 15px 20px;
    background: #000;
    color: #fff;
    border: none;
    font-size: var(--font-size-medium);
    font-weight: var(--font-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body:not(.single-product) .add-to-cart:hover {
    background: #333;
}

/* 可展开部分 - 非单一产品页面 */
body:not(.single-product) .expandable-sections {
    border-top: 1px solid #eee;
    margin-top: 40px;
}

body:not(.single-product) .section {
    border-bottom: 1px solid #eee;
}

body:not(.single-product) .section-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    text-transform: none;
    text-align: left;
    position: relative;
}

/* 添加固定宽度的文本容器，确保文本不会移动 - 非单一产品页面 */
body:not(.single-product) .section-header-text {
    flex: 1;
}

body:not(.single-product) .plus {
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* 确保不会缩小 */
    display: flex;
    justify-content: center;
    align-items: center;
}

body:not(.single-product) .plus i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    transition: opacity 0.3s ease;
}

body:not(.single-product) .plus i.ph-plus {
    opacity: 1;
}

body:not(.single-product) .plus i.ph-minus {
    opacity: 0;
}

body:not(.single-product) .section.active .plus i.ph-plus {
    opacity: 0;
}

body:not(.single-product) .section.active .plus i.ph-minus {
    opacity: 1;
}

body:not(.single-product) .section-content {
    padding: 0 0 30px;
    display: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
    line-height: 1.6;
    color: #666;
}

body:not(.single-product) .section.active .section-content {
    display: block;
}

/* 产品信息列表 - 非单一产品页面 */
body:not(.single-product) .product-info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body:not(.single-product) .product-info-list li {
    margin-bottom: 10px;
    display: flex;
}

body:not(.single-product) .product-info-list li strong {
    min-width: 120px;
    font-weight: var(--font-medium);
}

/* 调整产品详情页面的导航栏颜色 */
.main-nav {
    color: #333;
}

.search-bar input {
    border-color: #333;
    color: #333;
}

.search-bar button {
    color: #333;
}

/* 相似产品部分 - 非单一产品页面 */
body:not(.single-product) .similar-products {
    padding: 60px 40px;
    margin-top: 60px;
}

body:not(.single-product) .similar-products h2 {
    margin-bottom: 40px;
    text-align: center;
}

/* 确保产品网格在这个部分的样式一致 - 非单一产品页面 */
body:not(.single-product) .similar-products .products-grid {
    margin-top: 0;
}

/* Footer Styles - Based on voostore.com */
.site-footer {
    padding: 40px 20px 20px;
    background-color: #fff;
    color: #000;
    font-size: var(--font-size-small);
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-left, .footer-center, .footer-right {
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: var(--font-size-large);
    font-weight: var(--font-medium);
    text-decoration: none;
    color: #000;
    margin-bottom: 5px;
}

.footer-location {
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
    color: #666;
}

.footer-newsletter h3 {
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input[type="email"] {
    border: none;
    border-bottom: 1px solid #000;
    padding: 5px 0;
    background: transparent;
    margin-right: 10px;
    width: 200px;
}

.newsletter-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: var(--font-medium);
    font-size: var(--font-size-small);
    padding: 5px 0;
}

.footer-social {
    display: flex;
    align-items: center;
}

.footer-social a {
    margin-right: 15px;
    color: #000;
    text-decoration: none;
}

.customer-service-link {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
}

.footer-location-language {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-links a {
    margin-right: 15px;
    color: #000;
    text-decoration: none;
    margin-bottom: 5px;
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #666;
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
    }

    .footer-left, .footer-center, .footer-right {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-links a {
        margin-bottom: 10px;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }
}

/* Blog Slider Section - Based on samubhi.com */
.blog-slider-section {
    padding: 40px 0; /* 减少上下内边距 */
    overflow: hidden;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
}

.blog-slider-section .container {
    padding: 0; /* 移除容器内边距 */
    width: 100%; /* 确保容器占满宽度 */
    max-width: none; /* 移除最大宽度限制 */
}

/* .section-title 样式已移除，现在统一使用 .leahz-product-list__title */

.blog-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0;
    margin: 0 30px;
    width: calc(100% - 60px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.blog-slider::-webkit-scrollbar {
    height: 4px;
}

.blog-slider::-webkit-scrollbar-track {
    background: transparent;
}

.blog-slider::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.blog-card {
    flex: 0 0 var(--card-width, 300px);
    min-width: var(--card-width, 300px);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 15px 0;
}

.blog-title {
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    margin: 0 0 10px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-excerpt {
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-date {
    font-size: var(--font-size-small);
    color: #999;
    font-weight: var(--font-light);
}

/* Responsive Blog Slider */
@media (max-width: 768px) {
    .blog-slider-section {
        padding: 40px 0;
    }

    /* .section-title 响应式样式已移除 */

    .blog-card {
        flex: 0 0 250px;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .blog-card {
        flex: 0 0 200px;
        min-width: 200px;
    }

    .blog-content {
        padding: 10px 0;
    }

    /* .section-title 小屏幕响应式样式已移除 */
}

/* 自定义轮播图样式 */
.hero-section-wrapper {
    position: relative;
    width: 100%; /* 修改为 100% 而不是 100vw，避免水平滚动条 */
    height: 100vh;
    z-index: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    padding-bottom: 50px; /* 调整底部填充，使下边缘与轮播图下边缘只有50px的间距 */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff; /* 纯白色文字 */
    text-align: left;
}

.hero-slide-title {
    font-size: 18px; /* 将主标题字号改为18px */
    font-weight: var(--font-light);
    margin-bottom: 10px;
    color: #ffffff !important; /* 强制纯白色标题 */
}

.hero-slide-description {
    font-size: var(--font-size-medium);
    font-weight: var(--font-light);
    margin-bottom: 20px;
    max-width: 600px;
    color: #ffffff !important; /* 强制纯白色描述文字 */
}

.hero-slide-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    font-size: var(--font-size-small);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-slide-link:hover .hero-slide-button {
    background-color: #000;
    color: #fff;
}

.hero-slider-controls {
    position: absolute;
    bottom: 20px; /* 调整位置，使其与轮播图下边缘更近 */
    left: 40px; /* 与标题内容对齐 */
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10; /* 确保控制按钮在链接上方 */
    pointer-events: none; /* 默认不响应鼠标事件 */
    opacity: 1; /* 确保指示器可见 */
}

.hero-slider-dot {
    pointer-events: auto; /* 允许圆点响应鼠标事件 */
}

.hero-slider-prev,
.hero-slider-next {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    opacity: 1;
}

.hero-slider-dots {
    display: flex;
    margin: 0;
}

.hero-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-slider-dot.active {
    background-color: #fff;
}

/* 原始轮播图样式 */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    max-width: 100%; /* 确保不超出容器宽度 */
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 响应式轮播图 */
@media (max-width: 768px) {
    .hero-slider {
        height: 100vh;
    }

    .hero-slide-content {
        padding: 20px;
        padding-bottom: 40px; /* 移动设备上减少底部填充 */
    }

    .hero-slide-title {
        font-size: 18px; /* 保持与大屏幕一致的字号 */
    }

    .hero-slide-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .hero-slider-controls {
        bottom: 15px; /* 移动设备上调整指示器位置 */
        left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 100vh;
    }

    .hero-slide-content {
        padding: 15px;
        padding-bottom: 35px; /* 小屏幕设备上进一步减少底部填充 */
    }

    .hero-slide-title {
        font-size: 18px; /* 保持与大屏幕一致的字号 */
    }

    .hero-slide-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-slider-controls {
        bottom: 10px; /* 小屏幕设备上调整指示器位置 */
        left: 15px;
    }

    .hero-slider-dot {
        width: 5px;
        height: 5px;
        margin: 0 3px;
    }
}

/* 产品列表样式 */
.recommend-products {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 40px 0;
    clear: both;
}

/* related-products样式已移除 */

.recommend-products {
    background-color: #fff;
    padding: 40px 0; /* 减少上下内边距 */
}

.recommend-products-first {
    margin-top: 0; /* 移除上边距 */
}

.recommend-products-second {
    background-color: #f9f9f9;
    margin-top: 0; /* 移除上边距 */
}

.product-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

/* 每行显示6个产品 */
.product-grid-six {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-new {
    position: relative;
    overflow: hidden;
    /* 移除悬停放大效果 */
}

.product-card-large .product-images {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-card-large .product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-card-large .first-img {
    opacity: 1;
}

.product-card-large .second-img {
    opacity: 0;
}

.product-card-large:hover .first-img {
    opacity: 0;
}

.product-card-large:hover .second-img {
    opacity: 1;
}

.product-card-large .product-info {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
}

.product-card-large .product-left-info {
    flex: 1;
}

.product-card-large .product-title {
    font-size: var(--font-size-medium);
    font-weight: var(--font-light);
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-large .product-description {
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-large .product-details {
    text-align: right;
    min-width: 80px;
}

.product-card-large .product-price {
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    margin: 0;
}

/* 产品列表统一样式 - 非单一产品页面 */
/* 产品列表样式 - 非单一产品页面 */
body:not(.single-product) .recommend-products .product-grid-new {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

body:not(.single-product) .recommend-products .product-card-new {
    position: relative;
    overflow: hidden;
    /* 移除悬停放大效果 */
}

body:not(.single-product) .recommend-products .product-images {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

body:not(.single-product) .recommend-products .product-info {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
}

/* 颜色变体样式 - 非单一产品页面 */
body:not(.single-product) .recommend-products .color-variants {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
}

body:not(.single-product) .recommend-products .color-variant {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    cursor: pointer;
}

body:not(.single-product) .recommend-products .product-left-info {
    flex: 1;
}

body:not(.single-product) .recommend-products .product-title {
    font-size: var(--font-size-medium);
    font-weight: var(--font-light);
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.single-product) .recommend-products .product-description {
    font-size: var(--font-size-small);
    font-weight: var(--font-light);
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body:not(.single-product) .recommend-products .product-details {
    text-align: right;
    min-width: 80px;
}

body:not(.single-product) .recommend-products .product-price {
    font-size: var(--font-size-medium);
    font-weight: var(--font-medium);
    margin: 0;
}

/* related-products样式已移除 */

/* 响应式产品列表 - 非单一产品页面 */
@media (max-width: 1400px) {
    body:not(.single-product) .product-grid-six {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    body:not(.single-product) .product-grid-six {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body:not(.single-product) .product-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    body:not(.single-product) .product-grid-six {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    body:not(.single-product) .product-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }

    body:not(.single-product) .product-card-large .product-info {
        flex-direction: column;
    }

    body:not(.single-product) .product-card-large .product-details {
        text-align: left;
        margin-top: 10px;
    }

    body:not(.single-product) .product-grid-six {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Product category hierarchy styling */
.product-category {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.product-category strong {
    color: #333;
}

.category-hierarchy {
    color: #0073aa;
    font-weight: 500;
}

/* Product brand styling */
.product-brand {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.product-brand strong {
    color: #333;
}

.product-brand a {
    color: #0073aa;
    text-decoration: none;
}

.product-brand a:hover {
    text-decoration: underline;
}

/* Category hierarchy styling in filter sidebar */
.category-hierarchy-filter {
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.filter-list a:hover .category-hierarchy-filter {
    color: #0073aa;
}

.filter-list a.active .category-hierarchy-filter {
    color: #0073aa;
    font-weight: 500;
}

/* Tree-style category filter */
.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin: 0;
    padding: 0;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: #0073aa;
}

.category-link.active {
    color: #0073aa;
    font-weight: 500;
}

.category-name {
    margin-right: 1ch;
}

.category-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    display: inline !important;
    font-family: inherit !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
}

.category-toggle:focus {
    outline: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.category-toggle:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.category-toggle:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit !important;
}

.category-arrow {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: 900 !important;
    transition: transform 0.2s ease;
    display: inline !important;
    font-family: inherit !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.category-toggle.expanded .category-arrow {
    transform: rotate(180deg) !important;
}

.filter-count {
    color: #666;
    font-size: 12px;
    margin-left: auto;
}

.category-link:hover .filter-count {
    color: #0073aa;
}

.category-link.active .filter-count {
    color: #0073aa;
}

.category-children {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
    border-left: 1px solid #eee;
    margin-left: 10px;
}

.category-child .category-link {
    font-size: 12px;
    padding: 6px 0;
    color: #666;
}

.category-child .category-link:hover {
    color: #0073aa;
}

.category-child .category-link.active {
    color: #0073aa;
    font-weight: 500;
}

.level-1 {
    padding-left: 0;
}

.level-2 {
    padding-left: 15px;
}

.level-3 {
    padding-left: 30px;
}

/* 强制确保分类名称间距正确 */
.filter-section .category-name,
.filter-list .category-name,
.category-tree .category-name {
    margin-right: 1ch !important;
}

/* 筛选区域标题加粗 */
.filter-section h3 {
    font-weight: 600 !important;
}

/* 强制确保分类切换按钮样式正确 */
.filter-section .category-toggle,
.filter-list .category-toggle,
.category-tree .category-toggle {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    display: inline !important;
    font-family: inherit !important;
    cursor: pointer !important;
}

.filter-section .category-toggle:hover,
.filter-list .category-toggle:hover,
.category-tree .category-toggle:hover,
.filter-section .category-toggle:focus,
.filter-list .category-toggle:focus,
.category-tree .category-toggle:focus,
.filter-section .category-toggle:active,
.filter-list .category-toggle:active,
.category-tree .category-toggle:active {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    color: inherit !important;
}

.filter-section .category-arrow,
.filter-list .category-arrow,
.category-tree .category-arrow {
    font-size: inherit !important;
    color: inherit !important;
    font-weight: 900 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    font-family: inherit !important;
}

.filter-section .category-toggle.expanded .category-arrow,
.filter-list .category-toggle.expanded .category-arrow,
.category-tree .category-toggle.expanded .category-arrow {
    transform: rotate(180deg) !important;
}