:root {
  --bg: #f3f6f9;
  --card: #ffffff;
  --text: #10213a;
  --muted: #5c6b80;
  --surface-2: #e9eef7;
  --border: #dbe3ef;
  --row-border: #eef2f7;
  --nav-bg: #ffffff;
  --bg-grad-start: #f5f8fc;
  --bg-grad-end: #edf2f8;
  --primary: #1d6ef2;
  --danger: #d83a56;
  --warning: #e49b1f;
  --success: #1f9d63;
  --radius: 14px;
}
[data-theme="dark"] {
  --bg: #0f1624;
  --card: #1a2538;
  --text: #e7edf9;
  --muted: #9fb0ca;
  --surface-2: #27344a;
  --border: #30415b;
  --row-border: #2b3a53;
  --nav-bg: #152033;
  --bg-grad-start: #0d1421;
  --bg-grad-end: #111b2b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  color: var(--text);
}
.login-card {
  opacity: 0;
  transform: translateY(16px) scale(.988);
  filter: blur(2.5px);
  transition: opacity .62s cubic-bezier(.22,.74,.25,1), transform .62s cubic-bezier(.22,.74,.25,1), filter .62s ease;
}
.login-anim-done .login-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.login-splash {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .56s ease;
}
.login-splash.hide {
  opacity: 0;
}
.fruit-stage {
  display: grid;
  grid-template-rows: repeat(2, 68px);
  gap: 18px;
}
.fruit-item {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(0) rotate(0deg);
  transition:
    transform .74s cubic-bezier(.2,.72,.24,1),
    width .74s cubic-bezier(.2,.72,.24,1),
    height .74s cubic-bezier(.2,.72,.24,1),
    border-radius .74s ease,
    opacity .45s ease,
    box-shadow .45s ease;
}
.fruit-item::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 55%, transparent);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .25s ease .15s;
}
.fruit-emoji {
  font-size: 38px;
  line-height: 1;
  transition: opacity .34s ease, transform .34s ease;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.18));
}
.fruit-apple {
  animation: fruit-roll-left 1.05s cubic-bezier(.22,.82,.26,1) forwards;
}
.fruit-orange {
  animation: fruit-roll-right 1.08s cubic-bezier(.22,.82,.26,1) forwards;
}
@keyframes fruit-roll-left {
  0% { transform: translateX(-90px) rotate(0deg); }
  100% { transform: translateX(0) rotate(720deg); }
}
@keyframes fruit-roll-right {
  0% { transform: translateX(90px) rotate(0deg); }
  100% { transform: translateX(0) rotate(-720deg); }
}
.login-splash.phase-morph .fruit-item {
  animation: none;
  transform: translate(var(--to-x, 0px), var(--to-y, 0px));
  width: var(--to-w, 260px);
  height: var(--to-h, 48px);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.login-splash.phase-settle .fruit-item {
  animation: fruit-settle .34s ease-out;
}
.login-splash.phase-morph .fruit-item::after {
  opacity: .35;
}
.login-splash.phase-morph .fruit-emoji {
  opacity: 0;
  transform: scale(.62);
}
@keyframes fruit-settle {
  0% { transform: translate(var(--to-x, 0px), calc(var(--to-y, 0px) - 2px)) scale(1); }
  45% { transform: translate(var(--to-x, 0px), calc(var(--to-y, 0px) + 1px)) scale(0.997); }
  100% { transform: translate(var(--to-x, 0px), var(--to-y, 0px)) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .login-card {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .login-splash {
    display: none !important;
  }
}
.container { max-width: 1100px; margin: 0 auto; padding: 12px; }
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand { font-weight: 800; letter-spacing: .4px; }
.brand-short { display: none; }
.theme-short { display: none; }
.nav a { color: var(--text); text-decoration: none; margin-left: 10px; }
.notif-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.notif-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  min-height: 36px;
  min-width: 40px;
  padding: 4px 8px;
  cursor: pointer;
  position: relative;
}
.notif-icon {
  font-size: 18px;
  line-height: 1;
}
.notif-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.notif-count.is-hidden { display: none; }
.notif-panel {
  position: absolute;
  right: 0;
  top: 44px;
  width: min(96vw, 430px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,.2);
  display: none;
  z-index: 80;
}
.notif-panel.show { display: block; }
.notif-modal-panel {
  max-height: 88vh;
  overflow: auto;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
}
.notif-list {
  max-height: 360px;
  overflow: auto;
  padding: 8px;
}
.notif-modal .notif-list {
  max-height: none;
}
.notif-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--surface-2);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.notif-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .notif-panel {
    left: 0;
    right: auto;
    width: min(96vw, 420px);
  }
}
.role-nav {
  position: sticky;
  top: 52px;
  z-index: 19;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.role-nav-scroll {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.role-nav-scroll a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.role-nav-scroll a.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.admin-super-tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-right: 6px;
}
.admin-super-tab {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.admin-super-tab.is-active {
  background: var(--primary);
  color: #fff;
}
.admin-links {
  display: inline-flex;
  gap: 8px;
}
.role-nav[data-admin-area="ops"] .admin-links-admin {
  display: none;
}
.role-nav[data-admin-area="admin"] .admin-links-ops {
  display: none;
}
body.role-client .container {
  padding-bottom: 90px;
}
body.role-client .role-nav-client {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
body.role-client .role-nav-client .role-nav-scroll {
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
body.role-client .role-nav-client .role-nav-scroll a {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.kpi-grid .card {
  padding: 10px;
}
.kpi-mini {
  font-size: 20px;
  line-height: 1.1;
}
.kpi-filter-btn {
  text-align: left;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.kpi-filter-btn.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 110, 242, 0.25);
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(16, 33, 58, 0.06);
}
.kpi { font-size: 24px; font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--row-border); text-align: left; }
.table { background: var(--card); }
.badge { border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 700; color: #fff; }
.PENDING { background: var(--warning); }
.CONFIRMED { background: #2f66f3; }
.PICKING { background: #6b4de3; }
.READY { background: var(--success); }
.DELIVERED { background: #2d3748; }
.CANCELLED { background: var(--danger); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  min-height: 44px;
  padding: 9px 10px;
}
label { display: block; font-size: 13px; margin: 8px 0 4px; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reports-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.reports-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.report-row {
  justify-content: space-between;
  flex-wrap: nowrap;
}
.report-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.report-row > strong {
  white-space: nowrap;
  margin-left: 8px;
}
.inline-options {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.inline-options > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.inline-options > summary::-webkit-details-marker {
  display: none;
}
.inline-options-body {
  padding: 0 10px 10px 10px;
  min-width: 170px;
}
.order-card { border-left: 5px solid #d9e2f0; }
.dashboard-section-head {
  padding: 10px 12px;
}
.dashboard-view-tabs {
  display: inline-flex;
  gap: 6px;
}
.dashboard-view-btn {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
}
.dashboard-view-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.dashboard-pane {
  display: none;
}
.dashboard-pane.is-active {
  display: block;
}
.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.calendar-day-card {
  border: 1px solid var(--border);
}
.calendar-day-card.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(29, 110, 242, 0.2);
}
.calendar-orders-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.calendar-order-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface-2);
}
.calendar-layout-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.calendar-layout-btn {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
}
.calendar-layout-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.calendar-layout-pane {
  display: none;
}
.calendar-layout-pane.is-active {
  display: block;
}
.calendar-compact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.calendar-compact-day {
  border: 1px solid var(--border);
}
.calendar-compact-day.is-today {
  border-color: var(--primary);
}
.calendar-compact-items {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.calendar-compact-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px;
}
.calendar-compact-time {
  font-weight: 800;
  font-size: 12px;
}
.calendar-compact-client {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.calendar-timeline-item {
  border-left: 4px solid var(--primary);
}
.calendar-month-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
}
.calendar-month-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  min-width: 700px;
}
.calendar-month-head span {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
  min-width: 700px;
}
.calendar-month-cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 110px;
  padding: 6px;
  background: var(--surface-2);
}
.calendar-month-cell.is-outside {
  opacity: .45;
}
.calendar-month-cell.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(29, 110, 242, 0.35);
}
.calendar-month-day {
  font-size: 12px;
  font-weight: 800;
}
.calendar-month-items {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}
.calendar-month-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px;
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 4px;
  background: var(--card);
}
.calendar-month-time {
  font-weight: 800;
}
.calendar-month-client {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-month-more {
  font-size: 11px;
}
.product-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.product-admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.product-admin-card.product-inactive {
  opacity: .72;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.pill-ok {
  background: #daf5e9;
  color: #11603d;
}
.pill-off {
  background: #f2e8eb;
  color: #7a3140;
}
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}
.modal.is-open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 28, 0.58);
}
.modal-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90vh;
  overflow: auto;
  background: var(--card);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 14px;
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .pill-ok {
  background: #1e3f33;
  color: #9be3bf;
}
[data-theme="dark"] .pill-off {
  background: #4a2a33;
  color: #f2b7c7;
}
.fixed-bottom {
  position: sticky;
  bottom: 8px;
  background: var(--card);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--border);
}
body.role-client .fixed-bottom {
  bottom: calc(56px + env(safe-area-inset-bottom));
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}
.cart-mini-note {
  font-size: 11px;
  line-height: 1.2;
  opacity: .9;
}
.quick-print-bar {
  position: sticky;
  top: 104px;
  z-index: 17;
  border: 1px solid var(--border);
}
.alert {
  padding: 10px;
  border-radius: 10px;
  background: #ffeff3;
  color: #9f1f3c;
  margin: 8px 0;
}
.alert-info {
  background: #eaf2ff;
  color: #1d4c96;
}
[data-theme="dark"] .alert-info {
  background: #1e2e4a;
  color: #c3d9ff;
}
.mobile-tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  display: flex;
  border-top: 1px solid var(--border);
}
.mobile-tabs a {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  color: #233047;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.spacer-bottom { height: 64px; }
.toast-container {
  position: fixed;
  right: 12px;
  bottom: 78px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 220px;
  max-width: min(88vw, 360px);
  background: #1d2b43;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s ease;
}
@media (max-width: 700px) {
  body.role-client .nav {
    position: static;
  }
  body.role-client .container {
    padding-bottom: 12px;
  }
  body.role-client .role-nav-client {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 19;
    border-top: 0;
    border-bottom: 1px solid var(--border);
  }
  body.role-client .fixed-bottom {
    bottom: 8px;
  }
  .nav {
    padding: 8px 10px;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .brand {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
  }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .nav-left {
    gap: 6px;
    min-width: 0;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .nav-actions .muted {
    display: none;
  }
  .nav-actions a {
    margin-left: 0;
    font-size: 12px;
    white-space: nowrap;
  }
  .theme-full { display: none; }
  .theme-short { display: inline; }
  #theme-toggle {
    min-height: 34px;
    padding: 6px 8px !important;
    font-size: 12px;
    white-space: nowrap;
  }
  body.role-client .catalog-search-wrap {
    top: 0;
    z-index: 22;
  }
  .admin-super-tabs {
    margin-right: 0;
  }
  .admin-super-tab {
    padding: 7px 10px;
    font-size: 11px;
  }
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
[data-theme="dark"] .toast {
  background: #304462;
}
@media (min-width: 900px) {
  .reports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body.role-client .container {
    padding-bottom: 12px;
  }
  body.role-client .role-nav-client {
    position: sticky;
    top: 56px;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 19;
    border-top: 0;
    border-bottom: 1px solid var(--border);
  }
  body.role-client .role-nav-client .role-nav-scroll {
    padding-bottom: 8px;
  }
  body.role-client .fixed-bottom {
    bottom: 8px;
  }
  .mobile-tabs { position: static; border: 0; background: transparent; }
  .mobile-tabs a { max-width: 160px; background: var(--surface-2); margin-right: 8px; border-radius: 10px; }
  .spacer-bottom { height: 0; }
  .role-nav {
    top: 56px;
  }
  .product-admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .dashboard-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-compact-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-layout-tabs {
    margin-left: auto;
  }
  .calendar-month-cell {
    min-height: 128px;
  }
  .modal-panel {
    width: min(900px, 94vw);
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    border: 1px solid var(--border);
  }
  .toast-container {
    bottom: 14px;
  }
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.products-loading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.products-real-list.is-loading {
  display: none;
}
.skeleton-card {
  padding: 14px;
  border: 1px solid var(--border);
}
.skeleton-block {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 70%, #fff 30%) 50%, var(--surface-2) 75%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.05s ease-in-out infinite;
}
.skeleton-thumb {
  width: 102px;
  height: 102px;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-line-lg {
  height: 20px;
  width: 70%;
}
.skeleton-line-sm {
  width: 45%;
}
.skeleton-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  margin-top: 10px;
}
.skeleton-btn {
  height: 44px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}
.catalog-search-wrap {
  position: sticky;
  top: 96px;
  z-index: 18;
  margin-top: 10px;
  border: 1px solid var(--border);
}
.product-card-mobile {
  padding: 14px;
  border: 1px solid var(--border);
}
.product-tap-add {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.product-head {
  display: grid;
  grid-template-columns: 102px 1fr;
  gap: 12px;
  align-items: stretch;
}
.product-main-info {
  min-width: 0;
}
.product-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.name-unit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}
.product-meta {
  margin: 3px 0 0;
}
.product-price {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1;
}
.product-thumb {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #dde6f3;
  background: #f3f7fd;
}
.product-thumb-lg {
  width: 102px;
  height: 102px;
}
.product-image-add {
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.product-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #3a527a;
}
.product-controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}
.qty-stepper {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
  align-items: center;
}
.step-btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}
.step-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.step-btn-minus {
  opacity: .45;
}
.product-card-mobile.has-qty .step-btn-minus {
  opacity: 1;
}
.qty-input {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
}
.product-note-wrap {
  margin-top: 8px;
  display: none;
}
.product-card-mobile.has-qty .product-note-wrap {
  display: block;
}
.tour-inline-btn {
  min-height: 34px;
  padding: 6px 10px;
}
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 14, 26, 0.55);
}
.tour-tooltip {
  position: absolute;
  width: min(92vw, 360px);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  padding: 12px;
}
.tour-tooltip h4 {
  margin: 0;
}
.tour-step {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}
.tour-highlight {
  position: relative;
  z-index: 130 !important;
  outline: 3px solid #2f7bff;
  outline-offset: 2px;
  border-radius: 12px;
}
body.tour-open {
  overflow: hidden;
}
@media (min-width: 900px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .products-loading {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .catalog-search-wrap {
    top: 104px;
  }
  .quick-print-bar {
    top: 112px;
  }
}
