/* ============================================================================
   Buvette POS — design system
   A calm, counter-side tool for a café/snack bar. One emerald accent for
   money/confirm; a monospace utility face for every amount, total and ticket
   ref, tying the UI to the thermal receipt it prints. Mobile-first.
   Vanilla CSS, no build step — class names are the contract with the markup.
   ============================================================================ */

/* Arabic (RTL) keeps a clean neutral face; Latin uses the system stack. */
@font-face { font-family:'Tajawal'; src:url('../fonts/Tajawal-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/Tajawal-Medium.ttf') format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/Tajawal-Bold.ttf') format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Tajawal'; src:url('../fonts/Tajawal-ExtraBold.ttf') format('truetype'); font-weight:800; font-display:swap; }

:root {
    /* Palette */
    --ink: #17181C;          /* near-black: text, top bar, primary emphasis */
    --ink-soft: #2A2C33;
    --canvas: #F1F2F4;       /* page background */
    --surface: #FFFFFF;      /* cards, panels */
    --paper: #FCFBF8;        /* the receipt tape — a touch warmer than surface */
    --line: #E4E6EA;         /* hairline borders */
    --line-strong: #D2D5DC;
    --muted: #6C7079;        /* secondary text */
    --ink-on-dark: #F4F5F7;

    --accent: #E07A12;       /* ElMohajir orange: money in, confirm, selected */
    --accent-press: #B85E08;
    --accent-soft: #FCEBD6;  /* tinted background for selected/positive */
    --brand: #F7941D;        /* the logo's bright orange — logos, highlights */

    --danger: #C23A2B;
    --danger-soft: #FBECEA;
    --warn: #8A6316;
    --warn-soft: #FBF3E0;
    --ok: var(--accent);
    --success: #12876A;      /* kept green for a true "all clear" signal */

    /* Aliases kept for JS that reads them (admin bar fill) */
    --night: var(--ink);

    --radius: 12px;
    --radius-sm: 9px;
    --radius-lg: 18px;
    --shadow: 0 1px 2px rgba(20,22,28,.06), 0 6px 20px rgba(20,22,28,.06);
    --shadow-lift: 0 8px 30px rgba(20,22,28,.14);
    --tap: 52px;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

html[dir="rtl"], html[lang="ar"] { --font: 'Tajawal', system-ui, sans-serif; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.hint { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding: 1rem;
}
@media (min-width: 700px) { .container { padding: 1.5rem; } }

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
    margin: 1.5rem 0 0.85rem;
}

/* ---------- Top bar & brand ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 58px;
    padding: 0 1rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .topbar { padding: 0 1.5rem; } }

.topbar-brand, .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand-mark {
    inline-size: 26px;
    block-size: 26px;
    border-radius: 7px;
    background: var(--accent);
    position: relative;
    flex: none;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px 6px;
    border-radius: 2px;
    background: repeating-linear-gradient(
        to bottom, #fff 0 2px, transparent 2px 4px);
    opacity: 0.9;
}
.topbar-brand-text { font-size: 1.2rem; color: var(--ink); }
.topbar-logo { display: none; }
.brand-logo { inline-size: 30px; block-size: 30px; border-radius: 50%; flex: none; }

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar-nav form { display: flex; }

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}
.lang-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.2;
}
.lang-btn.active { background: var(--ink); color: #fff; }

.user-chip {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding-inline-end: 0.25rem;
}
@media (min-width: 560px) { .user-chip { display: inline-flex; } }
.user-chip-name { font-weight: 600; font-size: 0.9rem; }

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
}
.badge-admin   { color: var(--ink);    border-color: var(--line-strong); background: var(--canvas); }
.badge-cashier { color: var(--accent-press); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.badge-waiter  { color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: var(--warn-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: var(--tap);
    padding: 0 1.15rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:not(:disabled):hover { background: var(--accent-press); border-color: var(--accent-press); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:not(:disabled):hover { background: var(--canvas); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:not(:disabled):hover { background: color-mix(in srgb, var(--danger) 85%, #000); }

.btn-block { width: 100%; }

.btn-sm { min-height: 40px; padding: 0 0.85rem; font-size: 0.875rem; border-radius: 8px; }

.btn-sm-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-sm-danger:hover { background: var(--danger-soft); }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
@media (min-width: 700px) { .card { padding: 1.5rem; } }
.card + .card { margin-top: 1rem; }
.card-title { font-size: 1.1rem; font-weight: 700; }
.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.center-card { max-width: 460px; margin: 3rem auto; text-align: center; }
.center-card .btn { margin-top: 1.25rem; }

/* ---------- Alerts & chips ---------- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warn  { background: var(--warn-soft);  color: var(--warn);  border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert-success { background: var(--accent-soft); color: var(--accent-press); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.close-blockers ul { margin: 0.5rem 0 0; padding-inline-start: 1.2rem; }
.close-blockers li { margin-block: 0.35rem; }
.close-blockers a { color: var(--warn); font-weight: 700; text-decoration: underline; }

.chip {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--canvas);
    color: var(--muted);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.chip-ok     { background: var(--accent-soft); color: var(--accent-press); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.chip-warn   { background: var(--warn-soft);   color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.chip-danger { background: var(--danger-soft);  color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="url"], input[type="date"], input[type="file"],
.select, textarea, .scan-input {
    width: 100%;
    min-height: var(--tap);
    padding: 0.6rem 0.85rem;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, .select:focus, textarea:focus, .scan-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="file"] { padding: 0.5rem; font-size: 0.9rem; }
.select {
    appearance: none;
    cursor: pointer;
    padding-inline-end: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236C7079' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
}
html[dir="rtl"] .select { background-position: left 0.85rem center; }
.field-amount input { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.category-row { display: flex; gap: 0.5rem; align-items: stretch; }
.category-row .select { flex: 1; }
.photo-field { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.photo-thumb { inline-size: 52px; block-size: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }
.photo-thumb-empty { background: var(--canvas); }

/* Segmented control (payment / order mode) */
.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}
.segmented button {
    flex: 1;
    min-height: 44px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    transition: background .15s ease, color .15s ease;
}
.segmented button.selected { background: var(--ink); color: #fff; }

/* ---------- Tiles / module grid ---------- */
.tile-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .tile-grid-modules { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

.tile, .module-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem;
    min-height: 128px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
a.module-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.module-tile { position: relative; overflow: hidden; }
.module-tile::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: 4px;
    background: var(--accent);
}
.module-tile.locked { opacity: 0.6; box-shadow: none; }
.module-tile.locked::before { background: var(--line-strong); }
.tile-icon { font-size: 2rem; line-height: 1; }
.tile-name { font-weight: 700; font-size: 1.05rem; }
.tile-tag { font-size: 0.82rem; color: var(--muted); margin-top: auto; }

/* Single register accent — the ElMohajir orange. */
.station--buvette { --accent: #E07A12; --accent-press: #B85E08; --accent-soft: #FCEBD6; }

/* ---------- Dashboard ---------- */
.shift-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.shift-banner-info { flex: 1 1 240px; }
.shift-banner .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .shift-banner .btn { flex: 0 0 auto; } }

.summary-rows { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.15rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}
.summary-row:last-child { border-bottom: none; }
.summary-row span { color: var(--muted); }
.summary-row strong { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.summary-row-diff strong { font-size: 1.1rem; }
.diff-ok strong { color: var(--accent-press); }
.diff-bad strong { color: var(--danger); }

.expenses-card .expense-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}
.expense-form input { flex: 1 1 140px; }
.expense-form .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .expense-form .btn { flex: 0 0 auto; } }
.expense-row strong { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--danger); }
.expense-delete {
    inline-size: 24px; block-size: 24px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1;
    border: 1px solid var(--line);
}
.expense-delete:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.expense-total-row { border-top: 2px solid var(--line-strong); border-bottom: none; margin-top: 0.25rem; padding-top: 0.65rem; }
.expense-total-row strong { color: var(--danger); }

