/* ═══════════════════════════════════════════════════════════════
   CART PAGE — COMPLETE STYLES
   Tokens: --uv-blue #0035a8 | --uv-navy #00096d | --uv-red #ce0030
           --uv-bg #f1f5f9 | --uv-yellow #ffba50
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────────────────── */

.cart-page {
    background: var(--uv-bg);
    padding: 28px 0 56px;
    min-height: 60vh;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT: 2 cột (items | summary)
   ───────────────────────────────────────────────────────────── */

.cart-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* ─────────────────────────────────────────────────────────────
   LEFT — DANH SÁCH SẢN PHẨM
   ───────────────────────────────────────────────────────────── */

.cart-items {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* Supplier badge */
.cart-items-header {
    padding: 12px 20px;
    border-bottom: 1px solid #eef0f5;
}

.cart-items-header-supplier {
    font-size: 11px;
    font-weight: 700;
    color: var(--uv-blue);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   CART ITEM ROW
   ───────────────────────────────────────────────────────────── */

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f2f4f8;
    position: relative;
    transition: background-color 0.15s ease;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #fafbff;
}

/* Product image */
.cart-item-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Product info block */
.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 36px; /* space for remove btn */
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-attrs {
    font-size: 12px;
    color: #8a94a6;
}

/* Price + qty + total inline */
.cart-item-price-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--uv-red);
    min-width: 100px;
}

.cart-item-price .old-price {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

/* Quantity stepper */
.cart-item-quantity {
    flex: 0 0 auto;
}

.cart-quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d8dfe8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cart-qty-btn {
    width: 34px;
    height: 34px;
    background: var(--uv-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #555;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.cart-qty-btn:hover {
    background: #dde9ff;
    color: var(--uv-blue);
}

.cart-qty-input {
    width: 40px;
    height: 34px;
    border: none;
    border-left: 1.5px solid #d8dfe8;
    border-right: 1.5px solid #d8dfe8;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    background: #fff;
}

/* Line total */
.cart-item-total {
    min-width: 100px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: var(--uv-red);
    margin-left: auto;
}

/* Remove (×) button — absolute top-right */
.btn-remove-item {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #c0c7d2;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.btn-remove-item:hover {
    color: var(--uv-red);
    background: #fff0f3;
}

/* ─────────────────────────────────────────────────────────────
   CART ACTIONS BAR (bottom of items card)
   ───────────────────────────────────────────────────────────── */

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #eef0f5;
    gap: 12px;
    background: #fafbfc;
}

.btn-clear-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: #fff;
    color: #666;
    border: 1.5px solid #d8dfe8;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-clear-cart:hover {
    border-color: var(--uv-red);
    color: var(--uv-red);
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--uv-blue);
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-continue-shopping:hover {
    background: var(--uv-navy);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   RIGHT — ORDER SUMMARY
   ───────────────────────────────────────────────────────────── */

.cart-summary {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    position: sticky;
    top: 76px;
}

.cart-summary-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 15px 20px;
    border-bottom: 1px solid #eef0f5;
    margin: 0;
    background: #fafbfc;
}

/* Each product summary row */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    border-bottom: 1px dashed #eef0f5;
}

.cart-summary-row:last-of-type {
    border-bottom: none;
}

.cart-summary-label {
    color: #556;
    flex: 1;
    line-height: 1.45;
}

.cart-summary-value {
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

/* Total row */
.cart-summary-row.total {
    border-top: 2px solid #eef0f5;
    border-bottom: none;
    border-image: none;
    padding: 14px 20px 10px;
}

.cart-summary-row.total .cart-summary-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--uv-red);
}

.cart-summary-row.total .cart-summary-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--uv-red);
}

/* Checkout button */
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    margin: 14px 20px 6px;
    padding: 12px 20px;
    background: var(--uv-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-checkout:hover {
    background: var(--uv-navy);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 53, 168, 0.3);
}

.btn-checkout:active {
    transform: translateY(0);
    box-shadow: none;
}

.cart-checkout-note {
    font-size: 11px;
    color: #9aa5b4;
    text-align: center;
    padding: 0 20px 16px;
    line-height: 1.5;
}

