/* Product name and price remain visible while the specification list scrolls */
.product-info-sticky-head { position: sticky; top: 0; z-index: 10; padding: 18px 0 14px 10px; background: #fff; transition: box-shadow .2s ease;}
.product-info-sticky-head.is-scrolled { box-shadow: -14px 4px 20px 0px rgb(0 0 0 / 28%); }
.product-action-toast{position:fixed;left:50%;bottom:34px;z-index:3000;transform:translate(-50%,12px);opacity:0;padding:11px 20px;border-radius:999px;background:#2A2521;color:#F7EBD6;font-size:14px;box-shadow:0 6px 24px rgba(90,70,40,.18);pointer-events:none;transition:opacity .2s,transform .2s}.product-action-toast.is-visible{opacity:1;transform:translate(-50%,0)}.product-actions button:disabled{opacity:.65;cursor:wait}
.product-sticky-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 16px; padding: 5px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #666; }
.product-meta-row .product-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.product-meta-row .product-meta-item i { font-size: 14px; color: #999; }
.product-meta-row .product-meta-item b { color: #FF5000; font-weight: 600; font-size: 14px; margin: 0 2px; }
@media (max-width: 768px) { .product-info-sticky-head { padding-top: 12px; } }

.product-detail-page {
    padding: 0 0 56px;
    background: #fff;
}
.product-detail-wrap {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}
.product-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
}
.product-breadcrumb a:hover {
    color: #0d6efd;
}

/* Main Product Layout - Left/Right Split */
.product-detail-main {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Left Side - Product Gallery */
.product-gallery {
    flex: 0 0 50%;
    max-width: 50%;
}

.product-media {
    position: relative;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-empty {
    font-size: 80px;
    color: #dee2e6;
}

.product-media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #212529;
    transition: all 0.2s;
    z-index: 10;
}

.product-media-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-media-prev {
    left: 16px;
}

.product-media-next {
    right: 16px;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.product-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.2s;
    padding: 0;
}

.product-thumb:hover {
    border-color: #dee2e6;
}

.product-thumb.active {
    border-color: #0d6efd;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-video {
    display: none;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.product-media-video.active {
    display: block;
}

.product-media-video video {
    width: 100%;
    height: 100%;
}

.product-media-video-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.product-media-switch {
    display: flex;
    gap: 0;
    width: fit-content;
    min-width: 294px;
    margin: 16px auto 0;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 32px;
}

.product-media-switch-btn {
    flex: 1;
    min-width: 88px;
    padding: 9px 20px;
    background: transparent;
    border: 0;
    border-radius: 26px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: #222;
    transition: all 0.2s;
}

.product-media-switch-btn:hover {
    background: rgba(255, 255, 255, .65);
}

.product-media-switch-btn.active {
    background: #fff;
    color: #222;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .02);
}

/* Right Side - Product Info */
.product-info {
    flex: 0 0 calc(50% - 40px);
    max-width: calc(50% - 40px);
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.product-eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 12px;
}

.product-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 16px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
}

.product-price small {
    font-size: 24px;
}

.product-original {
    font-size: 20px;
    color: #6c757d;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #495057;
    margin-bottom: 20px;
}

.product-meta strong {
    color: #212529;
    font-weight: 600;
}

.product-specs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.product-specs h3 {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 16px;
}

.product-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.product-spec-row:last-child {
    border-bottom: none;
}

.product-spec-row b {
    color: #495057;
    font-weight: 500;
}

.product-spec-row span {
    color: #212529;
    font-weight: 600;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    position: fixed;
    left: var(--product-actions-left, 0px);
    right: var(--product-actions-right, 0px);
    bottom: 0;
    z-index: 2000;
    width: auto;
    max-width: none;
    padding: 12px;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 22px rgba(42, 37, 33, .16);
    backdrop-filter: blur(10px);
}

/* 操作栏固定在浏览器视口底部，内容面板预留空间避免被遮挡 */
.product-detail-page .product-info {
    padding-bottom: 96px;
}

.qty-stepper {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.qty-step-btn {
    width: 36px;
    height: 38px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #495057;
    transition: background 0.2s;
}

.qty-step-btn:hover {
    background: #e9ecef;
}

.qty-step-input {
    width: 60px;
    height: 38px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.qty-step-input:focus {
    outline: none;
}

.product-benefits {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-benefits > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13px;
    color: #495057;
}

.product-benefits i {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 8px;
}

/* Product Content Tabs */
.product-content {
    margin-top: 60px;
}

.product-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.product-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.product-tab:hover {
    color: #0d6efd;
}

.product-tab.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.product-panel {
    display: none;
}

.product-panel.active {
    display: block;
}

.product-panel h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-description {
    line-height: 1.8;
    color: #495057;
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.product-spec-table th,
.product-spec-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.product-spec-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    width: 30%;
}

.product-spec-table td {
    color: #212529;
}

.product-video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-main {
        flex-direction: column;
    }
    
    .product-gallery,
    .product-info {
        flex: 1;
        max-width: 100%;
        position: static;
    }
    
    .product-info h1 {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .product-benefits {
        flex-direction: column;
        gap: 16px;
    }
    
    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .product-tab {
        white-space: nowrap;
    }
}
.review-summary {
    display: flex;
    gap: 40px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}
.review-summary-main {
    text-align: center;
}
.review-avg-score {
    font-size: 48px;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}
.review-stars {
    display: flex;
    gap: 4px;
    font-size: 20px;
    color: #ffc107;
    margin: 8px 0;
    justify-content: center;
}
.review-count {
    font-size: 14px;
    color: #6c757d;
}
.review-good-rate {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
    margin-top: 8px;
}
.review-distribution {
    flex: 1;
}
.review-dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.review-dist-label {
    width: 50px;
    font-size: 13px;
    color: #495057;
}
.review-dist-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}
.review-dist-fill {
    height: 100%;
    background: #ffc107;
    transition: width 0.3s ease;
}
.review-dist-count {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: #6c757d;
}
.review-list {
    margin-bottom: 30px;
}
.review-item {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #212529;
}
.review-stars-sm {
    display: flex;
    gap: 2px;
    font-size: 14px;
    color: #ffc107;
}
.review-date {
    margin-left: auto;
    font-size: 13px;
    color: #6c757d;
}
.review-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}
.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.review-image {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    border: 1px solid #dee2e6;
}
.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.review-reply {
    background: #f8f9fa;
    border-left: 3px solid #0d6efd;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}
.review-reply-label {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    margin-bottom: 6px;
}
.review-reply-content {
    color: #6c757d;
    font-size: 14px;
}
.review-extra {
    background: #fffdf5;
    border-left: 3px solid #e8a33d;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}
.review-extra-label {
    font-weight: 600;
    font-size: 13px;
    color: #b8860b;
    margin-bottom: 6px;
}
.review-extra-date {
    font-weight: 400;
    font-size: 12px;
    color: #adb5bd;
    margin-left: 8px;
}
.review-extra-content {
    color: #495057;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}
.review-extra-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.review-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}
.review-like-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}
.review-like-btn:hover {
    color: #dc3545;
}
.review-like-btn.active {
    color: #dc3545;
}
.review-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
.review-empty i {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}
.review-pagination {
    text-align: center;
    margin: 20px 0;
}
.write-review-section {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}
.write-review-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.review-rating-input {
    display: flex;
    gap: 8px;
}
.rating-star {
    background: none;
    border: none;
    font-size: 32px;
    color: #dee2e6;
    cursor: pointer;
    transition: color 0.2s;
}
.rating-star:hover, .rating-star.active {
    color: #ffc107;
}
.review-hint {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}
.related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}
.related-products-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}
.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.related-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.related-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-product-image-empty {
    font-size: 48px;
    color: #dee2e6;
}
.related-product-name {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}
.related-product-price {
    padding: 0 12px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0d6efd;
}
.wishlist-btn {
    padding: 8px 16px;
}
.wishlist-btn.active {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.wishlist-btn.active:hover {
    background: #bb2d3b;
    border-color: #b02a37;
}
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.wishlist-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.wishlist-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.wishlist-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wishlist-card-image-empty {
    font-size: 64px;
    color: #dee2e6;
}
.wishlist-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.wishlist-card-body {
    padding: 16px;
}
.wishlist-card-name {
    font-weight: 600;
    margin-bottom: 8px;
}
.wishlist-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #0d6efd;
}
.wishlist-card-original {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}
.wishlist-card-actions {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
}

/* SKU 规格选择器 */
.product-skus {
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}
.product-skus h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}
.product-skus h3::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: #2563eb;
}
.product-sku-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-sku-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    text-align: left;
    width: 100%;
}
.product-sku-item:hover {
    border-color: #93b4f5;
    background: #fbfdff;
    box-shadow: 0 3px 12px rgba(37, 99, 235, .08);
}
.product-sku-item.active {
    border-color: #3478e5;
    background: #f3f7ff;
    box-shadow: 0 0 0 2px rgba(52, 120, 229, .12);
}
.product-sku-option {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    color: #273449;
}
.product-sku-price {
    font-size: 17px;
    font-weight: 700;
    color: #d9344b;
    white-space: nowrap;
}
.product-sku-price small {
    margin-right: 1px;
    font-size: 14px;
    font-weight: 600;
}
.product-sku-original {
    display: none;
}
.product-sku-stock {
    min-width: 64px;
    font-size: 14px;
    color: #7b8494;
    white-space: nowrap;
    text-align: right;
}
.product-sku-code-inline { color: #7b8494; font-weight: 400; }
.product-sku-tip {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f7f8fa;
    font-size: 14px;
    color: #8a93a0;
}
.product-sku-tip span {
    color: #2563eb;
    font-weight: 600;
}
.product-price-from {
    font-size: 14px;
    color: #6c757d;
    margin-left: 4px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .product-skus {
        margin-top: 20px;
        padding-top: 18px;
    }
    .product-sku-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
        padding: 11px 13px;
    }
    .product-sku-stock {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
    .product-sku-price {
        grid-column: 2;
        grid-row: 1;
    }
}

/* 详情页图库：缩略图固定竖排在大图左侧 */
.product-detail-page .product-media-gallery-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.product-detail-page .product-media-gallery-layout > .product-thumbs {
    display: flex;
    flex: 0 0 108px;
    flex-direction: column;
    width: 108px;
    max-height: 720px;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}
.product-detail-page .product-media-gallery-layout > .product-media-stage {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
}
.product-detail-page .product-media-gallery-layout .product-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 13px;
    overflow: hidden;
}
.product-detail-page .product-media-gallery-layout .product-thumb.active {
    border-color: #f36b21;
}
.product-detail-page .product-media-gallery-layout .product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-page .product-media-gallery-layout .product-main-image {
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
}
@media (max-width: 768px) {
    .product-detail-page .product-media-gallery-layout { gap: 8px; }
    .product-detail-page .product-media-gallery-layout > .product-thumbs {
        flex-basis: 64px;
        width: 64px;
        gap: 8px;
    }
    .product-detail-page .product-media-gallery-layout .product-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
        border-radius: 9px;
    }
}