/* ---------- POS shell ---------- */
.pos--split { display: block; }
.pos-main { min-width: 0; }

.station-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.station-back { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.station-back:hover { color: var(--ink); }
.station-name { font-size: 1.5rem; margin-top: 0.25rem; }
.station-eyebrow {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; color: var(--muted);
    padding: 0.3rem 0.6rem; border: 1px solid var(--line); border-radius: 8px;
}

/* POS tabs (caisse: tables to settle / catalog) */
.pos-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.pos-tabs::-webkit-scrollbar { display: none; }
.pos-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--muted);
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    white-space: nowrap;
}
.pos-tab.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos-tab-count {
    min-inline-size: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    font-family: var(--mono);
}
.pos-tab.selected .pos-tab-count { background: rgba(255,255,255,.24); }
.pos-tabs-board { margin-inline-start: auto; }
.orders-board-row { margin-bottom: 1rem; }

/* Orders panel (caisse strip of tables) */
.orders-panel { margin-bottom: 1rem; }
.orders-empty { color: var(--muted); padding: 2rem 0; text-align: center; }
.table-jump { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: none; margin-bottom: 0.5rem; }
.table-jump::-webkit-scrollbar { display: none; }
.table-jump-chip {
    padding: 0.35rem 0.75rem; border-radius: 999px; white-space: nowrap;
    background: var(--surface); border: 1.5px solid var(--line-strong);
    font-weight: 700; font-size: 0.85rem;
}
.orders-strip {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
}
.orders-strip .order-card { scroll-snap-align: start; flex: 0 0 clamp(240px, 78vw, 300px); }

