@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%;
}
/* Flat page like the storefront: one cream background, no outer card, no
   boxes around the item list or the total - spacing and thin dividers do
   the grouping. */
body {
    font-family: "Noto Sans Myanmar", "Padauk", "Pyidaungsu", sans-serif;
    margin: 0;
    padding: 0;
    background: var(--brand-bg-soft);
    color: var(--brand-text);
    overflow-x: hidden;
}
input, select, textarea, button { font-family: inherit; }
.amount-font { font-family: "Helvetica Neue", Arial, sans-serif; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cart-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 28px 16px;
}

.lang-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--brand-line);
}
.lang-switch a {
    color: var(--brand-muted);
    text-decoration: none;
    padding: 6px 4px;
}
.lang-switch a:hover { text-decoration: underline; }

h1 {
    margin: 4px 0 12px 0;
    color: var(--brand-primary);
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    line-height: 1.3;
}

/* ---- Item list ---- */
.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--brand-line);
}
.cart-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-line);
}
.cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--brand-surface);
}
.cart-item-main {
    min-width: 0;
}
.cart-item-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.cart-item-unit {
    margin: 2px 0 8px 0;
    color: var(--brand-muted);
    font-size: 0.85rem;
}
.cart-item-subtotal {
    margin: 0;
    font-weight: 700;
    color: var(--brand-primary);
    white-space: nowrap;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--brand-line);
    background: #fff;
    color: var(--brand-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.qty-btn:hover {
    background: #f8efe3;
}
.qty-btn:active {
    transform: scale(0.95);
}
.qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

/* ---- Total and actions ---- */
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 16px 0 4px 0;
    font-weight: 700;
    color: var(--brand-primary);
}
.cart-total-amount {
    font-size: 1.4rem;
}

.btn-checkout {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    background-color: var(--brand-primary);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}
.btn-checkout:hover { background-color: var(--brand-primary-hover); }

/* Secondary, destructive action: a plain text button, not a second big box. */
.btn-clear-cart {
    display: block;
    margin: 8px auto 0 auto;
    padding: 10px 12px;
    border: none;
    background: none;
    color: var(--brand-danger);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-clear-cart:hover { text-decoration: underline; }

.btn-checkout:focus-visible,
.btn-clear-cart:focus-visible,
.qty-btn:focus-visible,
.back-link:focus-visible,
.lang-switch a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.cart-empty {
    margin: 0;
    padding: 48px 0;
    text-align: center;
    color: var(--brand-muted);
    border-top: 1px solid var(--brand-line);
}

.back-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0 auto;
    padding: 6px 4px;
    color: var(--brand-primary);
    font-weight: 700;
}

.cart-footer {
    margin-top: 22px;
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.86rem;
}
