/* ============================================================
   Pharmacy Manager — styles
   Plain CSS, no framework. Works from file://.
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #1c2434;
  --muted: #6b7686;
  --line: #e3e8f0;
  --brand: #0e7c66;        /* medical green */
  --brand-d: #0a5e4d;
  --brand-l: #e6f4f0;
  --accent: #2563eb;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 10px 18px; position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700;
}
.shop-name { font-weight: 700; font-size: 16px; }
.shop-sub { color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.net-pill {
  font-size: 12px; color: var(--ok); background: var(--ok-bg);
  padding: 4px 10px; border-radius: 20px; font-weight: 600;
}

/* ---------- Layout ---------- */
.layout { display: flex; min-height: calc(100vh - 60px); }
.sidebar {
  width: 210px; background: var(--panel); border-right: 1px solid var(--line);
  padding: 12px 10px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; color: var(--ink); cursor: pointer; text-decoration: none;
  font-weight: 500; user-select: none;
}
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--brand-l); color: var(--brand-d); font-weight: 700; }
.ni-ic { width: 20px; text-align: center; }
.nav-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px 3px; margin-top: 4px; user-select: none;
}
.nav-cat:first-child { margin-top: 0; padding-top: 4px; }
.nav-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.content { flex: 1; padding: 22px; max-width: 1200px; }

/* ---------- Typography / page headers ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; margin: 0; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- Cards & grid ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Stat tiles ---------- */
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat .value.sm { font-size: 20px; }
.stat.warn { border-left: 4px solid var(--warn); }
.stat.danger { border-left: 4px solid var(--danger); }
.stat.ok { border-left: 4px solid var(--ok); }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
input, select, textarea {
  font: inherit; width: 100%; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-l); border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: #fafbfd; position: sticky; top: 0; }
