.pd-container { max-width: 1300px; margin: 0 auto; }
.pd-breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 28px; }
.pd-breadcrumb a { color: #374151; text-decoration: none; }
.pd-breadcrumb a:hover { text-decoration: underline; color: #000; }
.pd-breadcrumb span { margin: 0 6px; }

.pd-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 32px; align-items: start; }

.pd-product-gallery { background: #faf9f8; border-radius: 0; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,0.02); border: 1px solid #f0f0f0; }

/* ===== 关键修复：为 .pd-main-image 添加 position: relative ===== */
.pd-main-image {
  position: relative;   /* 必须，否则子元素绝对定位会跑偏 */
  aspect-ratio: 1 / 1;
  background: #f5f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumbnail-wrapper { position: relative; background: white; border-top: 1px solid #eceef2; padding: 14px 40px; }
.pd-thumbnail-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;   
  -ms-overflow-style: none;
  padding-bottom: 6px;
   width: calc(100% - 80px); 
}
.pd-thumbnail-scroll::-webkit-scrollbar { display: none; }

.pd-thumb-item { flex: 0 0 80px; scroll-snap-align: start; aspect-ratio: 1/1; background: #f8fafc; border-radius: 0px; border: 1px solid #eef2f8; overflow: hidden; cursor: pointer; }
.pd-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb-item.active { border: 2px solid #e11d48; box-shadow: 0 2px 8px rgba(225,29,72,0.2); }
.pd-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: white; border: 1px solid #e2e8f0; border-radius: 40px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.05); z-index: 2; color: #1e293b; }
.pd-slider-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.pd-slider-left { left: 8px; }
.pd-slider-right { right: 8px; }

.pd-product-info { display: flex; flex-direction: column; gap: 22px; height: calc(100vh - 140px); overflow-y: auto; padding-right: 4px; scrollbar-width: none; }
.pd-product-info::-webkit-scrollbar { width: 0; background: transparent; }
.pd-product-title { font-size: 1.8rem; font-weight: 700; line-height: 1.25; color: #111; }
@media (max-width: 800px) {.pd-product-title { font-size: 1.2rem; line-height: 1.25; }}
.pd-price-wrapper { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.pd-current-price { font-size: 2rem; font-weight: 800; color: #e11d48; }
.pd-old-price { font-size: 18px; font-weight: 500; color: #9ca3af; text-decoration: line-through; }
.pd-saved { background: #d2e7ff; color: #022960; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 30px; }

.pd-usp-lines { font-size: 0.9rem; font-weight: 500; color: #666; line-height: 1.2rem; }

/* ===== Hot Selling 组件（上下排列，不重叠） ===== */
 .pd-hot-sell-badge { position: absolute; top: 16px; left: 16px; z-index: 10; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; user-select: none; }
.pd-hot-sell-icon img { display: block; height: 50px; width: auto; }
.pd-hot-sell-buyer { position: relative; min-width: 220px; height: 40px; background: rgba(0, 0, 0, 0.3);  border-radius: 30px; padding: 0 14px 0 10px; overflow: hidden; box-sizing: border-box; }
.pd-hot-sell-buyer-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; box-sizing: border-box; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.pd-hot-sell-buyer-item.active { opacity: 1; }
.pd-hot-sell-buyer-item .avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.25); flex-shrink: 0; background: #eef2ff; }
.pd-hot-sell-buyer-item .name { color: #ffffff; font-size: 13px; font-weight: 600; white-space: nowrap; letter-spacing: 0.3px; }
.pd-hot-sell-buyer-item .action { color: #fcd34d; font-size: 13px; font-weight: 400; white-space: nowrap; }
        /* 响应式 */
        @media (max-width: 480px) {
            .pd-hot-sell-icon img { height: 38px; }
            .pd-hot-sell-buyer { height: 36px; min-width: 160px; padding: 0 10px 0 8px; }
            .pd-hot-sell-buyer-item { padding: 0 10px 0 8px; gap: 6px; }
            .pd-hot-sell-buyer-item .avatar { width: 20px; height: 20px; }
            .pd-hot-sell-buyer-item .name { font-size: 11px; }
            .pd-hot-sell-buyer-item .action { font-size: 11px; }
        }
        @media (max-width: 380px) {
            .pd-hot-sell-buyer { height: 32px; min-width: 130px; padding: 0 8px 0 6px; }
            .pd-hot-sell-buyer-item { padding: 0 8px 0 6px; gap: 4px; }
            .pd-hot-sell-buyer-item .avatar { width: 18px; height: 18px; }
            .pd-hot-sell-buyer-item .name { font-size: 10px; }
            .pd-hot-sell-buyer-item .action { font-size: 10px; }
        }

/* 评分与收藏 - 优化垂直居中 */
.pd-rating-wishlist {display: flex;justify-content: space-between;align-items: center;flex-wrap: wrap;gap: 12px;padding: 6px 0;border-bottom: 1px solid #eef2f8;border-top: 1px solid #eef2f8;background: #FFF;padding-left: 6px;padding-right: 6px;
}
.pd-stars-row {display: flex;align-items: center;gap: 6px;font-weight: 500;font-size: 1.4rem;color: #f5b342;
}
.pd-wishlist-link {background: none;border: none;font-size: 0.9rem;line-height: 2rem;font-weight: 500;cursor: pointer;color: #4b5563;display: inline-flex;align-items: center;gap: 6px;
}
.pd-wishlist-link img { width: 24px; height: 24px; display: block; }

/* 促销区域 - 背景图改为普通图片（可替换） */
.pd-promo-simple { margin: 8px 0; }
.pd-promo-card {
  background-color: #fff;
  padding: 6px;
  background-image: url('');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: #e2e8f0 solid 1px;
}
.pd-promo-row { display: flex; align-items: center; gap: 16px; }
.pd-promo-icon { width: 28px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }
.pd-discount-list { display: flex; flex-direction: column; gap: 2px; }
.pd-discount-line, .pd-stat-line { font-size: 0.9rem; line-height: 1rem; padding: 2px 2px; display: inline-block; }
.pd-stock-warning { color: #f5b342; font-weight: 600; margin-top: 12px; font-size: 1rem; }
/*计时*/
/* 红色计时器 - 三段式（分:秒:毫秒） */
.stock-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e11d48 !important;
    font-weight: 700;
    font-size: 1.05rem;
    flex-wrap: wrap;
    padding: 6px 0;
}

.timer-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.timer-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #e11d48;
    letter-spacing: 0.5px;
}

.timer-display {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: red;
    background: rgba(225, 29, 72, 0.01);
    padding: 0 16px;
    border-radius: 6px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;  /* 数字等宽，防止跳动偏移 */
    min-width: 140px;                    /* 为 “MM:SS:mmm” 预留足够宽度 */
    text-align: center;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .stock-timer {
        font-size: 0.9rem;
        gap: 5px;
    }
    .timer-display {
        font-size: 1.3rem;
        padding: 0 10px;
        min-width: 110px;
    }
    .timer-label {
        font-size: 0.8rem;
    }
}



.pd-section-label { font-weight: 700; font-size: 18px; margin: 8px 0 16px 0; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.pd-flavor-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 16px; }
.pd-flavor-card {flex: 0 0 auto;max-width: 100%;display: flex;align-items: center;gap: 12px;background: #ffffff;border: 1px solid #edf2f7;border-radius: 5px;padding: 8px 16px 8px 8px;transition: all 0.2s;cursor: pointer;}
.pd-flavor-card:hover,.pd-flavor-card.active{ background: #fef9e3; border-color: #fcd34d; }
.pd-flavor-img { width: 44px; height: 44px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; border-radius: 0; }
.pd-flavor-name { font-weight: 500; font-size: 14px; line-height: 1.4; white-space: normal; word-break: break-word; }
.pd-flavor-card.out-of-stock { opacity: 0.6; background: #f8f9fc; filter: grayscale(0.2); pointer-events: none; }

.pd-quantity-selector {display: flex;align-items: center;gap: 20px;background: #fff;width: fit-content;padding: 4px;border-radius: 60px;border: 1px solid #e2e8f0;}
.pd-qty-btn { background: white; border: none; font-size: 22px; font-weight: 500; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.pd-qty-number { font-size: 18px; font-weight: 600; min-width: 36px; text-align: center; }
.pd-price-summary { font-size: 14px; font-weight: 500; color: #1f2937; background: #f8fafc; padding: 8px 16px; border-radius: 60px; display: inline-block; margin-left: 12px; }

.pd-double-buttons { display: flex; gap: 14px; margin-top: 8px; }
.pd-buy-now { background: #f5b342; color: white; border: none; padding: 14px 20px; font-size: 15px; font-weight: 700; border-radius: 60px; flex: 1; cursor: pointer; }
.pd-cart-button { background:var(--primary); color: white; border: none; padding: 14px 20px; font-size: 15px; font-weight: 700; border-radius: 60px; flex: 1; cursor: pointer; }
.pd-buy-now:hover { background: #444; }
.pd-cart-button:hover { background: var(--linkactive); }
@media (max-width: 800px) {.pd-product-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-double-buttons { flex-direction: column; }
  .pd-product-info { height: auto; max-height: none; overflow-y: visible; }
  .pd-price-summary { margin-left: 0; margin-top: 8px; display: inline-block; }
}
/* 附加信息 - 使用 Emoji */
.pd-extra-info { margin-top: 20px; border-top: 1px solid #eef2f8; }
.pd-info-grid { background: #fff; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; border: 1px solid #e2e8f0; }
.pd-info-card { padding: 2px 8px; display: flex; align-items: center; gap: 4px; }
.pd-info-icon { font-size: 1.2rem; width: 40px; text-align: center; }
.pd-info-title { font-weight: 700; font-size: 0.8rem; margin-bottom: 4px; }
.pd-info-desc { font-size: 0.8rem; color: #4b5563; line-height: 1.4; }

.pd-trust-card {background: #e9ecf3;border: 1px solid #eef2f8;border-radius: 0;padding: 12px 16px;margin: 16px 0;cursor: pointer;
}
.pd-trust-row { display: flex; justify-content: space-between; align-items: center; }
.pd-trust-col {flex: 1;font-size: 0.9rem;font-weight: 500;color: #022960;text-align: left;position: relative;padding: 0 12px;
}
.pd-trust-col:not(:last-child)::after {content: "|";position: absolute;right: 0;top: 50%;transform: translateY(-50%);color: #cbd5e1;
}
.pd-trust-col:first-child { padding-left: 0; }
.pd-trust-col:last-child { padding-right: 0; }
.pd-trust-card:hover { background: #d2e7ff; }

/* 支付方式 - 使用图片占位，统一尺寸 */
.pd-payment-methods { background:#e9ecf3;display: flex;align-items: center;justify-content: space-between;flex-wrap: wrap;gap: 12px;border: 0px solid #eef2f8;border-radius: 0;padding: 14px 18px;}
.pd-payment-label { font-weight: 600; font-size: 13px; color: #1f2937; }
.pd-payment-icons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pd-payment-icon-img { width: 80px; height: 34px; object-fit: contain; border-radius: 1px; padding: 2px; border: 1px solid #eef2f8; background: #FFF; }

/* 模态框 */
.pd-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.pd-modal-content { background: white; border-radius: 10px; max-width: 420px; width: 90%; position: relative; box-shadow: 0 20px 35px -12px rgba(0,0,0,0.2); animation: fadeInUp 0.2s ease; overflow: hidden; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.pd-modal-close { position: absolute; top: 16px; right: 20px; font-size: 24px; cursor: pointer; color: #9ca3af; z-index: 10; }
.pd-modal-close:hover { color: #e11d48; }
.pd-modal-title { font-size: 20px; font-weight: 800; padding: 20px 24px 12px 24px; background: #022960; border-bottom: 1px solid #fee2e2; display: flex; align-items: center; gap: 8px; color: #fff; }
.pd-modal-body { padding: 20px 24px 24px 24px; }
.pd-cert-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef2f8; font-size: 15px; font-weight: 500; }
.pd-cert-check { color: #022960; font-weight: 600; }
.pd-modal-rating { margin-top: 20px; background: #f9fafb; border-radius: 20px; padding: 14px; text-align: center; }
.pd-stars-big { color: #f5b342; font-size: 20px; letter-spacing: 4px; margin-bottom: 6px; }
.pd-rating-text { font-weight: 600; font-size: 14px; }

/* 选项卡 */
.pd-details-tabs { margin: 48px auto;max-width:1300px;width:100% }
.pd-tab-buttons { display: flex; gap: 32px; border-bottom: 2px solid #eef2f6; margin-bottom: 28px; flex-wrap: wrap; }
.pd-tab-btn { font-size: 18px; font-weight: 600; background: none; border: none; padding: 8px 0; cursor: pointer; color: #444; }
.pd-tab-btn.active { color: #f5b342; border-bottom: 3px solid #777; margin-bottom: -2px; background: #f9fafb; padding-left: 6px; padding-right: 6px; }
.pd-tab-content { display: none; font-size: 15px; line-height: 1.6; color: #2d3a4a; }
.pd-tab-content p { text-indent: 0; } .pd-tab-content img{width:100%}
.pd-tab-content.active { display: block; }
.pd-desc-img-group { display: flex; flex-direction: column; gap: 18px; margin: 24px 0; }
.pd-desc-img-group img { width: 100%; border-radius: 0px; aspect-ratio: 4/3; object-fit: cover; }

/* 评论区域 - 两列网格，卡片样式 */
.pd-reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 32px; }
.pd-review-item { background: #fff; border: 1px solid #e8edf2; border-radius: 0px; padding: 20px; transition: box-shadow 0.2s; }
.pd-review-item:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
.pd-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.pd-reviewer-info { display: flex; align-items: center; gap: 10px; }
.pd-review-avatar { width: 42px; height: 42px; background: #eef2ff; border-radius: 40px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #1e3a8a; }
.pd-review-name { font-weight: 700; font-size: 15px; }
.pd-review-stars { color: #f5b342; font-size: 1.2rem; letter-spacing: 2px; }
.pd-review-text { font-size: 14px; line-height: 1.5; color: #2d3a4a; margin-top: 12px; }
.pd-review-footer { margin-top: 16px; font-size: 12px; color: #8b9cb0; display: flex; gap: 12px; }
.pd-reviews-footer { text-align: center; margin-top: 24px; }
.pd-reviews-footer a { font-size: 1rem; line-height: 2rem; text-decoration: none; color: #02298e; }
.pd-reviews-footer a:hover { color: #f8ad6b; }
.pd-all-reviews-btn { background: none; border: 1px solid #cbd5e1; padding: 10px 28px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.pd-all-reviews-btn:hover { background: #f1f5f9; }
@media (max-width: 800px) {.pd-reviews-grid { grid-template-columns: repeat(1, 1fr); gap: 0px; margin-bottom: 32px; }}
/* 购买记录滚动区 */
.pd-purchase-container { background: #fefefe; border-radius: 24px; border: 1px solid #eef2f8; overflow: hidden; height: 380px; position: relative; }
.pd-scroll-list { display: flex; flex-direction: column; animation: scrollUpCustom 32s linear infinite; width: 100%; }
.pd-purchase-item { padding: 14px 20px; border-bottom: 1px solid #f0f2f5; display: flex; gap: 12px; align-items: center; background: white; font-size: 14px; }
.pd-purchase-avatar { width: 36px; height: 36px; background: #eef2ff; border-radius: 40px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.pd-purchase-detail { flex: 1; }
.pd-purchase-name { font-weight: 700; }
.pd-purchase-meta { font-size: 12px; color: #5b6e8c; }
.pd-purchase-qty { font-weight: 600; color: #022960; background: #d2e7ff; padding: 2px 8px; border-radius: 30px; }
.pd-purchase-container:hover .pd-scroll-list { animation-play-state: paused; }
@keyframes scrollUpCustom { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* 分享区域 - 使用 Font Awesome 通用图标 */
.pd-share-section { margin-top: 48px; text-align: center; border-top: 1px solid #eef2f8; padding-top: 32px; }
.pd-share-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: #2d3a4a; }
.pd-share-icons { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.pd-share-icon { font-size: 28px; color: #5b6e8c; transition: 0.2s; cursor: pointer; }
.pd-share-icon:hover { color: #e11d48; transform: translateY(-3px); }

hr { margin: 20px 0; background: #eef2f6; border: none; height: 1px; }

@media (max-width: 800px) {.pd-product-grid { grid-template-columns: 1fr; gap: 28px; }
  .pd-double-buttons { flex-direction: column; }
  .pd-product-info { height: auto; max-height: none; overflow-y: visible; }
  .pd-price-summary { margin-left: 0; margin-top: 8px; display: inline-block; }
}

/*pd-ship运费及说明start*/
.pd-ship-main {width:100%; background: #ffffff; border-radius: 20px;  padding: 24px 28px 20px; transition: box-shadow 0.2s ease; margin-bottom: 20px; }
        .pd-ship-main:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10); }

        .pd-ship-list { margin-bottom: 6px; border-radius: 14px; overflow: hidden; }
        .pd-ship-row { display: grid; grid-template-columns: 1fr 0.6fr 0.6fr; background: #ffffff; transition: background 0.15s ease; margin-bottom: 6px; }
        .pd-ship-row:last-child { margin-bottom: 0; }
        .pd-ship-row:hover { background: #f7f9fc; }
        .pd-ship-cell { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding: 0; }
        .pd-ship-info .pd-ship-title { display: block; font-size: 18px; font-weight: 700; color: #1a1a2e; letter-spacing: 0.2px; margin-bottom: 2px; }
        .pd-ship-info .pd-ship-desc { display: block; font-size: 14px; color: #5e6a7e; font-weight: 400; line-height: 1.3; }
        .pd-ship-time { font-weight: 500; color: #2d3a4f; white-space: nowrap; }
        .pd-ship-price { font-weight: 700; font-size: 20px; color: #1a1a2e; white-space: nowrap; }
        .pd-ship-free { padding: 14px 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
        .pd-ship-free .pd-ship-title { font-size: 18px; font-weight: 700; color: #1a1a2e; letter-spacing: 0.3px; }
        .pd-ship-free .pd-ship-subtitle { font-size: 14px; font-weight: 400; color: #5e6a7e; margin-top: 2px; }

        .pd-ship-features { width:100%;background: #ffffff; border-radius: 20px;  padding: 18px 28px; display: flex; flex-direction: column; gap: 2px; transition: box-shadow 0.2s ease; }
        .pd-ship-features:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10); }
        .pd-ship-feature { display: flex; align-items: center; gap: 12px; padding: 12px 4px; font-size: 15px; font-weight: 450; color: #1f2a3e; border-bottom: 1px solid #edf1f6; transition: color 0.15s; }
        .pd-ship-feature:last-child { border-bottom: none; }
        .pd-ship-feature:hover { color: #0f1a2e; }
        .pd-ship-icon { font-size: 22px; line-height: 1; width: 32px; text-align: center; flex-shrink: 0; }

        @media (max-width: 800px) {
            .pd-ship-main { padding: 18px 16px 16px; }
            .pd-ship-row { grid-template-columns: 1fr; border-radius: 12px; margin-bottom: 6px; background: #fafbfd; border: 2px solid #eef1f5; }
            .pd-ship-row:last-child { margin-bottom: 0; }
            .pd-ship-cell { padding: 0; border-bottom: 1px solid #eef1f6; align-items: flex-start; text-align: left; }
            .pd-ship-cell:last-child { border-bottom: none; }
            .pd-ship-info .pd-ship-title { font-size: 16px; }
            .pd-ship-info .pd-ship-desc { font-size: 13px; }
            .pd-ship-time { font-size: 14px; }
            .pd-ship-price { font-size: 18px; }
            .pd-ship-free { padding: 12px 0; }
            .pd-ship-free .pd-ship-title { font-size: 16px; }
            .pd-ship-free .pd-ship-subtitle { font-size: 13px; }
            .pd-ship-features { padding: 14px 16px; }
            .pd-ship-feature { font-size: 14px; padding: 10px 2px; }
            .pd-ship-icon { font-size: 20px; width: 28px; }
        }
        @media (max-width: 440px) {
            body { padding: 12px; }
            .pd-ship-main { padding: 14px 10px 12px; border-radius: 16px; }
            .pd-ship-cell { padding: 0; }
            .pd-ship-info .pd-ship-title { font-size: 15px; }
            .pd-ship-info .pd-ship-desc { font-size: 12px; }
            .pd-ship-time { font-size: 13px; }
            .pd-ship-price { font-size: 17px; }
            .pd-ship-free .pd-ship-title { font-size: 15px; }
            .pd-ship-free .pd-ship-subtitle { font-size: 12px; }
            .pd-ship-features { padding: 12px 10px; border-radius: 16px; }
            .pd-ship-feature { font-size: 13px; padding: 8px 2px; }
            .pd-ship-icon { font-size: 18px; width: 24px; }
        }
		/*pd-ship运费及说明end*/


        /*右边滑出css*/
        .pd-review-stars{
        display: flex;
    }
    .pd-review-stars img{
        width:10px;
        display: block;
    }

    /* ===== 购物车侧边栏样式（内嵌） ===== */
     .pd-review-stars{
        display: flex;
    }
    .pd-review-stars img{
        width:10px;
        display: block;
    }

    /* ===== 购物车侧边栏样式 ===== */
    .pd-review-stars{
        display: flex;
    }
    .pd-review-stars img{
        width:10px;
        display: block;
    }

    /* ===== 购物车侧边栏样式 ===== */
    .cart-sidebar-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.45); z-index: 9998;
        opacity: 0; visibility: hidden;
        transition: opacity 0.30s ease, visibility 0.30s ease;
    }
    .cart-sidebar-overlay.open { opacity: 1; visibility: visible; }

    .cart-sidebar {
        position: fixed; top: 0; right: -420px; width: 420px; max-width: 92vw;
        height: 100%; background: #fff; z-index: 9999;
        box-shadow: -6px 0 30px rgba(0,0,0,0.08);
        transition: right 0.35s cubic-bezier(0.22,1,0.36,1);
        display: flex; flex-direction: column;
        font-family: "Inter", -apple-system, sans-serif;
    }
    .cart-sidebar.open { right: 0; }

    .cart-sidebar-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 18px 22px 14px; border-bottom: 1px solid #eef0f4;
    }
    .cart-sidebar-header .cart-sidebar-title {
        font-size: 20px; font-weight: 700; color: #0b0b14;
        display: flex; align-items: center; gap: 8px;
    }
    .cart-sidebar-header .cart-count-badge {
        background: #022960; color: #fff; font-size: 12px; font-weight: 600;
        padding: 0 10px; border-radius: 20px; line-height: 22px;
        min-width: 22px; text-align: center;
    }
    .cart-sidebar-header .cart-sidebar-close {
        background: none; border: none; font-size: 28px; cursor: pointer;
        color: #8e8ea0; transition: color 0.2s;
    }
    .cart-sidebar-header .cart-sidebar-close:hover { color: #1a1a2e; }

    .cart-sidebar-body {
        flex: 1; overflow-y: auto; padding: 12px 0 8px;
    }
    .cart-sidebar-body::-webkit-scrollbar { width: 4px; }
    .cart-sidebar-body::-webkit-scrollbar-track { background: #f1f3f6; }
    .cart-sidebar-body::-webkit-scrollbar-thumb { background: #d0d4dc; border-radius: 4px; }

    .cart-sidebar-item {
        display: grid; grid-template-columns: 64px 1fr auto;
        gap: 12px 14px; padding: 12px 22px;
        align-items: center; border-bottom: 1px solid #f0f2f6;
    }
    .cart-sidebar-item:last-child { border-bottom: none; }
    .cart-sidebar-item .item-img {
        width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
        background: #f0f2f6; flex-shrink: 0;
    }
    .cart-sidebar-item .item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cart-sidebar-item .item-info {
        display: flex; flex-direction: column; gap: 2px; min-width: 0;
    }
    .cart-sidebar-item .item-info .item-name {
        font-weight: 600; font-size: 14px; color: #0e0e1a;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .cart-sidebar-item .item-info .item-variant {
        font-size: 12px; color: #7b8499;
    }
    .cart-sidebar-item .item-info .item-price-row {
        display: flex; align-items: baseline; gap: 8px; margin-top: 2px;
    }
    .cart-sidebar-item .item-info .item-unit-price {
        font-size: 13px; color: #4a5268;
    }
    .cart-sidebar-item .item-info .item-total-price {
        font-weight: 700; font-size: 15px; color: #0e0e1a;
    }
    .cart-sidebar-item .item-actions {
        display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    }
    .cart-sidebar-item .item-actions .item-qty {
        display: flex; align-items: center; gap: 2px;
        background: #f0f2f6; border-radius: 30px; padding: 0 2px; height: 26px;
    }
    .cart-sidebar-item .item-actions .item-qty button {
        background: transparent; border: none; font-size: 13px;
        width: 22px; height: 22px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; color: #2d2d3f; transition: background 0.15s;
    }
    .cart-sidebar-item .item-actions .item-qty button:hover { background: #e2e6ee; }
    .cart-sidebar-item .item-actions .item-qty span {
        font-weight: 500; font-size: 13px; min-width: 18px; text-align: center;
    }
    .cart-sidebar-item .item-actions .item-delete {
        background: none; border: none; color: #b0b8c8; font-size: 14px;
        cursor: pointer; padding: 2px 4px; transition: color 0.2s;
    }
    .cart-sidebar-item .item-actions .item-delete:hover { color: #d1454a; }

    .cart-sidebar-empty {
        display: flex; flex-direction: column; align-items: center;
        justify-content: center; padding: 60px 20px; color: #8e8ea0;
        text-align: center;
    }
    .cart-sidebar-empty .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
    .cart-sidebar-empty .empty-text { font-size: 16px; font-weight: 500; }

    .cart-sidebar-footer {
        border-top: 1px solid #eef0f4; padding: 16px 22px 22px;
        flex-shrink: 0; background: #fff;
    }
    .cart-sidebar-footer .footer-subtotal {
        display: flex; justify-content: space-between; align-items: baseline;
        font-size: 16px; font-weight: 600; margin-bottom: 14px;
    }
    .cart-sidebar-footer .footer-subtotal .subtotal-label { color: #4a5268; font-weight: 500; }
    .cart-sidebar-footer .footer-subtotal .subtotal-amount {
        font-weight: 700; font-size: 20px; color: #0b0b14;
    }
    .cart-sidebar-footer .footer-buttons {
        display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    }
    .cart-sidebar-footer .footer-buttons .btn-viewcart,
    .cart-sidebar-footer .footer-buttons .btn-checkout {
        padding: 12px 0; border-radius: 40px; font-weight: 600; font-size: 14px;
        text-align: center; text-decoration: none; display: flex;
        align-items: center; justify-content: center;
    }
    .cart-sidebar-footer .footer-buttons .btn-viewcart {
        background: #f0f2f6; color: #0b0b14; border: none; cursor: pointer;
    }
    .cart-sidebar-footer .footer-buttons .btn-viewcart:hover { background: #e2e6ee; }
    .cart-sidebar-footer .footer-buttons .btn-checkout {
        background: #022960; color: #fff; border: none; cursor: pointer;
    }
    .cart-sidebar-footer .footer-buttons .btn-checkout:hover { background: #011b4a; }

    @media (max-width: 500px) {
        .cart-sidebar { width: 100vw; max-width: 100vw; right: -100vw; }
        .cart-sidebar.open { right: 0; }
        .cart-sidebar-item { grid-template-columns: 52px 1fr auto; padding: 10px 16px; }
        .cart-sidebar-item .item-img { width: 52px; height: 52px; }
        .cart-sidebar-header { padding: 14px 16px 12px; }
        .cart-sidebar-footer { padding: 14px 16px 18px; }
    }