/**
 * WooCommerce 产品详情页样式
 * Yanjing Theme
 */

/* ========================================
   产品页面包装
======================================== */
.product-page-wrapper {
    background: #fff;
}

/* ========================================
   面包屑导航
======================================== */
.product-breadcrumb {
    padding: 20px 0;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    display: none; /* 隐藏面包屑 */
}

.woocommerce-breadcrumb {
    font-size: 14px;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #ab8e66;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

/* ========================================
   上层：产品主要信息
======================================== */
.product-main-section {
    background: #fff;
    overflow: visible; /* 确保sticky能工作 */
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    position: relative;
    overflow: visible; /* 确保sticky能工作 */
}

/* ========================================
   左侧：产品相册（PC端 - Swiper）
======================================== */
.product-gallery {
    position: relative;
    overflow: visible; /* 确保内容可见 */
}

/* 相册心愿单按钮 - 只保留图标 */
.product-gallery-wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.product-gallery-wishlist-btn i {
    font-size: 30px;
    color: #ab8e66;
    transition: all 0.3s ease;
}

.product-gallery-wishlist-btn:hover i {
    transform: scale(1.1);
}

/* 心愿单按钮激活状态（已添加，实心） */
.product-gallery-wishlist-btn.active i {
    color: #ab8e66;
}

/* PC端相册容器 */
.product-gallery-desktop {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}

/* 左侧垂直分页指示器 - 固定在相册左侧中间 */
.gallery-pagination-vertical {
    position: sticky;
    top: 50vh; /* 固定在视口中间 */
    transform: translateY(-50%);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 20px;
    padding: 10px 0;
    flex-shrink: 0;
    z-index: 10;
}

.gallery-pagination-vertical .gallery-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(171, 142, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    margin: 0 !important;
    display: block;
    flex-shrink: 0;
    position: relative;
}

.gallery-pagination-vertical .gallery-bullet:hover {
    background: rgba(171, 142, 102, 0.6);
    transform: scale(1.2);
}

.gallery-pagination-vertical .gallery-bullet.active {
    background: #ab8e66 !important;
    box-shadow: 0 0 0 3px rgba(171, 142, 102, 0.2);
}

/* 相册容器 */
.product-gallery-container {
    flex: 1;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 相册加载状态 */
.product-gallery-container.gallery-loading {
    pointer-events: none;
    position: relative;
}

.product-gallery-container .gallery-item {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0;
    background: #f8f8f8;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 20px;
    flex-shrink: 0;
    opacity: 1;
}

.product-gallery-container .gallery-item:last-child {
    margin-bottom: 0;
}

.product-gallery-container .gallery-item:hover {
    transform: scale(1.02);
}

.product-gallery-container .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 相册加载时的效果 */
.product-gallery-container.gallery-loading .gallery-item {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    min-height: 400px;
}

.product-gallery-container.gallery-loading .gallery-item img {
    opacity: 0.2;
}

/* 指示器加载状态 */
.gallery-pagination-vertical.gallery-loading {
    pointer-events: none;
}

.gallery-pagination-vertical.gallery-loading .gallery-bullet {
    background: rgba(171, 142, 102, 0.15) !important;
    animation: bullet-pulse 1.5s infinite;
    box-shadow: none !important;
}

@keyframes bullet-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* 骨架屏加载效果 */
.gallery-skeleton-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 20px;
    border-radius: 0;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 移动端相册（默认隐藏） */
.product-gallery-mobile {
    display: none;
}

/* PC端相册（默认显示） */
.product-gallery-desktop {
    display: flex;
}

/* ========================================
   右侧：产品信息（PC端置顶跟随）
======================================== */
.product-summary {
    height: 100%;
}

.product-summary-inner {
    position: -webkit-sticky; /* Safari兼容 */
    position: sticky;
    top: 200px; /* 距离顶部200px */
    padding: 40px;
    background: #fff;
    border-radius: 0;
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05); */ /* 移除阴影 */
    max-height: calc(100vh - 220px); /* 确保不超出视口 */
    overflow-y: auto; /* 如果内容过长，允许滚动 */
    will-change: position; /* 性能优化 */
}

/* 自定义滚动条 */
.product-summary-inner::-webkit-scrollbar {
    width: 6px;
}

.product-summary-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-summary-inner::-webkit-scrollbar-thumb {
    background: #ab8e66;
    border-radius: 3px;
}

.product-summary-inner::-webkit-scrollbar-thumb:hover {
    background: #8d7454;
}

/* 产品标题 */
.product-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* 产品评分 */
.product-rating-wrapper {
    margin-bottom: 15px;
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-product-rating .star-rating {
    font-size: 16px;
}

.woocommerce-product-rating .woocommerce-review-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
    color: #ab8e66;
}

/* 产品价格 */
.product-price {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
}

/* 库存状态 */
.stock {
    display: none; /* 移除库存状态显示 */
}

.product-price del {
    color: #999;
    font-size: 14px;
    margin-right: 10px;
}

.product-price ins {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* 简短描述 */
.product-short-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
    /* padding-bottom: 30px; */
    /* border-bottom: 1px solid #eee; */ /* 移除边框线 */
}

.product-short-description p {
    margin-bottom: 10px;
}

/* 加入购物车区域 */
.product-add-to-cart {
    margin-bottom: 30px;
}

/* 隐藏数量选择器、购物车按钮和变体信息容器 */
.product-add-to-cart .quantity,
.product-add-to-cart .single_add_to_cart_button,
.product-add-to-cart .single_variation_wrap,
.product-add-to-cart .woocommerce-variation-add-to-cart,
.product-add-to-cart .woocommerce-variation,
.product-add-to-cart .woocommerce-variation-description,
.product-add-to-cart .woocommerce-variation-price,
.product-add-to-cart .woocommerce-variation-availability {
    display: none !important;
}

/* 变体选择表单样式 */
.product-add-to-cart .variations {
    margin-bottom: 20px;
    border: 0;
}

.product-add-to-cart .variations tbody {
    border: 0;
}

.product-add-to-cart .variations tr {
    display: flex;
    flex-direction: column;
 
    border: 0;
}

.product-add-to-cart .variations th,
.product-add-to-cart .variations td {
    padding: 0;
    border: 0;
}

.product-add-to-cart .variations th.label {
    text-align: left;
}

.product-add-to-cart .variations label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

/* 隐藏默认的 select 下拉框 */
.product-add-to-cart .variations select {
    display: none !important;
}

/* 隐藏清除变体选择按钮 */
.product-add-to-cart .reset_variations {
    display: none !important;
}

/* ============================================
   变体图片按钮样式
   ============================================ */

/* 图片按钮容器 - PC端一排10个 */
.yanjing-variation-swatches {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* 单个变体按钮 */
.variation-swatch {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px solid #ddd;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.variation-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文字按钮样式（当没有图片时） */
.variation-swatch.text-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.variation-swatch.text-swatch span {
    font-size: 12px;
    text-align: center;
    color: #333;
    word-break: break-word;
}

/* 悬停效果 */
.variation-swatch:hover {
    border-color: #ab8e66;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(171, 142, 102, 0.2);
}

/* 选中状态 */
.variation-swatch.selected {
    border-color: #ab8e66;
    border-width: 3px;
    box-shadow: 0 0 0 2px #ab8e66;
}

/* 禁用状态 */
.variation-swatch.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.variation-swatch.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    right: -10%;
    height: 2px;
    background: #999;
    transform: translateY(-50%) rotate(-45deg);
}

/* 平板设备 - 一排6个 */
@media (max-width: 1024px) {
    .yanjing-variation-swatches {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 手机设备 - 一排4个 */
@media (max-width: 768px) {
    .yanjing-variation-swatches {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .variation-swatch.text-swatch span {
        font-size: 11px;
    }
}

/* 联系我们按钮 */
.product-contact-us-btn {
    width: 100%;
    padding: 10px;
    background: #ab8e66;
    color: #fff;
    border: 1px solid #ab8e66;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Arial Regular', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 30px 0 10px 0;
    display: block;
    text-decoration: none;
}

.product-contact-us-btn:hover {
    background: transparent;
    color: #ab8e66;
    border-color: #ab8e66;
}

/* Reserve and Try-on 按钮 */
.product-reserve-tryon-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #ab8e66;
    border: 1px solid #ab8e66;
    border-radius: 0;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Arial Regular', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 0 20px 0;
    display: block;
    text-decoration: none;
}

.product-reserve-tryon-btn:hover {
    background: #ab8e66;
    color: #fff;
    border-color: #ab8e66;
}

/* 手风琴组件 */
.product-accordion {
    margin: 0 0 30px 0;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    background: transparent;
    transition: none;
    gap: 12px;
}

.accordion-header:hover {
    background: transparent;
}

.accordion-header .iconfont:first-child {
    font-size: 18px;
    color: #ab8e66;
    flex-shrink: 0;
}

.accordion-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Arial Regular', Arial, sans-serif;
}

.accordion-arrow {
    font-size: 16px;
    color: #666;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: none;
}

.accordion-item.active .accordion-content {
    padding: 10px 0 0 0;
    max-height: 500px;
    display: block;
}

.accordion-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    font-family: 'Arial Regular', Arial, sans-serif;
}

.accordion-content a {
    color: #ab8e66;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.accordion-content a:hover {
    color: #8d7454;
}

/* 分享区域 */
.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Arial Regular', Arial, sans-serif;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-icon:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.share-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* SKU显示 */
.product-sku {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
    font-family: 'Arial Regular', Arial, sans-serif;
}

.sku-label {
    font-weight: 500;
    color: #333;
    margin-right: 8px;
}

.sku-value {
    color: #666;
}

/* Tags显示 */
.product-tags {
    margin: 15px 0;
}

.tags-list {
    font-size: 12px;
    color: #333;
    line-height: 1.6;
    padding-bottom: 15px;
}

.tags-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
    display: inline-block;
}

.tags-list a:hover {
    color: #ab8e66;
    border-bottom-color: #ab8e66;
}

.product-add-to-cart form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-add-to-cart .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-add-to-cart .quantity label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.product-add-to-cart .quantity input[type="number"] {
    width: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.product-add-to-cart button[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    background: #ab8e66;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-add-to-cart button[type="submit"]:hover {
    background: #8d7454;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 142, 102, 0.3);
}

/* 变体选择器 */
.product-add-to-cart .variations {
    margin-bottom: 0px;
}

.product-add-to-cart .variations tr {
    display: flex;
    flex-direction: column;

}

.product-add-to-cart .variations label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-add-to-cart .variations select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* ========================================
   下层：品牌信息和产品详情
======================================== */
.product-brand-details-section {
    padding: 60px 0;
    background: #fff;
}

.brand-details-grid {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 60px;
    align-items: flex-start;
}

/* 左侧：品牌信息 */
.brand-info-column {
    position: sticky;
    top: 200px;
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
}

.brand-info-content {
    padding: 0;
}

/* 桌面端隐藏移动端手风琴标题 */
.mobile-accordion-header {
    display: none;
}

.brand-info-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Regular', Arial, sans-serif;
}

.brand-image {
    margin-bottom: 25px;
    text-align: center;
}

.brand-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: inline-block;
}

