body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: #fff;
}

.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--checkout-primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.page-header {
    background: linear-gradient(135deg, var(--checkout-primary) 0%, var(--checkout-primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.cart-container {
    margin-top: 2rem;
}

.cart-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cart-item.out-of-stock {
    background: #fff5f5;
    border-color: #ffcccc;
}

.cart-item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cart-item-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cart-item-warning {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.cart-item-warning i {
    margin-right: 0.25rem;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 1;
}

.out-of-stock-badge {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.out-of-stock-badge i {
    margin-right: 0.25rem;
}

.stock-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.5rem;
    background: #fff;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cart-item-brand {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-specs {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-current {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--checkout-primary);
}

.price-original {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-save {
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 500;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--bg-input);
    border-color: var(--checkout-primary);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.25rem;
}

.remove-btn {
    color: #dc3545;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #c82333;
}

.cart-summary {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 500;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
}

.summary-total .summary-value {
    color: var(--checkout-primary);
    font-size: 1.5rem;
}

.btn-checkout {
    background-color: var(--checkout-primary);
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: var(--checkout-primary-dark);
    color: #fff;
}

.btn-continue {
    background-color: #fff;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    width: 100%;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.btn-continue:hover {
    border-color: var(--checkout-primary);
    color: var(--checkout-primary);
}

.promo-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.promo-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.promo-input-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.promo-input {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.promo-input#promoCaptcha {
    flex: 0 0 120px;
    max-width: 120px;
}

.promo-input:focus {
    outline: none;
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.1);
}

.promo-btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    background: var(--checkout-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-weight: 500;
    min-width: 80px;
}

.promo-btn:hover {
    background: var(--checkout-primary-dark);
}

.promo-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}


.promo-active-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.promo-active-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.promo-active-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.promo-active-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-primary-lightest);
    border: 1px solid var(--checkout-primary);
    border-radius: 4px;
    font-size: 0.9rem;
}

.promo-active-code {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--checkout-primary);
    font-weight: 500;
}

.promo-active-code i {
    color: var(--checkout-primary);
}

.promo-active-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.85rem;
}

.promo-active-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

.promo-empty {
    text-align: center;
    padding: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

.shipping-info {
    background: var(--bg-primary-lightest);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    border-left: 4px solid var(--checkout-primary);
}

.shipping-info i {
    color: var(--checkout-primary);
    margin-right: 0.5rem;
}

.empty-cart {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1rem;
}

.related-products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background: #fff;
}

.product-card-body {
    padding: 1rem;
}

.product-card-brand {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--checkout-primary);
}

.cart-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-count {
    font-size: 1.1rem;
    font-weight: 500;
}