.cart-checkout-note i {
    color: #28a745;
    margin-right: 4px;
}

/* ─────────────────────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────────────────────── */

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cart-empty-icon {
    font-size: 68px;
    color: #d1d9e6;
    margin-bottom: 20px;
    line-height: 1;
}

.cart-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.cart-empty-text {
    color: #8a94a6;
    font-size: 14px;
    margin-bottom: 28px;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (≤ 991px)
   ───────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .cart-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .cart-summary {
        flex: 0 0 100%;
        width: 100%;
        position: static;
    }

    .btn-checkout {
        width: calc(100% - 40px);
    }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 767px)
   ───────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .cart-page {
        padding: 16px 0 40px;
    }

    .cart-item {
        padding: 14px 14px 14px 14px;
        gap: 12px;
    }

    .cart-item-image {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        border-radius: 6px;
    }

    .cart-item-info {
        padding-right: 32px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    .cart-item-price {
        min-width: auto;
        font-size: 14px;
    }

    .cart-item-price-row {
        gap: 10px;
    }

    .cart-item-total {
        min-width: auto;
        font-size: 14px;
    }

    .cart-qty-btn {
        width: 30px;
        height: 30px;
    }

    .cart-qty-input {
        width: 34px;
        height: 30px;
        font-size: 13px;
    }

    .btn-remove-item {
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .cart-actions {
        padding: 12px 14px;
    }

    .btn-clear-cart,
    .btn-continue-shopping {
        font-size: 12px;
        padding: 8px 14px;
    }

    .btn-checkout {
        width: calc(100% - 32px);
        margin: 14px 16px 6px;
        font-size: 13px;
        padding: 12px 16px;
    }

    .cart-checkout-note {
        padding: 0 16px 14px;
    }

    .cart-summary-row {
        padding: 9px 16px;
    }

    .cart-summary-row.total {
        padding: 12px 16px 10px;
    }
}

/* ─────────────────────────────────────────────────────────────
   ACCESSIBILITY
   ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .cart-item,
    .btn-checkout,
    .btn-clear-cart,
    .cart-qty-btn,
    .btn-remove-item {
        transition: none;
    }
}


/* ========================================
   CHECKOUT PAGE STYLES - lấy từ SieuMua247
   ======================================== */

.checkout-title-section {
    background: transparent;
    padding: 20px 0 15px;
    text-align: center;
    margin-bottom: 0;
}

.checkout-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--uv-blue);
    margin: 0;
    text-transform: uppercase;
}

.checkout-page {
    background: #f5f5f5;
    padding: 20px 40px 50px;
    min-height: 500px;
}

.checkout-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
}

/* Left Column */
.checkout-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section Box */
.checkout-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: visible;
    width: 100%;
}

.checkout-section-header {
    background: transparent;
    color: #333;
    padding: 15px 20px 10px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
}

.checkout-section-body {
    padding: 0 20px 20px;
    width: 100%;
}

/* Product Table */
.checkout-product-table {
    width: 100%;
    border-collapse: collapse;
}

/* Div-based header row for product table */
.checkout-product-table-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    text-transform: uppercase;
}

