/* ============================================================
   TKPOTO B2B — Portal stilleri
   ============================================================ */

:root {
  --navy: #13293f;
  --navy-2: #1b3a58;
  --ink: #0f172a;
  --accent: #e8590c;
  --accent-dark: #c2410c;

  --bg: #eceff4;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;

  --line: #d5dce6;
  --line-soft: #e6ecf3;

  --text: #1c2634;
  --text-soft: #5a6a7d;
  --text-faint: #8b98a8;

  --green: #15803d;
  --green-bg: #e7f6ec;
  --red: #c62828;
  --red-bg: #fdeaea;
  --blue: #1d64d8;
  --blue-bg: #e8f0fd;
  --amber: #b45309;
  --amber-bg: #fdf3e3;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 50, 0.07);
  --shadow: 0 4px 14px rgba(15, 30, 50, 0.10);
  --shadow-lg: 0 16px 40px rgba(15, 30, 50, 0.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1560px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ——— Üst şerit ——— */
.topstrip {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
}

.topstrip__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topstrip__note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topstrip__fx { display: flex; align-items: center; gap: 10px; flex: none; }
.topstrip__fx b { color: #ffd9a8; font-weight: 600; }

/* ——— Başlık ——— */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}

.masthead__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
}

.brand__text strong { display: block; font-size: 16px; letter-spacing: 0.3px; color: var(--navy); }
.brand__text small { display: block; font-size: 10.5px; color: var(--text-faint); }

/* ——— Arama ——— */
.hsearch {
  position: relative;
  flex: 1;
  max-width: 720px;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.hsearch:focus-within {
  background: var(--surface);
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(27, 58, 88, 0.12);
}

.hsearch input {
  flex: 1;
  border: 0;
  background: none;
  padding: 9px 12px;
  outline: none;
  font-size: 13px;
  color: var(--text);
  min-width: 0;
}

.hsearch input::placeholder { color: var(--text-faint); }

.hsearch__clear {
  padding: 0 8px;
  color: var(--text-faint);
  font-size: 18px;
  line-height: 1;
}

.hsearch__clear:hover { color: var(--red); }

.hsearch button {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0 16px;
  align-self: stretch;
  border-radius: 0 7px 7px 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.hsearch button:hover { background: var(--accent); }

.hsearch__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 90;
  max-height: 420px;
  overflow-y: auto;
}

.hsearch__drop.is-open { display: block; }

.sresult {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.12s;
}

.sresult:last-child { border-bottom: 0; }
.sresult:hover { background: var(--surface-2); }
.sresult img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.sresult__body { min-width: 0; }
.sresult__name { font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sresult__meta { font-size: 11px; color: var(--text-faint); }

/* ——— Başlık sağ blok ——— */
.masthead__meta { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

.balancebox {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color 0.15s;
}

.balancebox:hover { border-color: var(--navy-2); }
.balancebox span { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.4px; }
.balancebox b { font-size: 13px; font-weight: 700; }
.balancebox .is-debt { color: var(--red); }
.balancebox .is-credit { color: var(--green); }

.iconbtn, .cartbtn {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.iconbtn:hover, .cartbtn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.cartbtn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ——— Kullanıcı menüsü ——— */
.userbox { position: relative; }

.userbox__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: border-color 0.15s;
}

.userbox__btn:hover { border-color: var(--navy-2); }
.userbox__name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 90;
}

.userbox.is-open .dropdown { display: block; }

.dropdown__head { padding: 10px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.dropdown__head strong { display: block; font-size: 12.5px; color: var(--navy); }
.dropdown__head small { font-size: 11px; color: var(--text-faint); }

.dropdown a,
.dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 13px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 12.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.12s, color 0.12s;
}

.dropdown a:last-child, .dropdown form:last-child button { border-bottom: 0; }
.dropdown a:hover { background: var(--surface-2); color: var(--navy); }
.dropdown button:hover { background: var(--red-bg); color: var(--red); }

/* ——— Renkli aksiyon menüsü ——— */
.actionnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.actionnav__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.anav {
  flex: 1 1 0;
  min-width: 124px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
}

.anav:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.06); }
.anav.is-active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), var(--shadow); }

