/*
 * ESR Türkiye — kabuk ve ortak parçalar (THEME).
 * Kaynak: onaylı prototip (C:\www\esr-turkey\prototype\styles.css). Tüm sınıflar "esr-" önekli.
 * Sayfa içleri: home.css (HOME), catalog.css (CATALOG), commerce.css (COMMERCE).
 */

:root {
  --esr-bg: #ffffff;
  --esr-surface: #f5f5f7;
  --esr-surface-2: #ececef;
  --esr-line: #e3e3e6;
  --esr-text: #1d1d1f;
  --esr-muted: #6e6e73;
  --esr-faint: #a1a1a6;
  --esr-accent: #c8f5b4;
  --esr-accent-hover: #b6ee9d;
  --esr-accent-ink: #0f2a0a;
  --esr-accent-soft: #eefae8;
  --esr-danger: #c4314b;
  --esr-radius: 18px;
  --esr-radius-sm: 12px;
  --esr-header-h: 56px;
  --esr-announce-h: 34px;
  --esr-gutter: clamp(16px, 4vw, 40px);
  --esr-max: 1280px;
  --esr-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --esr-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --esr-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --esr-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--esr-bg);
  color: var(--esr-text);
  font: 400 15px/1.5 var(--esr-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--esr-text); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.money { font-family: var(--esr-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
html.esr-locked, html.esr-locked body { overflow: hidden; }

.esr-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.esr-skip {
  position: absolute; left: 12px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 12px;
  background: var(--esr-text); color: #fff; font-size: 14px; transform: translateY(-160%);
  transition: transform 160ms var(--esr-ease-out);
}
.esr-skip:focus { transform: none; }

.esr-main { min-height: 62vh; outline: none; }

/* ---------- Ortak parçalar ---------- */
.esr-container { max-width: var(--esr-max); margin: 0 auto; padding: 0 var(--esr-gutter); }
.esr-section { padding-top: 56px; padding-bottom: 56px; }
.esr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.esr-section-title { font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--esr-font-display); letter-spacing: -0.02em; margin: 0; }
.esr-section-link { color: var(--esr-muted); font-size: 14px; white-space: nowrap; transition: color 160ms ease; }
.esr-section-link:hover { color: var(--esr-text); }
.esr-eyebrow { font-size: 13px; color: var(--esr-muted); margin: 0 0 6px; }

.esr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 22px; font-weight: 500; font-size: 15px; line-height: 1;
  white-space: nowrap; border: 0; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--esr-ease-out), background-color 160ms ease, color 160ms ease;
}
.esr-btn:active { transform: scale(0.97); }
.esr-btn:disabled, .esr-btn[aria-disabled="true"] { opacity: .45; cursor: default; transform: none; }
.esr-btn-accent { background: var(--esr-accent); color: var(--esr-accent-ink); }
.esr-btn-dark { background: var(--esr-text); color: #fff; }
.esr-btn-ghost { background: var(--esr-surface); color: var(--esr-text); }
.esr-btn-white { background: #fff; color: var(--esr-text); }
.esr-btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .esr-btn-accent:hover { background: var(--esr-accent-hover); }
  .esr-btn-dark:hover { background: #000; }
  .esr-btn-ghost:hover { background: var(--esr-surface-2); }
}
.esr-text-btn { color: var(--esr-muted); font-size: 14px; transition: color 160ms ease; }
.esr-text-btn:hover { color: var(--esr-text); }

.esr-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative;
  color: var(--esr-text); transition: background-color 160ms ease, transform 160ms var(--esr-ease-out);
}
.esr-icon-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .esr-icon-btn:hover { background: var(--esr-surface); } }

