/* Café FAMILIS — design system (same family as familis.blacklayer.network)
   Primary: bronze #C3956D (logo circle) · slate #263238 · teal #58C2BA · grey #AEAEB2 */

:root {
  --bronze: #C3956D;
  --bronze-deep: #9C6E47;
  --slate: #263238;
  --teal: #58C2BA;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F4F0;
  --bg-soft: #F0EBE5;
  --surface: #FFFFFF;
  --surface-2: #FBF9F7;
  --border: #E8E1D9;
  --border-strong: #D6CBBF;
  --text: #1C272C;
  --text-2: #4A5A60;
  --muted: #74807F;
  --primary: #C3956D;
  --primary-text: #21170F;
  --accent: #9C6E47;
  --accent-soft: rgba(195, 149, 109, .16);
  --shadow: 0 1px 2px rgba(40, 30, 20, .05), 0 8px 24px -12px rgba(40, 30, 20, .16);
  --shadow-lg: 0 24px 60px -24px rgba(40, 30, 20, .34);
  --header-bg: rgba(247, 244, 240, .8);
  --danger: #C2413A;
  --warn: #B7791F;
  --ok: #23897F;
  --info: #2F7FA8;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14191C;
  --bg-soft: #192025;
  --surface: #1D252A;
  --surface-2: #222C31;
  --border: #2C383E;
  --border-strong: #3A4950;
  --text: #EEF1F0;
  --text-2: #BCC6C4;
  --muted: #8E9C9F;
  --primary: #C3956D;
  --primary-text: #1A120B;
  --accent: #D9B18E;
  --accent-soft: rgba(195, 149, 109, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -28px rgba(0, 0, 0, .8);
  --header-bg: rgba(20, 25, 28, .8);
  --danger: #EF7C74;
  --warn: #E9B45A;
  --ok: #58C2BA;
  --info: #6EB6DE;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.inline { display: inline-flex; gap: 4px; margin: 0; }
.nowrap { white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.narrow { max-width: 640px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(28px, 4vw, 52px) 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
[data-theme="light"] .only-dark, [data-theme="dark"] .only-light { display: none !important; }

.ico { width: 1.05em; height: 1.05em; flex: none; display: inline-block; vertical-align: -.15em; }
.ico .fa-secondary { opacity: .4; }
.flag { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--border); }
.flip { display: inline-flex; transform: rotate(180deg); }
.rot-up { display: inline-flex; transform: rotate(-90deg); }
.rot-down { display: inline-flex; transform: rotate(90deg); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding: 0 1.25em; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: .95rem; letter-spacing: -.005em; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s, filter .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none !important; filter: none !important; }
.btn-sm { --h: 38px; padding: 0 1em; font-size: .875rem; }
.btn-lg { --h: 54px; padding: 0 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon-only { padding: 0; width: var(--h); }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { color: var(--primary-text); box-shadow: 0 10px 24px -10px var(--bronze); filter: brightness(1.05); }
.btn-dark { background: var(--slate); color: #fff; }
[data-theme="dark"] .btn-dark { background: #33434A; }
.btn-dark:hover { color: #fff; filter: brightness(1.15); }
.btn-ok { background: var(--teal); color: #0B1F1D; }
.btn-ok:hover { color: #0B1F1D; filter: brightness(1.06); box-shadow: 0 10px 24px -12px var(--teal); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.icon-btn, .pill-btn, .avatar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; list-style: none;
  transition: background-color .2s, border-color .2s;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover, .pill-btn:hover, .avatar-btn:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.icon-btn .ico { width: 18px; height: 18px; }
.icon-btn-sm { height: 32px; min-width: 32px; padding: 0 6px; }
.icon-btn-sm .ico { width: 14px; height: 14px; }
.icon-btn.is-disabled { opacity: .35; pointer-events: none; }
.caret { width: 10px !important; height: 10px !important; opacity: .6; transition: transform .2s; }
[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; color: var(--text); white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-ico { height: 38px; width: 38px; }
.main-nav { display: flex; gap: 2px; margin-left: 12px; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 550; font-size: .94rem; transition: background-color .2s, color .2s; }
.main-nav a .ico { display: none; }
.main-nav a:hover { color: var(--text); background: var(--bg-soft); }
.main-nav a.is-active { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; }
.hdr-opt { display: flex; gap: 8px; }
.drawer-tools { display: flex; gap: 8px; justify-content: center; }
.drawer .menu { top: auto; bottom: calc(100% + 8px); }
.theme-ico { display: inline-flex; }
[data-theme="light"] .ti-dark, [data-theme="dark"] .ti-light { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--primary); color: var(--primary-text); font-weight: 700; font-size: .8rem; flex: none; }
.avatar-btn { padding: 0 8px 0 4px; }
.cart-pill .ico { width: 16px; height: 16px; }

/* dropdowns */
.dropdown { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px) scale(.98); transform-origin: top center;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; z-index: 60;
}
.menu-sm { min-width: 180px; }
.menu-right { left: auto; right: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; }
.dropdown.is-open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.dropdown.is-open .menu-right { transform: translateY(0) scale(1); }
.menu-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 8px 10px 4px; font-weight: 700; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; background: none; border: 0; color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--bg-soft); color: var(--text); }
.menu-item .ico { width: 18px; height: 18px; color: var(--accent); }
.menu-item.danger, .menu-item.danger .ico { color: var(--danger); }
.menu-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.menu-text strong { font-weight: 600; }
.menu-text small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; }
.menu-check { opacity: 0; color: var(--accent) !important; width: 14px !important; height: 14px !important; }
.menu-item.is-active .menu-check, .menu-item[aria-checked="true"] .menu-check { opacity: 1; }
.menu-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.menu form { margin: 0; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 12, 14, .5); backdrop-filter: blur(2px); animation: fade .2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); display: flex; flex-direction: column; padding: 18px; box-shadow: var(--shadow-lg); animation: slideIn .28s var(--ease); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; font-weight: 600; color: var(--text); }
.drawer-nav a .ico { width: 20px; height: 20px; color: var(--accent); }
.drawer-nav a.is-active, .drawer-nav a:hover { background: var(--bg-soft); }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 clamp(36px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -25% -10% auto auto; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow .ico { width: 14px; height: 14px; }
.hero h1 { margin: 14px 0 16px; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--text-2); max-width: 34em; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 36px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-stats strong { display: block; font-size: 1.8rem; font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.1; }
.hero-stats span { color: var(--muted); font-size: .88rem; }
.hero-logo-card { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--surface), var(--bg-soft) 70%); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border); max-width: 460px; margin-inline: auto; }
.hero-logo-card img { width: 84%; height: auto; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

/* ---------- steps & sections ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
.step-n { position: absolute; right: 20px; top: 14px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--accent-soft); line-height: 1; }
[data-theme="light"] .step-n { color: #EFE3D7; }
.feature-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature-ico .ico { width: 22px; height: 22px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 6px 0 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mini-item { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.mini-item:hover { color: inherit; transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.mini-media { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; }
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mini-copy small { color: var(--muted); font-size: .8rem; }
.price { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.item-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); background: linear-gradient(140deg, var(--accent-soft), var(--bg-soft)); }
.item-ph-drink { color: var(--teal); background: linear-gradient(140deg, color-mix(in srgb, var(--teal) 16%, transparent), var(--bg-soft)); }
.item-ph .ico { width: 42%; height: 42%; }

/* ---------- chips, badges, cards ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--bg-soft); color: var(--text-2); white-space: nowrap; }
.badge .ico { width: 12px; height: 12px; }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-warn { background: color-mix(in srgb, var(--warn) 17%, transparent); color: var(--warn); }
.badge-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.badge-info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge-brand { background: var(--accent-soft); color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 24px); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin: 0; }
.card-title .ico { color: var(--accent); }
.empty-state { text-align: center; padding: 48px 20px; }
.big-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.big-ico .ico { width: 30px; height: 30px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 550; }
.notice-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--text-2); background: var(--bg-soft); padding: 10px 12px; border-radius: 10px; }
.hint .ico { color: var(--accent); margin-top: 3px; }

/* segmented */
.segmented { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.segmented a, .segmented button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 650; color: var(--text-2); background: none; border: 0; cursor: pointer; }
.segmented a:hover, .segmented button:hover { color: var(--text); }
.segmented .is-active { background: var(--primary); color: var(--primary-text) !important; }
.segmented .ico { width: 16px; height: 16px; }
.seg-lg a { padding: 10px 18px; font-size: .95rem; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: .84rem; font-weight: 650; color: var(--text-2); }
input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
input[type="file"] { padding: 9px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--bronze); }
textarea { resize: vertical; }
.select-sm { padding: 6px 10px; border-radius: 999px; font-size: .84rem; width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; margin-bottom: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background-color .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--bronze); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--bronze); outline-offset: 2px; }
.switch-sm { margin: 0; font-size: .84rem; }
.switch-sm .switch-ui { width: 34px; height: 20px; }
.switch-sm .switch-ui::after { width: 14px; height: 14px; }
.switch-sm input:checked + .switch-ui::after { transform: translateX(14px); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.qty input { width: 38px; padding: 0; height: 34px; text-align: center; border: 0; background: transparent; font-weight: 750; font-variant-numeric: tabular-nums; -moz-appearance: textfield; border-radius: 6px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; background: transparent; }
.qty-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); transition: background-color .15s, transform .1s; }
.qty-btn:active { transform: scale(.92); }
.qty-btn .ico { width: 12px; height: 12px; }
.qty-add { background: var(--primary); color: var(--primary-text); }
.qty-sm .qty-btn { width: 28px; height: 28px; }
.qty-sm input { width: 30px; height: 28px; font-size: .88rem; }

