:root {
  --accent: #9e0333;
  --accent2: #c70442;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #12131a;
  --muted: #5b6072;
  --border: rgba(20, 20, 40, 0.12);
  --shadow: 0 20px 70px rgba(15, 18, 30, 0.10);
  --ok: #0f7a45;
  --warn: #b45309;
}

* { box-sizing: border-box; }

/* app.css gövde içinden yüklendiğinde html/body reset Journal header menüsünü bozar */
.lcsc-order-wrap,
.pcb-page,
.lcsc-page,
.lcsc-live-page #content {
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.pcb-page {
  width: min(1100px, calc(100% - 28px));
  margin: 18px auto 40px;
}

/* Excel BOM tablosu: dar 1100px sığmıyor */
.pcb-page[data-lcsc-page="excel"] {
  width: min(1480px, calc(100% - 28px));
}

.pcb-hero { margin: 0 0 14px; }

.pcb-hero-shell {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 8px 28px rgba(15, 18, 30, 0.06);
  overflow: hidden;
}

.pcb-page-head {
  flex: 1 1 auto;
  padding: 14px 18px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 7%, #fff) 0%, #fff 100%);
}

.pcb-page-head__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pcb-page-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.pcb-page-head__title .grad {
  color: var(--accent);
}

.pcb-page-head__sub a {
  color: var(--accent, #9e0333);
  font-weight: 700;
  text-decoration: none;
}
.pcb-page-head__sub a:hover { text-decoration: underline; }

.pcb-page-head__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 62ch;
}

.pcb-hero-meta {
  min-width: 210px;
  border-left: 1px solid var(--border);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  align-content: center;
  background: #fbfcff;
}

.pcb-hero-meta span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.pcb-hero-meta strong {
  font-size: 12.5px;
  font-weight: 800;
}

.pcb-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pcb-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.pcb-panel-title {
  font-size: 15px;
  font-weight: 900;
}

.pcb-panel-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.pcb-panel-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  border-radius: 999px;
  padding: 5px 10px;
}

.pcb-panel-content { padding: 16px; }

.page-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 14px;
  background: #f1f3f8;
  border: 1px solid var(--border);
}

.page-tab {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: #556;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-tab.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(10, 12, 20, 0.06);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6em;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--accent);
  line-height: 1.2;
}

.page-tab:not(.is-active) .tab-count {
  background: #94a3b8;
}

.tab-count[hidden] { display: none !important; }

.tab-panel[hidden] { display: none !important; }

.bom-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.bom-stat {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfe;
}

.bom-stat__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bom-stat b {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bom-stat--ok b { color: #15803d; }
.bom-stat--warn b { color: #b45309; }
.bom-stat--miss b { color: #b91c1c; }

.bom-stats[hidden] { display: none !important; }

.excel-intro {
  margin-bottom: 14px;
}

.excel-intro p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.excel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.excel-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.excel-upload {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.excel-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 28px 16px;
  border: 1.5px dashed rgba(158, 3, 51, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
  cursor: pointer;
  text-align: center;
}

/* Journal tema file input’u görünür bırakmasın */
.excel-drop input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 0 !important;
  cursor: pointer;
  font-size: 0;
  z-index: 2;
}

.lcsc-disclaimer {
  max-width: 920px;
  margin: 16px auto 8px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

.excel-drop strong {
  font-size: 14px;
  color: var(--text);
}

.excel-drop small {
  font-size: 12px;
  color: var(--muted);
}

.excel-drop.is-drag {
  border-color: var(--accent);
  background: #fff0f3;
}

.excel-drop.has-file strong {
  color: var(--accent);
}

.bom-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.bom-progress__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e8ebf2;
  overflow: hidden;
}

.bom-progress__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #d11a4a);
  transition: width .2s ease;
}

#bomProgressText {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  min-width: 64px;
  text-align: right;
}

.bom-list-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.bom-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334;
  cursor: pointer;
  user-select: none;
}

.bom-select-all input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.bom-table-scroll {
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: auto;
}

.bom-table th,
.bom-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #eef0f5;
  text-align: left;
  vertical-align: top;
}

.bom-table th {
  position: sticky;
  top: 0;
  background: #f7f8fc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  z-index: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.bom-table tr.is-miss td {
  background: #fff1f2;
}

.bom-table tr.is-warn td {
  background: #fffbeb;
}

.bom-table tr.is-exact td {
  background: #ecfdf5;
}

.bom-check-col {
  width: 34px;
  text-align: center;
}

.bom-ref {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink, #1a1f2e);
  white-space: nowrap;
}