.esr-chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain; }
.esr-chips-scroll::-webkit-scrollbar { display: none; }
.esr-chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.esr-chip {
  flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid var(--esr-line);
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: #fff; color: var(--esr-text); white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--esr-ease-out);
}
.esr-chip:active { transform: scale(0.97); }
.esr-chip[aria-pressed="true"], .esr-chip[aria-current="true"], .esr-chip[aria-current="page"] { background: var(--esr-text); color: #fff; border-color: var(--esr-text); }
@media (hover: hover) and (pointer: fine) { .esr-chip:hover { border-color: var(--esr-faint); } }
.esr-chip small { color: var(--esr-muted); font-size: 12px; }
.esr-chip[aria-pressed="true"] small, .esr-chip[aria-current="true"] small, .esr-chip[aria-current="page"] small { color: rgba(255, 255, 255, .7); }

.esr-filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.esr-filter-row::-webkit-scrollbar { display: none; }

.esr-segmented { display: inline-flex; background: var(--esr-surface); border-radius: 22px; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.esr-segmented::-webkit-scrollbar { display: none; }
.esr-segmented a, .esr-segmented button {
  height: 36px; padding: 0 16px; border-radius: 18px; font-size: 14px; display: inline-flex; align-items: center;
  white-space: nowrap; color: var(--esr-muted); transition: background-color 160ms ease, color 160ms ease;
}
.esr-segmented a:hover, .esr-segmented button:hover { color: var(--esr-text); }
.esr-segmented [aria-current="true"], .esr-segmented [aria-current="page"], .esr-segmented [aria-pressed="true"] {
  background: #fff; color: var(--esr-text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.esr-field { display: grid; gap: 6px; }
.esr-field label, .esr-field .esr-field-label { font-size: 12px; color: var(--esr-muted); }
.esr-select {
  appearance: none; -webkit-appearance: none; height: 44px; width: 100%; padding: 0 36px 0 14px; border-radius: var(--esr-radius-sm);
  border: 1px solid var(--esr-line); color: var(--esr-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%236e6e73' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 16px;
}
.esr-select:disabled { color: var(--esr-faint); background-color: var(--esr-surface); }
.esr-input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--esr-radius-sm); border: 1px solid var(--esr-line);
  background: #fff; color: var(--esr-text); font-size: 16px; transition: border-color 160ms ease;
}
textarea.esr-input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.esr-input::placeholder { color: var(--esr-faint); }
.esr-input:focus, .esr-select:focus { outline: none; border-color: var(--esr-text); }
.esr-input:focus-visible, .esr-select:focus-visible { outline: 2px solid var(--esr-text); outline-offset: 1px; }

/* Yol ve sayfa başlığı */
.esr-page-head { padding-top: 28px; padding-bottom: 18px; }
.esr-crumbs { font-size: 13px; color: var(--esr-muted); margin-bottom: 10px; }
.esr-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.esr-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--esr-faint); }
.esr-crumbs a { transition: color 160ms ease; }
.esr-crumbs a:hover { color: var(--esr-text); }
.esr-page-title { font: 700 clamp(28px, 3.6vw, 44px)/1.08 var(--esr-font-display); letter-spacing: -0.03em; margin: 0; }
.esr-page-sub { color: var(--esr-muted); margin: 6px 0 0; max-width: 60ch; }

.esr-empty { padding: 48px 0; color: var(--esr-muted); text-align: center; }
.esr-empty a:not(.esr-btn) { color: var(--esr-text); text-decoration: underline; text-underline-offset: 3px; }

.esr-flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--esr-radius-sm); background: var(--esr-accent-soft); color: var(--esr-accent-ink); font-size: 14px; }
.esr-flash ul { margin: 0; padding-left: 18px; }
.esr-flash-error { background: #fcecef; color: var(--esr-danger); }

/* Güven şeridi */
.esr-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--esr-line); border-bottom: 1px solid var(--esr-line); padding: 26px 0; }
.esr-trust > div { display: flex; gap: 12px; align-items: flex-start; }
.esr-trust svg { flex-shrink: 0; margin-top: 2px; }
.esr-trust p { margin: 0; }
.esr-trust b { display: block; font-weight: 600; font-size: 14px; }
.esr-trust span { color: var(--esr-muted); font-size: 13px; }

/* Bildirim */
.esr-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: calc(100vw - 32px); background: var(--esr-text); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform 260ms var(--esr-ease-out), opacity 200ms ease;
}
.esr-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Duyuru şeridi ---------- */
.esr-announce {
  height: var(--esr-announce-h);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  background: var(--esr-accent); color: var(--esr-accent-ink);
  font-size: 13px; padding: 0 16px; white-space: nowrap; overflow: hidden;
}
.esr-announce span + span::before { content: "·"; margin-right: 18px; opacity: .5; }
.esr-announce > span { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Üst menü ---------- */
.esr-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--esr-line);
}
.esr-header-inner {
  max-width: var(--esr-max); margin: 0 auto; padding: 0 var(--esr-gutter);
  height: var(--esr-header-h); display: flex; align-items: center; gap: 28px;
}
.esr-logo { display: inline-flex; align-items: baseline; gap: 6px; flex-shrink: 0; color: var(--esr-text); }
.esr-logo-mark { font: 700 26px/1 var(--esr-font-display); letter-spacing: -0.06em; }
.esr-logo-sub { font-size: 12px; color: var(--esr-muted); }
.esr-logo-img { height: 28px; width: auto; max-width: 160px; object-fit: contain; align-self: center; }

