
    /* ============================================================
       CART PAGE — FIXED & FULLY RESPONSIVE
    ============================================================ */


    .cart-page {
        --brand: #502110;
        --brand-dark: #3a180c;
        --brand-soft: #ffff;
        --brand-line: #ebe0da;
        --radius: 6px;
        --text-strong: #1a1a1a;
        --text-body: #4a4a4a;
        --text-muted: #8c8c8c;
        --line: #ececec;
        --bg: #f7f7f8;
        --success: #12a150;

        padding: 28px 0 70px;
        color: var(--text-body);
        font-size: 14px;
        line-height: 1.55;
        font-family: inherit;
    }

    .cart-page *,
    .cart-page *::before,
    .cart-page *::after {
        box-sizing: border-box;
    }

    .cart-page .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 15px;
        width: 100%;
    }

    /* ============ GRID ============ */
    .cart-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 24px;
        align-items: start;
    }
    .cart-main, .cart-side { min-width: 0; }

    /* ============ CART CARD ============ */
    .cart-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
    }

    /* Table head */
    .cart-table-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 110px 130px 110px 50px;
        gap: 16px;
        align-items: center;
        padding: 14px 22px;
        background: var(--brand-soft);
        border-bottom: 1px solid var(--brand-line);
        font-size: 11.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--brand);
    }
    .cart-table-head .col-price,
    .cart-table-head .col-qty,
    .cart-table-head .col-subtotal { text-align: center; }

    /* Item row */
    .cart-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 110px 130px 110px 50px;
        gap: 16px;
        align-items: center;
        padding: 20px 22px;
        border-bottom: 1px solid var(--line);
        transition: background .2s;
    }
    .cart-item:last-child { border-bottom: none; }
    .cart-item:hover { background: #fcfbfa; }

    /* Product cell */
    .col-product {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
    }
    .item-thumb {
        width: 84px;
        height: 84px;
        flex-shrink: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: #fff;
        display: block;
    }
    .item-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }
    .item-thumb:hover img { transform: scale(1.06); }

    .item-body { min-width: 0; flex: 1; }

    .item-title {
        font-size: 14.5px;
        font-weight: 600;
        color: var(--text-strong);
        text-decoration: none;
        margin-bottom: 6px;
        line-height: 1.35;
        transition: color .2s;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .item-title:hover { color: var(--brand); }

    .item-attrs {
        display: flex;
        gap: 14px;
        flex-wrap: wrap;
        margin-bottom: 6px;
        font-size: 12.5px;
        color: var(--text-muted);
    }
    .item-attrs em {
        font-style: normal;
        color: var(--text-body);
        font-weight: 500;
    }

    .item-stock {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--success);
    }
    .item-stock svg { flex-shrink: 0; }

    /* Price / Qty / Subtotal cells */
    .col-price,
    .col-subtotal {
        text-align: center;
        font-size: 14px;
    }
    .price-value {
        color: var(--text-body);
        font-weight: 500;
    }
    .subtotal-value {
        color: var(--brand);
        font-weight: 500;
        font-size: 16px;
    }
    .mobile-label { display: none; }

    .col-qty { display: flex; justify-content: center; }

    /* Qty selector */
    .qty-selector {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        background: #fff;
    }
    .qty-btn {
        width: 32px;
        height: 36px;
        border: none;
        background: #fff;
        color: var(--text-body);
        cursor: pointer;
        transition: all .18s;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .qty-btn:hover {
        background: var(--brand);
        color: #fff;
    }
    .qty-btn:active { transform: scale(.94); }

    .qty-selector input {
        width: 40px;
        height: 36px;
        border: none;
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
        text-align: center;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--brand);
        background: #fff;
        padding: 0;
    }
    .qty-selector input:focus { outline: none; }

    /* Remove */
    .col-remove { display: flex; justify-content: center; }
    .remove-btn {
        width: 34px;
        height: 34px;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        background: #fff;
        color: #b8b8b8;
        cursor: pointer;
        transition: all .22s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .remove-btn:hover {
        background: #fdf0f0;
        border-color: #f3c9c9;
        color: #d64545;
    }
    .remove-btn svg { display: block; }

    /* ============ FOOTER ACTIONS ============ */
    .cart-footer-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
        flex-wrap: wrap;
    }
    .btn-secondary-cart,
    .btn-ghost-cart {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 22px;
        border-radius: var(--radius);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all .25s ease;
        text-decoration: none;
        white-space: nowrap;
        font-family: inherit;
    }
    .btn-secondary-cart {
        background: #fff;
        border: 1px solid var(--brand);
        color: var(--brand);
    }
    .btn-secondary-cart:hover {
        background: var(--brand);
        color: #fff;
    }
    .btn-ghost-cart {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--text-body);
    }
    .btn-ghost-cart:hover {
        background: #fff;
        border-color: var(--brand);
        color: var(--brand);
    }

    /* ============ COUPON ============ */
    .coupon-card {
        margin-top: 16px;
        background: #fff;
        border: 1px dashed var(--brand-line);
        border-radius: var(--radius);
        padding: 18px 22px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 18px;
        align-items: center;
    }
    .coupon-icon {
        width: 46px;
        height: 46px;
        background: var(--brand-soft);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand);
        flex-shrink: 0;
    }
    .coupon-text strong {
        display: block;
        font-size: 14px;
        color: var(--text-strong);
        font-weight: 600;
        margin-bottom: 2px;
    }
    .coupon-text span {
        font-size: 12.5px;
        color: var(--text-muted);
    }
    .coupon-form {
        display: flex;
        gap: 8px;
    }
    .coupon-input-wrap {
        display: flex;
        align-items: center;
    }
    .coupon-input-wrap input {
        padding: 11px 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        font-size: 13px;
        width: 220px;
        transition: all .2s;
        background: #fafafa;
        font-family: inherit;
    }
    .coupon-input-wrap input:focus {
        outline: none;
        border-color: var(--brand);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(80, 33, 16, .06);
    }
    .coupon-form button {
        padding: 11px 22px;
        background: var(--brand);
        color: #fff;
        border: none;
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 13px;
        cursor: pointer;
        transition: background .25s;
        white-space: nowrap;
        font-family: inherit;
    }
    .coupon-form button:hover { background: var(--brand-dark); }

    /* ============ SUMMARY ============ */
    .summary-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        position: sticky;
        top: 20px;
        overflow: hidden;
    }
    .summary-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        border-bottom: 1px solid var(--line);
        background: #fff;
    }
    .summary-header h3 {
        font-size: 24px;
        font-weight: 600;
        color: var(--brand);
        margin: 0;
        display: inline-block;
        padding: 0;
    }
    .summary-badge {
        background: var(--brand-soft);
        color: var(--brand);
        font-size: 11px;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 6px;
        letter-spacing: .3px;
    }

    .summary-body { padding: 20px 22px; }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13.5px;
        color: var(--text-body);
        margin-bottom: 13px;
        gap: 12px;
    }
    .summary-row span:last-child {
        font-weight: 600;
        color: var(--text-strong);
        text-align: right;
    }
    .summary-row:last-of-type { margin-bottom: 0; }
    .text-free {
        color: var(--success) !important;
        font-weight: 700 !important;
    }

    .summary-divider {
        height: 1px;
        background: var(--line);
        margin: 16px 0;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    .total-label {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: var(--brand);
        margin-bottom: 2px;
    }
    .total-note {
        display: block;
        font-size: 11.5px;
        color: var(--text-muted);
    }
    .total-value {
        font-size: 22px;
        font-weight: 600;
        color: var(--brand);
        letter-spacing: -.5px;
        white-space: nowrap;
    }

    .summary-cta { padding: 0 22px 20px; }

    .btn-primary-cart {
        width: 100%;
        padding: 14px 20px;
        background: var(--brand);
        color: #fff;
        border: none;
        border-radius: var(--radius);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all .28s ease;
        letter-spacing: .3px;
        font-family: inherit;
    }
    .btn-primary-cart:hover {
        background: var(--brand-dark);
        box-shadow: 0 8px 20px rgba(80, 33, 16, .26);
        transform: translateY(-1px);
    }
    .btn-primary-cart svg { flex-shrink: 0; }

    .summary-payments {
        padding: 16px 22px 20px;
        border-top: 1px solid var(--line);
        text-align: center;
    }
    .pay-label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .8px;
        color: var(--text-muted);
        margin-bottom: 10px;
    }
    .pay-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }
    .pay-icons svg {
        transition: all .2s;
        display: block;
    }
    .pay-icons svg:hover { transform: translateY(-2px); }

    /* ============ TRUST ============ */
    .trust-card {
        margin-top: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 4px 20px;
    }
    .trust-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
    }
    .trust-row:last-child { border-bottom: none; }
    .trust-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: var(--brand-soft);
        color: var(--brand);
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .trust-info { min-width: 0; }
    .trust-info strong {
        display: block;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text-strong);
        margin-bottom: 1px;
    }
    .trust-info span {
        font-size: 12px;
        color: var(--text-muted);
    }

    /* ============================================================
       RESPONSIVE
    ============================================================ */

    /* Tablet — 1024px */
    @media (max-width: 1024px) {
        .cart-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .summary-card { position: static; }
        .cart-side {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .trust-card { margin-top: 0; }
    }

    /* Small tablet — 820px */
    @media (max-width: 820px) {
        .cart-table-head { display: none; }

        .cart-item {
            grid-template-columns: 100px 1fr auto;
            grid-template-areas:
                "thumb body   remove"
                "thumb price  qty"
                "subtotal subtotal subtotal";
            gap: 10px 14px;
            padding: 18px;
            align-items: start;
        }

        .col-product { display: contents; }
        .item-thumb {
            grid-area: thumb;
            width: 100px;
            height: 100px;
        }
        .item-body { grid-area: body; }

        .col-price {
            grid-area: price;
            display: flex;
            align-items: center;
            gap: 8px;
            text-align: left;
            justify-content: flex-start;
        }
        .col-qty {
            grid-area: qty;
            justify-content: flex-end;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }
        .col-qty .mobile-label {
            text-align: right;
        }
        .col-subtotal {
            grid-area: subtotal;
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-align: left;
            padding-top: 10px;
            border-top: 1px dashed var(--line);
        }
        .col-remove {
            grid-area: remove;
            justify-content: flex-end;
            align-items: flex-start;
        }

        .mobile-label {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: .5px;
            color: var(--text-muted);
        }
        .subtotal-value { font-size: 16px; }

        .coupon-card {
            grid-template-columns: auto 1fr;
            gap: 14px;
        }
        .coupon-form {
            grid-column: 1 / -1;
        }
        .coupon-input-wrap { flex: 1; }
        .coupon-input-wrap input { width: 100%; }
    }

    /* Mobile — 640px */
    @media (max-width: 640px) {
        .cart-page { padding: 20px 0 50px; }

        .cart-heading h1 { font-size: 22px; }

        .cart-steps {
            gap: 6px;
            width: 100%;
            justify-content: flex-start;
        }
        .step-line { flex: 1; max-width: 30px; }
        .step-label { font-size: 11px; }
        .step-num { width: 24px; height: 24px; font-size: 11px; }

        .cart-side {
            grid-template-columns: 1fr;
        }

        .cart-footer-actions {
            flex-direction: column-reverse;
            align-items: stretch;
        }
        .btn-secondary-cart,
        .btn-ghost-cart {
            justify-content: center;
            width: 100%;
        }

        .coupon-card { padding: 16px; }
        .coupon-icon { width: 40px; height: 40px; }
        .coupon-form { flex-direction: column; }
        .coupon-form button { width: 100%; }

        .summary-header,
        .summary-body,
        .summary-payments { padding-left: 18px; padding-right: 18px; }
        .summary-cta { padding: 0 18px 18px; }
        .total-value { font-size: 20px; }
    }

    /* Small mobile — 420px */
    @media (max-width: 420px) {
        .cart-item {
            grid-template-columns: 84px 1fr auto;
            gap: 8px 12px;
            padding: 14px;
        }
        .item-thumb { width: 84px; height: 84px; }
        .item-title { font-size: 13.5px; }
        .item-attrs { font-size: 11.5px; gap: 10px; }

        .qty-btn { width: 28px; height: 32px; }
        .qty-selector input { width: 34px; height: 32px; font-size: 12.5px; }

        .cart-heading h1 { font-size: 20px; }
        .step-label { display: none; }
        .step-line { max-width: 20px; }
    }