.bom-table .bom-check {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.bom-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bom-req {
  display: grid;
  gap: 2px;
}

.bom-req b {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}

.bom-req span {
  color: var(--muted);
  font-size: 11.5px;
}

.bom-match b { color: var(--accent); }
.bom-match span { display: block; color: #445; font-size: 11.5px; }
.bom-match-model { font-weight: 800 !important; color: var(--text) !important; }
.bom-match-desc {
  color: var(--muted) !important;
  font-weight: 600 !important;
  line-height: 1.35;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bom-match-meta { color: #556 !important; font-size: 11px !important; }
.bom-match .meta-ship {
  color: #0f766e !important;
  font-weight: 800 !important;
  font-size: 11px !important;
}

.bom-pick-search {
  margin: 0 0 10px;
}

.bom-pick-hints {
  margin: 0 0 10px;
}

.bom-table .btn-sm {
  white-space: nowrap;
}

/* Journal #content table td { width:20%; min-width:200px } — widget tablosunu ezmesin */
#content .bom-table-scroll table.bom-table,
#content table.bom-table,
.lcsc-page table.bom-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
}
#content .bom-table-scroll table.bom-table td,
#content .bom-table-scroll table.bom-table th,
#content table.bom-table td,
#content table.bom-table th,
#content table.bom-table td:not(:first-of-type),
.lcsc-page table.bom-table td,
.lcsc-page table.bom-table th {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  text-align: left !important;
}
#content table.bom-table th,
.lcsc-page table.bom-table th {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

#content .bom-table td[data-label=""],
.lcsc-page .bom-table td[data-label=""] {
  width: 148px !important;
  min-width: 148px !important;
  max-width: 160px !important;
  white-space: normal;
}

.bom-qty-cell {
  display: grid;
  gap: 4px;
  min-width: 72px;
}

.bom-qty-cell input {
  width: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: #fff;
}

.bom-buy-cell {
  min-width: 110px;
  vertical-align: middle;
}

.bom-buy {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.bom-buy__unit {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.bom-buy__unit.is-deal {
  color: #15803d;
}

.bom-buy__total {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.bom-buy__cart .btn {
  width: 100%;
}

.bom-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
  width: 140px;
}

#content .lcsc-page .bom-actions .btn,
.lcsc-page .bom-actions .btn,
.pcb-page .bom-actions .btn,
.bom-actions .btn {
  width: 100% !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  padding: 7px 8px !important;
  height: auto !important;
  min-height: 32px !important;
  box-sizing: border-box !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#content .pcb-page .btn-ghost,
#content .lcsc-page .btn-ghost,
.pcb-page .btn-ghost,
.lcsc-page .btn-ghost,
.pcb-page .btn-ghost:hover,
.pcb-page .btn-ghost:focus,
.pcb-page .btn-ghost:active,
.lcsc-page .btn-ghost:hover,
.lcsc-page .btn-ghost:focus,
.lcsc-page .btn-ghost:active {
  background: #fff !important;
  color: #9e0333 !important;
  border: 1px solid rgba(158, 3, 51, 0.35) !important;
  background-image: none !important;
}

#content .pcb-page .btn-primary,
#content .lcsc-page .btn-primary,
.pcb-page .btn-primary,
.lcsc-page .btn-primary,
.pcb-page .btn-primary:hover,
.pcb-page .btn-primary:focus,
.pcb-page .btn-primary:active,
.lcsc-page .btn-primary:hover,
.lcsc-page .btn-primary:focus,
.lcsc-page .btn-primary:active {
  background: linear-gradient(180deg, #c70442 0%, #9e0333 100%) !important;
  color: #fff !important;
  border: 0 !important;
  background-color: #9e0333 !important;
}

.bom-stock-hint {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  line-height: 1.25;
  max-width: 110px;
}

.bom-want {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bom-footer {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #334;
}

.bom-footer b { color: var(--accent); }

.bom-table .muted { color: var(--muted); font-weight: 600; }

.bom-match-tag {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  padding: 1px 7px;
}

.bom-match-tag--warn {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}

.bom-match-tag--danger {
  color: #fff;
  background: #dc2626;
  border-color: #b91c1c;
}

.modal-dialog--wide {
  width: min(820px, 100%);
  max-height: min(88vh, 900px);
}

#bomPickModal .modal-dialog--wide {
  width: min(1180px, 96vw);
  max-height: min(92vh, 980px);
}

.bom-pick-body {
  display: grid;
  gap: 12px;
  max-height: min(78vh, 820px);
  overflow: auto;
}

.bom-pick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-bottom: 4px;
}

.bom-pick-list {
  gap: 10px;
}

.bom-pick-list .product-row.is-pick {
  grid-template-columns: 64px minmax(0, 1fr) minmax(132px, 168px) minmax(210px, 250px);
}

@media (max-width: 900px) {
  .bom-pick-list .product-row.is-pick {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .bom-pick-list .product-row.is-pick .row-ladder,
  .bom-pick-list .product-row.is-pick .product-side {
    grid-column: 1 / -1;
  }
}

.bom-pick-list .product-row.is-current {
  border-color: #99f6e4;
  background: #f0fdfa;
}

.bom-pick-list .product-row.is-pick .row-buy {
  grid-template-columns: 1fr;
  gap: 6px;
}

.bom-pick-list .product-row.is-pick .row-qty-note {
  font-size: 11px;
  font-weight: 700;
  color: #445;
  margin-bottom: 2px;
}

.bom-pick-list .product-row.is-pick .row-qty-note b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.row-ladder {
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 11px;
  min-width: 0;
}

.row-ladder__title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  margin-bottom: 2px;
}

.row-ladder__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  color: #445;
  font-variant-numeric: tabular-nums;
}

.row-ladder__row b {
  color: var(--text);
  font-weight: 800;
}

.row-ladder__row.is-active {
  color: #047857;
}

.row-ladder__row.is-active b {
  color: #15803d;
}

.bom-pick-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  text-align: center;
  border: 1px solid #99f6e4;
  border-radius: 9px;
  background: #ecfdf5;
  padding: 0 10px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  color: var(--text);
  outline: none;
}

.search-row input:focus {
  border-color: color-mix(in srgb, var(--accent) 45%, #ccc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.lcsc-order-wrap .btn,
.pcb-page .btn,
.lcsc-page .btn,
.lcsc-overlay .btn,
.board-modal .btn,
.lcsc-live-page #content .btn,
.modal-dialog .btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.lcsc-order-wrap .btn:active,
.pcb-page .btn:active,
.lcsc-page .btn:active,
.lcsc-overlay .btn:active,
.board-modal .btn:active,
.lcsc-live-page #content .btn:active,
.modal-dialog .btn:active { transform: translateY(1px); }

.lcsc-order-wrap .btn-primary,
.pcb-page .btn-primary,
.lcsc-page .btn-primary,
.lcsc-overlay .btn-primary,
.board-modal .btn-primary,
.lcsc-live-page #content .btn-primary,
.modal-dialog .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent2) 0%, var(--accent) 100%);
  box-shadow: 0 10px 22px rgba(158, 3, 51, 0.22);
}

.lcsc-order-wrap .btn-primary:disabled,
.pcb-page .btn-primary:disabled,
.lcsc-page .btn-primary:disabled,
.lcsc-overlay .btn-primary:disabled,
.board-modal .btn-primary:disabled,
.lcsc-live-page #content .btn-primary:disabled,
.modal-dialog .btn-primary:disabled {
  opacity: .55;
  cursor: wait;
  box-shadow: none;
}

.lcsc-order-wrap .btn-ghost,
.pcb-page .btn-ghost,
.lcsc-page .btn-ghost,
.lcsc-overlay .btn-ghost,
.board-modal .btn-ghost,
.lcsc-live-page #content .btn-ghost,
.modal-dialog .btn-ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, #ddd);
}

.lcsc-order-wrap .btn-sm,
.pcb-page .btn-sm,
.lcsc-page .btn-sm,
.lcsc-overlay .btn-sm,
.board-modal .btn-sm,
.lcsc-live-page #content .btn-sm,
.modal-dialog .btn-sm {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hint-chip {
  border: 1px dashed rgba(20, 20, 40, 0.16);
  background: #f8f9fd;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.hint-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, #ccc);
  color: var(--accent);
}

.status {
  margin-top: 14px;
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.status.error { color: #b00020; font-weight: 700; }
.status.ok { color: var(--ok); font-weight: 700; }

/* Liste üstü “Aranıyor…” — ortalı, tema kırmızısı */
.status.is-loading {
  display: grid;
  place-items: center;
  margin: 20px 0 10px;
  min-height: 0;
  padding: 0;
}

.status-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(440px, 100%);
  padding: 26px 22px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
  box-shadow: 0 12px 32px rgba(158, 3, 51, 0.10);
}

.status-loading__spin {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(158, 3, 51, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: em-spin 0.75s linear infinite;
}

.status-loading__label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--accent);
  line-height: 1.2;
}

.status-loading__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.section-label {
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.section-label .pill {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.section-label .pill-muted {
  background: #eef1f6;
  color: var(--muted);
  font-weight: 800;
  text-transform: none;
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 18px 0 10px;
}

.results-toolbar .section-label {
  margin: 0;
}

.results-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.sort-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sort-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: #334;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: border-color .15s, background .15s, color .15s;
}

.sort-btn:hover {
  border-color: rgba(158, 3, 51, 0.35);
}

.sort-btn.is-active {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border-color: rgba(158, 3, 51, 0.45);
  color: var(--accent);
}

.sort-btn .sort-arrow {
  font-size: 12px;
  line-height: 1;
  opacity: .55;
}

.sort-btn.is-active .sort-arrow {
  opacity: 1;
}

.tag.oos {
  background: #f3f4f6;
  color: #6b7280;
}

.oos-note {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.row-buy--oos {
  grid-template-columns: 72px 1fr;
}

.row-buy--oos .btn-ghost {
  grid-column: auto;
}

.ctrl-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334;
  user-select: none;
  cursor: pointer;
}

.ctrl-stock input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.load-more-wrap {
  display: grid;
  place-items: center;
  margin-top: 12px;
}

.load-more-wrap .btn {
  min-width: 220px;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(200px, 240px);
  gap: 12px 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 10px 26px rgba(10, 12, 20, 0.04);
}

mark.hl {
  background: #ffe566;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.product-row.pinned {
  border-color: rgba(158, 3, 51, 0.28);
  box-shadow: 0 14px 34px rgba(158, 3, 51, 0.10);
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
}

.product-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f5fa;
  border: 1px solid rgba(20, 20, 40, 0.06);
}

.product-row .thumb-fallback {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3f5fa;
  border: 1px solid rgba(20, 20, 40, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-main { min-width: 0; }

.product-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
}

a.product-thumb-link,
button.product-thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}
a.product-code__text,
a.product-model__link,
button.product-code__text,
button.product-model__link,
a.bom-match-code,
a.bom-match-model {
  color: inherit;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
a.product-code__text:hover,
a.product-model__link:hover,
button.product-code__text:hover,
button.product-model__link:hover,
a.bom-match-code:hover,
a.bom-match-model:hover {
  color: var(--accent, #0f766e);
  text-decoration: underline;
}
.product-code__text {
  white-space: nowrap;
  display: inline-block;
}

.tag {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.tag.code { background: #fde8ec; color: var(--accent); }
.tag.exact { background: #ecfdf5; color: #047857; }

.product-model {
  margin: 3px 0 2px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-intro {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11.5px;
  color: #334;
  font-weight: 700;
}

.product-meta b { color: var(--accent); }
.product-meta .meta-muted { color: var(--muted); font-weight: 600; }
.product-meta .meta-ship {
  color: #0f766e;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-side {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.row-price {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334;
  text-align: right;
}

.row-unit,
.row-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.row-price__label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.row-price b {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.row-price b.is-deal,
.sell-dd b.is-deal {
  color: #15803d;
}

.lcsc-price-stack,
.pcb-price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
  text-align: right;
  max-width: 100%;
}
.row-price .lcsc-price-stack,
.product-price .lcsc-price-stack,
.sell-dd .lcsc-price-stack,
.bom-buy .lcsc-price-stack {
  align-items: flex-end;
}
.lcsc-price-stack .pcb-price-now {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: inherit;
  white-space: nowrap;
}
.lcsc-price-stack .pcb-try-hint {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0;
  white-space: nowrap;
}
.lcsc-kdv-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  vertical-align: top;
}

.row-buy {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px;
  align-items: end;
}

.row-qty {
  display: grid;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.row-qty input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  background: #fff;
}

.row-buy .btn {
  width: 100%;
}

.row-buy .btn-ghost {
  grid-column: 1 / -1;
}

.product-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed rgba(20, 20, 40, 0.14);
  border-radius: 14px;
  background: #fafbfe;
}

/* Overlay
 * Journal/Bootstrap `.modal { display:none }` Detay’ı gizlerdi.
 * Kök sınıf `lcsc-overlay` — Bootstrap modal JS’ine takılmaz. */
.lcsc-overlay[hidden],
.board-modal[hidden] { display: none !important; }

.lcsc-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000000 !important;
  display: grid !important;
  place-items: center;
  padding: 18px;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Detay, Diğer seçenekler’in üstünde açılsın (Journal .modal z-index:1000050) */
#bomPickModal { z-index: 2000000 !important; }
#detailModal { z-index: 2000100 !important; }
#bomHelpModal { z-index: 2000200 !important; }
#boardModal { z-index: 2000300 !important; }

.modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: rgba(15, 18, 30, 0.55) !important;
  opacity: 1 !important;
  /* Journal’da blur ağır + “ekran bulanık / modal yok” hissi veriyor */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.modal-dialog {
  position: relative !important;
  z-index: 1 !important;
  width: min(920px, 100%) !important;
  max-height: min(88vh, 900px);
  margin: 0 !important;
  transform: none !important;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(10, 12, 20, 0.28);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border-bottom: 1px solid var(--border);
}

.modal-head[hidden] {
  display: none !important;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.modal-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f3f5fa;
  color: #667;
  font-size: 20px;
  cursor: pointer;
}

.modal-body { padding: 16px; display: grid; gap: 14px; }

.modal-dialog--help {
  width: min(520px, 100%);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 16px;
}

.bom-help-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #334;
}

.bom-help-list b { color: #111; }

.bom-help-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.bom-help-cols span {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f3f5fa;
  border: 1px solid var(--border);
  color: #445;
}

.bom-help-cols span.is-miss {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.bom-help-cols span.is-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}


.detail-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.detail-media,
.detail-info {
  min-width: 0;
}

.viewer-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #f3f5fa;
}

.viewer-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.model-viewer {
  position: relative;
  width: 100%;
  height: 300px;
  cursor: grab;
  touch-action: none;
  background: #f3f5fa;
}

.model-viewer:active { cursor: grabbing; }

.model-viewer.is-loading {
  cursor: default;
}

.model-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.model-viewer__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(243, 245, 250, 0.88);
  pointer-events: none;
  z-index: 2;
}

.em-loading {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 20px 16px;
  color: var(--muted);
  text-align: center;
}

.em-loading--idle {
  min-height: 160px;
}

.em-loading__spin {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(158, 3, 51, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: em-spin 0.75s linear infinite;
}

.em-loading__text {
  font-size: 12.5px;
  font-weight: 700;
  color: #445;
}

.em-loading-pad {
  padding: 8px 0 16px;
}

@keyframes em-spin {
  to { transform: rotate(360deg); }
}

.viewer-status {
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

.viewer-status:empty { display: none; }

.lib-grid .em-loading {
  grid-column: 1 / -1;
}

.buy-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(158, 3, 51, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fff7f9 100%);
  display: grid;
  gap: 10px;
}

.buy-qty {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.buy-qty .qty-cap {
  font-weight: 700;
  opacity: .75;
  text-transform: none;
  letter-spacing: 0;
}

.buy-qty input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  background: #fff;
}

.buy-sum {
  font-size: 13px;
  font-weight: 700;
  color: #334;
}

.buy-sum b { color: var(--accent); }

.buy-sum .tier-unit {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
}

.buy-sum .tier-unit:not([hidden])::before {
  content: "· ";
  color: #c0c4ce;
}

.lib-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.lib-block .raw-title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
}

.lib-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fd;
}

.lib-card--zoom {
  cursor: zoom-in;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lib-card--zoom:hover {
  border-color: rgba(158, 3, 51, 0.35);
  box-shadow: 0 10px 24px rgba(158, 3, 51, 0.10);
}

.lib-card img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
}

.lib-card[data-type="footprint"] img {
  background: #111;
}

.lib-card[data-type="symbol"] img {
  background: #fff;
}

.lib-card figcaption {
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lib-zoom-hint {
  font-size: 10px;
  font-weight: 900;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border-radius: 999px;
  padding: 2px 6px;
}

/* Board / şematik büyütme arayüzü */
.board-modal[hidden] { display: none !important; }

.board-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000300 !important;
  display: grid;
  place-items: center;
  padding: 16px;
}

.board-modal__backdrop {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: blur(3px);
}

.board-modal__shell {
  position: relative;
  width: min(1400px, calc(100vw - 24px));
  height: min(92vh, 960px);
  display: flex;
  flex-direction: column;
  background: #0f121a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.board-modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #1a1f2b 0%, #141822 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8ecf4;
}

.board-modal__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.board-modal__hint {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #9aa3b5;
}

.board-modal__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-tool,
.board-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8ecf4;
  border-radius: 10px;
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.board-tool:hover,
.board-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(158, 3, 51, 0.45);
}

.board-modal__stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  cursor: grab;
  background:
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 24px 24px,
    #121622;
}

.board-modal__stage.is-dark {
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 24px 24px,
    #07090f;
}

.board-modal__stage.is-dragging { cursor: grabbing; }

.board-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 20, 0.62);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
}
.board-nav:hover {
  background: rgba(158, 3, 51, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
}
.board-nav[hidden] { display: none !important; }
.board-nav--prev { left: 12px; }
.board-nav--next { right: 12px; }
.board-gallery-count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.7);
  color: #e8ecf4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.board-gallery-count[hidden] { display: none !important; }

.board-modal__canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform;
  margin: 0;
}