.esr-nav { display: flex; gap: clamp(16px, 1.8vw, 26px); flex: 1; justify-content: center; min-width: 0; }
.esr-nav a { font-size: 14px; color: var(--esr-text); opacity: .8; padding: 6px 0; position: relative; white-space: nowrap; transition: opacity 160ms ease; }
.esr-nav a:hover, .esr-nav a[aria-current="page"] { opacity: 1; }
.esr-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--esr-text); }

.esr-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.esr-menu-btn { display: none; }
/* Kategori sayısı/uzunluğu ve Cihazım çipi veriye bağlı: sığmazsa theme.js başlığı menü düğmesine çevirir. */
.esr-header.is-compact .esr-nav { visibility: hidden; position: absolute; pointer-events: none; }
.esr-header.is-compact .esr-menu-btn { display: grid; margin-left: -8px; }
.esr-header.is-compact .esr-header-inner { gap: 8px; }
.esr-header.is-compact .esr-logo { margin-right: auto; }
.esr-cart-count {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--esr-text); color: #fff; font-size: 11px; line-height: 17px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.esr-my-device {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 5px 0 12px; max-width: 260px;
  border-radius: 16px; background: var(--esr-surface); font-size: 13px; white-space: nowrap; min-width: 0;
}
.esr-my-device-link { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; overflow: hidden; }
.esr-my-device-link b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.esr-my-device-label { color: var(--esr-muted); }
.esr-my-device-x {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--esr-muted);
  transition: background-color 160ms ease, color 160ms ease;
}
.esr-my-device-x:hover { background: var(--esr-surface-2); color: var(--esr-text); }
/* Dokunmatik ekranlarda daha geniş dokunma alanı */
@media (pointer: coarse) { .esr-my-device-x { position: relative; } .esr-my-device-x::after { content: ""; position: absolute; inset: -9px; } }

/* ---------- Çekmeceler ---------- */
.esr-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 40; opacity: 0; transition: opacity 240ms ease; }
.esr-scrim.is-open { opacity: 1; }
.esr-drawer {
  position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 41;
  display: flex; flex-direction: column; transition: transform 320ms var(--esr-ease-drawer);
  outline: none;
}
.esr-drawer-left { left: 0; transform: translateX(-100%); }
.esr-drawer-right { right: 0; transform: translateX(100%); }
.esr-drawer.is-open { transform: none; }
.esr-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--esr-line); padding-top: calc(18px + env(safe-area-inset-top)); }
.esr-drawer-head h2 { font: 600 18px var(--esr-font-display); margin: 0; }
.esr-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.esr-drawer-foot { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--esr-line); display: grid; gap: 12px; }

.esr-menu-list { list-style: none; margin: 0; padding: 0; }
.esr-menu-link, .esr-menu-group > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--esr-line); font-size: 17px; cursor: pointer;
}
.esr-menu-link span { color: var(--esr-faint); }
.esr-menu-group > summary { list-style: none; }
.esr-menu-group > summary::-webkit-details-marker { display: none; }
.esr-menu-chevron { color: var(--esr-faint); transition: transform 200ms var(--esr-ease-out); }
.esr-menu-group[open] > summary .esr-menu-chevron { transform: rotate(180deg); }
.esr-menu-sub { list-style: none; margin: 0; padding: 4px 0 10px; border-bottom: 1px solid var(--esr-line); }
.esr-menu-sub a { display: block; padding: 10px 0 10px 14px; font-size: 15px; color: var(--esr-muted); transition: color 160ms ease; }
.esr-menu-sub a:hover { color: var(--esr-text); }
.esr-menu-sub li:first-child a { color: var(--esr-text); }
.esr-menu-secondary { margin-top: 20px; }
.esr-menu-secondary .esr-menu-link { font-size: 15px; padding: 13px 0; color: var(--esr-muted); }
.esr-menu-secondary .esr-menu-link:hover { color: var(--esr-text); }
.esr-menu-secondary li:last-child .esr-menu-link { border-bottom: 0; }

