/* =========================================================
   TNS Gastro — Desktop-first shop layout
   Design concept: "The Ticket" — the ordering flow is styled
   like a printed kitchen chit / receipt: torn paper edges,
   monospace prices and codes, dashed dividers. Built desktop
   first (this is the base, un-mediaqueried ruleset), then
   adapted down for tablet/phone via max-width queries.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --ink: #1c231c;
    --ink-soft: #3a4238;
    --paper: #f8f5ee;
    --card: #ffffff;
    --line: #e6e0d2;
    --line-strong: #d8d0bc;
    --brand: #2f5233;
    --brand-2: #3e6b45;
    --brand-dark: #1f3a24;
    --amber: #b9791f;
    --amber-2: #d89a44;
    --amber-bg: #fbf1de;
    --danger: #b3432b;
    --danger-bg: #f7e6df;
    --success: #3e7c4a;
    --muted: #7a7568;
    --shadow: 0 12px 32px rgba(28, 35, 28, 0.10);
    --shadow-lg: 0 24px 60px rgba(28, 35, 28, 0.20);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2.5px solid var(--amber);
    outline-offset: 2px;
}

.muted { color: var(--muted); }
.small-text { font-size: 12.5px; }
.hidden { display: none !important; }

/* =========================== Buttons =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    padding: 11px 18px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 82, 51, 0.28);
}
.btn-primary:hover { background: var(--brand-2); }

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.btn-outline {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line-strong);
}

.btn-block, .btn-checkout { width: 100%; }

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line-strong);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex: none;
    transition: background 0.15s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.22); }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--amber);
    color: #241a08;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    margin-left: 4px;
}

/* =========================== Shell / Header =========================== */

.page-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px 64px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--ink);
    background-image: radial-gradient(1200px 240px at 15% -40%, rgba(255, 255, 255, 0.06), transparent);
    color: #fff;
    margin: 0 -28px;
    padding: 18px 28px 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.topbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-bottom: 16px;
}

.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 240px; }
.brand-mark {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber-2);
    border: 1px solid rgba(216, 154, 68, 0.5);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    flex: none;
}
.brand h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand p {
    margin: 2px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.session-badge {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    background: rgba(216, 154, 68, 0.16);
    color: var(--amber-2);
    border: 1px solid rgba(216, 154, 68, 0.35);
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex: none;
}

.header-actions { flex: 1 1 auto; justify-content: flex-end; }

.btn-ghost-dark {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.32); color: #fff; }

.auth-pill {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    padding: 0 6px;
    display: none;
}

.cart-open-btn {
    background: var(--amber);
    color: #241a08;
    box-shadow: 0 6px 16px rgba(185, 121, 31, 0.35);
    flex: none;
}
.cart-open-btn:hover { background: var(--amber-2); }
.cart-open-btn .badge { background: #241a08; color: var(--amber-2); }

.search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
}

.search-field {
    flex: 1 1 220px;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    padding: 12px 18px;
}
.search-field svg { flex: none; opacity: 0.6; }
.search {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font-size: 14.5px;
}
.search::placeholder { color: rgba(255, 255, 255, 0.5); }

.form-select.no-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 10px 6px;
    border-radius: var(--radius-pill);
}
.form-select.no-arrow option { color: #111; }

/* category rail */
.chips {
    display:flex;
    column-gap: 10px; /* razmak između kolona */
    row-gap: 30px; /* razmak između redova */
    padding: 0 0 16px;
    scrollbar-width: none;
    overflow:auto;
}

@media (min-width: 1390px) {
    .chips {
        display: block;
    }
}
.chips::-webkit-scrollbar {
    display: none;
}

.group-chip, .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 600;
    flex: none;
    margin-bottom:1em;
}
.group-chip-image, .group-chip-icon {
    width: 20px; height: 20px; object-fit: cover; border-radius: var(--radius-pill); 
}
.group-chip-image:not([src]), .group-chip-icon:not([src]) { display: none; }

.group-chip.active, .chip.active, .group-chip-home.active {
    background: var(--amber);
    color: #241a08;
    border-color: var(--amber);
}

/* =========================== Layout (real Bootstrap row/col) =========================== */

/* .shop-main is a Bootstrap .row; column widths/stacking come from the
   col-12 / col-lg-8 / col-lg-4 classes on the markup itself, not from
   custom CSS. This block only adds the vertical rhythm on top of it. */
.shop-main {
    padding-top: 26px;
}

.panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.panel-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
}
#menuCount {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
}

/* =========================== Quick actions =========================== */

