/* Kıbrıs Bilgisayarcım — Yönetim paneli */
:root {
  --accent: #ff6a00;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, #fff);
  --accent-deep: color-mix(in srgb, var(--accent) 82%, #000);
  --side: #121a2e;
  --bg: #f4f5f8;
  --line: #e6e8ee;
  --text: #1b2232;
  --muted: #6b7385;
  --green: #12a150;
  --red: #e5484d;
  --wa: #25d366;
  --r: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .14);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
h2, h3 { margin: 0; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.nowrap { white-space: nowrap; }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.text-err { color: var(--red); display: flex !important; align-items: center; gap: 4px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.ic-sm { width: 15px; height: 15px; }
.ic-xl { width: 48px; height: 48px; color: #c3c8d2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: .88rem; line-height: 1.2; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn--sm { padding: 7px 12px; font-size: .82rem; border-radius: 9px; }
.btn--lg { padding: 12px 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--dark { background: var(--side); color: #fff; }
.btn--dark:hover { background: #26304a; }
.btn--ghost { background: #fff; border-color: var(--line); }
.btn--ghost:hover { border-color: #b9bfcb; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--danger-ghost { background: transparent; color: var(--red); border-color: transparent; }
.btn--danger-ghost:hover { background: #fdecec; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.is-loading { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: #b9bfcb; }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 8px; }
.link { color: var(--accent); font-weight: 600; font-size: .85rem; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .82rem; margin-bottom: 4px; }
.back:hover { color: var(--accent); }

/* Yan menü */
.side { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--side); color: #cbd2e0; display: flex; flex-direction: column; z-index: 50; }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; }
.side__brand b { display: block; font-size: .92rem; line-height: 1.2; }
.side__brand small { color: #8a94ab; font-size: .74rem; }
.side__logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; flex-shrink: 0; }
.side__logo--lg { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; }
.side__logo--lg .ic { width: 26px; height: 26px; }
.side__nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.side__group { margin: 16px 10px 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #6d7891; font-weight: 700; }
.side__link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; font-weight: 500; font-size: .88rem; margin-bottom: 1px; }
.side__link .ic { color: #7d88a1; }
.side__link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side__link.is-active { background: rgba(255, 255, 255, .09); color: #fff; }
.side__link.is-active .ic { color: var(--accent); }
.side__link span { flex: 1; }
.side__badge { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.side__badge--new { background: var(--accent); color: #fff; }
.side__badge--warn { background: rgba(255, 180, 0, .18); color: #ffc24d; }
.side__badge--err { background: var(--red); color: #fff; }
.side__foot { padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .82rem; }
.side__foot a { display: flex; align-items: center; gap: 6px; color: #8a94ab; }
.side__foot a:hover { color: #fff; }
.side-backdrop { display: none; }

.main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 62px; padding: 0 28px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__burger { display: none; }
.top__search { flex: 1; min-width: 0; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--bg); border: 1px solid transparent; color: var(--muted); }
.top__search:focus-within { border-color: var(--accent); background: #fff; }
.top__search input { flex: 1; border: 0; background: transparent; outline: 0; min-width: 0; color: var(--text); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top__user { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px; border-radius: 10px; }
.top__user:hover { background: var(--bg); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.top__name { font-weight: 600; font-size: .88rem; }
.dd { position: relative; }
.dd__menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; }
.dd__menu a, .dd__menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; text-align: left; font-size: .86rem; }
.dd__menu a:hover, .dd__menu button:hover { background: var(--bg); }
.dd__menu form { margin: 0; }

.content { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title p { margin: 2px 0 0; }
.page-title__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-title h1 .badge { vertical-align: middle; margin-left: 6px; }

/* Paneller */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h2 { font-size: 1rem; }
.panel__title { font-size: 1rem; margin-bottom: 14px; }
.panel__head .panel__title { margin: 0; }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.cols--equal { grid-template-columns: 1fr 1fr; }
.cols > .panel { margin-bottom: 0; }
.cols__full { grid-column: 1 / -1; }
.empty-mini { color: var(--muted); padding: 10px 0; margin: 0; }
.empty-state { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state h3 { margin-top: 8px; }
.hint { color: var(--muted); font-size: .82rem; }
.hint .ic { vertical-align: -3px; margin-right: 2px; }
.sub { font-size: .9rem; margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }

.callout { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .88rem; }
.callout > div { flex: 1; }
.callout--info { background: #eef4ff; color: #1e3a8a; }
.callout--warn { background: #fff6e5; color: #8a5300; }
.callout--error { background: #fdecec; color: #9b1c1c; }
.callout--sm { padding: 9px 12px; font-size: .8rem; margin: 10px 0; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: .86rem; margin-bottom: 12px; }
.alert--error { background: #fdecec; color: #9b1c1c; }

/* Dashboard */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.quick__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.quick__item:hover { border-color: var(--accent); transform: translateY(-1px); }
.quick__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--bg); color: var(--text); }
.quick__ic--accent { background: var(--accent); color: #fff; }
.quick__item small { color: var(--muted); font-size: .78rem; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
a.stat:hover { border-color: #b9bfcb; }
.stat small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.stat b { font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { font-size: .76rem; color: var(--muted); }
.stat--warn b { color: #c26a00; }
.list { display: flex; flex-direction: column; }
.list__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list__row:last-child { border-bottom: 0; }
.list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list__main b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list__main small { color: var(--muted); font-size: .76rem; }
a.list__row:hover b, a.list__main:hover b { color: var(--accent); }

/* Rozetler */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.badge-orange { background: var(--accent-soft); color: var(--accent-deep); }
.badge-blue { background: #e8f0fe; color: #1d4ed8; }
.badge-purple { background: #f1e9fe; color: #6d28d9; }
.badge-green { background: #e6f6ec; color: #0d7a3c; }
.badge-gray { background: #eef0f3; color: var(--muted); }
.badge-red { background: #fdecec; color: #b42318; }
.chip-mini { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 5px; background: #eef0f3; color: var(--muted); font-size: .68rem; font-weight: 700; margin-left: 4px; vertical-align: 1px; }
.chip-mini--bh { background: #e8f0fe; color: #1d4ed8; }
.chip-mini--warn { background: #fff3dc; color: #9a5b00; }
.chip-mini--red { background: #fdecec; color: #b42318; }
.chip-mini .ic { width: 11px; height: 11px; }

/* Hızlı sekmeler / filtre */
.tabs-quick { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; scrollbar-width: none; }
.tabs-quick::-webkit-scrollbar { display: none; }
.tabs-quick a { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.tabs-quick a:hover { color: var(--text); }
.tabs-quick a.is-active { background: var(--side); color: #fff; border-color: var(--side); }
.tabs-quick a small { opacity: .7; margin-left: 2px; }
.tabs-quick--lg a { padding: 9px 16px; font-size: .86rem; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filterbar input, .filterbar select, .inline-form input, .inline-form select { height: 38px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; background: #fff; min-width: 0; }
.filterbar input[type=search] { flex: 1 1 220px; }
.filterbar select { flex: 0 1 190px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px; }
.inline-form input { flex: 1 1 220px; }

/* Toplu işlem çubuğu */
.bulkbar { position: sticky; top: 70px; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--side); color: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow-lg); }
.bulkbar select { height: 34px; border-radius: 8px; border: 0; padding: 0 10px; color: var(--text); max-width: 100%; }
.bulkbar .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }

/* Tablolar */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.panel .table-wrap { border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 11px 12px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.ta-r { text-align: right; }
.table th.ta-c { text-align: center; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table tr.is-muted td { opacity: .6; }
.table tr.is-muted td:first-child, .table tr.is-muted td:nth-child(2) { opacity: 1; }
.table tr.is-new { background: #fffaf3; }
.table tr.is-warn td:first-child { box-shadow: inset 3px 0 0 #f5a524; }
.table select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; width: 100%; max-width: 360px; background: #fff; }
.td-main { min-width: 220px; }
.td-main small { display: block; font-size: .76rem; }
.pname { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pname:hover { color: var(--accent); }
.w-check { width: 36px; }
.w-check input, [data-check-all] { width: 17px; height: 17px; accent-color: var(--accent); }
.w-thumb { width: 64px; }
.thumb-drop { position: relative; display: block; width: 52px; height: 52px; border-radius: 10px; background: #f3f4f7; border: 1.5px dashed #cdd2db; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.thumb-drop.has-img { border-style: solid; border-color: var(--line); }
.thumb-drop img { width: 100%; height: 100%; object-fit: contain; }
.thumb-drop:not(.has-img) img { opacity: .35; }
.thumb-drop__plus { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.thumb-drop:hover, .thumb-drop.is-over { border-color: var(--accent); }
.thumb-drop.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23ff6a00' stroke-width='3' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 22px no-repeat; }
.stock-pill { display: inline-block; min-width: 34px; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: .8rem; text-align: center; }
.stock-pill--in { background: #e6f6ec; color: #0d7a3c; }
.stock-pill--out { background: #fdecec; color: #b42318; }

/* Anahtar (toggle) */
.toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #d5d9e1; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle--sm { width: 32px; height: 18px; }
.toggle--sm span::after { width: 12px; height: 12px; }
.toggle--sm input:checked + span::after { transform: translateX(14px); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row b { display: block; font-size: .88rem; font-weight: 600; }
.switch-row small { display: block; color: var(--muted); font-size: .78rem; }

/* Formlar */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.form-side { position: sticky; top: 80px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: .82rem; font-weight: 600; color: #3b4354; }
.field small { font-weight: 400; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .field select, .field textarea, .spec-row input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; font-weight: 400; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.field select { height: 40px; }
.field input:focus, .field select:focus, .field textarea:focus, .spec-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.field input[type=color] { width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; background: #fff; }
.field textarea { resize: vertical; min-height: 60px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px; color: var(--muted); font-weight: 400; font-size: .82rem; }
.input-prefix input { border-radius: 0 9px 9px 0 !important; }
.input-btn { display: flex; gap: 8px; }
.input-btn input { flex: 1; }
.check-inline { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; cursor: pointer; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--accent); }
.lockrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.savebar { display: grid; gap: 8px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); display: flex; justify-content: flex-end; }
.narrow-panel { max-width: 520px; }
.img-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; font-weight: 400; }
.img-field img { max-height: 64px; max-width: 160px; object-fit: contain; border-radius: 6px; background: var(--bg); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); }
.icon-pick input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.status-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.status-pick input { position: absolute; opacity: 0; }
.status-pick label { cursor: pointer; }
.status-pick .badge { padding: 6px 11px; font-size: .78rem; opacity: .55; border: 2px solid transparent; }
.status-pick input:checked + .badge { opacity: 1; border-color: currentColor; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.dl a { color: var(--accent); }
.msg { margin-top: 14px; padding: 14px; border-radius: 10px; background: var(--bg); white-space: pre-wrap; }

/* Ürün görselleri (yönetim) */
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gimg { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: #f6f7f9; overflow: hidden; cursor: grab; }
.gimg img { width: 100%; height: 100%; object-fit: contain; padding: 6px; pointer-events: none; }
.gimg:first-child { border: 2px solid var(--accent); }
.gimg:first-child::before { content: "Kapak"; position: absolute; left: 6px; top: 6px; background: var(--accent); color: #fff; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 5px; z-index: 1; }
.gimg.is-dragging { opacity: .4; }
.gimg__rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(255,255,255,.95); color: var(--red); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.gimg:hover .gimg__rm, .gimg:focus-within .gimg__rm { opacity: 1; }
.gimg__src { position: absolute; bottom: 6px; left: 6px; background: #e8f0fe; color: #1d4ed8; font-size: .62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; aspect-ratio: 1; border: 2px dashed #cdd2db; border-radius: 12px; color: var(--muted); cursor: pointer; padding: 10px; transition: border-color .15s, background .15s; font-size: .8rem; }
.dropzone b { color: var(--text); }
.dropzone small { font-size: .7rem; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.dropzone--wide { aspect-ratio: auto; padding: 28px; }
.dropzone--wide input { margin-top: 8px; }
.dropzone.is-loading { pointer-events: none; opacity: .6; }
.file-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.file-preview img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #f6f7f9; }
.specs-edit { display: grid; gap: 8px; }
.spec-row { display: grid; grid-template-columns: 1fr 1.6fr 32px; gap: 8px; align-items: center; }

/* Düzenleyici */
.editor { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-weight: 400; }
.editor:focus-within { border-color: var(--accent); }
.editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.editor__bar button { min-width: 32px; height: 30px; padding: 0 8px; border: 0; background: transparent; border-radius: 6px; font-size: .8rem; font-weight: 600; color: #3b4354; display: inline-grid; place-items: center; }
.editor__bar button:hover, .editor__bar button.is-on { background: #eceef2; }
.editor__area { min-height: 220px; max-height: 560px; overflow-y: auto; padding: 14px 16px; outline: none; color: var(--text); line-height: 1.65; }
.editor__area:empty::before { content: "İçeriği buraya yazın veya yapıştırın…"; color: #a3a9b6; }
.editor__src { display: block; width: 100%; min-height: 220px; border: 0; padding: 14px; font-family: ui-monospace, monospace; font-size: .8rem; outline: none; resize: vertical; }
.editor.is-html .editor__area { display: none; }
.prose h2 { font-size: 1.25rem; margin: 1em 0 .4em; }
.prose h3 { font-size: 1.08rem; margin: 1em 0 .4em; }
.prose img { max-width: 100%; border-radius: 8px; }
.prose a { color: var(--accent); }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; }

/* Kategori ağacı */
.ctree { list-style: none; margin: 0; padding: 0; }
.ctree--sub { margin-left: 30px; border-left: 2px solid var(--line); padding-left: 10px; }
.ctree li.is-dragging > .crow { opacity: .4; }
.crow { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); background: #fff; }
.crow.is-muted .crow__name { opacity: .55; }
.crow__drag { cursor: grab; color: #b9bfcb; letter-spacing: -2px; font-size: .9rem; padding: 0 2px; user-select: none; }
.crow__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--accent); flex-shrink: 0; }
.crow__ic img { width: 26px; height: 26px; object-fit: contain; }
.crow__name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crow__name b { font-size: .88rem; font-weight: 600; }
.crow__name small { color: var(--muted); font-size: .74rem; }
.crow__name:hover b { color: var(--accent); }
.crow__tg { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); cursor: pointer; }

/* Markalar & slider */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.brand-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.brand-card:hover { border-color: var(--accent); }
.brand-card.is-muted { opacity: .55; }
.brand-card__logo { display: grid; place-items: center; width: 100%; height: 54px; font-weight: 800; color: #b9bfcb; font-size: 1.2rem; }
.brand-card__logo img { max-height: 46px; max-width: 120px; object-fit: contain; }
.brand-card small { color: var(--muted); font-size: .74rem; }
.banner-map { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 12px; max-width: 420px; }
.banner-map > div, .banner-map__side > div { border-radius: 8px; background: #fff3e8; color: #9a4a00; font-size: .72rem; font-weight: 700; display: grid; place-items: center; text-align: center; padding: 8px; }
.banner-map__hero { min-height: 90px; }
.banner-map__side { display: grid; gap: 8px; background: transparent !important; padding: 0 !important; }
.banner-map__side .dark { background: var(--side); color: #fff; }
.slides-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.slide-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(120deg, #fff, #fff3e8); }
.slide-card--dark { background: var(--side); color: #fff; border-color: var(--side); }
.slide-card img { width: 80px; height: 60px; object-fit: contain; }
.slide-card span { display: flex; flex-direction: column; min-width: 0; }
.slide-card small { color: var(--accent); font-weight: 700; font-size: .7rem; text-transform: uppercase; }
.slide-card em { font-style: normal; font-size: .72rem; color: var(--red); }
.slide-card.is-muted { opacity: .55; }
.slide-card:hover { border-color: var(--accent); }

/* BizimHesap */
.export-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.wh-box { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; font-weight: 400; }
.wh-box b { display: block; font-size: .9rem; }
.wh-box small { display: block; font-size: .78rem; }
.wh-box__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.field .more { margin-top: 8px; font-weight: 400; }
.field .more summary { font-size: .8rem; }
.radio-cards { display: grid; gap: 8px; font-weight: 400; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-card input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.radio-card b { display: block; font-size: .86rem; }
.radio-card small { display: block; color: var(--muted); font-size: .76rem; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sync-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.sync-hero > .hint, .sync-progress { grid-column: 1 / -1; margin: 0; }
.sync-hero__status { display: flex; gap: 14px; align-items: flex-start; }
.sync-hero__status b { font-size: 1.05rem; }
.sync-hero__status small { display: block; color: var(--muted); }
.sync-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sync-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.sync-dot.is-ok { background: var(--green); box-shadow: 0 0 0 4px #e6f6ec; }
.sync-dot.is-err { background: var(--red); box-shadow: 0 0 0 4px #fdecec; }
.sync-dot.is-off { background: #b9bfcb; box-shadow: 0 0 0 4px #eef0f3; }
.progress { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffa24d); border-radius: 99px; transition: width .3s; }
.sync-progress__text { margin: 10px 0 6px; font-weight: 600; }
.sync-log { margin: 0; padding: 10px 10px 10px 30px; max-height: 200px; overflow-y: auto; background: #0f1626; color: #c8d0e0; border-radius: 10px; font-family: ui-monospace, monospace; font-size: .76rem; }
.sync-log li.ok { color: #6ee7a0; }
.sync-log li.err { color: #ff8a8a; }
.stats--sm .stat b { font-size: 1.3rem; }
.test-result { padding: 12px; border-radius: 10px; margin-bottom: 14px; font-size: .84rem; }
.test-result.is-ok { background: #e6f6ec; color: #0d5a2e; }
.test-result.is-err { background: #fdecec; color: #9b1c1c; }
.test-result pre { max-height: 260px; overflow: auto; background: #0f1626; color: #c8d0e0; padding: 10px; border-radius: 8px; font-size: .74rem; }
.test-result code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; font-size: .76rem; }
.howto { padding-left: 20px; display: grid; gap: 4px; margin: 0 0 12px; }
.copy { display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px; }
.copy code { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 9px; background: #0f1626; color: #e5e9f2; font-size: .78rem; overflow-x: auto; white-space: nowrap; }
.more { margin-top: 10px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: .86rem; margin-bottom: 8px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.pager a, .pager span { padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .85rem; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 100; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--side); color: #fff; font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-lg); animation: tin .25s ease-out; }
.toast::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); font-size: .75rem; flex-shrink: 0; }
.toast--error::before { content: "!"; background: var(--red); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* Giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #22304f, var(--side) 60%); }
.login__box { width: min(400px, 100%); background: #fff; border-radius: 20px; padding: 32px; text-align: center; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.login__box .field { text-align: left; }
.login__box h1 { margin-bottom: 4px; }
.login__box .muted { margin-bottom: 18px; }
.login__box .small { margin-top: 14px; }

/* =================== Responsive =================== */
@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-side { position: static; }
  .cols, .cols--equal { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .sync-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .side { transform: translateX(-100%); transition: transform .22s ease-out; }
  .side.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .side.is-open + .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,15,30,.5); z-index: 45; }
  .main { margin-left: 0; }
  .top { padding: 0 14px; gap: 10px; }
  .top__burger { display: inline-grid; }
  .top__name, .top__actions .btn span { display: none; }
  .top__actions { gap: 4px; }
  .top__user .ic { display: none; }
  .content { padding: 18px 14px 80px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .field-row--3 { grid-template-columns: 1fr 1fr; }

  /* Tablo → kart */
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 10px 12px; }
  .table td { border: 0; padding: 4px 0; text-align: left !important; }
  .table td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 600; }
  .table td[data-label=""]::before { content: none; }
  .table td.td-main { padding-right: 40px; }
  .table td.w-check { position: absolute; top: 12px; right: 12px; width: auto; }
  .table--products tr { display: grid; grid-template-columns: 60px 1fr; column-gap: 12px; }
  .table--products td { grid-column: 2; }
  .table--products td.w-thumb { grid-column: 1; grid-row: 1 / span 3; width: auto; }
  .table--products td.td-main { min-width: 0; }
  .table tr.is-muted td { opacity: 1; }
  .table tr.is-muted { opacity: .7; }
  .table select { max-width: none; }
  .bulkbar { top: 66px; }
}
@media (max-width: 560px) {
  .quick { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick__item { grid-template-columns: 1fr; padding: 12px; }
  .quick__ic { grid-row: auto; width: 36px; height: 36px; margin-bottom: 6px; }
  .field-row, .field-row--3 { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 1.25rem; }
  .crow { flex-wrap: wrap; }
  .crow__name { flex-basis: calc(100% - 80px); }
  .crow__tg span:first-child { display: none; }
  .spec-row { grid-template-columns: 1fr 32px; }
  .spec-row input:nth-child(2) { grid-column: 1; }
  .spec-row button { grid-row: 1 / 3; grid-column: 2; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .copy { flex-direction: column; }
  .toasts { right: 16px; left: 16px; width: auto; }
}