/* ---------- Arama ---------- */
.esr-search-sheet {
  position: fixed; inset: 0 0 auto 0; z-index: 45; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  max-height: 80svh; overflow-y: auto; transform: translateY(-8px); opacity: 0;
  transition: transform 200ms var(--esr-ease-out), opacity 200ms ease;
  padding-top: env(safe-area-inset-top);
}
.esr-search-sheet.is-open { transform: none; opacity: 1; }
.esr-search-inner { max-width: 760px; margin: 0 auto; padding: 16px var(--esr-gutter); display: flex; gap: 12px; align-items: center; position: relative; }
.esr-search-icon { position: absolute; left: var(--esr-gutter); color: var(--esr-muted); pointer-events: none; }
.esr-search-inner input {
  flex: 1; min-width: 0; height: 48px; border: 0; border-bottom: 1px solid var(--esr-line); font-size: 20px;
  outline: none; background: transparent; padding: 0 0 0 30px; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.esr-search-inner input:focus { border-bottom-color: var(--esr-text); }
.esr-search-inner input::-webkit-search-cancel-button { -webkit-appearance: none; }
.esr-search-submit { height: 38px; padding: 0 18px; font-size: 14px; }
.esr-search-suggest { max-width: 760px; margin: 0 auto; padding: 4px var(--esr-gutter) 24px; }

/* ---------- Alt bilgi ---------- */
.esr-footer { background: var(--esr-surface); margin-top: 64px; padding: 44px 0 28px; font-size: 13px; color: var(--esr-muted); }
.esr-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; margin-bottom: 32px; }
.esr-footer-logo { margin-bottom: 10px; }
.esr-footer-text { max-width: 34ch; margin: 0; }
.esr-footer h2 { color: var(--esr-text); font-size: 13px; font-weight: 600; margin: 0 0 10px; font-family: var(--esr-font); letter-spacing: 0; }
.esr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.esr-footer a { transition: color 160ms ease; }
.esr-footer a:hover { color: var(--esr-text); }
.esr-footer-contact { margin-top: 16px !important; gap: 4px !important; }
.esr-footer-social { margin-top: 14px !important; display: flex !important; flex-wrap: wrap; gap: 4px 14px !important; }
.esr-footer-bottom { border-top: 1px solid var(--esr-line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Statik sayfalar ---------- */
.esr-static { padding-bottom: 24px; }
.esr-prose { max-width: 72ch; font-size: 16px; line-height: 1.65; color: var(--esr-text); padding-bottom: 24px; overflow-wrap: anywhere; }
.esr-prose > :first-child { margin-top: 0; }
.esr-prose h2 { font: 600 22px/1.25 var(--esr-font-display); letter-spacing: -0.015em; margin: 36px 0 10px; }
.esr-prose h3 { font: 600 18px/1.3 var(--esr-font-display); margin: 28px 0 8px; }
.esr-prose p, .esr-prose ul, .esr-prose ol { margin: 0 0 14px; }
.esr-prose ul, .esr-prose ol { padding-left: 22px; }
.esr-prose li { margin-bottom: 6px; }
.esr-prose a:not(.esr-btn) { text-decoration: underline; text-underline-offset: 3px; }
.esr-prose img { border-radius: var(--esr-radius-sm); height: auto; }
.esr-prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.esr-prose th, .esr-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--esr-line); }
.esr-prose blockquote { margin: 0 0 14px; padding: 12px 16px; background: var(--esr-surface); border-radius: var(--esr-radius-sm); }

.esr-block-crumbs { padding-top: 28px; }
.esr-block-crumbs + .esr-block-hero { padding-top: 0; }
.esr-block-hero-media { margin-top: 24px; border-radius: var(--esr-radius); overflow: hidden; background: var(--esr-surface); aspect-ratio: 21 / 8; }
.esr-block-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.esr-text-image { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: stretch; }
.esr-text-image-left .esr-text-image-media { order: 0; }
.esr-text-image:not(.esr-text-image-left) .esr-text-image-media { order: 2; }
.esr-text-image-solo { grid-template-columns: 1fr; }
.esr-text-image-media { border-radius: var(--esr-radius); overflow: hidden; background: var(--esr-surface); aspect-ratio: 4 / 3.4; position: relative; }
.esr-text-image-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.esr-text-image-copy {
  background: var(--esr-surface); border-radius: var(--esr-radius); padding: clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.esr-text-image-top .esr-text-image-copy { justify-content: flex-start; }
.esr-text-image-copy h2 { font: 700 clamp(28px, 3.4vw, 46px)/1.05 var(--esr-font-display); letter-spacing: -0.03em; margin: 0 0 14px; max-width: 16ch; }
.esr-text-image-body { color: var(--esr-muted); font-size: 17px; margin: 0 0 22px; max-width: 46ch; }
.esr-checklist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.esr-checklist li { display: flex; gap: 10px; align-items: baseline; }
.esr-checklist li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--esr-text); transform: translateY(-2px); }

