@font-face {
  font-family: "Montserrat Local";
  src: url("/assets/fonts/montserrat-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Local";
  src: url("/assets/fonts/montserrat-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Shared visual system */
:root {
  --brand: #df2032;
  --brand-dark: #bd1727;
  --brand-soft: #fff0f2;
  --ink: #24262b;
  --muted: #686b73;
  --line: #e9eaed;
  --soft: #f6f7f9;
  --green: #20734b;
  --shadow: 0 4px 20px rgb(28 32 40 / 4%);
  font-family: "Montserrat Local", Montserrat, Gotham, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { min-height: 100dvh; margin: 0; }
body.admin-page { background: #f7f8fa; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, a, input, select, textarea { transition: background-color .16s, border-color .16s, box-shadow .16s; }
:where(button, a, input, select, textarea):focus-visible { outline: 3px solid #e96575; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.25; }
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(32px, calc((100vw - 1200px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--brand); font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -2px; white-space: nowrap; }
.brand-dot { color: var(--ink); }
.top-caption { font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 28px; }
.text-link { margin-left: auto; font-size: 14px; font-weight: 650; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; }
.text-link:hover { color: var(--brand); background: var(--brand-soft); border-color: #f3ccd1; }
main { max-width: 1264px; margin: auto; padding: 28px 32px 80px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.hero { height: 224px; border-radius: 18px; overflow: hidden; position: relative; background: #252525; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #13161be8, #13161b60 60%, #13161b18); display: flex; justify-content: center; flex-direction: column; padding: 32px 36px; color: white; }
.eyebrow { display: inline-block; font-size: 11px; line-height: 1.5; font-weight: 750; letter-spacing: 1.6px; color: var(--brand); }
.hero .eyebrow { color: #ffccd3; }
.hero h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; margin: 12px 0 10px; letter-spacing: -1.2px; }
.hero p { margin: 0; font-size: 15px; color: #f0eff0; }
.store-info { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.store-avatar { height: 60px; width: 60px; border-radius: 14px; object-fit: cover; border: 3px solid white; box-shadow: 0 0 0 1px var(--line); flex-shrink: 0; }
.store-info h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.6px; }
.store-info p { margin: 0; font-size: 14px; color: var(--muted); }
.store-info .pill { margin-left: auto; }
.pill { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; background: #edf7f1; color: var(--green); border: 1px solid #d9ede1; border-radius: 7px; padding: 5px 10px; font-size: 12px; line-height: 1.5; font-weight: 650; }
.pill.warn { background: #fff6e5; border-color: #f6e3bb; color: #876018; }
.pill.gray { background: var(--soft); border-color: var(--line); color: var(--muted); }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 32px; align-items: start; }
.menu-layout > section { min-width: 0; }
.menu-controls { border-block: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.chip { flex-shrink: 0; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 550; white-space: nowrap; }
.chip:hover { color: var(--brand); background: var(--brand-soft); }
.chip.active { background: var(--brand-soft); border-color: #f6d6db; color: var(--brand-dark); font-weight: 700; }
input, select, textarea { border: 1px solid #dfe1e6; border-radius: 10px; padding: 12px 14px; width: 100%; min-height: 46px; color: var(--ink); background: white; min-width: 0; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #82858c; }
textarea,
input:not([type]),
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[name="customer"],
input[name="address"],
input[name="name"],
input[name="category"] { text-transform: uppercase; }
input[name="image"],
input[name="price"],
input[type="tel"],
input[type="password"],
input[type="date"] { text-transform: none; }
input:hover, select:hover, textarea:hover { border-color: #bfc3cc; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
.search { background: var(--soft); margin: 20px 0 0; border-color: transparent; font-size: 14px; padding-left: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.65px; }
.section-heading .muted { font-size: 13px; white-space: nowrap; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.product:hover { box-shadow: 0 8px 24px #2226300a; border-color: #d8dbe1; }
.product img { width: 100%; aspect-ratio: 1.9; object-fit: cover; display: block; background: var(--soft); }
.product-body { padding: 18px; display: flex; flex: 1; flex-direction: column; min-width: 0; }
.product h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.3px; }
.product p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; flex: 1; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.add { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #f5d6db; background: var(--brand-soft); color: var(--brand); border-radius: 12px; font-size: 25px; line-height: 1; }
.add:hover { background: var(--brand); border-color: var(--brand); color: white; }
.basket-summary { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.basket-summary h3 { margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 18px; letter-spacing: -.4px; }
.basket-summary p { font-size: 14px; line-height: 1.65; }
.basket-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.basket-line > span { min-width: 0; overflow-wrap: anywhere; }
.basket-line > strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.basket-line:last-child { border-bottom: 0; }
.empty-bag { text-align: center; padding: 8px 0 20px; }
.empty-bag strong { font-size: 15px; }
.bag-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); font-size: 28px; color: var(--brand); margin: 0 auto 18px; }
.empty-bag p { margin: 10px 0 0; }
.primary, .secondary { min-height: 44px; border: 1px solid transparent; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 650; line-height: 1.5; }
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); }
.secondary { border-color: #dfe1e6; background: white; color: #4c5059; }
.secondary:hover { background: var(--soft); border-color: #c9cdd5; }
.wide { width: 100%; }
.muted { color: var(--muted); line-height: 1.65; }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0; font-size: 16px; }
.total-row > span { color: var(--muted); font-size: 14px; }
.total-row > strong { flex-shrink: 0; font-size: 20px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.table-banner { background: #fff8ec; border: 1px solid #f3dfb9; padding: 16px 20px; border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #71521c; }
.table-banner button { margin-left: auto; }
.mobile-cart { display: none; }
/* Checkout and forms */
dialog { border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: 520px; width: calc(100% - 40px); max-height: calc(100dvh - 48px); box-shadow: 0 24px 100px #13172230; overscroll-behavior: contain; }
dialog::backdrop { background: #15182180; backdrop-filter: blur(3px); }
dialog .section-heading { margin: 0 0 20px; align-items: start; }
dialog .eyebrow { margin-bottom: 6px; }
dialog .section-heading h2 { font-size: 26px; }
.icon-button { flex-shrink: 0; border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 50%; height: 44px; width: 44px; font-size: 25px; line-height: 1; }
.icon-button:hover { background: var(--soft); color: var(--ink); }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; margin: 18px 0; }
textarea { min-height: 90px; resize: vertical; }
.quantity { display: flex; flex-shrink: 0; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.quantity button { border: 1px solid var(--line); border-radius: 8px; background: white; width: 36px; height: 40px; color: var(--brand); font-size: 18px; }
#checkout > .muted { font-size: 13px; background: var(--soft); border-radius: 8px; padding: 12px 14px; }
#checkout-error, #login-error { color: #b51b2a; font-size: 14px; }
#checkout-error:empty, #login-error:empty { display: none; }
#submit-order { min-height: 48px; }
#toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #272b34; color: white; padding: 13px 20px; border-radius: 12px; box-shadow: 0 8px 28px #0002; z-index: 20; display: none; max-width: 90vw; font-size: 14px; }
/* Restaurant workspace */
.admin-heading { padding: 8px 0 4px; }
.admin-heading h1 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.9px; margin: 10px 0 0; font-weight: 700; }
.admin-nav { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); background: #fff; border-radius: 12px; margin: 24px 0 28px; }
.admin-nav button,
.admin-nav-link { min-height: 44px; border: 0; background: transparent; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 550; color: var(--muted); white-space: nowrap; text-decoration: none; }
.admin-nav button:hover,
.admin-nav-link:hover { background: var(--soft); }
.admin-nav button.active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.admin-nav button:last-child { margin-left: auto; }
.admin-topbar { gap: 18px; }
.admin-topbar .top-caption { padding-left: 18px; }
.admin-topbar .admin-nav { flex: 1; margin: 0; padding: 0; border: 0; background: transparent; }
.admin-topbar .admin-nav-main { display: flex; align-items: center; gap: 2px; }
.admin-topbar .admin-nav button,
.admin-topbar .admin-nav-link { min-height: 40px; padding: 8px 10px; font-size: 11px; }
.admin-topbar .admin-nav-icon { display: none; }
.admin-topbar .admin-logout { margin-left: auto !important; }
.store-settings { max-width: 720px; }
.store-settings form { display: grid; gap: 18px; max-width: 640px; }
.store-settings form label { margin: 0; }
.store-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store-settings-slug { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.store-settings-slug span, .store-settings-slug small { color: var(--muted); font-size: 12px; }.store-settings-slug strong { color: var(--brand); }
.admin-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.admin-toolbar .muted { margin-right: auto; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.order-card, .table-card, .metric, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.order-card h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: .2px; }
.order-card p { font-size: 14px; line-height: 1.7; margin: 18px 0; }
.order-card p strong { color: var(--ink); }
.order-card ul { padding: 14px 14px 14px 32px; background: var(--soft); border-radius: 10px; font-size: 14px; line-height: 1.8; }
.order-card .total-row { margin: 20px 0 8px; }
.order-card .total-row + .muted { font-size: 12px; margin: 0; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-actions:empty { display: none; }
.order-actions .primary { flex: 1; }
.order-card[data-status="received"] > .pill { background: #fff6e5; color: #876018; border-color: #f6e3bb; }
.order-card[data-status="preparing"] > .pill { background: #eff3ff; color: #4056a0; border-color: #dce4ff; }
.order-card[data-status="cancelled"] > .pill { background: #fff0f2; color: #ad2636; border-color: #f5d6db; }
.table-card h3 { font-size: 27px; letter-spacing: -.8px; margin: 20px 0; }
.table-card .total-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.table-card .table-link { display: block; width: fit-content; color: var(--brand-dark); margin: 18px 0; font-size: 14px; font-weight: 600; }
.table-card .table-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.table-card input { font-size: 13px; background: var(--soft); color: var(--muted); }
.table-card label { font-size: 12px; margin-bottom: 0; }
.table-card .primary { margin-top: 18px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.metric span { display: block; font-size: 13px; color: var(--muted); }
.metric strong { display: block; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-top: 14px; letter-spacing: -1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric:nth-child(2) { border-color: #f2ccd2; background: #fffafb; }
.metric:nth-child(2) strong { color: var(--brand-dark); }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.report-grid h3 { margin: 0 0 22px; font-size: 17px; letter-spacing: -.3px; }
.bar-row { font-size: 14px; margin: 20px 0; }
.bar-row > div { display: flex; justify-content: space-between; gap: 20px; }
.bar { height: 7px; background: var(--brand-soft); border-radius: 8px; margin-top: 12px; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.empty { border: 1px dashed #d7dae1; background: #fff; border-radius: 14px; text-align: center; padding: 56px 24px; color: var(--muted); font-size: 14px; grid-column: 1 / -1; }
.login { max-width: 440px; margin: 48px auto; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.login h1 { font-size: 28px; letter-spacing: -.8px; margin: 14px 0; }
.login p { font-size: 14px; }
.registration-page { min-height: calc(100dvh - 76px); display: grid; place-items: center; padding: 56px 20px 76px; background: radial-gradient(circle at 15% 10%, #fff1f1 0, transparent 38%), #f7f7f8; }
.store-registration { width: min(100%, 640px); max-width: none; margin: 0; padding: 44px 48px 48px; border-radius: 24px; }
.store-registration h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.08; margin: 14px 0 12px; letter-spacing: -1.2px; }
.store-registration > .muted { max-width: 500px; margin: 0; font-size: 15px; }
.store-registration form { display: grid; gap: 20px; margin-top: 32px; }
.store-registration label { margin: 0; gap: 9px; }
.registration-back { display: inline-block; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; margin-bottom: 28px; }
.registration-back:hover { color: var(--red); }
.registration-slug-preview { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid #f0d7db; border-radius: 14px; background: linear-gradient(135deg, #fffafa, #fff); }
.registration-slug-preview span, .registration-slug-preview small { color: var(--muted); font-size: 12px; }
.registration-slug-preview strong { color: var(--red); font-size: 20px; overflow-wrap: anywhere; }
.registration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .registration-page { padding: 28px 14px 48px; align-items: start; } .store-registration { padding: 28px 20px 30px; border-radius: 18px; } .registration-back { margin-bottom: 22px; } .store-registration form { margin-top: 26px; gap: 18px; } .registration-grid { grid-template-columns: 1fr; gap: 18px; } }
.landing-page { max-width: 1280px; padding: 0 40px 72px; }
.landing-hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: 56px; padding: 68px 0 84px; }
.landing-copy { max-width: 640px; }
.landing-copy h1 { margin: 18px 0 22px; max-width: 620px; font-size: clamp(42px, 6vw, 76px); line-height: .99; letter-spacing: -3.8px; }
.landing-copy > p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.7; margin: 0; }
.landing-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.landing-cta { display: inline-flex; align-items: center; gap: 12px; padding: 15px 18px 15px 20px; border-radius: 12px; font-size: 15px; }
.landing-cta i { font-size: 18px; }.landing-cta strong { margin-left: 8px; font-size: 20px; line-height: .7; }
.whatsapp-cta { background: #168c55; }.whatsapp-cta:hover { background: #107444; }
.landing-text-link { color: var(--ink); font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.landing-text-link:hover { color: var(--brand); border-color: var(--brand); }
.landing-proof { display: flex; gap: 26px; margin-top: 58px; color: var(--muted); font-size: 12px; }
.landing-proof span { display: grid; gap: 2px; border-left: 1px solid var(--line); padding-left: 12px; }
.landing-proof strong { color: var(--ink); font-size: 14px; }
.landing-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: #fff0f2; box-shadow: 0 0 0 32px #fff8f8; }
.phone-mockup { position: relative; width: min(320px, 76vw); padding: 9px; border: 3px solid #3c414b; border-radius: 40px; background: #111318; box-shadow: 18px 28px 60px #24262b38, inset 0 0 0 2px #08090c; transform: rotate(3deg); z-index: 1; }
.phone-mockup::before { content: ''; position: absolute; left: -6px; top: 128px; width: 3px; height: 48px; border-radius: 3px 0 0 3px; background: #4b505a; box-shadow: 0 58px 0 #4b505a; }
.phone-mockup::after { content: ''; position: absolute; left: 50%; bottom: 16px; width: 82px; height: 4px; border-radius: 10px; background: #17191e; z-index: 3; }
.phone-notch { width: 104px; height: 25px; background: #111318; border-radius: 0 0 17px 17px; position: absolute; top: 9px; left: calc(50% - 52px); z-index: 2; }
.phone-notch::after { content: ''; position: absolute; top: 8px; left: 42px; width: 20px; height: 4px; border-radius: 5px; background: #3d4149; }
.phone-screen { overflow: hidden; border-radius: 30px; background: #fff; aspect-ratio: 9 / 18.8; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mockup-header { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 17px 14px 8px; color: white; font-size: 9px; }
.mockup-header img { width: 78px; filter: brightness(0) invert(1); }
.mockup-header span { color: #92d6ad; }
.mockup-cover { height: 170px; border-radius: 20px 20px 8px 8px; background: linear-gradient(135deg, #9b4c30, #f5bd76 45%, #e8343d); }
.mockup-content { background: white; border-radius: 8px 8px 25px 25px; padding: 20px 18px 32px; }
.mockup-content small { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.mockup-content h3 { margin: 8px 0 5px; font-size: 22px; letter-spacing: -.8px; }
.mockup-content p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.mockup-content > div { display: flex; align-items: center; justify-content: space-between; }
.mockup-content strong { font-size: 18px; }
.mockup-content button { width: 34px; height: 34px; border: 0; border-radius: 10px; color: white; background: var(--brand); font-size: 22px; }
.floating-stat { position: absolute; right: 0; bottom: 82px; z-index: 2; display: grid; gap: 2px; padding: 16px 18px; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.floating-stat span, .floating-stat small { color: var(--muted); font-size: 11px; }.floating-stat strong { color: var(--green); font-size: 24px; letter-spacing: -1px; }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.landing-features > div { padding: 32px 34px 38px 0; border-right: 1px solid var(--line); }.landing-features > div:not(:first-child) { padding-left: 34px; }.landing-features > div:last-child { border-right: 0; }
.feature-number { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 1px; }.landing-features h2 { font-size: 22px; margin: 28px 0 10px; letter-spacing: -.7px; }.landing-features p { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.landing-bottom { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 82px 0 24px; }.landing-bottom h2 { max-width: 680px; margin: 12px 0 0; font-size: clamp(28px, 4vw, 48px); letter-spacing: -2px; line-height: 1.05; }.landing-bottom .primary { white-space: nowrap; }
.whatsapp-bottom { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }.whatsapp-bottom span { font-size: 12px; font-weight: 500; opacity: .85; }
@media (max-width: 800px) { .landing-page { padding-inline: 20px; }.landing-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }.landing-copy h1 { letter-spacing: -2.4px; }.landing-visual { min-height: 430px; }.landing-features { grid-template-columns: 1fr; }.landing-features > div, .landing-features > div:not(:first-child) { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }.landing-features > div:last-child { border-bottom: 0; }.landing-bottom { align-items: start; flex-direction: column; padding-top: 56px; } }
@media (max-width: 520px) { .topbar { padding-inline: 20px; }.top-caption { display: none; }.landing-copy h1 { font-size: 46px; }.landing-copy > p { font-size: 16px; }.landing-proof { margin-top: 40px; }.floating-stat { right: -4px; bottom: 50px; }.visual-glow { width: 300px; height: 300px; } }
.tracking { max-width: 640px; margin: 28px auto; }
.tracking h1 { font-size: 32px; letter-spacing: -.8px; margin: 12px 0; }
.tracking > p { font-size: 14px; }
.timeline { display: flex; gap: 8px; margin: 28px 0; }
.timeline span { height: 6px; flex: 1; background: var(--line); border-radius: 5px; }
.timeline span.done { background: var(--brand); }
.error { padding: 24px; border: 1px solid #f1c6cd; background: #fff6f7; border-radius: 12px; color: #b51b2a; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.report-period { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; background: #fff; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.report-period label { margin: 0; min-width: 150px; flex: 1; max-width: 220px; font-size: 13px; }
.report-period + .muted { font-size: 13px; margin: 14px 0 24px; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { font-size: 14px; background: #f0f2f6; color: #5f6571; border: 1px solid #e5e8ee; padding: 16px 18px; border-radius: 10px; line-height: 1.7; }
/* Tablet */
@media (max-width: 1000px) {
  .top-caption { display: none; }
  .menu-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 24px; }
  .basket-summary { padding: 20px; }
  .products { gap: 14px; }
  .product-body { padding: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile: compact menu, comfortable touch targets, full-width sheets */
@media (max-width: 760px) {
  .topbar { min-height: 66px; padding: 12px 20px; gap: 16px; }
  .brand { font-size: 30px; }
  .text-link { font-size: 13px; padding: 8px 10px; }
  main { padding: 18px 20px calc(96px + env(safe-area-inset-bottom)); }
  .breadcrumb { font-size: 12px; margin-bottom: 14px; }
  .hero { height: 176px; border-radius: 14px; }
  .hero-overlay { padding: 22px; }
  .hero h1 { font-size: 28px; letter-spacing: -.8px; margin: 10px 0 8px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
  .hero p { font-size: 13px; }
  .store-info { gap: 12px; padding: 20px 0; flex-wrap: wrap; }
  .store-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .store-info h2 { font-size: 21px; margin-bottom: 4px; }
  .store-info p { font-size: 13px; }
  .store-info .pill { margin-left: 60px; margin-top: -5px; font-size: 11px; padding: 3px 8px; }
  .menu-layout { display: block; }
  .menu-controls { gap: 4px; padding: 10px 0; margin-right: -20px; padding-right: 20px; border-bottom: 0; }
  .chip { padding: 9px 12px; font-size: 13px; }
  .search { margin-top: 6px; font-size: 16px; min-height: 46px; }
  .section-heading { margin: 22px 0 16px; gap: 8px; }
  .section-heading h2 { font-size: 20px; letter-spacing: -.5px; }
  .section-heading .muted { font-size: 12px; }
  .products { grid-template-columns: 1fr; gap: 12px; }
  .product { flex-direction: row-reverse; align-items: center; padding: 14px; gap: 14px; }
  .product img { width: 112px; height: 120px; aspect-ratio: auto; border-radius: 10px; flex-shrink: 0; }
  .product-body { padding: 0; }
  .product h3 { font-size: 16px; margin-bottom: 6px; }
  .product p { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
  .price-row { font-size: 15px; gap: 8px; }
  .add { width: 40px; height: 44px; border-radius: 10px; font-size: 23px; }
  .basket-summary { display: none; }
  .mobile-cart { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand); color: white; border: 1px solid #ffffff24; border-radius: 14px; padding: 16px 20px; box-shadow: 0 8px 28px #aa162c30; z-index: 5; font-size: 14px; font-weight: 650; min-height: 56px; }
  dialog { width: 100%; max-width: none; max-height: calc(100dvh - 20px); margin: auto 0 0; border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  dialog .section-heading h2 { font-size: 24px; }
  #cart-items .basket-line { align-items: start; }
  .quantity { gap: 8px; }
  .quantity button { width: 36px; height: 44px; }
  .table-banner { padding: 16px; gap: 10px; }
  .table-banner > span { flex-basis: 100%; }
  .table-banner button { margin-left: 0; width: 100%; }
  #toast { bottom: calc(88px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 40px); }
  .admin-heading { padding-top: 8px; }
  .admin-heading h1 { font-size: 25px; line-height: 1.25; max-width: 340px; }
  .admin-nav { gap: 2px; padding: 4px; margin: 22px 0; overflow-x: auto; scrollbar-width: thin; }
  .admin-nav button { font-size: 13px; padding: 10px 13px; }
  .admin-toolbar { gap: 10px; }
  .admin-toolbar .muted { flex-basis: calc(100% - 100px); }
  .admin-toolbar .primary { flex-grow: 1; }
  .cards, .report-grid { grid-template-columns: 1fr; gap: 16px; }
  .order-card, .table-card, .panel { padding: 20px; }
  .metrics { gap: 12px; margin: 20px 0; }
  .metric { padding: 18px 16px; }
  .metric span { font-size: 12px; }
  .metric strong { font-size: 25px; margin-top: 12px; letter-spacing: -.8px; }
  .report-period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 16px; }
  .report-period label { min-width: 0; max-width: none; }
  .report-period input { padding: 10px 8px; font-size: 14px; }
  .report-period button { padding: 10px 8px; font-size: 13px; }
  .login { margin: 20px auto; padding: 26px 22px; }
  .tracking { margin: 16px auto; }
  .tracking h1 { font-size: 28px; }
  .tracking .total-row { align-items: start; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 16px; }
  main { padding-inline: 16px; }
  .hero-overlay { padding: 18px; }
  .hero h1 { font-size: 26px; }
  .product { padding: 12px; gap: 12px; }
  .product img { width: 92px; height: 108px; }
  .metric strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* iFood-inspired storefront polish while preserving the Ped’ai identity. */
:root {
  --brand: #ea1d2c;
  --brand-dark: #c91523;
  --brand-soft: #fff1f2;
  --ink: #3e3e3e;
  --muted: #717171;
  --line: #ededed;
  --soft: #f7f7f7;
  --shadow: 0 2px 8px rgb(0 0 0 / 5%);
}
.catalog-page .topbar { min-height: 64px; padding-block: 10px; box-shadow: 0 1px 0 var(--line); border: 0; }
.catalog-page .brand { font-size: 32px; }
.catalog-page .top-caption { font-size: 13px; }
.catalog-page .text-link { color: var(--brand); border: 0; padding-inline: 8px; }
.catalog-page .text-link:hover { background: var(--brand-soft); }
.catalog-page main { max-width: 1240px; padding-top: 24px; }
.restaurant-cover { height: 184px; border-radius: 8px; }
.restaurant-cover img { object-position: center 58%; }
.restaurant-profile { padding: 0 0 30px; }
.restaurant-logo { width: 82px; height: 82px; margin: -42px 0 14px 24px; border-radius: 12px; box-shadow: 0 2px 10px rgb(0 0 0 / 12%); }
.restaurant-heading h1 { color: #292929; font-size: 27px; font-weight: 700; }
.demo-label { padding: 6px 10px; border-radius: 20px; background: #f6f6f6; color: #717171; }
.restaurant-facts { align-items: center; gap: 10px 0; margin-top: 18px; color: #717171; }
.restaurant-facts span { display: inline-flex; align-items: center; padding: 0 18px; }
.restaurant-facts span:first-child { padding-left: 0; color: #2d7a46; font-weight: 600; }
.restaurant-facts span + span { border-left: 1px solid #dedede; }
.fact-dot { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #2d9c54; box-shadow: 0 0 0 3px #e9f6ed; }
.menu-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.catalog-tools { position: sticky; top: 0; z-index: 6; padding-top: 2px; background: white; }
.search-box { display: block; position: relative; margin: 0 0 12px; }
.search-box .search { margin: 0; height: 48px; padding: 0 16px 0 46px; border: 1px solid #efefef; border-radius: 8px; background: #f7f7f7; color: #3e3e3e; }
.search-box .search:focus { border-color: #d8d8d8; background: white; box-shadow: 0 0 0 3px rgb(234 29 44 / 9%); outline: 0; }
.search-icon { position: absolute; left: 18px; top: 50%; z-index: 1; width: 15px; height: 15px; border: 2px solid #717171; border-radius: 50%; transform: translateY(-58%); }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: #717171; transform: rotate(45deg); border-radius: 2px; }
.catalog-tools .menu-controls { gap: 30px; background: white; }
.catalog-tools .chip { min-height: 46px; padding: 11px 0 10px; color: #595959; }
.catalog-tools .chip.active { color: var(--brand); }
.catalog-page .section-heading { margin: 30px 0 14px; align-items: end; }
.catalog-page .section-heading h2 { color: #292929; font-size: 22px; }
.section-subtitle { margin: 3px 0 0; color: #8a8a8a; font-size: 13px; }
.catalog-page .products { gap: 14px; }
.catalog-page .product { min-height: 154px; padding: 16px; gap: 18px; border-color: #eeeeee; border-radius: 8px; box-shadow: none; }
.catalog-page .product:hover { border-color: #dedede; box-shadow: 0 3px 12px rgb(0 0 0 / 6%); }
.catalog-page .product img { width: 124px; height: 124px; border-radius: 7px; }
.catalog-page .product h3 { color: #333; font-size: 16px; font-weight: 650; }
.catalog-page .product p { color: #717171; line-height: 1.45; }
.catalog-page .price-row { color: #333; }
.catalog-page .add { color: var(--brand); border: 1px solid #f1f1f1; background: white; box-shadow: 0 2px 7px rgb(0 0 0 / 10%); }
.catalog-page .add:hover { border-color: var(--brand); background: var(--brand); }
.catalog-page .basket-summary { top: 88px; padding: 22px; border-color: #ededed; border-radius: 8px; box-shadow: var(--shadow); }
.basket-title { padding-bottom: 17px; border-bottom: 1px solid #ededed; }
.basket-summary .basket-title h3 { margin: 0 0 3px; padding: 0; border: 0; color: #333; font-size: 18px; }
.basket-title span { color: #8a8a8a; font-size: 12px; }
.basket-summary .empty-bag { padding: 28px 0 20px; }
.basket-summary .bag-icon { width: 48px; height: 48px; border-radius: 50%; }
.basket-summary .primary { min-height: 48px; border-radius: 8px; }
.table-banner { border: 0; border-radius: 8px; background: #fff4f5; color: #4a4a4a; box-shadow: inset 0 0 0 1px #ffdadd; }
.table-banner > div:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.table-banner > div:nth-child(2) span { color: #717171; font-size: 12px; }
.table-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--brand); color: white; font-size: 14px; font-weight: 700; }
/* The checkout behaves like an app drawer on larger screens. */
#cart { width: 500px; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border: 0; border-radius: 0; box-shadow: -12px 0 40px rgb(0 0 0 / 14%); animation: cart-in .22s ease-out; }
#cart::backdrop { background: rgb(0 0 0 / 42%); backdrop-filter: none; }
@keyframes cart-in { from { transform: translateX(28px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
.checkout-header { padding: 22px 28px 16px; }
.checkout-progress { padding-inline: 28px; }
.checkout-content { padding: 26px 28px; }
.checkout-footer { padding: 16px 28px 24px; }
.checkout-progress li { border-top-width: 2px; }
.checkout-store { background: #fafafa; border: 0; border-radius: 8px; padding: 14px 16px; }
.add-more { color: var(--brand); }
.payment-note { border: 1px solid #eeeeee; background: #fafafa; }
@media (max-width: 760px) {
  .admin-topbar { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .admin-topbar .admin-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .admin-topbar .admin-nav-main { justify-content: space-between; min-width: 520px; }
  .admin-topbar .admin-nav-icon { display: grid; }
  .admin-topbar .admin-nav button { min-height: 44px; padding-inline: 8px; }
  .store-settings-grid { grid-template-columns: 1fr; }
  .catalog-page .topbar { min-height: 56px; height: 56px; }
  .catalog-page .brand { font-size: 27px; }
  .restaurant-cover { height: 110px; }
  .restaurant-logo { width: 66px; height: 66px; margin-top: -34px; margin-left: 0; border-radius: 11px; }
  .restaurant-profile { padding-bottom: 20px; }
  .restaurant-heading h1 { font-size: 23px; }
  .demo-label { padding: 4px 8px; font-size: 10px; }
  .restaurant-facts { margin-top: 14px; font-size: 12px; }
  .restaurant-facts span { padding-inline: 10px; }
  .restaurant-facts span:first-child { padding-left: 0; }
  .restaurant-facts span:nth-child(3), .restaurant-facts span:nth-child(4) { display: none; }
  .catalog-tools { top: 0; margin-inline: -16px; padding: 10px 16px 0; box-shadow: 0 3px 7px rgb(0 0 0 / 3%); }
  .search-box { margin-bottom: 4px; }
  .search-box .search { height: 44px; }
  .catalog-tools .menu-controls { margin-inline: -16px; padding-inline: 16px; gap: 26px; }
  .catalog-page .section-heading { margin: 24px 0 2px; }
  .catalog-page .section-heading h2 { font-size: 20px; }
  .section-subtitle { font-size: 12px; }
  .catalog-page .product { min-height: 0; padding: 18px 0; gap: 16px; }
  .catalog-page .product img { width: 104px; height: 104px; }
  .catalog-page .product p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mobile-cart { min-height: 54px; border: 0; border-radius: 8px; box-shadow: 0 4px 16px rgb(180 16 31 / 25%); }
  .table-banner { padding: 13px; }
  .table-banner button { width: auto; margin-left: auto; }
  #cart { width: 100%; height: 100dvh; margin: 0; animation: cart-up .2s ease-out; }
  @keyframes cart-up { from { transform: translateY(20px); opacity: .75; } to { transform: translateY(0); opacity: 1; } }
  .checkout-header { padding-inline: 20px; }
  .checkout-progress, .checkout-content, .checkout-footer { padding-inline: 20px; }
}

/* Keep overflow navigation subtle while retaining a visible scroll affordance. */
.menu-controls::-webkit-scrollbar, .admin-nav::-webkit-scrollbar { height: 3px; }
.menu-controls::-webkit-scrollbar-thumb, .admin-nav::-webkit-scrollbar-thumb { background: #d4d7de; border-radius: 4px; }

/* Storefront: restaurant-first app layout */
.catalog-page { background: #fff; }
.catalog-page .topbar { position: sticky; top: 0; z-index: 8; min-height: 72px; }
.catalog-page main { display: flex; min-height: 100dvh; flex-direction: column; padding-top: 0; }
.restaurant-cover { height: 156px; overflow: hidden; border-radius: 12px; background: var(--soft); }
.restaurant-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.restaurant-profile { padding: 22px 0 26px; position: relative; }
.restaurant-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.restaurant-heading h1 { margin: 0 0 5px; font-size: 28px; font-weight: 750; letter-spacing: -.9px; }
.restaurant-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.verified-badge,
.verified-badge::before {
  display: inline-block;
  color: var(--brand);
  line-height: 1;
}
.restaurant-heading .verified-badge,
.restaurant-heading .verified-badge::before {
  margin-left: 4px;
  font-size: .72em;
  vertical-align: .04em;
}
.basket-title .verified-badge,
.basket-title .verified-badge::before,
.checkout-store .verified-badge,
.checkout-store .verified-badge::before {
  margin-left: 3px;
  color: var(--brand);
  font-size: 12px;
  vertical-align: -.05em;
}
.store-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.store-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.store-status.open { background: #eef8f2; color: #238454; }
.store-status.closed { background: #f3f3f4; color: #696c73; }
.restaurant-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.restaurant-facts span + span { border-left: 1px solid var(--line); padding-left: 20px; }
.restaurant-facts strong { color: var(--ink); font-weight: 600; }
.restaurant-facts span > strong { margin-left: 4px; }
.restaurant-facts .rating-fact { gap: 5px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 500; }
.rating-fact i { color: #e99a12; font-size: 13px; font-style: normal; line-height: 1; }
.restaurant-facts .rating-fact strong { margin-left: 0; }
.rating-fact small { color: #74777e; font-size: 10px; font-weight: 500; }
.catalog-tools { background: #fff; }
.catalog-tools .search { margin: 0 0 12px; }
.catalog-tools .menu-controls { border-top: 0; padding: 0; gap: 24px; }
.catalog-tools .chip { padding: 12px 0; min-height: 48px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; font-size: 14px; }
.catalog-tools .chip.active { border-bottom-color: var(--brand); color: var(--brand); }
.catalog-page .section-heading { margin-top: 28px; }
.catalog-page .section-heading h2 { font-size: 21px; }
.catalog-page .product { flex-direction: row-reverse; align-items: center; padding: 16px; gap: 16px; border-radius: 10px; }
.catalog-page .product img { width: 112px; height: 128px; flex-shrink: 0; border-radius: 8px; }
.catalog-page .product-body { padding: 0; }
.catalog-page .product h3 { font-size: 16px; }
.catalog-page .product p { font-size: 13px; margin-bottom: 12px; }
.catalog-page .add { border: 0; background: #fff; box-shadow: 0 1px 5px #0002; width: 36px; height: 36px; border-radius: 50%; }
.catalog-page .add:hover { background: var(--brand); }
.catalog-page .basket-summary { top: 96px; border-radius: 12px; }
.catalog-page .empty-bag { padding: 16px 0 12px; }
.catalog-footer { margin-top: auto; padding: 34px 28px; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #fff; color: var(--ink); }
.catalog-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.catalog-footer-brand > a { color: var(--brand); font-size: 29px; font-weight: 700; letter-spacing: -1.8px; text-decoration: none; }
.catalog-footer-brand > a span:last-child { color: #f5a623; }
.catalog-footer nav { display: flex; align-items: center; gap: 28px; }
.catalog-footer nav a { color: #4c4f55; font-size: 12px; font-weight: 600; text-decoration: none; }
.catalog-footer nav a:hover { color: var(--brand); }
/* Checkout uses one scrollable step and a persistent action footer. */
#cart { padding: 0; width: 520px; max-width: calc(100% - 40px); height: 700px; max-height: calc(100dvh - 48px); overflow: hidden; border-radius: 16px; }
#checkout { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.checkout-header { display: flex; align-items: center; gap: 12px; padding: 22px 24px 16px; flex-shrink: 0; }
.checkout-header > div { flex: 1; }
.checkout-header h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.6px; }
.checkout-header h2:focus { outline: none; }
.checkout-header .icon-button { width: 36px; height: 36px; border: 0; background: transparent; }
.step-counter { font-size: 10px; color: var(--muted); letter-spacing: 1.3px; font-weight: 650; }
.checkout-progress { list-style: none; display: flex; gap: 8px; padding: 0 24px 18px; margin: 0; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.checkout-progress li { flex: 1; display: flex; align-items: center; gap: 5px; font-size: 11px; color: #92959c; border-top: 3px solid #edeef1; padding-top: 10px; }
.checkout-progress li span { font-size: 10px; }
.checkout-progress li.done { border-color: var(--brand); color: var(--brand-dark); }
.checkout-progress li[aria-current] { font-weight: 700; }
.checkout-content { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.checkout-content h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.4px; }
.checkout-content p.muted { font-size: 14px; margin: 0 0 24px; }
.checkout-content label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.checkout-content input, .checkout-content select { min-height: 50px; }
.phone-field { display: flex; align-items: stretch; border: 1px solid #dfe1e6; border-radius: 10px; background: white; overflow: hidden; }
.phone-field:focus-within { border-color: var(--brand); outline: 3px solid #e96575; outline-offset: 3px; }
.phone-field > span { display: grid; place-items: center; padding: 0 13px; background: #f4f5f7; border-right: 1px solid #dfe1e6; color: #4c5059; font-size: 15px; font-weight: 650; white-space: nowrap; }
.phone-field input { border: 0; border-radius: 0; outline: 0 !important; box-shadow: none !important; }
.checkout-store { display: flex; gap: 5px; flex-direction: column; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.checkout-store span { font-size: 12px; color: var(--muted); }
.checkout-store strong { font-size: 16px; }
.cart-product-image { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-product-name { flex: 1; font-size: 14px; }
.cart-product-name strong { display: inline-block; margin-top: 6px; font-weight: 600; }
#cart-items .basket-line { gap: 12px; padding-block: 18px; }
#cart-items .quantity { gap: 5px; }
#cart-items .quantity button { width: 30px; height: 36px; border: 0; background: var(--soft); }
.add-more { border: 0; background: transparent; color: var(--brand); font-size: 14px; font-weight: 600; padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); text-align: left; }
.checkout-footer { flex-shrink: 0; padding: 16px 24px 24px; border-top: 1px solid var(--line); background: white; box-shadow: 0 -4px 20px #00000004; }
.checkout-footer .total-row { margin: 4px 0 16px; }
.checkout-footer .total-row > span { color: var(--ink); font-size: 15px; }
.checkout-footer .total-row strong { font-size: 22px; }
.checkout-fee { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.checkout-footer .primary { min-height: 50px; border-radius: 9px; font-size: 15px; }
.fulfillment-note { padding: 16px; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; font-size: 14px; color: #52565f; margin-top: 24px; }
.location-button {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid #f2cbd0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.location-button i,
.location-button i::before {
  display: block;
  color: currentColor;
  font-size: 14px;
  line-height: 1;
}
.location-button:hover:not(:disabled) { border-color: #edb3bb; background: #fff0f2; color: var(--brand-dark); }
.location-button:disabled { cursor: wait; opacity: .75; }
#location-help { display: block; margin-top: 7px; color: #8f9299; font-size: 10px; font-weight: 400; }
.confirmation-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.confirmation-intro-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); font-size: 21px; }
.confirmation-intro-icon i { display: flex; }
.confirmation-intro h3 { font-size: 18px; }
.checkout-content .confirmation-intro p.muted { margin: 0; font-size: 13px; line-height: 1.6; }
#confirmation-details { display: grid; gap: 12px; }
.confirmation-block { border: 0; border-bottom: 1px solid #e5e6e9; border-radius: 0; padding: 0 0 18px; background: transparent; min-width: 0; }
.confirmation-block + .confirmation-block { padding-top: 18px; }
.confirmation-block:last-child { border-bottom: 0; padding-bottom: 0; }
.confirmation-block > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.confirmation-block button { color: var(--brand); padding: 4px 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; min-height: 28px; }
.confirmation-block button:hover { color: var(--brand-dark); background: transparent; }
.confirmation-block button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.confirmation-block p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 10px 0 0; overflow-wrap: anywhere; }
.confirmation-block p.confirmation-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px dashed #e5e6e9; padding-top: 12px; margin-top: 12px; }
.confirmation-product { display: flex; align-items: flex-start; gap: 10px; min-width: 0; color: var(--ink); }
.confirmation-product > span { min-width: 0; }
.confirmation-quantity { display: grid; place-items: center; flex-shrink: 0; min-width: 28px; height: 27px; padding: 0 5px; border-radius: 7px; background: #f5f5f7; color: #62626e; font-size: 12px; }
.confirmation-item strong { white-space: nowrap; color: var(--ink); font-weight: 600; }
.payment-note { border-top: 1px solid #e5e6e9; border-bottom: 1px solid #e5e6e9; padding: 16px 0; margin-top: 22px; font-size: 13px; }
.payment-note strong { display: block; margin-bottom: 6px; }
.payment-note span { color: var(--muted); line-height: 1.6; }
@media (max-width: 380px) {
  .confirmation-block { padding: 12px; }
  .confirmation-intro { gap: 10px; }
  .confirmation-intro-icon { flex-basis: 38px; height: 38px; border-radius: 12px; }
  .confirmation-intro h3 { font-size: 16px; }
}
body:has(#cart[open]) { overflow: hidden; }
@media (max-width: 1100px) and (min-width: 761px) {
  .catalog-page .products { grid-template-columns: 1fr; }
  .catalog-page .product img { width: 128px; height: 120px; }
}

/* Refined checkout timeline */
.checkout-progress {
  gap: 0;
  padding: 6px 30px 22px;
}
.checkout-progress li {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  color: #8b8d93;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}
.checkout-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16px;
  left: calc(50% + 23px);
  width: calc(100% - 46px);
  height: 2px;
  background: #e5e6e9;
  transform-origin: left center;
  transition: background .26s ease, transform .26s ease;
}
.checkout-progress li.complete:not(:last-child)::after { background: var(--brand); animation: progress-line-fill .36s cubic-bezier(.2,.75,.24,1); }
.checkout-progress .progress-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #f1cbd0;
  border-radius: 50%;
  background: #fff5f6;
  color: var(--brand);
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.checkout-progress .progress-marker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.checkout-progress .progress-marker i,
.checkout-progress .progress-marker i::before {
  display: block;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}
.checkout-progress li.complete .progress-marker svg { animation: check-pop .24s ease-out; }
.checkout-progress li.complete .progress-marker {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.checkout-progress li.current .progress-marker {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
  transform: translateY(-1px);
}
.checkout-progress li.current .progress-marker::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgb(217 37 55 / 22%);
  border-radius: inherit;
  animation: progress-pulse 1.8s ease-out infinite;
}
.checkout-progress li.current .progress-label {
  color: var(--ink);
  font-weight: 700;
}
.checkout-progress .progress-label { white-space: nowrap; }

/* The local family ships only the two weights used by the interface. */
body, button, input, select, textarea { font-weight: 400; }
:where(h1, h2, h3, strong, b, .brand, .eyebrow, .primary, .secondary, .text-link, .chip.active, .add, .step-counter, .progress-marker) {
  font-weight: 700;
}

@media (max-width: 760px) {
  .checkout-progress { padding: 5px 18px 19px; }
  .checkout-progress li { font-size: 9px; }
  .checkout-progress .progress-marker { width: 32px; height: 32px; }
  .checkout-progress li:not(:last-child)::after { top: 15px; left: calc(50% + 21px); width: calc(100% - 42px); }
}

/* Management workspace */
.admin-page main { max-width: 1320px; }
.admin-page main { padding-top: 22px; }
.admin-nav {
  position: sticky; top: 12px; z-index: 7; display: flex; align-items: center; gap: 8px;
  margin: 0 0 30px; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; backdrop-filter: none;
}
.admin-nav-main { display: flex; min-width: 0; flex: 1; gap: 4px; }
.admin-nav-main button:last-child { margin-left: 0; }
.admin-nav button,
.admin-nav-link {
  display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 16px; border: 0; border-radius: 11px; background: transparent; color: #666a72;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.admin-nav button:hover,
.admin-nav-link:hover { background: #f6f6f7; color: var(--ink); }
.admin-nav button.active { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px #f8dadd; }
.admin-nav-icon { display: grid; width: 20px; height: 20px; place-items: center; }
.admin-nav-icon i,
.admin-nav-icon i::before { display: block; color: currentColor; font-size: 19px; line-height: 1; }
.admin-nav .admin-logout { margin-left: auto; padding-inline: 15px; color: #85888f; }
.admin-nav .admin-logout::before { content: ""; align-self: stretch; margin-left: -12px; border-left: 1px solid var(--line); }
.admin-toolbar { justify-content: space-between; margin-bottom: 18px; }
.admin-toolbar > div h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.5px; }
.admin-toolbar > div .muted { display: block; }
.refresh-button { min-width: 104px; }
.order-filters { display: flex; gap: 6px; margin: -2px 0 18px; }
.order-filters button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid #e4e5e8; border-radius: 9px; background: #fff; color: #686b72; font-size: 11px; font-weight: 600; }
.order-filters button span { display: grid; min-width: 19px; height: 19px; place-items: center; padding-inline: 5px; border-radius: 999px; background: #f0f1f3; font-size: 9px; }
.order-filters button.active { border-color: #f2c9cd; background: var(--brand-soft); color: var(--brand); }
.order-filters button.active span { background: #fff; }
.order-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.order-tile {
  width: 100%; min-width: 0; padding: 18px; border: 1px solid #e7e8eb; border-radius: 14px;
  background: #fff; color: var(--ink); text-align: left; box-shadow: 0 3px 16px rgb(28 32 40 / 4%);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.order-tile:hover { transform: translateY(-2px); border-color: #d3d5da; box-shadow: 0 8px 24px rgb(28 32 40 / 8%); }
.order-tile-top, .order-tile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-sequence { color: #858890; font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-customer { display: block; margin: 20px 0 4px; overflow: hidden; color: #292b30; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.order-summary { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-tile-bottom { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eeeeef; }
.order-tile-bottom strong { font-size: 16px; }
.order-tile-bottom time { color: var(--muted); font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #555962; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-badge i, .room-legend i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #9b9da3; }
.status-badge.received i { background: #e9a326; }
.status-badge.confirmed i, .status-badge.preparing i { background: #6277d8; }
.status-badge.ready i { background: #23a565; }
.status-badge.dispatched i { background: #8d64cc; }
.status-badge.occupied i { background: #e9a326; }
.status-badge.completed i, .status-badge.free i { background: #2ca66b; }
.status-badge.cancelled i, .status-badge.closing i { background: var(--brand); }
.room-toolbar { margin-bottom: 16px; }
.room-toolbar .room-legend { margin: 0; }
.room-legend { display: flex; align-items: center; gap: 0; margin: 0 0 22px; color: #777a81; font-size: 11px; }
.room-legend span { display: inline-flex; align-items: baseline; gap: 6px; min-height: 28px; padding: 0 18px; border: 0; background: transparent; white-space: nowrap; }
.room-legend span:first-child { padding-left: 0; }
.room-legend span + span { border-left: 1px solid #dfe1e5; }
.room-legend strong { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: 0; }
.room-legend small { color: #686c74; font-size: 12px; font-weight: 500; }
.room-legend span i { align-self: center; margin-right: 1px; }
.room-legend i.free { background: #2ca66b; }
.room-legend i.occupied { background: #e9a326; }
.room-legend i.closing { background: var(--brand); }
.room-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.table-tile {
  position: relative; display: flex; min-width: 0; min-height: 132px; flex-direction: column; align-items: center;
  justify-content: center; padding: 12px 8px; border: 1px solid #e7e8eb; border-radius: 13px; background: #fff; color: var(--ink);
  box-shadow: 0 3px 16px rgb(28 32 40 / 4%); transition: transform .16s, border-color .16s, box-shadow .16s;
}
.table-tile:hover { transform: translateY(-2px); border-color: #d3d5da; box-shadow: 0 8px 24px rgb(28 32 40 / 8%); }
.table-tile .table-number, .table-modal-hero .table-number { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 9px; border-radius: 50%; background: #eef8f2; color: #238454; font-size: 20px; font-weight: 700; }
.table-tile.occupied .table-number { background: #fff5e4; color: #9a6615; }
.table-tile.closing .table-number { background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 5px #fff6f7; }
.table-tile.free { border-color: #ccebd9; background: #eef8f2; }
.table-tile.occupied { border-color: #f1ddb5; background: #fff6e7; }
.table-tile.closing { border-color: #f1c7cd; background: #fff0f2; }
.table-tile.free .table-number, .table-tile.occupied .table-number, .table-tile.closing .table-number { background: rgb(255 255 255 / 82%); box-shadow: none; }
.table-tile > strong { font-size: 12px; }
.table-tile > span:not(.table-number) { margin-top: 3px; color: var(--muted); font-size: 11px; }
.table-tile > i { position: absolute; right: 9px; bottom: 7px; color: #a4a6ac; font-size: 17px; font-style: normal; }
.management-modal { width: 560px; max-width: calc(100% - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; }
.management-modal-header { display: flex; align-items: center; gap: 16px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.management-modal-header > div { flex: 1; }
.management-modal-header h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.6px; }
.management-modal-header .icon-button { width: 36px; height: 36px; border: 0; }
.management-modal-body { max-height: min(680px, calc(100dvh - 150px)); overflow-y: auto; padding: 24px 26px 26px; }
.modal-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: 11px; }
.modal-section { padding: 20px 0; border-top: 1px solid var(--line); }
.modal-section:first-of-type { border-top: 0; padding-top: 0; }
.modal-label { display: block; margin-bottom: 10px; color: #8c8f96; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.modal-section h3 { margin: 0 0 6px; font-size: 18px; }
.modal-section p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.modal-items > div { padding: 11px 0; border-bottom: 1px solid #f0f0f1; font-size: 14px; }
.modal-items > div strong { display: inline-block; min-width: 30px; }
.modal-note { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 13px 14px; border-radius: 9px; background: #fff7e8; color: #735625; font-size: 12px; }
.modal-total { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 14px; }
.modal-total strong { font-size: 21px; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; margin: 6px -26px -26px; padding: 20px 26px 24px; border-top: 1px solid var(--line); background: #fafafa; }
.modal-actions > span { color: var(--muted); font-size: 11px; }
.modal-actions > div { display: flex; gap: 8px; }
.modal-actions button { flex: 1; }
.modal-finished { margin: 10px 0 0; padding: 14px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 12px; text-align: center; }
.table-modal-hero { display: flex; align-items: center; gap: 20px; padding: 4px 0 24px; }
.table-modal-hero .table-number { width: 86px; height: 86px; flex: 0 0 86px; margin: 0; font-size: 31px; }
.table-modal-hero.occupied .table-number { background: #fff5e4; color: #9a6615; }
.table-modal-hero.closing .table-number { background: var(--brand-soft); color: var(--brand); }
.table-modal-hero p { margin: 12px 0 1px; color: var(--muted); font-size: 11px; }
.table-modal-hero > div > strong { font-size: 22px; }
.nfc-link { display: flex; gap: 8px; margin-top: 16px; }
.nfc-link input { min-width: 0; font-size: 12px; background: var(--soft); }
.modal-link { display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.danger-zone { margin-top: 6px; }
.menu-editor-list { display: flex; flex-direction: column; gap: 0; }
.menu-editor-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 124px auto; align-items: center; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid #e9eaed; border-radius: 0; background: transparent; box-shadow: none; transition: opacity .18s ease; }
.menu-editor-item:hover { box-shadow: none; transform: none; }
.menu-editor-item.unavailable { background: transparent; opacity: .68; }
.menu-editor-item > img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.menu-editor-item > img { grid-column: 1; }
.position-controls { display: grid; grid-template-columns: 38px 44px 38px; grid-template-rows: 38px; place-items: center; width: 124px; justify-self: start; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.position-controls { grid-column: 3; }
.position-controls button { display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 23px; line-height: 1; }
.position-controls button i,
.position-controls button i::before { display: block; color: var(--brand); line-height: 1; }
.position-controls button:hover:not(:disabled) { background: transparent; color: var(--brand); }
.position-controls button:disabled { color: var(--brand); opacity: .3; }
.position-controls span { display: grid; width: 44px; height: 32px; place-items: center; border: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.menu-editor-copy { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.menu-editor-copy { grid-column: 2; }
.menu-editor-copy > strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.menu-editor-meta { display: flex; min-width: 0; align-items: center; gap: 9px; color: #494d55; font-size: 12px; white-space: nowrap; }
.availability-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: #f2f3f5; color: #62666f; font-size: 9px; font-style: normal; font-weight: 800; line-height: 1; text-transform: uppercase; }
.availability-state i { width: 6px; height: 6px; border-radius: 50%; background: #999ca2; }
.availability-state.available i { background: #2ca66b; }
.menu-editor-actions { display: flex; align-items: center; gap: 8px; }
.menu-editor-actions { grid-column: 4; }
.menu-editor-actions button { min-height: 34px; padding: 7px 12px; font-size: 10px; }
.whatsapp-action-only { display: grid; min-height: 260px; place-items: center; }
.whatsapp-dispatch-button { min-height: 52px; padding-inline: 26px; border-radius: 13px; font-size: 12px; }
.realtime-alert { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgb(20 22 28 / 28%); backdrop-filter: blur(3px); }
.realtime-alert[hidden] { display: none; }
.realtime-alert-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: min(520px, 100%); padding: 20px; border: 1px solid #f3c8ce; border-radius: 18px; background: #fff; box-shadow: 0 22px 70px rgb(20 24 32 / 24%); animation: alert-pop .18s ease-out; }
.realtime-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.realtime-icon i,
.realtime-icon i::before { display: block; color: currentColor; font-size: 24px; line-height: 1; }
.realtime-alert-card strong { display: block; overflow: hidden; color: var(--ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.realtime-alert-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.realtime-alert-card .primary { min-height: 42px; padding-inline: 18px; border-radius: 12px; }
.realtime-close { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #f4f4f5; color: #70737a; font-size: 16px; }
@keyframes alert-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.product-editor { display: flex; flex-direction: column; gap: 17px; }
.product-editor label { gap: 7px; margin: 0; color: #4e5158; font-size: 11px; }
.product-editor input, .product-editor textarea { margin: 0; }
.product-editor textarea { min-height: 92px; resize: vertical; }
.product-editor-grid { display: grid; grid-template-columns: 1fr 130px; gap: 12px; }
.product-editor .availability-toggle { display: flex; align-items: center; flex-direction: row; gap: 9px; }
.product-editor .availability-toggle input { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: var(--brand); }

@media (max-width: 1080px) {
  .order-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-page main { padding: 20px 16px calc(104px + env(safe-area-inset-bottom)); }
  .admin-page .topbar { min-height: 60px; }
  .admin-nav {
    position: fixed; inset: auto 0 0; z-index: 12;
    display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: 0;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #e8e8ea;
    border-radius: 0; background: rgb(255 255 255 / 97%); box-shadow: 0 -8px 28px rgb(28 32 40 / 9%); backdrop-filter: blur(18px);
  }
  .admin-nav-main { display: contents; }
  .admin-nav button,
  .admin-nav-link {
    position: relative; min-width: 0; min-height: 59px; flex-direction: column; gap: 4px;
    padding: 7px 2px 5px; border-radius: 0; background: transparent; color: #777a81;
    font-size: 9px; line-height: 1.1;
  }
  .admin-nav button > span:not(.admin-nav-icon),
  .admin-nav-link > span:not(.admin-nav-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .admin-nav button:hover,
  .admin-nav-link:hover { background: transparent; }
  .admin-nav button.active { background: transparent; color: var(--brand); box-shadow: none; }
  .admin-nav button.active::before {
    content: ""; position: absolute; top: -5px; left: 50%; width: 30px; height: 3px;
    border-radius: 0 0 4px 4px; background: var(--brand); transform: translateX(-50%);
  }
  .admin-nav-icon { width: 23px; height: 23px; }
  .admin-nav-icon i,
  .admin-nav-icon i::before { font-size: 22px; }
  .admin-nav .admin-logout { margin: 0; padding-inline: 2px; }
  .admin-nav .admin-logout::before { display: none; }
  .admin-toolbar { align-items: flex-end; }
  .admin-toolbar > div { max-width: calc(100% - 116px); }
  .admin-toolbar > div h2 { font-size: 20px; }
  .admin-toolbar > div .muted { font-size: 11px; line-height: 1.5; }
  .order-board { grid-template-columns: 1fr; gap: 10px; }
  .order-filters { overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .order-filters::-webkit-scrollbar { display: none; }
  .order-tile { padding: 16px; }
  .order-customer { margin-top: 16px; }
  .room-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
  .room-toolbar > .room-legend { max-width: none; }
  .room-toolbar .refresh-button { min-width: 42px; width: 42px; height: 42px; padding: 0; font-size: 18px; }
  .room-toolbar .refresh-label { display: none; }
  .room-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; overflow: visible; white-space: normal; }
  .room-legend span { min-width: 0; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 5px; border-radius: 0; line-height: 1; white-space: nowrap; }
  .room-legend span:first-child { padding-left: 5px; }
  .room-legend strong { flex: 0 0 auto; font-size: 16px; line-height: 1; }
  .room-legend small { min-width: 0; overflow: hidden; font-size: 10px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  .room-legend i { width: 6px; height: 6px; flex: 0 0 6px; margin: 0; }
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .table-tile { min-height: 120px; border-radius: 12px; }
  .table-tile .table-number { width: 48px; height: 48px; font-size: 19px; }
  .menu-editor-toolbar { align-items: center; }
  .menu-editor-toolbar > div { max-width: calc(100% - 118px); }
  .menu-editor-toolbar > button { padding-inline: 12px; }
  .menu-editor-list { gap: 0; }
  .menu-editor-item { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 14px 0; align-items: center; }
  .menu-editor-item > img { width: 56px; height: 56px; border-radius: 9px; }
  .menu-editor-item > img { grid-column: 1; grid-row: 1; }
  .position-controls { grid-template-columns: 32px 34px 32px; grid-template-rows: 34px; width: 98px; }
  .position-controls { grid-column: 1; grid-row: 2; justify-self: start; }
  .position-controls button { width: 32px; height: 34px; font-size: 21px; }
  .position-controls span { width: 34px; height: 28px; font-size: 12px; }
  .menu-editor-copy > strong { font-size: 13px; }
  .menu-editor-copy { grid-column: 2; grid-row: 1; }
  .menu-editor-meta { gap: 6px; font-size: 10px; }
  .availability-state { padding: 3px 6px; font-size: 8px; }
  .menu-editor-actions { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(2, 86px); justify-content: end; gap: 8px; }
  .menu-editor-actions button { width: 86px; min-height: 36px; padding-inline: 8px; }
  .whatsapp-action-only { min-height: 220px; }
  .whatsapp-dispatch-button { width: 100%; }
  .realtime-alert { align-items: center; padding: 18px; }
  .realtime-alert-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .realtime-icon { width: 42px; height: 42px; }
  .realtime-icon i,
  .realtime-icon i::before { font-size: 22px; }
  .realtime-alert-card strong { padding-right: 22px; font-size: 15px; }
  .realtime-alert-card .primary { grid-column: 1 / -1; width: 100%; }
  .product-editor-grid { grid-template-columns: 1fr; }
  .management-modal { width: 100%; max-width: none; max-height: calc(100dvh - 14px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .management-modal-header { padding: 20px 18px 16px; }
  .management-modal-header h2 { font-size: 21px; }
  .management-modal-body { max-height: calc(100dvh - 100px); padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
  .modal-actions { margin-inline: -18px; margin-bottom: calc(-22px - env(safe-area-inset-bottom)); padding-inline: 18px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .modal-actions > div { flex-direction: column; }
  .table-modal-hero .table-number { width: 76px; height: 76px; flex-basis: 76px; }
  .nfc-link { flex-direction: column; }
}
@media (max-width: 760px) {
  .catalog-page .topbar { min-height: 60px; height: 60px; padding: 12px 16px; }
  .catalog-page .brand { font-size: 27px; }
  .catalog-page .text-link { border: 0; padding: 8px 0 8px 12px; font-size: 12px; color: var(--muted); }
  .catalog-page main { padding: 0 16px; }
  .restaurant-cover { height: 116px; border-radius: 0; margin-inline: -16px; }
  .restaurant-profile { padding: 18px 0 22px; }
  .restaurant-heading { align-items: start; gap: 8px; }
  .restaurant-heading h1 { font-size: 24px; letter-spacing: -.6px; }
  .restaurant-heading p { font-size: 13px; }
  .store-status { flex-shrink: 0; padding: 6px 9px; font-size: 10px; }
  .restaurant-facts { gap: 8px 12px; margin-top: 14px; font-size: 12px; }
  .restaurant-facts span + span { padding-left: 12px; }
  .restaurant-facts span:last-child { display: none; }
  .catalog-tools .search { margin: 0 0 8px; font-size: 14px; min-height: 44px; }
  .catalog-tools .menu-controls { margin: 0 -16px; padding-inline: 16px; gap: 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .catalog-tools .menu-controls::-webkit-scrollbar { display: none; }
  .catalog-tools .chip { font-size: 13px; }
  .catalog-page .section-heading { margin: 24px 0 4px; }
  .catalog-page .section-heading h2 { font-size: 20px; }
  .catalog-page .products { gap: 0; }
  .catalog-page .product { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; gap: 20px; }
  .catalog-page .product:hover { box-shadow: none; }
  .catalog-page .product img { width: 104px; height: 112px; border-radius: 8px; }
  .catalog-page .product h3 { font-size: 16px; }
  .catalog-page .product p { font-size: 13px; line-height: 1.5; }
  .catalog-page .price-row { font-size: 15px; }
  .catalog-page .add { width: 36px; height: 36px; }
  .catalog-footer { margin: auto -16px 0; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); border-radius: 0; background: #fff; }
  .catalog-page:has(.mobile-cart:not([hidden])) .catalog-footer { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .catalog-footer-main { flex-direction: column; gap: 22px; }
  .catalog-footer-brand > a { font-size: 27px; }
  .catalog-footer nav { width: 100%; justify-content: space-between; gap: 16px; padding-top: 0; }
  .mobile-cart { left: 16px; right: 16px; border-radius: 10px; }
  #cart { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .checkout-header { padding: max(16px, env(safe-area-inset-top)) 16px 16px; }
  .checkout-header h2 { font-size: 20px; }
  .checkout-progress { padding: 0 20px 16px; gap: 8px; }
  .checkout-content { padding: 22px 20px; }
  .checkout-footer { padding: 14px 20px max(20px, env(safe-area-inset-bottom)); }
  .checkout-footer .total-row { margin-bottom: 14px; }
  .checkout-progress li { font-size: 10px; }
  .cart-product-image { width: 40px; height: 44px; }
  #cart-items .basket-line { gap: 10px; }
}

/* Operational notifications */
.whatsapp-toolbar { align-items: flex-end; }
.whatsapp-toolbar > div:first-child h2 { margin-bottom: 7px; }
.toolbar-actions { display: flex; gap: 8px; }
.integration-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.integration-state i { width: 7px; height: 7px; border-radius: 50%; background: #e5a326; }
.integration-state.connected i { background: #27a568; }
.notification-panel { max-width: 820px; padding: 0; overflow: hidden; }
.notification-panel > header { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.notification-panel > header h3 { margin: 0 0 3px; font-size: 16px; }
.notification-panel > header span { color: var(--muted); font-size: 11px; }
.notification-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid #f0f0f1; }
.notification-row:last-child { border-bottom: 0; }
.notification-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eef8f2; color: #27875a; font-size: 11px; font-weight: 700; }
.notification-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.notification-row > span:nth-child(2) strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.notification-row > span:nth-child(2) small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.notification-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.notification-status i { width: 7px; height: 7px; border-radius: 50%; background: #e5a326; }
.notification-status.sent i { background: #27a568; }
.notification-status.review i { background: var(--brand); }
.notification-empty { display: flex; min-height: 210px; align-items: center; justify-content: center; flex-direction: column; padding: 32px; text-align: center; }
.notification-empty > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border-radius: 50%; background: #eef8f2; color: #27875a; font-weight: 700; }
.notification-empty strong { font-size: 14px; }
.notification-empty p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

/* Compact app toast */
#toast {
  display: flex; visibility: hidden; align-items: center; gap: 10px; min-width: 0; max-width: calc(100vw - 32px);
  bottom: 24px; padding: 9px 14px 9px 9px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 10px;
  background: #27282c; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); opacity: 0;
  transform: translate(-50%, 12px); pointer-events: none; font-size: 12px;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
#toast.show { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.toast-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #2ea76c; font-size: 12px; font-weight: 700; }
#toast.show { animation: toast-enter .28s cubic-bezier(.18,.85,.25,1); }
#toast.show .toast-icon { animation: toast-icon-pop .32s ease-out .04s both; }
#toast.error .toast-icon { background: var(--brand); }

@media (max-width: 760px) {
  .whatsapp-toolbar { display: block; }
  .whatsapp-toolbar > div { max-width: none; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .notification-panel { padding: 0; }
  .notification-panel > header { padding: 17px 16px; }
  .notification-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 13px 16px; }
  #toast { bottom: calc(82px + env(safe-area-inset-bottom)); width: max-content; }
}

/* Cart information hierarchy */
.basket-summary-line { gap: 12px; padding-block: 12px; }
.basket-summary-line > span { display: flex; min-width: 0; align-items: baseline; gap: 7px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.basket-summary-line small { color: var(--brand); font-size: 10px; font-weight: 700; }
.basket-summary-line > strong { font-size: 12px; white-space: nowrap; }
.basket-summary-line + .total-row { margin-top: 17px; }
.basket-summary .total-row { margin-bottom: 18px; }
.basket-summary .primary { border-radius: 11px; }
.basket-summary.cart-bump { animation: cart-panel-bump .36s ease-out; }
.mobile-cart.cart-bump { animation: mobile-cart-bump .4s cubic-bezier(.18,.85,.25,1); }
.checkout-store { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 0 20px; border-bottom: 1px solid var(--line); background: transparent; }
.checkout-store-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.checkout-store-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.checkout-store > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.checkout-store > div > span { color: var(--muted); font-size: 10px; }
.checkout-store > div > strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
#cart-items { display: flex; flex-direction: column; }
.cart-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: start; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item .cart-product-image { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; }
#cart-items .cart-item .cart-product-name { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding-top: 1px; font-size: 13px; line-height: 1.35; }
.cart-item .cart-product-name strong { overflow: hidden; margin: 0; color: var(--ink); font-size: 16px; font-style: normal; font-weight: 700; line-height: 1.22; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .cart-product-name small { color: #777b83; font-size: 12px; font-style: normal; line-height: 1.15; }
.cart-item-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 13px; padding-top: 2px; }
.cart-line-total { color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
#cart-items .cart-item .quantity { display: inline-flex; width: fit-content; margin: 0; gap: 3px; padding: 2px; border-radius: 999px; background: #fff1f3; }
#cart-items .cart-item .quantity button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: none; font-size: 14px; line-height: 1; }
#cart-items .cart-item .quantity span { display: grid; min-width: 21px; place-items: center; color: var(--brand); font-size: 11px; font-weight: 700; text-align: center; }
#cart-items .cart-item .cart-product-name em { display: -webkit-box; max-width: 100%; overflow: hidden; margin-top: 0; padding: 0; color: #5f636b; font-size: 12px; font-style: italic !important; font-family: inherit; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.add-more { display: flex; align-items: center; gap: 9px; padding: 14px 0 20px; border-bottom: 0; font-size: 12px; font-weight: 700; }
.add-more::before { content: "+"; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #f2cfd4; border-radius: 50%; background: var(--brand-soft); font-size: 16px; line-height: 1; }
.checkout-fee:empty { display: none; }
#submit-order { display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; }
#submit-order::after { content: "→"; font-size: 18px; font-weight: 400; line-height: 1; }
#submit-order:disabled::after { opacity: .5; }

@media (max-width: 760px) {
  .cart-item { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; padding: 16px 0; }
  .cart-item .cart-product-image { width: 50px; height: 50px; }
  .cart-line-total { font-size: 12px; }
  .cart-item-actions { gap: 12px; }
  .cart-item .cart-product-name strong { font-size: 15px; }
  #cart-items .cart-item .quantity button { width: 24px; height: 24px; }
  .add-more { padding-bottom: 18px; }
}

/* Order tracking stepper */
.tracking { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); gap: 18px; max-width: 900px; margin: 20px auto; }
.tracking-header { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 6px; }
.tracking-header h1 { margin: 7px 0 0; font-size: 30px; }
.tracking-current { display: inline-flex; align-items: center; gap: 7px; padding-bottom: 5px; color: #555961; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tracking-current i { width: 8px; height: 8px; border-radius: 50%; background: #e4a329; }
.tracking-current.confirmed i, .tracking-current.preparing i { background: #6277d8; }
.tracking-current.ready i, .tracking-current.completed i { background: #2aa568; }
.tracking-current.dispatched i { background: #8d64cc; }
.tracking-current.cancelled { color: var(--brand); }
.tracking-current.cancelled i { background: var(--brand); }
.tracking-progress, .tracking-order { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.tracking-progress { padding: 26px 26px 10px; }
.vertical-stepper { display: flex; flex-direction: column; }
.tracking-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; min-height: 67px; align-items: start; }
.tracking-step:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: 0; left: 16px; width: 2px; background: #e7e8eb; transform: translateX(-50%); transform-origin: top center; transition: background .25s ease; }
.tracking-step.complete:not(:last-child)::after { background: #2aa568; animation: tracking-line-fill .45s cubic-bezier(.2,.75,.24,1); }
.tracking-indicator { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #e2e3e6; border-radius: 50%; background: #f5f5f6; color: #92959c; font-size: 11px; font-weight: 700; }
.tracking-indicator svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tracking-step.complete .tracking-indicator { border-color: #2aa568; background: #2aa568; color: #fff; }
.tracking-step.active .tracking-indicator { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.tracking-step.active .tracking-indicator::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgb(217 37 55 / 20%);
  border-radius: inherit;
  animation: progress-pulse 1.8s ease-out infinite;
}
.tracking-step > div { padding-top: 6px; }
.tracking-step > div strong { display: block; color: #73767d; font-size: 13px; }
.tracking-step.complete > div strong, .tracking-step.active > div strong { color: var(--ink); }
.tracking-step > div small { display: block; margin-top: 3px; color: var(--brand); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tracking-step.active > div small { animation: active-step-label 1.6s ease-in-out infinite; }
.tracking-spinner { animation: tracking-spin .9s linear infinite; }
.tracking-spinner circle { opacity: .35; }
@keyframes tracking-spin { to { transform: rotate(360deg); } }
.tracking-order { align-self: start; overflow: hidden; }
.tracking-side { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 12px; }
.tracking-order > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.tracking-order > header h2 { margin: 0; font-size: 16px; }
.tracking-order > header time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.tracking-items { padding: 5px 22px; }
.tracking-items > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f0f0f1; font-size: 12px; }
.tracking-items > div > span strong { display: inline-block; min-width: 28px; }
.confirmation-item small,
.modal-items small,
.tracking-items small { display: block; margin: 4px 0 0 28px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tracking-items > div > strong { white-space: nowrap; }
.tracking-total { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 20px; font-size: 13px; }
.tracking-total strong { font-size: 20px; }
.tracking-refresh { align-self: flex-end; }
.tracking-cancelled { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid #f4cbd1; border-radius: 12px; background: #fff6f7; color: var(--brand-dark); }
.tracking-cancelled strong { font-size: 14px; }
.tracking-cancelled span { font-size: 11px; }
.tracking-cancelled + .tracking-side { grid-column: 1 / -1; width: 100%; align-items: stretch; }

@media (max-width: 760px) {
  .tracking { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 4px auto; }
  .tracking-header { grid-column: 1; align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 4px; }
  .tracking-header h1 { font-size: 25px; }
  .tracking-current { padding: 0; }
  .tracking-progress { padding: 22px 20px 6px; }
  .tracking-step { min-height: 62px; }
  .tracking-order > header, .tracking-total { padding-inline: 18px; }
  .tracking-items { padding-inline: 18px; }
  .tracking-side { width: 100%; align-items: stretch; }
  .tracking-refresh { width: 100%; }
  .tracking-cancelled { grid-column: 1; }
}

/* Flat order tracking */
.tracking { display: block; max-width: 720px; margin: 26px auto; }
.tracking-header { display: flex; margin: 0 0 30px; }
.tracking-header h1 { font-size: 28px; }
.tracking-progress, .tracking-order { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tracking-progress { padding: 0; }
.vertical-stepper { max-width: 440px; }
.tracking-step { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; min-height: 56px; }
.tracking-step:not(:last-child)::after { top: 30px; left: 14px; }
.tracking-indicator { width: 30px; height: 30px; font-size: 10px; }
.tracking-indicator svg { width: 14px; height: 14px; }
.tracking-step > div { padding-top: 5px; }
.tracking-step > div strong { color: #777a81; font-size: 12px; font-weight: 400; }
.tracking-step.complete > div strong { color: #4f535a; font-weight: 400; }
.tracking-step.active > div strong { color: var(--ink); font-weight: 700; }
.tracking-step > div small { margin-top: 2px; font-size: 8px; }
.tracking-side { display: block; margin-top: 24px; }
.tracking-order { border-top: 1px solid var(--line); }
.tracking-order > header { padding: 22px 0 14px; border-bottom: 0; }
.tracking-order > header h2 { font-size: 14px; font-weight: 700; }
.tracking-order > header time { font-weight: 400; }
.tracking-items { padding: 0; }
.tracking-items > div { padding: 12px 0; font-weight: 400; }
.tracking-items > div > span strong { font-weight: 400; }
.tracking-items > div > strong { font-weight: 400; }
.tracking-total { padding: 17px 0 0; border-top: 1px solid var(--line); font-weight: 400; }
.tracking-total strong { font-size: 19px; font-weight: 700; }
.tracking-refresh { margin-top: 14px; padding: 10px 0; border: 0; background: transparent; color: var(--brand); font-size: 11px; }
.tracking-refresh:hover { border: 0; background: transparent; color: var(--brand-dark); }

@media (max-width: 760px) {
  .tracking { display: block; margin: 0 auto; }
  .tracking-header { margin-bottom: 24px; }
  .tracking-header h1 { font-size: 22px; letter-spacing: -.45px; }
  .tracking-current { font-size: 10px; }
  .vertical-stepper { max-width: none; }
  .tracking-step { grid-template-columns: 27px minmax(0, 1fr); gap: 10px; min-height: 48px; }
  .tracking-step:not(:last-child)::after { top: 27px; left: 13px; }
  .tracking-indicator { width: 27px; height: 27px; border-width: 1.5px; }
  .tracking-indicator svg { width: 13px; height: 13px; }
  .tracking-step.active .tracking-indicator { box-shadow: 0 0 0 4px var(--brand-soft); }
  .tracking-step > div { padding-top: 4px; }
  .tracking-step > div strong { font-size: 11px; }
  .tracking-side { margin-top: 18px; }
  .tracking-order > header { padding-top: 18px; }
  .tracking-order > header h2 { font-size: 13px; }
  .tracking-items > div { font-size: 11px; }
  .tracking-total { padding-top: 15px; }
  .tracking-refresh { width: auto; }
}

/* Product add action */
.catalog-page .add {
  display: inline-flex; width: auto; min-width: 72px; height: 36px; align-items: center; justify-content: center;
  padding: 0 6px; border: 0; border-radius: 0; background: transparent;
  color: var(--brand); box-shadow: none; font-size: 11px; font-weight: 700;
}
.catalog-page .add:hover { background: transparent; color: var(--brand-dark); box-shadow: none; }
.catalog-page .add:active { transform: scale(.97); }
.product-quantity { display: inline-flex; height: 36px; align-items: center; gap: 2px; border: 1px solid #ececef; border-radius: 18px; background: #fff; }
.product-quantity button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brand); font-size: 16px; }
.product-quantity button:hover { background: var(--brand-soft); }
.product-quantity span { min-width: 18px; color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; }

@media (max-width: 760px) {
  .catalog-page .add { min-width: 66px; height: 34px; font-size: 10px; }
  .product-quantity { height: 34px; }
  .product-quantity button { width: 31px; height: 32px; }
}

/* Product selection modal */
.product-trigger { width: 100%; color: var(--ink); text-align: left; cursor: pointer; }
.product-trigger .product-body { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.product-trigger .product-name { margin: 0 0 7px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.product-trigger .product-description { display: -webkit-box; overflow: hidden; margin-bottom: 13px; color: var(--muted); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-trigger .price-row { margin-top: auto; }
.product-trigger .price-row strong { color: var(--ink); font-size: 14px; }
.product-trigger .price-row small { padding: 5px 8px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: 9px; font-weight: 700; }
.product-modal { width: 520px; max-width: calc(100% - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; }
.product-modal-media { position: relative; height: 238px; background: #f3f3f3; }
.product-modal-media > img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; background: rgb(255 255 255 / 94%); box-shadow: 0 3px 12px rgb(0 0 0 / 13%); }
.product-modal-body { padding: 24px 24px 20px; }
.product-modal-category { color: var(--brand); font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.product-modal-body h2 { margin: 7px 0 8px; font-size: 23px; letter-spacing: -.55px; }
.product-modal-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-modal-price { display: block; margin-top: 18px; font-size: 17px; }
.product-modal-note { gap: 8px; margin-top: 20px; }
.product-modal-note > span { display: flex; align-items: center; justify-content: space-between; color: #5d6068; font-size: 11px; }
.product-modal-note > span small { color: #999ca2; font-size: 9px; font-weight: 400; text-transform: uppercase; letter-spacing: .6px; }
.product-modal-note textarea { min-height: 68px; padding: 12px 13px; border-color: #e8e9ec; background: #fafafa; font-size: 12px; }
.product-modal-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 24px 22px; border-top: 1px solid var(--line); background: #fff; }
.product-modal-quantity { display: flex; height: 48px; align-items: center; border: 1px solid #e4e5e8; border-radius: 12px; }
.product-modal-quantity button { display: grid; width: 42px; height: 46px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 18px; }
.product-modal-quantity span { min-width: 28px; font-size: 12px; font-weight: 700; text-align: center; }
.product-modal-submit { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; }
.product-modal-submit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-modal-submit strong { font-size: 12px; white-space: nowrap; }
.product-modal-remove { display: block; margin: -8px auto 14px; padding: 8px 12px; border: 0; background: transparent; color: var(--brand); font-size: 10px; font-weight: 700; }
body:has(#product-modal[open]) { overflow: hidden; }

/* Mobile category bar stays attached to the viewport after reaching the top. */
.catalog-tools-shell { position: relative; }
@media (max-width: 760px) {
  .catalog-tools.is-fixed { position: fixed; top: 0; z-index: 12; margin-inline: 0; }
}

@media (max-width: 760px) {
  .product-trigger .product-name { font-size: 15px; }
  .product-trigger .product-description { font-size: 12px; }
  .product-modal { width: 100%; max-width: none; max-height: calc(100dvh - 12px); margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .product-modal-media { height: min(230px, 31dvh); }
  .product-modal-body { padding: 20px 18px 17px; }
  .product-modal-body h2 { font-size: 21px; }
  .product-modal-footer { position: sticky; bottom: 0; grid-template-columns: auto minmax(0, 1fr); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
  .product-modal-quantity { height: 46px; }
  .product-modal-quantity button { width: 38px; height: 44px; }
  .product-modal-submit { min-height: 46px; padding-inline: 14px; font-size: 11px; }
}

@keyframes progress-line-fill {
  from { transform: scaleX(.25); opacity: .45; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes tracking-line-fill {
  from { transform: translateX(-50%) scaleY(.25); opacity: .45; }
  to { transform: translateX(-50%) scaleY(1); opacity: 1; }
}
@keyframes progress-pulse {
  0% { transform: scale(.78); opacity: .7; }
  70%, 100% { transform: scale(1.28); opacity: 0; }
}
@keyframes check-pop {
  0% { transform: scale(.65); opacity: .35; }
  70% { transform: scale(1.14); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes toast-enter {
  0% { opacity: 0; transform: translate(-50%, 14px) scale(.96); }
  70% { opacity: 1; transform: translate(-50%, -2px) scale(1.01); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes toast-icon-pop {
  from { transform: scale(.6) rotate(-8deg); opacity: .45; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes cart-panel-bump {
  0% { transform: translateY(0); box-shadow: var(--shadow); }
  45% { transform: translateY(-2px); box-shadow: 0 15px 34px rgb(28 32 40 / 11%); }
  100% { transform: translateY(0); box-shadow: var(--shadow); }
}
@keyframes mobile-cart-bump {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.018); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes active-step-label {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Final order flow and brand polish */
.catalog-footer-brand > a { display: inline-flex; align-items: center; width: 92px; height: 42px; }
.catalog-footer-brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.status-badge.ready,
.status-badge.confirmed { color: #555962; }
.status-badge.dispatched i { background: var(--brand); }
.status-badge.completed i { background: #2ca66b; }
.danger-button { border-color: #f0cfd4; color: var(--brand); }
.danger-button:hover { background: #fff1f3; border-color: #efb6be; color: var(--brand-dark); }
.tracking-meta,
.tracking-address,
.tracking-breakdown { border-bottom: 1px solid #f0f0f1; }
.tracking-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 0 14px; color: #5f636b; font-size: 12px; }
.tracking-meta span:first-child { color: var(--brand); font-weight: 700; }
.tracking-address { display: grid; gap: 6px; padding: 14px 0; font-size: 12px; }
.tracking-address span,
.tracking-breakdown span { color: var(--muted); }
.tracking-address strong { color: var(--ink); font-weight: 500; line-height: 1.55; }
.tracking-breakdown { padding: 4px 0; }
.tracking-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; color: #5f636b; font-size: 12px; }
.tracking-refresh { display: none !important; }
.tracking-step.complete:not(:last-child)::after { background: var(--brand); }
.tracking-step.complete .tracking-indicator { border-color: var(--brand); background: var(--brand); }
.tracking-step.active .tracking-indicator { border-color: var(--brand); background: #fff; color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
#cart-items .cart-item .quantity button { background: var(--brand) !important; color: #fff !important; }
#cart-items .cart-item .quantity span { color: var(--brand); }

@media (max-width: 760px) {
  .catalog-footer-brand > a { width: 82px; height: 38px; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; }
  .cart-item .cart-product-image { width: 56px; height: 56px; }
  .cart-item .cart-product-name strong { font-size: 17px; line-height: 1.18; }
  .cart-item .cart-product-name small,
  #cart-items .cart-item .cart-product-name em { font-size: 13px; line-height: 1.25; }
  .cart-line-total { font-size: 16px; }
  #cart-items .cart-item .quantity { gap: 4px; padding: 3px; }
  #cart-items .cart-item .quantity button { width: 28px; height: 28px; font-size: 16px; }
  #cart-items .cart-item .quantity span { min-width: 24px; font-size: 12px; }
  .tracking-meta,
  .tracking-address,
  .tracking-breakdown > div { font-size: 11px; }
}

@media (max-width: 760px) {
  .catalog-footer-main { align-items: center; gap: 16px; text-align: center; }
  .catalog-footer-brand,
  .catalog-footer-brand > a { display: flex; justify-content: center; }
  .catalog-footer-brand img { object-position: center; }
  .catalog-footer nav { justify-content: center; gap: 20px; }
  .catalog-footer nav a { line-height: 1.2; }
}

.whatsapp-order-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #168c4b; font-weight: 700; text-decoration: none; }
.whatsapp-order-link:hover { color: #0f6f3b; text-decoration: underline; }
.whatsapp-order-link i,
.whatsapp-order-link i::before { color: currentColor; font-size: 16px; line-height: 1; }

.brand-logo-link { display: inline-flex; align-items: center; width: 74px; height: 42px; padding: 0; }
.brand-logo-link img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.topbar .brand-logo-link:hover { transform: none; }

.service-section { padding-top: 2px; }
.service-card { display: grid; gap: 15px; }
.service-card h3 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.35px; line-height: 1.1; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-detail { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 12px 13px; border: 1px solid #eceef2; border-radius: 12px; background: #fafafa; text-decoration: none; }
.service-detail.full { grid-column: 1 / -1; }
.service-detail span { color: #8a8e96; font-size: 9px; font-weight: 800; letter-spacing: .7px; line-height: 1; text-transform: uppercase; }
.service-detail strong { overflow-wrap: anywhere; color: #2f3238; font-size: 13px; font-weight: 650; line-height: 1.45; }
.whatsapp-order-link { color: inherit; }
.whatsapp-order-link strong { display: inline-flex; align-items: center; gap: 6px; color: #168c4b; }
.whatsapp-order-link:hover { border-color: #bee9cd; background: #f2fbf5; text-decoration: none; }
.whatsapp-order-link i,
.whatsapp-order-link i::before { color: currentColor; font-size: 16px; line-height: 1; }

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card h3 { font-size: 20px; }
}

/* Plain hierarchy for order customer details, without cards */
.service-section { padding-top: 0; }
.service-card { display: grid; gap: 12px; }
.service-card h3 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.35px; line-height: 1.1; }
.service-grid { display: grid; gap: 8px; }
.service-detail { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; text-decoration: none; }
.service-detail.full { grid-column: auto; padding-top: 2px; }
.service-detail span { color: #8a8e96; font-size: 10px; font-weight: 750; letter-spacing: .45px; line-height: 1.45; text-transform: uppercase; }
.service-detail strong { overflow-wrap: anywhere; color: #33363d; font-size: 13px; font-weight: 550; line-height: 1.45; }
.whatsapp-order-link { color: inherit; }
.whatsapp-order-link strong { display: inline-flex; align-items: center; gap: 6px; color: #168c4b; font-weight: 700; }
.whatsapp-order-link:hover { background: transparent; text-decoration: none; }
.whatsapp-order-link:hover strong { color: #0f6f3b; text-decoration: underline; }
.whatsapp-order-link i,
.whatsapp-order-link i::before { color: currentColor; font-size: 16px; line-height: 1; }

@media (max-width: 560px) {
  .service-card h3 { font-size: 20px; }
  .service-detail { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
}

/* Stable aligned rows for customer/order service details */
.service-card { display: block; }
.service-card h3 { margin: 0 0 14px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.35px; line-height: 1.1; }
.service-grid { display: table; width: 100%; border-collapse: separate; border-spacing: 0 7px; }
.service-detail { display: table-row; padding: 0; border: 0; background: transparent; text-decoration: none; }
.service-detail span,
.service-detail strong { display: table-cell; vertical-align: top; }
.service-detail span { width: 104px; padding-right: 18px; color: #8a8e96; font-size: 10px; font-weight: 750; letter-spacing: .45px; line-height: 1.45; text-transform: uppercase; white-space: nowrap; }
.service-detail strong { color: #33363d; font-size: 13px; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.service-detail.full { display: table-row; padding: 0; }
.whatsapp-order-link strong { color: #168c4b; font-weight: 750; }
.whatsapp-order-link strong i { display: inline-block; margin-right: 6px; vertical-align: -2px; }
.whatsapp-order-link:hover strong { color: #0f6f3b; text-decoration: underline; }

@media (max-width: 560px) {
  .service-card h3 { margin-bottom: 13px; font-size: 20px; }
  .service-detail span { width: 88px; padding-right: 12px; font-size: 9px; }
  .service-detail strong { font-size: 12.5px; }
}

/* Simple customer hierarchy: close to the original layout */
.service-card { display: block; }
.service-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; }
.service-grid { display: block; width: auto; border-spacing: 0; }
.service-detail,
.service-detail.full { display: block; margin: 0; padding: 0; border: 0; background: transparent; text-decoration: none; }
.service-detail + .service-detail { margin-top: 3px; }
.service-detail span { display: none; }
.service-detail strong { display: block; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.whatsapp-order-link { width: fit-content; }
.whatsapp-order-link strong { display: inline-flex; align-items: center; gap: 6px; color: #168c4b; font-weight: 700; }
.whatsapp-order-link strong i { margin: 0; vertical-align: initial; }
.whatsapp-order-link:hover strong { color: #0f6f3b; text-decoration: underline; }
.service-detail.full strong { color: #555a64; }

@media (max-width: 560px) {
  .service-card h3 { font-size: 19px; }
  .service-detail strong { font-size: 12.5px; }
}

/* Refined order tiles with status-aware color accents */
.customer-return { max-width: 1200px; margin: 0 auto 24px; padding: 0 24px; }
.history-fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgb(234 29 44 / 28%); font-size: 22px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; animation: history-pulse 2.8s ease-in-out infinite; }
.history-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgb(234 29 44 / 34%); }
.history-fab:focus-visible { outline: 3px solid #ffb5bd; outline-offset: 4px; }
.history-fab i { display: grid; place-items: center; width: 1em; height: 1em; font-style: normal; }
.history-fab i::before { content: '◷'; display: block; font-family: Arial, sans-serif; font-size: 27px; line-height: 1; }
.history-fab i, .history-fab i::before { color: #fff !important; opacity: 1; }
.history-fab i::after { content: none; }
@keyframes history-pulse { 0%, 72%, 100% { box-shadow: 0 10px 24px rgb(234 29 44 / 28%), 0 0 0 0 rgb(234 29 44 / 0%); } 82% { box-shadow: 0 10px 24px rgb(234 29 44 / 28%), 0 0 0 7px rgb(234 29 44 / 16%); } 90% { box-shadow: 0 10px 24px rgb(234 29 44 / 28%), 0 0 0 12px rgb(234 29 44 / 0%); } }
@media (prefers-reduced-motion: reduce) { .history-fab { animation: none; } }
.pending-order { margin-top: 16px; padding: 18px; border: 1px solid #efd29d; border-radius: 14px; background: #fff9ed; }
.pending-order p { font-size: 13px; line-height: 1.6; }
#customer-welcome { margin: auto; width: calc(100% - 32px); max-width: 480px; max-height: calc(100dvh - 32px); padding: 26px; border-radius: 20px; overflow-y: auto; }
#customer-welcome.offer-mode { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
#customer-welcome.offer-mode .customer-welcome-header { display: none; }
#customer-welcome.offer-mode #customer-history { display: block; }
#customer-welcome.offer-mode .repeat-offer { margin: 0; }
.customer-welcome-header { display: flex; align-items: flex-start; gap: 14px; }
.customer-welcome-header > div { flex: 1; }
.customer-welcome-header h2 { margin: 8px 0 18px; font-size: 24px; letter-spacing: -.7px; }
#customer-welcome .muted { font-size: 14px; line-height: 1.65; }
#customer-welcome input { min-height: 50px; margin-top: 8px; }
#customer-welcome .primary { min-height: 48px; border-radius: 12px; }
.customer-privacy { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 16px 0; }
.customer-skip { display: block; margin: 14px auto 0; border: 0; background: transparent; padding: 10px; }
.customer-favorites { display: flex; flex-wrap: wrap; gap: 8px; }
.customer-favorites button { text-align: left; font-size: 12px; }
.repeat-offer { margin: 18px 0 24px; overflow: hidden; border: 1px solid #f3c7cc; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgb(234 29 44 / 10%); }
.repeat-offer-media { position: relative; height: 180px; overflow: hidden; background: #f9e8e9; }
.repeat-offer-media img { width: 100%; height: 100%; object-fit: cover; }
.repeat-offer-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgb(0 0 0 / 24%)); }
.repeat-offer-media span { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 7px 12px; border-radius: 999px; background: #fff0f2; color: var(--brand); font-size: 12px; font-weight: 800; }
.repeat-offer-body { padding: 20px; }
.repeat-offer-body h3 { margin: 6px 0 8px; color: var(--brand); font-size: 25px; letter-spacing: -.5px; }
.repeat-offer-body p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.repeat-offer-body > strong { display: block; margin-bottom: 16px; color: var(--brand); font-size: 28px; letter-spacing: -.8px; }
.repeat-offer-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 10px; }
.repeat-offer-actions button { min-height: 48px; border-radius: 12px; padding-inline: 12px; }
.customer-order { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 12px 0; }
.customer-order > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.customer-order > div > span { color: var(--muted); }
.customer-order p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.customer-order button { flex-shrink: 0; font-size: 12px; padding: 10px; }
#customer-error { color: #b51b2a; font-size: 13px; }
#customer-error:empty { display: none; }
@media (max-width: 560px) {
  #customer-welcome { padding: 20px; }
  .customer-welcome-header h2 { font-size: 21px; }
  .customer-return { padding-inline: 20px; }
  .history-fab { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .repeat-offer-media { height: 160px; }
  .repeat-offer-actions { gap: 8px; }
  .repeat-offer-actions button { font-size: 12px; }
}
.order-board { gap: 16px; }
.map-address-link, .tracking-address { cursor: pointer; text-decoration: none; }
.map-address-link:hover strong, .tracking-address:hover strong { color: var(--brand); text-decoration: underline; }
.map-address-link strong i, .tracking-address strong i { margin-left: 4px; color: var(--brand); font-size: 12px; }
.order-tile {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px 20px;
  border: 1px solid #eceef2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  box-shadow: 0 8px 24px rgb(28 32 40 / 5%);
}
.order-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #b9bcc3;
}
.order-tile:hover {
  transform: translateY(-2px);
  border-color: #dfe2e8;
  box-shadow: 0 14px 34px rgb(28 32 40 / 10%);
}
.order-tile-top { align-items: flex-start; }
.order-sequence {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #686c74;
  font-size: 10px;
  letter-spacing: .2px;
}
.order-customer {
  margin: 18px 0 5px;
  color: #23252a;
  font-size: 17px;
  letter-spacing: -.25px;
}
.order-summary { color: #737780; font-size: 12px; line-height: 1.45; }
.order-tile-bottom {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgb(34 37 44 / 7%);
}
.order-tile-bottom strong { color: #202228; font-size: 17px; letter-spacing: -.2px; }
.order-tile-bottom time { color: #8c9098; font-size: 11px; }
.order-tile .status-badge {
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f3f5;
  color: #5d616a;
  font-size: 9px;
  letter-spacing: .15px;
}
.order-tile[data-status="received"] { border-color: #f1dfba; background: linear-gradient(180deg, #fff 0%, #fffaf0 100%); }
.order-tile[data-status="received"]::before { background: #e9a326; }
.order-tile[data-status="received"] .status-badge, .order-tile[data-status="confirmed"] .status-badge { background: #fff2d6; color: #936415; }
.order-tile[data-status="preparing"], .order-tile[data-status="ready"] { border-color: #dce4ff; background: linear-gradient(180deg, #fff 0%, #f6f8ff 100%); }
.order-tile[data-status="preparing"]::before, .order-tile[data-status="ready"]::before { background: #6277d8; }
.order-tile[data-status="preparing"] .status-badge, .order-tile[data-status="ready"] .status-badge { background: #eef2ff; color: #4056a0; }
.order-tile[data-status="dispatched"] { border-color: #eadfff; background: linear-gradient(180deg, #fff 0%, #faf7ff 100%); }
.order-tile[data-status="dispatched"]::before { background: var(--brand); }
.order-tile[data-status="dispatched"] .status-badge { background: #fff0f2; color: var(--brand); }
.order-tile[data-status="completed"] { border-color: #d8eddf; background: linear-gradient(180deg, #fff 0%, #f5fbf7 100%); }
.order-tile[data-status="completed"]::before { background: #2ca66b; }
.order-tile[data-status="completed"] .status-badge { background: #e9f7ef; color: #23764d; }
.order-tile[data-status="cancelled"] { border-color: #f1d2d7; background: linear-gradient(180deg, #fff 0%, #fff6f7 100%); opacity: .78; }
.order-tile[data-status="cancelled"]::before { background: #b51b2a; }
.order-tile[data-status="cancelled"] .status-badge { background: #fff0f2; color: #ad2636; }

@media (max-width: 760px) {
  .order-board { gap: 12px; }
  .order-tile { padding: 16px 16px 15px 18px; border-radius: 16px; }
  .order-customer { margin-top: 16px; font-size: 16px; }
  .order-tile-bottom { margin-top: 15px; }
}

body:has(#customer-welcome[open]) { overflow: hidden; }

