/* =====================================================================
   TituPremium tasarım sistemi
   Referans: koyu lacivert üst alan, beyaz içerik kartları, altın→mavi degrade
   fiyat rozeti, yeşil-zeytin modül ikonları, hap biçimli aksiyonlar.
   ===================================================================== */

:root {
  --navy-950: #0d1120;
  --navy-900: #1a2033;
  --navy-800: #232a40;
  --navy-700: #2d3550;
  --primary: #3d6ef7;
  --primary-600: #2c5be3;
  --primary-50: #eef3ff;
  --olive: #6b7d1c;
  --olive-600: #5b6b15;
  --gold: #e7d8a6;
  --peri: #9fb1e4;
  --grad-price: linear-gradient(100deg, #e9d9a3 0%, #c9c7c0 45%, #9db0e6 100%);
  --grad-head: linear-gradient(100deg, #8f9bd6 0%, #aeb6d6 55%, #d9cfb0 100%);
  --grad-promo: linear-gradient(135deg, #b18de0 0%, #8fa3e6 100%);

  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef1f7;
  --border: #e3e7f0;
  --border-strong: #cdd3e1;
  --text: #1b2133;
  --text-soft: #384056;
  --muted: #5f6880;
  --on-dark: #ffffff;
  --on-dark-muted: #b8c0d6;
  --success: #17864a;
  --success-bg: #e7f6ee;
  --danger: #c93636;
  --danger-bg: #fdecec;
  --warning: #9a6a00;
  --warning-bg: #fff6df;
  --info: #2c5be3;
  --info-bg: #eaf0ff;
  --shadow-sm: 0 1px 2px rgba(20, 28, 51, .06);
  --shadow: 0 8px 24px rgba(20, 28, 51, .07);
  --shadow-lg: 0 18px 50px rgba(20, 28, 51, .14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --pill: 999px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1280px;
  --gutter: 16px;
  --header-h: 72px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c1019;
  --surface: #141a29;
  --surface-2: #1a2132;
  --surface-3: #212a3e;
  --border: #283149;
  --border-strong: #37425f;
  --text: #e8ebf4;
  --text-soft: #c9cfdf;
  --muted: #98a2bb;
  --primary-50: #1b2546;
  --success-bg: #11291d;
  --danger-bg: #2f1517;
  --warning-bg: #2c2410;
  --info-bg: #17213f;
  --success: #4cc77f;
  --danger: #f07171;
  --warning: #e3b44b;
  --info: #8aa8ff;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  --navy-900: #0f1424;
  --navy-800: #151b2e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text);
  background: var(--bg); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon-lg { width: 1.6em; height: 1.6em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
.section { padding-block: clamp(32px, 4vw, 64px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------------- Butonlar ---------------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  padding: 10px 20px; border-radius: var(--radius-sm); border: 1px solid var(--btn-bd); background: var(--btn-bg);
  color: var(--btn-fg); font: inherit; font-weight: 550; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; text-align: center;
}
.btn:hover { text-decoration: none; filter: brightness(.98); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); }
.btn-primary:hover { --btn-bg: var(--primary-600); }
.btn-light { --btn-bg: #fff; --btn-fg: #1b2133; --btn-bd: #fff; }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, .08); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border-strong); }
.btn-olive { --btn-bg: var(--accent, var(--olive)); --btn-fg: #fff; --btn-bd: var(--accent, var(--olive)); }
.btn-gradient { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: transparent; background: var(--grad-price); color: #1b2133; text-shadow: none; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--pill); }
.btn-icon { width: 44px; min-height: 44px; padding: 0; flex-shrink: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }

/* ---------------- Etiketler / rozetler ---------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: .8rem; font-weight: 600; background: var(--surface-3); color: var(--text-soft); white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-dark { background: var(--navy-800); color: #fff; }
.badge-test { background: #ffe6a8; color: #6a4b00; }
/* Referanstaki altın→mavi degrade korunur; WCAG kontrastı için metin koyu lacivert. */
.price-badge { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: var(--radius-sm); background: var(--grad-price); color: #141a2b; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }
.price-badge del { opacity: .75; font-weight: 500; font-size: .85em; white-space: nowrap; }
.price-badge:has(del) { flex-wrap: wrap; white-space: normal; gap: 0 8px; line-height: 1.25; }
.price-badge .now { white-space: nowrap; }
.pill:has(del) { flex-wrap: wrap; white-space: normal; gap: 0 8px; line-height: 1.25; padding-block: 6px; }
.pill del { white-space: nowrap; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 24px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 550; white-space: nowrap; }
a.pill:hover { text-decoration: none; border-color: var(--border-strong); }
.pill-gradient { background: var(--grad-price); border-color: transparent; color: #141a2b; cursor: pointer; font: inherit; font-weight: 600; }

/* ---------------- Uyarılar ---------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent; margin-bottom: 16px; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert p:last-child { margin: 0; }
.alert > div { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.alert strong { color: inherit; }

/* ---------------- Kartlar ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 2.2vw, 28px); box-shadow: var(--shadow-sm); min-width: 0; }
.card-flat { box-shadow: none; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 14px; }
.card + .card { margin-top: 20px; }
/* Izgara içinde kartlar boşluğu "gap" ile alır; ardışık kart kuralı hizayı bozmasın. */
.grid > .card + .card { margin-top: 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------------- Formlar ---------------- */
.field { margin-bottom: 16px; min-width: 0; }
.field label, .label { display: block; font-weight: 550; margin-bottom: 6px; color: var(--text-soft); font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); outline: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .87rem; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; min-width: 0; }
legend { padding: 0 6px; font-weight: 600; }

/* ---------------- Tablolar ---------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: var(--surface-2); font-weight: 600; color: var(--text-soft); white-space: nowrap; font-size: .88rem; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* ---------------- Üst bilgi ---------------- */
.announcement { background: var(--navy-950); color: var(--on-dark); font-size: .9rem; text-align: center; padding: 8px var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.announcement a { color: var(--gold); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-900); color: var(--on-dark); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { max-height: 40px; width: auto; }
.brand-mark { width: 38px; height: 22px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { color: var(--on-dark-muted); padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; text-decoration: none; }
.main-nav a[aria-current="page"] { font-weight: 650; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.icon-btn .count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--navy-900); }
.header-search { position: relative; flex: 1; max-width: 340px; }
.header-search .input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; padding-left: 40px; min-height: 42px; }
.header-search .input::placeholder { color: var(--on-dark-muted); }
.header-search form { position: relative; }
.header-search form > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--on-dark-muted); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; max-height: 70vh; overflow: auto; min-width: 300px; }
.search-results .group-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--surface-2); text-decoration: none; }
.search-results img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-3); }
.search-results .price { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.menu-toggle { display: none; }
.mobile-drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer .backdrop { position: absolute; inset: 0; background: rgba(8, 11, 22, .55); }
.mobile-drawer .panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(88vw, 360px); background: var(--surface); padding: 20px; overflow-y: auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer .panel a.nav-link { padding: 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 550; }
.mobile-drawer .panel a.nav-link:hover { background: var(--surface-2); text-decoration: none; }

/* ---------------- Ana sayfa ---------------- */
.hero { background: var(--navy-900); color: var(--on-dark); padding: clamp(36px, 6vw, 84px) 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(61, 110, 247, .28), transparent); pointer-events: none; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { color: var(--on-dark-muted); font-size: 1.12rem; max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 20px; }
.hero-card img { border-radius: var(--radius); display: block; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; color: var(--on-dark-muted); }
.stat-row strong { display: block; color: #fff; font-size: 1.4rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-card { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); min-width: 0; }
.cat-card:hover { border-color: var(--primary); text-decoration: none; box-shadow: var(--shadow); }
.cat-card .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.cat-card small { display: block; color: var(--muted); }
.type-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.type-tile { padding: 22px; border-radius: var(--radius); background: var(--navy-900); color: #fff; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.type-tile:hover { text-decoration: none; background: var(--navy-800); }
.type-tile small { color: var(--on-dark-muted); }
.banner-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.banner { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grad-promo); color: #fff; padding: 24px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.banner > * { position: relative; }
.banner h3 { color: #fff; }

/* ---------------- Ürün kartları ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.product-card .thumb { aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; display: block; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .title { font-weight: 650; color: var(--text); line-height: 1.3; }
.product-card .title a { color: inherit; }
.product-card .title a::after { content: ""; position: absolute; inset: 0; }
.product-card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .85rem; }
.product-card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.product-card .price { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.product-card .price .now { white-space: nowrap; }
.product-card .price small { color: var(--muted); font-weight: 500; }
.product-card .price del { color: var(--muted); font-weight: 500; font-size: .82rem; white-space: nowrap; }
.product-card .foot .badge { flex: none; }
.stars { display: inline-flex; gap: 1px; color: #e3a008; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .off { color: var(--border-strong); }

/* ---------------- Katalog ---------------- */
.catalog-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filters .card { padding: 18px; }
.filter-group { border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 14px; }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; }
.filter-group h3 { font-size: .95rem; margin-bottom: 10px; }
.filter-group .check { margin-bottom: 8px; font-size: .95rem; }
.cat-tree a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--text-soft); }
.cat-tree a[aria-current="true"] { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.cat-tree .children { padding-left: 14px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-size: .88rem; }
.chip:hover { text-decoration: none; border-color: var(--danger); color: var(--danger); }
.filter-toggle { display: none; }

/* ---------------- Ürün detay (Görsel 1) ---------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .9rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--on-dark-muted); }
.breadcrumb.on-light, .breadcrumb.on-light a { color: var(--muted); }
/* Ürün sayfası tek grid: sol üstte koyu başlık alanı, sağ sütun (galeri + satın alma kutusu) koyu alanın
   üstünden başlayıp beyaz içeriğe taşar (Görsel 1). Koyu zemin yalnız 1. satırın arkasında tam genişlikte çizilir. */
.pd-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "text side" "main side"; column-gap: 32px; align-items: start; position: relative; }
.pd-hero-bg { grid-row: 1; grid-column: 1 / -1; align-self: stretch; background: var(--navy-900); box-shadow: 0 0 0 100vmax var(--navy-900); clip-path: inset(0 -100vmax); }
.pd-hero-text { grid-area: text; color: var(--on-dark); padding: clamp(28px, 4vw, 56px) 0 64px; min-width: 0; position: relative; }
.pd-side { grid-area: side; align-self: stretch; display: flex; flex-direction: column; gap: 24px; min-width: 0; padding-top: clamp(28px, 4vw, 56px); position: relative; z-index: 2; }
.pd-main { grid-area: main; display: flex; flex-direction: column; gap: 24px; min-width: 0; padding-top: 28px; }
.pd-hero-text .eyebrow { font-size: 1.05rem; color: #e3e7f3; margin-bottom: 6px; }
.pd-hero-text h1 { color: #fff; font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.15rem); }
.pd-hero-text .lead { color: #e1e5f0; font-size: 1.08rem; max-width: 720px; margin-bottom: 24px; }
.pd-hero-text .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-hero-text .actions .btn { min-width: 200px; min-height: 60px; font-size: 1.08rem; }
.pd-hero-text .meta-line { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: var(--on-dark-muted); font-size: .92rem; }
.pd-hero-text .meta-line .stars .off { color: rgba(255, 255, 255, .25); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }.gallery { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(10px, 1.5vw, 18px); border: 1px solid var(--border); }
.gallery .main-img { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button { flex: none; width: 76px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-3); cursor: pointer; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--primary); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.about-card .about-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.about-card .about-title { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 240px; }
.about-card .about-title .icon { width: 40px; height: 40px; color: var(--peri); stroke-width: 1.4; }
.about-card .about-title h2 { font-size: 1.3rem; margin: 0; color: var(--text-soft); font-weight: 550; }
.about-card .about-title p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.feature-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.feature-tile { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 550; font-size: 1.05rem; min-width: 0; }
.feature-tile .icon { width: 22px; height: 22px; color: var(--peri); flex: none; }
.feature-tile span { overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.fact { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.fact small { display: block; color: var(--muted); }
.fact strong { font-weight: 650; }
.buy-box { position: sticky; top: calc(var(--header-h) + 16px); }
.buy-box .price-now { font-size: 1.9rem; font-weight: 750; letter-spacing: -.02em; }
.buy-box .price-now del { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.option-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); transition: border-color .15s, background-color .15s; }
.option:hover { border-color: var(--border-strong); }
.option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.option:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.option .opt-body { flex: 1; min-width: 0; }
.option .opt-title { font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; }
.option .opt-title .opt-price { white-space: nowrap; text-align: right; }
.option .opt-title .opt-price del { display: block; font-size: .8rem; }
.option .opt-desc { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.option .opt-warn { color: var(--warning); font-size: .85rem; margin-top: 4px; }
.summary-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines li span:first-child { color: var(--text-soft); min-width: 0; overflow-wrap: anywhere; }
.summary-lines li span:last-child { white-space: nowrap; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 1.25rem; font-weight: 700; padding-top: 12px; margin-top: 12px; border-top: 1px dashed var(--border-strong); }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; color: var(--text-soft); }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list .icon { color: var(--success); margin-top: 2px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.stock-line.in { color: var(--success); }
.stock-line.out { color: var(--danger); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.demo-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 550; min-height: 56px; }
.demo-btn:hover { border-color: var(--primary); text-decoration: none; }
.demo-btn .icon { color: var(--primary); }
.cred-box { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px dashed var(--border-strong); display: grid; gap: 8px; }
.cred-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cred-row code { background: var(--surface); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); font-family: var(--mono); overflow-wrap: anywhere; }
.copy-btn .copy-label { margin-left: 6px; }
@media (max-width: 768px) {
  /* Demo giriş bilgileri: mobilde kopyala düğmesi yalnız ikon; etiket, değer ve düğme tek satırda kalır. */
  .cred-row:has(.copy-btn) { flex-wrap: nowrap; }
  .cred-row:has(.copy-btn) .muted { flex: none; }
  .cred-row:has(.copy-btn) code { min-width: 0; flex: 0 1 auto; }
  .copy-btn { flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0 !important; display: inline-grid; place-items: center; }
  .copy-btn .copy-label { display: none; }
}

/* Sekmeler */
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; margin-bottom: 20px; }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font: inherit; font-weight: 550; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.tab-panel[hidden] { display: none; }
.prose { color: var(--text-soft); overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px; }
.prose pre { background: var(--surface-2); padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; }
.req-table { width: 100%; border-collapse: collapse; }
.req-table th, .req-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.req-table th { color: var(--muted); font-weight: 500; width: 40%; }
.changelog { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.changelog li { border-left: 3px solid var(--primary); padding: 4px 0 4px 14px; }

/* Akordeon (Görsel 3 SSS) */
.accordion { display: grid; gap: 14px; }
.accordion details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.accordion summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 22px; cursor: pointer; font-weight: 550; font-size: 1.05rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .q-icon { color: var(--border-strong); width: 24px; height: 24px; flex: none; }
.accordion summary .chev { margin-left: auto; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; transition: transform .2s; }
.accordion details[open] summary .chev { transform: rotate(180deg); }
.accordion .answer { padding: 0 22px 20px 60px; color: var(--text-soft); }

/* ---------------- Modül kartları (Görsel 2) ---------------- */
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 38px; }
.module-card { background: var(--surface); border-radius: var(--radius-sm); padding: 36px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--border); min-width: 0; }
.module-card .ic { width: 44px; height: 44px; border-radius: 4px; background: var(--accent, var(--olive)); color: #fff; display: grid; place-items: center; }
.module-card h3 { font-size: 1.15rem; margin: 6px 0 0; }
.module-card p { color: var(--muted); margin: 0; line-height: 1.75; }
.module-card .mod-actions { margin-top: auto; padding-top: 14px; display: grid; }
.module-card .mod-price, .module-card .mod-more { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 2px; font-weight: 650; font-size: 1.1rem; transition: opacity .15s; }
.module-card .mod-price { border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.module-card .mod-more { background: var(--accent, var(--olive)); color: #fff; opacity: 0; }
.module-card:hover .mod-more, .module-card:focus-within .mod-more { opacity: 1; text-decoration: none; }
.module-card .owned { font-size: .85rem; color: var(--success); font-weight: 600; }
@media (hover: none) {
  .module-card .mod-actions { gap: 10px; }
  .module-card .mod-price, .module-card .mod-more { grid-area: auto; opacity: 1; min-height: 48px; }
}

/* ---------------- Modül detay (Görsel 3) ---------------- */
.md-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 38px; align-items: start; }
.md-side .card { padding: 26px 28px; }
.md-side .side-title { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 1.1rem; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.md-side nav a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--text-soft); font-weight: 550; }
.md-side nav a .icon:last-child { margin-left: auto; color: var(--border-strong); }
.md-side nav a[aria-current="page"], .md-side nav a:hover { color: var(--primary); text-decoration: none; }
.md-side nav a[aria-current="page"] .icon { color: var(--primary); }
.promo-card { margin-top: 28px; border-radius: var(--radius-sm); background: var(--grad-promo); color: #fff; padding: 26px 26px 26px 110px; position: relative; min-height: 120px; }
.promo-card h3 { color: #fff; margin-bottom: 4px; }
.promo-card p { margin: 0; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.promo-card .icon { position: absolute; left: 26px; top: 26px; width: 60px; height: 60px; stroke-width: 1.3; }
.md-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: var(--radius-sm); background: var(--grad-head); color: #fff; margin-bottom: 38px; }
.md-head .logo { width: 50px; height: 50px; border-radius: 4px; background: rgba(140, 100, 200, .65); display: grid; place-items: center; flex: none; }
.md-head h1 { font-size: 1.25rem; color: #fff; margin: 0; font-weight: 550; }
.md-head .back { margin-left: auto; color: #fff; font-size: .95rem; white-space: nowrap; }
.md-card .md-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.md-card .md-ic { width: 50px; height: 50px; border-radius: 4px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.md-card .md-name { min-width: 0; flex: 1; }
.md-card .md-name strong { display: block; font-size: 1.2rem; font-weight: 550; }
.md-card .md-name small { color: var(--primary); }
.md-card .md-buy { display: flex; gap: 18px; flex-wrap: wrap; }
.md-card .md-desc { padding-top: 30px; color: var(--muted); font-size: 1.05rem; }

/* ---------------- Sepet / ödeme ---------------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .sub-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.cart-item .sub-lines li { display: flex; justify-content: space-between; gap: 10px; }
.cart-item .item-price { text-align: right; font-weight: 650; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1.1rem; }
.qty input { width: 52px; height: 40px; border: 0; text-align: center; background: var(--surface); color: var(--text); font: inherit; }
.order-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.pay-methods { display: grid; gap: 10px; }
.pay-frame { width: 100%; min-height: 620px; border: 0; border-radius: var(--radius); background: #fff; }
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 550; font-size: .95rem; }
.steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .85rem; }
.steps li[aria-current="step"] { color: var(--text); }
.steps li[aria-current="step"]::before { background: var(--primary); color: #fff; }
.steps li + li::after { content: none; }
.status-hero { text-align: center; padding: 40px 20px; }
.status-hero .big-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.status-hero .big-icon .icon { width: 36px; height: 36px; }
.secret-box { display: grid; gap: 10px; }
.secret-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.secret-row .val { font-family: var(--mono); overflow-wrap: anywhere; }

/* ---------------- Mobil satın alma çubuğu ---------------- */
.mobile-buy { display: none; }

/* ---------------- Panel düzeni (müşteri) ---------------- */
.panel-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px 56px; }
.panel-nav { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.panel-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 500; }
.panel-nav a:hover { background: var(--surface-2); text-decoration: none; }
.panel-nav a[aria-current="page"] { background: var(--primary-50); color: var(--primary); font-weight: 600; }
.panel-nav .count { margin-left: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.kpi small { color: var(--muted); display: block; }
.kpi strong { font-size: 1.5rem; display: block; margin-top: 4px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-plain > li:last-child { border-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: .92rem; }
.timeline time { color: var(--muted); }
.message { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.message.staff { background: var(--primary-50); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.message.internal { background: var(--warning-bg); border-style: dashed; }
.message .head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .85rem; margin-bottom: 8px; flex-wrap: wrap; }

/* ---------------- Boş/yükleniyor durumları ---------------- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; color: var(--border-strong); margin-bottom: 12px; }
.empty-state h3 { color: var(--text); }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); min-height: 16px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.spinner { width: 20px; height: 20px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading { position: relative; pointer-events: none; opacity: .7; }

/* ---------------- Sayfalama ---------------- */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .gap { border: 0; background: none; }

/* ---------------- Altbilgi ---------------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 48px 0 24px; margin-top: 48px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; }
.social { display: flex; gap: 10px; margin-top: 12px; }

/* ---------------- Yüzen öğeler ---------------- */
.support-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 22px; background: var(--primary); color: #fff; font-weight: 650; box-shadow: var(--shadow-lg); }
.support-fab:hover { text-decoration: none; background: var(--primary-600); }
.toast-region { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--navy-900); color: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: toastIn .2s ease; }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; background: var(--warning); color: #1b2133; text-align: center; padding: 8px; font-weight: 600; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 720px; margin-inline: auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .92rem; }
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(94vw, 560px); width: 100%; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(8, 11, 22, .6); }
dialog.modal .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
dialog.modal .modal-body { padding: 20px; max-height: 75vh; overflow: auto; }
dialog.lightbox { max-width: min(96vw, 1200px); background: transparent; box-shadow: none; }
dialog.lightbox img { border-radius: var(--radius); max-height: 85vh; width: auto; margin: 0 auto; display: block; }

/* ---------------- Yönetim paneli ---------------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--navy-900); color: var(--on-dark-muted); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { font-size: 1.2rem; padding: 6px 10px 18px; }
.admin-side .group { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #6f7894; padding: 14px 10px 6px; }
.admin-side a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--on-dark-muted); font-size: .94rem; }
.admin-side a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.admin-side a[aria-current="page"] { background: rgba(61, 110, 247, .22); color: #fff; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.admin-main { padding: 24px; min-width: 0; }
.admin-main .page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-main .page-head h1 { font-size: 1.5rem; margin: 0; }
.admin-toggle { display: none; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.filter-bar .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.repeater-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface-2); }
.repeater-row .field { margin: 0; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.chart-bars .b { flex: 1; background: color-mix(in srgb, var(--primary) 75%, transparent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart-bars .b:hover { background: var(--primary); }

/* ---------------- Müşteri bilgileri / giriş-kayıt kartı (referans tasarım) ---------------- */
.auth-page { max-width: 1000px; }
.co-page { padding-top: 32px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 32px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.co-form { display: flex; flex-direction: column; gap: 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.auth-card-head { background: var(--surface-2); padding: 22px 20px; font-size: 1.12rem; font-weight: 500; color: var(--text-soft); border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; }
.auth-card-body { padding: clamp(20px, 4.4vw, 56px); }
.auth-tabs { display: grid; grid-template-columns: repeat(var(--tabs, 2), minmax(0, 1fr)); gap: clamp(12px, 3vw, 38px); margin-bottom: 40px; }
.auth-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 86px; padding: 12px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 1.32rem; color: var(--text-soft); text-align: center; background: var(--surface); transition: background-color .15s, border-color .15s; }
.auth-tab input { position: absolute; opacity: 0; pointer-events: none; }
.auth-tab .tick { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; color: transparent; }
.auth-tab .tick .icon { width: 16px; height: 16px; stroke-width: 3; }
.auth-tab > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.auth-tab:has(input:checked) { background: var(--surface-2); color: var(--text); font-weight: 600; }
.auth-tab:has(input:checked) .tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.auth-tab:has(input:focus-visible) { outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px; }
.hrow { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: 4px 0; margin-bottom: 12px; }
.hrow-label { font-size: 1.08rem; color: var(--text); font-weight: 450; margin: 0; }
.hrow .field-error { margin-top: 4px; }
.auth-card .input { min-height: 56px; border-radius: 3px; font-size: 1.02rem; }
.auth-card .input[readonly] { background: var(--surface-2); color: var(--text-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.seg-btn { position: relative; display: grid; place-items: center; min-height: 62px; border-radius: 3px; background: var(--surface-3); color: var(--text); font-size: 1.05rem; cursor: pointer; transition: background-color .15s, color .15s; }
.seg-btn input { position: absolute; opacity: 0; pointer-events: none; }
.seg-btn:has(input:checked) { background: var(--primary); color: #fff; }
.seg-btn:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.cust-fields > .hrow:first-child { margin-bottom: 38px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-group { display: flex; min-width: 0; }
.phone-cc { flex: none; width: 92px; min-height: 56px; border: 1px solid var(--border-strong); border-right: 0; border-radius: 3px 0 0 3px; background: var(--surface-3); color: var(--text); font: inherit; padding: 0 8px; cursor: pointer; }
.phone-group .input { border-radius: 0 3px 3px 0; min-width: 0; }
.consent-row { margin: 22px 0 26px; }
.consent-row .check { align-items: flex-start; font-size: 1.04rem; line-height: 1.5; }
.consent-row .check input { width: 24px; height: 24px; margin-top: 1px; }
.consent-row a { font-weight: 700; text-decoration: underline; }
.btn-xl { min-height: 68px; font-size: 1.15rem; font-weight: 700; border-radius: 3px; }
.forgot-link { color: var(--text-soft); }
.auth-panel .row-between .check { font-size: 1.04rem; }
.co-subhead { font-size: 1.12rem; font-weight: 600; margin: 34px 0 14px; padding-top: 24px; border-top: 1px solid var(--border); }
.co-note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; }
.co-note .icon { width: 16px; height: 16px; }
.sum-card { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 22px; }
.sum-card-head { background: var(--surface-2); border: 1px solid var(--border); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 22px 20px; text-align: center; font-size: 1.12rem; font-weight: 500; color: var(--text-soft); margin-bottom: -22px; }
.sum-card-body { background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 6px 6px; padding: 8px 18px 22px; }
.sum-rows { margin: 0; }
.sum-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.sum-rows dt { font-weight: 600; color: var(--text-soft); }
.sum-rows dd { margin: 0; font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.sum-total { display: grid; justify-items: center; gap: 4px; padding: 24px 0 6px; text-align: center; }
.sum-total span { font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--text-soft); font-size: .98rem; }
.sum-total strong { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.15; color: var(--primary); font-weight: 750; overflow-wrap: anywhere; }
.sum-items { margin-top: 14px; font-size: .92rem; }
.sum-items summary { cursor: pointer; color: var(--text-soft); }
.sum-items .summary-lines { margin-top: 10px; }
.sum-back { display: grid; place-items: center; min-height: 62px; border: 1px solid var(--border); border-radius: var(--pill); color: var(--text-soft); font-size: 1.1rem; background: var(--surface); }
.sum-back:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text); }

/* ---------------- Onay kutulu çoklu seçim (yönetim) ---------------- */
.checklist { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.checklist-tools { display: flex; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.checklist-tools .input { min-height: 36px; flex: 1 1 160px; padding: 6px 10px; }
.checklist-count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.checklist-items { max-height: 240px; overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.checklist-items .check { padding: 8px 10px; border-radius: 6px; align-items: center; gap: 12px; }
.checklist-items .check:hover { background: var(--surface-2); }
.checklist-items .check:has(input:checked) { background: var(--primary-50); color: var(--text); font-weight: 550; }
.checklist-items .empty { padding: 10px; color: var(--muted); font-size: .9rem; }

/* ---------------- Duyarlı kırılımlar ---------------- */
@media (max-width: 1280px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .module-card { padding: 28px; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-search { max-width: none; }
  .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pd-wrap { column-gap: 24px; }
  .pd-hero-text .actions .btn { min-width: 0; flex: 1 1 auto; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .co-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .co-grid > .sum-card { order: -1; position: static; }
  .hrow { grid-template-columns: 220px minmax(0, 1fr); }
  .order-summary { position: static; }
  .md-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .md-side .card { padding: 14px 18px; }
  .md-side nav { display: flex; gap: 6px; overflow-x: auto; }
  .md-side nav a { white-space: nowrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--pill); }
  .md-side nav a .icon:last-child { display: none; }
  .md-side .side-title { padding-bottom: 10px; margin-bottom: 10px; }
  .promo-card { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-toggle { display: inline-grid; }
}
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; inset: 0; z-index: 95; max-height: none; background: rgba(8, 11, 22, .55); display: none; padding: 0; }
  .filters.is-open { display: block; }
  .filters .card { position: absolute; right: 0; top: 0; bottom: 0; width: min(90vw, 360px); border-radius: 0; overflow-y: auto; }
  .filter-toggle { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-card { display: none; }
  .panel-layout { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .panel-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .panel-nav a { white-space: nowrap; }
}
@media (max-width: 900px) {
  /* Ürün detayı: tablet dikey ve altında tek sütun; satın alma kutusu hero'nun hemen altına taşar. */
  .pd-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "text" "side" "main"; }
  .pd-hero-text { padding-bottom: 110px; }
  .pd-side { padding-top: 0; margin-top: -90px; }
  .pd-main { padding-top: 24px; }
  .buy-box { position: static; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .site-header .container { gap: 10px; }
  .brand { font-size: 1.2rem; }
  .header-search { display: none; }
  .header-search.is-open { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); }
  .search-toggle { display: inline-grid !important; }
  /* Mobil başlık: masaüstü menüsü ve arama kutusu gizliyken arama/sepet/menü düğmeleri sağa yaslanır. */
  .header-actions { margin-left: auto; gap: 6px; }
  /* Ürün detayı: mobilde daha sıkı boşluklar. Başlık bloğu dikey düzende flex-basis yüzünden 240px yükseklik
     kaplıyordu ("Yazılım Hakkında" yazısının üstünde/altında büyük boşluk) → flex: none. */
  .pd-main { gap: 16px; }
  .pd-main .card { padding: 16px; }
  .about-card .about-head { gap: 12px; padding-bottom: 14px; margin-bottom: 14px; }
  .about-card .about-title { flex: none; gap: 10px; }
  .about-card .about-title .icon { width: 30px; height: 30px; }
  .about-card .about-title h2 { font-size: 1.12rem; }
  .about-card .about-title p { font-size: .9rem; }
  .feature-tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .feature-tile { padding: 10px 14px; gap: 10px; font-size: .98rem; }
  .feature-tile .icon { width: 18px; height: 18px; }
  .facts { gap: 8px; margin-top: 12px; }
  .fact { padding: 9px 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .pd-hero-text .actions .btn { min-width: 0; flex: 1 1 calc(50% - 6px); min-height: 52px; font-size: 1rem; }
  .pd-hero-text .actions .btn:last-child { flex-basis: 100%; }
  .about-card .about-head { flex-direction: column; align-items: flex-start; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-item .thumb { width: 72px; }
  .cart-item .item-price { grid-column: 2; text-align: left; }
  .secret-row { grid-template-columns: minmax(0, 1fr) auto; }
  .secret-row .lbl { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { margin-top: 6px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .support-fab { padding: 12px 16px; bottom: 16px; right: 16px; }
  .support-fab span { display: none; }
  .has-mobile-buy .support-fab { bottom: 96px; }
  .has-mobile-buy .cookie-banner { bottom: 92px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; box-shadow: 0 -8px 24px rgba(20, 28, 51, .08); }
  .mobile-buy .total small { display: block; color: var(--muted); font-size: .78rem; }
  .mobile-buy .total strong { font-size: 1.15rem; white-space: nowrap; }
  .mobile-buy .btn { flex: 1; }
  .has-mobile-buy .site-footer { padding-bottom: 110px; }
  .hrow { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 16px; }
  .hrow-label { font-size: .98rem; }
  .hrow > .hrow-label[aria-hidden="true"] { display: none; }
  .cust-fields > .hrow:first-child { margin-bottom: 22px; }
  .auth-tabs { margin-bottom: 24px; }
  .auth-tab { min-height: 64px; font-size: 1.08rem; gap: 10px; }
  .auth-tab .tick { width: 24px; height: 24px; }
  .seg { gap: 12px; }
  .seg-btn { min-height: 52px; }
  .auth-card .input, .phone-cc { min-height: 50px; }
  .btn-xl { min-height: 58px; }
  .consent-row .check { font-size: .95rem; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 14px; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-weight: 500; text-align: left; }
  .table-stack td.num { text-align: right; }
  .admin-main { padding: 16px; }
  .admin-top { padding: 10px 16px; }
  .md-card .md-buy { width: 100%; }
  .md-card .md-buy .pill { flex: 1 1 auto; }
  .accordion .answer { padding-left: 22px; }
  .accordion summary { padding: 16px; }
  .promo-card { padding-left: 26px; }
}
@media (max-width: 640px) {
  /* Üç seçenekli müşteri kartı (Hesap Oluştur / Giriş Yap / Üye Olmadan): dar ekranda alt alta, tek satır. */
  .auth-tabs.tabs-3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .auth-tabs.tabs-3 .auth-tab { min-height: 54px; justify-content: flex-start; text-align: left; padding: 10px 16px; }
}
@media (max-width: 560px) {
  /* Ana sayfa vitrin özellikleri: üçü tek satırda */
  .stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; font-size: .86rem; line-height: 1.35; }
  .stat-row strong { font-size: 1.08rem; }
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .module-card { padding: 24px; }
  .btn:not(.btn-icon) { padding-inline: 16px; }
  .header-actions .hide-xs, .admin-top .hide-xs { display: none; }
  .admin-top { gap: 4px; }
  .admin-top .btn:not(.btn-icon) { padding-inline: 10px; }
  .admin-top .btn-icon { width: 40px; }
  .md-card .md-top { gap: 14px; }
}
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .brand-mark { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  fieldset { padding: 12px; }
  .option { padding: 12px; gap: 10px; }
  .auth-tabs { gap: 8px; }
  .auth-tab { font-size: .98rem; padding: 10px 6px; gap: 8px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .phone-cc { width: 84px; padding: 0 4px; }
  .admin-top { padding-inline: 10px; gap: 2px; }
  .admin-top .btn:not(.btn-icon) { padding-inline: 8px; }
  .pd-hero-text .actions .btn { flex-basis: 100%; }
}
@media (min-width: 1600px) {
  :root { --container: 1360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .support-fab, .no-print, .announcement, .cookie-banner, .mobile-buy { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; }
}