.board-modal__canvas img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 10px;
  font-size: 12.5px;
}

.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 800; word-break: break-word; }

.ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ladder span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 800;
  background: #f8f9fd;
}

.hint-inline {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}

.kv dd.sell-dd,
.price-table td.sell {
  color: var(--accent);
}

.kv button.datasheet-link,
.kv a.datasheet-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lcsc-ds-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.lcsc-ds-loading__spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(158, 3, 51, 0.2);
  border-top-color: #9e0333;
  border-radius: 50%;
  animation: lcsc-ds-spin 0.7s linear infinite;
}
@keyframes lcsc-ds-spin {
  to { transform: rotate(360deg); }
}
.lcsc-pp-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.title-note {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}

.price-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.price-block--ours {
  border-color: rgba(158, 3, 51, 0.22);
  box-shadow: 0 10px 26px rgba(158, 3, 51, 0.06);
}

.price-block--lcsc {
  background: #f8f9fd;
  border-style: dashed;
}

.price-table-wrap { overflow: auto; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.price-table th,
.price-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 20, 40, 0.08);
  white-space: nowrap;
}

.price-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  font-weight: 800;
}

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

.specs-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.specs-block .raw-title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.specs-table th,
.specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(20, 20, 40, 0.07);
  vertical-align: top;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: 0; }