.brand-logo {
    margin-bottom: 20px;
    text-align: center;
}

.brand-logo a {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.brand-description {
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    font-family: 'Arial Regular', Arial, sans-serif;
}

.brand-description p {
    margin-bottom: 10px;
}

/* 右侧：产品详情 */
.product-details-column {
    padding: 0;
}

.details-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Regular', Arial, sans-serif;
}

/* 尺寸图 */
.product-size-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.size-image-item {
    width: 100%;
    overflow: hidden;
}

.size-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品属性 */
.product-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    row-gap: 8px;
}

.product-attributes-grid .attribute-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    background: transparent;
}

.attribute-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    font-family: 'Arial Regular', Arial, sans-serif;
    flex-shrink: 0;
}

.attribute-name::after {
    content: ':';
    margin-left: 2px;
}

.attribute-value {
    font-size: 14px;
    color: #666;
    font-family: 'Arial Regular', Arial, sans-serif;
    flex: 1;
}

/* ========================================
   相关产品
======================================== */
.related-products-section {
    padding: 60px 0;
    background: #fff;
}

.related.products h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.related.products ul.products li.product {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related.products ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.related.products ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    padding: 15px;
    margin: 0;
}

.related.products ul.products li.product .price {
    font-size: 18px;
    color: #ab8e66;
    padding: 0 15px 15px;
    font-weight: 600;
}