/* ---------- Order cards (caisse strip + wall board) ---------- */
.order-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.order-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed var(--line);
}
.order-card-head strong { font-size: 1.05rem; font-weight: 800; }
.order-card-age { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }
.table-card-order { position: relative; padding-inline-end: 1.75rem; }
.table-card-order + .table-card-order { border-top: 1px dashed var(--line); padding-top: 0.5rem; }
.table-card-order-meta { font-size: 0.75rem; color: var(--muted); font-family: var(--mono); margin-bottom: 0.15rem; }
.order-card-items { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.order-card-items li { font-size: 0.95rem; color: var(--ink); }
.order-item-void { text-decoration: line-through; color: var(--muted); }
.order-card-note { font-size: 0.85rem; color: var(--warn); font-weight: 600; }
.table-card-order-cancel {
    position: absolute; inset-block-start: 0; inset-inline-end: 0;
    inline-size: 28px; min-height: 28px; padding: 0;
    color: var(--muted);
}
.table-card-order-cancel:hover { color: var(--danger); background: var(--danger-soft); }
.order-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin-top: auto; padding-top: 0.5rem; border-top: 2px dashed var(--line);
}
.order-card-total { font-family: var(--mono); font-weight: 800; font-size: 1.1rem; }

/* ---------- Scanner + catalog ---------- */
.scan-row { margin-bottom: 1rem; }
.scan-input::placeholder { color: var(--muted); }

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.filter-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.category-tabs.filter-presets { flex-wrap: nowrap; }
.category-tabs .btn { flex: 0 0 auto; }
.category-tabs .btn.selected, .filter-presets .btn.selected {
    background: var(--ink); color: #fff; border-color: var(--ink);
}
.cat-icon { display: inline-flex; }
.cat-icon img, .emoji { inline-size: 1.05em; block-size: 1.05em; vertical-align: -0.15em; }

.product-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
@media (min-width: 500px) { .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } }

.product-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: start;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .12s ease, box-shadow .12s ease, transform .06s ease;
}
.product-tile:not(:disabled):hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-tile:not(:disabled):active { transform: scale(0.985); }
.product-tile:disabled { opacity: 0.5; cursor: not-allowed; }
.product-tile.in-cart { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* A whisper of colour so the two modules read apart at a glance: a 3px top
   accent — warm for the stock module (Aperitivos Salados), cool for the
   no-stock one (Bebidas). Clipped to the tile's rounded corners. */
.product-tile::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 3px;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}
.product-tile[data-tracks="1"]::before { background: #E07A12; }
.product-tile[data-tracks="0"]::before { background: #3E9CC9; }

.product-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--canvas);
    overflow: hidden;
}
.product-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.product-photo-fallback { font-size: 2.4rem; opacity: 0.55; }
.product-photo-fallback img { inline-size: 2.4rem; block-size: 2.4rem; }
.product-flag { position: absolute; inset-block-start: 6px; inset-inline-start: 6px; }
.product-qty {
    position: absolute; inset-block-start: 6px; inset-inline-end: 6px;
    min-inline-size: 26px; block-size: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 6px;
    background: var(--accent); color: #fff;
    border-radius: 999px; font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
}
.product-info { padding: 0.6rem 0.7rem 0.7rem; display: flex; flex-direction: column; gap: 0.15rem; }
.product-name { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.product-price { font-family: var(--mono); font-weight: 700; color: var(--accent-press); font-size: 0.92rem; }
.tile-minus {
    position: absolute; inset-block-end: 6px; inset-inline-end: 6px;
    inline-size: 30px; block-size: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; border-radius: 8px; font-size: 1.2rem; line-height: 1;
}
@keyframes scan-hit { 0% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 1px var(--accent); } }
.product-tile.scan-hit { animation: scan-hit 0.5s ease; }