.specs-table th {
  width: 42%;
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  background: #fafbfe;
}

.specs-table td {
  font-weight: 800;
  color: var(--text);
}

.specs-table tr.is-main th {
  color: var(--accent);
}

.specs-table tr:nth-child(even) td {
  background: #fcfcfd;
}

.raw-box {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #0f121a;
  color: #d7dde8;
  font-size: 11px;
  line-height: 1.45;
  overflow: auto;
  max-height: 360px;
}

.raw-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .product-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .product-side {
    grid-column: 1 / -1;
    padding-top: 4px;
    border-top: 1px dashed rgba(20, 20, 40, 0.10);
  }
  .row-price { text-align: left; }
  .row-buy {
    grid-template-columns: 88px 1fr auto;
  }
  .row-buy .btn-ghost {
    grid-column: auto;
    width: auto;
  }

  /* Excel BOM tablosu: aynı kolonlar, satır kart gibi dikey */
  .bom-table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .bom-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }
  .bom-table thead {
    display: none;
  }
  .bom-table tbody {
    display: block;
  }
  .bom-table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    padding: 12px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    box-shadow: 0 10px 26px rgba(10, 12, 20, 0.04);
  }
  .bom-table tr.is-miss {
    background: linear-gradient(180deg, #fff 0%, #fff1f2 100%);
    border-color: #fecdd3;
  }
  .bom-table tr.is-warn {
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
    border-color: #fde68a;
  }
  .bom-table tr.is-exact {
    background: linear-gradient(180deg, #fff 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
  }
  .bom-table tr.is-miss td,
  .bom-table tr.is-warn td,
  .bom-table tr.is-exact td {
    background: transparent;
  }
  .bom-table td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  .bom-table td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
  }
  .bom-table .bom-check-col {
    grid-column: 1;
    width: auto;
    align-self: start;
    padding-top: 2px;
  }
  .bom-table td[data-label="#"] {
    grid-column: 2;
    font-weight: 900;
    color: var(--muted);
  }
  .bom-table td[data-label="İstenen"],
  .bom-table td[data-label="Eşleşen"] {
    grid-column: 1 / -1;
  }
  .bom-table td[data-label="İstenen adet"],
  .bom-table td[data-label="Stok"],
  .bom-table td[data-label="Adet"] {
    grid-column: span 1;
  }
  .bom-table .bom-buy-cell,
  .bom-table td[data-label=""] {
    grid-column: 1 / -1;
    width: auto;
    min-width: 0 !important;
    max-width: none;
  }
  .bom-table .bom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
    min-width: 0;
  }
  .bom-table .bom-actions .btn {
    flex: 1 1 auto;
  }
  .bom-qty-cell input {
    width: 100%;
    max-width: 140px;
  }
}

