/* =====================================================================
   styles.css — Okul E-Ticaret tasarım sistemi
   Tema: [data-theme="light" | "dark"] · Yönetici değişkenleri core.js
   tarafından <head> içinde ilk boyamadan önce enjekte edilir.
   ===================================================================== */

/* ---------- 1. Tasarım belirteçleri ---------- */
:root {
  --brand-primary: #2563eb;
  --brand-primary-fg: #ffffff;
  --brand-secondary: #f59e0b;
  --brand-secondary-fg: #0f172a;
  --btn-bg: var(--brand-primary);
  --btn-fg: #ffffff;
  --card-radius: 14px;
  --header-bg: var(--surface);
  --header-fg: var(--text);
  --header-muted: var(--muted);

  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --info: #2563eb;
  --info-bg: #eff6ff;
  --overlay: rgba(15, 23, 42, .55);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 6px 20px -6px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .28);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 30%, transparent);
  --primary-soft: color-mix(in srgb, var(--brand-primary) 10%, var(--surface));
  --secondary-soft: color-mix(in srgb, var(--brand-secondary) 16%, var(--surface));
  --radius-sm: 8px;
  --radius: 12px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a0f1d;
  --surface: #111827;
  --surface-2: #0f1626;
  --surface-3: #1a2436;
  --border: #243044;
  --border-strong: #33425b;
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --success: #34d399;
  --success-bg: rgba(16, 185, 129, .14);
  --danger: #f87171;
  --danger-bg: rgba(239, 68, 68, .14);
  --warn: #fbbf24;
  --warn-bg: rgba(245, 158, 11, .14);
  --info: #60a5fa;
  --info-bg: rgba(59, 130, 246, .14);
  --overlay: rgba(2, 6, 23, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);
  --primary-soft: color-mix(in srgb, var(--brand-primary) 18%, var(--surface));
  --secondary-soft: color-mix(in srgb, var(--brand-secondary) 18%, var(--surface));
  color-scheme: dark;
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-primary); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--brand-primary) 30%, transparent); }
mark { background: color-mix(in srgb, var(--brand-secondary) 40%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: 0 0 auto; }

/* ---------- 3. Yardımcı sınıflar ---------- */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.flex { display: flex; } .grid { display: grid; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }
.text-right { text-align: right; } .text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.panel + .panel { margin-top: 16px; }
.panel-title { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.panel-title h2, .panel-title h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: var(--surface-3); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

/* ---------- 4. Düğmeler ---------- */
.btn {
  --b: var(--surface); --f: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--b); color: var(--f); font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s, filter .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { color: var(--f); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; transform: none; }
.btn-primary { --b: var(--btn-bg); --f: var(--btn-fg); box-shadow: 0 6px 16px -8px var(--btn-bg); }
.btn-secondary { --b: var(--brand-secondary); --f: var(--brand-secondary-fg); }
.btn-ghost { --b: var(--surface); --f: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); filter: none; }
.btn-soft { --b: var(--primary-soft); --f: var(--brand-primary); }
[data-theme="dark"] .btn-soft { --f: color-mix(in srgb, var(--brand-primary) 55%, #ffffff); }
.btn-danger { --b: var(--danger); --f: #ffffff; }
[data-theme="dark"] .btn-danger { --b: #dc2626; }
.btn-success { --b: #059669; --f: #ffffff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.added { animation: pulse-ok .9s var(--ease); }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn-bg) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: .15s;
}
.icon-btn:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.icon-btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 5. Form öğeleri ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.field textarea, .textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .9; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: var(--ring); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-err { color: var(--danger); font-size: .8rem; font-weight: 500; }
.field-err:empty { display: none; }
.hint { font-size: .8rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
select option { background: var(--surface); color: var(--text); }
input[type=color] { width: 46px; height: 42px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--brand-primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-primary); width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.input-group { display: flex; gap: 8px; }
.input-group > .input, .input-group > input { flex: 1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-wrap .pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; }

/* Anahtar (toggle) */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; transition: .2s; flex: 0 0 auto; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.toggle input:checked + .track { background: var(--brand-primary); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { box-shadow: var(--ring); }
.switch { margin-left: auto; width: 36px; height: 20px; border-radius: 99px; background: var(--border-strong); position: relative; flex: 0 0 auto; transition: .2s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch.on { background: var(--brand-primary); }
.switch.on i { transform: translateX(16px); }

/* ---------- 6. Rozetler, etiketler ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; line-height: 1.3; }
.tag-sale { background: #dc2626; color: #fff; }
.tag-flash { background: var(--brand-secondary); color: var(--brand-secondary-fg); }
.tag-best { background: #0f172a; color: #fff; }
[data-theme="dark"] .tag-best { background: #f8fafc; color: #0f172a; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-info { background: var(--info-bg); color: var(--info); }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-preparing { background: var(--info-bg); color: var(--info); }
.status-shipped { background: color-mix(in srgb, #8b5cf6 16%, var(--surface)); color: #7c3aed; }
[data-theme="dark"] .status-shipped { color: #c4b5fd; }
.status-delivered { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge {
  position: absolute; top: -6px; right: -8px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--brand-secondary); color: var(--brand-secondary-fg); font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--header-bg); line-height: 1;
}
.badge[hidden] { display: none; }
.badge.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- 7. Duyuru + başlık ---------- */
.announce { background: var(--brand-primary); color: var(--brand-primary-fg); font-size: .85rem; font-weight: 500; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-fg);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: var(--header-h); padding-top: 10px; padding-bottom: 10px; }
.logo-box { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--header-fg); }
.logo-box:hover { color: var(--header-fg); }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 55%, var(--brand-secondary)));
  color: var(--brand-primary-fg); box-shadow: 0 6px 14px -6px var(--brand-primary);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.logo-text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.logo-text small { font-size: .75rem; color: var(--header-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.search { position: relative; display: flex; align-items: center; max-width: 680px; width: 100%; justify-self: center; }
.search input {
  width: 100%; height: 48px; padding: 0 118px 0 44px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--surface-2); color: var(--text); transition: .2s;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--brand-primary); background: var(--surface); box-shadow: var(--ring); }
.search-ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search-btn { position: absolute; right: 5px; height: 38px; min-height: 38px; padding: 0 16px; border-radius: 9px; box-shadow: none; }
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: min(70vh, 460px); overflow-y: auto;
  animation: dd-in .16s var(--ease);
}
.sd-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.sd-item:hover, .sd-item.kb, .sd-all.kb { background: var(--primary-soft); color: var(--text); }
.sd-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.sd-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sd-txt strong { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-price { font-size: .9rem; color: var(--brand-primary); white-space: nowrap; }
[data-theme="dark"] .sd-price { color: color-mix(in srgb, var(--brand-primary) 50%, #fff); }
.sd-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-weight: 600; color: var(--brand-primary); }
[data-theme="dark"] .sd-all { color: color-mix(in srgb, var(--brand-primary) 50%, #fff); }
.sd-empty { display: flex; gap: 10px; align-items: center; padding: 16px; color: var(--muted); }

.actions { display: flex; align-items: center; gap: 6px; }
.action { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--header-fg); transition: background-color .15s; }
.action:hover { background: color-mix(in srgb, var(--header-fg) 7%, transparent); color: var(--header-fg); }
.action-ic { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.a-label { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.a-label small { font-size: .72rem; color: var(--header-muted); }
.a-label strong { font-size: .88rem; font-weight: 700; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.user-menu { padding: 0; }
.action-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; color: inherit; border-radius: 12px; text-align: left; }
.action-btn .caret { color: var(--header-muted); transition: transform .2s; }
.user-menu.open .caret { transform: rotate(180deg); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: 0 0 auto; background: var(--brand-primary); color: var(--brand-primary-fg); }
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.dropdown {
  display: none; position: absolute; top: 100%; right: 0; z-index: 70; width: 300px; padding: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: dd-in .16s var(--ease);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.user-menu.open .dropdown { display: block; }
@media (hover: hover) and (min-width: 901px) { .user-menu:hover .dropdown { display: block; } }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dd-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; min-width: 0; }
.dd-head > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dd-head strong { font-size: .95rem; }
.dd-head small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 9px; border: 0; background: none; color: var(--text); font-size: .9rem; font-weight: 500; text-align: left; }
.dd-item .icon { color: var(--muted); }
.dd-item:hover { background: var(--surface-3); color: var(--text); }
.dd-item:hover .icon { color: var(--brand-primary); }
.dd-admin { background: var(--primary-soft); color: var(--brand-primary); font-weight: 700; }
[data-theme="dark"] .dd-admin { color: color-mix(in srgb, var(--brand-primary) 50%, #fff); }
.dd-admin .icon { color: inherit; }
.dd-danger, .dd-danger .icon { color: var(--danger); }
.dd-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* Hızlı kategori çubuğu */
.quickbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.quickbar[hidden] { display: none; }
.quickbar-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.quickbar-inner::-webkit-scrollbar { display: none; }
.qb-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: .15s; }
.qb-link .icon { color: var(--muted); }
.qb-link:hover { background: var(--surface-3); color: var(--text); }
.qb-link.active { background: var(--primary-soft); color: var(--brand-primary); }
[data-theme="dark"] .qb-link.active { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.qb-link.active .icon { color: inherit; }
.qb-flash { color: var(--warn); } .qb-flash .icon { color: var(--brand-secondary); }
.qb-contact { margin-left: auto; }

/* ---------- 8. Sayfa düzeni ---------- */
.page { padding: 24px 0 56px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--brand-primary); }
.home-grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.home-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.home-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Kenar çubuğu */
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); padding: 10px; box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 10px; }
.sidebar-head h2 { font-size: .95rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.sb-toggle { display: none; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: .9rem; text-align: left; transition: background-color .15s, color .15s, transform .15s; }
.cat-btn .cat-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: 0 0 auto; transition: .15s; }
.cat-btn .cat-n { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--surface-3); padding: 2px 8px; border-radius: 99px; }
.cat-btn:hover { background: var(--surface-2); color: var(--text); }
.cat-btn:hover .cat-ic { color: var(--brand-primary); transform: scale(1.05); }
.cat-btn.active { background: var(--primary-soft); color: var(--brand-primary); }
[data-theme="dark"] .cat-btn.active { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.cat-btn.active .cat-ic { background: var(--brand-primary); color: var(--brand-primary-fg); }
.cat-btn.active .cat-n { background: var(--brand-primary); color: var(--brand-primary-fg); }
.cat-btn span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Slayt (hero) */
.hero { position: relative; border-radius: var(--card-radius); overflow: hidden; height: clamp(230px, 22vw, 300px); background: #0f172a; box-shadow: var(--shadow); isolation: isolate; }
.hero-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.slide.active .slide-img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,6,23,.82) 0%, rgba(2,6,23,.55) 45%, rgba(2,6,23,0) 75%); z-index: 1; }
.slide-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px 76px; max-width: 640px; color: #ffffff; }
.slide-body h2 { color: #ffffff; font-size: clamp(1.25rem, 2.3vw, 1.95rem); margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.slide-body p { margin: 0; color: rgba(255,255,255,.88); font-size: .95rem; max-width: 460px; }
.slide-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--brand-secondary); color: var(--brand-secondary-fg); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.slide-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.coupon-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.7); background: rgba(255,255,255,.1); color: #ffffff; font-weight: 700; letter-spacing: .04em; }
.coupon-chip:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: #ffffff; color: #0f172a; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.hero-arrow:hover { transform: translateY(-50%) scale(1.08); color: #0f172a; }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-arrow .icon { stroke: #0f172a; }
.hero-dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.55); transition: width .3s var(--ease), background-color .3s; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.hero-dots button.active { width: 26px; background: #ffffff; }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand-secondary); z-index: 3; width: 0; }

/* Sıralama/araç çubuğu */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .85rem; font-weight: 600; transition: .15s; }
.chip:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.chip.active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-primary-fg); }
.chip .x { display: grid; place-items: center; }
.sort-box { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-box label { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sort-box select { min-height: 38px; padding: 6px 34px 6px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: .88rem; }
.result-info { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-info strong { color: var(--text); }

/* Bölüm başlıkları */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.section-head h2 .sh-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-primary); }
[data-theme="dark"] .section-head h2 .sh-ic { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.section-head a { font-size: .88rem; font-weight: 600; color: var(--brand-primary); display: inline-flex; align-items: center; gap: 4px; }
[data-theme="dark"] .section-head a { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 11px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Ürün ızgarası ve kartı */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.product-grid.featured { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border)); }
.pc-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.07); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pc-out { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 55%, transparent); font-weight: 800; color: var(--text); letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ffffff; color: #475569; box-shadow: 0 3px 10px rgba(0,0,0,.18); transition: transform .2s var(--ease), color .2s; }
.fav-btn:hover { transform: scale(1.1); color: #e11d48; }
.fav-btn.on { color: #e11d48; }
.fav-btn.on .icon { fill: currentColor; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.pc-meta { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; min-width: 0; }
.pc-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.pc-title { margin: 0; font-size: .93rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; overflow-wrap: anywhere; }
.pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pc-price strong { font-size: 1.12rem; font-weight: 800; color: var(--text); }
.pc-price s { color: var(--muted); font-size: .82rem; }
.pc-add { margin-top: 6px; }
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.stars-bg, .stars-fg { display: flex; gap: 1px; }
.stars-bg { color: var(--border-strong); }
.stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; color: #f59e0b; white-space: nowrap; }
.pc-rating, .rating-line { display: flex; align-items: center; gap: 6px; }
.rating-n { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Flaş fırsat bandı */
.flash-banner { position: relative; overflow: hidden; border-radius: var(--card-radius); padding: 18px; color: #fff; background: linear-gradient(120deg, #7c2d12, #c2410c 45%, var(--brand-secondary)); box-shadow: var(--shadow); }
.flash-banner::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); }
.flash-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 16px; }
.flash-top h2 { color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; }
.countdown { display: flex; gap: 8px; justify-content: center; }
.cd-box { min-width: 62px; padding: 8px 6px; border-radius: 10px; background: rgba(0,0,0,.28); text-align: center; backdrop-filter: blur(4px); }
.cd-box b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-box small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.flash-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.flash-banner .product-card { color: var(--text); }

/* Boş durum */
.empty { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); margin-bottom: 8px; }
.empty h3 { margin: 0; }

/* ---------- 9. Ürün detay ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--card-radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.gallery-main .hero-arrow { width: 44px; height: 44px; }
.gallery-count { position: absolute; bottom: 12px; right: 12px; background: rgba(15,23,42,.75); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { aspect-ratio: 1 / 1; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.thumbs button:hover { transform: translateY(-2px); }
.thumbs button.active { border-color: var(--brand-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-info h1 { margin: 0; overflow-wrap: anywhere; }
.pd-brand { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pd-price strong { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pd-price s { color: var(--muted); font-size: 1.05rem; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; }
.stock.in { color: var(--success); } .stock.low { color: var(--warn); } .stock.out { color: var(--danger); }
.assurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.assurance div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text-2); min-width: 0; }
.assurance .icon { color: var(--brand-primary); }
[data-theme="dark"] .assurance .icon { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); height: 46px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; color: var(--text); display: grid; place-items: center; }
.qty button:hover { background: var(--surface-3); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input { width: 52px; height: 100%; border: 0; text-align: center; background: transparent; color: var(--text); font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm { height: 36px; } .qty.sm button { width: 32px; } .qty.sm input { width: 40px; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy-row .btn { flex: 1 1 160px; }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.review { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-head strong { font-size: .92rem; }
.review p { margin: 0; color: var(--text-2); }
.review-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--brand-primary); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .88rem; color: var(--text-2); }
.rating-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.rating-big { text-align: center; }
.rating-big b { font-size: 2.6rem; line-height: 1; display: block; }
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: #f59e0b; border-radius: inherit; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { border: 0; background: none; padding: 2px; color: var(--border-strong); transition: transform .1s, color .1s; }
.star-input button.on { color: #f59e0b; }
.star-input button:hover { transform: scale(1.15); }
.star-input .icon { fill: currentColor; }
.section-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.section-tabs button { border: 0; background: none; padding: 12px 16px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.section-tabs button.active { color: var(--brand-primary); border-color: var(--brand-primary); }
[data-theme="dark"] .section-tabs button.active { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }

/* ---------- 10. Sepet ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }
.cl-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-info a { font-weight: 600; overflow-wrap: anywhere; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-side strong { font-size: 1.02rem; white-space: nowrap; }
.delivery-opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: border-color .15s, background-color .15s; background: var(--surface); }
.opt:hover { border-color: var(--border-strong); }
.opt:has(input:checked) { border-color: var(--brand-primary); background: var(--primary-soft); }
.opt input { margin-top: 3px; }
.opt-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-primary); flex: 0 0 auto; }
.opt-body { flex: 1; min-width: 0; }
.opt-body strong { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.opt-body small { color: var(--muted); display: block; }
.opt-extra { margin-top: 10px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; color: var(--text-2); }
.sum-row.total { border-top: 1px dashed var(--border-strong); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; color: var(--text); }
.sum-row .neg { color: var(--success); font-weight: 700; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--success-bg); color: var(--success); font-weight: 700; font-size: .88rem; }
.progress-free { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress-free i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); border-radius: inherit; transition: width .4s var(--ease); }
.success-box { text-align: center; padding: 40px 20px; }
.success-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--success-bg); color: var(--success); animation: pop .5s var(--ease); }

/* ---------- 11. Hesap ---------- */
.account-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--text-2); border: 0; background: none; width: 100%; text-align: left; white-space: nowrap; }
.side-nav a:hover, .side-nav button:hover { background: var(--surface-3); color: var(--text); }
.side-nav a.active { background: var(--primary-soft); color: var(--brand-primary); }
[data-theme="dark"] .side-nav a.active { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.side-nav .count { margin-left: auto; font-size: .75rem; background: var(--surface-3); color: var(--muted); padding: 1px 8px; border-radius: 99px; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.profile-card > div { min-width: 0; }
.profile-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card .avatar { width: 48px; height: 48px; font-size: 1rem; }
.auth-wrap { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; overflow: hidden; padding: 0; }
.auth-side { padding: 36px; background: linear-gradient(150deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 40%, #0f172a)); color: #fff; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.auth-side h2 { color: #fff; }
.auth-side p { color: rgba(255,255,255,.85); }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.auth-form { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.order-card { border: 1px solid var(--border); border-radius: var(--card-radius); overflow: hidden; background: var(--surface); }
.order-card + .order-card { margin-top: 14px; }
.order-head { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.order-head dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.order-head dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.order-head dd { margin: 0; font-weight: 700; font-size: .92rem; }
.order-body { padding: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 18px; padding: 0; list-style: none; }
.step { position: relative; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); padding-top: 42px; }
.step::before { content: ""; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.step:first-child::before { display: none; }
.step .dotc { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); border: 3px solid var(--surface); z-index: 1; transition: .3s; }
.step.done { color: var(--text); }
.step.done .dotc { background: var(--success); color: #fff; }
.step.done::before { background: var(--success); }
.step.current .dotc { background: var(--brand-primary); color: var(--brand-primary-fg); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 22%, transparent); animation: beat 1.8s ease-in-out infinite; }
.step.current::before { background: var(--success); }
@keyframes beat { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand-primary) 10%, transparent); } }
.cancel-note { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-weight: 600; margin-bottom: 14px; }
.receipt { width: 100%; border-collapse: collapse; font-size: .88rem; }
.receipt td, .receipt th { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.receipt th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; }
.receipt td:last-child, .receipt th:last-child { text-align: right; white-space: nowrap; }
.receipt tfoot td { border-bottom: 0; font-weight: 600; }
.receipt-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.receipt-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.coupon-card { position: relative; display: flex; overflow: hidden; border-radius: var(--card-radius); border: 1px solid var(--border); background: var(--surface); }
.coupon-left { width: 96px; flex: 0 0 auto; display: grid; place-items: center; text-align: center; padding: 12px 8px; background: linear-gradient(160deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 50%, var(--brand-secondary))); color: var(--brand-primary-fg); font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.coupon-left small { display: block; font-size: .68rem; font-weight: 600; opacity: .85; }
.coupon-right { padding: 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; border-left: 2px dashed var(--border-strong); }
.coupon-code { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; }

/* ---------- 12. İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.info-list { display: grid; gap: 12px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.info-item .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-primary); flex: 0 0 auto; }
[data-theme="dark"] .info-item .ic { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.info-item strong { display: block; font-size: .85rem; }
.info-item span { color: var(--text-2); font-size: .9rem; overflow-wrap: anywhere; }
.map-card { position: relative; border-radius: var(--card-radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.map-card svg { width: 100%; height: auto; }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 12px 14px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.map-pin { animation: pin 2s ease-in-out infinite; transform-origin: center bottom; transform-box: fill-box; }
@keyframes pin { 50% { transform: translateY(-8px); } }

/* ---------- 13. Altbilgi ---------- */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.3fr); gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--brand-primary); }
.f-brand p { font-size: .88rem; margin-top: 14px; }
.logo-foot { color: var(--text); }
.logo-foot .logo-text small { color: var(--muted); }
.f-contact li { display: flex; gap: 10px; color: var(--text-2); align-items: flex-start; }
.f-contact .icon { margin-top: 3px; color: var(--brand-primary); }
.f-contact + .btn { margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 14. Toast, iletişim kutusu, yukarı çık ---------- */
.toast-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--success); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: toast-in .3s var(--ease); }
.toast > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast .icon { margin-top: 1px; }
.toast-success { border-left-color: var(--success); } .toast-success > .icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); } .toast-error > .icon { color: var(--danger); }
.toast-info { border-left-color: var(--info); } .toast-info > .icon { color: var(--info); }
.toast-warn { border-left-color: var(--warn); } .toast-warn > .icon { color: var(--warn); }
.toast-x { border: 0; background: none; color: var(--muted); padding: 2px; display: grid; place-items: center; }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.dialog-backdrop { position: fixed; inset: 0; z-index: 300; background: var(--overlay); display: grid; place-items: center; padding: 16px; animation: fade .18s; backdrop-filter: blur(3px); }
.dialog { width: min(420px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); animation: toast-in .22s var(--ease); }
.dialog p { color: var(--text-2); }
.dialog-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--info-bg); color: var(--info); margin-bottom: 12px; }
.dialog-ic.danger { background: var(--danger-bg); color: var(--danger); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
.fab-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: var(--brand-primary); color: var(--brand-primary-fg);
  box-shadow: 0 10px 24px -8px var(--brand-primary), 0 0 0 4px color-mix(in srgb, var(--brand-primary) 18%, transparent);
  opacity: 0; transform: translateY(24px) scale(.8); pointer-events: none; transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.fab-top.show { opacity: 1; transform: none; pointer-events: auto; animation: float 2.6s ease-in-out .4s infinite; }
.fab-top:hover { animation-play-state: paused; filter: brightness(1.08); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
body:has(.toast-stack .toast) .fab-top { bottom: 96px; }

/* ---------- 15. Tablolar ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.cell-prod { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.cell-prod img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); flex: 0 0 auto; }
.cell-prod strong { font-size: .88rem; display: block; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- 16. Yönetim paneli ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 10px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.admin-nav h2 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px 6px; margin: 0; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.admin-nav a:hover { background: var(--surface-3); color: var(--text); }
.admin-nav a.active { background: var(--brand-primary); color: var(--brand-primary-fg); }
.admin-nav a .n { margin-left: auto; font-size: .7rem; padding: 1px 7px; border-radius: 99px; background: var(--danger); color: #fff; }
.admin-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-title h1 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.admin-title h1 .sh-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-primary); }
[data-theme="dark"] .admin-title h1 .sh-ic { color: color-mix(in srgb, var(--brand-primary) 45%, #fff); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.kpi { padding: 16px; display: flex; gap: 14px; align-items: center; }
.kpi .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.kpi small { color: var(--muted); font-weight: 600; font-size: .8rem; display: block; }
.kpi b { font-size: 1.35rem; font-weight: 800; display: block; letter-spacing: -.02em; }
.kpi-1 .ic { background: var(--info-bg); color: var(--info); }
.kpi-2 .ic { background: var(--success-bg); color: var(--success); }
.kpi-3 .ic { background: var(--warn-bg); color: var(--warn); }
.kpi-4 .ic { background: color-mix(in srgb, #8b5cf6 16%, var(--surface)); color: #8b5cf6; }
.kpi-5 .ic { background: var(--danger-bg); color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.chart svg:not(.icon) { width: 100%; height: auto; overflow: visible; }
.chart .axis text, .chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .bar-rect { fill: var(--brand-primary); transition: opacity .15s; }
.chart .bar-rect:hover { opacity: .8; }
.chart .val { fill: var(--text); font-weight: 700; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .85rem; }
.hbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar .track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: inherit; background: var(--brand-primary); }
.hbar b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.list-row + .list-row { margin-top: 8px; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .grow small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row img.thumb { width: 96px; height: 40px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.row-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: 0 0 auto; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.icon-pick button { aspect-ratio: 1; border-radius: 9px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; }
.icon-pick button.active { border-color: var(--brand-primary); background: var(--primary-soft); color: var(--brand-primary); }
.img-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.img-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .img-tools { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; gap: 4px; }
.img-item .img-tools button { width: 26px; height: 26px; border-radius: 7px; border: 0; background: rgba(15,23,42,.8); color: #fff; display: grid; place-items: center; }
.img-item .first { position: absolute; top: 4px; left: 4px; font-size: .62rem; font-weight: 800; background: var(--brand-primary); color: var(--brand-primary-fg); padding: 2px 6px; border-radius: 5px; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-row .input { flex: 1 1 220px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; }
.spec-row + .spec-row { margin-top: 8px; }
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.preview-frame { position: sticky; top: calc(var(--header-h) + 16px); }
.preview-frame .frame-box { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: 640px; background: var(--surface-2); }
.preview-frame iframe { width: 166.66%; height: 166.66%; border: 0; transform: scale(.6); transform-origin: 0 0; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row .input { flex: 1; font-family: ui-monospace, Consolas, monospace; }
.order-list { display: flex; flex-direction: column; gap: 6px; }
.order-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: .9rem; }
.order-item .grow { flex: 1; }
.vis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.edit-box { border: 1.5px solid var(--brand-primary); border-radius: var(--card-radius); padding: 18px; background: var(--surface); box-shadow: var(--shadow); }
.log-type { font-family: ui-monospace, Consolas, monospace; font-size: .75rem; }
.msg-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
.msg-item + .msg-item { margin-top: 10px; }
.msg-item.unread { border-left: 4px solid var(--brand-primary); }
.msg-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .88rem; border-left: 3px solid var(--success); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input, .filters .select { width: auto; flex: 1 1 180px; min-height: 38px; }

/* Yazdırma: fatura */
#print-area { display: none; }
.invoice { font-family: var(--font); color: #0f172a; background: #fff; padding: 24px; max-width: 800px; margin: 0 auto; }
.invoice h1 { color: #0f172a; font-size: 1.5rem; }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.invoice th, .invoice td { border-bottom: 1px solid #e2e8f0; padding: 8px; text-align: left; color: #0f172a; }
.invoice td:last-child, .invoice th:last-child { text-align: right; }
.invoice .inv-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #0f172a; padding-bottom: 12px; }
.invoice .inv-tot { margin-left: auto; width: 280px; margin-top: 12px; }
.invoice .inv-tot div { display: flex; justify-content: space-between; padding: 4px 0; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block !important; }
  body.printing { background: #fff !important; }
  @page { margin: 14mm; }
}

/* ---------- 17. Duyarlı düzen ---------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .design-layout { grid-template-columns: minmax(0, 1fr); }
  .preview-frame { position: static; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; max-height: none; }
  .sb-toggle { display: inline-flex; }
  .sidebar:not(.open) .cat-list { display: none; }
  .sidebar.open .cat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 4px; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .side-nav { flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
  .side-nav a, .side-nav button { width: auto; }
  .profile-card { border-bottom: 0; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; }
  .admin-nav h2 { display: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 118px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo actions" "search search"; gap: 10px 12px; }
  .logo-box { grid-area: logo; }
  .search { grid-area: search; max-width: none; }
  .actions { grid-area: actions; gap: 2px; }
  .a-label, .action-btn .caret { display: none; }
  .action, .action-btn { padding: 8px; }
  .dropdown { position: fixed; top: var(--dd-top, 120px); left: 16px; right: 16px; width: auto; max-height: calc(100vh - var(--dd-top, 120px) - 16px); overflow-y: auto; }
  .qb-contact { margin-left: 0; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 24px; }
  .auth-side ul { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  body { font-size: 14.5px; }
  .page { padding: 16px 0 40px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text strong { font-size: .98rem; max-width: 170px; }
  .logo-text small { max-width: 170px; font-size: .7rem; }
  .search input { height: 44px; padding-right: 52px; }
  .search-btn span { display: none; }
  .search-btn { padding: 0 10px; height: 34px; min-height: 34px; }
  .hero { height: 250px; }
  .slide::after { background: linear-gradient(90deg, rgba(2,6,23,.86), rgba(2,6,23,.6) 70%, rgba(2,6,23,.35)); }
  .slide-body { padding: 18px 18px 40px; gap: 8px; }
  .slide-body p { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-arrow { width: 36px; height: 36px; top: auto; bottom: 8px; transform: none; }
  .hero-arrow:hover { transform: scale(1.06); }
  .hero-arrow.prev { left: auto; right: 54px; } .hero-arrow.next { right: 12px; }
  .hero-dots { left: 18px; transform: none; bottom: 22px; }
  .slide-cta .btn, .coupon-chip { min-height: 38px; font-size: .85rem; padding: 0 12px; }
  .product-grid, .product-grid.featured, .flash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-body { padding: 10px; gap: 5px; }
  .pc-title { font-size: .86rem; }
  .pc-price strong { font-size: 1rem; }
  .pc-add { min-height: 38px; padding: 0 8px; font-size: .82rem; gap: 6px; }
  .pc-meta { font-size: .66rem; }
  .fav-btn { width: 32px; height: 32px; top: 8px; right: 8px; }
  .toolbar { padding: 10px; }
  .sort-box { margin-left: 0; width: 100%; }
  .sort-box select { flex: 1; min-width: 0; }
  .cd-box { min-width: 54px; } .cd-box b { font-size: 1.2rem; }
  .flash-banner { padding: 14px 12px; }
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .assurance { grid-template-columns: minmax(0, 1fr); }
  .pd-price strong { font-size: 1.6rem; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-line img { width: 64px; height: 64px; }
  .cl-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; }
  .auth-form { padding: 20px; }
  .panel { padding: 16px; }
  .steps { font-size: .7rem; }
  .step { font-size: .68rem; padding-top: 38px; }
  .step .dotc { width: 30px; height: 30px; }
  .step::before { top: 14px; }
  .rating-summary { grid-template-columns: minmax(0, 1fr); }
  .vis-grid { grid-template-columns: minmax(0, 1fr); }
  .spec-row { grid-template-columns: minmax(0, 1fr) auto; }
  .spec-row input:nth-child(2) { grid-column: 1 / 2; }
  .hbar { grid-template-columns: minmax(0, 90px) minmax(0, 1fr) auto; }
  .toast-stack { right: 16px; bottom: 16px; }
  .fab-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .preview-frame { display: none; }
  .order-head dl { gap: 6px 16px; }
  .kpi b { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 18. Erişilebilirlik ve küçük yardımcılar ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: 10px; background: var(--brand-primary); color: var(--brand-primary-fg); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--brand-primary-fg); }
.icon-btn.on { color: #e11d48; border-color: #e11d48; }
.min-w-0 { min-width: 0; }
.home-sec[hidden] { display: none; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: var(--text); color: var(--surface); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }
.chart-tip[hidden] { display: none; }
.hbar[data-tip] { cursor: default; }
details > summary { list-style-position: inside; }
@media (max-width: 640px) {
  .announce { font-size: .74rem; }
  .announce .container { min-height: 30px; gap: 6px; }
  .announce span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pc-meta span:first-child { flex: 0 1 auto; max-width: 45%; }
}
@media (max-width: 640px) {
  .gallery-main .hero-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
  .gallery-main .hero-arrow:hover { transform: translateY(-50%) scale(1.06); }
  .gallery-main .hero-arrow.prev { left: 10px; right: auto; }
  .gallery-main .hero-arrow.next { right: 10px; }
}

/* Veritabanı bağlantı uyarısı */
.db-alert { background: #b91c1c; color: #ffffff; font-size: .88rem; }
.db-alert .container { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.db-alert[hidden] { display: none; }