/* 详情页双容器布局：左侧内容，右侧购买区悬浮 */
.product-detail-page .product-detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
    column-gap: 42px;
    row-gap: 0;
    max-width: 1500px;
}
.product-detail-page .product-breadcrumb {
    grid-column: 1 / -1;
}
.product-detail-page .product-detail-main {
    display: contents;
}
.product-detail-page .product-gallery {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    max-width: none;
    min-width: 0;
}
.product-detail-page .product-info {
    grid-column: 2;
    grid-row: 2 / span 2;
    width: auto;
    max-width: none;
    min-width: 0;
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}
.product-detail-page .product-content {
    grid-column: 1;
    grid-row: 3;
    width: auto;
    min-width: 0;
    margin-top: 54px;
}
.product-detail-page .related-products-section {
    grid-column: 1 / -1;
    grid-row: 4;
}
@media (max-width: 768px) {
    .product-actions {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px;
    }
    .product-detail-page .product-detail-wrap {
        display: block;
    }
    .product-detail-page .product-info {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 32px;
        padding-right: 0;
    }
    .product-detail-page .product-content {
        margin-top: 42px;
    }
}

/* 参数在大图区域的预览面板 */
.product-media-specification{display:none;width:100%;aspect-ratio:1/1;padding:8px;border-radius:0;background:#fff;overflow:hidden;position:relative}.product-media-specification.active{display:flex;align-items:center;justify-content:center}.product-media-spec-table{width:100%;margin:auto;border-collapse:collapse;table-layout:fixed}.product-media-spec-table th,.product-media-spec-table td{height:56px;padding:12px 16px;border:1px solid #dee2e6;text-align:left;vertical-align:middle}.product-media-spec-table th{width:30%;background:#f8f9fa;color:#34383d;font-size:16px;font-weight:600}.product-media-spec-table td{color:#34383d;font-size:16px}.product-media-spec-empty{height:100%;display:flex;align-items:center;justify-content:center;color:#999}@media(max-width:768px){.product-media-specification{padding:4px}.product-media-spec-table th,.product-media-spec-table td{height:42px;padding:8px 10px;font-size:13px}}

/* ===== 商品大图 hover 放大镜 ===== */
.product-main-image[data-zoomable] {
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}
.product-zoom-lens {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #f36b21;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    background: #fff;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    pointer-events: none;
    z-index: 50;
    display: none;
}
.product-zoom-pane {
    position: fixed;
    top: 0;
    right: 24px;
    width: 480px;
    height: 480px;
    background: #fff;
    background-repeat: no-repeat;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
    z-index: 9999;
    display: none;
    pointer-events: none;
    background-size: 100% 100%;
    background-position: center;
}
.product-zoom-pane.is-active { display: block; }
.product-zoom-hint {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.7;
}
@media (max-width: 1200px) {
    .product-zoom-pane { width: 360px; height: 360px; right: 12px; }
}
@media (max-width: 768px) {
    .product-zoom-pane { display: none !important; }
    .product-zoom-hint { display: none; }
}

/* ===== SKU 库存状态（现货/紧张/缺货） ===== */
.product-sku-stock { display: inline-flex; align-items: center; gap: 2px; }
.product-sku-stock-in {
    color: #28a745;
    background: rgba(40, 167, 69, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.product-sku-stock-low {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    animation: skuStockPulse 1.6s ease-in-out infinite;
}
.product-sku-stock-oos {
    color: #adb5bd;
    background: rgba(173, 181, 189, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
}
@keyframes skuStockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.35); }
    50%      { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0); }
}
/* 缺货 SKU 整体置灰、不可点 */
.product-sku-item[data-stock-state="oos"] {
    opacity: 0.55;
    cursor: not-allowed;
    background: repeating-linear-gradient(
        45deg, #fafafa, #fafafa 6px, #f4f4f4 6px, #f4f4f4 12px
    );
}
.product-sku-item[data-stock-state="oos"]:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    background: repeating-linear-gradient(
        45deg, #fafafa, #fafafa 6px, #f4f4f4 6px, #f4f4f4 12px
    );
}
.product-sku-item[data-stock-state="low"] {
    border-color: rgba(217, 119, 6, 0.35);
}
.product-sku-item[data-stock-state="in"] {
    border-color: rgba(40, 167, 69, 0.2);
}