.clear-cart-btn {
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.clear-cart-btn:hover {
    color: var(--text-primary);
}

/* ========================================
   手機版樣式（參考 卡片.html 設計）
   ======================================== */
@media (max-width: 768px) {

    /* 手機版隱藏 header */
    body:has(.cart-container) .main-header {
        display: none !important;
    }

    /* 移除 main-content 的 padding */
    body:has(.cart-container) .main-content {
        padding: 0;
    }

    /* 手機版：購物車使用固定佈局，不顯示 footer */
    body.cart-page-body {
        padding-bottom: 0 !important;
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        width: 100% !important;
    }

    /* 調整容器（因為沒有 header 和 padding） */
    .cart-container {
        padding-top: 20px;
        padding-bottom: 60px;
        overflow-y: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px;
        max-width: 100%;
    }

    /* 手機版空購物車調整 */
    .empty-cart {
        padding: 2rem 1.5rem;
    }

    /* 隱藏網頁版購物車商品 */
    .cart-item.d-flex {
        display: none !important;
    }

    /* === 手機版購物車商品卡片 === */
    .cart-item-mobile {
        width: 100%;
        padding: 10px;
        border: 1px solid gainsboro;
        border-radius: 8px;
        background: white;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    /* Checkbox */
    .cart-item-mobile>.mobile-checkbox {
        width: 18px;
        height: 18px;
        margin: 0 8px 0 0;
        flex-shrink: 0;
        cursor: pointer;
    }

    .cart-item-mobile>.mobile-checkbox:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

    /* 左側區域：圖片 + 數量控制 (20%) */
    .mobile-left {
        width: 25%;
    }

    .mobile-left img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        display: block;
    }

    /* 手機版數量控制：調整間距以配合卡片佈局 */
    .mobile-left .quantity-control {
        margin-top: 8px;
        justify-content: space-around;
    }

    /* 右側區域：標題 + 價格 (70%) */
    .mobile-right {
        width: 50%;
    }

    .mobile-title {
        font-size: 18px;
        letter-spacing: 1px;
        line-height: 24px;
        color: var(--text-primary);
        word-break: break-word;
        margin-bottom: 4px;
    }

    .mobile-price {
        font-size: 18px;
        letter-spacing: 1px;
        line-height: 24px;
        color: var(--text-primary);
        font-weight: 500;
        margin-top: 2px;
    }

    .mobile-tax-info {
        font-size: 14px;
        letter-spacing: 1px;
        line-height: 24px;
        color: var(--text-secondary);
    }

    /* 折扣相關樣式 */
    .mobile-price-original {
        font-size: 14px;
        letter-spacing: 1px;
        line-height: 24px;
        color: var(--text-tertiary);
        text-decoration: line-through;
        margin-top: 2px;
    }

    .mobile-price-save {
        font-size: 12px;
        color: var(--success-color);
        margin-top: 2px;
    }

    /* 警告訊息 */
    .mobile-warning {
        font-size: 11px;
        color: #dc3545;
        margin-top: 4px;
    }

    .mobile-warning i {
        margin-right: 4px;
    }

    /* 滑動刪除按鈕 */
    .mobile-delete-btn {
        width: 50px;
        background: #dc3545;
        color: white;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 500;
        z-index: 1;
        border-radius: 0 8px 8px 0;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .mobile-delete-btn i {
        font-size: 18px;
        margin-bottom: 4px;
    }

    /* 滑動時顯示刪除按鈕 */
    .cart-item-mobile.swiping .mobile-delete-btn {
        opacity: 1;
    }

    /* 庫存不足卡片樣式 */
    .cart-item-mobile.out-of-stock {
        background: #fff5f5;
        border-color: #ffcccc;
    }

    /* 庫存不足遮罩 */
    .mobile-stock-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 22%;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        z-index: 2;
        pointer-events: none;
    }

    .mobile-stock-badge {
        background: #dc3545;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: 600;
        font-size: 10px;
        margin-bottom: 4px;
    }

    .mobile-stock-badge i {
        margin-right: 2px;
    }

    .mobile-stock-info {
        color: var(--text-secondary);
        font-size: 10px;
    }

    /* 購物車摘要和促銷區 */
    .cart-summary {
        position: relative;
        margin-top: 2rem;
    }

    .promo-input-row {
        flex-direction: column;
    }

    .promo-input {
        width: 100%;
        min-width: 100%;
    }

    .promo-input#promoCaptcha {
        flex: 1;
        max-width: 100%;
    }

    .promo-btn {
        width: 100%;
        min-width: 100%;
    }
}

/* 網頁版：確保手機版元素不顯示 */
@media (min-width: 769px) {
    .cart-item-mobile {
        display: none !important;
    }
    
    /* 隐藏手机版布局 */
    .mobile-cart-wrapper {
        display: none !important;
    }
    
    .mobile-checkout-bar {
        display: none !important;
    }
    
    .mobile-summary-overlay {
        display: none !important;
    }
}

/* ========================================
   手機版新布局樣式
   ======================================== */