.checkout-product-table th {
    background: transparent;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.checkout-product-table th:last-child,
.checkout-product-table td:last-child {
    text-align: right;
}

.checkout-product-table td {
    padding: 12px 15px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.checkout-product-table tr:last-child td {
    border-bottom: none;
}

.checkout-product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-product-item:last-child {
    border-bottom: none;
}

.checkout-product-img {
    width: 60px;
    height: 60px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.checkout-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-product-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.checkout-qty-cell {
    text-align: center;
    color: #666;
}

.checkout-product-price {
    font-weight: 600;
    color: var(--uv-red);
}

/* ════════════════════════════════════════════════
   CHECKOUT FORM — "Thông tin nhận hàng"
   ════════════════════════════════════════════════ */

/* Group spacing */
.checkout-form-group {
    margin-bottom: 14px;
    width: 100%;
}

.checkout-form-group:last-child {
    margin-bottom: 15px;
    margin-top: 15px;
}

/* Label */
.checkout-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.checkout-form-label .required {
    color: var(--uv-red);
    margin-left: 2px;
}

/* Base input / select / textarea */
.checkout-form-input,
.checkout-form-select,
.checkout-form-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder */
.checkout-form-input::placeholder,
.checkout-form-textarea::placeholder {
    color: #9ca3af;
    font-size: 13.5px;
}

/* Focus ring — accessible blue */
.checkout-form-input:focus,
.checkout-form-select:focus,
.checkout-form-textarea:focus {
    outline: none;
    border-color: var(--uv-blue);
    box-shadow: 0 0 0 3px rgba(30, 90, 200, 0.12);
}

/* Hover (desktop) */
.checkout-form-input:hover:not(:focus),
.checkout-form-select:hover:not(:focus),
.checkout-form-textarea:hover:not(:focus) {
    border-color: #9ca3af;
}

/* Select — custom chevron */
.checkout-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
    cursor: pointer;
}

.checkout-form-select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* Select wrapper — full width, relative for icon overlay */
.checkout-form-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.checkout-form-select-wrapper .checkout-form-select {
    width: 100%;
}

/* Textarea */
.checkout-form-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
    padding: 10px 14px;
}

.checkout-form-row {
    display: flex;
    gap: 12px;
}

.checkout-form-row .checkout-form-group {
    flex: 1;
}

/* Location Selects Row */
.checkout-location-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Delivery Method Toggle */
.delivery-method-content {
    display: none;
}

.delivery-method-content.active {
    display: block;
}

/* Right Column - Payment Box */
.checkout-right {
    flex: 0 0 320px;
}

.checkout-payment-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: visible;
    position: sticky;
    top: 20px;
}

.checkout-payment-header {
    background: transparent;
    color: #333;
    padding: 15px 20px 10px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: none;
}

.checkout-payment-body {
    padding: 0 20px 20px;
}

.checkout-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-payment-label {
    color: #666;
}

.checkout-payment-value {
    color: #333;
    font-weight: 500;
}