.grid-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.pager-info { font-family: var(--mono); font-weight: 700; color: var(--muted); }

/* ---------- The receipt / cart panel (signature: thermal tape) ---------- */
.cart-jump {
    position: fixed;
    inset-block-end: 1rem;
    inset-inline: 1rem;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--tap);
    padding: 0 1.15rem;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    box-shadow: var(--shadow-lift);
    font-weight: 600;
}
.cart-jump strong { font-family: var(--mono); margin-inline-start: auto; }
.cart-jump-count {
    min-inline-size: 26px; block-size: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); border-radius: 999px;
    font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
}
.cart-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20,22,28,.45); }
body.cart-open { overflow: hidden; }

.ticket {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 50;
    transform: translateY(105%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    max-height: 90vh;
}
.ticket.open { transform: translateY(0); }
.ticket-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    padding: 1.4rem 1.15rem 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lift);
    overflow-y: auto;
    /* scalloped tear-off top edge — the tape emerging from the printer */
    -webkit-mask: radial-gradient(7px at 50% 0, transparent 98%, #000) repeat-x 50% 0 / 16px 100%;
            mask: radial-gradient(7px at 50% 0, transparent 98%, #000) repeat-x 50% 0 / 16px 100%;
}
.ticket-close {
    position: absolute; inset-block-start: 0.75rem; inset-inline-end: 0.85rem;
    inline-size: 32px; block-size: 32px; border-radius: 8px;
    color: var(--muted); font-size: 1.1rem; z-index: 2;
}
.ticket-close:hover { background: var(--canvas); color: var(--ink); }
.ticket-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px dashed var(--line-strong);
    margin-bottom: 0.75rem;
}
.ticket-title { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }
.ticket-sub { font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }

.ticket-settle-banner {
    text-align: center; font-weight: 700; font-family: var(--mono);
    background: var(--accent-soft); color: var(--accent-press);
    padding: 0.5rem; border-radius: 8px; margin-bottom: 0.75rem;
}
.ticket-lines { display: flex; flex-direction: column; }
.ticket-empty { color: var(--muted); text-align: center; padding: 1.5rem 0; }