tbody tr:hover { background: #fafbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; }

/* ---------- Badges ---------- */
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; display: inline-block; }
.badge.h1 { background: var(--danger-bg); color: var(--danger); }
.badge.h { background: var(--warn-bg); color: var(--warn); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.muted { background: var(--bg); color: var(--muted); }

/* ---------- Search bar ---------- */
.searchbar { position: relative; }
.searchbar input { padding-left: 34px; }
.searchbar::before { content: "🔍"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 40px; opacity: .4; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,24,40,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border-radius: 12px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal.wide { max-width: 820px; }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(40px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; opacity: 0; transition: all .25s; z-index: 100; font-weight: 600; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }

/* ---------- Billing / POS specific ---------- */
.pos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .pos { grid-template-columns: 1fr; } }
.cart-line-empty { color: var(--muted); text-align: center; padding: 24px; }
.cart-total-row { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-total-row.grand { font-size: 20px; font-weight: 800; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; }
.pay-modes { display: flex; gap: 8px; }
.pay-mode { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.pay-mode.sel { background: var(--brand); color: #fff; border-color: var(--brand); }
.suggest { position: absolute; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); width: 100%; max-height: 260px; overflow: auto; }
.suggest-item { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.suggest-item:hover, .suggest-item.active { background: var(--brand-l); }
.suggest-item .meta { font-size: 12px; color: var(--muted); }
.qty-input { width: 64px; text-align: center; }

.expiry-near { color: var(--warn); font-weight: 700; }
.expiry-exp { color: var(--danger); font-weight: 700; }

/* ---------- Invoice print ---------- */
.invoice { background: #fff; color: #000; padding: 18px; font-size: 13px; }
.invoice h2 { margin: 0 0 2px; }
.invoice .inv-meta { display: flex; justify-content: space-between; gap: 20px; }
.invoice table { width: 100%; }
.invoice th, .invoice td { border-bottom: 1px solid #ccc; padding: 6px 8px; }
.inv-totals { width: 280px; margin-left: auto; }
.inv-totals td { border: none; padding: 3px 8px; }

@media print {
  /* Hide all UI chrome — only the invoice content prints */
  .topbar, .sidebar, .net-pill, .no-print,
  .modal-head, .modal-foot,
  #toast, #loginScreen { display: none !important; }

  /* Flatten the modal so it prints as a plain block */
  .modal-backdrop { position: static; background: none; padding: 0; display: block; }
  .modal { box-shadow: none; max-width: 100%; max-height: none; overflow: visible; border-radius: 0; }
  .modal-body { padding: 0; }

  .layout { display: block; padding: 0; margin: 0; min-height: 0; }
  body.modal-open .layout { display: none !important; }
  body.modal-open #appShell > header { display: none !important; }
  body { background: #fff; }

  /* Zero page margin removes Chrome's built-in date/URL header and footer lines.
     Inner padding on .inv-doc keeps content away from the paper edge. */
  @page { size: auto; margin: 0; }
  .inv-doc   { border: 1px solid #000; padding: 12mm 14mm; }
  .inv-thermal { padding: 5mm 3mm; }
}

/* ============================================================
   Invoice layouts (A4 tax invoice + thermal receipt)
   ============================================================ */
.inv-doc { color: #000; background: #fff; border: 1px solid #000; padding: 14px 16px; font-size: 12.5px; }
.inv-title { text-align: center; font-weight: 800; letter-spacing: 2px; font-size: 15px; border-bottom: 1px solid #000; padding-bottom: 6px; margin-bottom: 8px; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 8px; border-bottom: 1px dashed #999; }
.inv-col { flex: 1; }
.inv-col.right { flex: 0 0 auto; }
.inv-shop { font-size: 17px; font-weight: 800; }
.inv-tiny { font-size: 11px; color: #222; }
.inv-meta-tbl td { border: none; padding: 1px 6px; font-size: 12px; }
.inv-meta-tbl td:first-child { color: #555; }
.inv-party { padding: 6px 0; border-bottom: 1px solid #000; font-size: 12.5px; }
.inv-items { width: 100%; border-collapse: collapse; margin-top: 6px; }
.inv-items th, .inv-items td { border: 1px solid #bbb; padding: 4px 6px; font-size: 11.5px; }
.inv-items th { background: #f0f0f0; color: #000; text-transform: none; letter-spacing: 0; position: static; }
.inv-items .num { text-align: right; }
.inv-h1 { background: #fee2e2; color: #b91c1c; font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.inv-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; align-items: flex-start; }
.inv-left-bottom { flex: 1; }
.inv-words { font-size: 12px; margin-bottom: 8px; }
.inv-gst { width: 100%; border-collapse: collapse; }
.inv-gst th, .inv-gst td { border: 1px solid #bbb; padding: 3px 6px; font-size: 11px; background: #fff; color: #000; text-transform: none; letter-spacing: 0; position: static; }
.inv-totals2 { flex: 0 0 250px; border-collapse: collapse; }
.inv-totals2 td { border: none; padding: 3px 6px; font-size: 12.5px; }
.inv-totals2 tr.grand td { border-top: 2px solid #000; font-size: 15px; padding-top: 6px; }
.inv-note { margin-top: 8px; padding: 6px 8px; border: 1px solid #b91c1c; background: #fff5f5; font-size: 11.5px; }
.inv-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.inv-terms { font-size: 10.5px; color: #444; flex: 1; }
.inv-sign { text-align: right; font-size: 12px; }

/* Traditional distributor-style GST invoice (matches a Marg-style bill) */
.inv-trad { padding: 0; font-size: 11px; color: #000; }
.th-namah { text-align: center; font-weight: 700; font-size: 12px; padding: 3px 0; border-bottom: 1px solid #000; }
.th-toprow { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.th-head { display: flex; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.th-seller { flex: 1; padding: 6px 8px; border-right: 1px solid #000; }
.th-buyer { flex: 0 0 38%; padding: 6px 8px; }
.th-shop { font-size: 15px; font-weight: 800; }
.th-tiny { font-size: 10.5px; line-height: 1.35; }
.th-buyer-name { font-weight: 700; font-size: 12px; }
.th-meta { width: 100%; margin-top: 4px; border-collapse: collapse; }
.th-meta td { border: none; padding: 1px 0; font-size: 11px; }
.th-meta td:first-child { color: #444; width: 42%; }
.th-title { text-align: center; font-weight: 800; letter-spacing: 2px; font-size: 14px; padding: 3px 0; border-bottom: 1px solid #000; }
.th-items { width: 100%; border-collapse: collapse; }
.th-items th, .th-items td { border: 1px solid #999; padding: 3px 5px; font-size: 10.5px; }
.th-items thead th { background: #eee; color: #000; text-transform: none; letter-spacing: 0; position: static; font-weight: 700; }
.th-items .num { text-align: right; }
.th-items .th-prod { font-weight: 700; }
.th-foot { display: flex; border-left: 1px solid #000; border-right: 1px solid #000; }
.th-foot-left { flex: 1; padding: 6px 8px; border-right: 1px solid #000; }
.th-words { margin-top: 4px; font-size: 11px; }
.th-bank { margin-bottom: 4px; }
.th-rx { margin-top: 4px; border: 1px solid #b91c1c; padding: 3px 5px; font-size: 10px; }
.th-totals { flex: 0 0 240px; border-collapse: collapse; }
.th-totals td { padding: 3px 8px; font-size: 11.5px; border: none; }
.th-totals td.num { text-align: right; }
.th-totals tr td:first-child { color: #333; }
.th-totals tr.grand td { border-top: 2px solid #000; font-size: 15px; font-weight: 800; padding-top: 5px; }
.th-bottom { display: flex; justify-content: space-between; border: 1px solid #000; border-top: none; }
.th-terms { flex: 1; padding: 6px 8px; font-size: 10px; border-right: 1px solid #000; }
.th-sign { flex: 0 0 200px; padding: 6px 8px; text-align: right; font-size: 11px; }
.th-incl { font-style: italic; color: #444; }

/* Thermal 3-inch receipt */
.inv-thermal { width: 300px; margin: 0 auto; color: #000; background: #fff; font-family: "Courier New", monospace; font-size: 12px; padding: 8px; }
.tr-center { text-align: center; }
.tr-shop { font-size: 15px; font-weight: 800; }
.tr-tiny { font-size: 11px; }
.tr-hr { border-top: 1px dashed #000; margin: 5px 0; }
.tr-row { display: flex; justify-content: space-between; }
.tr-item { margin: 3px 0; }
.tr-name { font-weight: 700; }
.tr-sub { font-size: 10px; color: #444; }
.tr-grand { font-size: 14px; font-weight: 800; border-top: 1px solid #000; padding-top: 3px; margin-top: 3px; }

.flex { display: flex; }
.between { justify-content: space-between; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.right { text-align: right; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ── Pagination ── */
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.pager-pages { display: flex; gap: 2px; }
.pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; min-width: 30px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--ink);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pager-btn:hover:not(:disabled) { background: var(--line); border-color: var(--muted); }
.pager-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-nav { padding: 0 12px; color: var(--muted); }
.pager-ellipsis { padding: 0 4px; color: var(--muted); font-size: 13px; line-height: 30px; }
.pager-info { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ── Login screen ── */
#loginScreen {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.login-logo {
  width: 60px; height: 60px;
  background: var(--brand); color: #fff;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 32px; font-weight: 700;
  margin: 0 auto 18px;
}
.login-heading {
  text-align: center; margin: 0 0 6px;
  font-size: 22px; font-weight: 700;
}
.login-sub {
  text-align: center; color: var(--muted);
  font-size: 13px; margin: 0 0 28px; line-height: 1.5;
}
.login-err {
  color: var(--danger); font-size: 13px;
  min-height: 18px; margin-bottom: 10px;
  text-align: center;
}
.login-footer {
  margin-top: 18px; text-align: center;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.btn-block { width: 100%; justify-content: center; }

/* ── Topbar user indicator ── */
.topbar-user {
  font-size: 12px; color: var(--muted);
  font-weight: 600; padding: 4px 8px;
  background: var(--bg); border-radius: 20px;
}

/* ── Admin users card ── */
.admin-users-card { grid-column: 1 / -1; }

/* ── Hamburger button (hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px 6px; border-radius: 6px; flex-shrink: 0;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
}

/* ── Mobile sidebar overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 39;
  background: rgba(0,0,0,.38);
}
.sidebar-overlay.open { display: block; }

/* ── Topbar icon-mode spans (shown/hidden via media queries) ── */
.tb-short { display: none; }
.tb-full  { display: inline; }

/* ── Tablets (641–900px): hide cloud pill and user to prevent topbar overflow ── */
@media (max-width: 900px) {
  .net-pill, .topbar-user { display: none !important; }
}

/* ============================================================
   RESPONSIVE — phones and small tablets (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

  /* -- Topbar -- */
  .topbar { padding: 8px 12px; gap: 8px; }
  .shop-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .shop-sub  { display: none; }
  .net-pill, .topbar-user { display: none !important; }
  .tb-full  { display: none; }
  .tb-short { display: inline; }
  .hamburger { display: flex; }

  /* -- Sidebar becomes a slide-in drawer -- */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    height: 100vh; width: 240px; z-index: 40;
    padding-top: 56px;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  body.sidebar-open { overflow: hidden; }

  /* -- Content: reduce padding, use full width -- */
  .content { padding: 12px; }

  /* -- Grids: collapse to 1 column -- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* -- Form rows: 1 column -- */
  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  /* -- Page head: stack title and action buttons -- */
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-head .flex.gap,
  .page-head > .flex { width: 100%; flex-wrap: wrap; }
  .page-head > .flex .btn { flex: 1; justify-content: center; }

  /* -- Stat tiles: slightly smaller text -- */
  .stat .value { font-size: 22px; }

  /* -- Modals: bottom-sheet style -- */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal, .modal.wide {
    max-width: 100%; width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
  }
  .modal-foot { flex-wrap: wrap; gap: 8px; }
  .modal-foot .btn { flex: 1 1 auto; min-width: 100px; justify-content: center; }

  /* -- POS billing: stack search and cart -- */
  .pos { grid-template-columns: 1fr; }
  .pay-modes { flex-wrap: wrap; }
  .pay-mode { min-width: 80px; }

  /* -- Tables: always scroll horizontally -- */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 520px; }

  /* -- Filter + search rows: wrap -- */
  .flex.gap.wrap { gap: 8px; }

  /* -- Bigger tap targets -- */
  .btn { padding: 9px 14px; }
  .btn-sm { padding: 7px 10px; }
}

/* ============================================================
   RESPONSIVE — very small phones (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .shop-name { max-width: 100px; }
  .topbar-actions { gap: 4px; }
}
