:root {
    --alborz-bronze: #9f702f;
    --alborz-bronze-dark: #755023;
    --alborz-gold: #d3b06d;
    --alborz-yellow: #f4df72;
    --alborz-ink: #2f3035;
    --alborz-muted: #747277;
    --alborz-surface: #fffefa;
    --alborz-line: #e9ddc8;
    --alborz-danger: #a43b32;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f5efe4; }
body { margin: 0; font-family: "Vazir FD", Tahoma, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }

.auth-page {
    min-height: 100svh;
    color: var(--alborz-ink);
    background:
        radial-gradient(circle at 90% 6%, rgba(244, 223, 114, .42), transparent 18rem),
        radial-gradient(circle at 4% 94%, rgba(159, 112, 47, .13), transparent 20rem),
        #f7f2e9;
}

.auth-shell {
    width: 100%;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.auth-panel {
    position: relative;
    width: min(100%, 27rem);
    padding: clamp(1.5rem, 6vw, 2.25rem);
    overflow: hidden;
    background: rgba(255, 254, 250, .96);
    border: 1px solid rgba(159, 112, 47, .17);
    border-radius: 1.75rem;
    box-shadow: 0 1.4rem 3.8rem rgba(47, 48, 53, .12);
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: .3rem;
    background: linear-gradient(90deg, var(--alborz-bronze), var(--alborz-gold), var(--alborz-yellow));
}

.auth-brand { height: 7.2rem; display: grid; place-items: center; margin-bottom: 1rem; }
.auth-brand img { display: block; width: 9.7rem; height: auto; filter: drop-shadow(0 .45rem .8rem rgba(47, 48, 53, .1)); }
.auth-brand-compact { height: 6rem; }
.auth-brand-compact img { width: 8.3rem; }

.auth-copy { text-align: center; margin-bottom: 1.65rem; }
.auth-kicker { color: var(--alborz-bronze-dark); font-size: .76rem; font-weight: 700; }
.auth-copy h1 { margin: .55rem 0 .45rem; font-size: clamp(1.5rem, 6vw, 1.85rem); font-weight: 800; line-height: 1.35; }
.auth-copy p { margin: 0; color: var(--alborz-muted); font-size: .92rem; }

.auth-form label { display: block; margin: 0 0 .55rem; font-size: .84rem; font-weight: 700; }
.auth-input-wrap { position: relative; }
.auth-input-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: .9rem;
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    color: var(--alborz-bronze);
    background: #faf2e4;
    border-radius: .7rem;
    transform: translateY(-50%);
    pointer-events: none;
}
.auth-input-icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-input {
    width: 100%;
    height: 3.65rem;
    padding: 0 3.65rem 0 1rem;
    direction: ltr;
    text-align: center;
    color: var(--alborz-ink);
    background: #fff;
    border: 1px solid var(--alborz-line);
    border-radius: 1rem;
    outline: none;
    font-size: 1rem;
    letter-spacing: .04em;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-input::placeholder { color: #aaa5a0; opacity: 1; }
.auth-input:hover { border-color: #d9c49f; }
.auth-input:focus { background: var(--alborz-surface); border-color: var(--alborz-bronze); box-shadow: 0 0 0 .25rem rgba(159, 112, 47, .12); }
.auth-code-input { font-size: 1.2rem; letter-spacing: .28em; }
.auth-hint { min-height: 1.3rem; margin: .55rem .2rem 1.2rem; color: var(--alborz-muted); font-size: .75rem; }

.auth-submit {
    width: 100%;
    height: 3.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    color: #fff;
    background: linear-gradient(135deg, #a87634, #765023);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 .7rem 1.25rem rgba(117, 80, 35, .22);
    font-size: .94rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.auth-submit svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(180deg); }
.auth-submit:hover { filter: brightness(1.05); box-shadow: 0 .85rem 1.5rem rgba(117, 80, 35, .27); transform: translateY(-1px); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:focus-visible { outline: .2rem solid rgba(159, 112, 47, .25); outline-offset: .18rem; }
.auth-submit:disabled { cursor: wait; opacity: .72; transform: none; }

.auth-help, .auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    width: fit-content;
    margin: 1.25rem auto 0;
    color: var(--alborz-bronze-dark);
    font-size: .79rem;
    font-weight: 700;
    text-decoration: none;
}
.auth-help svg, .auth-back svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-help:hover, .auth-back:hover { color: var(--alborz-bronze); }
.auth-back { justify-content: flex-start; margin: 0 0 .4rem auto; }

.auth-alert { display: flex; align-items: flex-start; gap: .55rem; margin: -0.4rem 0 1rem; padding: .75rem .85rem; color: var(--alborz-danger); background: #fff3f0; border: 1px solid #f0cec8; border-radius: .85rem; font-size: .78rem; line-height: 1.7; }
.auth-alert svg { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-notice { color: #47734b; background: #f1f8ef; border-color: #cfe2cb; }
.auth-resend-form { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 1.15rem; color: var(--alborz-muted); font-size: .77rem; }
.auth-resend { min-width: 6.8rem; padding: .35rem .45rem; color: var(--alborz-bronze-dark); background: transparent; border: 0; border-radius: .55rem; font-size: .78rem; font-weight: 800; cursor: pointer; }
.auth-resend:hover:not(:disabled), .auth-resend:focus-visible:not(:disabled) { color: var(--alborz-bronze); background: #faf2e4; }
.auth-resend:disabled { color: #99938b; cursor: default; }
.auth-resend-timer { direction: ltr; display: inline-block; min-width: 3.2rem; font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
    .auth-shell { place-items: stretch; padding: 0; }
    .auth-panel { min-height: 100svh; width: 100%; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; box-shadow: none; padding: max(1.5rem, env(safe-area-inset-top)) max(1.35rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.35rem, env(safe-area-inset-left)); }
    .auth-brand { height: 6.6rem; }
    .auth-brand img { width: 9rem; }
}

@media (max-height: 650px) {
    .auth-brand { height: 5rem; margin-bottom: .4rem; }
    .auth-brand img { width: 7rem; }
    .auth-copy { margin-bottom: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Shared application shell */
.pwa-shell { min-height: 100svh; color: var(--alborz-ink); background: #f8f6f1 !important; direction: rtl !important; }
.pwa-shell .sidenav-content, .pwa-shell #fullscr-nav, .pwa-shell .canvas > .header, .pwa-shell .canvas > .overlay-black { display: none !important; }
.pwa-shell .canvas { min-height: 100svh; background: transparent; }
.app-topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: 4.5rem; padding: 0 max(1rem, env(safe-area-inset-right)); border-bottom: 1px solid #eee7db; background: rgba(255,254,250,.96); backdrop-filter: blur(16px); }
.app-topbar-brand { display: flex; align-items: center; gap: .7rem; color: #332f29; text-decoration: none; font-size: 1rem; font-weight: 800; }
.app-topbar-brand:hover { color: var(--alborz-bronze-dark); }
.app-topbar-brand img { width: 3.5rem; height: 3.5rem; object-fit: contain; }
.app-topbar-action { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--alborz-bronze-dark); background: #f7f0e5; border-radius: .85rem; }
.app-topbar-action svg, .app-nav-item svg, .home-primary-link svg, .home-category-icon svg, .home-status svg, .home-shortcuts svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-main { min-height: 100svh; padding: 0 1rem calc(6.5rem + env(safe-area-inset-bottom)); }
.app-main > :not(.app-home) { max-width: 1100px; margin-inline: auto; }
.app-bottom-nav { position: fixed; z-index: 80; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; width: min(100%, 900px); min-height: calc(4.4rem + env(safe-area-inset-bottom)); margin: 0 auto; padding: .35rem max(.3rem, env(safe-area-inset-right)) max(.35rem, env(safe-area-inset-bottom)) max(.3rem, env(safe-area-inset-left)); border: 1px solid #e9dfcf; border-bottom: 0; border-radius: 1.25rem 1.25rem 0 0; background: rgba(255,254,251,.98); box-shadow: 0 -.55rem 2rem rgba(49,35,18,.09); backdrop-filter: blur(18px); }
.app-nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-width: 0; padding: .3rem .1rem; color: #77716b; background: transparent; border: 0; border-radius: .85rem; text-decoration: none; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.app-nav-item svg { width: 1.42rem; height: 1.42rem; }
.app-nav-item:hover, .app-nav-item:focus-visible, .app-nav-item.is-active { color: #80581e; background: #f8f0e1; text-decoration: none; }
.app-nav-item.is-active::before { content: ''; position: absolute; top: 0; width: 1.5rem; height: .16rem; border-radius: 0 0 .4rem .4rem; background: var(--alborz-bronze); }
.app-nav-item em { position: absolute; top: .15rem; right: 21%; display: grid; place-items: center; min-width: 1.1rem; height: 1.1rem; padding: 0 .2rem; color: #fff; background: #a95435; border-radius: 2rem; font-size: .75rem; font-style: normal; }
.app-nav-item em[hidden] { display: none; }
.app-cart-backdrop { position: fixed; z-index: 89; inset: 0; background: rgba(32,27,22,.45); }
.app-cart-backdrop[hidden] { display: none; }
.app-cart-sheet { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; width: min(100%, 550px); max-height: min(80svh, 42rem); margin: auto; overflow: auto; padding: 1.2rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom)); border-radius: 1.35rem 1.35rem 0 0; background: #fffefa; box-shadow: 0 -1rem 3rem rgba(0,0,0,.16); transform: translateY(110%); transition: transform .22s ease; }
.app-cart-sheet.is-open { transform: translateY(0); }
.app-cart-sheet-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: .7rem; border-bottom: 1px solid var(--alborz-line); }
.app-cart-sheet-header h2 { margin: 0; font-size: 1.15rem; }
.app-cart-sheet-header button { width: 2.2rem; height: 2.2rem; border: 0; border-radius: .6rem; background: #f6efe4; color: var(--alborz-ink); font-size: 1.5rem; }
.app-cart-sheet-content { padding-top: 1rem; }
.app-cart-sheet-content .item-img img { max-width: 4rem; max-height: 4rem; object-fit: cover; }
.app-cart-sheet-content .cart-item { padding: .8rem 0; border-bottom: 1px solid #eee8de; }
.app-cart-sheet-content a.btn { color: #80581e !important; }
.app-cart-sheet-content a[href='/user/checkout'] { display: block; width: 100%; padding: .8rem; color: white !important; background: var(--alborz-bronze); border-radius: .8rem; text-align: center; }
body.app-cart-open { overflow: hidden; }

/* Home */
.app-home { width: min(100%, 1050px); margin: 0 auto; padding: 1.25rem 0 2rem; }
.home-hero { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 19rem; overflow: hidden; padding: clamp(1.5rem, 5vw, 3.4rem); color: #fffaf0; background: radial-gradient(circle at 22% 0, #a97942 0, transparent 36%), linear-gradient(125deg, #34251c, #73512c 68%, #9a6d34); border-radius: 1.5rem; }
.home-hero::after { content: ''; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.home-hero-copy { position: relative; z-index: 1; }
.home-eyebrow { display: inline-block; margin-bottom: .8rem; padding: .35rem .75rem; color: #ffe4ab; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.17); border-radius: 2rem; font-size: .77rem; }
.home-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 6vw, 3.35rem); font-weight: 800; line-height: 1.45; }
.home-hero h1 strong { color: #f4df9b; }
.home-hero p { max-width: 26rem; margin: .8rem 0 1.5rem; color: #f3e8d7; font-size: .92rem; line-height: 1.9; }
.home-primary-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.9rem; padding: .6rem 1.15rem; color: #34251c; background: #f4d994; border-radius: .75rem; font-weight: 800; text-decoration: none; }
.home-primary-link:hover { color: #34251c; background: #ffe6a8; }
.home-primary-link svg { width: 1rem; height: 1rem; }
.home-hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 15rem; }
.home-hero-art img { position: relative; width: min(80%, 16rem); height: auto; filter: drop-shadow(0 1rem 2rem rgba(0,0,0,.28)); }
.home-hero-orbit { position: absolute; width: 15rem; aspect-ratio: 1; border: 1px solid rgba(255,240,204,.35); border-radius: 50%; box-shadow: 0 0 0 2.2rem rgba(255,240,204,.07), 0 0 0 4.4rem rgba(255,240,204,.04); }
.home-status { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 2.1rem; padding: .95rem 1.1rem; background: #fff; border: 1px solid #eee8df; border-radius: 1rem; }
.home-status-dot { flex: none; width: .65rem; height: .65rem; background: #ad7658; border-radius: 50%; }
.home-status.is-open .home-status-dot { background: #4b9760; box-shadow: 0 0 0 .25rem #e5f4e7; }
.home-status div { display: flex; flex: 1; flex-direction: column; gap: .13rem; }
.home-status strong { font-size: .84rem; }
.home-status small { color: var(--alborz-muted); font-size: .75rem; }
.home-status svg { color: var(--alborz-bronze); }
.home-section { margin: 0 0 2rem; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.home-section-heading span { color: var(--alborz-bronze); font-size: .75rem; font-weight: 700; }
.home-section-heading h2 { margin: .18rem 0 0; color: #322c28; font-size: clamp(1.13rem, 3vw, 1.45rem); font-weight: 800; }
.home-section-heading > a { white-space: nowrap; color: var(--alborz-bronze-dark); font-size: .77rem; font-weight: 700; text-decoration: none; }
.home-section-heading > a span { font-size: 1.2rem; }
.home-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.home-category { display: flex; align-items: center; gap: .8rem; min-height: 5.2rem; padding: .8rem; color: #332d28; background: #fff; border: 1px solid #eee8df; border-radius: 1rem; text-decoration: none; box-shadow: 0 .3rem 1rem rgba(49,35,18,.035); }
.home-category:hover, .home-food:hover, .home-shortcuts a:hover { color: #80581e; border-color: #d9c5a5; text-decoration: none; transform: translateY(-2px); }
.home-category-icon { flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: #8e642a; background: #f8f0e1; border-radius: .85rem; }
.home-category strong { flex: 1; min-width: 0; font-size: .84rem; }
.home-category-arrow { color: #a78353; font-size: 1.5rem; }
.home-foods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.home-food { display: flex; align-items: center; gap: .8rem; min-height: 5rem; padding: .9rem; color: #332d28; background: #fff; border: 1px solid #eee8df; border-radius: 1rem; text-decoration: none; }
.home-food-mark { display: grid; flex: none; place-items: center; width: 3rem; height: 3rem; color: #a67738; background: #f8f0e1; border-radius: .8rem; font-size: 1.25rem; }
.home-food-details { flex: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.home-food-details strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.home-food-details small { color: var(--alborz-muted); font-size: .75rem; }
.home-food-go { color: #a78353; font-size: 1.5rem; }
.home-shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.home-shortcuts a { display: flex; align-items: center; gap: .75rem; padding: 1rem; color: #332d28; background: #f1e9da; border: 1px solid #e8ddc9; border-radius: 1rem; text-decoration: none; }
.home-shortcuts svg { color: var(--alborz-bronze); }
.home-shortcuts a span { display: flex; flex-direction: column; gap: .2rem; }
.home-shortcuts strong { font-size: .81rem; }
.home-shortcuts small { color: var(--alborz-muted); font-size: .75rem; }
.home-category, .home-food, .home-shortcuts a { transition: border-color .18s ease, transform .18s ease; }
@media (max-width: 650px) { .home-hero { grid-template-columns: 1fr; min-height: 0; padding: 1.6rem; } .home-hero-art { position: absolute; left: -.5rem; bottom: -.8rem; min-height: 0; width: 40%; opacity: .28; } .home-hero-art img { width: 100%; } .home-hero-orbit { display: none; } .home-hero-copy { max-width: 26rem; } .home-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); } .home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .app-main { padding-inline: .75rem; } .app-topbar { height: 4rem; } .app-home { padding-top: .8rem; } .home-hero { border-radius: 1.1rem; } .home-foods { grid-template-columns: 1fr; } .home-category { gap: .55rem; min-height: 4.5rem; padding: .6rem; } .home-category-icon { width: 2.3rem; height: 2.3rem; } .app-nav-item { font-size: .75rem; } .app-nav-item svg { width: 1.3rem; height: 1.3rem; } }
@media (min-width: 900px) { .app-topbar { padding-inline: max(2rem, calc((100vw - 1050px)/2)); } .app-main { padding-bottom: 7rem; } }
/* Menu screen */
.app-menu { width: min(100%, 1050px); margin: 0 auto; padding: 1.4rem 0 2.5rem; }
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.menu-eyebrow { color: var(--alborz-bronze); font-size: .78rem; font-weight: 800; }
.menu-heading h1 { margin: .24rem 0; color: #342c25; font-size: clamp(1.55rem, 5vw, 2.2rem); font-weight: 800; }
.menu-heading p { margin: 0; color: var(--alborz-muted); font-size: .82rem; }
.menu-cart-shortcut { display: flex; align-items: center; gap: .45rem; min-height: 2.7rem; padding: .5rem .8rem; color: #775222; background: #fff; border: 1px solid #e5d8c5; border-radius: .85rem; font-size: .8rem; font-weight: 800; cursor: pointer; }
.menu-cart-shortcut:hover { background: #faf2e5; }
.menu-cart-shortcut svg, .menu-add svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-cart-shortcut b { display: grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .18rem; color: #fff; background: #a95435; border-radius: 2rem; font-size: .75rem; }
.menu-cart-shortcut b[hidden] { display: none; }
.menu-notice { margin: .75rem 0; padding: .75rem .95rem; color: #715027; background: #fff8e9; border: 1px solid #eddcb6; border-radius: .8rem; font-size: .8rem; line-height: 1.7; }
.menu-tabs-wrap { position: sticky; z-index: 20; top: 0; margin: 0 -1rem 1.3rem; padding: .35rem 1rem .75rem; background: #f8f6f1; }
.menu-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .35rem; scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab { flex: none; min-height: 2.5rem; padding: .55rem 1rem; color: #665b4c; background: #fff; border: 1px solid #ebe3d7; border-radius: 2rem; white-space: nowrap; font-size: .8rem; font-weight: 700; cursor: pointer; transition: color .18s, background .18s, transform .18s, box-shadow .18s; }
.menu-tab:hover { transform: translateY(-1px); border-color: #d2bc99; }
.menu-tab.is-active { color: #fff; background: #8d612d; border-color: #8d612d; box-shadow: 0 .35rem .8rem rgba(117,80,35,.18); }
.menu-tab:focus-visible, .menu-add:focus-visible, .menu-cart-shortcut:focus-visible, .app-nav-item:focus-visible { outline: 3px solid #d3b06d; outline-offset: 2px; }
.menu-panel[hidden] { display: none; }
.menu-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.menu-panel-heading h2 { margin: 0; color: #342c25; font-size: 1.12rem; font-weight: 800; }
.menu-panel-heading span { color: #817a70; font-size: .75rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.menu-card { display: flex; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #eee8df; border-radius: 1.1rem; box-shadow: 0 .35rem 1.2rem rgba(49,35,18,.045); }
.menu-card-image { position: relative; flex: 0 0 35%; min-height: 9.5rem; overflow: hidden; background: linear-gradient(145deg, #f2e5d1, #dfc89f); }
.menu-image-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(117,80,35,.5); font-size: 3.5rem; }
.menu-card-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.menu-card-image img[hidden] { display: none; }
.menu-card-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 1rem; }
.menu-card h3 { margin: 0 0 .35rem; color: #352f29; font-size: .96rem; font-weight: 800; line-height: 1.6; }
.menu-card p { display: -webkit-box; overflow: hidden; margin: 0 0 .6rem; color: #79736a; font-size: .75rem; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-card-footer { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.menu-card-price { display: flex; align-items: baseline; gap: .25rem; white-space: nowrap; color: #765022; }
.menu-card-price strong { font-size: .98rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.menu-card-price span { font-size: .75rem; }
.menu-add { position: relative; flex: none; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; color: #fff; background: #91642e; border: 0; border-radius: .8rem; box-shadow: 0 .35rem .8rem rgba(117,80,35,.18); cursor: pointer; transition: transform .18s, background .18s, box-shadow .18s; }
.menu-add:hover { transform: translateY(-2px) scale(1.04); background: #71491e; box-shadow: 0 .5rem 1rem rgba(117,80,35,.25); }
.menu-add:active { transform: scale(.94); }
.menu-add.is-added { background: #3f8753; transform: scale(1.09); }
.menu-add:disabled { opacity: .65; cursor: wait; }
.menu-sold-out, .menu-closed { padding: .3rem .45rem; color: #887f74; background: #f4f1ec; border-radius: .5rem; font-size: .75rem; }
.menu-card.is-unavailable .menu-card-image { filter: grayscale(.6); }
.menu-empty { padding: 2rem 1rem; color: #817a70; background: #fff; border: 1px dashed #ded4c5; border-radius: .85rem; text-align: center; font-size: .84rem; }
.menu-feedback { position: fixed; z-index: 95; bottom: calc(5rem + env(safe-area-inset-bottom)); right: 50%; max-width: min(90vw, 24rem); padding: .7rem 1rem; color: #fff; background: #3b342c; border-radius: .75rem; opacity: 0; pointer-events: none; transform: translate(50%, .5rem); transition: opacity .2s, transform .2s; font-size: .78rem; text-align: center; }
.menu-feedback.is-visible { opacity: 1; transform: translate(50%, 0); }
@media (max-width: 760px) { .menu-grid { grid-template-columns: 1fr; } .menu-card-image { flex-basis: 34%; min-height: 8.5rem; } }
@media (max-width: 420px) { .app-menu { padding-top: .9rem; } .menu-tabs-wrap { top: 0; margin-inline: -.75rem; padding-inline: .75rem; } .menu-card-image { flex-basis: 32%; min-height: 8rem; } .menu-card-content { padding: .75rem; } .menu-card h3 { font-size: .87rem; } .menu-card-price strong { font-size: .84rem; } .menu-card-price span { font-size: .75rem; } .menu-add { width: 2.35rem; height: 2.35rem; } }
/* Live quantity controls and cart */
.menu-cart-control { position: relative; display: grid; place-items: center; min-width: 2.65rem; height: 2.65rem; }
.menu-add[hidden], .menu-stepper[hidden] { display: none !important; }
.menu-cart-control.is-loading .menu-add, .menu-cart-control.is-loading .menu-stepper { visibility: hidden; }
.menu-control-loader { display: none; position: absolute; width: 1.4rem; height: 1.4rem; border: 2px solid #e6d5bc; border-top-color: #8d612d; border-radius: 50%; animation: cart-spin .75s linear infinite; }
.menu-cart-control.is-loading .menu-control-loader { display: block; }
@keyframes cart-spin { to { transform: rotate(360deg); } }
.menu-stepper { display: inline-flex; align-items: center; justify-content: space-between; gap: .15rem; min-width: 7.45rem; height: 2.65rem; padding: .2rem; color: #775222; background: #faf2e6; border: 1px solid #dfc8a5; border-radius: .85rem; }
.menu-stepper button { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; padding: 0; color: #fff; background: #91642e; border: 0; border-radius: .65rem; font-size: 1.2rem; line-height: 1; cursor: pointer; transition: background .18s, transform .18s; }
.menu-stepper button:first-child { color: #79572c; background: #fff; }
.menu-stepper button:hover:not(:disabled) { transform: scale(1.07); background: #70481d; color: #fff; }
.menu-stepper button:active:not(:disabled) { transform: scale(.92); }
.menu-stepper button:disabled { opacity: .55; cursor: wait; }
.menu-quantity { min-width: 1.1rem; text-align: center; font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.app-cart-kicker { display: block; margin-bottom: .2rem; color: #a6793b; font-size: .75rem; font-weight: 800; }
.app-cart-sheet-header { position: sticky; top: -1.2rem; z-index: 2; margin: -1.2rem -1.25rem 0; padding: 1.15rem 1.25rem .9rem; background: #fffefa; }
.app-cart-sheet-header h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.app-cart-sheet-header h2 small { display: inline-flex; align-items: center; height: 1.4rem; padding: 0 .45rem; color: #795a30; background: #f6eddf; border-radius: 2rem; font-size: .75rem; font-weight: 700; }
.app-cart-sheet-header h2 small[hidden] { display: none; }
.app-cart-sheet-content { padding: 1rem 0 0; }
.cart-empty { display: grid; justify-items: center; padding: 2.8rem 1rem 3rem; text-align: center; }
.cart-empty-icon { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: .9rem; color: #a47b46; background: #f8f0e2; border-radius: 1.25rem; font-size: 3rem; line-height: 1; }
.cart-empty h3 { margin: .2rem 0; color: #393129; font-size: 1.05rem; font-weight: 800; }
.cart-empty p { margin: .35rem 0 1.15rem; color: #7a746d; font-size: .8rem; line-height: 1.8; }
.cart-browse { display: inline-grid; place-items: center; min-height: 2.7rem; padding: .55rem 1.2rem; color: #fff; background: #91642e; border: 0; border-radius: .75rem; text-decoration: none; font-size: .81rem; font-weight: 800; cursor: pointer; }
.cart-browse:hover { color: #fff; background: #70481d; text-decoration: none; }
.cart-list { display: grid; gap: .7rem; }
.cart-row { position: relative; display: flex; align-items: stretch; gap: .75rem; min-height: 6.5rem; padding: .65rem; background: #fff; border: 1px solid #eee5d8; border-radius: .9rem; }
.cart-row.is-pending { opacity: .57; pointer-events: none; }
.cart-row-image { position: relative; flex: 0 0 5.1rem; min-height: 5.1rem; overflow: hidden; background: linear-gradient(145deg, #f2e5d1, #dfc89f); border-radius: .7rem; }
.cart-row-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-row-image img[hidden] { display: none; }
.cart-row-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(117,80,35,.45); font-size: 2.5rem; }
.cart-row-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cart-row-body h3 { margin: 0; overflow: hidden; color: #382f27; font-size: .86rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cart-row-unit { margin: .2rem 0 .55rem; color: #8a8175; font-size: .75rem; }
.cart-row-actions { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; }
.cart-row-stepper { display: inline-flex; align-items: center; gap: .2rem; padding: .12rem; background: #f8f0e4; border-radius: .65rem; }
.cart-quantity-button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; color: #754f21; background: #fff; border: 0; border-radius: .5rem; font-size: 1rem; cursor: pointer; }
.cart-quantity-button:hover:not(:disabled) { color: #fff; background: #91642e; }
.cart-quantity-button:disabled { opacity: .45; cursor: wait; }
.cart-row-count { min-width: 1.25rem; text-align: center; color: #382f27; font-size: .78rem; font-weight: 800; }
.cart-row-total { color: #765022; white-space: nowrap; font-size: .75rem; }
.cart-row-remove { align-self: flex-start; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; padding: 0; color: #9c7b6c; background: transparent; border: 0; border-radius: .45rem; font-size: 1.2rem; cursor: pointer; }
.cart-row-remove:hover { color: #a43b32; background: #fff0ed; }
.cart-summary { position: sticky; bottom: -1.4rem; margin: 1rem -1.25rem -1.4rem; padding: 1rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom)); background: #fffefa; border-top: 1px solid #e9ddc9; box-shadow: 0 -.5rem 1.5rem rgba(49,35,18,.045); }
.cart-summary-row { display: flex; justify-content: space-between; gap: 1rem; color: #51483e; font-size: .84rem; }
.cart-summary-row strong { color: #674317; font-size: .98rem; font-weight: 800; }
.cart-summary-note { margin: .45rem 0 .9rem; color: #8a8177; font-size: .75rem; }
.cart-checkout { display: grid; place-items: center; min-height: 3rem; color: #fff; background: linear-gradient(135deg, #a27334, #765023); border-radius: .75rem; text-decoration: none; font-size: .86rem; font-weight: 800; }
.cart-checkout:hover { color: #fff; filter: brightness(1.06); text-decoration: none; }
.cart-skeleton { display: grid; gap: .7rem; }
.cart-skeleton span { display: block; height: 6.4rem; border-radius: .9rem; background: linear-gradient(100deg, #f2ece3 20%, #fffaf2 40%, #f2ece3 60%); background-size: 200% 100%; animation: cart-shimmer 1.25s ease-in-out infinite; }
.cart-skeleton span:last-child { width: 78%; }
@keyframes cart-shimmer { to { background-position-x: -200%; } }
@media (max-width: 420px) { .menu-stepper { min-width: 6.9rem; height: 2.35rem; } .menu-stepper button { width: 1.9rem; height: 1.9rem; } .menu-cart-control { height: 2.35rem; } .cart-row { gap: .55rem; } .cart-row-image { flex-basis: 4.5rem; min-height: 4.5rem; } .cart-row-total { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { .menu-control-loader, .cart-skeleton span { animation: none; } }
/* Checkout */
.checkout-page { width: min(100%, 1050px); margin: 0 auto; padding: 1.25rem 0 2rem; color: #342d27; }
.checkout-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.checkout-heading > a { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; color: #80581e; background: #fff; border: 1px solid #e9ddc9; border-radius: .7rem; text-decoration: none; font-size: 1.8rem; line-height: 1; }
.checkout-heading span { color: #986d35; font-size: .75rem; font-weight: 800; }
.checkout-heading h1 { margin: .1rem 0 0; font-size: clamp(1.35rem, 4vw, 1.8rem); font-weight: 800; }
.checkout-alert { margin: .8rem 0 1rem; padding: .85rem 1rem; color: #914236; background: #fff1ed; border: 1px solid #edcdc5; border-radius: .8rem; font-size: .82rem; line-height: 1.8; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); align-items: start; gap: 1rem; }
.checkout-main { display: grid; gap: 1rem; }
.checkout-card, .checkout-summary { min-width: 0; padding: 1.15rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; box-shadow: 0 .35rem 1rem rgba(49,35,18,.035); }
.checkout-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.checkout-card-heading h2, .checkout-summary h2 { margin: 0; color: #3a3026; font-size: 1.02rem; font-weight: 800; }
.checkout-card-heading a { color: #80581e; font-size: .75rem; font-weight: 700; text-decoration: none; }
.checkout-items { display: grid; }
.checkout-item { display: flex; align-items: center; gap: .65rem; padding: .75rem 0; border-top: 1px solid #f0ebe3; }
.checkout-item-icon { display: grid; flex: none; place-items: center; width: 2.65rem; height: 2.65rem; color: #ab7b3a; background: #f7efe1; border-radius: .7rem; font-size: 1.35rem; }
.checkout-item > div { flex: 1; display: flex; flex-direction: column; min-width: 0; gap: .15rem; }
.checkout-item strong { color: #3c342b; font-size: .82rem; }
.checkout-item small { color: #81786e; font-size: .75rem; }
.checkout-item b { color: #765022; white-space: nowrap; font-size: .78rem; }
.checkout-card form { display: grid; gap: .45rem; }
.checkout-card label { margin: .35rem 0 0; color: #4e4337; font-size: .8rem; font-weight: 700; }
.checkout-card label span { color: #8b8276; font-size: .75rem; font-weight: 400; }
.checkout-card select, .checkout-card textarea { width: 100%; padding: .76rem .85rem; color: #302d29; background: #fffdfa; border: 1px solid #ded4c4; border-radius: .7rem; font: inherit; font-size: .82rem; outline: none; }
.checkout-card select:focus, .checkout-card textarea:focus { border-color: #9f702f; box-shadow: 0 0 0 .2rem rgba(159,112,47,.12); }
.checkout-card textarea { resize: vertical; min-height: 5.5rem; }
.checkout-wallet { display: flex; align-items: center; gap: .7rem; margin-top: .4rem !important; padding: .75rem; background: #f9f3e8; border-radius: .7rem; cursor: pointer; }
.checkout-wallet input { width: 1rem; height: 1rem; accent-color: #8d612d; }
.checkout-wallet span { display: flex; flex-direction: column; gap: .15rem; color: #4e4337 !important; font-size: .8rem !important; font-weight: 700 !important; }
.checkout-wallet small { color: #877866; font-size: .75rem; font-weight: 400; }
.checkout-empty-address { color: #736b61; font-size: .81rem; }
.checkout-secondary-link { display: inline-flex; padding: .6rem .85rem; color: #80581e; background: #f7eddd; border-radius: .6rem; font-size: .76rem; font-weight: 800; text-decoration: none; }
.checkout-summary { position: sticky; top: 1rem; }
.checkout-summary h2 { margin-bottom: 1.05rem; }
.checkout-summary-row, .checkout-summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; padding: .38rem 0; font-size: .77rem; }
.checkout-summary-row span { color: #7b7167; }
.checkout-summary-row strong { color: #4b4035; white-space: nowrap; font-size: .78rem; }
.checkout-summary-total { margin-top: .65rem; padding-top: .9rem; border-top: 1px dashed #ded1be; font-weight: 800; }
.checkout-summary-total strong { color: #78501d; font-size: .95rem; }
.checkout-summary.is-loading .checkout-summary-row strong, .checkout-summary.is-loading .checkout-summary-total strong { opacity: .4; }
.checkout-quote-status { min-height: 1.1rem; margin: .5rem 0; color: #9b493a; font-size: .75rem; line-height: 1.6; }
.checkout-submit { display: grid; place-items: center; width: 100%; min-height: 3rem; padding: .7rem 1rem; color: #fff; background: linear-gradient(135deg, #a27334, #765023); border: 0; border-radius: .75rem; text-align: center; text-decoration: none; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
.checkout-submit:hover { color: #fff; filter: brightness(1.05); text-decoration: none; }
.checkout-submit:disabled { opacity: .55; cursor: not-allowed; }
.checkout-submit.is-loading { display: flex; align-items: center; justify-content: center; gap: .55rem; opacity: .75; }
.checkout-button-spinner { display: none; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: cart-spin .7s linear infinite; }
.checkout-submit.is-loading .checkout-button-spinner { display: inline-block; }
.checkout-summary-note { margin: .7rem 0 0; color: #8a8177; font-size: .75rem; line-height: 1.7; }
.checkout-navigation-overlay { position: fixed; z-index: 110; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; background: rgba(248,246,241,.93); color: #674719; font-size: .9rem; font-weight: 800; }
.checkout-navigation-overlay[hidden] { display: none; }
.checkout-navigation-overlay::before { content: ''; width: 2.3rem; height: 2.3rem; border: 3px solid #e4d6be; border-top-color: #8d612d; border-radius: 50%; animation: cart-spin .75s linear infinite; }
.cart-checkout.is-loading { opacity: .65; pointer-events: none; }
@media (max-width: 760px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { position: static; } }
@media (max-width: 420px) { .checkout-card, .checkout-summary { padding: .9rem; } .checkout-item b { font-size: .75rem; } }
@media (prefers-reduced-motion: reduce) { .checkout-button-spinner, .checkout-navigation-overlay::before { animation: none; } }
.checkout-quote-retry { display: block; margin: -.1rem 0 .8rem; padding: .25rem 0; color: #80581e; background: none; border: 0; font-size: .75rem; font-weight: 800; cursor: pointer; text-decoration: underline; }

/* Orders */
.orders-page { width: min(100%, 1050px); margin: 0 auto; padding: 1.3rem 0 2.4rem; }
.orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.orders-heading > div > span { color: #9b6e32; font-size: .76rem; font-weight: 800; }
.orders-heading h1 { margin: .2rem 0; color: #342d27; font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 800; }
.orders-heading p { margin: 0; color: #82786e; font-size: .8rem; }
.orders-total { flex: none; padding: .5rem .75rem; color: #79572c; background: #f3e9d9; border-radius: 2rem; font-size: .76rem; font-weight: 800; }
.orders-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.order-card { min-width: 0; padding: 1.1rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; box-shadow: 0 .35rem 1.2rem rgba(49,35,18,.045); transition: border-color .18s, transform .18s; }
.order-card:hover { border-color: #d8c3a3; transform: translateY(-2px); }
.order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.order-card-label, .order-card-details span { display: block; color: #8a8176; font-size: .75rem; }
.order-card h2 { margin: .1rem 0 0; color: #3a3027; font-size: 1.05rem; font-weight: 800; direction: ltr; text-align: right; }
.order-status { display: inline-flex; align-items: center; gap: .3rem; max-width: 60%; padding: .32rem .55rem; color: #8e632e; background: #faf1df; border-radius: 2rem; font-size: .75rem; font-weight: 800; line-height: 1.5; text-align: center; }
.order-status::before { content: ''; flex: none; width: .4rem; height: .4rem; background: currentColor; border-radius: 50%; }
.order-status.status-1, .order-status.status-2 { color: #346d90; background: #eaf5fa; }
.order-status.status-3 { color: #8d6a29; background: #fbf3db; }
.order-status.status-4 { color: #398151; background: #eaf6ec; }
.order-status.is-canceled { color: #a04e46; background: #fff0ed; }
.order-card-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0 .85rem; padding: .9rem 0; border-top: 1px solid #f0ebe3; border-bottom: 1px solid #f0ebe3; }
.order-card-details div { min-width: 0; }
.order-card-details strong { display: block; margin-top: .25rem; overflow: hidden; color: #4b4035; font-size: .8rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.order-card-details strong[dir='ltr'] { text-align: right; }
.order-detail-link { display: inline-flex; align-items: center; gap: .4rem; color: #80581e; font-size: .77rem; font-weight: 800; text-decoration: none; }
.order-detail-link span { font-size: 1.2rem; line-height: .8; }
.order-detail-link:hover { color: #5f3b13; text-decoration: none; }
.orders-empty { display: grid; justify-items: center; padding: 3.5rem 1rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; text-align: center; }
.orders-empty > span { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; color: #a7793a; background: #f7efdf; border-radius: 1.2rem; font-size: 2.3rem; }
.orders-empty h2 { margin: 1rem 0 .2rem; color: #3a3027; font-size: 1.1rem; font-weight: 800; }
.orders-empty p { margin: .3rem 0 1.2rem; color: #82786e; font-size: .8rem; }
.orders-empty a { display: inline-flex; padding: .65rem 1.1rem; color: #fff; background: #90622d; border-radius: .7rem; font-size: .8rem; font-weight: 800; text-decoration: none; }
.orders-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.orders-pagination a, .orders-pagination > span { display: grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .4rem; color: #6d5d48; background: #fff; border: 1px solid #eadfce; border-radius: .65rem; text-decoration: none; font-size: .8rem; font-weight: 700; }
.orders-pagination a:hover, .orders-pagination a:focus-visible { color: #80581e; border-color: #cdae7e; }
.orders-pagination a.is-current { color: #fff; background: #90622d; border-color: #90622d; }
.orders-pagination .orders-page-control { font-size: 1.5rem; line-height: 1; }
.orders-pagination .is-disabled { opacity: .4; }
.orders-pagination .orders-page-ellipsis { background: transparent; border-color: transparent; }
@media (max-width: 760px) { .orders-list { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .orders-page { padding-top: .9rem; } .orders-heading p { max-width: 14rem; line-height: 1.6; } .orders-total { padding: .4rem .55rem; font-size: .75rem; } .order-card { padding: .9rem; } .order-card-details strong { font-size: .75rem; } }
/* Account profile */
.profile-page { width: min(100%, 1050px); margin: 0 auto; padding: 1.3rem 0 2.4rem; color: #342d27; }
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 10rem; padding: 1.5rem 1.7rem; overflow: hidden; color: #fff; background: radial-gradient(circle at 8% 10%, rgba(244,223,114,.28), transparent 14rem), linear-gradient(135deg,#7a5529,#ad7b37); border-radius: 1.25rem; box-shadow: 0 .7rem 1.8rem rgba(89,61,25,.13); }
.profile-kicker { color: #f7e8c5; font-size: .75rem; font-weight: 700; }
.profile-hero h1 { margin: .45rem 0 .35rem; font-size: clamp(1.4rem,5vw,1.85rem); font-weight: 800; overflow-wrap: anywhere; }
.profile-hero p { margin: 0; width: fit-content; color: #fff4dd; font-size: .83rem; letter-spacing: .04em; }
.profile-avatar { flex: none; display: grid; place-items: center; width: 4.6rem; height: 4.6rem; color: #fff9ed; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 1.15rem; }
.profile-avatar svg { width: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: .85rem 0 1.2rem; }
.profile-stat { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 6.4rem; padding: 1rem 1.1rem; color: inherit; background: #fff; border: 1px solid #eee5d7; border-radius: .95rem; text-decoration: none; }
.profile-stat:hover { color: inherit; text-decoration: none; }
.profile-stat > span { color: #857b6e; font-size: .75rem; }
.profile-stat strong { display: block; margin-top: .35rem; color: #5b4225; font-size: 1.2rem; font-weight: 800; }
.profile-stat .profile-stat-date { font-size: .83rem; text-align: right; overflow-wrap: anywhere; }
.profile-stat small { margin-top: .22rem; color: #986c33; font-size: .75rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(16rem,1fr); align-items: start; gap: 1rem; }
.profile-main,.profile-side { min-width: 0; }
.profile-card { padding: 1.3rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; box-shadow: 0 .35rem 1.2rem rgba(49,35,18,.04); }
.profile-card-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1.2rem; }
.profile-card-heading span { color: #9b6e32; font-size: .75rem; font-weight: 700; }
.profile-card-heading h2 { margin: .25rem 0 0; color: #3a3027; font-size: 1.08rem; font-weight: 800; }
.profile-card-heading .profile-card-symbol { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; color: #9b6e32; background: #f8f0e2; border-radius: .65rem; font-size: 1.2rem; }
.profile-form { display: grid; gap: 1rem; }
.profile-field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.profile-field { min-width: 0; }
.profile-field label { display: block; margin-bottom: .42rem; color: #4b4136; font-size: .77rem; font-weight: 800; }
.profile-field label span { color: #a29a90; font-size: .75rem; font-weight: 400; }
.profile-field input { display: block; width: 100%; min-height: 2.9rem; padding: .7rem .85rem; color: #342d27; background: #fffdfa; border: 1px solid #ded4c4; border-radius: .7rem; outline: none; font-size: .82rem; transition: border-color .18s,box-shadow .18s; }
.profile-field input[dir=ltr] { text-align: right; }
.profile-field input:focus { border-color: #9f702f; box-shadow: 0 0 0 .2rem rgba(159,112,47,.12); }
.profile-field input[readonly] { color: #777066; background: #f5f3ef; border-color: #e9e3da; cursor: default; }
.profile-field small { display: block; margin-top: .4rem; color: #867d72; font-size: .75rem; line-height: 1.7; }
.profile-save { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 3rem; margin-top: .25rem; color: #fff; background: linear-gradient(135deg,#a27334,#765023); border: 0; border-radius: .75rem; font-size: .84rem; font-weight: 800; cursor: pointer; transition: filter .18s,transform .18s; }
.profile-save:hover { filter: brightness(1.07); transform: translateY(-1px); }
.profile-save:disabled { opacity: .68; cursor: wait; transform: none; }
.profile-save-spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: cart-spin .7s linear infinite; }
.profile-save.is-loading .profile-save-spinner { display: block; }
.profile-feedback { margin: -.2rem 0 1rem; padding: .7rem .85rem; border-radius: .7rem; font-size: .78rem; line-height: 1.7; }
.profile-feedback.is-success { color: #347748; background: #ecf7ee; border: 1px solid #cee8d3; }
.profile-feedback.is-error { color: #914236; background: #fff1ed; border: 1px solid #edcdc5; }
.profile-links { padding-bottom: .25rem; }
.profile-links .profile-card-heading { margin-bottom: .45rem; }
.profile-links a { display: flex; align-items: center; gap: .75rem; min-height: 3.7rem; padding: .65rem .1rem; color: #463d32; border-top: 1px solid #f0ebe3; text-decoration: none; }
.profile-links a:hover { color: #8c602b; text-decoration: none; }
.profile-link-icon { display: grid; flex: none; place-items: center; width: 2.3rem; height: 2.3rem; color: #986c33; background: #f9f2e7; border-radius: .65rem; font-size: 1.1rem; }
.profile-links a > span:nth-child(2) { flex: 1; min-width: 0; font-size: .78rem; font-weight: 800; }
.profile-links a small { display: block; margin-top: .15rem; color: #91877c; font-size: .75rem; font-weight: 400; line-height: 1.5; }
.profile-links a b { color: #b9a990; font-size: 1.3rem; font-weight: 400; }
.profile-logout { display: flex; align-items: center; justify-content: space-between; margin-top: .7rem; padding: .8rem 1rem; color: #a04e46; background: #fff; border: 1px solid #f0dcd7; border-radius: .8rem; font-size: .77rem; font-weight: 800; text-decoration: none; }
.profile-logout:hover { color: #863e37; text-decoration: none; }
@media (max-width: 760px) { .profile-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .profile-hero { min-height: 8.7rem; padding: 1.2rem; } .profile-avatar { width: 3.5rem; height: 3.5rem; } .profile-avatar svg { width: 1.8rem; } .profile-stats { gap: .45rem; } .profile-stat { min-height: 5.6rem; padding: .7rem; } .profile-stat strong { font-size: 1rem; } .profile-stat .profile-stat-date { font-size: .75rem; line-height: 1.7; } .profile-stat > span { font-size: .75rem; } .profile-stat small { font-size: .75rem; } .profile-field-row { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .profile-stats { grid-template-columns: 1fr 1fr; } .profile-stat:last-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .profile-save-spinner { animation: none; } .profile-save { transition: none; } }
/* Wallet, transactions and addresses */
.account-page { width: min(100%, 1050px); margin: 0 auto; padding: 1.3rem 0 2.4rem; color: #342d27; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.account-heading > div > span { color: #9b6e32; font-size: .76rem; font-weight: 800; }
.account-heading h1 { margin: .2rem 0; color: #342d27; font-size: clamp(1.5rem,4.5vw,2rem); font-weight: 800; }
.account-heading p { margin: 0; color: #82786e; font-size: .8rem; line-height: 1.7; }
.account-heading-count { flex: none; padding: .5rem .75rem; color: #79572c; background: #f3e9d9; border-radius: 2rem; font-size: .76rem; font-weight: 800; }
.account-primary-link { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; flex: none; min-height: 2.6rem; padding: .55rem .9rem; color: #fff; background: #90622d; border-radius: .7rem; text-decoration: none; font-size: .76rem; font-weight: 800; }
.account-primary-link:hover { color: #fff; background: #7f5425; text-decoration: none; }
.account-primary-link span { font-size: 1.2rem; line-height: .7; }
.account-back { display: inline-flex; margin-bottom: .6rem; color: #8a612f; font-size: .76rem; font-weight: 800; text-decoration: none; }
.account-back:hover { color: #6b471f; text-decoration: none; }
.account-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.account-row,.wallet-row,.address-card { min-width: 0; padding: 1.05rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; box-shadow: 0 .35rem 1.2rem rgba(49,35,18,.04); }
.account-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.account-row-top small { color: #92877a; font-size: .75rem; }
.account-row-top h2 { margin: .2rem 0 0; color: #3a3027; font-size: 1rem; font-weight: 800; }
.account-status { display: inline-flex; align-items: center; gap: .25rem; max-width: 55%; padding: .35rem .55rem; border-radius: 2rem; font-size: .75rem; font-weight: 800; line-height: 1.5; text-align: center; }
.account-status::before { content: ''; flex: none; width: .38rem; height: .38rem; background: currentColor; border-radius: 50%; }
.account-status.is-success { color: #347748; background: #eaf5ed; }
.account-status.is-pending { color: #956337; background: #faf1e4; }
.account-row-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1rem 0 .8rem; padding: .85rem 0; color: #877d72; border-top: 1px solid #f0ebe3; border-bottom: 1px solid #f0ebe3; font-size: .75rem; }
.account-row-meta strong { color: #5c4225; font-size: .86rem; font-weight: 800; text-align: left; }
.account-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .75rem; }
.account-row-bottom time { color: #877d72; text-align: right; }
.account-row-bottom a { color: #80581e; font-weight: 800; text-decoration: none; }
.account-row-bottom a:hover { color: #603b13; text-decoration: none; }
.account-row-bottom a span { font-size: 1.2rem; }
.account-empty { display: grid; justify-items: center; padding: 3.3rem 1rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; text-align: center; }
.account-empty > span { display: grid; place-items: center; width: 4.3rem; height: 4.3rem; color: #a7793a; background: #f7efdf; border-radius: 1.2rem; font-size: 2.2rem; }
.account-empty h2 { margin: 1rem 0 .2rem; color: #3a3027; font-size: 1.08rem; font-weight: 800; }
.account-empty p { margin: .3rem 0 1.2rem; color: #82786e; font-size: .79rem; line-height: 1.8; }
.account-empty a { display: inline-flex; padding: .65rem 1.1rem; color: #fff; background: #90622d; border-radius: .7rem; font-size: .77rem; font-weight: 800; text-decoration: none; }
.account-empty a:hover { color: #fff; text-decoration: none; }
.wallet-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 11rem; padding: 1.5rem 1.7rem; color: #fff; background: radial-gradient(circle at 8% 10%,rgba(244,223,114,.28),transparent 14rem),linear-gradient(135deg,#765126,#ad7b37); border-radius: 1.2rem; box-shadow: 0 .7rem 1.8rem rgba(89,61,25,.13); }
.wallet-balance-card > div > span { color: #f8e9c8; font-size: .76rem; font-weight: 700; }
.wallet-balance-card strong { display: block; margin: .35rem 0; font-size: clamp(1.65rem,5vw,2.4rem); font-weight: 800; }
.wallet-balance-card strong small { font-size: .78rem; font-weight: 700; }
.wallet-balance-card p { margin: 0; color: #f9edda; font-size: .75rem; line-height: 1.7; }
.wallet-balance-card a { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; flex: none; padding: .7rem .9rem; color: #6e4b21; background: #fff8eb; border-radius: .7rem; font-size: .75rem; font-weight: 800; text-decoration: none; }
.wallet-balance-card a:hover { color: #5c3e19; text-decoration: none; }
.account-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin: 1.5rem 0 .75rem; }
.account-section-heading h2 { margin: 0; color: #3a3027; font-size: 1.05rem; font-weight: 800; }
.account-section-heading p { margin: .2rem 0 0; color: #8b8074; font-size: .75rem; }
.account-section-heading > span { color: #8b6843; font-size: .75rem; }
.wallet-row { display: flex; align-items: center; gap: .8rem; min-height: 5.4rem; }
.wallet-row-icon { display: grid; flex: none; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .75rem; font-size: 1.25rem; }
.wallet-row-icon.is-credit { color: #3c8a58; background: #eaf6ed; }
.wallet-row-icon.is-debit { color: #b06052; background: #fff0ec; }
.wallet-row > div { flex: 1; min-width: 0; }
.wallet-row h3 { margin: 0 0 .25rem; color: #41382e; font-size: .8rem; font-weight: 800; }
.wallet-row time { display: block; width: fit-content; color: #8d8276; font-size: .75rem; }
.wallet-row > strong { flex: none; font-size: .82rem; white-space: nowrap; }
.wallet-row > strong small { font-size: .75rem; }
.wallet-row > strong.is-credit { color: #398150; }
.wallet-row > strong.is-debit { color: #a35346; }
.address-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.address-card { display: flex; flex-direction: column; }
.address-card-top { display: flex; align-items: center; gap: .7rem; }
.address-icon { display: grid; flex: none; place-items: center; width: 2.65rem; height: 2.65rem; color: #a27334; background: #f8f0e2; border-radius: .75rem; font-size: 1.45rem; }
.address-card-top div > span { color: #94897e; font-size: .75rem; }
.address-card h2 { margin: .2rem 0 0; color: #3b3228; font-size: .94rem; font-weight: 800; overflow-wrap: anywhere; }
.address-district { align-self: flex-start; margin: .85rem 0 0; padding: .25rem .55rem; color: #8a5d2b; background: #faf1e3; border-radius: 2rem; font-size: .75rem; font-weight: 800; }
.address-card p { flex: 1; margin: .8rem 0 1rem; color: #62594e; font-size: .78rem; line-height: 1.9; overflow-wrap: anywhere; }
.address-card-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid #f0ebe3; }
.address-card-actions a { color: #80581e; font-size: .75rem; font-weight: 800; text-decoration: none; }
.address-card-actions a:hover { color: #603b13; text-decoration: none; }
.address-card-actions form { margin: 0; }
.address-card-actions button { padding: .3rem .5rem; color: #a45349; background: #fff4f1; border: 0; border-radius: .45rem; font-size: .75rem; font-weight: 800; cursor: pointer; }
.address-card-actions button:hover { background: #fce7e2; }
.address-form-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(15rem,.7fr); align-items: start; gap: 1rem; }
.account-form-card,.account-help-card { min-width: 0; padding: 1.25rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; box-shadow: 0 .35rem 1.2rem rgba(49,35,18,.04); }
.account-form-card { display: grid; gap: 1rem; }
.account-form-field { min-width: 0; }
.account-form-field label { display: block; margin-bottom: .42rem; color: #4b4136; font-size: .77rem; font-weight: 800; }
.account-form-field input,.account-form-field select,.account-form-field textarea { display: block; width: 100%; min-height: 2.9rem; padding: .7rem .85rem; color: #342d27; background: #fffdfa; border: 1px solid #ded4c4; border-radius: .7rem; outline: none; font: inherit; font-size: .82rem; }
.account-form-field textarea { min-height: 7rem; resize: vertical; line-height: 1.8; }
.account-form-field input:focus,.account-form-field select:focus,.account-form-field textarea:focus { border-color: #9f702f; box-shadow: 0 0 0 .2rem rgba(159,112,47,.12); }
.account-form-field input[readonly] { color: #777066; background: #f5f3ef; }
.account-form-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.address-map-link { display: inline-flex; align-items: center; gap: .35rem; justify-self: start; padding: .65rem .8rem; color: #80581e; background: #f8efe0; border: 1px solid #ead9bf; border-radius: .65rem; font-size: .76rem; font-weight: 800; cursor: pointer; }
.address-map-link:hover { background: #f2e3cb; }
.address-map-link span { font-size: 1.15rem; line-height: .6; }
.account-form-hint { margin: -.7rem 0 0; color: #8b8074; font-size: .75rem; line-height: 1.7; }
.account-form-save { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; color: #fff; background: linear-gradient(135deg,#a27334,#765023); border: 0; border-radius: .75rem; font-size: .84rem; font-weight: 800; cursor: pointer; }
.account-form-save:hover { filter: brightness(1.07); }
.account-form-save:disabled { opacity: .67; cursor: wait; }
.account-form-save.is-loading .profile-save-spinner { display: block; }
.account-help-card > span { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: #a27334; background: #f8f0e2; border-radius: .75rem; font-size: 1.5rem; }
.account-help-card h2 { margin: 1rem 0 .45rem; color: #3a3027; font-size: .94rem; font-weight: 800; }
.account-help-card p { margin: 0; color: #80766b; font-size: .76rem; line-height: 1.9; }
@media (max-width: 760px) { .account-list,.address-grid,.address-form-layout { grid-template-columns: 1fr; } .account-help-card { display: none; } }
@media (max-width: 480px) { .account-heading { align-items: flex-start; } .account-heading-count { padding: .4rem .55rem; font-size: .75rem; } .account-primary-link { font-size: .75rem; padding-inline: .6rem; } .wallet-balance-card { align-items: stretch; flex-direction: column; padding: 1.2rem; } .wallet-balance-card a { align-self: flex-start; } .account-form-two { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .account-row-top { flex-direction: column; } .account-status { max-width: 100%; } .wallet-row { gap: .5rem; } .wallet-row > strong { font-size: .75rem; } }.account-detail-card { width: min(100%,39rem); padding: 1.25rem; background: #fff; border: 1px solid #eee5d7; border-radius: 1rem; box-shadow: 0 .35rem 1.2rem rgba(49,35,18,.04); }
.account-detail-lead { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; }
.account-detail-icon { display: grid; flex: none; place-items: center; width: 2.8rem; height: 2.8rem; color: #986c33; background: #faf1e4; border-radius: .8rem; font-size: 1.25rem; }
.account-detail-icon.is-success { color: #398150; background: #eaf5ed; }
.account-detail-lead div > span { color: #92877a; font-size: .75rem; }
.account-detail-lead h2 { margin: .2rem 0 0; color: #3a3027; font-size: .95rem; font-weight: 800; }
.account-detail-card dl { margin: 0; border-top: 1px solid #f0ebe3; }
.account-detail-card dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #f0ebe3; font-size: .76rem; }
.account-detail-card dt { color: #877d72; font-weight: 400; }
.account-detail-card dd { max-width: 65%; margin: 0; color: #493c2f; font-weight: 800; text-align: left; overflow-wrap: anywhere; }
.account-detail-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; color: #80581e; font-size: .76rem; font-weight: 800; text-decoration: none; }
.account-detail-link:hover { color: #603b13; text-decoration: none; }
.account-form-field small { display: block; margin-top: .4rem; color: #867d72; font-size: .75rem; line-height: 1.7; }
/* Active offers */
.home-offers { margin: 0 0 2rem; }
.home-offers-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.home-offer { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; min-width: 0; padding: 1.1rem 1.2rem; color: #403329; background: linear-gradient(135deg,#fffaf0,#f7ecd8); border: 1px solid #ead9ba; border-radius: 1rem; }
.home-offer.is-first { color: #fff; background: linear-gradient(135deg,#7c572a,#ad7b37); border-color: #98723c; box-shadow: 0 .5rem 1.2rem rgba(94,64,26,.1); }
.home-offer-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: #98703b; background: rgba(161,119,55,.1); border-radius: .65rem; font-size: 1.2rem; font-weight: 800; }
.home-offer.is-first .home-offer-mark { color: #fff9e9; background: rgba(255,255,255,.16); }
.home-offer > div { flex: 1; }
.home-offer > div > span { color: #906630; font-size: .75rem; font-weight: 800; }
.home-offer.is-first > div > span { color: #f5e0b8; }
.home-offer h3 { margin: .3rem 0 .4rem; font-size: 1.13rem; font-weight: 800; }
.home-offer p { margin: 0; color: #766656; font-size: .75rem; line-height: 1.8; }
.home-offer.is-first p { color: #f6e9d1; }
.home-offer a { display: inline-flex; gap: .3rem; color: #80561f; font-size: .75rem; font-weight: 800; text-decoration: none; }
.home-offer a:hover { color: #5d3c15; text-decoration: none; }
.home-offer.is-first a,.home-offer.is-first a:hover { color: #fff8e9; }
.home-offer a span { font-size: 1.1rem; line-height: .8; }
.checkout-offer { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .85rem 1rem; color: #5e451f; background: #fff5e6; border: 1px solid #ecd7b4; border-radius: .85rem; }
.checkout-offer.is-first { color: #68491f; background: #f8edcf; border-color: #e2ca93; }
.checkout-offer[hidden] { display: none; }
.checkout-offer-icon { display: grid; flex: none; place-items: center; width: 2.1rem; height: 2.1rem; color: #95672c; background: rgba(159,112,47,.12); border-radius: .6rem; font-size: 1.15rem; }
.checkout-offer > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.checkout-offer strong { font-size: .81rem; font-weight: 800; }
.checkout-offer small { color: #866f4f; font-size: .75rem; line-height: 1.6; }
@media (max-width: 760px) { .home-offers-grid { grid-template-columns: 1fr; } }
.checkout-gateway-due { margin-top: .35rem; padding-top: .7rem; border-top: 1px solid #e9ddcc; }
.checkout-gateway-due strong { color: #71491c; font-size: .9rem; }

/* Order details */
.order-detail-page { width: min(100%, 1050px); margin: 0 auto; padding: 1.15rem 0 2.5rem; color: #342d27; }
.order-detail-breadcrumb { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: #958777; font-size: .75rem; }
.order-detail-breadcrumb a { display: inline-flex; align-items: center; gap: .25rem; color: #805a2b; text-decoration: none; font-weight: 800; }
.order-detail-breadcrumb a:hover { color: #5d3e19; }
.order-detail-breadcrumb a span { font-size: 1.35rem; line-height: .8; }
.order-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.order-detail-eyebrow { color: #9a713c; font-size: .75rem; font-weight: 800; }
.order-detail-heading h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; margin: .25rem 0; font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; }
.order-detail-heading h1 b { color: #875d2a; font-size: .85em; }
.order-detail-heading p { margin: 0; color: #85796b; font-size: .78rem; }
.order-detail-refresh { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; flex: none; min-height: 2.55rem; padding: .5rem .8rem; color: #775326; background: #fff; border: 1px solid #e6d9c6; border-radius: .75rem; cursor: pointer; font-size: .75rem; font-weight: 800; transition: background .18s, transform .18s, border-color .18s; }
.order-detail-refresh:hover { background: #f8f0e5; border-color: #d6bb93; transform: translateY(-1px); }
.order-detail-refresh:focus-visible, .order-detail-contact:focus-visible, .order-detail-receive button:focus-visible { outline: 3px solid #c59553; outline-offset: 3px; }
.order-detail-refresh svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr); align-items: start; gap: 1rem; }
.order-detail-main, .order-detail-aside { display: grid; gap: 1rem; min-width: 0; }
.order-detail-status-card, .order-detail-card { background: #fff; border: 1px solid #eee4d5; border-radius: 1.1rem; box-shadow: 0 .35rem 1.3rem rgba(54, 36, 15, .045); }
.order-detail-status-card { overflow: hidden; background: linear-gradient(125deg, #fffdf8, #f8f0e2); border-color: #e8d6ba; }
.order-detail-status-card.status-2 { background: linear-gradient(125deg, #fffdf8, #edf6f7); border-color: #d9e9e9; }
.order-detail-status-card.status-3 { background: linear-gradient(125deg, #fffdf8, #f9f1db); }
.order-detail-status-card.status-4 { background: linear-gradient(125deg, #fffdf8, #eaf5eb); border-color: #d7e8d8; }
.order-detail-status-card.is-canceled { background: linear-gradient(125deg, #fffdfb, #fff0ed); border-color: #f0dad5; }
.order-detail-status-top { display: flex; align-items: center; gap: .9rem; padding: 1.35rem; }
.order-detail-status-icon { display: grid; place-items: center; flex: none; width: 3.7rem; height: 3.7rem; color: #93672f; background: rgba(171, 120, 49, .12); border-radius: 1rem; }
.order-detail-status-icon svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.order-detail-status-card.status-2 .order-detail-status-icon { color: #367b8a; background: #e1f1f2; }
.order-detail-status-card.status-4 .order-detail-status-icon { color: #408351; background: #ddf0e0; }
.order-detail-status-card.is-canceled .order-detail-status-icon { color: #af5e50; background: #fbe0da; }
.order-detail-status-copy { min-width: 0; }
.order-detail-status-copy > span { color: #9b7545; font-size: .75rem; font-weight: 800; }
.order-detail-status-copy h2 { margin: .18rem 0 .28rem; color: #3a3026; font-size: clamp(1.08rem, 3.4vw, 1.35rem); font-weight: 800; }
.order-detail-status-copy p { margin: 0; color: #6e6459; font-size: .76rem; line-height: 1.8; }
.order-detail-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .15rem; margin: 0; padding: 1.1rem .9rem 1.25rem; list-style: none; border-top: 1px solid rgba(129, 94, 46, .11); }
.order-detail-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: .45rem; min-width: 0; color: #a0968b; text-align: center; font-size: .75rem; line-height: 1.35; font-weight: 700; }
.order-detail-steps li:not(:last-child)::after { content: ''; position: absolute; top: .76rem; right: calc(50% + .85rem); width: calc(100% - 1.7rem); height: 2px; background: #e9dfd0; }
.order-detail-steps li.is-complete:not(:last-child)::after { background: #bb925a; }
.order-detail-step-dot { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; color: #9a8f82; background: #fff; border: 1.5px solid #e4d9c9; border-radius: 50%; font-size: .75rem; font-weight: 800; }
.order-detail-steps li.is-complete { color: #785322; }
.order-detail-steps li.is-current { color: #775025; }
.order-detail-steps li.is-complete .order-detail-step-dot { color: #fff; background: #a3763a; border-color: #a3763a; }
.order-detail-steps li.is-current .order-detail-step-dot { color: #fff; background: #795526; border-color: #795526; box-shadow: 0 0 0 4px rgba(168, 122, 56, .13); }
.order-detail-eta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; margin: 0 1.25rem 1.2rem; padding: .8rem .9rem; background: rgba(255,255,255,.78); border: 1px solid rgba(215,197,170,.65); border-radius: .8rem; }
.order-detail-eta div { display: grid; gap: .18rem; }
.order-detail-eta div span { color: #877b6b; font-size: .75rem; }
.order-detail-eta div strong { color: #57422b; font-size: .78rem; }
.order-detail-countdown { color: #815e33; font-size: .75rem; font-weight: 800; }
.order-detail-delivered { margin: 0 1.3rem 1.2rem; color: #3f7650; font-size: .75rem; font-weight: 800; }
.order-detail-card { padding: 1.2rem 1.3rem; }
.order-detail-card-head { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.order-detail-card-head span { color: #9a7441; font-size: .75rem; font-weight: 800; }
.order-detail-card-head h2 { margin: .15rem 0 0; color: #382f27; font-size: .99rem; font-weight: 800; }
.order-detail-card-head > small { color: #8d7659; background: #f6efe4; border-radius: 2rem; padding: .32rem .55rem; font-size: .75rem; font-weight: 800; }
.order-detail-items { margin: 0; padding: 0; list-style: none; }
.order-detail-items li { display: flex; align-items: center; gap: .7rem; padding: .8rem 0; border-top: 1px solid #f1ece5; }
.order-detail-item-mark { display: grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; color: #9f743c; background: #f7f0e5; border-radius: .65rem; font-size: 1rem; }
.order-detail-item-info { display: grid; gap: .2rem; flex: 1; min-width: 0; }
.order-detail-item-info strong { color: #40372d; font-size: .79rem; overflow-wrap: anywhere; }
.order-detail-item-info small { color: #918478; font-size: .75rem; }
.order-detail-items li > b { flex: none; color: #514335; font-size: .78rem; white-space: nowrap; }
.order-detail-items li > b small { font-size: .75rem; }
.order-detail-empty { margin: .7rem 0; color: #8b8177; font-size: .76rem; }
.order-detail-info-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .7rem; padding: .82rem 0; border-top: 1px solid #f1ece5; }
.order-detail-info-row span { color: #8a7e71; font-size: .75rem; }
.order-detail-info-row strong { color: #4a3e32; font-size: .76rem; font-weight: 700; line-height: 1.9; overflow-wrap: anywhere; }
.order-detail-money-row, .order-detail-money-total { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; padding: .48rem 0; font-size: .75rem; }
.order-detail-money-row span { color: #81766a; }
.order-detail-money-row strong { color: #4e4439; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.order-detail-money-row.is-adjustment strong { color: #3d8556; }
.order-detail-money-total { margin-top: .55rem; padding-top: .9rem; border-top: 1px dashed #ded1be; font-weight: 800; }
.order-detail-money-total strong { color: #78501d; font-size: 1rem; white-space: nowrap; }
.order-detail-money-total small { font-size: .75rem; }
.order-detail-receive { display: grid; gap: .45rem; }
.order-detail-receive form { margin: 0; }
.order-detail-receive button { width: 100%; min-height: 2.8rem; color: #fff; background: linear-gradient(135deg, #88602e, #a87a3c); border: 0; border-radius: .75rem; cursor: pointer; font-size: .8rem; font-weight: 800; transition: filter .18s, transform .18s; }
.order-detail-receive button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.order-detail-receive small { color: #85796d; text-align: center; font-size: .75rem; }
.order-detail-contact { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .85rem 1rem; color: #755528; background: #f5ecdd; border: 1px solid #e7d5b7; border-radius: .8rem; font-size: .75rem; font-weight: 800; text-decoration: none; }
.order-detail-contact:hover { color: #57390f; background: #f0e1c9; text-decoration: none; }
.order-detail-contact span { white-space: nowrap; }
@media (max-width: 760px) {
    .order-detail-grid { grid-template-columns: 1fr; }
    .order-detail-aside { grid-row: auto; }
    .order-detail-page { padding-top: .9rem; }
}
@media (max-width: 480px) {
    .order-detail-heading { align-items: flex-start; }
    .order-detail-refresh { min-width: 2.6rem; padding: .55rem; }
    .order-detail-refresh span { display: none; }
    .order-detail-status-top { padding: 1rem; align-items: flex-start; }
    .order-detail-status-icon { width: 3rem; height: 3rem; }
    .order-detail-status-icon svg { width: 1.65rem; height: 1.65rem; }
    .order-detail-steps { padding: 1rem .38rem; }
    .order-detail-steps li { font-size: .75rem; }
    .order-detail-card { padding: 1rem; }
    .order-detail-info-row { grid-template-columns: 1fr; gap: .2rem; }
    .order-detail-items li > b { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .order-detail-refresh, .order-detail-receive button { transition: none; }
}
/* New PWA version notification */
.pwa-update-banner { position:fixed; z-index:12000; right:1rem; bottom:calc(5.2rem + env(safe-area-inset-bottom)); left:1rem; display:flex; align-items:center; justify-content:space-between; gap:.8rem; width:min(calc(100% - 2rem),30rem); margin-inline:auto; padding:.85rem .95rem; color:#fff; background:#3b3127; border:1px solid #8c724e; border-radius:.95rem; box-shadow:0 .8rem 2rem rgba(20,15,9,.25); font-size:.76rem; font-weight:800; }
.pwa-update-banner button { flex:none; min-height:2.2rem; padding:.4rem .7rem; color:#5d411e; background:#f5d99d; border:0; border-radius:.6rem; font:inherit; font-size: .75rem; font-weight:800; cursor:pointer; }
.pwa-update-banner button:disabled { opacity:.7; cursor:wait; }
body.auth-page .pwa-update-banner, body.install-page .pwa-update-banner { bottom:calc(1rem + env(safe-area-inset-bottom)); }
@media(max-width:400px) { .pwa-update-banner { align-items:stretch; flex-direction:column; text-align:center; } }
.checkout-gateway-notice{display:flex;align-items:flex-start;gap:.7rem;margin:.8rem 0 1rem;padding:.85rem .95rem;color:#76501f;background:#fff7e8;border:1px solid #ead09d;border-radius:.85rem;line-height:1.7}.checkout-gateway-notice[hidden]{display:none}.checkout-gateway-notice>span{display:grid;place-items:center;flex:none;width:1.45rem;height:1.45rem;margin-top:.12rem;color:#fff;background:#a97932;border-radius:50%;font-weight:900}.checkout-gateway-notice strong,.checkout-gateway-notice small{display:block}.checkout-gateway-notice strong{font-size:.82rem}.checkout-gateway-notice small{margin-top:.1rem;color:#806d54;font-size:.75rem}