.ticket-line { padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.ticket-line-top { display: flex; align-items: baseline; gap: 0.5rem; }
.ticket-line-name { flex: 1; font-weight: 600; }
.ticket-line-qty { font-family: var(--mono); color: var(--muted); }
.ticket-line-subtotal { font-family: var(--mono); font-weight: 700; }
.ticket-line-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.stepper { display: inline-flex; align-items: center; gap: 0.25rem; }
.stepper-btn {
    inline-size: 34px; block-size: 34px; border-radius: 8px;
    border: 1.5px solid var(--line-strong); background: var(--surface);
    font-size: 1.15rem; line-height: 1; color: var(--ink);
}
.stepper-btn:hover { background: var(--canvas); }
.stepper-value { min-inline-size: 30px; text-align: center; font-family: var(--mono); font-weight: 700; }
.ticket-line-remove { margin-inline-start: auto; inline-size: 34px; block-size: 34px; border-radius: 8px; color: var(--muted); font-size: 1.1rem; }
.ticket-line-remove:hover { color: var(--danger); background: var(--danger-soft); }
.ticket-line-void { inline-size: 30px; block-size: 30px; border-radius: 7px; color: var(--muted); font-size: 0.95rem; }
.ticket-line-void:hover { color: var(--danger); background: var(--danger-soft); }
.ticket-line--void { opacity: 0.6; }
.ticket-line--void .ticket-line-name { text-decoration: line-through; }
.ticket-line-voidtag { display: inline-block; margin-top: 0.25rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--danger); }
.ticket-line--settle.is-splitting { background: var(--accent-soft); border-radius: 8px; padding-inline: 0.5rem; }
.ticket-line-split { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.split-tag { font-size: 1.1rem; }

.ticket-discount { margin-top: 0.85rem; }
.ticket-discount label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.order-table-row .table-input { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; text-align: center; }

/* Remise: quick discount presets (−10, −100…) above the free amount field. */
.discount-presets { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.discount-preset, .discount-preset-clear { flex: 1 1 auto; min-width: 3.2rem; font-family: var(--mono); font-weight: 700; }
.discount-preset-clear { flex: 0 0 auto; min-width: 2.6rem; color: var(--muted); }
.discount-preset:hover { border-color: var(--accent); color: var(--accent-press); background: var(--accent-soft); }

/* Manager PIN: revealed under the remise once an amount is set (cashiers). */
.manager-pin-row { margin-top: 0.6rem; padding: 0.6rem 0.7rem; border: 1px dashed var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); }
.manager-pin-row label { color: var(--accent-press); }
.manager-pin-row input { width: 100%; font-family: var(--mono); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.3em; text-align: center; }

.ticket-total-row {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-top: 0.85rem; padding-top: 0.85rem;
    border-top: 2px dashed var(--line-strong);
    font-size: 1.15rem; font-weight: 700;
}
.ticket-total-row strong { font-family: var(--mono); font-size: 1.5rem; color: var(--accent-press); }

.rate-toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0; }
.rate-toggle {
    min-height: 42px; padding: 0 0.85rem; border-radius: 999px;
    font-size: 0.85rem; font-weight: 600;
    border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.rate-toggle.selected, .staff-toggle.selected {
    background: var(--accent-soft); color: var(--accent-press);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.ticket-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
.ticket-actions .btn { flex: 1; }
.ticket-actions .btn-ghost { flex: 0 0 auto; }

.btn-split { background: var(--surface); color: var(--accent-press); border-color: var(--accent); }
.btn-split:hover { background: var(--accent-soft); }
.btn-split-toggle {
    width: 100%; margin-bottom: 0.6rem;
    background: transparent; color: var(--ink);
    border: 1.5px dashed var(--line-strong); font-weight: 600;
}
.btn-split-toggle.is-active { border-style: solid; background: var(--accent-soft); color: var(--accent-press); border-color: var(--accent); }
.split-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }

/* ---------- Paid overlay ---------- */
.overlay {
    position: fixed; inset: 0; z-index: 80;
    display: grid; place-items: center;
    padding: 1.5rem;
    background: rgba(20,22,28,.55);
    backdrop-filter: blur(3px);
}
.overlay-card {
    background: var(--surface); border-radius: var(--radius-lg);
    padding: 2rem 1.5rem; text-align: center; max-width: 380px; width: 100%;
    box-shadow: var(--shadow-lift);
}
.overlay-check {
    inline-size: 68px; block-size: 68px; margin: 0 auto 1rem;
    display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); border-radius: 999px;
    font-size: 2.2rem; font-weight: 700;
    animation: pop .3s cubic-bezier(.2,1.4,.5,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.overlay-total { font-family: var(--mono); font-size: 2rem; font-weight: 800; margin: 0.5rem 0 1.25rem; }

/* ---------- Ticket history ---------- */
.ticket-kind { font-weight: 700; }
.ticket-kind-sale { background: var(--accent-soft); color: var(--accent-press); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- Data tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th {
    text-align: start;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--muted); font-weight: 700;
    padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--line);
    white-space: nowrap;
}
.data-table th.num, .data-table td.num { text-align: end; }
.data-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--canvas); }
.data-table tfoot th { border-top: 2px solid var(--line-strong); border-bottom: none; padding-top: 0.75rem; }
.mono-strong { font-family: var(--mono); font-weight: 700; }
.table-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }

