@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Myanmar:wght@400;500;700&display=swap");
:root {
    --brand-bg: #f4eadb;
    --brand-bg-soft: #fbf4e9;
    --brand-surface: #fffaf2;
    --brand-line: #e4d0b4;
    --brand-text: #3f281b;
    --brand-muted: #7f6351;
    --brand-primary: #5c3320;
    --brand-primary-hover: #74442b;
    --brand-accent: #c99340;
    --brand-danger: #8f3c2d;
}
* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: "Noto Sans Myanmar", "Padauk", "Pyidaungsu", sans-serif;
    padding: 14px;
    background: linear-gradient(160deg, var(--brand-bg) 0%, var(--brand-bg-soft) 45%, #f1e3cf 100%);
    color: var(--brand-text);
    margin: 0;
    overflow-x: hidden;
}
input, select, textarea, button { font-family: inherit; }
.amount-font { font-family: "Helvetica Neue", Arial, sans-serif; }
.cart-container {
    max-width: 800px;
    margin: 12px auto;
    background: var(--brand-surface);
    border: 1px solid var(--brand-line);
    padding: 24px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 24px rgba(70, 39, 23, 0.1);
}
h1 {
    border-bottom: 2px solid var(--brand-line);
    padding-bottom: 10px;
    color: var(--brand-primary);
    font-size: clamp(1.2rem, 4.6vw, 1.75rem);
    line-height: 1.25;
    margin-top: 6px;
}
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { border-bottom: 1px solid var(--brand-line); padding: 12px; text-align: left; vertical-align: middle; }
th { background: #f7eee1; color: var(--brand-primary); }
.cart-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    background: #fffdf8;
}
.cart-table-wrap table {
    margin-top: 0;
    min-width: 620px;
}
.total-area {
    text-align: right;
    font-size: clamp(1.1rem, 4.2vw, 1.5rem);
    font-weight: 700;
    margin-top: 20px;
    color: var(--brand-primary);
}

.btn-checkout {
    display: block; width: 100%; text-align: center; background-color: var(--brand-primary); color: white;
    padding: 13px; text-decoration: none; border-radius: 8px; font-weight: bold; margin-top: 16px;
}
.btn-checkout:hover { background-color: var(--brand-primary-hover); }

.btn-delete {
    color: var(--brand-danger);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #d6a58f;
    padding: 5px 10px;
    border-radius: 4px;
    background: #fff7f3;
}
.btn-delete:hover { background-color: #ffece3; }
.back-link { display: block; margin-top: 20px; text-align: center; color: var(--brand-muted); }

.quantity-badge {
    font-weight: bold;
    font-size: 1rem;
    color: var(--brand-text);
    margin-left: 0;
}
.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--brand-line);
    background: #f3f3f3;
    flex-shrink: 0;
}
.lang-switch {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.85rem;
}
.lang-switch a { color: var(--brand-muted); text-decoration: none; margin: 0 4px; }
.lang-switch a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    body { padding: 8px; }
    .cart-container {
        margin: 8px auto;
        padding: 14px;
    }
    .lang-switch {
        position: static;
        display: flex;
        justify-content: flex-end;
        gap: 3px;
        margin-bottom: 8px;
        font-size: 0.88rem;
    }
    h1 {
        margin-top: 0;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 8px;
    }
    .cart-table-wrap {
        margin-top: 10px;
    }
    .cart-table-wrap table {
        min-width: 560px;
    }
    th, td {
        padding: 10px 9px;
        font-size: 0.92rem;
        border-bottom: 1px solid var(--brand-line);
    }
    .product-cell {
        display: flex;
        align-items: center;
        gap: 8px;
        text-align: left;
    }
    .product-cell span {
        min-width: 0;
        word-break: normal;
        line-height: 1.35;
        white-space: nowrap;
    }
    .product-thumb {
        width: 36px;
        height: 36px;
    }
    .cell-unit,
    .cell-qty,
    .cell-subtotal,
    .cell-action {
        text-align: left;
    }
    .btn-delete {
        font-size: 0.8rem;
        padding: 4px 8px;
        white-space: nowrap;
    }
    .total-area {
        margin-top: 14px;
        text-align: right;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid var(--brand-line);
        border-radius: 10px;
        background: #fffdf8;
        width: 100%;
        max-width: 100%;
    }
    .btn-checkout {
        margin-top: 12px;
        font-size: 1rem;
        width: 100%;
        max-width: 100%;
    }
    .back-link {
        margin-top: 14px;
        font-size: 0.95rem;
    }
}