.anav__icon { width: 26px; height: 26px; flex: none; }
.anav__icon svg { width: 100%; height: 100%; }
.anav__label { min-width: 0; }

.anav--green  { background: #ffffff; color: var(--navy); border-color: var(--line); }
.anav--green .anav__icon { color: #16a34a; }
.anav--green.is-active { border-color: #16a34a; box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.25); }

.anav--peach  { background: #fde9d6; color: #b45309; }
.anav--red    { background: #e04141; color: #fff; }
.anav--navy   { background: #17334d; color: #fff; }
.anav--blue   { background: #1f6fd0; color: #fff; }
.anav--ink    { background: #101c2c; color: #fff; }
.anav--teal   { background: #0f9bb0; color: #fff; }
.anav--blue2  { background: #2563eb; color: #fff; }
.anav--indigo { background: #1e3a8a; color: #fff; }

/* ——— Sayfa gövdesi ——— */
.page { flex: 1; }

.page__in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px 40px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.crumbs a:hover { color: var(--accent); }
.crumbs span.sep { color: var(--text-faint); }
.crumbs strong { color: var(--navy); font-weight: 600; }

.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pagehead h1 { margin: 0; font-size: 19px; font-weight: 700; color: var(--navy); }
.pagehead p { margin: 2px 0 0; font-size: 12px; color: var(--text-soft); }

/* ——— Bildirimler ——— */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 12.5px;
  margin-bottom: 12px;
}

.alert--success { background: var(--green-bg); border-color: #b9e2c6; color: #14612f; }
.alert--error   { background: var(--red-bg);   border-color: #f0c0c0; color: #a02020; }
.alert--info    { background: var(--blue-bg);  border-color: #bcd4f7; color: #14498f; }

.alert__list { margin: 0; padding-left: 18px; }

/* ——— Katalog düzeni ——— */
.catalog {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

/* ——— Kenar filtreleri ——— */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 74px;
}

.filters__block { border-bottom: 1px solid var(--line-soft); }
.filters__block:last-child { border-bottom: 0; }

.filters__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}

.filters__head svg { transition: transform 0.18s; }
.filters__block.is-collapsed .filters__head svg { transform: rotate(-90deg); }
.filters__block.is-collapsed .filters__body { display: none; }

.filters__body { padding: 10px 12px; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  cursor: pointer;
  color: var(--text);
}

.check input { width: 14px; height: 14px; accent-color: var(--navy); cursor: pointer; flex: none; }
.check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check:hover { color: var(--accent); }

.filters__search {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 12px;
  margin-bottom: 8px;
  background: var(--surface-2);
}

.filters__search:focus { border-color: var(--navy-2); background: var(--surface); }

.filters__scroll { max-height: 210px; overflow-y: auto; padding-right: 4px; }

.filters__scroll::-webkit-scrollbar { width: 6px; }
.filters__scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.filters__actions { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); }

/* ——— Butonlar ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--dark    { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }

.btn--black   { background: #10192a; color: #fff; }
.btn--black:hover { background: #000; }

.btn--accent  { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }

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

.btn--danger  { background: var(--red); color: #fff; }
.btn--danger:hover { background: #a52020; }

.btn--green   { background: var(--green); color: #fff; }
.btn--green:hover { background: #126a33; }

.btn--sm { padding: 5px 10px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn--icon { padding: 7px 9px; }

/* ——— Araç çubuğu ——— */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.toolbar__count { font-size: 12px; color: var(--text-soft); }
.toolbar__count b { color: var(--navy); font-weight: 700; }
.toolbar__spacer { margin-left: auto; }

.field, .formrow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text);
}

.field--inline {
  flex-direction: row;
  align-items: center;
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

.select, .input, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  outline: none;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  max-width: 100%;
}

.field--inline .select, .field--inline .input {
  width: auto;
  padding: 6px 9px;
  font-size: 12.5px;
}

.select:focus, .input:focus, .textarea:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(27, 58, 88, 0.12);
}

.textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--navy);
  margin: 0;
}

.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.formrow--full { grid-column: 1 / -1; }

.formsec {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 16px 16px 4px;
  margin: 0 0 16px;
  background: var(--surface-2);
}

.formsec legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.formbar {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 4px;
  z-index: 3;
}

.stackform .check { margin-bottom: 16px; }

@media (max-width: 720px) {
  .formgrid { grid-template-columns: 1fr; }
}

/* ——— Ürün tablosu ——— */
.tablewrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
}

.ptable { width: 100%; border-collapse: collapse; font-size: 12px; }

.ptable thead th {
  position: sticky;
  top: 0;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  z-index: 2;
}

.ptable tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.ptable tbody tr:hover { background: #f8fafd; }
.ptable tbody tr:last-child td { border-bottom: 0; }

.th-sort { color: inherit; display: inline-flex; align-items: center; gap: 3px; }
.th-sort:hover { color: var(--accent); }

.col-fav   { width: 30px; text-align: center; }
.col-img   { width: 104px; }
.col-code  { width: 116px; }
.col-oem   { width: 128px; }
.col-brand { width: 84px; }
.col-manuf { width: 92px; }
.col-price { width: 92px; text-align: right; }
.col-disc  { width: 62px; text-align: center; }
.col-net   { width: 106px; text-align: right; }
.col-stock { width: 118px; }
.col-cart  { width: 148px; }

.pthumb {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 3px;
}

.pthumb-hit {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 6px;
  line-height: 0;
}
.pthumb-hit:hover .pthumb { border-color: var(--navy-2); }

.pcode { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11.5px; font-weight: 600; color: var(--navy); }
.poem  { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11px; color: var(--text-soft); line-height: 1.35; }
.poem small { display: block; color: var(--text-faint); font-size: 10px; }

.pname { font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.35; }
.pname:hover { color: var(--accent); }
.pname__sub { display: block; font-size: 10.5px; color: var(--text-faint); font-weight: 400; margin-top: 1px; }

.pbrand { font-size: 11px; font-weight: 600; color: var(--navy); }
.pmanuf { font-size: 11px; color: var(--text-soft); }

.pprice-list { font-size: 11.5px; color: var(--text-soft); text-decoration: line-through; }
.pprice-net  { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }

.pdisc {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.pdisc--none { background: var(--surface-3); color: var(--text-faint); }

/* Şehir bazlı stok */
.stocklist { display: grid; gap: 1px; font-size: 10.5px; font-weight: 600; line-height: 1.4; }

.stockrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stockrow__city { letter-spacing: 0.2px; }
.stockrow--has { color: var(--green); }
.stockrow--out { color: var(--red); }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge--green  { background: var(--green-bg); color: var(--green); }
.badge--red    { background: var(--red-bg); color: var(--red); }
.badge--blue   { background: var(--blue-bg); color: var(--blue); }
.badge--amber  { background: var(--amber-bg); color: var(--amber); }
.badge--gray   { background: var(--surface-3); color: var(--text-soft); }

/* Sepete ekleme kutusu */
.addcell { display: flex; align-items: center; gap: 5px; }

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  flex: none;
}

.qty button {
  width: 22px;
  height: 26px;
  border: 0;
  background: var(--surface-2);
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.12s;
}

.qty button:hover { background: var(--navy); color: #fff; }

.qty input {
  width: 38px;
  height: 26px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  outline: none;
  font-size: 12px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.addbtn {
  flex: 1;
  height: 26px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 8px;
  transition: background 0.15s;
}

.addbtn:hover { background: var(--accent); }
.addbtn:disabled { background: var(--surface-3); color: var(--text-faint); cursor: not-allowed; }

/* Favori yıldızı */
.favbtn {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--line);
  padding: 2px;
  line-height: 0;
  transition: color 0.15s, transform 0.15s;
}

.favbtn:hover { transform: scale(1.18); color: #f0a020; }
.favbtn.is-active { color: #f5a524; }
.favbtn svg { width: 15px; height: 15px; }

/* ——— Sayfalandırma ——— */
.pager { display: flex; justify-content: center; margin-top: 14px; }
.pager nav { width: 100%; display: flex; justify-content: center; }

.pager .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager .page-item { margin: 0; }

.pager .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.pager .page-item:not(.active):not(.disabled) .page-link:hover {
  background: var(--surface-2);
  border-color: var(--navy-2);
}

.pager .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ——— Kartlar / paneller ——— */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}

.panel__head h2 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.panel__head p { margin: 2px 0 0; font-size: 11.5px; color: var(--text-soft); }
.panel__body { padding: 14px; }
.panel__body--flush { padding: 0; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.stat__label { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.stat__value { font-size: 21px; font-weight: 800; color: var(--navy); margin-top: 3px; line-height: 1.15; }
.stat__hint { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.stat--red .stat__value { color: var(--red); }
.stat--green .stat__value { color: var(--green); }
.stat--blue .stat__value { color: var(--blue); }

/* ——— Genel tablo ——— */
.dtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }

.dtable thead th {
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.dtable tbody td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.dtable tbody tr:hover { background: var(--surface-2); }
.dtable tbody tr:last-child td { border-bottom: 0; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Code", monospace; font-size: 11.5px; }

.empty { padding: 40px 20px; text-align: center; color: var(--text-faint); font-size: 13px; }
.empty svg { width: 42px; height: 42px; margin-bottom: 10px; opacity: 0.4; }

/* ——— Ürün detay ——— */
.pdetail { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }

.pgallery {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  place-items: center;
  min-height: 380px;
  position: relative;
}

.pgallery__zoom {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 340px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.pgallery img { max-height: 340px; max-width: 100%; object-fit: contain; }
.pgallery__hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 2px 8px;
}

.pgallery__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 11px;
  color: var(--text-faint);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 2px 8px;
}

.pinfo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.pinfo__title { margin: 0; padding: 14px 16px; font-size: 16px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line-soft); line-height: 1.35; }

.pstock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line-soft);
}

.pstock__item {
  padding: 10px 16px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.pstock__item:last-child { border-right: 0; }
.pstock__item.has { color: var(--green); }
.pstock__item.out { color: var(--red); }

.pspecs { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pspecs th { width: 140px; text-align: left; padding: 8px 16px; color: var(--text-soft); font-weight: 500; border-bottom: 1px solid var(--line-soft); }
.pspecs td { padding: 8px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.pspecs tr:last-child th, .pspecs tr:last-child td { border-bottom: 0; }

.pprice-final { font-size: 22px; font-weight: 800; color: var(--navy); }

.pbuy { display: flex; align-items: stretch; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }

.pbuy .qty { flex: none; }
.pbuy .qty button { width: 34px; height: 40px; font-size: 17px; }
.pbuy .qty input { width: 58px; height: 40px; font-size: 14px; }

.pbuy__submit {
  flex: 1;
  border: 0;
  border-radius: var(--radius-sm);
  background: #10192a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 0.15s;
}

.pbuy__submit:hover { background: #000; }
.pbuy__submit:disabled { background: var(--surface-3); color: var(--text-faint); cursor: not-allowed; }

/* ——— Sepet ——— */
.cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 74px; }
.summary__row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); }
.summary__row b { font-weight: 700; }
.summary__row--total { background: var(--surface-2); font-size: 15px; font-weight: 800; color: var(--navy); }
.summary__foot { padding: 12px 14px; }

/* ——— Giriş sayfası ——— */
.authpage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 16px;
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(27, 58, 88, 0.35), transparent 60%),
    linear-gradient(140deg, #10233a, #1b3a58 55%, #24506f);
}

.authcard {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.authcard--wide { max-width: 720px; }

.authcard__head { padding: 24px 28px 18px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.authcard__head .brand { justify-content: center; margin-bottom: 12px; }
.authcard__head h1 { margin: 0; font-size: 19px; font-weight: 700; color: var(--navy); }
.authcard__head p { margin: 5px 0 0; font-size: 12.5px; color: var(--text-soft); }

.authcard__body { padding: 22px 28px 26px; }
.authcard__foot { padding: 14px 28px; background: var(--surface-2); border-top: 1px solid var(--line-soft); text-align: center; font-size: 12.5px; color: var(--text-soft); }
.authcard__foot a { color: var(--accent); font-weight: 600; }

.formrow .input, .formrow .select, .formrow .textarea { width: 100%; }

.demobox { margin-top: 16px; padding: 11px 13px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius-sm); font-size: 11.5px; color: var(--text-soft); }
.demobox b { color: var(--navy); }
.demobox div + div { margin-top: 4px; }

/* ——— Yönetim ——— */
.adminshell { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 14px; align-items: start; }

.adminnav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 74px; }

.adminnav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.13s, color 0.13s;
}

.adminnav a:last-child { border-bottom: 0; }
.adminnav a:hover { background: var(--surface-2); color: var(--navy); }
.adminnav a.is-active { background: var(--navy); color: #fff; }
.adminnav a svg { width: 16px; height: 16px; flex: none; }

/* Hızlı düzenleme hücreleri */
.qedit {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  outline: none;
  transition: background 0.13s, border-color 0.13s;
}

.qedit:hover { background: var(--surface-2); border-color: var(--line); }
.qedit:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 100, 216, 0.14); }
.qedit.is-saved { border-color: var(--green); background: var(--green-bg); }
.qedit.is-error { border-color: var(--red); background: var(--red-bg); }
.qedit--num { text-align: right; font-variant-numeric: tabular-nums; }
.qedit--sm { width: 56px; }

.switch { position: relative; display: inline-block; width: 34px; height: 19px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }

.switch__slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 19px;
  cursor: pointer;
  transition: background 0.16s;
}

.switch__slider::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.16s;
  box-shadow: var(--shadow-sm);
}

.switch input:checked + .switch__slider { background: var(--green); }
.switch input:checked + .switch__slider::before { transform: translateX(15px); }

.uploadzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.uploadzone:hover, .uploadzone.is-drag { border-color: var(--blue); background: var(--blue-bg); }
.uploadzone svg { width: 34px; height: 34px; color: var(--text-faint); margin-bottom: 8px; }
.uploadzone p { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.uploadzone b { color: var(--navy); }
.uploadzone small { display: block; margin-top: 5px; font-size: 11px; color: var(--text-faint); }

.filelist { margin-top: 10px; font-size: 11.5px; color: var(--text-soft); max-height: 140px; overflow-y: auto; }
.filelist div { padding: 2px 0; border-bottom: 1px solid var(--line-soft); }

.helpbox { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 11.5px; color: var(--text-soft); margin-bottom: 10px; }
.helpbox code { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; font-size: 11px; color: var(--navy); }

/* ——— Toast ——— */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast__item {
  min-width: 230px;
  max-width: 360px;
  padding: 11px 15px;
  border-radius: var(--radius);
  background: #10192a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.24s ease;
}

.toast__item--success { background: #14612f; }
.toast__item--error { background: #a02020; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Alt bilgi ——— */
.foot { background: var(--navy); color: rgba(255, 255, 255, 0.7); font-size: 11.5px; margin-top: auto; }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 12px 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ——— Sekmeler ——— */
.tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover { color: var(--text); background: var(--surface-2); }
.tabs a.is-active { color: var(--navy); border-bottom-color: var(--accent); }

/* ——— ERP rapor kartları ——— */
.reportgroup { margin-bottom: 18px; }
.reportgroup:last-child { margin-bottom: 0; }
.reportgroup h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.reportgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.reportcard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.reportcard:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.reportcard b { font-size: 13px; color: var(--text); }
.reportcard span { font-size: 11px; color: var(--text-faint); }

/* ——— Senkron satırları ——— */
.synclist { display: flex; flex-direction: column; gap: 2px; }
.syncrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.syncrow:last-child { border-bottom: 0; }
.syncrow b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.syncrow p { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 12px 12px 12px 52px;
  margin-bottom: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.steps li span { display: block; font-size: 12.5px; color: var(--text-soft); }
.doclist { margin: 0; padding-left: 18px; }
.doclist li { margin: 0 0 10px; font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.doclist li:last-child { margin-bottom: 0; }

.dtable--erp th, .dtable--erp td { white-space: nowrap; font-size: 12.5px; }
.dtable--erp th { text-transform: capitalize; }

/* ——— Yapay zekâ ——— */
.btn--ai {
  background: linear-gradient(135deg, #6d5efc, #9b5efc);
  border-color: transparent;
  color: #fff;
}
.btn--ai:hover { filter: brightness(1.07); color: #fff; }
.btn--ai:disabled { opacity: .5; cursor: not-allowed; }
.btn--ai svg { width: 15px; height: 15px; }

.aibox {
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #ddd8ff;
  border-left: 3px solid #6d5efc;
  border-radius: var(--radius);
  background: #f7f5ff;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.aibox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6d5efc;
}
.aibox.is-loading { opacity: .6; }

.airow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ——— WhatsApp ——— */
.btn--wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn--wa:hover { background: #1eb455; border-color: #1eb455; color: #fff; }
.btn--wa svg { width: 16px; height: 16px; }

.wabox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #bdf0cf;
  border-radius: var(--radius);
  background: #f2fdf6;
  margin-top: 14px;
}
.wabox__text { flex: 1; font-size: 13px; color: #14603a; }
.wabox__text b { display: block; margin-bottom: 2px; }
.wabox__text small { color: #3d7a5b; }

/* ——— Misafir vitrin ——— */
.topstrip__wa { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.topstrip__waicon { width: 14px; height: 14px; display: inline-flex; }

.guestbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #d7e4f4;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4f8fd, #eef4fb);
}
.guestbar b { display: block; color: var(--navy); font-size: 13.5px; }
.guestbar span { color: var(--text-soft); font-size: 12.5px; }
.guestbar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.guestgate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}
.guestgate:hover { background: var(--navy-2); color: #fff; }
.guestgate--sm { padding: 5px 8px; font-size: 11px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 22px;
  padding: 28px 28px 26px;
  margin-bottom: 18px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(232, 89, 12, 0.22), transparent 55%),
    linear-gradient(135deg, #10233a, #1b3a58 58%, #24506f);
  color: #fff;
}
.hero__kicker { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #ffb087; font-weight: 700; }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.03em; }
.hero__lead { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.78); max-width: 560px; }
.hero__search { display: flex; gap: 8px; margin-top: 20px; max-width: 520px; }
.hero__search input {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}
.hero__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero__actions .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.hero__actions .btn--ghost:hover { background: rgba(255,255,255,.08); }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: end; }
.statcard {
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}
.statcard b { display: block; font-size: 26px; letter-spacing: -.03em; }
.statcard span { color: rgba(255,255,255,.7); font-size: 12px; }

.band { margin-bottom: 22px; }
.band__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.band__head h2 { margin: 0; font-size: 18px; color: var(--navy); }
.band__head p { margin: 3px 0 0; color: var(--text-soft); font-size: 13px; }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.catcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 78px;
}
.catcard:hover { border-color: var(--navy-2); box-shadow: var(--shadow-sm); }
.catcard strong { color: var(--navy); font-size: 13.5px; }
.catcard span { color: var(--text-soft); font-size: 12px; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.pcard__img { position: relative; background: var(--surface-2); aspect-ratio: 1.15; display: grid; place-items: center; }
.pcard__img img { max-height: 140px; object-fit: contain; }
.pcard__tag { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.pcard__tag--new { left: auto; right: 8px; background: var(--green); }
.pcard__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard__sku { font-size: 11.5px; color: var(--text-faint); font-weight: 700; }
.pcard__name { font-size: 13.5px; font-weight: 650; color: var(--navy); line-height: 1.35; }
.pcard__meta { font-size: 12px; color: var(--text-soft); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pcard__foot b { color: var(--navy); font-size: 14px; }

.aboutband {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.aboutband h2 { margin: 0 0 10px; font-size: 22px; color: var(--navy); line-height: 1.25; }
.aboutband p { margin: 0 0 14px; color: var(--text-soft); }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.why li { padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.why strong { display: block; color: var(--navy); margin-bottom: 2px; }
.why span { color: var(--text-soft); font-size: 12.5px; }

.brandrow { display: flex; flex-wrap: wrap; gap: 8px; }
.brandrow a {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}
.brandrow a:hover { border-color: var(--navy-2); }

.aboutpage { max-width: 920px; }
.aboutpage h1 { margin: 6px 0 0; font-size: 28px; color: var(--navy); }
.aboutpage__lead { font-size: 16px; color: var(--text-soft); line-height: 1.6; }
.aboutpage__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.aboutpage .panel p { margin: 0; color: var(--text-soft); }

.foot__in--rich { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; align-items: start; }
.foot__col { display: flex; flex-direction: column; gap: 4px; }
.foot__col strong { color: var(--navy); }
.foot__col p, .foot__col span { color: var(--text-soft); margin: 0; }
.foot__col a { color: var(--navy); font-weight: 600; }

.authwrap { width: 100%; max-width: 460px; }
.authwrap--wide { max-width: 980px; }
.authback { display: inline-block; margin-bottom: 12px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 600; }
.authback:hover { color: #fff; }
.authsplit { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.authsplit__side { padding: 28px 24px; background: linear-gradient(180deg, #13293f, #1b3a58); color: #fff; }
.authsplit__side h1 { margin: 18px 0 8px; font-size: 24px; }
.authsplit__side p { color: rgba(255,255,255,.75); margin: 0 0 16px; }
.authsplit__side ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,.82); font-size: 13.5px; }
.authsplit__side li + li { margin-top: 8px; }
.authcard--plain { max-width: none; box-shadow: none; border-radius: 0; }

.featuregrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.featurecard {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
}
.featurecard:hover { border-color: var(--navy-2); }
.featurecard input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.featurecard b { display: block; color: var(--navy); font-size: 13px; }
.featurecard small { display: block; color: var(--text-soft); font-size: 12px; line-height: 1.4; margin-top: 2px; }

/* ——— Duyarlı ——— */
@media (max-width: 1280px) {
  .col-oem, .col-manuf { display: none; }
}

@media (max-width: 1100px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cartgrid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .adminshell { grid-template-columns: 1fr; }
  .adminnav { position: static; display: flex; flex-wrap: wrap; }
  .adminnav a { border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .pdetail { grid-template-columns: 1fr; }
  .hero, .aboutband, .aboutpage__grid, .authsplit, .foot__in--rich { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .masthead__in { flex-wrap: wrap; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .masthead__meta { margin-left: auto; }
  .balancebox { display: none; }
  .anav { min-width: 108px; font-size: 11px; }
}

@media (max-width: 640px) {
  .topstrip__note { display: none; }
  .userbox__name { display: none; }
  .pstock { grid-template-columns: repeat(2, 1fr); }
  .foot__in { justify-content: center; text-align: center; }
  .guestbar { flex-direction: column; align-items: flex-start; }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 24px; }
  .panel__head { align-items: stretch; }
  .stat__value { font-size: 18px; }
}

/* ——— Katalog kart (mobil) ——— */
@media (max-width: 860px) {
  .tablewrap--cards { overflow: visible; }
  .ptable--catalog thead { display: none; }
  .ptable--catalog,
  .ptable--catalog tbody { display: block; width: 100%; }
  .ptable--catalog tbody tr[data-product-row] {
    display: grid;
    grid-template-columns: 112px 1fr auto;
    grid-template-areas:
      "img code fav"
      "img name name"
      "img oem oem"
      "img brand brand"
      "price net disc"
      "stock stock stock"
      "cart cart cart";
    gap: 6px 12px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin: 0 0 10px;
  }
  .ptable--catalog tbody tr[data-product-row]:hover { background: var(--surface); }
  .ptable--catalog tbody td {
    border: 0;
    padding: 0;
    width: auto !important;
  }
  .ptable--catalog .col-fav { grid-area: fav; display: flex !important; justify-content: flex-end; }
  .ptable--catalog .col-img { grid-area: img; display: flex !important; align-items: flex-start; }
  .ptable--catalog .col-code { grid-area: code; }
  .ptable--catalog .col-oem { grid-area: oem; display: block !important; }
  .ptable--catalog tbody tr[data-product-row] td:nth-child(5) { grid-area: name; }
  .ptable--catalog .col-brand { grid-area: brand; display: block !important; }
  .ptable--catalog .col-manuf { display: none !important; }
  .ptable--catalog .col-price { grid-area: price; text-align: left; }
  .ptable--catalog .col-disc { grid-area: disc; text-align: right; }
  .ptable--catalog .col-net { grid-area: net; text-align: left; }
  .ptable--catalog .col-stock { grid-area: stock; }
  .ptable--catalog .col-cart { grid-area: cart; }
  .ptable--catalog .pthumb { width: 108px; height: 108px; }
  .ptable--catalog .addcell { flex-wrap: wrap; }
  .ptable--catalog .addbtn { flex: 1; min-width: 120px; }
  .ptable--catalog tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 2px;
  }
  .ptable--catalog .col-code::before,
  .ptable--catalog .col-cart::before,
  .ptable--catalog tbody tr[data-product-row] td:nth-child(5)::before {
    content: none;
    display: none;
  }
  .ptable--catalog tbody tr td[colspan] {
    display: block;
    padding: 20px;
  }
}

/* ——— Genel tablolar: orta ekranda kaydır, telefonda kart ——— */
.tablewrap { -webkit-overflow-scrolling: touch; }

@media (max-width: 720px) {
  .tablewrap { overflow: visible; }
  .statgrid { grid-template-columns: 1fr 1fr; }

  .dtable thead { display: none; }
  .dtable,
  .dtable tbody { display: block; width: 100%; }
  .dtable tbody tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .dtable tbody tr:last-child { border-bottom: 0; }
  .dtable tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border: 0;
    padding: 5px 0;
    text-align: right;
    white-space: normal;
    min-width: 0;
    word-break: break-word;
  }
  .dtable tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-soft);
    font-size: 11px;
    text-align: left;
    flex: 0 0 38%;
    max-width: 42%;
  }
  .dtable tbody td:not([data-label]) { display: block; text-align: right; }
  .dtable tbody td.num { white-space: nowrap; }
  .dtable tbody td[data-label="İşlem"] {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .dtable tbody td[data-label="İşlem"]::before { flex-basis: 100%; max-width: none; }

  .ptable:not(.ptable--catalog) thead { display: none; }
  .ptable:not(.ptable--catalog),
  .ptable:not(.ptable--catalog) tbody { display: block; width: 100%; }
  .ptable:not(.ptable--catalog) tbody tr {
    display: block;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .ptable:not(.ptable--catalog) tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 0;
    padding: 5px 0;
    min-width: 0;
    white-space: normal;
  }
  .ptable:not(.ptable--catalog) tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-soft);
    font-size: 11px;
    text-align: left;
  }
  .ptable:not(.ptable--catalog) tbody td:not([data-label])::before { content: none; display: none; }
  .ptable:not(.ptable--catalog) .col-img,
  .ptable:not(.ptable--catalog) .col-fav { display: flex !important; justify-content: flex-start; }
  .ptable:not(.ptable--catalog) .col-img::before,
  .ptable:not(.ptable--catalog) .col-fav::before { display: none; }
  .ptable:not(.ptable--catalog) .pthumb { width: 72px; height: 72px; }
}

/* ——— Görsel büyütme ——— */
.zoomhit {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  cursor: zoom-in;
  display: grid;
  place-items: center;
  padding: 0;
}
.zoomhit:hover { background: #fff; border-color: var(--navy-2); }
.zoomhit svg { width: 16px; height: 16px; }

.imglightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(12, 22, 38, .82);
  padding: 24px;
  cursor: zoom-out;
}
.imglightbox.is-open { display: grid !important; }
.imglightbox img {
  max-width: min(960px, 100%);
  max-height: min(90vh, 900px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.imglightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media print {
  .topstrip, .masthead, .actionnav, .foot, .toolbar, .pager, .imglightbox, .zoomhit { display: none !important; }
  body { background: #fff; }
  .panel { border-color: #999; }
}