/* Transactions */
.tx-row { cursor: pointer; }
.tx-cancelled { opacity: 0.55; }
.tx-cancelled .mono-strong { text-decoration: line-through; }
.tx-status-cell { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.tx-canceller { font-size: 0.72rem; color: var(--muted); }
.tx-detail > td { background: var(--canvas); }
.tx-item-line { display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0; }
.tx-item-line span:first-child { flex: 1; }
.tx-item-void { opacity: 0.6; text-decoration: line-through; }

/* ---------- Admin ---------- */
.admin-nav {
    display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
    margin-bottom: 1.25rem; padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
    padding: 0.7rem 0.85rem; white-space: nowrap;
    font-weight: 600; font-size: 0.92rem; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-nav a:hover { color: var(--ink); }
.admin-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* Arrivage: the ＋ button beside a stock count adds the morning delivery. */
.data-table td.num .stock-count { margin-inline-end: 0.4rem; }
.stock-restock { min-height: 30px; padding: 0 0.5rem; font-size: 1rem; font-weight: 700; line-height: 1; color: var(--accent-press); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.stock-restock:hover { background: var(--accent-soft); border-color: var(--accent); }

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.filter-dates { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.filter-date { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.filter-date input, .select-inline { min-height: 42px; width: auto; }
.filter-row > .filter-presets:last-child { margin-inline-start: auto; }

.stat-row {
    display: grid; gap: 0.75rem; margin-bottom: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 620px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .stat-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat-tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.stat-value { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.stat-unit { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.stat-label { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.admin-columns { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 900px) { .admin-columns { grid-template-columns: 1fr 1fr; } }

.barchart { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.bar-row { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 0.75rem; }
.bar-label { font-size: 0.85rem; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { block-size: 12px; background: var(--canvas); border-radius: 999px; overflow: hidden; }
.bar-fill { block-size: 100%; background: var(--ink); border-radius: 999px; transition: inline-size .4s ease; }
.bar-value { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }

/* Per-module revenue card: a coloured header rule ties it to its POS accent,
   then a category-by-category bar list. Wider labels than the daily chart. */
.module-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
    padding-block-end: 0.5rem; margin-block-end: 0.6rem;
    border-block-end: 2px solid var(--accent);
}
.module-title { font-weight: 700; font-size: 1.02rem; }
.module-total { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.module-card .bar-row { grid-template-columns: minmax(96px, 42%) 1fr auto; }
.module-card .bar-label { color: var(--ink); }

/* Free "extra" line: a small add-by-hand form on the catalog (always one tap
   away, phone included). Wraps on very narrow screens. */
.free-item { margin-block: 0.5rem 0.75rem; }
.free-item-form { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-block-start: 0.4rem; }
.free-item-form input { flex: 1 1 8rem; min-inline-size: 0; }
.free-item-form .free-item-price { flex: 0 0 6.5rem; }
.free-item-form .btn { flex: 0 0 auto; }

.chart-tooltip {
    position: fixed; z-index: 90; pointer-events: none;
    background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 600;
    padding: 0.4rem 0.6rem; border-radius: 8px; box-shadow: var(--shadow-lift);
}

/* ---------- Dialogs ---------- */
dialog.park-dialog {
    width: min(560px, calc(100vw - 2rem));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lift);
    color: var(--ink);
    background: var(--surface);
}
dialog.dialog-wide { width: min(760px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(20,22,28,.5); backdrop-filter: blur(2px); }
.park-dialog .card-title { margin-bottom: 1rem; }
.park-dialog .ticket-actions { margin-top: 1.25rem; }
.dialog-alert { margin-bottom: 1rem; }

/* ---------- Cash counter ---------- */
.cash-counter { max-width: 520px; margin-inline: auto; }
.cash-rows { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.cash-row {
    display: grid; grid-template-columns: 78px 18px 1fr auto; align-items: center; gap: 0.6rem;
    padding: 0.35rem 0;
}
.cash-note { font-family: var(--mono); font-weight: 700; }
.cash-x { color: var(--muted); text-align: center; }
.cash-count { min-height: 44px; text-align: center; font-family: var(--mono); }
.cash-line { font-family: var(--mono); font-weight: 700; text-align: end; min-inline-size: 76px; }
.cash-total-row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding-top: 0.85rem; border-top: 2px dashed var(--line-strong); font-size: 1.15rem; font-weight: 700;
}
.cash-total-row strong { font-family: var(--mono); font-size: 1.5rem; }

/* ---------- Menu QR ---------- */
.menu-qr { max-width: 420px; margin-inline: auto; text-align: center; }
.menu-qr-code { margin: 1.25rem auto; max-width: 260px; }
.menu-qr-code .qr-svg { inline-size: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.menu-qr-url { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); word-break: break-all; }
.menu-qr-edit { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 0.5rem; text-align: start; }
.menu-qr-edit label { font-size: 0.85rem; font-weight: 700; }
.menu-qr-edit input { width: 100%; }
.menu-qr-status, .menu-qr-error { text-align: start; }

/* ---------- Settings ---------- */
.settings-card { max-width: 460px; }
.settings-state { margin: 0.75rem 0 1rem; }
.settings-form { display: flex; flex-direction: column; gap: 0.5rem; text-align: start; }
.settings-form label { font-size: 0.85rem; font-weight: 700; }
.settings-form input { width: 100%; font-family: var(--mono); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.3em; text-align: center; }
.settings-form .hint { margin: 0; }
.settings-form-remove { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 400px; margin: 3.5rem auto 0; padding: 0 0.25rem; }
.auth-logo { display: none; }
.auth-logo-img { inline-size: 96px; block-size: 96px; margin: 0 auto 1.25rem; }
.auth-card .card-title { margin-bottom: 1.25rem; text-align: center; }

/* ---------- Chromeless boards & scroll nav ---------- */
.board-page { background: var(--ink); color: var(--ink-on-dark); min-height: 100vh; padding: 1rem; }
@media (min-width: 700px) { .board-page { padding: 1.5rem; } }
.board-head {
    display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
    padding-bottom: 1rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.board-logo { display: none; }
.board-head::before {
    content: "Buvette";
    font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem;
}
.board-title { font-size: 1.15rem; font-weight: 700; }
.board-count { margin-inline-start: 0.5rem; background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.board-back, .board-logout .btn { margin-inline-start: auto; }
.board-logout { margin-inline-start: 0.5rem; }
.board-page .btn-ghost { background: rgba(255,255,255,.06); color: var(--ink-on-dark); border-color: rgba(255,255,255,.2); }
.board-page .btn-ghost:hover { background: rgba(255,255,255,.12); }
.board-grid, .orders-board-grid {
    display: grid; gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.board-empty { text-align: center; padding: 3rem 0; color: rgba(255,255,255,.6); font-size: 1.1rem; }
.board-notice { margin-bottom: 1rem; }

/* Wall board cards: all text near-black, no grey. The card sits on a light
   surface but the board body colour is light-on-dark, so pin the card's base
   text to ink (covers the "Table x" header and the total) and flip --muted to
   ink too (age, meta, voided lines). The caisse strip's cards are untouched. */
.board-page .order-card { color: var(--ink); --muted: var(--ink); }

.scroll-nav { position: fixed; inset-block-end: 5rem; inset-inline-end: 1rem; z-index: 20; display: flex; flex-direction: column; gap: 0.5rem; }
.scroll-nav-btn {
    inline-size: 42px; block-size: 42px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    font-size: 1.1rem; color: var(--muted);
}
.scroll-nav-btn:hover { color: var(--ink); }

/* ---------- Report (print) ---------- */
.report-page { background: var(--surface); }
.report { max-width: 900px; margin-inline: auto; padding: 1.5rem 1rem; }
.report-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.report-logo { display: none; }
.report-head h1 { font-size: 1.5rem; }
.report-head .btn { margin-inline-start: auto; }
.report-foot { margin-top: 2rem; text-align: center; }
.report .card { break-inside: avoid; margin-bottom: 1.25rem; }

/* ---------- Reveal-on-scroll (admin) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(12px); }
.reveal-ready .reveal.is-visible { animation: reveal .4s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Desktop POS: two columns, static receipt ---------- */
@media (min-width: 1024px) {
    .pos--split { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 1.5rem; align-items: start; }
    .ticket {
        position: sticky; inset-block-start: 74px; inset-inline: auto;
        transform: none; z-index: 1; max-height: calc(100vh - 92px);
    }
    .ticket-inner { max-height: calc(100vh - 92px); border-radius: var(--radius-lg); }
    .cart-jump, .cart-backdrop, .ticket-close { display: none !important; }
    body.cart-open { overflow: auto; }
    .orders-strip .order-card { flex-basis: 300px; }
}

/* ---------- RTL ---------- */
html[dir="rtl"] .bar-fill { direction: ltr; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
    .ticket { transition: none; }
    .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
    .no-print, .topbar, .scroll-nav, .cart-jump { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ccc; }
}