@media (max-width: 720px) {
  .pcb-hero-shell { flex-direction: column; }
  .pcb-hero-meta { border-left: 0; border-top: 1px solid var(--border); }
  .search-row { grid-template-columns: 1fr; }
  .product-actions { grid-column: 1 / -1; justify-items: stretch; }
  .row-buy {
    grid-template-columns: 80px 1fr;
  }
  .row-buy .btn-ghost {
    grid-column: 1 / -1;
    width: 100%;
  }
  .detail-top { grid-template-columns: 1fr; }
  .model-viewer { height: 240px; }
  .kv { grid-template-columns: 1fr; }

  .bom-table tr {
    grid-template-columns: 1fr 1fr;
  }
  .bom-table .bom-check-col {
    grid-column: 1;
  }
  .bom-table td[data-label="#"] {
    grid-column: 2;
    text-align: right;
  }
  .bom-footer-actions {
    width: 100%;
  }
  .bom-footer-actions .btn {
    flex: 1 1 auto;
  }
}

/* ─── LCSC ürün sayfası (özel layout) ─── */
.lcsc-live-page {
  max-width: none;
  margin: 0 auto 40px;
  width: 100%;
}
.lcsc-live-page #content {
  float: none;
}
.lcsc-live-page .page-title[hidden] { display: none !important; }
.lcsc-live-page .modal-head { display: none !important; }
.lcsc-pp-host,
.lcsc-live-page #detailModal {
  position: relative !important;
  display: block !important;
  background: transparent !important;
  z-index: 1;
  padding: 0 !important;
  min-height: 0;
  inset: auto !important;
}
.lcsc-pp {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text, #12131a);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.lcsc-live-page header.lcsc-pp-hero,
.lcsc-live-page .lcsc-pp-hero {
  border-radius: 16px;
  border: 1px solid rgba(20, 20, 40, 0.08);
  border-left: 4px solid #9e0333;
  background:
    linear-gradient(105deg, rgba(158, 3, 51, 0.06) 0%, #fff 42%),
    #fff;
  box-shadow: 0 10px 32px rgba(15, 18, 30, 0.06);
  padding: 18px 20px 16px;
}
.lcsc-pp-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lcsc-pp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9e0333;
}
.lcsc-pp-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9e0333;
  box-shadow: 0 0 0 3px rgba(158, 3, 51, 0.18);
}
.lcsc-pp-hero__links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
}
.lcsc-pp-hero__links a {
  color: #5b6072;
  text-decoration: none;
}
.lcsc-pp-hero__links a:hover { color: #9e0333; }
.lcsc-pp-hero__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lcsc-pp-code {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #9e0333;
  letter-spacing: 0.02em;
}
.lcsc-pp-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #12131a;
}
.lcsc-pp-intro {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #5b6072;
}
.lcsc-pp-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lcsc-pp-stock.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.lcsc-pp-stock.is-oos {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.lcsc-pp-stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}
.lcsc-pp-stock.is-oos .lcsc-pp-stock__dot {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}
.lcsc-pp-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.lcsc-pp-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f6f7fb;
  border: 1px solid rgba(20, 20, 40, 0.06);
  font-size: 12px;
  color: #5b6072;
}
.lcsc-pp-meta b { color: #12131a; font-weight: 800; }

.lcsc-pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}
.lcsc-pp-media,
.lcsc-pp-buy__card,
.lcsc-pp-panels .lcsc-pp-panel {
  background: #fff;
  border: 1px solid rgba(20, 20, 40, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 18, 30, 0.05);
}
.lcsc-pp-media {
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}
.lcsc-pp-stage {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfc 0%, #f3f4f8 100%);
  border: 1px solid rgba(20, 20, 40, 0.06);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.lcsc-live-page .lcsc-main-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 100%;
  background: transparent;
  cursor: grab;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lcsc-live-page .lcsc-main-stage:has(.lcsc-stage-img) { cursor: zoom-in; }
.lcsc-live-page .lcsc-main-stage:active { cursor: grabbing; }
.lcsc-live-page .lcsc-main-stage:has(.lcsc-stage-img):active { cursor: zoom-in; }
.lcsc-live-page .lcsc-main-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.lcsc-live-page .lcsc-main-stage .lcsc-stage-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: contain;
  background: transparent;
  margin: 0 auto;
  cursor: zoom-in;
}
.lcsc-live-page .lcsc-main-stage.is-dark {
  background: #1a1c22;
}
.lcsc-pp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  justify-content: center;
}
.lcsc-pp-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(20, 20, 40, 0.12);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lcsc-pp-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lcsc-pp-thumb.is-active {
  border-color: #9e0333;
  box-shadow: 0 0 0 2px rgba(158, 3, 51, 0.2);
}
.lcsc-pp-thumb__badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #9e0333;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}
.lcsc-pp-thumb__ph {
  font-size: 12px;
  font-weight: 800;
  color: #9e0333;
}

