/* ===================================================
   HC28 Maison 购物功能样式
   =================================================== */

/* ---- 购物车图标（商品规格卡片底部） ---- */
.cart-icon-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    z-index: 10;
}
@media screen and (max-width: 768px) {
   .cart-icon-btn {
        bottom: -15px;
        right: 5px;
        width: 18px;
        height: 18px;
    }
    .erp-spec-section-title{
        font-size: 1rem !important;
    }
    .spec-group-title{
        font-size: 1rem !important;
    }
    .spec-total-label{
        font-size: 1rem !important;
    }
    .erp-summary-right{
        display: none;
    }
}
.cart-icon-btn:hover { opacity: 0.6; }
.cart-icon-btn svg {
    width: 22px;
    height: 22px;
    stroke: #000;
    fill: none;
    stroke-width: 1.5;
}
.product-card-bottom {
    position: relative;
}

/* ---- 规格选择弹窗 ---- */
.spec-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
}
.spec-overlay.active { display: block; }

.spec-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 520px;
    max-width: 100vw;
    height: 100%;
    background: #f5f5f5;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.spec-panel.active { right: 0; }

.spec-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}
.spec-panel-header h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #111;
}
.spec-panel-close {
    width: 32px; height: 32px;
    background: none; border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.spec-panel-close:hover { color: #000; }

.spec-panel-body { padding: 0 30px; }

/* 商品主体信息 */
.spec-product-info {
    display: flex;
    gap: 16px;
    padding: 20px 0 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}
.spec-product-img {
    width: 80px; height: 80px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}
.spec-product-meta { flex: 1; }
.spec-product-meta .sku { font-size: 14px; color: #333; font-weight: 500; }
.spec-product-meta .spec-size { font-size: 12px; color: #888; margin-top: 4px; }
.spec-product-meta .spec-price {
    font-size: 18px; color: #111; font-weight: 600; margin-top: 8px;
}

/* ERP 型号弹窗（GetModelInfo / sale_props） */
.erp-spec-top {
    padding: 12px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
    background: #f4f6f8;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.erp-spec-section-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 30px;
}
.erp-symmetry-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.erp-symmetry-card {
    flex: 0 0 auto;
    width: 132px;
    cursor: pointer;
    text-align: left;
}
.erp-symmetry-card:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}
.erp-symmetry-thumb {
    position: relative;
    border: 1px solid #c8c8c8;
    background: #fafafa;
    padding: 8px;
    margin-bottom: 8px;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.erp-symmetry-card.selected .erp-symmetry-thumb {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}
.erp-symmetry-check {
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, transparent 45%, #111 45%);
    z-index: 1;
    pointer-events: none;
}
.erp-symmetry-check::after {
    content: '\2713';
    position: absolute;
    top: 3px;
    right: 3px;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}
.erp-spec-hero-img--mirror {
    transform: scaleX(-1);
}
.shop-model-img--mirror {
    transform: scaleX(-1);
}
.erp-symmetry-meta {
    font-size: 11px;
    color: #333;
    line-height: 1.45;
}
.erp-symmetry-code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    color: #111;
    margin-bottom: 4px;
}
.erp-symmetry-spec-mm,
.erp-symmetry-spec-en {
    color: #444;
}
.erp-spec-hero-single {
    text-align: center;
}
.erp-spec-code-sub {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}
.erp-spec-hero {
    width: 100%;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    margin-bottom: 10px;
}
.erp-spec-hero-img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}
.erp-spec-code {
    font-size: 13px;
    color: #333;
    text-align: center;
    letter-spacing: 0.02em;
}
.erp-zt-hint {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}
.erp-zt-hint #spec-price-num {
    font-weight: 600;
    color: #111;
}
.erp-swatch-img {
    background-color: #e8e8e8 !important;
}
.erp-swatch-plain {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}
.erp-lvl-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.erp-ml-grade {
    margin-bottom: 12px;
}
.erp-ml-grade-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}
.erp-ml-top-tabs {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0 0 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.erp-ml-top-tab {
    position: relative;
    font-size: 14px;
    line-height: 1.2;
    color: #333;
    cursor: pointer;
    padding-bottom: 4px;
    flex: 0 0 auto;
}
.erp-ml-top-tab.active {
    color: #111;
    font-weight: 600;
}
.erp-ml-top-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #111;
}
.erp-ml-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 12px;
}
.erp-ml-grid .spec-color-item {
    padding: 0;
}
.erp-ml-grid .spec-color-swatch {
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
}
.erp-ml-grid .spec-color-label {
    margin-top: 6px;
    font-size: 13px;
    color: #333;
}

/* 主商品：主体 + 销售属性 + 主面料，配件整体在其下方 */
.erp-main-product-wrap {
    padding-bottom: 8px;
}