@media (max-width: 768px) {
    
    /* 隐藏网页版布局 */
    .desktop-cart {
        display: none !important;
    }
    
    /* === 手機版整體容器 === */
    .mobile-cart-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 60px; /* mobileBottomNav 高度 */
        display: flex;
        flex-direction: column;
        background: #f5f5f5;
    }
    
    /* === 可滚动区域 === */
    .mobile-scroll-area {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        padding-bottom: 80px; /* 预留底部栏空间 */
    }
    
    /* === 可折叠区块通用样式 === */
    .mobile-section {
        background: white;
        border-radius: 8px;
        margin-bottom: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }
    
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        user-select: none;
        background: white;
        border-radius: 8px;
    }
    
    .section-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
        cursor: pointer;
    }
    
    .section-title i {
        color: var(--checkout-primary);
        font-size: 18px;
    }
    
    .section-count {
        font-size: 14px;
        color: var(--text-tertiary);
        font-weight: normal;
    }
    
    .section-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .section-clear-btn {
        background: none;
        border: none;
        color: var(--text-tertiary);
        cursor: pointer;
        font-size: 13px;
        padding: 4px 8px;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: color 0.3s;
    }
    
    .section-clear-btn:active {
        color: #dc3545;
    }
    
    .section-clear-btn i {
        font-size: 14px;
    }
    
    .section-arrow {
        color: var(--text-tertiary);
        font-size: 14px;
        transition: transform 0.3s ease;
        cursor: pointer;
        padding: 4px;
    }
    
    .mobile-section[data-collapsed="true"] .section-arrow {
        transform: rotate(-90deg);
    }
    
    .section-content {
        max-height: 3000px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .mobile-section[data-collapsed="true"] .section-content {
        max-height: 0;
    }
    
    /* === 商品区样式 === */
    #mobileCartItems {
        padding: 0 12px 12px;
    }
    
    /* === 优惠码区样式 === */
    .mobile-promo-inputs {
        padding: 12px 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-promo-input {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-light);
        border-radius: 6px;
        font-size: 14px;
    }
    
    .mobile-promo-input:focus {
        outline: none;
        border-color: var(--checkout-primary);
        box-shadow: 0 0 0 2px rgba(0, 166, 81, 0.1);
    }
    
    .mobile-promo-btn {
        width: 100%;
        padding: 12px;
        background: var(--checkout-primary);
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .mobile-promo-btn:active {
        background: var(--checkout-primary-dark);
    }
    
    .mobile-promo-active-list {
        padding: 0 16px 12px;
    }
    
    /* === 固定底部结帐栏 === */
    .mobile-checkout-bar {
        position: fixed;
        bottom: 75px; /* mobileBottomNav 高度 */
        left: 0;
        right: 0;
        height: 64px;
        background: white;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        gap: 10px;
        z-index: 998;
    }
    
    .bar-select-all {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        flex-shrink: 0;
        order: 1;
    }
    
    .bar-select-all input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
    
    .bar-select-all label {
        font-size: 13px;
        color: var(--text-primary);
        cursor: pointer;
        margin: 0;
    }
    
    .bar-checkout-btn {
        flex-shrink: 0;
        width: 140px;
        height: 50px;
        background: var(--checkout-primary);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        order: 3;
        box-shadow: var(--shadow-primary);
    }
    
    .bar-checkout-btn i {
        font-size: 16px;
    }
    
    .bar-checkout-btn span {
        font-size: 15px;
    }
    
    .bar-checkout-btn:active {
        background: var(--checkout-primary-dark);
        transform: scale(0.98);
    }
    
    .bar-amount {
        flex: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        cursor: pointer;
        padding: 6px 10px;
        background: #f8f9fa;
        border-radius: 6px;
        min-width: 0;
        max-width: 45%;
        order: 2;
    }
    
    .amount-label {
        font-size: 12px;
        color: var(--text-secondary);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .amount-value {
        font-size: 16px;
        font-weight: bold;
        color: var(--checkout-primary);
        white-space: nowrap;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .amount-count {
        font-size: 11px;
        color: var(--text-tertiary);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .amount-arrow {
        font-size: 12px;
        color: var(--text-tertiary);
        margin-left: auto;
        flex-shrink: 0;
    }
    
    /* === 订单摘要弹层 === */
    .mobile-summary-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-summary-overlay.show {
        display: block;
        opacity: 1;
    }
    
    .mobile-summary-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 70vh;
        background: white;
        border-radius: 16px 16px 0 0;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-summary-overlay.show .mobile-summary-sheet {
        transform: translateY(0);
    }
    
    .sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
    }
    
    .sheet-header h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        color: var(--text-primary);
    }
    
    .sheet-close {
        background: none;
        border: none;
        color: var(--text-tertiary);
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .sheet-body {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
    }
    
    .sheet-body .summary-row {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
    }
    
    .sheet-body .summary-row:last-child {
        border-bottom: none;
    }
    
    .sheet-body .summary-total {
        font-size: 18px;
        font-weight: bold;
        padding-top: 16px;
        margin-top: 8px;
        border-top: 2px solid var(--border-light);
    }
    
    .sheet-body .summary-total .summary-value {
        color: var(--checkout-primary);
        font-size: 22px;
    }
    
    .sheet-footer {
        flex-shrink: 0;
        padding: 16px 20px;
        border-top: 1px solid var(--border-light);
    }
    
    .sheet-checkout-btn {
        width: 100%;
        height: 48px;
        background: var(--checkout-primary);
        color: white;
        border: none;
        border-radius: 24px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background 0.3s;
    }
    
    .sheet-checkout-btn:active {
        background: var(--checkout-primary-dark);
    }
    
}

/* 商品來源標籤樣式 */
.cart-origin-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

.cart-origin-tag.overseas {
    background: #f3e5f5;
    color: #9C27B0;
}

.cart-origin-tag.domestic {
    background: var(--bg-primary-lightest);
    color: var(--primary-color);
}

/* 手機版商品來源標籤樣式 */
.mobile-origin-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
    vertical-align: middle;
}

.mobile-origin-tag.overseas {
    background: #f3e5f5;
    color: #9C27B0;
}

.mobile-origin-tag.domestic {
    background: var(--bg-primary-lightest);
    color: var(--primary-color);
}