/* İletişim */
.esr-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: 8px 0 24px; }
.esr-contact-single { grid-template-columns: minmax(0, 640px); }
.esr-contact-list { list-style: none; margin: 0; padding: 0; background: var(--esr-surface); border-radius: var(--esr-radius); }
.esr-contact-list li { display: grid; gap: 2px; padding: 16px 20px; }
.esr-contact-list li + li { border-top: 1px solid var(--esr-line); }
.esr-contact-label { font-size: 12px; color: var(--esr-muted); }
.esr-contact-list a { font-size: 16px; overflow-wrap: anywhere; }
.esr-contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.esr-contact-form .esr-section-title { margin-bottom: 6px; }
.esr-contact-form .esr-page-sub { margin: 0 0 20px; }
.esr-contact-map { border-radius: var(--esr-radius); overflow: hidden; background: var(--esr-surface); aspect-ratio: 16 / 7; margin: 8px 0 24px; }
.esr-contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Çekirdek iletişim formu alanları (core::partials.contact-form-fields) */
.esr-form { display: grid; gap: 16px; }
.esr-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.esr-form-row > * { grid-column: 1 / -1; min-width: 0; }
.esr-form-row > .col-md-6, .esr-form-row > .col-lg-6, .esr-form-row > .col-sm-6 { grid-column: auto; }
.esr-form .form-group { display: grid; gap: 6px; }
.esr-form .form-group > label, .esr-form .contact-form-label { font-size: 12px; color: var(--esr-muted); }
.esr-form .custom-select { display: block; }
.esr-form select.esr-input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%236e6e73' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.esr-form .check-row, .esr-form .contact-form-chip { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--esr-text); }
.esr-form .contact-form-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.esr-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--esr-text); }
.esr-form .contact-form-file { display: grid; gap: 4px; padding: 16px; border: 1px dashed var(--esr-line); border-radius: var(--esr-radius-sm); font-size: 13px; color: var(--esr-muted); cursor: pointer; }
.esr-form .contact-form-file strong { color: var(--esr-text); font-weight: 500; }
.esr-form button[type="submit"] { justify-self: start; }

/* 404 */
.esr-error { padding: clamp(48px, 10vw, 120px) 0 clamp(32px, 6vw, 72px); }
.esr-error-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.esr-error-code {
  margin: 0; font: 700 clamp(96px, 18vw, 200px)/0.9 var(--esr-font-display); letter-spacing: -0.06em;
  color: var(--esr-surface-2); user-select: none;
}
.esr-error-title { margin: 18px 0 8px; font: 700 clamp(26px, 3.4vw, 40px)/1.1 var(--esr-font-display); letter-spacing: -0.03em; max-width: 20ch; }
.esr-error-hint { margin: 0 0 28px; color: var(--esr-muted); max-width: 46ch; }
.esr-error-search { display: flex; gap: 8px; width: min(520px, 100%); margin-bottom: 18px; }
.esr-error-search .esr-input { border-radius: 22px; padding: 0 18px; background: var(--esr-surface); border-color: transparent; }
.esr-error-search .esr-input:focus { background: #fff; border-color: var(--esr-text); }
.esr-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .esr-nav { display: none; }
  .esr-menu-btn { display: grid; margin-left: -8px; }
  .esr-header-inner { gap: 8px; }
}
@media (max-width: 760px) {
  :root { --esr-header-h: 52px; }
  .esr-announce span:not(:first-child) { display: none; }
  .esr-logo { margin-right: auto; }
  .esr-header-actions { gap: 2px; min-width: 0; }
  .esr-my-device { max-width: 132px; }
  .esr-my-device-label { display: none; }
  .esr-section { padding-top: 40px; padding-bottom: 40px; }
  .esr-trust { grid-template-columns: 1fr 1fr; }
  .esr-footer-grid { grid-template-columns: 1fr 1fr; }
  .esr-footer-brand { grid-column: 1 / -1; }
  .esr-text-image { grid-template-columns: 1fr; }
  .esr-text-image:not(.esr-text-image-left) .esr-text-image-media { order: 0; }
  .esr-text-image-copy { padding: 26px 22px; }
  .esr-contact { grid-template-columns: 1fr; }
  .esr-form-row { grid-template-columns: 1fr; }
  .esr-form-row > .col-md-6, .esr-form-row > .col-lg-6, .esr-form-row > .col-sm-6 { grid-column: 1 / -1; }
  /* Mobilde klavyenin "Ara" tuşu gönderir; ayrı düğme yer kaplamasın (erişilebilir kalır). */
  .esr-search-inner input { font-size: 18px; }
  .esr-search-submit { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .esr-contact-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) {
  .esr-error-search { flex-direction: column; }
}

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