.section-title { margin-bottom: 12px; }
.section-title h2 {
    margin: 0 0 2px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}
.section-title span { font-size: 12.5px; color: var(--muted); }

.panic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.panic-btn {
    min-height: 74px;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #fff;
    box-shadow: var(--shadow);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    font-weight: 700;
    font-size: 13.5px;
}
.panic-btn small { font-size: 11px; font-weight: 500; opacity: 0.85; line-height: 1.25; }
.panic-btn:hover { transform: translateY(-1px); }

.panic-blue   { background: linear-gradient(135deg, #2f5233, #1f3a24); }
.panic-orange { background: linear-gradient(135deg, #d89a44, #b9791f); }
.panic-red    { background: linear-gradient(135deg, #c2604a, #b3432b); }
.panic-green  { background: linear-gradient(135deg, #4f8a5b, #2f5233); }
.panic-purple { background: linear-gradient(135deg, #7a6a9e, #55467c); }
.panic-teal   { background: linear-gradient(135deg, #2f6b6a, #1f4a49); }

/* =========================== Product grid & cards =========================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrap {
    height: 168px;
    background: linear-gradient(145deg, #eee7d6, #e2d9c2);
    position: relative;
    overflow: hidden;
}
.product-image { width: 100%; height: 100%; object-fit: cover; }

.product-content { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.product-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.product-short {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.product-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags:empty { display: none; }

.tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--amber-bg);
    color: var(--amber);
    padding: 4px 9px;
    border-radius: var(--radius-pill);
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px dashed var(--line-strong);
}

.product-price {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 16px;
    color: var(--brand-dark);
}
.product-price::before { content: "€"; margin-right: 1px; opacity: 0.6; font-size: 13px; }

.product-add-btn {
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
}
.product-add-btn:hover { background: var(--brand-2); }

.empty-state {
    grid-column: 1 / -1;
    background: var(--card);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

/* =========================== Ticket sidebar (order summary) =========================== */

.ticket-panel {
    position: sticky;
    top: 148px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ticket-header {
    padding: 18px 20px 14px;
    border-bottom: 1px dashed var(--line-strong);
}
.ticket-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}
.ticket-header .eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.ticket-quick { padding: 16px 20px 4px; }

.order-meta {
    margin: 0 20px 14px;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.rounds-wrap { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }

.round-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: #fff;
}
.round-header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.round-title { font-weight: 700; font-size: 13.5px; }
.round-header strong { font-family: var(--font-mono); }
.round-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
}
.round-item:first-child { border-top: none; }
.round-item div:nth-child(2),
.round-item div:nth-child(3),
.round-item div:nth-child(4) { font-family: var(--font-mono); text-align: right; }

/* =========================== Offcanvas panels & Modal (real Bootstrap) =========================== */
/* Bootstrap's own bootstrap.css already provides the functional part of
   these components: position/fixed, show/hide transform, backdrop,
   focus trap hooks, z-index stacking. Everything below only themes them
   to match the ticket design and adds the desktop->mobile placement
   change (right-side panel -> bottom sheet) that app.js's markup needs. */

.offcanvas-backdrop, .modal-backdrop {
    background-color: var(--ink);
}
.offcanvas-backdrop.show, .modal-backdrop.show {
    opacity: 0.55;
}

/* Desktop-first: a tall panel sliding in from the right */
.offcanvas.offcanvas-end {
    width: min(460px, 100vw);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

.drawer-handle { display: none; }

.drawer-head {
    padding: 20px 22px;
    border-bottom: 1px dashed var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--paper);
}
.drawer-head h3, .drawer-head label {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}
.drawer-head .icon-btn { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }

.drawer-body { padding: 20px 22px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px dashed var(--line-strong); background: #fff; }

/* Auth modal: theme Bootstrap's centered modal to match the ticket look */
#authModal .modal-content {
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
#authModal .drawer-body input,
#authModal input#twoFactorInput {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    background: #fff;
    color: var(--ink);
}
#authModal .drawer-body p.muted { color: var(--muted); }
#authModal .drawer-body { gap: 6px; }

/* =========================== Cart drawer =========================== */

.cart-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.cart-item-title { font-weight: 700; font-size: 14.5px; }
.cart-item-meta { font-family: var(--font-mono); font-size: 12.5px; margin-top: 2px; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.cart-item-qnt { min-width: 20px; text-align: center; font-family: var(--font-mono); font-weight: 600; }
.cart-minus-btn, .cart-plus-btn, .cart-remove-btn {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    font-weight: 700;
}
.cart-remove-btn { color: var(--danger); }
.cart-product-info-input { border-color: var(--line) !important; }

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}
.cart-summary-row strong { font-family: var(--font-mono); font-size: 20px; color: var(--brand-dark); }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; }
.cart-total strong { font-family: var(--font-mono); font-size: 20px; color: var(--brand-dark); }

/* =========================== Product detail drawer =========================== */

.detail-image {
    width: 100%;
    height: 240px;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    background-color: var(--paper);
    margin-bottom: 4px;
}
.detail-price {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 6px 0 2px;
}
.detail-price::before { content: "€"; opacity: 0.6; font-size: 18px; margin-right: 2px; }

.qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: var(--radius-sm);
}
.qty-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line-strong);
    font-size: 17px;
    font-weight: 700;
}
.qty-value { min-width: 26px; text-align: center; font-family: var(--font-mono); font-weight: 700; }

/* =========================== History drawer =========================== */

.history-round {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: #fff;
}
.history-round h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.history-round p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.history-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 13.5px;
    border-top: 1px dashed var(--line);
}
.history-row:first-of-type { border-top: none; }
.history-row strong { font-family: var(--font-mono); }

#historyGrandTotal {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

/* close-order confirm row inside history drawer */
#clodeOrderContainer table { width: 100%; border-collapse: collapse; }
#clodeOrderContainer td { padding: 0; }

/* =========================== Checkout drawer =========================== */

.checkout-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
}
.form-label { font-weight: 600; color: var(--ink-soft); font-size: 13px; margin-bottom: 4px; display: block; }
.form-control, .form-select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: var(--font-body);
    background: #fff;
    color: var(--ink);
}
.form-control:focus, .form-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.12); }
.row.g-3 { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.row.g-3 > [class*="col-"] { flex: 1 1 46%; min-width: 220px; }
.row.g-3 > .col-12 { flex: 1 1 100%; }

/* =========================== Toast =========================== */

.toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%) translateY(16px);
    background: var(--ink);
    color: #fff;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s ease;
    z-index: 1400;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================== Mobile bottom bar (hidden on desktop) =========================== */

.bottom-bar { display: none; }

/* =========================================================
   Responsive: tablet
   ========================================================= */
@media (max-width: 991.98px) {
    .ticket-panel { position: static; }
    .page-shell { padding-left: 20px; padding-right: 20px; }
    .topbar { margin: 0 -20px; padding: 16px 20px 0; }
}

/* =========================================================
   Responsive: phone — this is where the mobile-friendly
   behaviour from the original mobile-first build returns:
   bottom sheets instead of side panels, bottom cart bar, etc.
   ========================================================= */
@media (max-width: 767.98px) {
    .page-shell { padding: 0 14px 100px; }
    .topbar { margin: 0 -14px; padding: 14px 14px 0; }

    .brand h1 { font-size: 19px; }
    .brand p { display: none; }
    .session-badge { padding: 7px 11px; font-size: 11px; }
    .cart-open-btn span:not(.badge) { display: none; }

    .panic-grid { grid-template-columns: repeat(2, 1fr); }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .product-image-wrap { height: 120px; }
    .product-content { padding: 12px; gap: 6px; }
    .product-title { font-size: 14.5px; }
    .product-short { display: none; }

    /* offcanvas panels become bottom sheets on phones */
    .offcanvas.offcanvas-end {
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 88vh;
        border-top-left-radius: 22px;
        border-top-right-radius: 22px;
        border-left: 0;
        transform: translateY(100%);
    }
    .offcanvas.offcanvas-end.show { transform: translateY(0); }
    .drawer-handle {
        display: block;
        width: 44px;
        height: 5px;
        border-radius: var(--radius-pill);
        background: var(--line-strong);
        margin: 10px auto 0;
    }

    #authModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
        align-items: flex-end;
        display: flex;
    }
    #authModal .modal-content { width: 100%; border-radius: 22px 22px 0 0; }

    .bottom-bar {
        display: flex;
        justify-content: center;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 400;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        pointer-events: none;
    }
    .bottom-inner {
        pointer-events: auto;
        width: 100%;
        max-width: 560px;
        background: var(--ink);
        color: #fff;
        border-radius: 18px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: var(--shadow-lg);
    }
    .bottom-inner strong { display: block; font-size: 14px; }
    .bottom-inner span { display: block; margin-top: 3px; font-size: 12px; color: rgba(255,255,255,0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .btn-cart { background: var(--amber); color: #241a08; min-width: 128px; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