/* ========================================
   平板设备响应式
======================================== */
@media (max-width: 1024px) {
    .product-main-grid {
        gap: 40px;
    }
    
    .product-summary-inner {
        padding: 30px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .contact-modal-content {
        max-width: 90%;
    }
}

/* ========================================
   移动设备响应式
======================================== */
@media (max-width: 768px) {
    .product-main-section {
        padding: 30px 0;
    }
    
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 隐藏PC端相册 */
    .product-gallery-desktop {
        display: none !important;
    }
    
    /* 显示移动端滑动相册 */
    .product-gallery-mobile {
        display: block;
        position: relative;
    }
    
    /* 移动端心愿单按钮 */
    .product-gallery-mobile .mobile-wishlist-btn {
        position: absolute;
        top: 40px;
        right: 15px;
        width: 36px;
        height: 36px;
        z-index: 101;
    }
    
    .product-gallery-mobile .mobile-wishlist-btn i {
        font-size: 26px;
    }
    
    .mobile-gallery-container {
        width: 100%;
        height: auto;
        border-radius: 0;
        overflow: hidden;
        position: relative;
        touch-action: pan-y;
    }
    
    /* 移动端加载状态 */
    .mobile-gallery-container.gallery-loading {
        pointer-events: none;
        position: relative;
    }
    
    .mobile-gallery-wrapper {
        display: flex;
        width: 100%;
        transition: transform 0.3s ease-out;
        will-change: transform;
    }
    
    .mobile-gallery-slide {
        width: 100%;
        height: auto;
        background: #f8f8f8;
        flex-shrink: 0;
        position: relative;
        transition: opacity 0.3s ease;
        opacity: 1;
    }
    
    .mobile-gallery-slide img {
        width: 100%;
        height: auto;
        display: block;
        user-select: none;
        -webkit-user-drag: none;
        transition: opacity 0.3s ease;
    }
    
    /* 移动端加载时的效果 */
    .mobile-gallery-container.gallery-loading .mobile-gallery-slide {
        background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
        min-height: 300px;
    }
    
    .mobile-gallery-container.gallery-loading .mobile-gallery-slide img {
        opacity: 0.2;
    }
    
    .mobile-gallery-pagination {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 10;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        pointer-events: none;
    }
    
    /* 移动端指示器加载状态 */
    .mobile-gallery-pagination.gallery-loading {
        pointer-events: none;
    }
    
    .mobile-gallery-pagination.gallery-loading .mobile-bullet {
        background: rgba(255, 255, 255, 0.3) !important;
        animation: bullet-pulse 1.5s infinite;
        box-shadow: none !important;
    }
    
    .mobile-gallery-pagination .mobile-bullet {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        opacity: 1;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0 !important;
        display: block;
        pointer-events: auto;
    }
    
    .mobile-gallery-pagination .mobile-bullet.active {
        background: #ab8e66;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
        width: 10px;
        height: 10px;
    }
    
    /* 右侧产品信息不再固定 */
    .product-summary-inner {
        position: static;
        padding: 20px;
        box-shadow: none;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-short-description {
        font-size: 14px;
    }
    
    /* 手风琴移动端适配 */
    .accordion-header {
        padding: 0;
        gap: 10px;
    }
    
    .accordion-header .iconfont:first-child {
        font-size: 16px;
    }
    
    .accordion-title {
        font-size: 12px;
    }
    
    .accordion-arrow {
        font-size: 14px;
    }
    
    .accordion-content p {
        font-size: 11px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 8px 0 0 0;
    }
    
    /* 分享区域移动端适配 */
    .product-share {
        gap: 12px;
        margin: 15px 0;
    }
    
    .share-label {
        font-size: 13px;
    }
    
    .share-icons {
        gap: 10px;
    }
    
    .share-icon {
        width: 20px;
        height: 20px;
    }
    
    /* SKU移动端适配 */
    .product-sku {
        margin: 12px 0;
        font-size: 13px;
    }
    
    /* Tags移动端适配 */
    .product-tags {
        margin: 12px 0;
    }
    
    .tags-list {
        font-size: 11px;
        padding-bottom: 12px;
    }
    
    /* 品牌信息和产品详情移动端适配 */
    .product-brand-details-section {
        padding: 30px 0;
    }
    
    .brand-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .brand-info-column {
        position: static;
        order: 2;
        padding-right: 0;
        border-right: none;
        width: 100%;
        max-width: 100%;
    }
    
    .product-details-column {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    
    /* 移动端手风琴样式 */
    .mobile-accordion-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 15px 0;
        cursor: pointer;
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
        width: 100%;
    }
    
    .mobile-accordion-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .mobile-accordion-arrow {
        font-size: 18px;
        color: #666;
        transition: transform 0.3s ease;
    }
    
    .mobile-accordion-content {
        padding: 20px 0 0 0;
        display: block;
        max-height: none;
        overflow: visible;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-accordion-content.collapsed {
        display: none;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-accordion-header.collapsed .mobile-accordion-arrow {
        transform: rotate(180deg);
    }
    
    /* 隐藏桌面端标题 */
    .brand-info-column .brand-info-title,
    .product-details-column .details-title {
        display: none;
    }
    
    .brand-info-title,
    .details-title {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .brand-description {
        font-size: 11px;
    }
    
    .product-size-images {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .product-attributes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-attributes-grid .attribute-item {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
    
    .attribute-name {
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }
    
    .attribute-value {
        font-size: 13px;
    }
    
    .product-attributes-grid {
        gap: 10px;
        row-gap: 6px;
    }
    
    /* 相关产品 */
    .related-products-section {
        padding: 30px 0;
    }
    
    .related.products h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        padding: 10px;
    }
    
    .related.products ul.products li.product .price {
        font-size: 16px;
        padding: 0 10px 10px;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    .product-summary-inner {
        padding: 15px;
    }
    
    .related.products ul.products {
        grid-template-columns: 1fr;
    }
    
    .contact-form-row,
    .contact-form-row.two-column {
        grid-template-columns: 1fr;
    }
    
    .contact-modal-content {
        max-width: 100%;
    }
    
    .contact-modal-header {
        padding: 20px;
    }
    
    .contact-modal-body {
        padding: 20px;
    }
}

/* ========================================
   联系我们弹窗
======================================== */
.contact-us-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-us-modal.active {
    display: flex;
}

.contact-modal-content {
    background: #fff;
    border-radius: 0;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.contact-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.contact-modal-close:hover {
    color: #333;
}

.contact-modal-body {
    padding: 30px;
}

.contact-modal-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form-row.two-column {
    grid-template-columns: 1fr 1fr;
}

.contact-form-group {
    margin-bottom: 15px;
}

.contact-form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.3s ease;
    height: 44px;
    box-sizing: border-box;
    line-height: 1.5;
}

.contact-form-textarea {
    height: auto;
    min-height: 120px;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #ab8e66;
}

.contact-form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.contact-form-note {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
}

.contact-form-note a {
    color: #ab8e66;
    text-decoration: underline;
}

.contact-form-faq {
    margin: 20px 0;
}

.contact-form-faq a {
    color: #ab8e66;
    text-decoration: underline;
}

.contact-form-submit {
    width: 100%;
    padding: 16px 32px;
    background: #d5d5d5;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-form-submit.enabled {
    background: #ab8e66;
    cursor: pointer;
}

.contact-form-submit.enabled:hover {
    background: #8d7454;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 142, 102, 0.3);
}

/* ========================================
   灯箱效果
======================================== */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ========================================
   优化的数量选择器
======================================== */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-minus,
.quantity-plus {
    width: 40px;
    height: 44px;
    background: #f8f8f8;
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-minus:hover,
.quantity-plus:hover {
    background: #ab8e66;
    color: #fff;
}

.quantity-wrapper input[type="number"] {
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-radius: 0;
    margin: 0;
}

/* 隐藏数量输入框的箭头 */
.quantity-wrapper input[type="number"]::-webkit-inner-spin-button,
.quantity-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.quantity-wrapper input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ========================================
   WooCommerce 默认样式覆盖
======================================== */
.woocommerce div.product form.cart .variations td {
    display: block;
    width: 100%;
}

.woocommerce div.product form.cart .variations td.label {
    padding-bottom: 0;
}

.woocommerce div.product form.cart .reset_variations {
    margin-top: 10px;
    color: #ab8e66;
    text-decoration: none;
}

.woocommerce div.product form.cart .reset_variations:hover {
    color: #8d7454;
}

/* 产品评分星星颜色 */
.woocommerce .star-rating {
    color: #ab8e66;
}

.woocommerce .star-rating span {
    color: #ab8e66;
}