.erp-parts-outer {
    padding: 8px 0 12px;
    border-bottom: 0;
    margin-bottom: 8px;
}
.erp-parts-outer.erp-parts-after-main {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}
.erp-parts-section-head {
    margin-bottom: 14px;
}
.erp-part-block {
    padding-bottom: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.erp-part-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.erp-part-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    display: none;
}
.erp-part-name {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}
.erp-part-required-tag {
    font-size: 11px;
    color: #c00;
    border: 1px solid #c00;
    padding: 1px 6px;
    border-radius: 2px;
}
.erp-part-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    display: none;
}

/* 配件Tab切换 */
.erp-parts-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 12px;
    gap: 20px;
}
.erp-parts-tab {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}
.erp-parts-tab:hover {
    color: #111;
}
.erp-parts-tab.active {
    color: #111;
    font-weight: 600;
}
.erp-parts-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #111;
}
.erp-parts-tab-code {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #999;
    margin-top: 2px;
}
.erp-parts-panels {
    position: relative;
}
.erp-parts-panel {
    display: none;
}
.erp-parts-panel.active {
    display: block;
}
.erp-parts-panel .erp-part-block {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 规格分组 */
.spec-group {
    padding: 16px 0;
    /* border-bottom: 1px solid #f0f0f0; */
}
.spec-group-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
} 
.spec-group-title .required-mark { color: #e00; font-size: 12px; }

/* 子分组标签 */
.spec-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.spec-sub-tab {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}
.spec-sub-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* 颜色色块 */
.spec-color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
}
.spec-color-item {
    position: relative;
    cursor: pointer;
}
.spec-color-swatch {
    width: 100%;
    padding-top: 100%;
    max-width: 200px;
    max-height: 200px;
    position: relative;
}
.spec-color-swatch-inner {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.spec-color-item.selected .spec-color-swatch-inner {
    border-color: #111;
}
.spec-color-swatch-inner.erp-swatch-img {
    border: 0;
}
.spec-color-item.selected .spec-color-swatch-inner.erp-swatch-img {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px #111;
}
.spec-color-item.selected .spec-color-swatch-inner::after {
    content: '';
    position: absolute;
    top: 2px; right: 2px;
    width: 12px; height: 12px;
    background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
}
.spec-color-label {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    line-height: 1.2;
}

/* ERP 销售属性：无 prop_values_child 时，文字块（与稿图一致：描边/浅底/选中深底白字） */
.spec-color-grid.erp-sp-grid--pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    grid-template-columns: none;
}
.erp-sp-grid--pills .spec-color-item.erp-sp-pill {
    width: auto;
    flex: 0 0 auto;
}
.erp-sp-pill .spec-color-swatch--text-pill {
    width: auto;
    min-width: 0;
    padding: 0;
    padding-top: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 8px 16px;
    box-sizing: border-box;
    border: 1px solid #0f1419;
    background: #e4e8ec;
    color: #0f1419;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.erp-swatch-pill-text {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}
.erp-sp-pill.selected .spec-color-swatch--text-pill {
    background: #0f1419;
    color: #fff;
    border-color: #0f1419;
}

.erp-part-subject-default {
    pointer-events: none;
}

/* 图片选项（配件等） */
.spec-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.spec-image-item {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 4px;
    transition: border-color 0.15s;
}
.spec-image-item.selected { border-color: #111; }
.spec-image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f5f5f5;
}
.spec-image-item .spec-image-name {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 4px;
}

/* 价格汇总 */
.spec-summary {
    /*position: sticky;*/
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 16px 24px;
    margin: 0 -24px;
}
.spec-summary-items { margin-bottom: 30px; }
.spec-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #555;
}
.spec-summary-item .color-dot {
    width: 16px; height: 16px;
    flex-shrink: 0;
    border: 1px solid #ddd;
}
.erp-summary-line {
    display: grid;
    grid-template-columns: 170px 1fr auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.erp-summary-left {
    min-width: 0;
}
.erp-summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.1;
}
.erp-summary-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #666;
    line-height: 1.1;
}
.erp-summary-mid {
    min-height: 38px;
    display: flex;
    align-items: center;
}
.erp-summary-right {
    font-size: 16px;
    color: #111;
    white-space: nowrap;
}
.erp-summary-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.erp-summary-plus {
    font-size: 24px;
    color: #111;
    line-height: 1;
}
.erp-summary-thumb {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 1px solid #dcdcdc;
    background: #f2f2f2;
}
.erp-summary-thumb-inner {
    display: block;
    width: 100%;
    height: 100%;
}
.spec-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.spec-total-label { font-size: 1.5rem; color: #000; }
.spec-total-price { font-size: 22px; font-weight: 700; color: #111; }
.spec-total-price span { font-size: 1.5rem; font-weight: 400; }

.spec-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}
.btn-add-list {
    flex: 0 0 124px;
    height: 34px;
    padding: 0 16px;
    border: 1px solid #3d3d3d;
    background: #fff;
    color: #222;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0;
}
.btn-add-list:hover { background: #f5f5f5; }
.btn-buy-now {
    flex: 0 0 124px;
    height: 34px;
    padding: 0 16px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.15s;
    letter-spacing: 0;
}
.btn-buy-now:hover { opacity: 0.85; }

/* ---- 购物车页面 ---- */
.cart-page { padding: 40px 0 80px; }
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #111;
}
.cart-header h1 { font-size: 24px; font-weight: 400; letter-spacing: 0.1em; margin: 0; }
.cart-delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}
.cart-delivery:hover { color: #111; }

.cart-table-header {
    display: grid;
    grid-template-columns: 40px 1fr 200px 120px 80px;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #888;
    align-items: center;
}
.cart-item-row {
    display: grid;
    grid-template-columns: 40px 1fr 200px 120px 80px;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.cart-item-img {
    width: 80px; height: 80px;
    object-fit: cover;
    background: #f5f5f5;
}
.cart-item-info { display: flex; gap: 16px; align-items: flex-start; }
.cart-item-meta .item-name { font-size: 14px; font-weight: 500; color: #111; }
.cart-item-meta .item-sku { font-size: 12px; color: #888; margin-top: 3px; }
.cart-item-meta .item-spec { font-size: 12px; color: #888; margin-top: 2px; }
.cart-item-colors {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.cart-item-colors .color-dot {
    width: 16px; height: 16px;
    border: 1px solid #ddd;
    display: inline-block;
}
.cart-item-colors .color-dot-img {
    background-size: cover;
    background-position: center;
}
.cart-item-colors .plus-sign { font-size: 10px; color: #999; }
.order-spec-swatches {
    margin-top: 0;
    transform: none;
    grid-area: swatches;
    align-self: center;
    justify-self: start;
    flex-wrap: nowrap;
    padding-top: 0;
}
.order-spec-swatches .color-dot {
    width: 24px;
    height: 24px;
    border: 0;
}
.order-spec-swatches .plus-sign {
    line-height: 24px;
    font-size: 12px;
    color: #111;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    width: fit-content;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}
.qty-btn {
    width: 30px; height: 30px;
    background: none; border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: #f5f5f5; }
.qty-input {
    width: 40px; height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.cart-item-price { font-size: 14px; color: #111; font-weight: 500; }
.cart-item-delete {
    background: none; border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 18px;
    padding: 4px;
}
.cart-item-delete:hover { color: #e00; }

/* 购物车右侧结算 */
.cart-sidebar {
    position: sticky;
    top: 100px;
}
.cart-summary-box {
    border: 1px solid #eee;
    padding: 24px;
}
.cart-summary-box h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
    color: #555;
}
.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.summary-delivery-note {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 4px;
}
.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-top: 20px;
    letter-spacing: 0.08em;
    transition: opacity 0.15s;
}
.btn-checkout:hover { opacity: 0.85; }
.btn-checkout:disabled { opacity: 0.4; cursor: not-allowed; }

/* 地址选择 */
.address-select-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f8f8;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}
.address-select-bar:hover { background: #f0f0f0; }
.address-select-bar .addr-text { flex: 1; }
.address-select-bar .addr-arrow { color: #999; }

/* 空购物车 */
.cart-empty {
    text-align: center;
    padding: 80px 0;
    color: #999;
}
.cart-empty svg { width: 80px; height: 80px; stroke: #ddd; margin-bottom: 20px; }
.cart-empty p { font-size: 14px; margin-bottom: 20px; }
.btn-go-shop {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid #111;
    color: #111;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.08em;
}
.btn-go-shop:hover { background: #111; color: #fff; }

/* ---- 订单列表页 ---- */
.order-page { padding: 20px 0 60px; }
.order-filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
    overflow-x: auto;
}
.order-filter-tab {
    padding: 10px 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}
.order-filter-tab:hover { color: #111; }
.order-filter-tab.active {
    color: #111;
    border-bottom-color: #111;
    font-weight: 500;
}

.order-card {
    border: 1px solid #eee;
    margin-bottom: 16px;
    background: #fff;
}
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    color: #888;
}
.order-card-header .order-sn { color: #333; font-weight: 500; }
.order-status-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 2px;
}
.order-delete-inline {
    margin-left: 8px;
    border: 0;
    background: transparent;
    color: #c00;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.order-delete-inline:hover {
    color: #a00;
}
.status-unpaid { background: #fff3e0; color: #e65100; }
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-preparing { background: #e3f2fd; color: #1565c0; }
.status-shipped { background: #f3e5f5; color: #6a1b9a; }
.status-completed { background: #f5f5f5; color: #555; }

.order-card-body { padding: 12px 20px 8px; }
.order-item-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 120px;
    column-gap: 18px;
    row-gap: 2px;
    align-items: start;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}
.order-item-row:last-child { border-bottom: none; }
.order-item-img {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 132px;
    height: 84px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}
.order-item-info {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: max-content 10px max-content;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
        "category category category"
        "name name name"
        "sku gap swatches"
        "spec gap swatches";
    align-items: start;
    row-gap: 1px;
    width: auto;
    min-width: 0;
    transform: translateY(10px);
}
.order-item-info .item-name {
    grid-area: name;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.22;
    margin: 0 0 3px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 0;
    align-items: baseline;
}
.order-item-category {
    grid-area: category;
    color: #b85b6b;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 3px;
}
.order-item-info .item-name-en,
.order-item-info .item-name-cn {
    white-space: nowrap;
}
.order-item-info .item-sku {
    grid-area: sku;
    font-size: 12px;
    color: #999;
    line-height: 1.22;
    margin-top: 4px;
}
.order-item-info .item-spec {
    grid-area: spec;
    font-size: 12px;
    color: #999;
    line-height: 1.22;
    margin-bottom: 0;
}
.order-item-price {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    font-size: 13px;
    color: #111;
    font-weight: 500;
    text-align: right;
}
.order-item-qty { font-size: 11px; color: #999; margin-top: 2px; }

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
}
.order-total { font-size: 14px; color: #111; }
.order-total strong { font-size: 18px; font-weight: 700; }
.order-actions { display: flex; gap: 8px; }
.btn-order-action {
    padding: 7px 16px;
    font-size: 12px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s;
}
.btn-order-action:hover { background: #111; color: #fff; }
.btn-order-action.primary { background: #111; color: #fff; }
.btn-order-action.primary:hover { opacity: 0.85; }

/* ---- 订单详情页 ---- */
.order-detail-page { padding: 20px 0 60px; }
.order-status-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0;
    overflow-x: auto;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 80px;
}
.step-item::before {
    content: '';
    position: absolute;
    top: 15px;
    left: calc(-50% + 15px);
    right: calc(50% + 15px);
    height: 2px;
    background: #eee;
}
.step-item:first-child::before { display: none; }
.step-item.done::before { background: #111; }
.step-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: #bbb;
    position: relative;
    z-index: 1;
}
.step-item.done .step-dot { border-color: #111; background: #111; color: #fff; }
.step-item.current .step-dot { border-color: #111; color: #111; }
.step-label {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    text-align: center;
}
.step-item.done .step-label,
.step-item.current .step-label { color: #111; font-weight: 500; }

.detail-section {
    margin-bottom: 24px;
    border: 1px solid #eee;
}
.detail-section-title {
    padding: 12px 20px;
    background: #f8f8f8;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eee;
}
.detail-section-body { padding: 16px 20px; }
.detail-info-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.detail-info-label { color: #888; min-width: 80px; flex-shrink: 0; }
.detail-info-value { color: #333; }

/* ---- 地址管理页 ---- */
.address-page { padding: 20px 0 60px; }
.address-card {
    border: 1px solid #eee;
    padding: 16px 20px;
    margin-bottom: 12px;
    position: relative;
    transition: border-color 0.15s;
}
.address-card.default { border-color: #111; }
.address-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.address-name { font-size: 14px; font-weight: 500; color: #111; }
.address-mobile { font-size: 13px; color: #666; }
.address-default-badge {
    font-size: 11px;
    padding: 1px 8px;
    border: 1px solid #111;
    color: #111;
}
.address-detail { font-size: 13px; color: #555; line-height: 1.6; }
.address-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.btn-addr-action {
    font-size: 12px;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.btn-addr-action:hover { color: #111; }
.btn-addr-action.danger:hover { color: #e00; }

.btn-add-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 1px dashed #ccc;
    background: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}
.btn-add-address:hover { border-color: #111; color: #111; }

/* 地址表单模态框 */
.addr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.addr-modal-overlay.active { display: flex; }
.addr-modal {
    background: #fff;
    width: 500px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}
.addr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.addr-modal-header h3 { font-size: 15px; margin: 0; }
.addr-modal-close {
    background: none; border: none;
    font-size: 20px; cursor: pointer; color: #888;
}
.addr-modal-body { padding: 20px; }
.addr-form-group { margin-bottom: 16px; }
.addr-form-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}
.addr-form-group label .req { color: #e00; }
.addr-form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.addr-form-control:focus { border-color: #111; }
.addr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}
.btn-addr-cancel {
    padding: 9px 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}
.btn-addr-save {
    padding: 9px 24px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

/* ---- 支付弹窗 ---- */
.pay-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.pay-modal-overlay.active { display: flex; }
.pay-modal {
    background: #fff;
    width: 460px;
    max-width: 95vw;
    padding: 32px;
}
.pay-modal h3 {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin: 0 0 8px;
}
.pay-modal .pay-amount {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}
.pay-modal .pay-amount span { font-size: 16px; font-weight: 400; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pay-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: border-color 0.15s;
}
.pay-method-item:hover { border-color: #ccc; }
.pay-method-item.selected { border-color: #111; }
.pay-method-icon { width: 32px; height: 32px; object-fit: contain; }
.pay-method-name { font-size: 14px; color: #333; flex: 1; }
.pay-method-radio {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex; align-items: center; justify-content: center;
}
.pay-method-item.selected .pay-method-radio {
    border-color: #111;
    background: #111;
}
.pay-method-item.selected .pay-method-radio::after {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
}
.btn-confirm-pay {
    display: block;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 0.08em;
}
.btn-confirm-pay:hover { opacity: 0.85; }
.pay-cancel-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
}

/* ---- 通用提示 ---- */
.shop-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 24px;
    font-size: 13px;
    z-index: 99999;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.shop-toast.show { opacity: 1; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .spec-panel {
        width: 100%;
        right: -100%;
    }
    .spec-panel.active {
        right: 0;
    }
    .spec-panel-header {
        padding: 16px 20px 14px;
    }
    .spec-panel-header h3 {
        font-size: 16px;
    }
    .spec-panel-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    .erp-spec-section-title,
    .spec-group-title {
        font-size: 14px !important;
        margin-bottom: 14px;
    }
    .spec-group {
        padding: 12px 0;
    }
    .erp-main-product-wrap {
        padding-bottom: 4px;
    }
    .erp-parts-outer {
        padding: 6px 0 10px;
        margin-bottom: 6px;
        border-bottom: 0;
    }
    .erp-parts-outer.erp-parts-after-main {
        margin-top: 8px;
        padding-top: 12px;
    }
    .erp-parts-section-head {
        margin-bottom: 12px;
    }
    .erp-ml-top-tab {
        font-size: 12px;
    }
    .erp-sp-pill .spec-color-swatch--text-pill {
        min-height: 26px;
        padding: 5px 10px;
    }
    .erp-swatch-pill-text {
        font-size: 12px;
    }
    .spec-color-label,
    .erp-ml-grid .spec-color-label {
        font-size: 10px;
        line-height: 1.15;
        text-decoration: none !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
    }
    .spec-color-label *,
    .erp-ml-grid .spec-color-label * {
        text-decoration: none !important;
        border-bottom: 0 !important;
    }
    .spec-panel-body {
        padding: 0 20px;
    }
    .erp-spec-top {
        margin-left: -20px;
        margin-right: -20px;
        padding: 12px 20px 16px;
    }
    .erp-symmetry-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }
    .erp-symmetry-card {
        width: auto;
        min-width: 0;
        max-width: 80%;
    }
    .erp-symmetry-thumb {
        min-height: 0;
        aspect-ratio: 1;
        padding: 6px;
        margin-bottom: 6px;
    }
    .erp-symmetry-check {
        width: 22px;
        height: 22px;
    }
    .erp-symmetry-check::after {
        top: 2px;
        right: 2px;
        font-size: 9px;
    }
    .erp-symmetry-code {
        font-size: 10px;
        margin-bottom: 2px;
    }
    .erp-symmetry-meta {
        font-size: 9px;
        line-height: 1.3;
    }
    .erp-ml-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px 8px;
    }
    .spec-sub-tabs,
    .erp-ml-top-tabs,
    .spec-color-grid.erp-sp-grid--pills {
        gap: 15px;
        margin-bottom: 10px;
    }
    .spec-color-grid {
        gap: 7px;
    }
    .spec-summary {
        padding: 14px 20px 16px;
        margin: 0 -20px;
    }
    .spec-summary-items {
        margin-bottom: 18px;
    }
    .erp-summary-line {
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 12px;
        margin-bottom: 12px;
        align-items: start;
    }
    .erp-summary-title {
        font-size: 13px;
        line-height: 1.2;
    }
    .erp-summary-sub {
        font-size: 10px;
        line-height: 1.2;
    }
    .erp-summary-mid {
        min-height: 0;
        justify-content: flex-start;
    }
    .erp-summary-thumbs {
        gap: 5px;
        flex-wrap: nowrap;
    }
    .erp-summary-thumb {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }
    .erp-summary-plus {
        font-size: 16px;
    }
    .spec-total {
        margin-bottom: 10px;
    }
    .spec-total-label {
        font-size: 13px !important;
    }
    .spec-total-price {
        font-size: 13px;
    }
    .spec-total-price span {
        font-size: 13px;
    }
    .spec-actions {
        gap: 12px;
    }
    .btn-add-list,
    .btn-buy-now {
        flex: 1 1 0;
        height: 32px;
        line-height: 30px;
        font-size: 13px;
        padding: 0 10px;
    }
    .cart-table-header { display: none; }
    .cart-item-row {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
    }
    .cart-item-row .cart-item-info { grid-column: 2; }
    .cart-item-row .cart-item-price,
    .cart-item-row .cart-item-delete { grid-column: 2; }
    .spec-color-grid { grid-template-columns: repeat(5, 1fr); }
    .order-card-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
    .addr-form-row { grid-template-columns: 1fr; }
}

/* ---- 购物车页面二次优化 ---- */
body:has(.cart-page) { background: #f4f5f7; }
.cart-container {
    max-width: none;
}
.cart-page {
    padding: 24px 28px 58px;
    background: #fff;
    box-sizing: border-box;
}
.cart-page > .row {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.cart-page > .row::before,
.cart-page > .row::after {
    display: none;
}
.cart-page > .row > .col-md-8 {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    float: none;
    padding-left: 0;
    padding-right: 0;
}
.cart-page > .row > .col-md-4 {
    flex: 0 0 330px;
    width: 330px;
    float: none;
    padding-left: 0;
    padding-right: 0;
}
.cart-sidebar {
    width: 100%;
}
.cart-header {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #111;
}
.cart-header h1 {
    color: #111;
    font-size: 22px;
    font-family: "SourceHanSansCN-Mediu", "SourceHanSansCN-Medium", "SourceHanSansCN-Bold", "SourceHanSansCN-Normal", sans-serif;
    font-weight: 500;
}
.cart-delivery {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    max-width: 56%;
    color: #111;
    text-align: center;
    font-family: "SourceHanSansCN-Light", "SourceHanSansCN-Normal", sans-serif;
}
.cart-table-header {
    grid-template-columns: 76px 306px 92px minmax(96px, 1fr);
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}
.cart-top-select {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #111;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.cart-table-header > div:nth-child(2),
.cart-table-header > div:nth-child(3),
.cart-table-header > div:nth-child(4),
.cart-table-header > div:nth-child(5) {
    display: none;
}
.cart-item-row {
    grid-template-columns: 32px 306px 92px minmax(96px, 1fr);
    gap: 12px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.cart-item-specs { display: none; }
.cart-item-info {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}
.cart-item-img {
    width: 170px;
    height: 106px;
    object-fit: contain;
    background: transparent;
    align-self: center;
    justify-self: center;
    transform: translateX(-18px);
}
.cart-item-meta {
    display: block;
    margin-bottom: 0;
    padding-top: 0;
    min-width: 0;
}
.cart-item-meta .item-name {
    color: #111;
    font-size: 14px;
    font-family: "SourceHanSansCN-Mediu", "SourceHanSansCN-Medium", "SourceHanSansCN-Bold", "SourceHanSansCN-Normal", sans-serif;
    font-weight: 500;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    column-gap: 4px;
    row-gap: 0;
    align-items: baseline;
}
.cart-item-meta .item-name-en,
.cart-item-meta .item-name-cn {
    white-space: nowrap;
}
.cart-item-meta .item-sku,
.cart-item-meta .item-spec {
    color: #111;
    font-family: "SourceHanSansCN-Light", "SourceHanSansCN-Normal", sans-serif;
    font-weight: 300;
    line-height: 1.65;
}
.cart-item-colors {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    align-self: center;
    justify-self: center;
    flex-wrap: nowrap;
}
.cart-item-swatches {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    align-self: center;
    justify-self: start;
    flex-wrap: nowrap;
    margin-top: -28px;
}
.cart-item-swatches .color-dot {
    width: 34px;
    height: 34px;
    border: 0;
    display: inline-block;
    background-size: cover;
    background-position: center;
}
.cart-item-swatches .plus-sign {
    color: #111;
    font-size: 18px;
    line-height: 34px;
}
.cart-item-colors .color-dot {
    width: 34px;
    height: 34px;
    border: 0;
}
.cart-item-colors .plus-sign {
    color: #111;
    font-size: 18px;
    line-height: 34px;
}
.order-item-info .order-spec-swatches {
    grid-column: 3;
    grid-row: 2 / span 2;
    align-self: center;
    justify-self: start;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 0;
    transform: translate(40px, 4px);
}
.order-item-info .order-spec-swatches .color-dot {
    width: 34px;
    height: 34px;
}
.order-item-info .order-spec-swatches .plus-sign {
    font-size: 16px;
    line-height: 34px;
}
.order-spec-detail-list {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}
.order-spec-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    min-height: 24px;
    max-width: 100%;
    min-width: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}
.order-spec-detail-thumb {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex: 0 0 24px;
    background-size: cover;
    background-position: center;
}
.order-spec-detail-text strong {
    color: #333;
    font-weight: 500;
}
.order-spec-detail-text {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
}
.order-spec-detail-text em {
    margin-right: 4px;
    color: #999;
    font-style: normal;
}
.order-detail-swatch-only {
    display: none !important;
}
.cart-item-qty-cell {
    margin-top: 6px;
}
.cart-item-meta .cart-item-qty-cell {
    display: inline-flex;
    align-items: center;
}
.cart-item-total-cell {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    text-align: right;
}
.qty-btn {
    width: 24px;
    height: 28px;
    padding: 0;
    line-height: 28px;
}
.qty-input {
    width: 28px;
    height: 28px;
    padding: 0;
    line-height: 28px;
    border-left: 0;
    border-right: 0;
}
.cart-page input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid #111;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    position: relative;
    vertical-align: middle;
    outline: none;
    box-shadow: none;
}
.cart-page input[type="checkbox"]:checked {
    background: #111;
    border-color: #111;
}
.cart-page input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}
.cart-page input[type="checkbox"]:focus,
.cart-page input[type="checkbox"]:active {
    outline: none;
    box-shadow: none;
}
#cart-select-all,
#cart-select-all-bottom {
    width: 20px;
    height: 20px;
}
#cart-select-all:checked::after,
#cart-select-all-bottom:checked::after {
    left: 7px;
    top: 4px;
}
.cart-bottom-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-top: 0;
    border-top: 0;
    line-height: 20px;
    width: 100%;
    box-sizing: border-box;
}
.cart-bottom-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.cart-batch-delete,
.cart-batch-delete:hover,
.cart-batch-delete:focus,
.cart-batch-delete:active {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    line-height: 20px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
    vertical-align: middle;
}
.cart-batch-delete:hover { color: #111; }
.cart-selected-count {
    margin-left: auto;
    color: #666;
    font-size: 13px;
    line-height: 20px;
}
.cart-summary-box {
    width: 100%;
    min-height: 285px;
    padding: 28px 28px 22px;
    border-color: #eee;
    box-sizing: border-box;
}
.cart-summary-box h3 {
    margin-bottom: 24px;
}
.btn-checkout {
    height: 48px;
    padding: 0;
    margin-top: 24px;
    background: #a5a5a5;
    line-height: 48px;
}
.btn-checkout:not(:disabled) {
    background: #111;
    opacity: 1;
    cursor: pointer;
}
.shop-toast.cart-toast {
    transform: none;
    white-space: nowrap;
}

@media screen and (max-width: 900px) {
    .cart-page {
        padding: 16px 12px 250px;
    }
    .cart-page > .row {
        display: block;
        gap: 0;
    }
    .cart-page > .row > .col-md-8,
    .cart-page > .row > .col-md-4 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        flex: none;
    }
    .cart-header {
        margin-bottom: 14px;
    }
    .cart-delivery {
        position: static;
        transform: none;
        flex: 1;
        justify-content: flex-end;
        min-width: 0;
        max-width: none;
        font-size: 12px;
        text-align: right;
    }
    .cart-item-row {
        position: relative;
        grid-template-columns: 24px 112px minmax(0, 1fr) 82px;
        grid-template-rows: auto auto;
        gap: 8px 10px;
        padding: 20px 0;
        align-items: start;
    }
    .cart-item-row > div:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
    }
    .cart-item-info {
        display: contents;
    }
    .cart-item-swatches {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        align-self: start;
        margin-top: 4px;
    }
    .cart-item-total-cell {
        position: static;
        grid-column: 4;
        grid-row: 1 / 3;
        align-self: start;
        justify-self: end;
        text-align: right;
    }
    .cart-item-price {
        font-size: 12px;
        line-height: 1.4;
        white-space: nowrap;
    }
    .cart-item-delete {
        display: block;
        margin: 8px 0 0 auto;
        padding: 0;
        line-height: 1;
        font-size: 18px;
    }
    .cart-item-img {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 108px;
        height: 88px;
        transform: none;
        justify-self: center;
        align-self: center;
    }
    .cart-item-meta {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-self: start;
        min-width: 0;
    }
    .cart-item-meta .item-name {
        font-size: 13px;
        line-height: 1.35;
        word-break: normal;
        white-space: normal;
        margin-bottom: 3px;
    }
    .cart-item-meta .item-sku,
    .cart-item-meta .item-spec {
        font-size: 11px;
        line-height: 1.45;
        white-space: nowrap;
    }
    .cart-item-meta .cart-item-qty-cell {
        margin-top: 6px;
    }
    .cart-item-swatches .color-dot {
        width: 28px;
        height: 28px;
    }
    .cart-item-swatches .plus-sign {
        line-height: 28px;
        font-size: 14px;
    }
    .cart-item-colors {
        margin-top: 8px;
    }
    .cart-item-colors .color-dot {
        width: 18px;
        height: 18px;
    }
    .qty-btn {
        width: 24px;
        height: 30px;
        line-height: 30px;
    }
    .qty-input {
        width: 26px;
        height: 30px;
        line-height: 30px;
    }
    .cart-bottom-actions {
        gap: 12px;
        flex-wrap: nowrap;
    }
    .cart-page > .row > .col-md-4 {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
    }
    .cart-sidebar {
        position: static;
        width: 100%;
    }
    .cart-summary-box {
        min-height: 0;
        padding: 14px 16px 16px;
        border: 1px solid #eee;
    }
    .cart-summary-box h3 {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .summary-row {
        margin-bottom: 6px;
    }
    .summary-row.total {
        margin-top: 8px;
        padding-top: 8px;
    }
    .summary-delivery-note {
        margin-top: 4px;
    }
    .btn-checkout {
        height: 44px;
        line-height: 44px;
        margin-top: 10px;
    }
}

@media screen and (min-width: 901px) and (max-width: 1100px) {
    .cart-page {
        padding: 22px 24px 48px;
    }
    .cart-page > .row {
        display: block;
        gap: 0;
    }
    .cart-page > .row > .col-md-8,
    .cart-page > .row > .col-md-4 {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
        flex: none;
    }
    .cart-page > .row > .col-md-4 {
        margin-top: 22px;
    }
    .cart-sidebar {
        width: 100%;
        position: static;
    }
    .cart-summary-box {
        min-height: 0;
        max-width: none;
    }
}

/* ---- 订单列表和会员中心间距优化 ---- */
.order-page .order-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.order-page .order-title-row .page-header {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
}
.order-page .order-search-box {
    margin-bottom: 0;
    margin-left: auto;
}
.order-page .order-search-box .search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    max-width: none;
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.order-page .order-search-box .search-input {
    width: 0;
    opacity: 0;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid #111;
    color: #111;
    font-size: 13px;
    transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}
.order-page .order-search-box.active .search-input,
.order-page .order-search-box .search-input:focus,
.order-page .order-search-box .search-input:not(:placeholder-shown) {
    width: 280px;
    opacity: 1;
    padding: 6px 8px;
}
.order-page .order-search-box .search-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
    padding: 0;
}
.order-page .order-search-box .search-btn:hover,
.order-page .order-search-box .search-btn:active {
    transform: none;
    box-shadow: none;
}
.order-card-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}
.order-card-header .order-time {
    white-space: nowrap;
}
.order-card-header .order-sn {
    color: #333;
    font-weight: 500;
}
.order-state-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

@media screen and (max-width: 900px) {
    .order-page {
        padding-top: 10px;
    }
    .order-title-row {
        align-items: center;
        margin-bottom: 12px;
    }
    .order-search-box.active .search-input,
    .order-search-box .search-input:focus,
    .order-search-box .search-input:not(:placeholder-shown) {
        width: 190px;
    }
    .order-card-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 10px;
        padding: 12px 14px;
    }
    .order-card-header .order-time,
    .order-card-header .order-sn {
        grid-column: 1;
        white-space: normal;
        line-height: 1.6;
    }
    .order-state-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: start;
        flex-direction: column;
        align-items: flex-end;
        justify-self: end;
        gap: 4px;
    }
    .order-card-body {
        padding: 12px;
    }
    .order-item-row {
        grid-template-columns: 82px minmax(0, 1fr) 62px;
        column-gap: 8px;
        row-gap: 0;
        padding: 12px 0;
        align-items: start;
    }
    .order-item-img {
        grid-column: 1;
        grid-row: 1;
        width: 82px;
        height: 58px;
        align-self: center;
    }
    .order-item-info {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "name"
            "sku"
            "spec"
            "swatches";
        min-width: 0;
        row-gap: 0;
        transform: none;
    }
    .order-item-info .item-name {
        display: flex;
        flex-wrap: wrap;
        column-gap: 4px;
        font-size: 12px;
        line-height: 1.25;
        margin: 0 0 2px;
        white-space: normal;
    }
    .order-item-info .item-name-en,
    .order-item-info .item-name-cn {
        white-space: nowrap;
    }
    .order-item-info .item-sku,
    .order-item-info .item-spec {
        white-space: nowrap;
        font-size: 10px;
        line-height: 1.25;
    }
    .order-item-info .order-spec-swatches {
        grid-column: 1;
        grid-row: 4;
        margin-top: 6px;
        padding-top: 0;
        justify-self: start;
        align-self: start;
        max-width: 100%;
        overflow: hidden;
        gap: 4px;
        transform: none;
    }
    .order-item-info .order-spec-swatches .color-dot {
        width: 22px;
        height: 22px;
    }
    .order-item-info .order-spec-swatches .plus-sign {
        line-height: 22px;
        font-size: 11px;
    }
    .order-spec-detail-list {
        display: none !important;
    }
    .order-detail-swatch-only {
        display: flex !important;
    }
    .order-item-price {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
        justify-self: end;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.4;
    }
    .order-card-footer {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 8px;
    }
    .order-actions {
        justify-content: flex-end;
    }
}