.checkout-payment-row.total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.checkout-payment-row.total .checkout-payment-label {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.checkout-payment-row.total .checkout-payment-value {
    color: var(--uv-red);
    font-size: 18px;
    font-weight: 700;
}

/* Payment value modifiers */
.checkout-payment-value--discount {
    color: #28a745;
    font-weight: 500;
}

.checkout-payment-value--shipping {
    color: #666;
    font-weight: 500;
}

.checkout-payment-value--total {
    color: var(--uv-red);
    font-size: 18px;
    font-weight: 700;
}

/* Total row alias */
.checkout-payment-row--total {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.checkout-payment-row--total .checkout-payment-label {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

/* 2-column form row */
.checkout-form-row--2col {
    display: flex;
    gap: 12px;
}

.checkout-form-row--2col .checkout-form-group {
    flex: 1;
}

/* Voucher */
.checkout-voucher {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.checkout-voucher-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.checkout-voucher-btn {
    padding: 8px 14px;
    background: var(--uv-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.checkout-voucher-btn:hover {
    background: var(--uv-navy);
}

/* Payment Method Section */
.checkout-payment-method {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.checkout-payment-method-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Submit Button */
.btn-place-order {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--uv-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-place-order:hover {
    background: var(--uv-navy);
}

/* Office Selection */
.checkout-office-select {
    margin-top: 12px;
}

/* Add Address Link */
.checkout-add-address-link {
    color: var(--uv-blue);
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

.checkout-add-address-link:hover {
    text-decoration: underline;
}

/* Modal Styles */
.checkout-modal .modal-content {
    border-radius: 8px;
    border: none;
}

.checkout-modal .modal-header {
    background: var(--uv-blue);
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
}

.checkout-modal .modal-header .close {
    color: #fff;
    opacity: 1;
}

.checkout-modal .modal-body {
    padding: 20px;
}

.checkout-modal .modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 12px 20px;
}

/* Address Item in Modal */
.checkout-address-item {
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.checkout-address-item:hover {
    border-color: var(--uv-blue);
}

.checkout-address-item input[type="radio"] {
    width: 16px;
    height: 16px;
}

.checkout-address-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
}

/* ========================================
   CHECKOUT — RESPONSIVE
   ======================================== */

/* ── Tablet (≤ 991px): stack panels vertically ── */
@media (max-width: 991px) {
    .checkout-page {
        padding: 16px 24px 40px;
    }

    .checkout-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .checkout-right {
        flex: 0 0 100%;
        width: 100%;
    }

    .checkout-payment-box {
        position: static;
    }

    /* Right panel no longer needs fixed width */
    .checkout-right .checkout-payment-box {
        width: 100%;
    }
}

/* ── Mobile (≤ 767px) ── */
@media (max-width: 767px) {
    /* Title */
    .checkout-title-section {
        padding: 14px 0 10px;
    }

    .checkout-page-title {
        font-size: 18px;
    }

    /* Page padding */
    .checkout-page {
        padding: 12px 16px 36px;
    }

    /* Sections */
    .checkout-section-header {
        padding: 12px 14px 8px;
    }

    .checkout-section-title {
        font-size: 15px;
    }

    .checkout-section-body {
        padding: 0 14px 14px;
    }

    /* Product table: hide qty column on small screens */
    .checkout-product-table-header .checkout-col-qty,
    .checkout-product-item    .checkout-col-qty {
        display: none;
    }

    /* Col-price shrinks */
    .checkout-col-price {
        flex: 0 0 100px;
        font-size: 13px;
    }

    /* Product image */
    .checkout-product-img {
        width: 46px;
        height: 46px;
    }

    .checkout-product-name {
        font-size: 13px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Forms — mobile */
    .checkout-form-input,
    .checkout-form-select,
    .checkout-form-textarea {
        font-size: 16px; /* prevent iOS auto-zoom on focus */
        padding: 10px 12px;
        min-height: 44px;
    }

    .checkout-form-select {
        background-position: right 10px center;
        padding-right: 34px;
    }

    .checkout-form-group {
        margin-bottom: 12px;
    }

    /* Payment box */
    .checkout-payment-header {
        padding: 12px 14px 8px;
    }

    .checkout-payment-subtitle {
        font-size: 15px;
    }

    .checkout-payment-body {
        padding: 0 14px 50px;
    }

    .checkout-payment-row {
        font-size: 13px;
    }

    .checkout-payment-value--total {
        font-size: 16px;
    }

    .checkout-payment-value--accumulate {
        font-size: 14px;
    }

    /* Đặt hàng button */
    .btn-place-order {
        font-size: 15px;
        height: 44px;
    }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .checkout-page {
        padding: 10px 12px 30px;
    }

    .checkout-page-title {
        font-size: 16px;
        letter-spacing: 0;
    }

    /* Product rows stack image + info vertically when very narrow */
    .checkout-product-item {
        flex-wrap: wrap;
    }

    .checkout-col-product {
        flex: 1 1 100%;
    }

    .checkout-col-price {
        flex: 1 1 100%;
        text-align: left;
        padding-left: 58px;
    }

    /* Inputs fill viewport nicely */
    .checkout-form-input,
    .checkout-form-select,
    .checkout-form-textarea {
        font-size: 16px; /* prevent iOS auto-zoom on focus */
    }
}


/* ========================================
   CHECKOUT PAGE — FIGMA OVERRIDES
   Khớp với thiết kế node 43-3507
   ======================================== */

/* Page title */
.checkout-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--uv-blue);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section title */
.checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* Product columns in div-based table */
.checkout-col-product {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-col-qty {
    flex: 0 0 110px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.checkout-col-price {
    flex: 0 0 160px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--uv-red);
}

/* Header row: bold labels */
.checkout-product-table-header .checkout-col-qty,
.checkout-product-table-header .checkout-col-price {
    font-weight: 700;
    color: #333;
}

/* Product image inside item row */
.checkout-product-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    flex-shrink: 0;
    background: #fafafa;
}

/* Product info text block */
.checkout-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-product-attrs {
    font-size: 12px;
    color: #888;
}

/* Select wrapper — adds chevron to native selects */
.checkout-form-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.checkout-form-select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
}

.checkout-form-select-wrapper .checkout-form-select {
    padding-right: 36px;
    background-image: none; /* override old bg chevron */
}

/* Divider inside payment box */
.checkout-payment-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 12px 0;
}

/* Payment subtitle */
.checkout-payment-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

/* Payment method select in right panel */
.checkout-payment-select {
    margin-bottom: 0;
}

/* Tích luỹ UP — blue bold */
.checkout-payment-value--accumulate {
    color: var(--uv-blue);
    font-weight: 700;
    font-size: 15px;
}

/* Payment section wrapper */
.checkout-payment-section {
    margin-bottom: 4px;
}

/* Đặt hàng button — Figma exact */
.btn-place-order {
    background: #0036a5;
    border-radius: 10px;
    height: 45px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 14px;
}

.btn-place-order:hover {
    background: #002d8a;
}

/* ========================================
   CONFIRM ORDER PAGE STYLES
   ======================================== */

.confirm-page {
    background: var(--uv-bg);
    padding: 30px 0 60px;
    min-height: 500px;
}

.confirm-page-inner {
    max-width: 700px;
    margin: 0 auto;
}

.confirm-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--uv-blue);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.confirm-page-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 28px;
}

.confirm-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
    overflow: hidden;
}

.confirm-section-header {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-section-body {
    padding: 16px 20px;
}

.confirm-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f5f5f5;
}

.confirm-info-row:last-child {
    border-bottom: none;
}

.confirm-info-label {
    flex: 0 0 130px;
    color: #888;
    font-size: 13px;
}

.confirm-info-value {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.confirm-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.confirm-product-item:last-child {
    border-bottom: none;
}

.confirm-product-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.confirm-product-qty {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.confirm-product-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--uv-red);
    white-space: nowrap;
    text-align: right;
    min-width: 90px;
}

.confirm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f5f5f5;
}

.confirm-summary-row:last-child {
    border-bottom: none;
}

.confirm-summary-row.total {
    border-top: 2px solid #e5e5e5;
    border-bottom: none;
    margin-top: 6px;
    padding-top: 12px;
}

.confirm-summary-label {
    color: #666;
}

.confirm-summary-value {
    color: #333;
    font-weight: 500;
}

.confirm-summary-row.total .confirm-summary-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.confirm-summary-row.total .confirm-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--uv-red);
}

