/* 强制隐藏所有购物车图标 / mini cart */
.woocommerce-mini-cart,
.cart-contents,
.header-cart,
.header-cart-wrap,
.header-shopping-cart,
.site-header .cart,
[class*="mini-cart"] {
    display: none !important;
}

.joinchat {
    right: 24px !important;      /* 贴右边 */
    left: auto !important;
    top: 80% !important;         /* 垂直 75% */
    bottom: auto !important;
    transform: translateY(-50%) !important; /* 保持按钮中心点对齐 top */
}

/* 整个按钮内容居中 */
.joinchat__open {
    display: flex !important;
    align-items: center !important;    /* 垂直居中 */
    justify-content: center !important; /* 水平居中 */
    text-align: center !important;
}

/* 文字居中 */
.joinchat__open__text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
    padding: 0 5px !important;
}

/* 图标居中 */
.joinchat__open__icon {
    display: block !important;
    margin: 0 auto !important;  /* 水平居中 */
    vertical-align: middle !important; /* 垂直对齐 */
}

/* =========================
   WooCommerce 产品首图强制 1:1
   ========================= */

/* 产品列表页（Shop / 分类页） */
.woocommerce ul.products li.product a img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 产品详情页主图 */
.woocommerce div.product div.images img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* 防止图片被拉伸 */
.woocommerce img {
    width: 100%;
    height: auto;
}

/* Footer 图标在 PC 下不锁死 300px */
footer img.wp-image-518,
footer img.attachment-medium,
footer img.size-medium {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* 全站产品页隐藏 Add to cart 按钮 */
.single-product button.single_add_to_cart_button,
.single-product form.cart {
    display: none !important;
}

/* 任何带 add-to-cart 参数的按钮，首页全部隐藏 */
.home a[href*="add-to-cart"] {
    display: none !important;
}

/* 全站隐藏 WooCommerce 列表页的 Add to Cart 按钮（含 Ajax） */
.woocommerce a.add_to_cart_button,
.woocommerce a.ajax_add_to_cart,
.woocommerce .product a.button,
.wdt-button.add_to_cart_button,
.wdt-button.ajax_add_to_cart {
    display: none !important;
}

/* =========================
   产品页缩略图：通用样式
   ========================= */

.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.flex-control-thumbs li {
    width: auto !important;
    flex: 0 0 80px;
}

.flex-control-thumbs img {
    border-radius: 6px;
    border: 1px solid #eee;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs .flex-active img {
    opacity: 1;
    border-color: #000;
}

/* =========================
   📱 手机端优化
   ========================= */

@media (max-width: 768px) {

    /* 缩略图横向滑动，不换行 */
    .flex-control-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    /* 单个缩略图稍微小一点 */
    .flex-control-thumbs li {
        flex: 0 0 64px;
    }

    /* 去掉滚动条（不影响滑动） */
    .flex-control-thumbs::-webkit-scrollbar {
        display: none;
    }
}

/* =========================
   📱 产品页手机端单列布局
   ========================= */

@media (max-width: 768px) {

    /* 整个产品页改为单列 */
    .single-product div.product {
        display: flex;
        flex-direction: column;
    }

    /* 图片区域全宽 */
    .single-product .woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
        margin: 0 0 24px 0;
    }

    /* 主图强制横向填充 */
    .single-product .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* 缩略图区域全宽 */
    .single-product .flex-control-thumbs {
        width: 100%;
        justify-content: flex-start;
    }

    /* 右侧 summary 信息区 */
    .single-product .summary {
        width: 100% !important;
        float: none !important;
        padding: 0 16px;
        box-sizing: border-box;
        text-align: left;
    }

    /* 标题、价格、心愿单等占满宽度 */
    .single-product .summary > * {
        width: 100%;
    }

    /* 标题间距 */
    .single-product .product_title {
        margin-top: 0;
    }


}

/* ======================================
   ROLEX LUXURY PRODUCT PAGE – PREMIUM EDITION
   ====================================== */

/* 基础容器 - 高格调留白 */
.single-product .summary {
    font-family: "Helvetica Neue", "Arial", "PingFang SC", sans-serif;
    color: #111;
    line-height: 1.7;
    padding: 30px 0;
    background: transparent;
}

/* 产品标题 - 奢华厚重 */
.single-product .product_title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    color: #000;
    position: relative;
    padding-bottom: 15px;
}
.single-product .product_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 1px;
    background: #d4af37;
    box-shadow: 0 3px 0 #d4af37;
}

/* 价格 - 调大2个字号 重磅突出（原32px → 现44px）| 货币符号保持原大小 */
.single-product .summary .price {
    font-size: 44px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #000;
    letter-spacing: 0.08em;
    background: transparent;
    border: none;
}
/* 货币符号保持原22px 不放大 */
.single-product .summary .price span.woocommerce-Price-currencySymbol {
    font-size: 22px;
    color: #666;
    margin-right: 8px;
}

/* 价格备注 - 加粗放大至18px */
.single-product .summary .price::after {
    content: "Include the delivery fee and traffic";
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #444;
    letter-spacing: 0.05em;
    margin-top: 8px;
    text-transform: none;
}

/* 心愿单按钮 - 鎏金质感 */
.single-product .summary .yith-wcwl-add-to-wishlist {
    margin: 0 0 45px 0;
}
.single-product .summary .yith-wcwl-add-to-wishlist a {
    font-size: 14px;
    color: #d4af37;
    background: transparent;
    border: 1px solid #d4af37;
    padding: 14px 35px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
    transition: all 0.3s ease;
}
.single-product .summary .yith-wcwl-add-to-wishlist a:hover {
    background: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* 分类/标签区域 - 精致信息栏 */
.single-product .product_meta {
    margin: 0;
    padding: 30px 0 0 0;
    border-top: 1px solid #eee;
    background: transparent;
}
.single-product .product_meta span {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 18px 0;
    font-weight: 400;
}
.single-product .product_meta a {
    color: #000;
    font-size: 15px;
    text-decoration: none;
    margin-right: 18px;
    position: relative;
}
.single-product .product_meta a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}
.single-product .product_meta a:hover::after {
    width: 100%;
}

/* 分享区域 - 低调奢华 */
.single-product .summary .social-share {
    margin-top: 35px;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.single-product .summary .social-share a {
    color: #000;
    margin: 0 12px;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.single-product .summary .social-share a:hover {
    color: #d4af37;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .single-product .product_title {
        font-size: 28px;
    }
    /* 移动端价格同步调大（原26px → 现38px）| 货币符号保持原大小 */
    .single-product .summary .price {
        font-size: 38px;
    }
    .single-product .summary .price span.woocommerce-Price-currencySymbol {
        font-size: 22px;
    }
    .single-product .summary .price::after {
        font-size: 16px;
    }
    .single-product .product_meta span {
        font-size: 12px;
    }
    .single-product .product_meta a {
        font-size: 14px;
    }
}