/* ===== 规格表（详情区）增强 ===== */
.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    font-size: 14px;
}
.product-spec-table tr {
    transition: background 0.18s;
}
.product-spec-table tr:hover {
    background: #fafbfc;
}
.product-spec-table th,
.product-spec-table td {
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #f1f3f5;
    text-align: left;
}
.product-spec-table tr:last-child th,
.product-spec-table tr:last-child td { border-bottom: 0; }
.product-spec-table th {
    background: #f7f8fa;
    color: #6c757d;
    font-weight: 600;
    width: 30%;
    vertical-align: top;
    position: relative;
}
.product-spec-table th::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    border-radius: 2px;
    background: #2563eb;
    margin-right: 8px;
    vertical-align: middle;
}
.product-spec-table td {
    color: #212529;
    font-weight: 500;
}
@media (max-width: 768px) {
    .product-spec-table th, .product-spec-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .product-spec-table th { width: 38%; }
}

/* ===== 评价筛选 / 置顶 ===== */
.review-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 4px;
    border-bottom: 1px solid #e9ecef;
}
.review-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all .15s ease;
}
.review-filter-tab:hover { background: #e9ecef; color: #212529; }
.review-filter-tab.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    font-weight: 600;
}
.review-filter-count { font-size: 12px; opacity: .85; }
.review-filter-spacer { flex: 1; }
.review-sort-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    background: #fff;
    color: #495057;
    cursor: pointer;
}
.review-sort-select:focus { outline: none; border-color: #0d6efd; }

.review-item.is-pinned {
    border: 1px solid #ffc107;
    background: #fffbeb;
    position: relative;
}
.review-pin-badge {
    position: absolute;
    top: -1px;
    right: 12px;
    background: #ffc107;
    color: #5a4500;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 0 0 4px 4px;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.review-pin-badge i { font-size: 12px; }

@media (max-width: 576px) {
    .review-filter-bar { gap: 6px; }
    .review-filter-tab { padding: 5px 10px; font-size: 13px; }
    .review-sort-select { width: 100%; }
}