.btn-confirm-payment {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--uv-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.btn-confirm-payment:hover {
    background: var(--uv-navy);
}

.confirm-hotline {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.confirm-hotline span {
    color: var(--uv-blue);
    font-weight: 600;
}

@media (max-width: 767px) {
    .confirm-page-title {
        font-size: 18px;
    }

    .confirm-info-label {
        flex: 0 0 100px;
    }

    .confirm-product-item {
        flex-wrap: wrap;
    }

    .confirm-product-name {
        flex: 1 1 100%;
    }
}


/* ========================================
   ORDER SUCCESS PAGE STYLES - lấy từ SieuMua247
   ======================================== */

.order-success-page {
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.order-success-box {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--uv-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.success-icon i {
    font-size: 40px;
    color: #fff;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px;
    text-transform: uppercase;
}

.success-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 35px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success-primary,
.btn-success-secondary {
    padding: 14px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 180px;
    text-align: center;
}

.btn-success-primary {
    background: var(--uv-blue);
    color: #fff;
    border: 2px solid var(--uv-blue);
}

.btn-success-primary:hover {
    background: var(--uv-navy);
    border-color: var(--uv-navy);
    color: #fff;
}

.btn-success-secondary {
    background: #fff;
    color: var(--uv-blue);
    border: 2px solid var(--uv-blue);
}

.btn-success-secondary:hover {
    background: var(--uv-blue);
    color: #fff;
}

@media (max-width: 480px) {
    .success-title {
        font-size: 22px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .success-icon i {
        font-size: 35px;
    }

    .success-actions {
        flex-direction: column;
    }

    .btn-success-primary,
    .btn-success-secondary {
        width: 100%;
    }
}