.lcsc-pp-buy {
  position: sticky;
  top: 12px;
  height: 100%;
}
.lcsc-pp-buy__card {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lcsc-pp-price__label {
  font-size: 12px;
  font-weight: 700;
  color: #5b6072;
  margin-bottom: 4px;
}
.lcsc-pp-price__label span {
  color: #9e0333;
  font-weight: 800;
}
.lcsc-pp-price__val {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  color: #12131a;
}
.lcsc-pp-price__val .lcsc-price-stack {
  align-items: flex-start;
}
.lcsc-pp-price__val .pcb-price-now {
  font-size: 28px;
  font-weight: 900;
}
.lcsc-pp-price__val .lcsc-kdv-tag {
  font-size: 12px;
  vertical-align: middle;
}
.lcsc-pp-ladder {
  border-radius: 12px;
  background: #f8f9fc;
  border: 1px solid rgba(20, 20, 40, 0.06);
  overflow: hidden;
}
.lcsc-pp-ladder__head {
  padding: 7px 10px 3px;
  font-size: 11px;
  font-weight: 800;
  color: #5b6072;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lcsc-pp-ladder__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.lcsc-pp-ladder__table th,
.lcsc-pp-ladder__table td {
  padding: 3px 10px;
  text-align: left;
  border-top: 1px solid rgba(20, 20, 40, 0.06);
  line-height: 1.25;
}
.lcsc-pp-ladder__table th:last-child,
.lcsc-pp-ladder__table td:last-child {
  text-align: right;
}
.lcsc-pp-ladder__table th {
  font-size: 10.5px;
  color: #6b7280;
  font-weight: 700;
  padding-top: 4px;
  padding-bottom: 4px;
}
.lcsc-pp-ladder__row.is-active,
.lcsc-pp-ladder__row.is-current {
  background: rgba(158, 3, 51, 0.06);
}
.lcsc-pp-ladder__row.is-active td:first-child,
.lcsc-pp-ladder__row.is-current td:first-child {
  color: #9e0333;
  font-weight: 800;
}
.lcsc-pp-ladder .lcsc-price-stack {
  align-items: flex-end;
}
.lcsc-pp-ladder .pcb-price-now { font-size: 12.5px; }
.lcsc-pp-ladder .pcb-try-hint { font-size: 10px; }
.lcsc-pp-ladder .lcsc-kdv-tag { display: none; }

.lcsc-pp-qty label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #5b6072;
  margin-bottom: 6px;
}
.lcsc-live-page .lcsc-pp-stepper,
.lcsc-pp-stepper.stepper {
  display: grid !important;
  grid-template-columns: 48px minmax(72px, 1fr) 48px !important;
  align-items: stretch !important;
  width: 100%;
  max-width: 240px;
  height: 48px !important;
  min-height: 48px !important;
  border: 1px solid rgba(20, 20, 40, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #fff !important;
  box-shadow: none !important;
  gap: 0 !important;
}
.lcsc-live-page .lcsc-pp-stepper input,
.lcsc-live-page .lcsc-pp-stepper input#buyQty,
.lcsc-live-page .lcsc-pp-stepper input.form-control,
.lcsc-pp-stepper.stepper input {
  border: 0 !important;
  border-left: 1px solid rgba(20, 20, 40, 0.1) !important;
  border-right: 1px solid rgba(20, 20, 40, 0.1) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #12131a !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 46px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
  background: #fff !important;
  appearance: textfield;
  -moz-appearance: textfield;
}
.lcsc-pp-stepper input::-webkit-outer-spin-button,
.lcsc-pp-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.lcsc-live-page .lcsc-pp-stepper__btn,
.lcsc-pp-stepper.stepper .lcsc-pp-stepper__btn {
  border: 0 !important;
  background: #f6f7fb !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #12131a !important;
  cursor: pointer;
  line-height: 1 !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.lcsc-pp-stepper__btn:hover { background: #eef0f5; color: #9e0333; }
.lcsc-pp-qty__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.lcsc-pp-order {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}
.lcsc-pp-checkout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(20, 20, 40, 0.06);
}
.lcsc-pp-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(158, 3, 51, 0.06), #f8f9fc);
  border: 1px solid rgba(158, 3, 51, 0.12);
  font-size: 13px;
  color: #5b6072;
}
.lcsc-pp-line b {
  font-size: 16px;
  color: #12131a;
  font-weight: 900;
  text-align: right;
}
.lcsc-pp-line .lcsc-price-stack { align-items: flex-end; }
.lcsc-pp-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}
.lcsc-pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s;
}
.lcsc-pp-btn--primary {
  background: linear-gradient(90deg, #9e0333, #d0064a);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(199, 4, 66, 0.35);
}
.lcsc-pp-btn--primary:hover { filter: brightness(1.06); color: #fff !important; }
.lcsc-pp-btn--ghost {
  background: #fff;
  color: #12131a !important;
  border: 1px solid rgba(20, 20, 40, 0.14);
}
.lcsc-pp-btn--ghost:hover { background: #f6f7fb; }
.lcsc-pp-btn--link {
  width: 100%;
  background: #12131a;
  color: #fff !important;
  margin-top: 2px;
  min-height: 40px;
  font-size: 13px;
}
.lcsc-pp-btn--link:hover { filter: brightness(1.1); color: #fff !important; }
.lcsc-pp-oos {
  padding: 14px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-weight: 700;
  text-align: center;
}
.lcsc-pp-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.lcsc-pp-trust li {
  position: relative;
  padding: 0 0 0 18px;
  font-size: 12.5px;
  color: #5b6072;
  font-weight: 600;
}
.lcsc-pp-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0f7a45;
  font-weight: 900;
}

.lcsc-pp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: #f3f4f8;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 40, 0.06);
}
.lcsc-pp-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #5b6072;
  cursor: pointer;
}
.lcsc-pp-tab.is-active {
  background: #fff;
  color: #9e0333;
  box-shadow: 0 4px 14px rgba(15, 18, 30, 0.08);
}
.lcsc-pp-panels .lcsc-pp-panel {
  padding: 18px 20px;
}
.lcsc-pp-panels .lcsc-pp-panel[hidden] { display: none !important; }
.lcsc-pp-specs {
  width: 100%;
  border-collapse: collapse;
}
.lcsc-pp-specs th,
.lcsc-pp-specs td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(20, 20, 40, 0.06);
  font-size: 13.5px;
  text-align: left;
  vertical-align: top;
}
.lcsc-pp-specs th {
  width: 38%;
  color: #5b6072;
  font-weight: 700;
}
.lcsc-pp-specs tr.is-main th,
.lcsc-pp-specs tr.is-main td {
  background: rgba(158, 3, 51, 0.04);
}
.lcsc-pp-desc p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #374151;
}
.lcsc-pp-h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}
.lcsc-pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lcsc-pp-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(20, 20, 40, 0.1);
  background: #fff;
  color: #12131a;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
}
.lcsc-pp-chip small {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.lcsc-pp-chip:hover {
  border-color: rgba(158, 3, 51, 0.4);
  color: #9e0333;
}
.lcsc-pp-faq {
  border: 1px solid rgba(20, 20, 40, 0.08);
  border-radius: 12px;
  background: #fff;
  margin: 0 0 8px;
  overflow: hidden;
}
.lcsc-pp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
}
.lcsc-pp-faq summary::-webkit-details-marker { display: none; }
.lcsc-pp-faq summary::after {
  content: "+";
  float: right;
  color: #9e0333;
  font-weight: 800;
}
.lcsc-pp-faq[open] summary::after { content: "−"; }
.lcsc-pp-faq__body {
  padding: 0 14px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5b6072;
}
.lcsc-pp-empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .lcsc-pp-grid { grid-template-columns: 1fr; }
  .lcsc-pp-buy { position: static; }
  .lcsc-live-page .lcsc-main-stage,
  .lcsc-live-page .lcsc-main-stage .lcsc-stage-img {
    height: 280px;
    min-height: 280px;
  }
}
@media (max-width: 560px) {
  .lcsc-live-page header.lcsc-pp-hero,
.lcsc-live-page .lcsc-pp-hero { padding: 14px; }
  .lcsc-pp-actions { grid-template-columns: 1fr; }
  .lcsc-pp-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .lcsc-pp-tab { white-space: nowrap; }
}

/* Journal header override kır */
.lcsc-live-page header.lcsc-pp-hero,
.lcsc-live-page .lcsc-pp-hero {
  background:
    linear-gradient(105deg, rgba(158, 3, 51, 0.07) 0%, #ffffff 45%),
    #ffffff !important;
  color: #12131a !important;
}
.lcsc-live-page .lcsc-pp-title { color: #12131a !important; }
.lcsc-live-page .lcsc-pp-intro { color: #5b6072 !important; }
.lcsc-live-page .lcsc-pp-code { color: #9e0333 !important; }