/* ---------- menu page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 8px 0 6px; }
.page-head p { margin: 0; max-width: 38em; }
.last-order { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.last-order span { flex: 1; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 32px); align-items: start; }
.menu-group + .menu-group { margin-top: 30px; }
.group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.group-title h2 { margin: 0; font-size: 1.4rem; }
.group-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.item-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; scroll-margin-top: 90px; }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.item-card.is-picked { border-color: var(--bronze); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.item-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.item-body h3 { margin: 0 0 4px; font-size: 1.04rem; }
.item-body p { margin: 0 0 10px; }
.item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.item-foot .price { font-size: 1.1rem; }
.checkout { position: sticky; top: 92px; }
.checkout h2, .pos-cart h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.checkout h2 .ico, .pos-cart h2 .ico { color: var(--accent); }
.cart-lines { display: grid; gap: 6px; margin-bottom: 12px; max-height: 260px; overflow: auto; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.cart-line span b { color: var(--accent); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 16px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.cart-total strong { font-size: 1.6rem; font-family: var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.grid-2.tight { gap: 0 10px; }
.checkout .hint { margin-bottom: 14px; }
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--slate); color: #fff; box-shadow: var(--shadow-lg); animation: up .25s var(--ease); }
.cart-bar small { display: block; color: rgba(255, 255, 255, .7); font-size: .76rem; line-height: 1.2; }
.cart-bar strong { font-size: 1.1rem; }
@keyframes up { from { transform: translateY(120%); } }

/* ---------- order ticket (customer) ---------- */
.ticket { text-align: center; padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--bronze); }
.status-kitchen::before { background: var(--info); }
.status-done::before { background: var(--teal); }
.ticket-ok { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 650; margin-bottom: 18px; }
.ticket-number { font-family: var(--font-display); font-size: clamp(4.5rem, 18vw, 7.5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 6px 0 6px; color: var(--text); font-variant-numeric: tabular-nums; }
.ticket-name { font-weight: 650; color: var(--text-2); }
.status-done .ticket-number { color: var(--ok); animation: pulse 1.4s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.progress-steps { list-style: none; padding: 0; margin: 22px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.progress-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; font-weight: 650; color: var(--muted); position: relative; }
.progress-steps li::before { content: ""; position: absolute; top: 22px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.is-done::before, .progress-steps li.is-current::before { background: var(--bronze); }
.ps-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); border: 2px solid var(--border); position: relative; z-index: 1; }
.ps-ico .ico { width: 20px; height: 20px; }
.is-done .ps-ico { background: var(--bronze); border-color: var(--bronze); color: var(--primary-text); }
.is-current .ps-ico { background: var(--surface); border-color: var(--bronze); color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: ring 1.8s infinite; }
.is-current { color: var(--text) !important; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px transparent; } }
.ticket-help { font-size: 1.02rem; color: var(--text-2); max-width: 30em; margin: 0 auto 18px; }
.ticket-lines { text-align: left; background: var(--bg-soft); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .95rem; }
.line + .line { border-top: 1px dashed var(--border-strong); }
.line-total { font-size: 1.05rem; font-weight: 700; }
.ticket-actions { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }

/* ---------- toasts & alert banner ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; animation: up .3s var(--ease); }
.toast > .ico { width: 20px; height: 20px; flex: none; }
.toast-success > .ico { color: var(--ok); }
.toast-error > .ico { color: var(--danger); }
.toast span { flex: 1; }
.toast-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
.alert-banner { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--bronze); color: #21170F; font-weight: 750; font-size: 1.08rem; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .5); animation: drop .35s var(--ease); max-width: calc(100vw - 24px); }
.alert-banner .icon-btn { background: rgba(255, 255, 255, .45); border-color: transparent; color: #21170F; }
.alert-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #21170F; color: var(--bronze); animation: shake 1s ease-in-out 3; flex: none; }
@keyframes drop { from { transform: translate(-50%, -140%); } }
@keyframes shake { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(14deg); } }
body.flash-screen::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 94; box-shadow: inset 0 0 0 10px var(--bronze); animation: flash 1.2s ease-in-out 3; }
@keyframes flash { 50% { box-shadow: inset 0 0 0 0 transparent; } }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--border); background: var(--surface); padding: 44px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 96px; height: auto; margin-bottom: 12px; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .ico { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer-langs { display: flex; gap: 14px; }
.footer-langs a { display: inline-flex; align-items: center; gap: 6px; }
.footer-langs .flag { width: 16px; height: 16px; }
.footer-langs a.is-active { color: var(--text); font-weight: 650; }
.footer-credit { margin-top: 10px; font-size: .8rem; color: var(--muted); display: flex; gap: 6px; }
.footer-credit a { font-weight: 700; color: var(--text-2); }

/* ---------- auth ---------- */
.auth-body { min-height: 100vh; background: radial-gradient(circle at 80% 0%, var(--accent-soft), transparent 50%), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; }
.auth-card { width: min(420px, 100%); padding: 32px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 4px; }
.auth-logo { display: block; width: 108px; margin: 0 auto 18px; }
.auth-tools { display: flex; gap: 8px; }
.form-grid .btn { margin-top: 4px; }

