/* 批量表格基础样式 */
.custom-bulk-variations-wrapper {
    margin: 20px 0 !important;
    width: 100% !important;
}
.custom-bulk-variations-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin-bottom: 15px !important;
    table-layout: auto !important;
}
.custom-bulk-variations-table th,
.custom-bulk-variations-table td {
    padding: 12px 8px !important;
    border-bottom: 1px solid #eee !important;
    text-align: left !important;
    vertical-align: top !important;
    background: #fff !important;
}
.custom-bulk-variations-table th {
    font-weight: 600 !important;
    background: #f9f9f9 !important;
    color: #000 !important;
}
.custom-bulk-variations-table .col-qty {
    width: auto !important;
    min-width: 300px !important;
    position: relative !important;
}
.custom-bulk-variations-table .var-qty {
    text-align: center !important;
}
.custom-bulk-variations-table .var-name {
    font-size: 1em !important;
    color: #333 !important;
}
.custom-bulk-variations-table .var-price {
    font-size: 1em !important;
    font-weight: bold !important;
    color: #000 !important;
}

/* 每行定制区域 */
.row-customization {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: left;
}
.customize-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 14px;
}
.customize-toggle input[type="checkbox"] {
    display: none;
}
.toggle-slider {
    width: 36px;
    height: 18px;
    background: #ccc;
    border-radius: 18px;
    position: relative;
    transition: 0.3s;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}
.customize-toggle input:checked + .toggle-slider {
    background: #304FFF;
}
.customize-toggle input:checked + .toggle-slider::after {
    left: 20px;
}
.customization-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}
.custom-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.custom-field label {
    font-size: 12px;
    font-weight: 500;
}
.custom-field input {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* 数量控制 */
.qty-controls {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.qty-btn {
    width: 36px !important;
    height: 36px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    flex-shrink: 0 !important;
    color: #333 !important;
}
.qty-btn:hover {
    color: white !important;
    background: #304FFF !important;
}
.qty-input {
    width: 70px !important;
    height: 36px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    color: #000 !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 重置按钮 */
.reset-qty-btn {
    position: absolute !important;
    right: 8px !important;
    top: 12px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    z-index: 10 !important;
}
.reset-icon {
    font-size: 15px !important;
}

/* 定制费总计 */
.total-customization-fee {
    margin: 15px 0;
    font-weight: bold;
    font-size: 16px;
    color: #c8102e;
    text-align: right;
}

/* 加入购物车按钮 */
.bulk-add-to-cart-btn {
    width: 100% !important;
    padding: 16px !important;
    background: #c8102e !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}
.bulk-add-to-cart-btn:hover {
    background: #a00 !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .custom-bulk-variations-table th,
    .custom-bulk-variations-table td {
        padding: 8px 4px !important;
        font-size: 13px !important;
    }
    .custom-bulk-variations-table .col-qty {
        min-width: 220px !important;
    }
    .reset-qty-btn {
        right: 4px !important;
        top: 8px !important;
        font-size: 11px !important;
    }
    .qty-controls { gap:6px !important; }
    .qty-btn { width:30px !important; height:30px !important; font-size:13px !important; }
    .qty-input { width:55px !important; height:30px !important; font-size:15px !important; }
    .customization-fields { grid-template-columns:1fr; }
    .bulk-add-to-cart-btn { padding:14px !important; font-size:16px !important; }
}

/* 折扣信息 */
.tiered-discount-info {
    background: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #007cba;
}
.tiered-discount-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
}