@font-face {
  font-family: "VazirmatnLocal";
  src: url("./fonts/vazirmatn-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "VazirmatnLocal";
  src: url("./fonts/vazirmatn-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
  font-family: "VazirmatnLocal";
  src: url("./fonts/vazirmatn-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "VazirmatnLocal";
  src: url("./fonts/vazirmatn-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F;
}

@font-face {
  font-family: "VazirmatnLocal";
  src: url("./fonts/vazirmatn-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "VazirmatnLocal";
  src: url("./fonts/vazirmatn-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F;
}

:root {
  --bg: #f4f7fb;
  --bg-2: #e8eff9;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --text: #121c2f;
  --muted: #5d6d89;
  --line: #d8e0ef;
  --line-strong: #c4d0e7;
  --brand: #0f7e9a;
  --brand-2: #0d5f86;
  --brand-soft: rgba(19, 132, 174, 0.13);
  --danger: #ce4a40;
  --warning: #b37617;
  --ok: #1f9258;
  --shadow-xl: 0 24px 58px rgba(14, 33, 72, 0.12);
  --shadow-md: 0 10px 24px rgba(19, 38, 78, 0.09);
}

html[data-theme="dark"] {
  --bg: #091322;
  --bg-2: #0f1d33;
  --surface: #0f1c33;
  --surface-2: #132541;
  --text: #edf3ff;
  --muted: #9eb1d4;
  --line: #243857;
  --line-strong: #2f4a73;
  --brand: #31c9df;
  --brand-2: #0ea4c0;
  --brand-soft: rgba(38, 185, 224, 0.16);
  --danger: #ff8c83;
  --warning: #ffcb72;
  --ok: #58d48f;
  --shadow-xl: 0 28px 60px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  direction: ltr;
  text-align: left;
  color: var(--text);
  font-family: "VazirmatnLocal", Tahoma, sans-serif;
  background: radial-gradient(
      circle at 10% -5%,
      rgba(76, 145, 255, 0.12),
      transparent 42%
    ),
    radial-gradient(circle at 93% 9%, rgba(6, 173, 186, 0.12), transparent 35%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  transition:
    background 260ms ease,
    color 200ms ease;
  overflow-x: hidden;
}

.app {
  width: min(1640px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2.6vw, 34px);
  display: grid;
  gap: 16px;
}

.topbar,
.toolbar {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(12, 35, 73, 0.2);
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.brand-copy h1 {
  margin: 3px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  font-weight: 700;
  line-height: 1.2;
}

.brand-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-btn,
.ghost-btn,
.site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-decoration: none;
}

.primary-btn {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(9, 108, 147, 0.35);
}

.primary-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .ghost-btn {
  background: rgba(13, 25, 43, 0.66);
}

.site-link {
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .site-link {
  background: rgba(13, 25, 43, 0.66);
}

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

.site-link:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.row-linkable {
  cursor: pointer;
}

.row-linkable:hover td,
.row-linkable:focus td,
.row-linkable:focus-within td {
  background: rgba(15, 126, 154, 0.05);
}

.model-link,
.code-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.model-cell-stack {
  display: grid;
  gap: 6px;
}

.model-link-copy {
  display: block;
}

.model-link:hover .model-name,
.code-link:hover {
  color: var(--brand);
}

.platform-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.platform-link--bale {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
}

.platform-link--telegram {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.32);
}

.platform-link--divar {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.28);
}

.platform-link:hover,
.platform-link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  outline: none;
}

.platform-link.is-disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.toolbar--tabs {
  padding: 12px 14px;
}

.toolbar--tabs .tabs {
  width: 100%;
}

.search-wrap {
  width: 100%;
}

.sort-wrap {
  display: grid;
  gap: 6px;
}

.sort-wrap label {
  font-size: 0.8rem;
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  padding: 11px 14px;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.sort-wrap select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  padding: 11px 14px;
}

.sort-wrap select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  padding-inline: 4px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.tab .count {
  min-width: 24px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  padding: 1px 8px;
  color: var(--muted);
  background: var(--surface-2);
}

.tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.tab.active .count {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.2);
}

.board {
  display: grid;
  gap: 0;
}

.board .brand-card {
  border-radius: 0;
}

.board .brand-card + .brand-card {
  margin-top: -1px;
}

.board .brand-card:first-child {
  border-radius: 20px 20px 0 0;
}

.board .brand-card:last-child {
  border-radius: 0 0 20px 20px;
}

.brand-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 480ms cubic-bezier(0.22, 0.7, 0.27, 1) forwards;
  animation-delay: var(--stagger, 0ms);
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(120deg, #0f486c, #15446a 58%, #0d6686);
  padding: 12px 18px;
}

html[data-theme="dark"] .brand-header {
  background: linear-gradient(122deg, #15415f, #18345a 65%, #136479);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.brand-name * {
  margin: 0;
  line-height: inherit;
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  padding: 3px 10px;
}

.top-scrollbar-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  height: 10px;
  margin: 0 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.top-scrollbar-wrap::-webkit-scrollbar {
  height: 8px;
}

.top-scrollbar-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .top-scrollbar-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.top-scrollbar-wrap::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 10px;
}

.top-scrollbar-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

.top-scrollbar-content {
  height: 1px;
}

.table-wrap {
  overflow-x: auto;
  padding: 4px 20px 18px;
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.91rem;
  vertical-align: middle;
}

.col-model {
  min-width: 0;
}

.model-name {
  font-weight: 700;
  line-height: 1.45;
}

.mobile-specs {
  display: none;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-2);
}

tbody
  tr:not(.row-status-published):not(.row-status-same_day_delivery):not(
    .row-status-next_day_delivery
  ):not(.row-status-sold):not(.row-status-draft):nth-child(even)
  td {
  background: rgba(64, 115, 191, 0.04);
}

html[data-theme="dark"]
  tbody
  tr:not(.row-status-published):not(.row-status-same_day_delivery):not(
    .row-status-next_day_delivery
  ):not(.row-status-sold):not(.row-status-draft):nth-child(even)
  td {
  background: rgba(102, 165, 255, 0.06);
}

tbody
  tr:not(.row-status-published):not(.row-status-same_day_delivery):not(
    .row-status-next_day_delivery
  ):not(.row-status-sold):not(.row-status-draft):hover
  td {
  background: var(--brand-soft);
}

.row-status-published td {
  background: rgba(16, 185, 129, 0.12) !important;
}

.row-status-published:hover td {
  background: rgba(16, 185, 129, 0.18) !important;
}

.row-status-same_day_delivery td {
  background: rgba(236, 72, 153, 0.12) !important;
}

.row-status-same_day_delivery:hover td {
  background: rgba(236, 72, 153, 0.18) !important;
}

.row-status-next_day_delivery td {
  background: rgba(245, 158, 11, 0.12) !important;
}

.row-status-next_day_delivery:hover td {
  background: rgba(245, 158, 11, 0.18) !important;
}

.row-status-sold td {
  background: rgba(148, 163, 184, 0.12) !important;
}

.row-status-sold:hover td {
  background: rgba(148, 163, 184, 0.18) !important;
}

.row-status-draft td {
  background: rgba(59, 130, 246, 0.1) !important;
}

.row-status-draft:hover td {
  background: rgba(59, 130, 246, 0.16) !important;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.price {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  padding: 3px 10px;
  white-space: nowrap;
}

.status-published {
  color: var(--ok);
  border-color: rgba(39, 163, 99, 0.38);
  background: rgba(39, 163, 99, 0.13);
}

.status-same_day_delivery {
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.14);
}

.status-next_day_delivery {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.14);
}

.status-draft {
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.12);
}

.status-sold {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(148, 163, 184, 0.14);
}

.loading,
.empty {
  margin-top: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  padding: 17px;
}

.loading::after {
  content: " ...";
  animation: blink 900ms infinite;
}

.notice-board {
  padding: 24px;
  background: linear-gradient(135deg, rgba(15, 126, 154, 0.1), rgba(15, 126, 154, 0.05));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.7;
}

html[data-theme="dark"] .notice-board {
  background: linear-gradient(135deg, rgba(38, 185, 224, 0.08), rgba(38, 185, 224, 0.03));
}

.notice-board h1, .notice-board h2, .notice-board h3 {
  margin-top: 0;
  color: var(--brand);
}

.notice-board p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.987);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* Modals */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none !important; }
.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.modal-lg { max-width: 900px; }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.2rem; }
.close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
}
.checkout-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.checkout-form label { display: block; margin-bottom: 6px; font-weight: bold; font-size: 0.9em; color: var(--muted); }
.checkout-form input, .checkout-form select {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 15px; background: var(--bg); color: var(--text);
}
.cart-total { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.1em; color: var(--text); margin-top: 10px; }
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}
.cart-item { display: flex; justify-content: space-between; align-items:center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: bold; font-size: 0.9em; margin-bottom: 4px; }
.cart-item-price { color: var(--brand); font-size: 0.85em; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.add-to-cart-btn {
  background: rgba(15, 126, 154, 0.1); color: var(--brand); border: 1px solid var(--brand); border-radius: 8px; padding: 4px 10px; font-size: 0.8em; margin-right: 10px; cursor: pointer; transition: all 0.2s;
}
.add-to-cart-btn:hover { background: var(--brand); color: #fff; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: 10px; text-align: right; border-bottom: 1px solid var(--line); }
.orders-table th { font-weight: bold; color: var(--muted); }

@media (max-width: 1100px) {
  table {
    min-width: 780px;
  }

  .table-wrap {
    padding-inline: 14px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 860px) {
  .app {
    padding: 12px;
    gap: 12px;
  }

  .topbar {
    top: 4px;
    flex-direction: column;
    align-items: stretch;
    padding: 13px;
    gap: 12px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions button {
    flex: 1;
  }

  .toolbar {
    align-items: flex-start;
  }

  .meta {
    width: 100%;
  }

  .tabs {
    padding-bottom: 4px;
  }

  .brand-header {
    padding: 11px 13px;
  }

  .top-scrollbar-wrap {
    margin-inline: 14px;
  }

  .table-wrap {
    padding: 4px 14px 14px;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 720px;
    border-radius: 14px;
  }

  th,
  td {
    padding: 9px 10px;
    font-size: 0.86rem;
  }

  .price,
  .status {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .brand-card {
    border-radius: 18px;
  }

  .brand-header {
    padding: 10px 12px;
  }

  .top-scrollbar-wrap {
    margin-inline: 10px;
  }

  .table-wrap {
    padding: 4px 10px 12px;
  }

  table {
    min-width: 680px;
  }

  th,
  td {
    padding: 8px 9px;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .board {
    gap: 0;
  }

  .board .brand-card {
    border-radius: 0;
    box-shadow: none;
  }

  .board .brand-card + .brand-card {
    margin-top: -1px;
  }

  .board .brand-card:first-child {
    border-radius: 16px 16px 0 0;
  }

  .board .brand-card:last-child {
    border-radius: 0 0 16px 16px;
  }

  .top-scrollbar-wrap {
    display: none;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px 10px;
  }

  table {
    min-width: 520px;
    width: 100%;
    table-layout: fixed;
  }

  th.col-attr,
  td.col-attr {
    display: none;
  }

  thead th:first-child,
  tbody td.col-code {
    width: 40px;
    padding-inline: 4px;
  }

  thead th:nth-child(2),
  tbody td.col-model {
    width: auto;
  }

  thead th:nth-last-child(2),
  tbody td.col-price {
    width: 86px;
    padding-inline: 4px;
  }

  thead th:last-child,
  tbody td.col-status {
    width: 62px;
    padding-inline: 4px;
    text-align: center;
  }

  th,
  td {
    padding: 6px 4px;
    font-size: 0.72rem;
  }

  .model-name {
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-specs {
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.69rem;
    line-height: 1.2;
  }

  .price {
    font-size: 0.76rem;
    line-height: 1.1;
  }

  .status {
    font-size: 0.63rem;
    padding: 2px 5px;
  }
}

/* ── Print Builder Modal ── */
.print-builder {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.print-builder-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.print-builder-field input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 200ms;
}
.print-builder-field input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
}
.print-category-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.print-category-tabs .tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.print-category-tabs .tab:hover {
  border-color: var(--brand);
}
.print-category-tabs .tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.print-builder-actions-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.print-selected-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin-right: auto;
}
.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--brand);
  cursor: pointer;
  transition: background 200ms;
}
.ghost-btn:hover {
  background: var(--brand-soft);
}
.print-product-list {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.print-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 160ms;
}
.print-product-item:last-child {
  border-bottom: none;
}
.print-product-item:hover {
  background: var(--brand-soft);
}
.print-product-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.print-product-item .ppi-name {
  flex: 1;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.print-product-item .ppi-price {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.print-product-item .ppi-cat {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