/* ---------- admin shell ---------- */
.admin-body { background: var(--bg); }
.admin { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; z-index: 70; }
.admin-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 18px; }
.admin-brand .brand { font-size: .98rem; }
.admin-brand .brand-ico { width: 34px; height: 34px; }
.admin-tag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: .93rem; }
.admin-nav a .ico { width: 18px; height: 18px; color: var(--muted); }
.admin-nav a:hover { background: var(--bg-soft); color: var(--text); }
.admin-nav a.is-active { background: var(--primary); color: var(--primary-text); }
.admin-nav a.is-active .ico { color: var(--primary-text); }
.admin-nav span { flex: 1; }
.count { font-style: normal; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .74rem; font-weight: 800; display: inline-grid; place-items: center; }
.count.bump { animation: bump .6s var(--ease) 2; }
@keyframes bump { 50% { transform: scale(1.35); } }
.admin-side-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 2px; border-top: 1px solid var(--border); }
.admin-viewsite { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.admin-viewsite:hover { background: var(--bg-soft); }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 28px); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.admin-title { font-size: 1.25rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-burger { display: none; }
.admin-content { padding: clamp(16px, 3vw, 28px); flex: 1; }
.admin-backdrop { display: none; }
.admin-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat small { color: var(--muted); font-weight: 650; font-size: .8rem; }
.stat strong { font-size: 1.9rem; font-family: var(--font-display); letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; font-size: .8rem; }
.stat-ico { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.stat-warn .stat-ico { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.stat-info .stat-ico { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.station-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.station { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.station:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--bronze); }
.station h2 { font-size: 1.2rem; margin: 0 0 4px; }
.station p { margin: 0; color: var(--muted); font-size: .9rem; }
.station > div { flex: 1; }
.station-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.station-ico .ico { width: 26px; height: 26px; }
.st-cucina .station-ico { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.st-pos .station-ico { background: var(--primary); color: var(--primary-text); }
.station .go { color: var(--muted); width: 18px; height: 18px; }
.top-list { display: grid; gap: 10px; }
.top-row { display: grid; grid-template-columns: 200px 1fr 40px; gap: 12px; align-items: center; font-size: .92rem; }
.top-row .bar { height: 10px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.top-row .bar i { display: block; height: 100%; background: var(--bronze); border-radius: 99px; }
.top-row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* board */
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.live { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 2s infinite; }
.live.is-off .live-dot { background: var(--danger); animation: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px transparent; } }
.board { display: grid; gap: 16px; align-items: start; }
.board-3 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
.board-col { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 12px; min-height: 240px; }
.col-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.col-head h2 { font-size: 1.02rem; margin: 0; flex: 1; }
.col-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.col-kitchen .col-dot { background: var(--info); }
.col-done .col-dot { background: var(--ok); }
.col-list { display: grid; gap: 10px; }
.col-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 10px; color: var(--muted); font-size: .9rem; text-align: center; }
.col-empty .ico { width: 28px; height: 28px; opacity: .6; }
.oc { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--warn); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); animation: pop .35s var(--ease); }
.oc-s-kitchen { border-left-color: var(--info); }
.oc-s-done { border-left-color: var(--ok); }
.oc-s-cancelled { border-left-color: var(--danger); opacity: .65; }
.oc.is-new { box-shadow: 0 0 0 3px var(--bronze), var(--shadow-lg); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.oc-head { display: flex; align-items: center; gap: 10px; }
.oc-no { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.oc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.oc-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-who small { color: var(--muted); font-size: .76rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-who small .ico { width: 11px; height: 11px; }
.oc-lines { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.oc-lines li { display: flex; gap: 8px; font-size: .92rem; align-items: baseline; }
.oc-q { font-weight: 800; min-width: 28px; color: var(--accent); font-variant-numeric: tabular-nums; }
.oc-n { flex: 1; }
.oc-p { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.oc-k .ico { width: 14px; height: 14px; color: var(--muted); }
.oc-notes { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; font-size: .86rem; font-weight: 600; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.oc-notes .ico { margin-top: 3px; }
.oc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--border); }
.oc-total { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.oc-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.oc-s-unpaid .oc-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; }
.oc-s-unpaid .oc-actions .btn { width: 100%; }
.oc-s-unpaid .oc-actions .btn-icon-only { width: var(--h); }
.oc-actions form { margin: 0; }
/* kitchen screen: big, glanceable */
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.oc-big { padding: 16px 18px; border-left-width: 8px; }
.oc-big .oc-no { font-size: 2.2rem; }
.oc-big .oc-lines li { font-size: 1.15rem; font-weight: 650; }
.oc-big .oc-lines li.is-muted { font-size: .9rem; font-weight: 500; color: var(--muted); }
.oc-big .oc-lines li.is-muted .oc-q { color: var(--muted); }
.oc-big .oc-foot { border-top: 0; padding-top: 0; }
.oc-big .oc-actions { margin: 0; width: 100%; }
.oc-big .oc-actions form { width: 100%; }
.kitchen-empty { text-align: center; padding: 70px 20px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.kitchen-empty > .ico { width: 54px; height: 54px; color: var(--info); opacity: .7; margin-bottom: 10px; }
.sub-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 28px 0 12px; color: var(--text-2); }
.sub-title .ico { color: var(--ok); }
.done-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.done-chip { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.done-chip span { color: var(--muted); font-size: .85rem; }
.day-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 14px 18px; }
.day-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 200px; }
.day-title strong { font-size: 1.15rem; }
.day-pick input { width: auto; padding: 7px 12px; border-radius: 999px; }
.day-stats { margin-left: auto; display: flex; gap: 18px; color: var(--muted); font-size: .9rem; }
.day-stats strong { color: var(--text); font-size: 1.05rem; }
.done-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }

/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.pos-items .segmented { margin-bottom: 14px; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.pos-tile { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.pos-tile.is-picked { border-color: var(--bronze); box-shadow: 0 0 0 3px var(--accent-soft); }
.pos-add { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 118px; transition: background-color .15s, transform .1s; }
.pos-add:hover { background: var(--bg-soft); }
.pos-add:active { transform: scale(.97); }
.pos-add strong { font-size: .95rem; line-height: 1.25; flex: 1; }
.pos-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
[data-kind="drink"] .pos-ico { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.pos-count { position: absolute; top: -8px; right: -8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: var(--primary); color: var(--primary-text); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
.pos-tile .qty { align-self: center; }
.pos-cart { position: sticky; top: 84px; }
.pay-buttons { display: grid; gap: 8px; margin-bottom: 8px; }
.pos-last { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 14px 18px; border-left: 5px solid var(--ok); }
.pos-last > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pos-last small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-last-no { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.04em; }

/* tables (admin) */
.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 750; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table tr.is-off td { opacity: .55; }
.cell-item { display: flex; align-items: center; gap: 12px; }
.cell-item > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-lg { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; }
.img-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

/* reports */
.range-card { margin-bottom: 20px; }
.range-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.range-form .field { margin: 0; width: 180px; }
.report-tree { display: grid; gap: 14px; }
.rep { border-radius: var(--radius); }
.rep summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.rep summary::-webkit-details-marker { display: none; }
.rep-chev { display: inline-flex; transition: transform .2s; color: var(--muted); }
.rep-chev .ico { width: 14px; height: 14px; }
.rep:not([open]) > summary .rep-chev { transform: rotate(-90deg); }
.rep-title { font-size: 1.1rem; }
.rep-year > summary .rep-title { font-size: 1.5rem; font-family: var(--font-display); }
.rep-meta { color: var(--muted); font-size: .9rem; margin-left: auto; }
.rep-meta strong { color: var(--text); }
.dl { display: inline-flex; gap: 6px; }
.rep-month { margin-top: 12px; background: var(--surface-2); border: 1px solid var(--border); padding: 12px 14px; }
.rep-days { display: grid; margin-top: 10px; }
.rep-day { display: flex; align-items: center; gap: 12px; padding: 8px 4px 8px 26px; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.rep-day-name { font-weight: 600; }

/* staff */
.staff-list { display: grid; }
.staff-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.staff-row:first-child { border-top: 0; }
.staff-row.is-off { opacity: .55; }
.staff-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.staff-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-more { position: relative; }
.staff-pop { position: absolute; right: 0; top: calc(100% + 6px); width: 240px; z-index: 20; display: grid; gap: 8px; padding: 14px; }
.staff-pop form { margin: 0; }
.role-help { padding-left: 18px; margin: 0 0 16px; display: grid; gap: 4px; }

/* receipt (print) */
.receipt-body { background: #fff; color: #111; }
.receipt { width: 300px; margin: 20px auto; text-align: center; font-size: 13px; }
.receipt img { margin: 0 auto 6px; }
.receipt h1 { font-size: 18px; margin: 0 0 4px; letter-spacing: 0; }
.r-no { font-size: 44px; font-weight: 800; margin: 8px 0 2px; }
.receipt table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.receipt td { padding: 4px 0; border-bottom: 1px dashed #ccc; text-align: left; }
.receipt td:last-child { text-align: right; white-space: nowrap; }
.receipt .tot td { font-weight: 800; font-size: 15px; border-bottom: 2px solid #111; }
.r-note { font-size: 11px; color: #555; }
@media print { .no-print { display: none !important; } @page { margin: 6mm; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .board-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .board-3 .col-done { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pos { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .hide-md { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 300px; margin: 0 auto; }
  .order-layout { grid-template-columns: 1fr; }
  .checkout { position: static; }
  .cart-bar { display: flex; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-105%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  .admin-side.is-open { transform: none; }
  .admin-side.is-open ~ .admin-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 14, .45); }
  .admin-burger { display: inline-flex; }
  .admin-2col { grid-template-columns: 1fr; }
  .pos { grid-template-columns: 1fr; }
  .pos-cart { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .board-3 { grid-template-columns: 1fr; }
  .station-grid { grid-template-columns: 1fr; }
  .top-row { grid-template-columns: 120px 1fr 32px; }
  .admin-top .header-actions .pill-btn, .admin-top .header-actions > .dropdown:nth-last-child(2) { display: none; }
  .day-stats { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .hide-sm { display: none !important; }
  .hdr-opt { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.tight { grid-template-columns: 1fr 1fr; }
  .item-grid { grid-template-columns: 1fr; }
  .item-card { flex-direction: row; }
  .item-media { width: 104px; aspect-ratio: auto; flex: none; }
  .header-inner { gap: 10px; }
  .brand-name { font-size: .95rem; }
  .stat strong { font-size: 1.5rem; }
  .pos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* shared-account bits */
.avatar-img { overflow: hidden; padding: 0; background: var(--bg-soft); }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.new-acc { margin-bottom: 14px; }
.new-acc summary { cursor: pointer; color: var(--accent); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }

/* product photos: show the whole item (tall bottles/glasses), never cropped */
.item-media { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg-soft)); display: grid; place-items: center; }
.item-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.mini-media { background: var(--bg-soft); display: grid; place-items: center; }
.mini-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.thumb { background: var(--bg-soft); }
.thumb img, .thumb-lg { object-fit: contain; background: var(--bg-soft); }
@media (max-width: 560px) { .item-media { width: 112px; aspect-ratio: 1; } .item-media img { padding: 6px; } }

/* brand name in uppercase, like the FAMILIS header */
.brand-name { text-transform: uppercase; letter-spacing: .12em; }

/* mobile: no sideways dragging — nothing may be wider than the screen */
html, body { max-width: 100%; overflow-x: clip; }
.admin-main, .admin-content, .admin-top { min-width: 0; max-width: 100vw; }
.admin-top .header-actions { min-width: 0; flex-shrink: 1; }
@media (max-width: 720px) {
  .board-top { display: grid; gap: 10px; }
  .board-top .segmented { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .board-top .segmented::-webkit-scrollbar { display: none; }
  .seg-lg a { white-space: nowrap; padding: 9px 14px; font-size: .9rem; }
  .live { gap: 10px; }
  .admin-top { gap: 8px; padding-inline: 12px; }
  .admin-title { font-size: 1.05rem; }
  .admin-content { padding: 14px 12px; }
  .done-strip { display: grid; }
  .done-chip { justify-content: space-between; }
  .oc-big .oc-no { font-size: 1.9rem; }
}

/* catalogue: hold the ⋮⋮ handle, then drag to reorder */
.drag-handle { width: 30px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background-color .2s, color .2s, transform .2s; }
.drag-handle:hover { background: var(--bg-soft); color: var(--text); }
.drag-handle .ico { width: 18px; height: 18px; }
.drag-handle.is-pressing { background: var(--accent-soft); color: var(--accent); transform: scale(1.12); transition-duration: .45s; }
[data-sortable].is-sorting { user-select: none; }
[data-sortable].is-sorting .drag-handle { cursor: grabbing; }
tr.is-dragging td { background: var(--surface); box-shadow: 0 0 0 2px var(--bronze) inset; }
tr.is-dragging { position: relative; z-index: 2; box-shadow: var(--shadow-lg); }
tr.is-dragging .drag-handle { background: var(--primary); color: var(--primary-text); }
.sort-status { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; padding: 10px 18px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); animation: up .25s var(--ease); }
.sort-status.ok { background: var(--teal); color: #0B1F1D; }
.sort-status.err { background: var(--danger); color: #fff; }

/* sidebar: uppercase name + STAFF tag fit side by side */
.admin-brand .brand-name { font-size: .86rem; letter-spacing: .07em; }
.admin-brand { gap: 6px; }
.admin-tag { flex: none; }

/* POS tiles: same product photo as the public menu */
.pos-media { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg-soft)); margin-bottom: 4px; }
.pos-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pos-media .item-ph .ico { width: 36%; height: 36%; }
.pos-add { min-height: 0; }
.item-media img, .mini-media img, .pos-media img { object-position: center; }

/* photo size/position editor (catalogue) */
.photo-adjust { padding: 14px; border: 1px dashed var(--border-strong); border-radius: 14px; margin-bottom: 14px; background: var(--surface-2); }
.photo-preview-row { display: grid; grid-template-columns: 1.4fr 1fr 64px; gap: 12px; align-items: end; margin-bottom: 14px; }
.photo-preview { margin: 0; text-align: center; }
.photo-preview figcaption { font-size: .74rem; font-weight: 700; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.pp-box { overflow: hidden; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg-soft)); border: 1px solid var(--border); }
.pp-box img { width: 100%; height: 100%; object-fit: contain; }
.pp-item .pp-box { aspect-ratio: 4 / 3; } .pp-item img { padding: 10px; }
.pp-pos .pp-box { aspect-ratio: 4 / 3; } .pp-pos img { padding: 6px; }
.pp-mini .pp-box { width: 64px; height: 64px; } .pp-mini img { padding: 4px; }
.pp-box .item-ph .ico { width: 40%; height: 40%; }
input[type="range"] { padding: 0; height: 30px; accent-color: var(--bronze); background: transparent; border: 0; box-shadow: none; }

/* product photos: zoom stays inside the frame on every screen size */
.item-media, .mini-media, .pos-media, .thumb, .pp-box { overflow: hidden; }
.item-media img, .mini-media img, .pos-media img, .thumb img { transition: transform .2s var(--ease); }
@media (min-width: 561px) and (max-width: 1024px) {          /* tablet */
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }  /* large PC */
@media (max-width: 560px) {                                    /* phone */
  .item-card { align-items: stretch; }
  .item-media { width: 108px; min-height: 108px; aspect-ratio: auto; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-preview-row { grid-template-columns: 1fr 1fr 56px; }
  .pp-mini .pp-box { width: 56px; height: 56px; }
}

/* previews: Menu, Cassa and Home the same size */
.photo-preview-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.pp-item .pp-box, .pp-pos .pp-box, .pp-mini .pp-box { width: 100%; height: auto; aspect-ratio: 1; }
.pp-mini img { padding: 8px; }
@media (max-width: 560px) { .photo-preview-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pp-mini .pp-box { width: 100%; height: auto; } }

/* homepage "I nostri classici": bigger product thumbnails */
.mini-item { gap: 16px; padding: 12px 14px; }
.mini-media { width: 76px; height: 76px; border-radius: 14px; }
.mini-media img { padding: 6px; }
@media (max-width: 560px) { .mini-media { width: 64px; height: 64px; } }

/* photos always fit inside their frame (fix: image was bigger than the box) */
.item-media, .mini-media, .pos-media, .pp-box { position: relative; overflow: hidden; }
.item-media > img, .mini-media > img, .pos-media > img, .pp-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* Android edge-to-edge: area behind the gesture bar shows the page colour */
html { background-color: var(--bg); }
.site-footer::after { content: ""; display: block; height: env(safe-area-inset-bottom, 0px); }
.toasts { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.admin-content { padding-bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px)); }

/* new-order alert (SweetAlert2): full-screen flash until tapped */
.swal2-container.na-flash-white { animation: naFlashWhite 1.1s ease-in-out infinite; }
.swal2-container.na-flash-dark { animation: naFlashDark 1.1s ease-in-out infinite; }
@keyframes naFlashWhite { 0%, 100% { background: rgba(8, 12, 14, .6); } 50% { background: rgba(255, 255, 255, .96); } }
@keyframes naFlashDark { 0%, 100% { background: rgba(255, 255, 255, .25); } 50% { background: rgba(8, 12, 14, .96); } }
.na-popup { cursor: pointer; width: min(480px, 100%) !important; }
.na-popup .swal2-title { font-size: 1.7rem; }
.swal2-icon.na-icon { background: var(--primary); color: var(--primary-text); animation: naRing 1s ease-in-out infinite; }
@keyframes naRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-6deg); } }
.na-order { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; text-align: left; padding: 10px 14px; margin-top: 8px; border-radius: 14px; background: var(--bg-soft); }
.na-no { grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.04em; color: var(--text); }
.na-who { font-weight: 700; color: var(--text); }
.na-lines { font-size: .88rem; color: var(--muted); }
.na-tap { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .swal2-container.na-flash-white, .swal2-container.na-flash-dark { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; } }

/* small product photos in order cards and on the customer's order page */
.oc-lines li { align-items: center; }
.oc-img, .line-img { position: relative; flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--bg-soft); }
.oc-img > img, .line-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.oc-img .item-ph .ico, .line-img .item-ph .ico { width: 52%; height: 52%; }
.oc-big .oc-img { width: 48px; height: 48px; border-radius: 12px; }
.oc-big .oc-lines li.is-muted .oc-img { width: 30px; height: 30px; opacity: .7; }
.line { align-items: center; }
.line-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.line-img { width: 40px; height: 40px; }
.na-order { grid-template-columns: auto 1fr; }

/* small product photos in order cards + customer order page (fixed size) */
.oc-lines li { display: flex; align-items: center; gap: 8px; }
.oc-img, .line-img { position: relative; flex: 0 0 auto; width: 34px !important; height: 34px !important; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--bg-soft); }
.oc-img > img, .line-img > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; padding: 2px; transform: none !important; }
.oc-img .item-ph .ico, .line-img .item-ph .ico { width: 52%; height: 52%; }
.oc-big .oc-img { width: 44px !important; height: 44px !important; border-radius: 12px; }
.oc-big .oc-lines li.is-muted .oc-img { width: 30px !important; height: 30px !important; opacity: .7; }
.line { align-items: center; }
.line-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.line-img { width: 40px !important; height: 40px !important; }

/* Cassa/Cucina columns: cards always fit their column (no cut-off badge, prices or buttons) */
.board-col, .col-list, .col-list > *, .oc, .oc-head, .oc-who, .oc-lines li, .oc-n { min-width: 0; }
.oc { overflow: hidden; }
.oc-head { flex-wrap: wrap; row-gap: 6px; }
.oc-head .badge { flex: 0 1 auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.oc-n { flex: 1 1 auto; overflow-wrap: anywhere; line-height: 1.3; }
.oc-q, .oc-p { flex: 0 0 auto; white-space: nowrap; }
.oc-foot { flex-wrap: wrap; row-gap: 8px; }
.oc-actions { flex-wrap: wrap; justify-content: flex-end; }
.oc-foot .oc-actions form .btn { white-space: nowrap; }
@media (max-width: 1280px) { .board-3 .oc-head .badge { display: none; } }

/* ---------- till: apertura / chiusura cassa + printer ---------- */
.cassa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.cassa-grid > .card { margin: 0; }
.cassa-state-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cassa-state-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.cassa-state-head p { margin: 0; }
.cassa-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.cassa-ico .ico { width: 26px; height: 26px; }
.cassa-state.is-closed .cassa-ico { background: var(--bg-soft); color: var(--text-2); }
.cassa-state.is-open .cassa-ico { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.cassa-state.is-open { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.stat-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-grid-2 .stat { padding: 14px; box-shadow: none; background: var(--surface-2); }
.stat-grid-2 .stat strong { font-size: 1.45rem; }
.cassa-calc td { padding: 7px 4px; }
.cassa-calc tr.tot td { border-top: 2px solid var(--border-strong); font-size: 1.05rem; }
.cassa-form { margin-top: 14px; }
.cassa-close { border-color: color-mix(in srgb, var(--bronze) 45%, var(--border)); }
.cassa-diff { margin: -4px 0 14px; font-weight: 750; font-size: 1.05rem; }
.diff-ok { color: var(--ok); }
.diff-bad { color: var(--danger); }
.cassa-summary { margin-bottom: 18px; }
.cassa-summary .stat-grid { margin-bottom: 0; }
.cassa-history { margin-bottom: 18px; }
.cassa-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); font-weight: 650; }
.cassa-banner > .ico { color: var(--warn); width: 22px; height: 22px; flex: none; }
.cassa-banner > span { flex: 1; min-width: 180px; }
.printer-state { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); margin: 6px 0 16px; font-weight: 650; font-size: .92rem; }
.ps-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); flex: none; }
.printer-state[data-state="ok"] .ps-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.printer-state[data-state="err"] .ps-dot, .printer-state[data-state="off"] .ps-dot { background: var(--danger); }
.printer-state[data-state="wait"] .ps-dot { background: var(--warn); }
.printer-format { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.printer-format summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.printer-format summary::-webkit-details-marker { display: none; }
.printer-format summary .ico { color: var(--accent); }
.printer-format select, .printer-format textarea { width: 100%; }
@media (max-width: 960px) { .cassa-grid { grid-template-columns: 1fr; } }

/* full screen frame (Cassa / Cucina stay full screen while changing page) */
.kiosk { position: fixed; inset: 0; z-index: 2147483000; background: var(--bg); }
.kiosk iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- customer display (admin/display.php) ---------- */
.display-body { margin: 0; background: var(--bg); overflow: hidden; }
.cd { height: 100vh; width: 100vw; position: relative; }
.cd-screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(16px, 3vw, 36px); box-sizing: border-box; }
.cd-screen[hidden] { display: none; }
.cd-head { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); margin-bottom: clamp(12px, 2.5vh, 28px); }
.cd-head img { width: clamp(80px, 16vh, 150px); height: auto; flex: none; }
.cd-head h1 { margin: 0; font-size: clamp(1.8rem, 6vh, 3.4rem); letter-spacing: -.02em; color: var(--text); }
.cd-head p { margin: 4px 0 0; font-size: clamp(1rem, 2.8vh, 1.5rem); color: var(--muted); }
.cd-promo { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(8px, 1.5vw, 18px); min-height: 0; }
.cd-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; text-align: center; min-height: 0; overflow: hidden; }
.cd-media { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cd-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cd-media .item-ph .ico { width: 48px; height: 48px; }
.cd-tile strong { font-size: clamp(.85rem, 2.2vh, 1.15rem); margin-top: 6px; line-height: 1.2; }
.cd-price { color: var(--accent); font-weight: 800; font-size: clamp(.9rem, 2.4vh, 1.25rem); }
.cd-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.cd-bar h2 { margin: 0; font-size: clamp(1.4rem, 4.5vh, 2.4rem); }
.cd-lines { list-style: none; margin: 0; padding: 0; flex: 1; overflow: auto; min-height: 0; }
.cd-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: clamp(6px, 1.4vh, 12px) 4px; border-bottom: 1px solid var(--border); font-size: clamp(1.05rem, 3.6vh, 1.9rem); }
.cd-lines .q { color: var(--accent); font-weight: 800; }
.cd-lines .s { font-variant-numeric: tabular-nums; font-weight: 700; }
.cd-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: clamp(8px, 2vh, 18px); margin-top: 8px; border-top: 3px solid var(--bronze); }
.cd-total span { font-size: clamp(1.3rem, 4.5vh, 2.4rem); font-weight: 700; }
.cd-total strong { font-size: clamp(2.2rem, 10vh, 5.5rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.cd-paid { align-items: center; justify-content: center; text-align: center; }
.cd-check .ico { width: clamp(80px, 22vh, 180px); height: clamp(80px, 22vh, 180px); color: var(--ok); }
.cd-paid h2 { margin: 8px 0 4px; font-size: clamp(2.2rem, 10vh, 5rem); }
.cd-no { margin: 0; font-size: clamp(1.4rem, 5vh, 2.6rem); font-weight: 800; color: var(--accent); }
.cd-sum { margin: 6px 0 0; font-size: clamp(1.1rem, 3.6vh, 1.9rem); color: var(--text-2); }
.cd-note { margin-top: 14px; font-size: clamp(1rem, 3vh, 1.5rem); color: var(--muted); }
.cd-fs { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: .85rem; cursor: pointer; opacity: .75; }
.cd-fs .ico { width: 16px; height: 16px; }
.cd-fs[hidden] { display: none; }
@media (max-aspect-ratio: 1/1) { .cd-promo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* online payment on the order ticket */
.pay-online { display: grid; gap: 10px; margin: 6px 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.pay-buttons-online { display: grid; gap: 10px; }
