/* =========================================================
   Onur Oto Aksesuar — Design System
   Bu dosya src/styles/*.css parçalarından üretilir (assets/css/style.css).
   Düzenleme: src/styles/ → php scripts/build-pages.php
   ========================================================= */

/* ---------- 1. Tokens: açık tema (varsayılan) ---------- */
:root {
    /* Renk — yüzeyler */
    --color-background: #f4f5f7;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;
    --color-surface-muted: #eef0f3;
    --color-surface-sunken: #e7eaee;
    --color-ink: #071428;            /* orijinal lacivert (footer, koyu bantlar) */
    --color-ink-2: #0c1b3a;

    /* Renk — metin */
    --color-text: #0f1218;
    --color-text-muted: #545c69;
    --color-text-subtle: #6a7280; /* beyaz üzerinde 4.8:1 */
    --color-text-on-ink: #f2f4f7;
    --color-text-on-ink-muted: rgba(242, 244, 247, 0.72);

    /* Renk — çizgi */
    --color-border: #e1e4e9;
    --color-border-strong: #cdd2da;
    --color-border-on-ink: rgba(255, 255, 255, 0.12);

    /* Renk — marka ve durum */
    --brand-blue: #2f6bff;      /* orijinal marka mavisi */
    --logo-blue: #3d7dff;
    --badge: #e11d48;
    --color-primary: #2459e8;
    --color-primary-hover: #1d4fd8;
    --color-primary-bg: #2f6bff;
    --color-primary-soft: rgba(47, 107, 255, 0.1);
    --color-primary-ring: rgba(47, 107, 255, 0.3);
    --color-on-primary: #ffffff;
    --color-metal: linear-gradient(135deg, #d9dde3 0%, #f4f5f7 45%, #c9ced6 100%);

    --color-success: #1d7a45;
    --color-success-soft: rgba(29, 122, 69, 0.1);
    --color-warning: #9a5b07;
    --color-warning-soft: rgba(196, 128, 18, 0.12);
    --color-danger: #c0352b;
    --color-danger-soft: rgba(192, 53, 43, 0.09);
    --color-whatsapp: #1f9e55;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    /* Gölge */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px -6px rgba(15, 23, 42, 0.14);
    --shadow-lg: 0 24px 56px -16px rgba(15, 23, 42, 0.28);
    --shadow-focus: 0 0 0 3px var(--color-primary-ring);

    /* Boşluk */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 72px;

    /* Tipografi */
    --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --text-2xs: 11px;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: clamp(24px, 2.4vw, 30px);
    --text-3xl: clamp(28px, 3.4vw, 40px);
    --text-display: clamp(36px, 5.4vw, 64px);
    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.6;

    /* Hareket */
    --dur-fast: 140ms;
    --dur: 220ms;
    --dur-slow: 320ms;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Yerleşim */
    --container: 1280px;
    --gutter: 16px;
    --header-h: 64px;
    --tabbar-h: 0px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --touch: 44px;

    /* Katmanlar */
    --z-float: 80;
    --z-tabbar: 90;
    --z-header: 100;
    --z-dropdown: 120;
    --z-cookie: 150;
    --z-drawer-overlay: 200;
    --z-drawer: 210;
    --z-checkout: 260;
    --z-modal: 300;
    --z-lightbox: 350;
    --z-toast: 400;

    color-scheme: light;
}

/* ---------- Tokens: koyu tema ---------- */
:root[data-theme="dark"] {
    --color-background: #070d18;
    --color-surface: #0f1729;
    --color-surface-elevated: #121c32;
    --color-surface-muted: #0c1528;
    --color-surface-sunken: #08101f;
    --color-ink: #050a14;
    --color-ink-2: #0c1528;

    --color-text: #eceff4;
    --color-text-muted: #a3abb8;
    --color-text-subtle: #8a93a2; /* koyu yüzeyde ~5:1 */

    --color-border: rgba(255, 255, 255, 0.075);
    --color-border-strong: rgba(255, 255, 255, 0.14);

    --color-primary: #6ea8ff;
    --color-primary-hover: #9ec4ff;
    --color-primary-bg: #2f6bff;
    --color-primary-soft: rgba(122, 162, 255, 0.12);
    --color-primary-ring: rgba(122, 162, 255, 0.35);
    --color-metal: linear-gradient(135deg, #2a3038 0%, #1a1e25 50%, #2c323b 100%);

    --color-success: #4cc283;
    --color-success-soft: rgba(76, 194, 131, 0.12);
    --color-warning: #e3a647;
    --color-warning-soft: rgba(227, 166, 71, 0.14);
    --color-danger: #f0776c;
    --color-danger-soft: rgba(240, 119, 108, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 28px 64px -18px rgba(0, 0, 0, 0.75);

    color-scheme: dark;
}

@media (min-width: 768px) {
    :root { --gutter: 24px; --header-h: 72px; }
}
@media (min-width: 1280px) {
    :root { --gutter: 32px; }
}
@media (max-width: 899px) {
    :root { --tabbar-h: 60px; }
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
    margin: 0;
    color: inherit;
    text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--text-md); letter-spacing: -0.005em; }
p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
hr.divider { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-lg) 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

::selection { background: var(--color-primary-bg); color: var(--color-on-primary); }
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico-sm { width: 16px; height: 16px; }

.sr-only, .auth-sr {
    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: fixed; left: 12px; top: -60px; z-index: var(--z-toast);
    background: var(--color-primary-bg); color: var(--color-on-primary);
    padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--color-on-primary); }

.muted { color: var(--color-text-muted); font-size: var(--text-sm); }
.mono { font-family: var(--font-mono); }

/* ---------- 3. Yerleşim ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: var(--space-2xl); }
.section-tight { padding-block: var(--space-xl); }
.section-flush-top { padding-top: 0; }
/* Ton bandı: üst ve alt kenarı keskin çizgi değil, 120 px'te kademeli olarak sayfa zeminine erir */
.section-muted { position: relative; isolation: isolate; }
.section-muted::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--color-surface-muted);
    --soft-edge: linear-gradient(180deg,
        transparent 0, rgba(0, 0, 0, 0.06) 18px, rgba(0, 0, 0, 0.2) 36px, rgba(0, 0, 0, 0.4) 54px, rgba(0, 0, 0, 0.62) 72px, rgba(0, 0, 0, 0.82) 90px, rgba(0, 0, 0, 0.95) 108px, #000 120px,
        #000 calc(100% - 120px), rgba(0, 0, 0, 0.95) calc(100% - 108px), rgba(0, 0, 0, 0.82) calc(100% - 90px), rgba(0, 0, 0, 0.62) calc(100% - 72px), rgba(0, 0, 0, 0.4) calc(100% - 54px), rgba(0, 0, 0, 0.2) calc(100% - 36px), rgba(0, 0, 0, 0.06) calc(100% - 18px), transparent 100%);
    -webkit-mask-image: var(--soft-edge);
            mask-image: var(--soft-edge);
}
@media (min-width: 1024px) {
    .section { padding-block: var(--space-3xl); }
    .section-tight { padding-block: var(--space-2xl); }
    .section-flush-top { padding-top: 0; }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.section-head h2 { font-size: var(--text-2xl); }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center > div { max-width: 640px; }

.eyebrow {
    display: inline-block;
    margin: 0 0 var(--space-xs);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.eyebrow-on-dark { color: #9fb8ff; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: var(--text-sm);
    color: var(--color-text);
    white-space: nowrap;
}
.link-arrow .ico { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--color-primary); }
.link-arrow:hover .ico { transform: translateX(3px); }

.link-btn {
    background: none; border: 0; padding: 0;
    color: var(--color-primary); font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.link-btn:hover { color: var(--color-primary-hover); }

/* Sayfa üst bilgisi */
.page-header {
    padding-block: var(--space-xl) var(--space-lg);
}
.page-header h1 { font-size: var(--text-3xl); }
.page-header .page-lead { margin-top: var(--space-xs); max-width: 640px; }
.page-header-plain { padding-top: var(--space-xl); }
.page-header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.page-header-dark {
    color: var(--color-text-on-ink);
    /* alt boşluk = geçiş bölgesi (metin koyu kısımda kalır) */
    padding-block: var(--space-2xl) calc(var(--space-2xl) + 96px);
    margin-bottom: 0;
    background:
        var(--fade-to-bg) no-repeat bottom / 100% 150px,
        radial-gradient(1200px 400px at 85% -20%, rgba(76, 116, 255, 0.18), transparent 60%),
        var(--color-ink);
}
.page-header-dark .page-lead { color: var(--color-text-on-ink-muted); }
.page-header-dark .breadcrumb a, .page-header-dark .breadcrumb span { color: var(--color-text-on-ink-muted); }
.page-header-dark .breadcrumb [aria-current] { color: var(--color-text-on-ink); }
.page-lead { color: var(--color-text-muted); font-size: var(--text-md); line-height: var(--leading-normal); }

.breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: var(--text-sm); color: var(--color-text-subtle);
    margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [aria-current] { color: var(--color-text); font-weight: 500; }
.breadcrumb-on-dark a, .breadcrumb-on-dark span { color: var(--color-text-on-ink-muted); }
.breadcrumb-on-dark [aria-current] { color: var(--color-text-on-ink); }

/* ---------- Yumuşak geçişler ----------
 * Koyu bant / fotoğraf → sayfa zemini geçişi tek, kademeli (ease-in-out) gradyanla yapılır; doğrusal gradyanın
 * ortasında beliren "çizgi" (Mach bandı) oluşmaz. Zemin rengini izler: açık ve koyu temada aynı yumuşaklık.
 * Kullanım: background: var(--fade-to-bg) no-repeat bottom / 100% <yükseklik> (üstte saydam, altta zemin). */
:root, :root[data-theme="dark"] {
    --fade-to-bg: linear-gradient(180deg,
        color-mix(in srgb, var(--color-background) 0%, transparent) 0%,
        color-mix(in srgb, var(--color-background) 2%, transparent) 10%,
        color-mix(in srgb, var(--color-background) 7%, transparent) 20%,
        color-mix(in srgb, var(--color-background) 15%, transparent) 30%,
        color-mix(in srgb, var(--color-background) 25%, transparent) 40%,
        color-mix(in srgb, var(--color-background) 38%, transparent) 50%,
        color-mix(in srgb, var(--color-background) 52%, transparent) 60%,
        color-mix(in srgb, var(--color-background) 66%, transparent) 70%,
        color-mix(in srgb, var(--color-background) 80%, transparent) 80%,
        color-mix(in srgb, var(--color-background) 92%, transparent) 90%,
        var(--color-background) 100%);
    --fade-from-bg: linear-gradient(0deg,
        color-mix(in srgb, var(--color-background) 0%, transparent) 0%,
        color-mix(in srgb, var(--color-background) 2%, transparent) 10%,
        color-mix(in srgb, var(--color-background) 7%, transparent) 20%,
        color-mix(in srgb, var(--color-background) 15%, transparent) 30%,
        color-mix(in srgb, var(--color-background) 25%, transparent) 40%,
        color-mix(in srgb, var(--color-background) 38%, transparent) 50%,
        color-mix(in srgb, var(--color-background) 52%, transparent) 60%,
        color-mix(in srgb, var(--color-background) 66%, transparent) 70%,
        color-mix(in srgb, var(--color-background) 80%, transparent) 80%,
        color-mix(in srgb, var(--color-background) 92%, transparent) 90%,
        var(--color-background) 100%);   /* aynı geçiş, ters yön (üstte zemin) */
}

.page-hero {
    position: relative;
    isolation: isolate;
    background: var(--color-ink);
    color: var(--color-text-on-ink);
    overflow: hidden;
    /* alt boşluk geçiş bölgesini taşır: metin hiçbir zaman açık zemine erimez */
    padding-block: calc(var(--space-3xl) + 48px) calc(var(--space-2xl) + 120px);
}
.page-hero-media {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
}
.page-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        var(--fade-from-bg) no-repeat top / 100% 110px,
        var(--fade-to-bg) no-repeat bottom / 100% 220px,
        linear-gradient(90deg, rgba(6, 8, 11, 0.92) 0%, rgba(6, 8, 11, 0.7) 45%, rgba(6, 8, 11, 0.35) 100%);
}
.page-hero h1 { font-size: var(--text-display); max-width: 14ch; }
.page-hero .page-lead { color: var(--color-text-on-ink-muted); max-width: 560px; margin-top: var(--space-md); }
@media (min-width: 1024px) { .page-hero { padding-block: 160px 200px; } }
/* Hareket tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 4. Bileşenler ---------- */

/* Düğmeler — tek sistem. .btn-* sınıfları tek başına da çalışır. */
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-danger, .btn-on-dark, .btn-whatsapp, .add-to-cart-btn {
    --btn-h: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--btn-h);
    padding: 0 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active:not(:disabled), .btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled), .add-to-cart-btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary, .add-to-cart-btn { background: var(--color-primary-bg); color: var(--color-on-primary); }
.btn-primary:hover, .add-to-cart-btn:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .add-to-cart-btn:hover { background: #3d6ef5; }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-secondary:hover { border-color: var(--color-text); color: var(--color-text); }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-surface-muted); color: var(--color-text); }
.btn-danger { background: var(--color-danger-soft); color: var(--color-danger); border-color: color-mix(in srgb, var(--color-danger) 30%, transparent); }
.btn-danger:hover { background: var(--color-danger); color: #fff; }
.btn-on-dark { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #188a49; color: #fff; }

.btn-sm { --btn-h: 36px; padding: 0 12px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-lg { --btn-h: 52px; padding: 0 24px; font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn:disabled, .btn-primary:disabled, .btn-secondary:disabled, .add-to-cart-btn:disabled, .btn.is-disabled {
    background: var(--color-surface-sunken); color: var(--color-text-subtle); border-color: transparent; box-shadow: none; transform: none;
}
.btn .ico, .btn-primary .ico, .btn-secondary .ico { transition: transform var(--dur) var(--ease); }
.btn-primary:hover .ico[aria-hidden] { transform: translateX(2px); }
.btn.is-added, .add-to-cart-btn.is-added { background: var(--color-success); color: #fff; }

.btn-spinner, .auth-spinner {
    display: none; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}
.is-loading .btn-spinner, .is-loading .auth-spinner { display: inline-block; }
.is-loading > .ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* İkon düğmesi */
.icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: var(--touch); height: var(--touch);
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text);
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--color-surface-muted); color: var(--color-text); }
.icon-badge {
    position: absolute; top: 4px; right: 3px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--color-primary-bg); color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px var(--color-surface);
}
.icon-badge.is-bump { animation: bump 380ms var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Rozetler */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 24px; padding: 0 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.02em;
    background: var(--color-surface); color: var(--color-text);
}
.badge-sale { background: var(--color-danger); color: #fff; }
.badge-muted { background: rgba(12, 15, 20, 0.78); color: #fff; backdrop-filter: blur(4px); }
.badge-soft { background: var(--color-primary-soft); color: var(--color-primary); }
.count-pill {
    display: inline-flex; align-items: center; vertical-align: middle;
    height: 26px; padding: 0 10px; margin-left: 8px;
    border-radius: var(--radius-pill);
    background: var(--color-surface-muted); color: var(--color-text-muted);
    font: 600 var(--text-xs)/1 var(--font-body); letter-spacing: 0;
}
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface); color: var(--color-text);
    font-size: var(--text-sm); font-weight: 500;
}
.chip small { color: var(--color-text-subtle); font-weight: 500; }
a.chip:hover, button.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Stok göstergesi */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 600; margin: 0; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--color-success); }
.stock-low { color: var(--color-warning); }
.stock-out { color: var(--color-text-subtle); }

/* Fiyat */
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; }
.price {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-lg);
    letter-spacing: -0.02em;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}
.price-old { color: var(--color-text-subtle); font-size: var(--text-sm); text-decoration: line-through; }
.price-save { color: var(--color-danger); font-size: var(--text-xs); font-weight: 700; }

/* Form denetimleri */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .form-group > label, .filter-group legend {
    font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
}
.field-optional { font-weight: 500; color: var(--color-text-subtle); font-size: var(--text-xs); margin-left: 4px; }
.field-hint { font-size: var(--text-xs); color: var(--color-text-subtle); margin: 0; }
.field-error, .error-message {
    display: none;
    margin: 0;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-danger);
}
.field.is-invalid .field-error, .field-error.is-on, .error-message.is-on { display: block; }
.form-control, .search-field {
    width: 100%;
    min-height: var(--touch);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.4;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
    appearance: none;
    -webkit-appearance: none;
}
textarea.form-control { min-height: 88px; resize: vertical; }
.form-control::placeholder, .search-field::placeholder { color: var(--color-text-subtle); }
.form-control:hover { border-color: var(--color-text-subtle); }
.form-control:focus, .search-field:focus { border-color: var(--color-primary); box-shadow: var(--shadow-focus); outline: none; }
.form-control:disabled { background: var(--color-surface-muted); color: var(--color-text-muted); cursor: not-allowed; }
.form-control[aria-invalid="true"] { border-color: var(--color-danger); }
.form-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--color-danger-soft); }
select.form-control {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23808896' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
.form-control-sm { min-height: 38px; padding: 6px 12px; font-size: var(--text-sm); }
select.form-control-sm { padding-right: 36px; }
/* açık liste varken ok yukarı döner */
select.is-sel-open { border-color: var(--color-primary); box-shadow: var(--shadow-focus); }

/* Temaya uyumlu açılır liste (assets/js/select-menu.js) — tüm <select>'lerin sistem listesinin yerine geçer.
 * Site temasını izler; koyu bölgelerde (konfigüratör, header, koyu bantlar) her temada koyu açılır. */
.sel-pop {
    position: fixed; z-index: 10000;
    display: flex; flex-direction: column;
    padding: 6px;
    border-radius: var(--radius-lg);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    font-family: var(--font-body);
    opacity: 0; transform: translateY(-4px) scale(0.985); transform-origin: top center;
    transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}
.sel-pop.is-up { transform-origin: bottom center; transform: translateY(4px) scale(0.985); }
.sel-pop.is-open { opacity: 1; transform: none; }
.sel-pop[hidden] { display: none; }
.sel-list { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sel-opt {
    display: flex; align-items: center; gap: 10px;
    min-height: 38px; padding: 8px 12px 8px 32px;
    border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500; line-height: 1.3;
    cursor: pointer; user-select: none;
    position: relative;
}
.sel-opt.sel-opt-in { padding-left: 40px; }
.sel-opt.is-active { background: var(--color-primary-soft); color: var(--color-text); }
.sel-opt[aria-selected="true"] { color: var(--color-primary); font-weight: 700; }
/* seçili işaret */
.sel-opt[aria-selected="true"]::before {
    content: ''; position: absolute; left: 12px; top: 50%; width: 10px; height: 6px; margin-top: -5px;
    border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.sel-opt[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.sel-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-subtle); }
/* koyu bölgeler: konfigüratör paneliyle aynı cam görünüm */
.sel-pop.is-dark {
    background: rgba(13, 19, 31, 0.97);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 56px -16px rgba(0, 0, 0, 0.7);
    color: #eef2f7;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.sel-pop.is-dark .sel-opt.is-active { background: rgba(143, 182, 255, 0.14); color: #fff; }
.sel-pop.is-dark .sel-opt[aria-selected="true"] { color: #8fb6ff; }
.sel-pop.is-dark .sel-group { color: rgba(238, 242, 247, 0.5); }
@media (prefers-reduced-motion: reduce) { .sel-pop { transition: none; } }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid-1 { grid-template-columns: 1fr; max-width: 440px; }
    .field-full { grid-column: 1 / -1; }
}
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.form-row { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.form-row > * { flex: 1 1 180px; }
.inline-form { display: flex; gap: var(--space-xs); }
.inline-form .form-control { flex: 1; min-width: 0; }

/* Onay kutusu / radyo — ortak */
.check, .radio, .legal-check {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: var(--text-sm); color: var(--color-text);
    line-height: 1.45; position: relative;
}
.check input, .radio input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check-box {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 0;
    border-radius: var(--radius-xs);
    border: 1.5px solid var(--color-border-strong);
    background: var(--color-surface);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.check-box .ico { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(0.6); transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease); }
.check input:checked + .check-box { background: var(--color-primary-bg); border-color: var(--color-primary-bg); }
.check input:checked + .check-box .ico { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check-box { box-shadow: var(--shadow-focus); }
.radio span { display: inline-flex; align-items: center; gap: 10px; }
.radio span::before {
    content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    border: 1.5px solid var(--color-border-strong); background: var(--color-surface);
    transition: border var(--dur-fast) var(--ease);
}
.radio input:checked + span::before { border: 6px solid var(--color-primary-bg); }
.radio input:focus-visible + span::before { box-shadow: var(--shadow-focus); }
.check-inline { display: flex; align-items: center; gap: 8px; }

/* Segment kontrol */
.segmented {
    display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    gap: 4px; padding: 4px;
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
}
.segmented > button, .segmented-opt span {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 0 14px;
    border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--color-text-muted);
    font-size: var(--text-sm); font-weight: 600; cursor: pointer;
    transition: background-color var(--dur-fast), color var(--dur-fast);
}
.segmented-opt { position: relative; display: flex; }
.segmented-opt input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-opt span { flex: 1; }
.segmented > button.active, .segmented > button[aria-checked="true"], .segmented-opt input:checked + span {
    background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm);
}
.segmented-opt input:focus-visible + span { box-shadow: var(--shadow-focus); }

/* Bildirim kutusu */
.notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px; margin: 0;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: var(--color-surface-muted); color: var(--color-text-muted);
}
.notice-warn { background: var(--color-warning-soft); color: var(--color-warning); }
.notice-ok { background: var(--color-success-soft); color: var(--color-success); }
.notice-danger { background: var(--color-danger-soft); color: var(--color-danger); }

/* Kartlar */
.panel-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.panel-card h2 { font-size: var(--text-xl); }
.panel-card h3 { font-size: var(--text-md); margin-bottom: var(--space-sm); }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-md); flex-wrap: wrap; }
.section-hint { color: var(--color-text-muted); font-size: var(--text-sm); margin: 6px 0 var(--space-md); }
@media (min-width: 768px) { .panel-card { padding: var(--space-xl); } }

/* İskelet */
.skeleton {
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--color-surface-muted) 0%, var(--color-surface-sunken) 50%, var(--color-surface-muted) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skeleton-media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.skeleton-banner { height: 180px; border-radius: var(--radius-xl); }
.skeleton-line { height: 14px; margin-bottom: 12px; }
.skeleton-line.h-lg { height: 26px; }
.skeleton-line.h-xl { height: 34px; }
.skeleton-line.h-btn { height: 52px; margin-top: 24px; }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-60 { width: 60%; } .w-90 { width: 90%; } .w-100 { width: 100%; }
.product-skel { aspect-ratio: 4 / 6.4; border-radius: var(--radius-lg); border: 0; }

/* Boş durum */
.empty-state {
    grid-column: 1 / -1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
}
.empty-state h2, .empty-state h3 { font-size: var(--text-xl); margin-bottom: var(--space-xs); }
.empty-state p { color: var(--color-text-muted); max-width: 440px; }
.empty-state-lg { padding-block: var(--space-3xl); }
.empty-icon {
    width: 56px; height: 56px; margin-bottom: var(--space-md);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-surface-muted); color: var(--color-text-muted);
}
.empty-icon .ico { width: 24px; height: 24px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-lg); }

/* Spinner */
.spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--color-border-strong);
    border-top-color: var(--color-primary);
    animation: spin 0.8s linear infinite;
}

/* Tablo sarmalayıcı */
.table-wrap {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border); border-radius: var(--radius-md);
    background: var(--color-surface);
}

/* ---------- 5. Kabuk: duyuru, header (orijinal "hap" navbar), menü ---------- */
.flash-banner {
    position: relative; z-index: calc(var(--z-header) + 1);
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    gap: 6px 12px; padding: 8px var(--gutter);
    background: var(--brand-blue); color: #fff;
    font-size: var(--text-sm); font-weight: 700; text-align: center;
}
.flash-timer { font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, 0.16); padding: 2px 8px; border-radius: 4px; }
.flash-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.flash-link:hover { color: #fff; opacity: 0.85; }

/* Header: düz koyu bant üzerinde yüzen lacivert hap (bant görseli kaldırıldı) */
.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    padding: 10px var(--gutter) 12px;
    color: #f4f6f8;
    transition: padding var(--dur-slow) var(--ease);
}
.header-stage {
    position: absolute; inset: 0; z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #111a28 0%, #0c1320 100%);
    /* alt kenar keskin çizgi yerine kademeli olarak sayfaya erir (maske: zemin rengi temadan bağımsız) */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.92) 64%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.58) 80%, rgba(0, 0, 0, 0.36) 87%, rgba(0, 0, 0, 0.16) 94%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.92) 64%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.58) 80%, rgba(0, 0, 0, 0.36) 87%, rgba(0, 0, 0, 0.16) 94%, transparent 100%);
    transition: opacity var(--dur-slow) var(--ease);
}
/* Ana sayfada hero zaten görselli: bant gizlenir, header hero'nun üstünde yüzer */
body[data-page="homePanel"] .header-stage { opacity: 0; }
body[data-page="homePanel"] .site-header.compact .header-stage { opacity: 0; }
.site-header.compact { padding-top: 8px; padding-bottom: 8px; }

.topbar {
    display: none;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2px 20px 10px;
    align-items: center; justify-content: space-between; gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    max-height: 40px; overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease), opacity var(--dur) ease, padding var(--dur-slow) var(--ease);
}
.topbar-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.topbar-links { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-item, .topbar-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(244, 246, 248, 0.78); }
.topbar-link:hover { color: var(--logo-blue); }
.topbar .ico { width: 13px; height: 13px; }
.site-header.compact .topbar { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
@media (min-width: 900px) { .topbar { display: flex; } }

.header-shell {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    background: rgba(8, 20, 48, 0.86);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(80, 150, 255, 0.22);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(8, 12, 22, 0.28), 0 0 0 1px rgba(61, 125, 255, 0.08);
    transition: background var(--dur-slow) ease, box-shadow var(--dur-slow) ease;
}
.site-header.compact .header-shell {
    background: rgba(8, 20, 48, 0.95);
    box-shadow: 0 14px 36px rgba(8, 12, 22, 0.32), 0 0 0 1px rgba(61, 125, 255, 0.12);
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "menu brand actions"
        "search search search";
    align-items: center;
    column-gap: 4px;
    row-gap: 8px;
    padding: 8px 10px 10px;
}
.hamburger-btn { grid-area: menu; }
.header-row > .brand { grid-area: brand; }
.header-search { grid-area: search; }
.header-actions { grid-area: actions; }
.main-nav { grid-area: nav; }

/* Logo: mavi parlamalı kare + ONUR OTO / AKSESUAR */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f4f6f8; min-width: 0; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 18px rgba(70, 150, 255, 0.38);
}
.site-header.compact .header-row > .brand .brand-mark { width: 34px; height: 34px; }
.brand-word {
    display: inline-flex; align-items: baseline; gap: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1;
    letter-spacing: 0.04em; white-space: nowrap; color: #f4f6f8;
}
.brand-word span { color: var(--logo-blue); font-weight: 600; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.header-actions #favNavBtn, .header-actions #accountWrap, .header-actions #staffNavWrap { display: none; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
.icon-btn-label { display: none; font-size: var(--text-sm); font-weight: 600; }

/* Hap içindeki ikon düğmeleri */
.site-header .icon-btn {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #f4f6f8;
    transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
@media (hover: hover) and (pointer: fine) {
    .site-header .icon-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(61, 125, 255, 0.45); transform: translateY(-1px); }
}
.site-header .icon-badge { background: var(--badge); box-shadow: none; top: 3px; right: 3px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; }
.site-header .account-login {
    width: auto; padding: 0 14px; border-radius: 999px;
    border-color: rgba(244, 246, 248, 0.14); background: transparent;
}
.site-header .account-login:hover { border-color: var(--logo-blue); color: var(--logo-blue); background: rgba(47, 107, 255, 0.12); }
.site-header .account-login .ico { display: none; }

/* Arama */
.header-search { position: relative; min-width: 0; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(244, 246, 248, 0.48); pointer-events: none; width: 16px; height: 16px; }
.site-header .search-field {
    min-height: 42px;
    padding: 10px 14px 10px 40px;
    border-radius: 999px;
    background: rgba(4, 10, 24, 0.62);
    border: 1px solid rgba(80, 150, 255, 0.22);
    color: #f4f6f8;
    font-size: 13px;
}
.site-header .search-field::placeholder { color: rgba(244, 246, 248, 0.42); }
.site-header .search-field:hover { border-color: rgba(80, 150, 255, 0.4); }
.site-header .search-field:focus { border-color: var(--logo-blue); background: rgba(8, 18, 40, 0.88); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18); }

/* Lacivert açılır paneller (arama, hesap, yönetim) */
.search-results, .dropdown-menu {
    background: linear-gradient(180deg, #0d1c3d 0%, #081428 100%);
    color: #eef3ff;
    border: 1px solid rgba(80, 150, 255, 0.24);
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(4, 10, 24, 0.5), 0 0 0 1px rgba(61, 125, 255, 0.08);
}
.search-results {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    z-index: var(--z-dropdown);
    max-height: min(70vh, 480px); overflow-y: auto;
    padding: 8px;
}
.search-results.open { display: block; animation: headerDrop 0.18s var(--ease); }
@keyframes headerDrop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.search-group + .search-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(80, 150, 255, 0.16); }
.search-group-title { margin: 6px 10px 4px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(238, 243, 255, 0.5); }
.search-result {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: 12px;
    background: transparent; color: inherit; text-align: left;
}
.search-result:hover, .search-result.is-active { background: rgba(47, 107, 255, 0.14); color: #fff; }
.search-result img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.search-result > div { min-width: 0; flex: 1; }
.sr-name { font-size: 13px; font-weight: 600; color: #f4f7ff; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr-meta { font-size: 11px; color: rgba(238, 243, 255, 0.55); margin-top: 2px; }
.sr-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--logo-blue); white-space: nowrap; }
.sr-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); display: inline-flex; align-items: center; justify-content: center; color: rgba(238, 243, 255, 0.7); flex-shrink: 0; }
.search-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; }
.search-chips .chip { min-height: 32px; padding: 0 12px; font-size: var(--text-xs); background: rgba(255, 255, 255, 0.05); border-color: rgba(80, 150, 255, 0.22); color: #eef3ff; }
.search-chips .chip:hover { border-color: var(--logo-blue); color: #fff; }
.search-empty { padding: 16px 12px; margin: 0; font-size: var(--text-sm); color: rgba(238, 243, 255, 0.7); }
.search-empty a, .search-all { color: var(--logo-blue); }
.search-all { display: flex; justify-content: center; padding: 10px; font-size: var(--text-sm); font-weight: 600; border-top: 1px solid rgba(80, 150, 255, 0.16); margin-top: 6px; }

/* Kullanıcı çipi */
.account-wrap { position: relative; }
.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 4px 10px 4px 4px;
    border: 1px solid rgba(244, 246, 248, 0.12); border-radius: 999px;
    background: rgba(255, 255, 255, 0.04); color: #f4f6f8;
    font-size: 13px; font-weight: 600;
}
.user-chip:hover { border-color: var(--logo-blue); }
.user-chip-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(47, 107, 255, 0.22); color: var(--logo-blue);
    font-family: var(--font-display); font-size: 12px; font-weight: 800;
    flex-shrink: 0;
}
.user-avatar-lg { width: 56px; height: 56px; font-size: var(--text-xl); background: var(--brand-blue); color: #fff; }

.dropdown-menu {
    display: none;
    position: absolute; right: 0; top: calc(100% + 12px);
    z-index: var(--z-dropdown);
    min-width: 240px; padding: 8px;
}
.account-wrap.open .dropdown-menu { display: block; animation: headerDrop 0.18s var(--ease); }
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: 12px;
    background: transparent; color: #eef3ff;
    font-size: 13.5px; font-weight: 500; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: rgba(47, 107, 255, 0.14); color: #fff; }
.dropdown-menu .ico { color: rgba(238, 243, 255, 0.6); }
.dropdown-menu .danger { color: #ff8a80; }
.dropdown-menu .danger .ico { color: currentColor; }
.dropdown-menu .dropdown-sep { height: 1px; background: rgba(80, 150, 255, 0.16); margin: 6px 4px; }
.dropdown-menu .dropdown-label { padding: 8px 12px 4px; margin: 0; font-size: var(--text-2xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: rgba(238, 243, 255, 0.5); }

/* Mobil çekmece (lacivert) */
.nav-drawer-overlay {
    position: fixed; inset: 0; z-index: var(--z-drawer-overlay);
    background: rgba(8, 12, 22, 0.5);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.nav-drawer-overlay.show { opacity: 1; visibility: visible; }
.main-nav {
    position: fixed; top: 0; bottom: 0; left: 0;
    z-index: var(--z-drawer);
    width: min(88vw, 360px);
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 12px calc(24px + var(--safe-bottom));
    background: linear-gradient(180deg, #0d1c3d 0%, #071428 100%);
    border-right: 1px solid rgba(80, 150, 255, 0.22);
    box-shadow: 0 0 60px rgba(4, 10, 24, 0.6);
    color: #eef3ff;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.main-nav.mobile-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 12px 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(80, 150, 255, 0.16); }
.nav-link {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
    min-height: 48px; padding: 0 12px;
    border: 0; border-radius: 12px;
    background: transparent; color: rgba(244, 246, 248, 0.82);
    font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-align: left;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-link.is-current { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-link-cat .ico { opacity: 0.7; transition: transform var(--dur) var(--ease); }
.cat-dropdown.open .nav-link-cat .ico { transform: rotate(180deg); }
.mega-menu { display: none; }
.cat-dropdown.open .mega-menu { display: block; }
.drawer-section { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid rgba(80, 150, 255, 0.16); }
.drawer-section:empty { display: none; }
.drawer-label { margin: 0 4px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 246, 248, 0.5); }
.drawer-theme .segmented { width: 100%; background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.drawer-theme .segmented > button { color: rgba(238, 243, 255, 0.75); }
.drawer-theme .segmented > button.active { background: rgba(47, 107, 255, 0.22); color: #fff; box-shadow: inset 0 0 0 1px var(--logo-blue); }
.drawer-account a, .drawer-account button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px;
    background: transparent; color: #eef3ff; font-size: var(--text-sm); font-weight: 500; text-align: left;
}
.drawer-account a:hover, .drawer-account button:hover { background: rgba(47, 107, 255, 0.14); color: #fff; }
.drawer-account .ico { color: rgba(238, 243, 255, 0.6); }
.drawer-account .danger { color: #ff8a80; }
.drawer-contact { display: flex; flex-direction: column; gap: 2px; }
.drawer-contact-link { padding: 8px 12px; font-size: var(--text-sm); color: rgba(238, 243, 255, 0.7); }
.drawer-contact-link:hover { color: var(--logo-blue); }

/* Çekmece içi kategori listesi */
.mega-layout { padding: 4px 0 8px; }
.mega-head { margin: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 246, 248, 0.5); }
.mega-cats { display: flex; flex-direction: column; }
.mega-cats a, .mega-cats button {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 42px; padding: 0 12px 0 20px; border: 0; border-radius: 12px;
    background: transparent; color: rgba(238, 243, 255, 0.78); font-size: var(--text-sm); font-weight: 500; text-align: left;
}
.mega-cats a:hover, .mega-cats button:hover { background: rgba(47, 107, 255, 0.14); color: #fff; }
.mega-count { font-size: var(--text-xs); opacity: 0.65; font-variant-numeric: tabular-nums; }
.mega-all { color: var(--logo-blue) !important; font-weight: 700 !important; }
.mega-featured { display: none; }
body.nav-drawer-open { overflow: hidden; }

/* ---------- Header: tablet ve masaüstü ---------- */
@media (min-width: 600px) {
    .header-actions #favNavBtn { display: inline-flex; }
}
@media (min-width: 1024px) {
    .site-header { padding: 14px 28px 16px; }
    .header-shell { border-radius: 999px; }
    .header-row {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas: "brand nav search actions";
        column-gap: 8px;
        row-gap: 0;
        min-height: 62px;
        padding: 8px 12px 8px 10px;
    }
    .hamburger-btn { display: none; }
    .header-actions #accountWrap, .header-actions #staffNavWrap:not([hidden]) { display: block; }
    .site-header .account-login { display: inline-flex; }
    .account-login .icon-btn-label { display: inline; }
    .nav-drawer-overlay { display: none; }
    .header-search { width: 210px; transition: width var(--dur) var(--ease); }
    .header-search:focus-within { width: 300px; }

    .main-nav {
        position: static; transform: none; visibility: visible;
        z-index: auto; /* grid öğesi: aksi halde arama önerilerinin üstüne çıkar */
        width: auto; padding: 0; background: none; box-shadow: none; border: 0; overflow: visible;
        flex-direction: row; align-items: center; justify-content: safe center; gap: 2px;
        min-width: 0; overflow: visible;
    }
    .drawer-head, .drawer-section { display: none; }
    .nav-link {
        width: auto; min-height: 38px; padding: 0 10px;
        border-radius: 12px; font-size: 13px; font-weight: 600;
        color: rgba(244, 246, 248, 0.78);
        white-space: nowrap; flex-shrink: 0;
    }
    .nav-link.is-current, .nav-link.is-current:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
    .cat-dropdown { position: relative; }
    @media (hover: hover) {
        .cat-dropdown:hover .mega-menu { display: block; animation: headerDrop 0.18s var(--ease); }
        .cat-dropdown:hover .nav-link-cat .ico { transform: rotate(180deg); }
    }
    .mega-menu {
        position: absolute; left: 50%; top: calc(100% + 14px);
        transform: translateX(-30%);
        z-index: var(--z-dropdown);
        width: min(720px, 78vw);
        padding: 18px;
        background: linear-gradient(180deg, #0d1c3d 0%, #081428 100%);
        color: #eef3ff;
        border: 1px solid rgba(80, 150, 255, 0.24);
        border-radius: 18px;
        box-shadow: 0 22px 48px rgba(4, 10, 24, 0.5);
    }
    .mega-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover köprüsü */
    .cat-dropdown.open .mega-menu { animation: headerDrop 0.18s var(--ease); }
    .mega-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; padding: 0; }
    .mega-head { margin: 0 8px 10px; }
    .mega-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
    .mega-cats a, .mega-cats button { padding: 0 10px; min-height: 38px; color: rgba(238, 243, 255, 0.82); }
    .mega-all { grid-column: 1 / -1; }
    .mega-featured { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid rgba(80, 150, 255, 0.16); padding-left: 16px; }
    .mega-mini {
        display: flex; align-items: center; gap: 10px; padding: 8px;
        border-radius: 12px; background: rgba(255, 255, 255, 0.04); color: #eef3ff;
    }
    .mega-mini:hover { background: rgba(47, 107, 255, 0.14); color: #fff; }
    .mega-mini img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, 0.06); }
    .mega-mini strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
    .mega-mini span { font-size: 12px; color: var(--logo-blue); font-weight: 700; }
}
/* Dar masaüstünde menü öğeleri sırayla gizlenir (orijinaldeki gibi); gizlenenler çekmece/footer/üst barda da var */
/* Hap en fazla 1280px olduğundan "Araca Göre Bul" masaüstü menüde hiç gösterilmez (hero, çekmece ve footer'da var) */
@media (min-width: 1024px) {
    .main-nav > a.nav-link[href="/urun-bulucu"] { display: none; }
}
@media (min-width: 1024px) and (max-width: 1500px) {
    .topbar-brand { display: none; }
}
@media (min-width: 1024px) and (max-width: 1380px) {
    .main-nav > a.nav-link[href="/iletisim"] { display: none; }
}
@media (min-width: 1024px) and (max-width: 1260px) {
    .brand-word { display: none; }
    .header-search { width: 180px; }
    .header-search:focus-within { width: 240px; }
}
@media (min-width: 1024px) and (max-width: 1100px) {
    .main-nav > a.nav-link[href="/hakkimizda"] { display: none; }
    .nav-link { padding: 0 8px; }
}

/* ---------- 6. Mobil alt menü ve WhatsApp ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: var(--z-tabbar);
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(8, 20, 48, 0.94);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid rgba(80, 150, 255, 0.22);
}
.tabbar-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; padding: 0;
    color: rgba(244, 246, 248, 0.6); font-size: 10.5px; font-weight: 600;
}
.tabbar-item:hover, .tabbar-item.is-current { color: #fff; }
.tabbar-item.is-current .ico { color: var(--logo-blue); }
.tabbar-ico { position: relative; display: inline-flex; }
.tabbar-ico .icon-badge { top: -6px; right: -10px; background: var(--badge); box-shadow: none; }
@media (min-width: 900px) { .tabbar { display: none; } }

.whatsapp-float {
    position: fixed; right: 16px;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
    z-index: var(--z-float);
    width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #25D366; color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
    transition: transform var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.whatsapp-float .ico { width: 26px; height: 26px; }
.whatsapp-float:hover { color: #fff; transform: translateY(-2px); }
body.has-cookie-banner .whatsapp-float { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + var(--cookie-h, 150px) + 12px); }
body.cart-drawer-open .whatsapp-float, body.checkout-open .whatsapp-float, body.nav-drawer-open .whatsapp-float { opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .whatsapp-float { right: 24px; bottom: 24px; } }

/* ---------- Yönetim alt menüsü ---------- */
.admin-subnav { background: var(--color-ink); color: var(--color-text-on-ink); margin-top: 12px; }
.admin-subnav-inner { display: flex; align-items: center; gap: 4px; min-height: 48px; overflow-x: auto; scrollbar-width: none; }
.admin-subnav-inner::-webkit-scrollbar { display: none; }
.admin-subnav-label { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb8ff; white-space: nowrap; }
.admin-subnav a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--color-text-on-ink-muted); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.admin-subnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.admin-subnav a.is-current { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------- 7. Footer ---------- */
.assurance-strip { background: transparent; margin-top: var(--space-2xl); }   /* zemin rengi: footer geçişi kesintisiz */
.assurance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-lg); padding-block: var(--space-lg); }
.assurance-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.assurance-item > .ico { width: 22px; height: 22px; color: var(--color-primary); margin-top: 2px; }
.assurance-item strong { display: block; font-size: var(--text-sm); font-weight: 600; }
.assurance-item span, .assurance-item a { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.assurance-item a:hover { color: var(--color-primary); }
@media (min-width: 900px) { .assurance-grid { grid-template-columns: repeat(4, 1fr); padding-block: var(--space-xl); } }

/* Footer: üst kenar keskin değil; sayfa zemininden lacivert tona kademeli geçiş (üst boşluğun içinde, içeriğin üstünde değil) */
.site-footer { position: relative; isolation: isolate; padding-top: calc(var(--space-2xl) + 96px); font-size: var(--text-sm); background: #071428; color: rgba(244, 246, 248, 0.74); }
.site-footer::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1; pointer-events: none;
    background: var(--fade-from-bg);
}
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.footer-brand { padding-bottom: var(--space-lg); }
.footer-desc { margin: var(--space-md) 0; max-width: 340px; }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .ico { margin-top: 3px; opacity: 0.6; }
.footer-contact a { color: rgba(244, 246, 248, 0.74); }
.footer-col { border-top: 1px solid rgba(244, 246, 248, 0.12); }
.footer-col summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px;
}
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary::after {
    content: ''; width: 8px; height: 8px; margin-right: 4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.footer-col[open] summary::after { transform: rotate(-135deg); }
.footer-col[open] { padding-bottom: var(--space-md); }
.footer-link {
    display: block; width: 100%;
    padding: 6px 0; border: 0; background: none;
    text-align: left; transition: color var(--dur-fast);
}
.footer-bottom {
    display: flex; flex-direction: column; gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-block: var(--space-lg) var(--space-xl);
    border-top: 1px solid rgba(244, 246, 248, 0.12);
    font-size: var(--text-xs);
}
.footer-copy { margin: 0; }
.footer-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(244, 246, 248, 0.16);
    font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.04em;
}
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-xl); }
    .footer-col { border-top: 0; }
    .footer-col summary { min-height: auto; margin-bottom: var(--space-sm); pointer-events: none; }
    .footer-col summary::after { display: none; }
    .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Footer — orijinal lacivert ayrıntıları */
.site-footer .brand-word { font-size: 18px; letter-spacing: 0.08em; font-weight: 800; }
.site-footer .footer-desc { color: rgba(244, 246, 248, 0.5); font-size: 13px; line-height: 1.7; }
.site-footer .footer-link { color: rgba(244, 246, 248, 0.74); font-size: 13px; }
.site-footer .footer-link:hover, .site-footer .footer-contact a:hover { color: var(--logo-blue); }
.site-footer .footer-col summary { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 246, 248, 0.5); }
.site-footer .footer-bottom { border-top-color: rgba(244, 246, 248, 0.12); color: rgba(244, 246, 248, 0.5); }
.site-footer .pay-badge { border-color: rgba(244, 246, 248, 0.16); color: rgba(244, 246, 248, 0.7); }

/* Ana sayfa: hero görseli header'ın arkasına uzanır (orijinal görünüm) */
body[data-page="homePanel"] .hero {
    margin-top: calc(-1 * var(--header-total, 0px));
    padding-top: var(--header-total, 0px);
}
body[data-page="homePanel"] .site-header:not(.compact) .header-shell { background: rgba(8, 20, 48, 0.78); }

/* Dar ekranda logo yazısı iki satır: ONUR OTO / AKSESUAR */
@media (max-width: 599px) {
    .header-row > .brand .brand-word { flex-direction: column; align-items: flex-start; gap: 3px; font-size: 14px; }
    .header-row > .brand .brand-word span { font-size: 10px; letter-spacing: 0.24em; }
    .header-row > .brand { min-width: 0; overflow: hidden; }
    .header-row > .brand .brand-mark { width: 36px; height: 36px; }
}
@media (max-width: 359px) {
    .header-actions .theme-toggle { display: none; }
}

/* ---------- 8. Ana sayfa ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-ink);
    color: var(--color-text-on-ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    /* üstte okunabilirlik karartması; altta kademeli zemin geçişi (bant bitişi görünmez) */
    background:
        var(--fade-to-bg) no-repeat bottom / 100% 40%,
        linear-gradient(180deg, rgba(5, 10, 20, 0.45) 0%, rgba(5, 10, 20, 0.5) 40%, rgba(5, 10, 20, 0.72) 70%, rgba(5, 10, 20, 0.82) 100%);
}
.hero-inner { display: grid; gap: var(--space-xl); padding-block: var(--space-2xl) var(--space-xl); }
.hero-copy { max-width: 620px; }
.hero h1 {
    font-size: var(--text-display);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
}
.hero-sub { margin-top: var(--space-md); color: var(--color-text-on-ink-muted); font-size: var(--text-md); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: var(--space-lg); color: var(--color-text-on-ink-muted); font-size: var(--text-sm); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7aa2ff; }

.hero-panel {
    align-self: end;
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}
.hero-panel-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--space-md); }
.hero-panel-head > .ico { width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.hero-panel-title { font-size: var(--text-lg); }
.hero-panel-head p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.finder-form-inline { display: grid; gap: var(--space-sm); }
.hero-finder-combo { position: relative; }
.suggest-list {
    list-style: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    z-index: var(--z-dropdown);
    max-height: 260px; overflow-y: auto;
    padding: 6px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}
.suggest-list button {
    width: 100%; text-align: left; padding: 9px 10px;
    border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--color-text); font-size: var(--text-sm);
}
.suggest-list button:hover, .suggest-list button.is-active { background: var(--color-surface-muted); }
.hero-finder-empty { padding: 10px; font-size: var(--text-sm); color: var(--color-text-muted); }
.hero-track { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.hero-track-live { font-size: var(--text-sm); margin-bottom: 6px; }
@media (min-width: 640px) {
    .finder-form-inline { grid-template-columns: 1fr 1fr; }
    .finder-form-inline .field:first-child { grid-column: 1 / -1; }
    .finder-form-inline .btn { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .hero { min-height: min(820px, 100vh); display: flex; align-items: center; }
    /* Sol: metin okunurluğu için koyu; alt: sayfa zeminine yumuşak, görünmez geçiş */
    .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 10, 20, 0.9) 0%, rgba(5, 10, 20, 0.62) 38%, rgba(5, 10, 20, 0.12) 70%, rgba(5, 10, 20, 0.3) 100%),
            linear-gradient(180deg, rgba(5, 10, 20, 0.35) 0%, transparent 22%, transparent 55%, color-mix(in srgb, var(--color-background) 55%, transparent) 82%, var(--color-background) 100%);
    }
    .hero-media img { object-position: 68% 58%; }
    .hero-inner { grid-template-columns: minmax(0, 560px) 1fr; align-content: center; column-gap: var(--space-2xl); row-gap: 0; padding-block: var(--space-3xl); }
    .hero-copy-head, .hero-copy-cta { grid-column: 1; }
}

/* Bulucu + sipariş sorgulama: hero'nun hemen altında geniş şerit */
.hero-finder-band { position: relative; z-index: 2; margin-top: calc(-1 * var(--space-xl)); }
.hero-finder-band .hero-panel { align-self: auto; }
@media (min-width: 1024px) {
    .hero-finder-band { margin-top: calc(-1 * var(--space-2xl)); }
    .hero-finder-band .hero-panel {
        display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: end; gap: var(--space-md) var(--space-lg);
        padding: var(--space-lg) var(--space-xl);
    }
    .hero-finder-band .hero-panel-head { margin-bottom: 0; align-self: center; }
    .hero-finder-band .finder-form-inline { grid-template-columns: 1.3fr 1fr 0.7fr auto; align-items: end; }
    .hero-finder-band .finder-form-inline .field:first-child, .hero-finder-band .finder-form-inline .btn { grid-column: auto; }
    .hero-finder-band .hero-track { grid-column: 1 / -1; margin-top: 0; }
}
@media (min-width: 1400px) {
    .hero-finder-band .hero-panel { grid-template-columns: 230px minmax(0, 1fr) 300px; }
    .hero-finder-band .hero-track { grid-column: auto; padding-top: 0; border-top: 0; padding-left: var(--space-lg); border-left: 1px solid var(--color-border); }
}

/* ---------- 3D vitrin (hero-3d.js) ---------- */
.hero-stage { position: relative; }
.hero-stage[hidden] { display: none; }
.hero-stage-canvas { position: absolute; inset: 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.hero-stage-canvas canvas { display: block; width: 100% !important; height: 100% !important; outline: none; opacity: 0; transition: opacity 900ms var(--ease); }
.hero-stage.is-ready .hero-stage-canvas canvas { opacity: 1; }
.hero-stage.is-hover-part .hero-stage-canvas { cursor: pointer; }
.hero-stage.is-dragging .hero-stage-canvas { cursor: grabbing; }

.hero--3d .hero-media { transition: opacity 900ms var(--ease); }
.hero--3d.is-3d-ready .hero-media { opacity: 0; }
/* Showroom zemini: grafit, kontrollü ışık; araçtan fazla dikkat çekmez */
.hero--3d {
    background:
        radial-gradient(60% 45% at 68% 72%, rgba(120, 140, 170, 0.16) 0%, rgba(120, 140, 170, 0) 70%),
        radial-gradient(90% 70% at 65% 30%, #18202d 0%, #0b1019 55%, #05080e 100%);
}
.hero--3d::after {
    background: var(--fade-to-bg) no-repeat bottom / 100% 36%;
}

.hero-3d-tip {
    position: absolute; left: 0; top: 0; z-index: 3;
    padding: 6px 10px; border-radius: 999px;
    background: rgba(10, 14, 22, 0.78); color: #f2f5fa;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 12px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
    pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); will-change: transform;
    transition: opacity 160ms var(--ease);
}
.hero-3d-tip.is-visible { opacity: 1; }
.hero-3d-hint {
    position: absolute; left: 50%; bottom: 72px; z-index: 2; margin: 0;
    transform: translateX(-50%);
    padding: 7px 14px; border-radius: 999px;
    background: rgba(10, 14, 22, 0.6); color: rgba(242, 245, 250, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px; font-weight: 500; white-space: nowrap;
    pointer-events: none; opacity: 0; transition: opacity 600ms var(--ease);
}
.hero-stage.is-ready .hero-3d-hint { opacity: 1; }
.hero-stage.hint-done .hero-3d-hint { opacity: 0; }
.hero-3d-loading {
    position: absolute; left: 50%; bottom: 28px; z-index: 2;
    width: 120px; height: 2px; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden;
    transition: opacity 400ms var(--ease);
}
.hero-3d-loading span { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.75); transition: width 300ms var(--ease); }
.hero-stage.is-ready .hero-3d-loading { opacity: 0; }
.hero-3d-controls {
    position: absolute; left: 50%; bottom: 16px; z-index: 2;
    transform: translateX(-50%);
    display: flex; gap: 6px; padding: 5px;
    border-radius: 999px;
    background: rgba(10, 14, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-3d-controls[hidden] { display: none; }
.hero-3d-controls button {
    min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; white-space: nowrap;
    background: transparent; color: rgba(242, 245, 250, 0.82);
    font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.hero-3d-controls button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero-3d-controls button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.92); color: #0b1019; }
.hero-3d-controls button:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
/* 360° döndürme: ⟲ 45° · 360° otomatik tur · 45° ⟳ (parça kontrollerinin üstünde) */
.hero-3d-rotate {
    position: absolute; left: 50%; bottom: 72px; z-index: 2;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px; padding: 4px;
    border-radius: 999px;
    background: rgba(10, 14, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-3d-rotate[hidden] { display: none; }
.hero-3d-rotate button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 999px;
    background: transparent; color: rgba(242, 245, 250, 0.88);
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
    transition: background var(--dur-fast), color var(--dur-fast);
}
.hero-3d-rotate button svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-3d-rotate button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hero-3d-rotate .hero-3d-spin { padding: 0 14px; background: rgba(47, 107, 255, 0.9); color: #fff; }
.hero-3d-rotate .hero-3d-spin:hover { background: #2f6bff; }
.hero-3d-rotate .hero-3d-spin[aria-pressed="true"] { background: #fff; color: #0b1019; }
.hero-3d-rotate button:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
/* Serbest kamera düğmesi + kontrol ipucu şeridi */
.hero-3d-rotate .hero-3d-free-btn { padding: 0 11px 0 9px; }
.hero-3d-rotate .hero-3d-free-btn[aria-pressed="true"] { background: #ffd21f; color: #0b1019; }
.hero-3d-freehelp {
    position: absolute; top: 14px; left: var(--car-x, 50%); z-index: 3; transform: translateX(-50%);
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
    max-width: calc(100% - 24px); padding: 7px 14px; border-radius: 14px;
    background: rgba(10, 14, 22, 0.7); border: 1px solid rgba(255, 210, 31, 0.35);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: rgba(242, 245, 250, 0.85); font-size: 11.5px; font-weight: 600; pointer-events: none;
}
.hero-3d-freehelp[hidden] { display: none; }
.hero-3d-freehelp { width: max-content; transition: opacity 400ms var(--ease); }
.hero-3d-freehelp.is-faded { opacity: 0; }
@media (max-width: 480px) {
    /* dar ekranda döndürme çubuğu taşmasın: serbest kamera yalnız simge (erişilebilir adı aria-label) */
    .hero-3d-rotate .hero-3d-free-btn [data-label] { display: none; }
    .hero-3d-rotate .hero-3d-free-btn { padding: 0 9px; }
}
@media (max-width: 1023px) {
    .hero-3d-freehelp { top: 8px; gap: 2px 8px; padding: 5px 10px; font-size: 10.5px; border-radius: 10px; max-width: calc(100% - 16px); }
}
.hero-3d-freehelp b { color: #ffd21f; font-weight: 800; letter-spacing: 0.02em; }
.hero-stage.is-freecam canvas { cursor: grab; }
.hero-stage.is-freecam.is-dragging canvas { cursor: grabbing; }
.cfg-views .cfg-free[aria-pressed="true"] { background: #ffd21f; border-color: #ffd21f; color: #0b1019; }
.hero-3d-rotate .hero-3d-config-btn { padding: 0 12px 0 10px; border-left: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0 999px 999px 0; margin-left: 2px; }
.hero-3d-rotate .hero-3d-config-btn[hidden] { display: none; }
.hero-3d-rotate .hero-3d-config-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.92); color: #0b1019; border-radius: 999px; }

/* ---------- 3D konfigüratör paneli ---------- */
.hero-config[hidden] { display: none; }
.hero-config {
    position: relative; z-index: 3;
    display: flex; flex-direction: column;
    color: #eef2f7;
    background: rgba(9, 13, 21, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
}
.cfg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.cfg-eyebrow { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8fb6ff; }
.cfg-title { margin: 0; font-size: var(--text-lg); font-weight: 700; color: #fff; }
.cfg-close { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: transparent; color: #dfe6f0; font-size: 14px; }
.cfg-close:hover { background: rgba(255, 255, 255, 0.1); }
/* kamera ön ayarları */
.cfg-views { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 14px 8px; }
.cfg-views::-webkit-scrollbar { display: none; }
.cfg-views button {
    flex-shrink: 0; min-height: 32px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px;
    background: rgba(255, 255, 255, 0.03); color: rgba(238, 242, 247, 0.8); font-size: 12px; font-weight: 600;
}
.cfg-views button:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
/* kategori sekmeleri */
/* Sekmeler kaydırılmaz: hepsi görünür, sığmazsa ikinci satıra sarar (fareyle yatay kaydırma gerekmez) */
.cfg-tabs { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 14px; padding: 3px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.cfg-tabs button {
    flex: 1 1 30%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px;
    background: transparent; color: rgba(238, 242, 247, 0.72); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.cfg-tabs button:hover { color: #fff; }
.cfg-tabs button[aria-selected="true"] { background: #2f6bff; color: #fff; box-shadow: 0 4px 14px -6px rgba(47, 107, 255, 0.8); }
.cfg-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 8px; overscroll-behavior: contain; }
/* akordeon */
.cfg-acc { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.cfg-acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #fff; font-size: 13px; font-weight: 700; text-align: left;
}
.cfg-acc-head::after { content: ''; width: 8px; height: 8px; border-right: 2px solid rgba(255, 255, 255, 0.5); border-bottom: 2px solid rgba(255, 255, 255, 0.5); transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-fast); flex-shrink: 0; }
.cfg-acc.is-open .cfg-acc-head::after { transform: rotate(-135deg) translateY(-2px); }
.cfg-acc-val { margin-left: auto; font-size: 12px; font-weight: 600; color: #8fb6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.cfg-acc-body { padding: 0 0 14px; }
.cfg-acc-body[hidden] { display: none; }
.cfg-note { margin: 0 0 8px; font-size: 11.5px; color: rgba(238, 242, 247, 0.55); }
.cfg-sub { margin: 8px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238, 242, 247, 0.5); }
/* seçenek kartları */
.cfg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.cfg-card {
    display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03); color: #e8edf4; text-align: left; cursor: pointer;
    transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.cfg-card:hover { border-color: rgba(255, 255, 255, 0.24); }
.cfg-card:active { transform: scale(0.98); }
.cfg-card[aria-checked="true"], .cfg-card[aria-pressed="true"] { border-color: #2f6bff; background: rgba(47, 107, 255, 0.14); box-shadow: inset 0 0 0 1px #2f6bff; }
.cfg-card-wide { width: 100%; grid-column: 1 / -1; }
.cfg-card-text { display: flex; flex-direction: column; min-width: 0; }
.cfg-card-name { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: #fff; }
.cfg-card-desc { margin-top: 2px; font-size: 11px; line-height: 1.25; color: rgba(238, 242, 247, 0.58); }
.cfg-chip {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--chip);
    box-shadow: inset 0 -7px 11px rgba(0, 0, 0, 0.35), inset 0 3px 6px rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.cfg-chip-empty { background: linear-gradient(135deg, #2b3340, #151b25); }
.cfg-ico { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(143, 182, 255, 0.12); color: #a9c6ff; }
.cfg-ico svg { width: 20px; height: 20px; }
.cfg-card:focus-visible, .cfg-tabs button:focus-visible, .cfg-views button:focus-visible, .cfg-acc-head:focus-visible, .cfg-close:focus-visible, .cfg-act:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
/* alt: özet + eylemler */
.cfg-foot { padding: 10px 16px 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 10px; }
.cfg-summary { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; font-size: 11.5px; }
.cfg-summary div { display: flex; justify-content: space-between; gap: 8px; min-width: 0; }
.cfg-summary dt { color: rgba(238, 242, 247, 0.55); }
.cfg-summary dd { margin: 0; color: #fff; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cfg-act {
    min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
    background: transparent; color: #e3e9f1; font-size: 12.5px; font-weight: 600;
}
.cfg-act:hover { background: rgba(255, 255, 255, 0.08); }
.cfg-act.is-done { border-color: #3ccf7a; color: #b8f5cf; }
.cfg-reset { margin-left: auto; }
.cfg-reset:disabled { opacity: 0.45; cursor: default; }
.cfg-act:disabled { opacity: 0.45; cursor: default; }
/* ---------- Konfigüratör V4.1 düzeni (yalnız "Araç modifikasyonu" modu: [data-mode="cfg"]) ----------
 * Yukarıdan aşağı: başlık · mod · kategori sekmeleri · tek araç satırı (ara / filtre / kamera) · seçenekler · alt eylemler.
 * Okunabilirlik: kart adı 14 px, açıklama 12.5 px; seçenek alanı panelin kalan tüm yüksekliğini alır. */
.cfg-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); color: rgba(238, 242, 247, 0.75); font-size: 11px; font-weight: 700; }
.cfg-warn { padding: 8px 11px; border-radius: var(--radius-md); background: rgba(255, 210, 31, 0.1); color: #ffe27a; }
@media (prefers-reduced-motion: no-preference) { .cfg-body > * { animation: cfg-fade 180ms var(--ease); } }
@keyframes cfg-fade { from { opacity: 0.4; } to { opacity: 1; } }

.hero-config[data-mode="cfg"] .cfg-head { padding: 14px 18px 8px; align-items: center; }
.hero-config[data-mode="cfg"] .cfg-eyebrow { display: none; }
.hero-config[data-mode="cfg"] .cfg-title { font-size: 20px; line-height: 1.2; }
.hero-config[data-mode="cfg"] .cfg-mode { margin: 0 18px 10px; }
.hero-config[data-mode="cfg"] .cfg-mode button { font-size: 13.5px; min-height: 38px; }
/* kategori sekmeleri: tek satır, gerekirse yatay kayar */
.hero-config[data-mode="cfg"] .cfg-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 18px; padding: 4px; }
.hero-config[data-mode="cfg"] .cfg-tabs::-webkit-scrollbar { display: none; }
.hero-config[data-mode="cfg"] .cfg-tabs button { flex: 1 0 auto; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
/* araç satırı */
.cfg-tools { display: flex; align-items: center; gap: 8px; padding: 10px 18px 6px; }
.cfg-search { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.cfg-search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: rgba(238, 242, 247, 0.55); pointer-events: none; }
.cfg-search input {
    width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 14px;
}
.cfg-search input::placeholder { color: rgba(238, 242, 247, 0.5); }
.cfg-search input:focus { outline: none; border-color: #8fb6ff; }
.cfg-select {
    flex: 0 0 auto; max-width: 130px; min-height: 40px; padding: 0 30px 0 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
    background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cfd8e6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: #eef2f7; font-size: 13px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
    text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.cfg-select:focus-visible, .cfg-search input:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
.cfg-select option { background: #111722; color: #eef2f7; }
/* seçenek alanı: kalan yüksekliğin tamamı */
.hero-config[data-mode="cfg"] .cfg-body { padding: 4px 18px 12px; min-height: 140px; }
.hero-config[data-mode="cfg"] .cfg-acc-row { display: flex; align-items: center; gap: 8px; }
.hero-config[data-mode="cfg"] .cfg-acc-head { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 2px; font-size: 15px; }
.cfg-acc-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hero-config[data-mode="cfg"] .cfg-acc-val { font-size: 13px; max-width: 46%; }
.hero-config[data-mode="cfg"] .cfg-acc-body { padding: 2px 0 16px; }
.hero-config[data-mode="cfg"] .cfg-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: rgba(238, 242, 247, 0.62); }
.hero-config[data-mode="cfg"] .cfg-sub { margin: 10px 0 8px; font-size: 11.5px; }
.cfg-detail {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
    border: 1px solid rgba(143, 182, 255, 0.35); border-radius: 999px; background: rgba(143, 182, 255, 0.08); color: #cfe0ff; font-size: 12.5px; font-weight: 700;
}
.cfg-detail svg { width: 16px; height: 16px; }
.cfg-detail:hover { background: rgba(143, 182, 255, 0.18); color: #fff; }
.cfg-detail:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
.cfg-hit-title { flex: 1; margin: 12px 0 8px; font-size: 14.5px; font-weight: 700; color: #fff; }
.cfg-hit-title span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8fb6ff; }
/* kartlar: iki sütun, rahat satır aralığı; "Önerilen" köşe rozeti (adla çakışmaz) */
.hero-config[data-mode="cfg"] .cfg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hero-config[data-mode="cfg"] .cfg-card { position: relative; min-height: 64px; padding: 10px 12px; gap: 11px; align-items: center; }
.hero-config[data-mode="cfg"] .cfg-card-name { font-size: 14px; line-height: 1.25; }
.hero-config[data-mode="cfg"] .cfg-card-desc { margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: rgba(238, 242, 247, 0.66); }
.hero-config[data-mode="cfg"] .cfg-chip { width: 30px; height: 30px; }
.hero-config[data-mode="cfg"] .cfg-ico { width: 36px; height: 36px; border-radius: 10px; }
.hero-config[data-mode="cfg"] .cfg-ico svg { width: 22px; height: 22px; }
.hero-config[data-mode="cfg"] .cfg-card-wide { grid-column: 1 / -1; }
.cfg-tag {
    position: absolute; top: -8px; right: 8px; padding: 2px 7px; border-radius: 999px;
    background: #ffd21f; color: #0b1019; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3;
}
/* alt bölüm: katlanır özet + düzenli eylem satırları */
.hero-config[data-mode="cfg"] .cfg-foot { padding: 8px 18px 12px; gap: 6px; }
.cfg-sum-wrap > summary {
    display: flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; list-style: none;
    font-size: 13px; font-weight: 700; color: rgba(238, 242, 247, 0.85);
}
.cfg-sum-wrap > summary::-webkit-details-marker { display: none; }
.cfg-sum-wrap > summary::after { content: ''; margin-left: 10px; width: 7px; height: 7px; border-right: 2px solid rgba(255, 255, 255, 0.5); border-bottom: 2px solid rgba(255, 255, 255, 0.5); transform: rotate(-135deg); transition: transform var(--dur-fast); }
.cfg-sum-wrap:not([open]) > summary::after { transform: rotate(45deg) translateY(-2px); }
.cfg-sum-wrap > summary:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; border-radius: 6px; }
.hero-config[data-mode="cfg"] .cfg-summary { grid-template-columns: 1fr; gap: 5px; max-height: 170px; overflow-y: auto; padding: 6px 0 2px; font-size: 12.5px; }
.hero-config[data-mode="cfg"] .cfg-summary dd { white-space: normal; text-align: right; }
.hero-config[data-mode="cfg"] .cfg-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.hero-config[data-mode="cfg"] .cfg-act { min-height: 34px; padding: 0 6px; font-size: 12.5px; white-space: nowrap; }
.hero-config[data-mode="cfg"] .cfg-resets .cfg-act { color: rgba(238, 242, 247, 0.78); }
.hero-config[data-mode="cfg"] .cfg-resets .cfg-reset { margin: 0; border-color: rgba(255, 120, 120, 0.4); color: #ffc9c9; }

/* ---------- Aksesuar V3: gerçek ürünler (Onur Oto Aksesuar) ---------- */
.hero-config > :not(.cfg-body) { flex-shrink: 0; }   /* yalnız ürün/ seçenek listesi küçülür, kayar */
.cfg-mode { display: flex; gap: 3px; margin: 0 14px 10px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.cfg-mode button {
    flex: 1 1 0; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px;
    background: transparent; color: rgba(238, 242, 247, 0.72); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.cfg-mode button:hover { color: #fff; }
.cfg-mode button[aria-selected="true"] { background: #fff; color: #0b1019; }
.ax-tools { display: flex; align-items: center; gap: 8px; padding: 0 14px 8px; }
.ax-search {
    flex: 1; min-width: 0; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
    background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 13px;
}
.ax-search::placeholder { color: rgba(238, 242, 247, 0.5); }
.ax-search:focus { outline: none; border-color: #8fb6ff; }
.ax-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(238, 242, 247, 0.8); white-space: nowrap; cursor: pointer; }
.ax-stock input { accent-color: #2f6bff; width: 16px; height: 16px; }
.ax-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 14px 4px; }
.ax-chips button {
    min-height: 30px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px;
    background: transparent; color: rgba(238, 242, 247, 0.78); font-size: 11.5px; font-weight: 600;
}
.ax-chips button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.ax-chips button[aria-pressed="true"] { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.ax-filter-chip {
    display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; min-height: 28px; padding: 0 10px;
    border: 1px solid rgba(143, 182, 255, 0.4); border-radius: 999px; background: rgba(47, 107, 255, 0.14); color: #cfe0ff; font-size: 11.5px; font-weight: 600;
}
.ax-list { display: grid; gap: 6px; }
.ax-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 5px 10px 5px 5px;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03); color: #e8edf4; text-align: left; cursor: pointer;
    transition: border-color var(--dur-fast), background var(--dur-fast);
}
.ax-item:hover { border-color: rgba(255, 255, 255, 0.24); }
.ax-item.is-sel { border-color: #2f6bff; background: rgba(47, 107, 255, 0.14); }
.ax-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #fff; }
.ax-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ax-item-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ax-item-meta { font-size: 11.5px; color: rgba(238, 242, 247, 0.65); }
.ax-item-meta b { color: #fff; }
.ax-item-meta .stock-out { color: #ff9a9a; }
.ax-item-meta .stock-low { color: #ffd27a; }
.ax-item-meta .stock-in { color: #8ff0b4; }
.ax-badge {
    flex-shrink: 0; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
    background: rgba(143, 182, 255, 0.14); color: #b8d0ff;
}
.ax-badge.is-3d { background: linear-gradient(135deg, #2f6bff, #7a5cff); color: #fff; }
.ax-badge.is-on { background: #1f9d57; color: #fff; }
.ax-badge.is-muted { background: rgba(255, 255, 255, 0.06); color: rgba(238, 242, 247, 0.55); }
.ax-detail {
    margin: 0 0 10px; padding: 10px; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(47, 107, 255, 0.16), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(143, 182, 255, 0.28);
}
.ax-detail-top { display: flex; gap: 10px; align-items: flex-start; }
.ax-detail-top img { flex-shrink: 0; width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: #fff; }
.ax-detail-info { flex: 1; min-width: 0; }
.ax-brand { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8fb6ff; }
.ax-name { margin: 2px 0 4px; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: #fff; }
.ax-price { margin: 0; font-size: 15px; color: #fff; }
.ax-price s { margin-left: 4px; font-size: 12px; color: rgba(238, 242, 247, 0.5); }
.ax-detail .stock { margin: 2px 0 0; font-size: 12px; font-weight: 600; }
.ax-detail .stock-out { color: #ff9a9a; }
.ax-detail .stock-low { color: #ffd27a; }
.ax-detail .stock-in { color: #8ff0b4; }
.ax-x { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #dfe6f0; font-size: 12px; }
.ax-mount { margin: 8px 0; font-size: 12px; line-height: 1.4; color: rgba(238, 242, 247, 0.85); }
.ax-mount b { color: #fff; }
.ax-mount span { color: rgba(238, 242, 247, 0.55); font-size: 11.5px; }
.ax-mount.is-muted { color: rgba(238, 242, 247, 0.6); }
.ax-detail-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ax-detail-actions .btn { flex: 1 1 auto; justify-content: center; }
.ax-detail-actions .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ax-inst-wrap > summary { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; cursor: pointer; list-style: none; }
.ax-inst-wrap > summary::-webkit-details-marker { display: none; }
.ax-inst-wrap > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.ax-inst-wrap[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.ax-inst-wrap > summary:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
.ax-inst { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 112px; overflow-y: auto; }
.ax-inst li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #fff; }
.ax-inst-name { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.ax-inst-name small { font-size: 10.5px; font-weight: 500; color: rgba(238, 242, 247, 0.55); }
.ax-remove { flex-shrink: 0; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255, 120, 120, 0.4); border-radius: 999px; background: transparent; color: #ffb3b3; font-size: 11.5px; font-weight: 600; }
.ax-remove:hover { background: rgba(255, 90, 90, 0.12); }
.ax-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ax-presets .cfg-act { flex: 1 1 0; min-height: 32px; padding: 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; }
.ax-foot-row { display: grid; gap: 10px; }
.ax-disclaimer { margin: 0; font-size: 11px; line-height: 1.35; color: rgba(238, 242, 247, 0.55); }
.ax-item:focus-visible, .ax-chips button:focus-visible, .cfg-mode button:focus-visible, .ax-remove:focus-visible, .ax-x:focus-visible, .ax-filter-chip:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
/* montaj noktası işaretleri (3D sahnenin üstünde) */
.ax-hots { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.ax-hots[hidden] { display: none; }
.ax-hot {
    position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%;
    background: rgba(47, 107, 255, 0.85); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.25), 0 6px 16px rgba(0, 0, 0, 0.45);
    pointer-events: auto; cursor: pointer; will-change: transform; transition: opacity 160ms var(--ease);
}
.ax-hot.is-off { opacity: 0; pointer-events: none; }
.ax-hot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.ax-hot.is-installed { width: 38px; height: 38px; border-color: #3ccf7a; box-shadow: 0 0 0 4px rgba(60, 207, 122, 0.3), 0 6px 16px rgba(0, 0, 0, 0.45); }
.ax-hot.is-active { border-color: #ffd21f; }
.ax-hot-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ax-hot:not(.is-installed)::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(143, 182, 255, 0.7); animation: ax-pulse 1.8s ease-out infinite; }
.ax-hot-label {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 4px 8px; border-radius: 8px;
    background: rgba(9, 13, 21, 0.9); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
    transition: opacity 120ms var(--ease);
}
.ax-hot:hover .ax-hot-label, .ax-hot:focus-visible .ax-hot-label { opacity: 1; }
.ax-hot:focus-visible { outline: 2px solid #ffd21f; outline-offset: 3px; }
@keyframes ax-pulse { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ax-hot::after { animation: none; } }

@media (min-width: 1024px) {
    /* Masaüstü: sahne tüm hero'yu kaplar (header altından), metin solda üstte durur */
    .hero--3d .hero-stage { position: absolute; inset: var(--header-total, 0px) 0 0 0; z-index: 0; }
    /* hero-inner konumlandırılmaz: sahnenin referansı .hero kalmalı (tam genişlik) */
    .hero--3d .hero-inner { pointer-events: none; }
    /* pointer-events miras alınır: sahne .hero-inner içinde olduğu için etkileşim açıkça geri verilir */
    .hero--3d .hero-stage { pointer-events: auto; }
    .hero--3d .hero-copy { position: relative; z-index: 1; pointer-events: auto; }
    .hero--3d::after {
        background:
            linear-gradient(90deg, rgba(5, 8, 14, 0.72) 0%, rgba(5, 8, 14, 0.35) 30%, rgba(5, 8, 14, 0) 50%),
            linear-gradient(180deg, rgba(5, 8, 14, 0) 72%, var(--color-background) 100%);
    }
    .hero--3d .hero-3d-controls, .hero--3d .hero-3d-rotate, .hero--3d .hero-3d-hint, .hero--3d .hero-3d-loading { left: var(--car-x, 66%); }
    .hero--3d .hero-3d-controls { bottom: calc(var(--space-2xl) + 18px); }
    .hero--3d .hero-3d-rotate { bottom: calc(var(--space-2xl) + 74px); }
    .hero--3d .hero-3d-hint { bottom: calc(var(--space-2xl) + 128px); }
    .hero--3d .hero-3d-freehelp { top: 18px; }
    .hero--3d .hero-3d-loading { bottom: calc(var(--space-2xl) + 30px); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero--3d .hero-sub { max-width: 400px; }
}
@media (min-width: 1024px) {
    /* Konfigüratör açıkken panel metin sütununun yerini alır; araç kalan alana yeniden kadrajlanır */
    .hero--config .hero-copy { opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 0s 200ms; }
    .hero--config .hero-config {
        position: absolute; z-index: 3;
        top: calc(var(--header-total, 0px) + 20px); bottom: 28px;
        left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
        width: min(400px, 34vw);
    }
}
@media (max-width: 1023px) {
    /* Mobil/tablet: alt sayfa (bottom sheet). Araç üstte görünür kalır, panel kendi içinde kayar */
    .hero--config .hero-config {
        position: fixed; z-index: 95;
        left: 8px; right: 8px;
        bottom: calc(var(--tabbar-h, 0px) + var(--safe-bottom, 0px) + 8px);
        max-height: min(48vh, 460px);
        border-radius: var(--radius-xl);
        animation: cfg-sheet-in 260ms var(--ease);
    }
    .hero--config .cfg-head { padding: 12px 14px 6px; }
    .hero--config .cfg-title { font-size: var(--text-md); }
    .hero--config .cfg-body { padding: 2px 14px 6px; }
    .hero--config .cfg-foot { padding: 8px 14px 12px; }
    .hero--config .cfg-summary { display: none; }   /* dar ekranda özet yerine yalnız sıfırlama */
    /* Mobil: kartlar yatay kaydırılan şerit (parmakla kaydır), dokunma hedefi ≥ 52 px */
    .hero--config .cfg-cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(140px, 46%); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: none; }
    .hero--config .cfg-cards::-webkit-scrollbar { display: none; }
    .hero--config .cfg-card { scroll-snap-align: start; }
    .hero--config .cfg-card-wide { grid-column: auto; }
    .hero--config .cfg-reset { margin-left: 0; }
    /* Aksesuar modu: bar biraz daha uzun; filtre çipleri tek satırda yatay kayar, ürün listesi dikey kalır */
    .hero--config .hero-config:has(.ax-tools) { max-height: min(58vh, 540px); }
    .hero--config .cfg-mode { margin: 0 14px 8px; }
    .hero--config .ax-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hero--config .ax-chips::-webkit-scrollbar { display: none; }
    .hero--config .ax-chips button { flex-shrink: 0; }
    .hero--config .ax-inst { max-height: 72px; }
    .hero--config .cfg-foot:has(.ax-presets) { gap: 6px; }
    .hero--config .ax-inst-wrap > summary { margin: 0; }
    /* paketler + paylaş + sıfırla tek satırda yatay kayar */
    .hero--config .ax-foot-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .hero--config .ax-foot-row::-webkit-scrollbar { display: none; }
    .hero--config .ax-foot-row .ax-presets, .hero--config .ax-foot-row .cfg-actions { flex-wrap: nowrap; flex-shrink: 0; }
    .hero--config .ax-presets .cfg-act { flex: 0 0 auto; min-height: 32px; padding: 0 12px; }
    .hero--config .ax-foot-row .cfg-actions .btn, .hero--config .ax-foot-row .cfg-act { white-space: nowrap; }
    .hero--config .ax-disclaimer { font-size: 10.5px; }
    .hero--config .ax-tools { padding-bottom: 6px; }
    .hero--config .cfg-mode { margin-bottom: 6px; }
    .hero--config .ax-detail-top img { width: 64px; height: 64px; }
    .ax-hot-label { display: none; }
    /* V4.1 konfigüratör (alt sayfa): seçenek alanı büyük, kartlar dikey 2 sütun (yatay şerit yok),
       başlık sadeleşir, eylemler tek satırda yatay kayar */
    .hero--config .hero-config[data-mode="cfg"] { max-height: min(60vh, 600px); }
    .hero--config .hero-config[data-mode="cfg"] .cfg-eyebrow { display: none; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-head { padding: 12px 14px 8px; align-items: center; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-title { font-size: 17px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-close { width: 34px; height: 34px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-mode { margin: 0 14px 10px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-mode button { font-size: 13px; min-height: 36px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-tabs { margin: 0 14px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-tabs button { flex: 0 0 auto; min-height: 36px; padding: 0 13px; font-size: 13.5px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-tools { padding: 10px 14px 6px; gap: 6px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-search input { min-height: 38px; font-size: 14px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-select { max-width: 86px; min-height: 38px; padding: 0 22px 0 10px; font-size: 12.5px; background-position: right 9px center; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-body { padding: 2px 14px 8px; min-height: 180px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-cards { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding: 6px 0 0; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-card { min-height: 60px; padding: 9px 10px; gap: 9px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-card-name { font-size: 13.5px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-card-desc { font-size: 12px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-acc-head { min-height: 48px; font-size: 14.5px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-detail span { display: none; }       /* yalnız kamera simgesi */
    .hero--config .hero-config[data-mode="cfg"] .cfg-detail { width: 38px; height: 38px; padding: 0; justify-content: center; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-foot { display: flex; gap: 6px; padding: 8px 14px 12px; overflow-x: auto; scrollbar-width: none; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-foot::-webkit-scrollbar { display: none; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-foot > .cfg-actions { flex: 0 0 auto; overflow: visible; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-sum-wrap { display: none; }        /* dar ekranda özet yerine akordeon değerleri yeterli */
    .hero--config .hero-config[data-mode="cfg"] .cfg-actions { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-actions::-webkit-scrollbar { display: none; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-act { flex: 1 0 auto; min-height: 36px; font-size: 12.5px; }
    .hero--config .hero-config[data-mode="cfg"] .cfg-reset { margin-left: 0; }
}
@media (max-width: 360px) {
    .hero--config .hero-config[data-mode="cfg"] .cfg-cards { grid-template-columns: 1fr; }
}
/* Masaüstü panel biraz daha geniş: iki sütun kart rahat sığar */
@media (min-width: 1024px) {
    .hero--config .hero-config[data-mode="cfg"] { width: min(460px, 38vw); }
    /* hero'nun altına binen bulucu kartı (−space-2xl) panelin alt kenarını örtmesin */
    .hero--config .hero-config { bottom: calc(var(--space-2xl) + 16px); }
    /* tüm kategoriler görünür: 3 + 3 sekme (gizli yatay kaydırma yok) */
    .hero-config[data-mode="cfg"] .cfg-tabs { flex-wrap: wrap; overflow: visible; }
    .hero-config[data-mode="cfg"] .cfg-tabs button { flex: 1 1 22%; min-height: 34px; padding: 0 6px; }     /* 7 sekme → 4 + 3, iki satır */
}
@keyframes cfg-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero--config .hero-config { animation: none; } }
@media (max-width: 1023px) {
    /* Tablet / mobil: başlık → araç → CTA; araç kendi kadrajında */
    .hero--3d .hero-media { display: none; }
    .hero--3d::after { background: var(--fade-to-bg) no-repeat bottom / 100% 26%; }
    .hero--3d .hero-inner { padding-top: var(--space-xl); gap: 0; }
    .hero--3d .hero-stage { height: clamp(360px, 100vw, 580px); margin-inline: calc(-1 * var(--gutter)); }
    /* Mobilde ipucu sahnenin üstünde: alttaki iki kontrol satırıyla çakışmaz */
    .hero--3d .hero-3d-hint { top: 8px; bottom: auto; }
    .hero--3d .hero-copy-cta { margin-top: var(--space-sm); }
    .hero--3d .hero-actions { margin-top: 0; }
    .hero-3d-controls button { padding: 0 11px; min-height: 36px; }
}
@media (max-width: 380px) {
    .hero-3d-controls { gap: 2px; }
    .hero-3d-controls button { padding: 0 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-stage-canvas canvas, .hero--3d .hero-media { transition: none; }
}

/* Kategori kartları — metin öncelikli, küçük ürün görselleri ile */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}
.category-tile {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-md);
    min-height: 168px;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.category-tile:hover { color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.category-tile-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.category-tile-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.25; letter-spacing: -0.01em; }
.category-tile-count { font-size: var(--text-xs); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 6px; }
.category-tile-count .ico { transition: transform var(--dur) var(--ease); color: var(--color-primary); }
.category-tile-media { display: flex; align-items: flex-end; }
.category-tile-media img {
    width: 52px; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-surface);
    background: var(--color-surface-muted);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease);
}
.category-tile-media img + img { margin-left: -14px; }
@media (hover: hover) {
    .category-tile:hover .category-tile-count .ico { transform: translateX(3px); }
    .category-tile:hover .category-tile-media img:nth-child(1) { transform: translateY(-3px) rotate(-3deg); }
    .category-tile:hover .category-tile-media img:nth-child(3) { transform: translateY(-3px) rotate(3deg); }
}
@media (min-width: 640px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
    .category-tile { min-height: 188px; padding: var(--space-lg); }
    .category-tile-media img { width: 60px; }
}
@media (min-width: 1024px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-tile-name { font-size: var(--text-lg); }
}

/* Özellik kartları */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.feature-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.feature-icon {
    width: 44px; height: 44px; margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-primary-soft); color: var(--color-primary);
}
.feature-card h3 { font-size: var(--text-md); margin-bottom: 6px; }
.feature-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

/* Destek kartları */
.support-grid { display: grid; gap: var(--space-md); }
.support-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.support-card h2 { font-size: var(--text-2xl); margin-bottom: 4px; }
.support-card p { color: var(--color-text-muted); max-width: 440px; margin-bottom: var(--space-md); }
.support-card-dark {
    background: var(--color-ink);
    color: var(--color-text-on-ink);
    border-color: transparent;
    background-image: radial-gradient(600px 240px at 100% 0%, rgba(31, 158, 85, 0.22), transparent 70%);
}
.support-card-dark p { color: var(--color-text-on-ink-muted); }
@media (min-width: 900px) { .support-grid { grid-template-columns: 1.2fr 1fr; } }

/* Mağaza bandı */
.store-band {
    display: flex; flex-direction: column; gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}
.store-band h2 { font-size: var(--text-xl); }
.store-band p { color: var(--color-text-muted); margin-top: 4px; }
.store-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (min-width: 900px) {
    .store-band { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-lg) var(--space-xl); }
}

/* Kampanya bandı */
.campaign-banner:empty { display: none; }
.campaign-banner { margin-bottom: var(--space-xl); }
.campaign-card {
    position: relative;
    display: grid; gap: var(--space-md);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    background: var(--color-ink);
    color: var(--color-text-on-ink);
    overflow: hidden;
    isolation: isolate;
    background-image: radial-gradient(800px 300px at 100% 0%, rgba(76, 116, 255, 0.28), transparent 65%);
}
.campaign-card-media { position: absolute; inset: 0; z-index: -1; opacity: 0.35; }
.campaign-card-media img { width: 100%; height: 100%; object-fit: cover; }
.campaign-card h2, .campaign-card h3 { font-size: var(--text-2xl); }
.campaign-card p { color: var(--color-text-on-ink-muted); max-width: 560px; }
.campaign-discount {
    display: inline-flex; align-items: baseline; gap: 6px;
    font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em;
    color: #fff;
}
.campaign-discount small { font-size: var(--text-md); font-weight: 500; letter-spacing: 0; color: var(--color-text-on-ink-muted); }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--text-sm); color: var(--color-text-on-ink-muted); }
.campaign-meta span { display: inline-flex; align-items: center; gap: 6px; }
.campaign-countdown { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
@media (min-width: 900px) {
    .campaign-card { grid-template-columns: 1fr auto; align-items: center; padding: var(--space-2xl); }
}
.campaign-list { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.campaign-list:empty { display: none; }

/* Yatay ürün şeridi */
.product-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 72%);
    gap: var(--space-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
}
.product-rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .product-rail { grid-auto-columns: minmax(220px, 40%); gap: var(--space-md); } }
@media (min-width: 1024px) { .product-rail { grid-auto-columns: calc((100% - 3 * var(--space-md)) / 4); margin-inline: 0; padding-inline: 0; } }

/* Hakkımızda / iletişim */
.split { display: grid; gap: var(--space-xl); }
.split-copy h2 { margin-bottom: var(--space-md); }
.split-copy p { color: var(--color-text-muted); font-size: var(--text-md); }
.fact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; align-self: start; }
.fact-list > div { background: var(--color-surface); padding: var(--space-md) var(--space-lg); }
.fact-list dt { font-size: var(--text-xs); color: var(--color-text-subtle); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fact-list dd { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 1fr; gap: var(--space-3xl); align-items: start; } }

.contact-layout { display: grid; gap: var(--space-lg); }
.contact-stack { display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.contact-card h2 { margin-bottom: var(--space-md); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-md); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list strong { display: block; font-size: var(--text-xs); color: var(--color-text-subtle); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list span, .contact-list a { font-size: var(--text-sm); color: var(--color-text); }
.contact-list a:hover { color: var(--color-primary); }
.contact-ico {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-surface-muted); color: var(--color-text);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.contact-tile {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.contact-tile:hover { color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.contact-tile > span:nth-child(2) { flex: 1; min-width: 0; }
.contact-tile strong { display: block; font-family: var(--font-display); font-weight: 600; }
.contact-tile span span { display: block; font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; }
.contact-tile .tile-arrow { color: var(--color-text-subtle); }
.contact-tile-wa .contact-ico { background: var(--color-whatsapp); color: #fff; }
.map-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface-muted);
    min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
:root[data-theme="dark"] .map-frame iframe { filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
    .map-frame-tall iframe { min-height: 100%; }
}

/* 404 */
.not-found-inner { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.not-found-code {
    font-family: var(--font-display); font-weight: 600; font-size: clamp(72px, 14vw, 140px); line-height: 1;
    letter-spacing: -0.06em; margin-bottom: var(--space-md);
    background: var(--color-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 1px var(--color-border-strong);
}
.not-found h1 { font-size: var(--text-3xl); }
.not-found .page-lead { margin-top: var(--space-sm); }
.not-found-search { width: 100%; max-width: 460px; margin-top: var(--space-lg); }

/* Ana sayfada güvenceler zaten "Neden" bölümünde; footer şeridi tekrar etmesin */
body[data-page="homePanel"] .assurance-strip { display: none; }
body[data-page="homePanel"] .site-footer { margin-top: var(--space-2xl); }

/* Tablet ve mobil: araç görseli üstte net bir bant, aşağı doğru zemine erir */
@media (max-width: 1023px) {
    .hero { --hero-band: min(82vw, 560px); }
    .hero-media { inset: 0 0 auto 0; height: calc(var(--hero-band) + var(--header-total, 0px)); }
    .hero-media img { object-position: 50% 30%; }
    .hero::after {
        /* fotoğraf koyu zemine kademeli erir (doğrusal ara durak yok), bant sonu sayfa zeminine erir */
        background:
            var(--fade-to-bg) no-repeat bottom / 100% 18%,
            linear-gradient(180deg,
                rgba(5, 10, 20, 0.35) 0,
                rgba(5, 10, 20, 0.1) calc(var(--header-total, 0px) + var(--hero-band) * 0.25),
                rgba(5, 10, 20, 0.4) calc(var(--header-total, 0px) + var(--hero-band) * 0.55),
                rgba(5, 10, 20, 0.7) calc(var(--header-total, 0px) + var(--hero-band) * 0.78),
                rgba(5, 10, 20, 0.92) calc(var(--header-total, 0px) + var(--hero-band) * 0.93),
                var(--color-ink) calc(var(--header-total, 0px) + var(--hero-band) * 1.05),
                var(--color-ink) 100%);
    }
    .hero-inner { padding-top: calc(var(--hero-band) * 0.42); }
}
@media (max-width: 640px) {
    .hero { --hero-band: min(105vw, 520px); }
    .hero-media img { object-position: 50% 30%; }
}

/* ---------- Aksesuar paneli V4.1: konfigüratörle aynı sade düzen ([data-mode="acc"]) ----------
 * Kamera seçimi açılır menüde (ayrı satır yok), ürün listesi kalan yüksekliğin tamamını alır, yazılar büyüdü. */
.hero-config[data-mode="acc"] .cfg-head { padding: 14px 18px 8px; align-items: center; }
.hero-config[data-mode="acc"] .cfg-eyebrow { display: none; }
.hero-config[data-mode="acc"] .cfg-title { font-size: 20px; line-height: 1.2; }
.hero-config[data-mode="acc"] .cfg-mode { margin: 0 18px 10px; }
.hero-config[data-mode="acc"] .cfg-mode button { font-size: 13.5px; min-height: 38px; }
.hero-config[data-mode="acc"] .ax-tools { padding: 0 18px 8px; gap: 8px; }
.hero-config[data-mode="acc"] .ax-stock { font-size: 13px; }
.hero-config[data-mode="acc"] .ax-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 18px 6px; gap: 6px; }
.hero-config[data-mode="acc"] .ax-chips::-webkit-scrollbar { display: none; }
.hero-config[data-mode="acc"] .ax-chips button { flex-shrink: 0; min-height: 34px; font-size: 13px; }
.hero-config[data-mode="acc"] .cfg-body { padding: 4px 18px 12px; min-height: 170px; }
.hero-config[data-mode="acc"] .ax-item-name { font-size: 14px; }
.hero-config[data-mode="acc"] .ax-item-meta { font-size: 12.5px; }
.hero-config[data-mode="acc"] .ax-disclaimer { margin: 12px 0 0; font-size: 11.5px; line-height: 1.4; color: rgba(238, 242, 247, 0.5); }
.hero-config[data-mode="acc"] .cfg-foot { padding: 8px 18px 12px; gap: 6px; }
@media (min-width: 1024px) {
    .hero--config .hero-config[data-mode="acc"] { width: min(460px, 38vw); }
}
@media (max-width: 1023px) {
    .hero--config .hero-config[data-mode="acc"] { max-height: min(60vh, 600px); }
    .hero--config .hero-config[data-mode="acc"] .cfg-head { padding: 12px 14px 8px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-title { font-size: 17px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-mode { margin: 0 14px 10px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-mode button { font-size: 13px; min-height: 36px; }
    .hero--config .hero-config[data-mode="acc"] .ax-tools { padding: 0 14px 6px; gap: 6px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-search input { min-height: 38px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-select { max-width: 86px; min-height: 38px; padding: 0 22px 0 10px; font-size: 12.5px; background-position: right 9px center; }
    .hero--config .hero-config[data-mode="acc"] .ax-chips { padding: 0 14px 4px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-body { padding: 2px 14px 8px; min-height: 190px; }
    .hero--config .hero-config[data-mode="acc"] .cfg-foot { padding: 6px 14px 10px; }
}
/* otomatik kayıt bilgisi (konfigüratör alt bölümü) */
.cfg-autosave { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 11.5px; font-weight: 600; color: rgba(238, 242, 247, 0.6); white-space: nowrap; }
.cfg-autosave svg { flex-shrink: 0; width: 13px; height: 13px; color: #3ccf7a; }

/* ---------- Aydınlatma V2 ---------- */
/* "3D Görsel Simülasyon" rozeti: ışık teknolojisi kartlarının gerçek ürün sanılmaması için */
.cfg-sim { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255, 210, 31, 0.45); color: #ffd21f; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
/* seçili kart: kenarlık + vurgu + onay işareti */
.hero-config[data-mode="cfg"] .cfg-card[aria-checked="true"]::after {
    content: ''; position: absolute; right: 9px; bottom: 9px; width: 16px; height: 16px; border-radius: 50%;
    background: #2f6bff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
/* aç/kapa ışık kartları: açıkken sıcak sarı vurgu (seçimden ayrışır) */
.hero-config[data-mode="cfg"] .cfg-switch[aria-checked="true"] { border-color: #ffd21f; background: rgba(255, 210, 31, 0.1); box-shadow: inset 0 0 0 1px #ffd21f; }
.hero-config[data-mode="cfg"] .cfg-switch[aria-checked="true"]::after { background-color: #ffd21f; filter: none; }
.hero-config[data-mode="cfg"] .cfg-switch[aria-checked="true"] .cfg-ico { background: rgba(255, 210, 31, 0.16); color: #ffd21f; }
/* gece modu: showroom zemini kararır (araç ve ışıkları öne çıkar) */
.hero--3d { transition: background-color 500ms var(--ease); }
.hero--3d::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 70% at 65% 40%, #05070b 0%, #020305 70%); opacity: 0; transition: opacity 500ms var(--ease); }
.hero--3d.hero--night::before { opacity: 0.9; }

/* ---------- Işık kontrol şeridi (sahnenin en sağı) ---------- */
.hero-light-dock {
    position: absolute; right: 16px; top: 50%; z-index: 3;
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 5px;
    border-radius: 22px;
    background: rgba(10, 14, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: opacity 400ms var(--ease);
}
.hero-stage:not(.is-ready) .hero-light-dock { opacity: 0; pointer-events: none; }
.hld-list { display: flex; flex-direction: column; gap: 6px; }
.hld-list[hidden] { display: none; }
.hld-group { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hld-toggle, .hld-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: rgba(238, 242, 247, 0.78); cursor: pointer;
    transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.hld-toggle svg, .hld-btn svg { width: 19px; height: 19px; }
.hld-toggle:hover, .hld-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.hld-toggle:focus-visible, .hld-btn:focus-visible { outline: 2px solid #8fb6ff; outline-offset: 2px; }
.hld-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.92); color: #0b1019; }
/* kapalıyken bir ışık yanıyorsa ampulde küçük nokta */
.hld-toggle.has-on::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ffd21f; box-shadow: 0 0 0 2px rgba(10, 14, 22, 0.9); }
/* açık ışık: sıcak sarı; sinyaller kehribar ve yanıp söner; gece modu mavi */
.hld-btn[aria-pressed="true"] { background: rgba(255, 210, 31, 0.18); color: #ffd21f; box-shadow: inset 0 0 0 1px rgba(255, 210, 31, 0.55); }
.hld-left[aria-pressed="true"], .hld-right[aria-pressed="true"], .hld-hazard[aria-pressed="true"] { color: #ff9a1f; background: rgba(255, 138, 18, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 138, 18, 0.6); animation: hld-blink 760ms steps(1, end) infinite; }
.hld-brake[aria-pressed="true"] { color: #ff5a4d; background: rgba(255, 40, 30, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 60, 50, 0.6); }
.hld-night[aria-pressed="true"] { color: #b9ccff; background: rgba(110, 150, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(143, 182, 255, 0.6); }
@keyframes hld-blink { 0% { opacity: 1; } 58% { opacity: 0.45; } }
/* masaüstü: üzerine gelince sol tarafta etiket */
@media (hover: hover) and (pointer: fine) {
    .hld-toggle::before, .hld-btn::before {
        content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
        padding: 5px 9px; border-radius: 8px; background: rgba(10, 14, 22, 0.9); border: 1px solid rgba(255, 255, 255, 0.12);
        color: #eef2f7; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
        opacity: 0; transition: opacity 120ms var(--ease);
    }
    .hld-toggle:hover::before, .hld-btn:hover::before, .hld-btn:focus-visible::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hld-btn { animation: none !important; } }
/* tablet / mobil: sahne alçak → iki sütun, daha küçük düğmeler, sağ kenara yakın */
@media (max-width: 1023px) {
    /* sahnenin üst sağı: alttaki döndürme / kapı çubuklarıyla çakışmaz; düğmeler 3 sütunlu kompakt ızgara */
    .hero-light-dock { right: 8px; top: 10px; transform: none; padding: 4px; gap: 4px; border-radius: 18px; align-items: flex-end; }
    .hld-list { display: grid; grid-template-columns: repeat(3, 32px); gap: 2px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    .hld-list[hidden] { display: none; }
    .hld-group { display: contents; }
    .hld-toggle, .hld-btn { width: 32px; height: 32px; }
    .hld-toggle svg, .hld-btn svg { width: 17px; height: 17px; }
}
/* Kısa masaüstü ekranları (ör. 1280×680, 1366×768): seçenek alanına yer açmak için üst/alt boşluklar sıkılaşır */
@media (min-width: 1024px) and (max-height: 800px) {
    .hero-config[data-mode="cfg"] .cfg-head { padding: 10px 18px 6px; }
    .hero-config[data-mode="cfg"] .cfg-title { font-size: 18px; }
    .hero-config[data-mode="cfg"] .cfg-mode { margin-bottom: 8px; }
    .hero-config[data-mode="cfg"] .cfg-mode button { min-height: 34px; }
    .hero-config[data-mode="cfg"] .cfg-tabs button { min-height: 30px; font-size: 13px; }
    .hero-config[data-mode="cfg"] .cfg-tools { padding: 8px 18px 4px; }
    .hero-config[data-mode="cfg"] .cfg-search input, .hero-config[data-mode="cfg"] .cfg-select { min-height: 36px; }
    .hero-config[data-mode="cfg"] .cfg-foot { padding: 6px 18px 10px; gap: 4px; }
    .hero-config[data-mode="cfg"] .cfg-act { min-height: 32px; }
    .hero-config[data-mode="cfg"] .cfg-acc-head { min-height: 46px; }
}

/* ---------- 9. Ürün kartı ve ızgara ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg) var(--space-md); } }
@media (min-width: 1024px) { .products-grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .products-grid-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Kart: görsel tüm kartı kaplar, bilgiler alttaki koyu geçişin üstünde durur. */
.product-card {
    --card-ink: #ffffff;
    --card-ink-soft: rgba(255, 255, 255, 0.78);
    --card-glass: rgba(255, 255, 255, 0.14);
    --card-glass-line: rgba(255, 255, 255, 0.26);
    --card-blue: #2f6bff;
    --card-blue-2: #1a4fe6;
    position: relative;
    isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-width: 0;
    aspect-ratio: 3 / 5.4;
    background: #0a1630;
    border: 1px solid rgba(47, 107, 255, 0.28);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--card-ink);
    box-shadow: 0 10px 28px -14px rgba(10, 30, 80, 0.55);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (hover: hover) {
    .product-card:hover { border-color: rgba(47, 107, 255, 0.75); box-shadow: 0 18px 40px -16px rgba(47, 107, 255, 0.55); transform: translateY(-3px); }
    .product-card:hover .product-card-media img { transform: scale(1.05); }
}
.product-card-media {
    position: absolute; inset: 0; z-index: -1;
    display: block;
    overflow: hidden;
    background: #0a1630;
}
.product-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.06);
    transition: transform var(--dur-slow) var(--ease);
}
.product-card-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5, 12, 30, 0) 40%, rgba(5, 12, 30, 0.6) 55%, rgba(5, 12, 30, 0.94) 72%, #050c1e 100%);
}
.product-card-media img.img-fallback { object-fit: contain; padding: 22%; filter: none; opacity: 0.7; }
.product-card-badges { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.product-card .badge { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card .badge-sale { background: linear-gradient(135deg, #ff4d3d, #e5182b); }
.badge-oos { background: linear-gradient(135deg, #ff3b4e, #c8102e); color: #fff; }
.product-card-fav {
    position: absolute; right: 10px; top: 10px; z-index: 2;
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--card-glass-line);
    background: rgba(8, 18, 42, 0.62); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: transform var(--dur-fast) var(--ease), color var(--dur-fast), background var(--dur-fast);
}
.product-card-fav .ico { width: 18px; height: 18px; fill: currentColor; }
.product-card-fav:hover { transform: scale(1.08); background: rgba(8, 18, 42, 0.8); }
.product-card-fav.active, .product-card-fav[aria-pressed="true"] { color: #ff3b5c; background: #fff; }
.product-card-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 12px 4px; min-width: 0; }
.product-card-meta {
    margin: 0; font-size: var(--text-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: #8fb6ff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-title {
    font-family: var(--font-display, var(--font-body));
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.product-card-title a { color: var(--card-ink); }
.product-card-title a::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.product-card-title a:hover { color: #b9d0ff; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.product-card .price { font-size: var(--text-lg); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.product-card .price-old { color: rgba(255, 255, 255, 0.62); }
.product-card .stock { margin: 0; font-size: var(--text-2xs); font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); white-space: nowrap; }
.product-card .stock-in { color: #3ee68a; }
.product-card .stock-low { color: #ffc23d; }
.product-card .stock-out { color: #ff6b7a; }
.product-card-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 12px; }
.product-card-qty {
    display: flex; width: 100%;
    border: 1px solid var(--card-glass-line); border-radius: 999px;
    background: var(--card-glass);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.product-card-qty .qty-btn { flex: 0 0 auto; width: 40px; height: 36px; color: #fff; font-size: 18px; font-weight: 600; }
.product-card-qty .qty-btn:hover { background: rgba(255, 255, 255, 0.16); }
.product-card-qty .qty-input { flex: 1; width: auto; min-width: 0; height: 36px; color: #fff; font-size: var(--text-sm); }
.product-card-buy.btn {
    width: 100%; min-height: 42px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, #4a86ff 0%, var(--card-blue) 45%, var(--card-blue-2) 100%);
    color: #fff; font-weight: 700;
    box-shadow: 0 8px 20px -6px rgba(47, 107, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.product-card-buy.btn:hover { filter: brightness(1.1); color: #fff; }
.product-card-compare {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; min-height: 36px; padding: 0 12px;
    border: 1px solid var(--card-glass-line); border-radius: 999px;
    background: rgba(8, 18, 42, 0.45); color: #fff;
    font-size: var(--text-xs); font-weight: 600;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background var(--dur-fast), border-color var(--dur-fast);
}
.product-card-compare:hover { background: rgba(255, 255, 255, 0.16); }
.product-card-compare.is-on { background: rgba(47, 107, 255, 0.35); border-color: #6f9dff; }
@media (max-width: 639px) {
    .product-card { aspect-ratio: auto; min-height: 400px; }
    .product-card-body { padding: 10px 10px 2px; }
    .product-card-actions { padding: 6px 10px 10px; gap: 6px; }
    .product-card-foot { flex-wrap: wrap; gap: 4px; }
    .product-card .price { font-size: var(--text-md); }
    .product-card-qty .qty-btn { width: 32px; height: 32px; }
    .product-card-qty .qty-input { height: 32px; }
    .product-card-buy.btn { min-height: 38px; font-size: var(--text-xs); padding: 0 8px; }
    .product-card-compare { min-height: 32px; font-size: var(--text-2xs); }
    .product-card-fav { width: 34px; height: 34px; border-radius: 10px; right: 8px; top: 8px; }
    .product-card-badges { left: 8px; top: 8px; }
    .product-card .badge { font-size: 9px; padding: 3px 6px; }
}
@media (min-width: 640px) {
    .product-card-body { padding: 14px 16px 4px; }
    .product-card-actions { padding: 10px 16px 16px; }
    .product-card .price { font-size: var(--text-xl, 1.35rem); }
}

/* ---------- 10. Ürünler sayfası ---------- */
.shop-layout { display: block; padding-bottom: var(--space-2xl); }
.shop-main { min-width: 0; }
.shop-toolbar {
    display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap;
    padding: var(--space-sm) 0 var(--space-md);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}
.result-count { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.sort-control { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sort-control label { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.sort-control select { width: auto; min-width: 150px; }
@media (max-width: 639px) {
    .sort-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .sort-control select { min-width: 0; max-width: 150px; }
}
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); }
.active-filters:empty { display: none; }
.filter-pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 8px 0 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface); color: var(--color-text);
    font-size: var(--text-xs); font-weight: 600;
}
.filter-pill .ico { width: 14px; height: 14px; color: var(--color-text-subtle); }
.filter-pill:hover { border-color: var(--color-text); }
.filter-pill-clear { border-color: transparent; color: var(--color-primary); background: none; }

.filters-overlay {
    position: fixed; inset: 0; z-index: var(--z-drawer-overlay);
    background: rgba(6, 8, 11, 0.5);
    opacity: 0; visibility: hidden; transition: opacity var(--dur), visibility var(--dur);
}
.filters-overlay.show { opacity: 1; visibility: visible; }
.filters {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: var(--z-drawer);
    max-height: 88vh;
    display: flex; flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(102%); visibility: hidden;
    transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.filters.open { transform: none; visibility: visible; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px var(--space-lg); border-bottom: 1px solid var(--color-border); }
.filters-head h2 { font-size: var(--text-lg); }
.filters-body { overflow-y: auto; padding: 0 var(--space-lg); overscroll-behavior: contain; }
.filters-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-sm); padding: 12px var(--space-lg) calc(12px + var(--safe-bottom)); border-top: 1px solid var(--color-border); }
.filter-group { padding-block: var(--space-md); border-bottom: 1px solid var(--color-border); }
.filter-group:last-child { border-bottom: 0; }
.filter-group legend { margin-bottom: 10px; float: left; width: 100%; }
.filter-options { clear: both; display: flex; flex-direction: column; gap: 2px; }
.filter-options .radio, .filter-group > .check { min-height: 36px; align-items: center; }
.filter-option {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; min-height: 38px; padding: 0 10px;
    border: 0; border-radius: var(--radius-sm);
    background: transparent; color: var(--color-text-muted);
    font-size: var(--text-sm); text-align: left;
}
.filter-option:hover { background: var(--color-surface-muted); color: var(--color-text); }
.filter-option.active { background: var(--color-primary-soft); color: var(--color-primary); font-weight: 600; }
.filter-option .mega-count { color: inherit; opacity: 0.7; }
.price-range { clear: both; display: flex; align-items: center; gap: 8px; }
.price-range .form-control { min-height: 40px; font-size: var(--text-sm); }
.filter-vehicle { background: var(--color-surface-muted); border-radius: var(--radius-md); padding: var(--space-md); margin-block: var(--space-md); border: 0; }
.filter-vehicle-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-sm); margin-bottom: 4px; }
.filter-vehicle .muted { font-size: var(--text-xs); margin-bottom: 10px; }
body.filters-open { overflow: hidden; }

@media (min-width: 1024px) {
    .shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
    .filters {
        position: sticky; top: calc(var(--header-h) + 64px);
        max-height: calc(100vh - var(--header-h) - 88px);
        transform: none; visibility: visible;
        border-radius: 0; box-shadow: none; background: transparent;
        z-index: auto;
    }
    .filters-head, .filters-foot, .filters-overlay, .filters-toggle { display: none; }
    .filters-body { padding: 0 6px 0 0; scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
    .filter-group:first-child { padding-top: 0; }
}

.shop-load-more { display: flex; justify-content: center; padding-top: var(--space-xl); }
.recent-strip:empty { display: none; }
.recent-strip { margin-top: var(--space-2xl); }
.recent-strip h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); }

/* ---------- 11. Ürün detay ---------- */
.pdp-container { padding-top: var(--space-md); padding-bottom: var(--space-2xl); }
.pdp-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; } }
.pdp-skel-lines { padding-top: var(--space-md); }

.pdp-gallery { min-width: 0; }
@media (min-width: 900px) { .pdp-gallery { position: sticky; top: calc(var(--header-h) + 64px); } }
.pdp-main {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
}
.pdp-slides {
    display: flex; height: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.pdp-slides::-webkit-scrollbar { display: none; }
.pdp-slide {
    flex: 0 0 100%; height: 100%;
    scroll-snap-align: center;
    border: 0; padding: 0; background: none; cursor: zoom-in;
}
.pdp-slide img { width: 100%; height: 100%; object-fit: cover; }
.pdp-zoom-hint {
    position: absolute; right: 12px; bottom: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px;
    border-radius: var(--radius-pill);
    background: rgba(12, 15, 20, 0.7); color: #fff;
    font-size: var(--text-xs); font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(6px);
}
.pdp-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pdp-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: width var(--dur), background var(--dur); }
.pdp-dots span.is-active { width: 18px; border-radius: 3px; background: #fff; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: var(--space-sm); overflow-x: auto; scrollbar-width: thin; }
.pdp-thumb {
    flex: 0 0 72px; aspect-ratio: 4 / 5; padding: 0;
    border-radius: var(--radius-md); overflow: hidden;
    border: 2px solid transparent; background: var(--color-surface-muted);
    opacity: 0.7; transition: opacity var(--dur-fast), border-color var(--dur-fast);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.active { border-color: var(--color-primary); opacity: 1; }

.pdp-info { min-width: 0; display: flex; flex-direction: column; gap: var(--space-md); }
.pdp-eyebrow { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-subtle); }
.pdp-eyebrow a { color: var(--color-primary); }
.pdp-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.025em; }
.pdp-rating { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; }
.pdp-rating:empty { display: none; }
.stars { color: #e3a12f; letter-spacing: 1px; }
.pdp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-block: var(--space-xs); }
.pdp-price-row .price { font-size: clamp(28px, 3.4vw, 36px); }
.pdp-price-row .price-old { font-size: var(--text-md); }
.pdp-sku { font-size: var(--text-xs); color: var(--color-text-subtle); }
.pdp-summary { color: var(--color-text-muted); }

.variant-selector { display: flex; flex-direction: column; gap: 8px; }
.variant-label { font-size: var(--text-sm); font-weight: 600; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 4px 14px 4px 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface); color: var(--color-text);
    font-size: var(--text-sm); font-weight: 500;
}
.variant-chip:not(:has(img)) { padding-left: 14px; }
.variant-chip img, .variant-chip-thumb { width: 32px; height: 32px; border-radius: var(--radius-sm); object-fit: cover; }
.variant-chip.active { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }

.buy-box { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.buy-row { display: flex; gap: var(--space-sm); align-items: stretch; }
.buy-row .btn-primary { flex: 1; }
.qty-stepper {
    display: inline-flex; align-items: center;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
    flex-shrink: 0;
}
.qty-btn {
    width: 44px; height: 50px;
    border: 0; background: transparent; color: var(--color-text);
    font-size: 18px; font-weight: 500;
}
.qty-btn:hover { background: var(--color-surface-muted); }
.qty-input {
    width: 40px; height: 50px; padding: 0;
    border: 0; background: transparent; text-align: center;
    font-weight: 600; font-variant-numeric: tabular-nums;
}
.wishlist-heart {
    width: 52px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
    background: var(--color-surface); color: var(--color-text);
}
.wishlist-heart:hover { border-color: var(--color-text); }
.wishlist-heart.active { color: var(--color-danger); border-color: color-mix(in srgb, var(--color-danger) 45%, transparent); }
.wishlist-heart.active .ico { fill: currentColor; }
.buy-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.buy-secondary .btn { min-width: 0; }
.buy-secondary .btn-whatsapp-outline { color: var(--color-whatsapp); border-color: color-mix(in srgb, var(--color-whatsapp) 45%, transparent); background: var(--color-surface); }
.buy-secondary .btn-whatsapp-outline:hover { background: var(--color-whatsapp); color: #fff; }
.pdp-extra-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-extra-cta:empty { display: none; }
.pdp-alert { display: none; gap: 8px; width: 100%; }
.pdp-alert.open { display: flex; }
.pdp-alert .form-control { min-height: 40px; font-size: var(--text-sm); }

.pdp-assurance { list-style: none; display: grid; gap: 1px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-border); }
.pdp-assurance li { display: flex; gap: 12px; align-items: flex-start; padding: 12px var(--space-md); background: var(--color-surface); font-size: var(--text-sm); }
.pdp-assurance .ico { color: var(--color-primary); margin-top: 1px; }
.pdp-assurance strong { display: block; font-weight: 600; }
.pdp-assurance span { color: var(--color-text-muted); font-size: var(--text-xs); }
.pdp-fit {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-surface-muted);
    font-size: var(--text-sm);
}
.pdp-fit .ico { margin-top: 1px; color: var(--color-text-muted); }
.pdp-fit strong { display: block; }
.pdp-fit ul { list-style: none; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-fit li { padding: 2px 8px; border-radius: var(--radius-sm); background: var(--color-surface); border: 1px solid var(--color-border); font-size: var(--text-xs); }
.pdp-fit.is-fit { background: var(--color-success-soft); }
.pdp-fit.is-fit > .ico { color: var(--color-success); }

.pdp-tabs {
    display: flex; gap: 4px;
    margin-top: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto; scrollbar-width: none;
}
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tab {
    position: relative;
    padding: 14px 16px; border: 0; background: none;
    color: var(--color-text-muted); font-weight: 600; font-size: var(--text-sm);
    white-space: nowrap;
}
.pdp-tab:hover { color: var(--color-text); }
.pdp-tab.active { color: var(--color-text); }
.pdp-tab.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--color-primary-bg); border-radius: 2px; }
.pdp-pane { display: none; padding-block: var(--space-lg); max-width: 820px; }
.pdp-pane.active { display: block; }
.pdp-pane .description { color: var(--color-text-muted); white-space: pre-line; }
.pdp-pane h3 { margin: var(--space-md) 0 var(--space-xs); font-size: var(--text-md); }
.pdp-pane h3:first-child { margin-top: 0; }
.pdp-pane p, .pdp-pane li { color: var(--color-text-muted); font-size: var(--text-sm); }
.pdp-pane ul { padding-left: 18px; display: grid; gap: 6px; }
.specs-table { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.specs-row { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.2fr; gap: var(--space-md); padding: 12px var(--space-md); font-size: var(--text-sm); }
.specs-row:nth-child(odd) { background: var(--color-surface-muted); }
.specs-label { color: var(--color-text-muted); }
.specs-value { font-weight: 500; }
.pdp-related { margin-top: var(--space-2xl); }
.pdp-related h2 { font-size: var(--text-xl); margin-bottom: var(--space-md); }

.product-video { margin-top: var(--space-lg); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.product-video iframe, .product-video video { width: 100%; height: 100%; border: 0; }

/* Yorumlar */
.review-item { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; font-size: var(--text-sm); }
.review-name { font-weight: 600; }
.review-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); display: inline-block; margin: 8px 8px 0 0; }
.verified-buy { color: var(--color-success); font-size: var(--text-xs); font-weight: 600; }
.review-form { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); padding: var(--space-lg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); max-width: 560px; }
.review-photo-label { display: grid; gap: 6px; font-size: var(--text-sm); color: var(--color-text-muted); }
.review-login { margin-top: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-surface-muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-sm); }

/* ---------- 12. Karşılaştırma, bulucu ---------- */
.compare-bar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    z-index: var(--z-float);
    display: flex; align-items: center; gap: var(--space-sm);
    width: min(calc(100% - 24px), 720px);
    padding: 8px 8px 8px 12px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.compare-bar-items { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.compare-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 4px; border-radius: var(--radius-md); background: var(--color-surface-muted); font-size: var(--text-xs); max-width: 180px; flex-shrink: 0; }
.compare-chip img { width: 28px; height: 34px; object-fit: cover; border-radius: var(--radius-xs); }
.compare-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-chip button { width: 24px; height: 24px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--color-text-muted); flex-shrink: 0; }
.compare-chip button:hover { background: var(--color-surface); color: var(--color-text); }
body.has-cookie-banner .compare-bar, body.cart-drawer-open .compare-bar { display: none; }
.compare-table-scroll { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.compare-table { min-width: 640px; font-size: var(--text-sm); }
.compare-table th, .compare-table td { padding: 12px var(--space-md); border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.compare-table tbody th { color: var(--color-text-muted); font-weight: 500; width: 160px; background: var(--color-surface-muted); }
.compare-table thead th { font-family: var(--font-display); font-weight: 600; }
.compare-table thead .btn-ghost { margin-top: 8px; }
.compare-img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }

.finder-app { display: grid; gap: var(--space-lg); }
.finder-card { padding: var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.finder-card-head { margin-bottom: var(--space-md); }
.finder-card-head h3 { font-size: var(--text-lg); }
.finder-card-head p { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: 4px; }
.finder-form { display: grid; gap: var(--space-md); }
.finder-form .form-group { margin: 0; }
.finder-optional { font-weight: 500; color: var(--color-text-subtle); font-size: var(--text-xs); }
.finder-actions { margin-top: var(--space-md); }
.finder-status { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; }
.finder-results { display: grid; gap: var(--space-lg); }
.finder-results:empty { display: none; }
.finder-results-bar { padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--color-ink); color: var(--color-text-on-ink); }
.finder-results-bar h3 { font-size: var(--text-xl); margin-top: 2px; }
.finder-results-bar p { color: var(--color-text-on-ink-muted); font-size: var(--text-sm); margin-top: 4px; }
.finder-results-bar .eyebrow { color: #9fb8ff; }
.finder-section h4 { font-size: var(--text-lg); margin-bottom: 6px; }
.finder-section > .muted { margin-bottom: var(--space-md); }
.finder-empty { padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px dashed var(--color-border-strong); color: var(--color-text-muted); margin: 0; }
@media (min-width: 768px) {
    .finder-form { grid-template-columns: repeat(2, 1fr); }
    .finder-span-2 { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .finder-form { grid-template-columns: repeat(4, 1fr); } }
.pdp-stock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
@media (min-width: 900px) {
    /* Masaüstünde ana görsel ekran yüksekliğini aşmasın; afiş görseller kırpılmadan sığar */
    .pdp-main { aspect-ratio: auto; height: min(calc(100vh - 220px), 720px); min-height: 440px; }
    .pdp-slide img { object-fit: contain; }
}

/* ---------- 13. Overlay ve çekmece sistemi ---------- */
.cart-overlay {
    position: fixed; inset: 0; z-index: var(--z-drawer-overlay);
    background: rgba(6, 8, 11, 0.55);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    z-index: var(--z-drawer);
    width: min(100vw, 440px);
    display: flex; flex-direction: column;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transform: translateX(102%); visibility: hidden;
    transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
    outline: none;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-header {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
    padding: 14px 12px 14px var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}
.drawer-title { font-size: var(--text-lg); }
.drawer-meta { margin: 2px 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md) var(--space-lg); }
.drawer-footer {
    display: flex; flex-direction: column; gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg) calc(var(--space-md) + var(--safe-bottom));
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}
.drawer-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
.drawer-secondary .btn { min-height: 40px; font-size: var(--text-xs); }
.cart-panel-badge { display: none !important; }
body.cart-drawer-open, body.checkout-open, body.modal-open { overflow: hidden; }

/* Sepet satırları */
.cart-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: var(--space-sm);
    padding-block: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.cart-line:first-of-type { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; }
.cart-line.is-warn .cart-line-thumb { outline: 2px solid var(--color-warning-soft); }
.cart-line-thumb { display: block; width: 72px; aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface-muted); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-line-name { color: var(--color-text); font-size: var(--text-sm); font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line-name:hover { color: var(--color-primary); }
.cart-line-variant { font-size: var(--text-xs); color: var(--color-text-subtle); }
.cart-line-note { font-size: var(--text-xs); color: var(--color-warning); font-weight: 600; }
.cart-line-note.danger { color: var(--color-danger); }
.cart-line-price { display: flex; align-items: baseline; gap: 6px; font-size: var(--text-xs); color: var(--color-text-muted); }
.cart-line-price s { color: var(--color-text-subtle); }
.cart-line-price strong { color: var(--color-text); font-weight: 600; }
.cart-line-stepper {
    display: inline-flex; align-items: center; align-self: flex-start;
    margin-top: 4px;
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
}
.cart-line-stepper button { width: 34px; height: 34px; border: 0; background: none; color: var(--color-text); font-size: 16px; }
.cart-line-stepper button:hover:not(:disabled) { background: var(--color-surface-muted); }
.cart-line-stepper button:disabled { color: var(--color-text-subtle); }
.cart-line-stepper span { min-width: 28px; text-align: center; font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-line-sum { font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-remove { width: 34px; height: 34px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-text-subtle); display: inline-flex; align-items: center; justify-content: center; }
.cart-remove:hover { background: var(--color-danger-soft); color: var(--color-danger); }

.cart-panel-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-2xl) var(--space-md); }
.cart-panel-empty h3 { font-size: var(--text-lg); margin-bottom: 6px; }
.cart-panel-empty p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-lg); }

.ship-progress {
    padding: 12px var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    background: var(--color-surface-muted);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.ship-progress p { margin: 0 0 8px; }
.ship-progress strong { color: var(--color-text); }
.ship-bar { height: 6px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.ship-bar span { display: block; height: 100%; background: var(--color-primary-bg); border-radius: 3px; transition: width var(--dur-slow) var(--ease); }
.is-done .ship-bar span { background: var(--color-success); }

/* Toplamlar ve kupon */
.totals { display: flex; flex-direction: column; gap: 8px; }
.totals-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-text-muted); }
.totals-row dd { color: var(--color-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.totals-discount dd { color: var(--color-success); }
.totals-final { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--color-border); color: var(--color-text); font-weight: 600; }
.totals-final dd { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .form-control { min-height: 42px; font-size: var(--text-sm); text-transform: uppercase; }
.coupon-row .form-control::placeholder { text-transform: none; }
.coupon-row .btn { min-height: 42px; }
.coupon-status { margin: 0; font-size: var(--text-xs); font-weight: 500; min-height: 0; color: var(--color-text-muted); }
.coupon-status:empty { display: none; }
.coupon-status.is-ok { color: var(--color-success); }
.coupon-status.is-err { color: var(--color-danger); }
.secure-note, .checkout-secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: var(--text-xs); color: var(--color-text-subtle); text-align: center; }

/* Sepet sayfası */
.cart-page .page-header { padding-bottom: var(--space-md); }
.cart-page-grid { display: grid; gap: var(--space-lg); align-items: start; }
.cart-page-list:empty { display: none; }
.cart-page-list { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); }
.cart-page-list .cart-line { grid-template-columns: 88px minmax(0, 1fr) auto; }
.cart-page-list .cart-line-thumb { width: 88px; }
.summary-card {
    display: flex; flex-direction: column; gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.summary-card h2 { font-size: var(--text-lg); margin-bottom: 4px; }
@media (min-width: 1024px) {
    .cart-page-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-xl); }
    .summary-card { position: sticky; top: calc(var(--header-h) + 64px); }
}

/* Adım göstergesi */
.stepper { list-style: none; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.stepper li + li::before { content: ''; width: 16px; height: 1px; background: var(--color-border-strong); margin-right: 4px; }
.chk-step {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 8px 6px 6px; border: 0; border-radius: var(--radius-pill);
    background: none; color: var(--color-text-subtle);
    font-size: var(--text-xs); font-weight: 600;
}
button.chk-step:hover { color: var(--color-text); }
.chk-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--color-border-strong);
    font-size: 11px; font-weight: 700;
}
.chk-step.is-current, .stepper .is-current { color: var(--color-text); }
.chk-step.is-current .chk-step-num, .stepper .is-current .chk-step-num { border-color: var(--color-primary-bg); background: var(--color-primary-bg); color: #fff; }
.chk-step.is-done { color: var(--color-text-muted); }
.chk-step.is-done .chk-step-num { border-color: var(--color-success); background: var(--color-success); color: #fff; }
.stepper-compact { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-text-subtle); font-weight: 600; }
.stepper-compact li { gap: 8px; }

/* ---------- 14. Ödeme (checkout) ---------- */
.checkout-modal {
    position: fixed; inset: 0; z-index: var(--z-checkout);
    display: flex; flex-direction: column;
    background: var(--color-background);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease), visibility var(--dur);
}
.checkout-modal.show { opacity: 1; visibility: visible; transform: none; }
.checkout-form-side { order: 2; padding: var(--space-md) var(--gutter) var(--space-2xl); display: flex; flex-direction: column; gap: var(--space-md); }
.checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.checkout-head h2 { font-size: var(--text-2xl); }
.checkout-head .eyebrow { margin-bottom: 4px; }
.checkout-section {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.checkout-section-title { font-size: var(--text-md); margin-bottom: var(--space-md); }
.checkout-section .section-hint { margin-top: -8px; }
.checkout-section .segmented { margin-bottom: var(--space-md); }
.checkout-section .check { margin-bottom: 10px; }
#checkoutLegalBox.is-invalid .check-box { border-color: var(--color-danger); }
#checkoutLegalBox.is-invalid #err-checkLegal { display: block; }
.address-pick { display: grid; gap: 8px; }
.address-pick-item {
    display: flex; flex-direction: column; gap: 2px; text-align: left;
    padding: 12px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
    background: var(--color-surface); color: var(--color-text); font-size: var(--text-sm);
}
.address-pick-item span { color: var(--color-text-muted); font-size: var(--text-xs); }
.address-pick-item.active { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); background: var(--color-primary-soft); }
.checkout-pay-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px var(--space-md); border-radius: var(--radius-md); background: var(--color-surface-muted); margin-bottom: var(--space-md); }
.checkout-pay-head .ico { color: var(--color-success); margin-top: 2px; }
.checkout-pay-head strong { font-size: var(--text-sm); }
.checkout-pay-head p { margin: 2px 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
#iyzicoFormContainer:empty { display: none; }
#iyzicoFormContainer { min-height: 200px; }
.checkout-pay:not(.is-active) #iyzicoFormContainer:empty + * { display: none; }

.checkout-summary-side {
    order: 1;
    position: sticky; top: 0; z-index: 2;
    display: flex; flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.checkout-sum-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 52px; padding: 0 var(--gutter);
    border: 0; background: none; color: var(--color-text); font-size: var(--text-sm);
}
.checkout-sum-toggle .ico { transition: transform var(--dur) var(--ease); }
.checkout-summary-side.is-expanded .checkout-sum-toggle .ico { transform: rotate(180deg); }
.checkout-summary-body { display: none; padding: 0 var(--gutter) var(--space-md); max-height: 50vh; overflow-y: auto; }
.checkout-summary-side.is-expanded .checkout-summary-body { display: block; }
.summary-title { font-size: var(--text-md); margin-bottom: var(--space-md); display: none; }
.checkout-lines { display: flex; flex-direction: column; gap: 12px; }
.checkout-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.checkout-line-thumb { position: relative; width: 56px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface-muted); }
.checkout-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.checkout-line-qty-badge { position: absolute; right: -2px; top: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--color-text-muted); color: var(--color-surface); font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.checkout-line-meta { min-width: 0; display: flex; flex-direction: column; }
.checkout-line-name { font-size: var(--text-sm); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkout-line-qty { font-size: var(--text-xs); color: var(--color-text-subtle); }
.checkout-line-price { font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.coupon-box { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.coupon-box .coupon-row { width: 100%; }
.checkout-totals-box {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
    display: flex; flex-direction: column; gap: 10px;
    padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, 0.25);
}
.checkout-totals-box .totals-row:not(.totals-final) { display: none; }
.checkout-totals-box .totals-final { border-top: 0; padding-top: 0; margin: 0; }
.checkout-totals-box .totals-final dd { font-size: var(--text-lg); }
.checkout-totals-box .checkout-secure-note { display: none; }
.checkout-modal .checkout-form-side { padding-bottom: 180px; }
body.checkout-open .tabbar { display: none; }

@media (min-width: 1024px) {
    .checkout-modal { flex-direction: row; align-items: stretch; overflow: hidden; }
    .checkout-form-side { order: 1; flex: 1; overflow-y: auto; padding: var(--space-xl) var(--space-2xl) var(--space-2xl) max(var(--space-2xl), calc((100vw - var(--container)) / 2 + var(--gutter))); }
    .checkout-modal .checkout-form-side { padding-bottom: var(--space-2xl); }
    .checkout-form-side > * { max-width: 720px; width: 100%; }
    .checkout-summary-side {
        order: 2; position: relative; top: auto;
        width: 440px; flex-shrink: 0;
        border-bottom: 0; border-left: 1px solid var(--color-border);
        padding: var(--space-xl) var(--space-xl) var(--space-xl);
        overflow-y: auto;
        padding-right: max(var(--space-xl), calc((100vw - var(--container)) / 2 + var(--gutter)));
        width: calc(440px + max(0px, (100vw - var(--container)) / 2));
    }
    .checkout-sum-toggle { display: none; }
    .checkout-summary-body { display: block; padding: 0; max-height: none; overflow: visible; }
    .summary-title { display: block; }
    .checkout-totals-box {
        position: static; padding: var(--space-lg) 0 0; margin-top: var(--space-lg);
        border-top: 1px solid var(--color-border); box-shadow: none; background: none;
    }
    .checkout-totals-box .totals-row:not(.totals-final) { display: flex; }
    .checkout-totals-box .totals-final { border-top: 1px solid var(--color-border); padding-top: 10px; }
    .checkout-totals-box .totals-final dd { font-size: var(--text-xl); }
    .checkout-totals-box .checkout-secure-note { display: flex; }
}

/* ---------- 15. Modallar ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: var(--z-modal);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
    background: rgba(6, 8, 11, 0.6);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal-card {
    position: relative;
    width: 100%;
    max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
    padding: var(--space-lg) var(--space-lg) calc(var(--space-lg) + var(--safe-bottom));
    background: var(--color-surface-elevated);
    color: var(--color-text);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(24px);
    transition: transform var(--dur-slow) var(--ease);
}
.modal-backdrop.show .modal-card { transform: none; }
.modal-close { position: absolute; right: 10px; top: 10px; z-index: 1; }
@media (min-width: 640px) {
    .modal-backdrop { align-items: center; padding: var(--space-lg); }
    .modal-card { border-radius: var(--radius-xl); padding: var(--space-xl); max-height: 86vh; transform: translateY(12px) scale(0.98); }
    .modal-sm { max-width: 440px; }
    .modal-lg { max-width: 760px; }
}

/* Yasal modal (backdrop kardeş eleman) */
#legalOverlay { z-index: var(--z-modal); }
.legal-modal {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-modal) + 1);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease), visibility var(--dur);
}
.legal-modal.show { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 640px) {
    .legal-modal { left: 50%; top: 50%; bottom: auto; width: calc(100% - 48px); transform: translate(-50%, -46%); }
    .legal-modal.show { transform: translate(-50%, -50%); }
}
.legal-content h2 { font-size: var(--text-2xl); margin: 0 40px var(--space-md) 0; }
.legal-content h3 { font-size: var(--text-md); margin: var(--space-lg) 0 var(--space-xs); }
.legal-content p, .legal-content li { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }
.legal-content strong { color: var(--color-text); }
.legal-note { margin-top: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-md); background: var(--color-surface-muted); font-size: var(--text-xs) !important; }

.confirm-box h3 { font-size: var(--text-lg); margin-bottom: var(--space-xs); padding-right: 32px; }
.confirm-box p { color: var(--color-text-muted); font-size: var(--text-sm); }
.confirm-actions { display: flex; gap: var(--space-sm); justify-content: flex-end; margin-top: var(--space-lg); }
.confirm-actions .btn { flex: 1; }
@media (min-width: 640px) { .confirm-actions .btn { flex: 0 0 auto; } }
.confirm-modal { z-index: calc(var(--z-toast) - 1); }

.order-detail-backdrop .modal-card h2 { font-size: var(--text-xl); }
.order-detail-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); margin: var(--space-lg) 0; }
.order-detail-field { padding: 12px; border-radius: var(--radius-md); background: var(--color-surface-muted); font-size: var(--text-sm); }
.order-detail-field label { display: block; font-size: var(--text-xs); color: var(--color-text-subtle); margin-bottom: 2px; }
.order-detail-field.span-2 { grid-column: 1 / -1; }
@media (min-width: 640px) { .order-detail-grid { grid-template-columns: 1fr 1fr; } }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); }
.order-detail-advance-btn { width: 100%; }

/* Başarı / hata */
.success-card { text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--space-md); display: flex; align-items: center; justify-content: center; }
.success-icon .ico { width: 30px; height: 30px; }
.success-icon.is-ok { background: var(--color-success-soft); color: var(--color-success); }
.success-icon.is-fail { background: var(--color-danger-soft); color: var(--color-danger); }
.success-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-xs); }
.success-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.success-order-code { display: inline-block; margin: var(--space-sm) 0 0; padding: 8px 14px; border-radius: var(--radius-md); background: var(--color-surface-muted); font-family: var(--font-mono); font-weight: 600; color: var(--color-text) !important; }
.success-actions { display: flex; flex-direction: column; gap: 8px; margin-top: var(--space-lg); }
.success-note { font-size: var(--text-xs) !important; margin-top: var(--space-md); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: var(--z-lightbox);
    display: flex; align-items: center; justify-content: center;
    background: rgba(4, 5, 8, 0.94);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; object-fit: contain; border-radius: var(--radius-md); user-select: none; }
.lightbox .icon-btn { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.7); font-size: var(--text-sm); margin: 0; }
.lightbox.is-single .lightbox-nav, .lightbox.is-single .lightbox-count { display: none; }

/* Yükleniyor */
.loading-overlay {
    position: fixed; inset: 0; z-index: var(--z-modal);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md);
    background: color-mix(in srgb, var(--color-background) 86%, transparent);
    backdrop-filter: blur(4px);
}
.loading-overlay p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Bildirim */
.toast {
    position: fixed; left: 50%; z-index: var(--z-toast);
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
    display: flex; align-items: center; gap: var(--space-md);
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--color-ink); color: #fff;
    font-size: var(--text-sm); font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
:root[data-theme="dark"] .toast { background: #f2f4f7; color: #0c0f14; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast-undo { border: 0; background: none; color: #9fb8ff; font-weight: 700; padding: 0; }
:root[data-theme="dark"] .toast-undo { color: var(--color-primary-bg); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* Sepete uçan görsel */
.cart-fly-clone { position: fixed; z-index: var(--z-toast); pointer-events: none; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); }
.cart-fly-clone img { width: 100%; height: 100%; object-fit: cover; }
.cart-trigger.is-catch { animation: bump 380ms var(--ease); }
.cart-catch-ring { display: none; }

/* Kaydırılabilir flex sütunlarda bölümler büzülmesin */
.checkout-form-side > *, .checkout-summary-side > *, .drawer > * { flex-shrink: 0; }
.drawer > .drawer-body { flex-shrink: 1; }
@media (max-width: 479px) {
    .stepper .chk-step:not(.is-current) .chk-step-label { display: none; }
    .stepper-compact li:not(.is-current) { font-size: 0; gap: 0; }
    .stepper-compact li:not(.is-current) .chk-step-num { font-size: 11px; }
}

/* ---------- 16. Sipariş takibi ---------- */
.orders-layout { display: grid; gap: var(--space-lg); align-items: start; }
@media (min-width: 1024px) { .orders-layout { grid-template-columns: 360px minmax(0, 1fr); gap: var(--space-xl); } }
.track-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.track-card h2 { font-size: var(--text-lg); }
.track-card p { color: var(--color-text-muted); font-size: var(--text-sm); margin: 4px 0 var(--space-md); }
.track-card .field-error { margin-top: 8px; color: var(--color-danger); }
@media (min-width: 1024px) { .track-card { position: sticky; top: calc(var(--header-h) + 64px); } }
.orders-list { display: flex; flex-direction: column; gap: var(--space-md); }
.order-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.order-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--space-lg); }
.order-no { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-md); }
.order-card-meta { font-size: var(--text-sm); color: var(--color-text-muted); }
.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs); font-weight: 600;
    background: var(--color-primary-soft); color: var(--color-primary);
}
.status-pill.is-complete { background: var(--color-success-soft); color: var(--color-success); }
.timeline { list-style: none; display: grid; gap: 0; }
.timeline-step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: var(--space-md); }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
    content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px;
    background: var(--color-border);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.is-done::before { background: var(--color-success); }
.timeline-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-border-strong); background: var(--color-surface);
    color: var(--color-text-subtle); font-size: 11px; font-weight: 700;
}
.timeline-dot .ico { width: 14px; height: 14px; }
.timeline-step.is-done .timeline-dot { border-color: var(--color-success); background: var(--color-success); color: #fff; }
.timeline-step.is-current .timeline-dot { box-shadow: 0 0 0 4px var(--color-success-soft); }
.timeline-text { padding-top: 3px; }
.timeline-text strong { display: block; font-size: var(--text-sm); }
.timeline-text span { font-size: var(--text-xs); color: var(--color-text-muted); }
.timeline-step:not(.is-done) .timeline-text strong { color: var(--color-text-muted); font-weight: 500; }
@media (min-width: 768px) {
    .timeline { grid-template-columns: repeat(4, 1fr); }
    .timeline-step { grid-template-columns: 1fr; gap: 10px; padding: 0 12px 0 0; }
    .timeline-step::before { left: 34px; right: 6px; top: 13px; bottom: auto; width: auto; height: 2px; }
}
.orders-empty { padding: var(--space-xl); text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); }

/* ---------- 17. Hesabım ---------- */
.account-hello { display: flex; align-items: center; gap: var(--space-md); }
.account-hello h1 { font-size: var(--text-2xl); }
.account-hello .page-lead { margin-top: 2px; font-size: var(--text-sm); }
.account-layout { display: grid; gap: var(--space-lg); align-items: start; padding-bottom: var(--space-2xl); }
.account-nav {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.account-nav::-webkit-scrollbar { display: none; }
.account-tab {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    min-height: 40px; padding: 0 14px;
    border: 1px solid var(--color-border); border-radius: var(--radius-pill);
    background: var(--color-surface); color: var(--color-text-muted);
    font-size: var(--text-sm); font-weight: 600; text-align: left;
}
.account-tab:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.account-tab.active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
:root[data-theme="dark"] .account-tab.active { background: var(--color-primary-bg); border-color: var(--color-primary-bg); }
.account-tab-danger { color: var(--color-danger); }
@media (min-width: 1024px) {
    .account-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-xl); }
    .account-nav {
        flex-direction: column; margin: 0; padding: 8px; overflow: visible;
        background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
        position: sticky; top: calc(var(--header-h) + 64px);
    }
    .account-tab { width: 100%; border: 0; border-radius: var(--radius-md); background: none; }
    .account-tab:hover { background: var(--color-surface-muted); }
    .account-tab.active { background: var(--color-surface-muted); color: var(--color-text); }
    :root[data-theme="dark"] .account-tab.active { background: var(--color-surface-muted); color: var(--color-text); }
    .account-tab-muted { margin-top: auto; }
    .account-tab-muted, .account-tab-danger { border-top: 0; }
    .account-tab-muted { margin-top: 8px; position: relative; }
    .account-tab-muted::before { content: ''; position: absolute; left: 8px; right: 8px; top: -5px; height: 1px; background: var(--color-border); }
}
.account-content { min-width: 0; }
.address-grid { display: grid; gap: var(--space-sm); }
@media (min-width: 768px) { .address-grid { grid-template-columns: 1fr 1fr; } }
.address-card { padding: var(--space-md); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); }
.address-card p { color: var(--color-text-muted); margin: 2px 0; }
.address-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.default-badge { font-size: var(--text-2xs); font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--color-primary); }
.address-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-sm); }
.address-form { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.address-form h3 { margin-bottom: var(--space-md); }
.address-form .check { margin-top: var(--space-md); }

/* ---------- 18. Giriş / kayıt ---------- */
.auth-stage { padding-block: var(--space-xl) var(--space-2xl); }
.auth-layout { display: grid; gap: var(--space-xl); align-items: stretch; }
.auth-brand {
    position: relative; isolation: isolate; overflow: hidden;
    display: none; flex-direction: column; justify-content: flex-end;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    background: var(--color-ink); color: var(--color-text-on-ink);
    min-height: 560px;
}
.auth-brand-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.auth-brand::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 8, 11, 0.25) 0%, rgba(6, 8, 11, 0.92) 70%); }
.auth-brand-logo { position: absolute; top: var(--space-xl); left: var(--space-xl); display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.auth-brand-logo img { border-radius: 9px; }
.auth-brand-logo .brand-word span { color: var(--color-text-on-ink-muted); }
.auth-kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb8ff; margin-bottom: var(--space-xs); }
.auth-brand h1 { font-size: var(--text-3xl); max-width: 16ch; }
.auth-lead { color: var(--color-text-on-ink-muted); margin-top: var(--space-md); max-width: 440px; }
.auth-points { list-style: none; display: grid; gap: 8px; margin-top: var(--space-lg); font-size: var(--text-sm); }
.auth-points li { display: flex; align-items: center; gap: 10px; }
.auth-points .ico { color: #7dd3a3; }
@media (min-width: 1024px) {
    .auth-layout { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-2xl); }
    .auth-brand { display: flex; }
}
.auth-card-col { display: flex; align-items: center; justify-content: center; }
.auth-card {
    width: 100%; max-width: 460px;
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .auth-card { padding: var(--space-xl); } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: var(--space-lg); border-radius: var(--radius-md); background: var(--color-surface-muted); }
.auth-tabs.is-hidden { display: none; }
.auth-tab { min-height: 40px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--color-text-muted); font-weight: 600; font-size: var(--text-sm); }
.auth-tab.active { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.auth-title { font-size: var(--text-2xl); }
.auth-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin: 6px 0 var(--space-lg); }
.auth-field { position: relative; margin-bottom: var(--space-md); }
.auth-field .form-control { min-height: 54px; padding: 22px 44px 6px 44px; font-size: var(--text-base); }
.auth-field label {
    position: absolute; left: 44px; top: 50%; transform: translateY(-50%);
    font-size: var(--text-sm); color: var(--color-text-subtle);
    pointer-events: none;
    transition: top var(--dur-fast) var(--ease), font-size var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.auth-field .form-control::placeholder { color: transparent; }
.auth-field .form-control:focus + label,
.auth-field .form-control:not(:placeholder-shown) + label { top: 10px; transform: none; font-size: 11px; font-weight: 600; color: var(--color-text-muted); }
.auth-field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-subtle); display: inline-flex; }
.auth-field-ico .ico { width: 18px; height: 18px; }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--color-text-subtle); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.auth-eye:hover { color: var(--color-text); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-md); }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); cursor: pointer; position: relative; }
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check-box { width: 18px; height: 18px; border-radius: var(--radius-xs); border: 1.5px solid var(--color-border-strong); background: var(--color-surface); position: relative; }
.auth-check input:checked + .auth-check-box { background: var(--color-primary-bg); border-color: var(--color-primary-bg); }
.auth-check input:checked + .auth-check-box::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-check input:focus-visible + .auth-check-box { box-shadow: var(--shadow-focus); }
.auth-text-btn { border: 0; background: none; padding: 0; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 600; }
.auth-text-btn:hover { color: var(--color-text); }
.auth-text-btn.accent { color: var(--color-primary); }
.auth-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 52px;
    border: 0; border-radius: var(--radius-md);
    background: var(--color-primary-bg); color: #fff;
    font-weight: 600; font-size: var(--text-base);
    transition: background-color var(--dur-fast);
}
.auth-cta:hover { background: var(--color-primary-hover); color: #fff; }
.auth-cta:disabled { background: var(--color-surface-sunken); color: var(--color-text-subtle); }
.auth-cta .auth-cta-arrow { width: 18px; height: 18px; }
.auth-cta.is-loading .auth-cta-arrow { display: none; }
.auth-or { display: flex; align-items: center; gap: var(--space-sm); margin: var(--space-lg) 0; color: var(--color-text-subtle); font-size: var(--text-xs); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
.auth-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 50px;
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
    background: var(--color-surface); color: var(--color-text); font-weight: 600; font-size: var(--text-sm);
}
.auth-google:hover { border-color: var(--color-text); }
.auth-switch { text-align: center; margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-text-muted); }
.auth-ok { color: var(--color-success); font-size: var(--text-sm); }
.auth-steps { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); font-size: var(--text-xs); font-weight: 600; color: var(--color-text-subtle); }
.auth-step { display: inline-flex; align-items: center; gap: 6px; }
.auth-step span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--color-border-strong); font-size: 10px; }
.auth-step.is-current { color: var(--color-text); }
.auth-step.is-current span { background: var(--color-primary-bg); border-color: var(--color-primary-bg); color: #fff; }
.auth-step.is-done span { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.auth-email-chip { display: inline-block; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--color-surface-muted); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-md); }
.auth-email-chip:empty { display: none; }
.otp-group { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: var(--space-md); }
.otp-input {
    width: 100%; min-width: 0; aspect-ratio: 0.8; padding: 0;
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
    background: var(--color-surface); text-align: center;
    font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600;
}
.otp-input:focus { border-color: var(--color-primary); box-shadow: var(--shadow-focus); outline: none; }
.otp-group.is-error .otp-input { border-color: var(--color-danger); }
.otp-group.is-success .otp-input { border-color: var(--color-success); }
.otp-group.is-shake { animation: shake 420ms var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.otp-autofill { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.auth-resend { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-text-muted); }
.auth-card.is-otp-only .auth-steps { display: none; }
.pw-strength { margin: -4px 0 var(--space-md); }
.pw-strength-head { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: 6px; }
.pw-strength-track { height: 6px; border-radius: 3px; background: var(--color-surface-sunken); overflow: hidden; }
.pw-strength-bar { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--color-danger); transition: width var(--dur) var(--ease), background var(--dur); }
.pw-strength-bar[data-score="1"] { width: 25%; }
.pw-strength-bar[data-score="2"] { width: 50%; background: var(--color-warning); }
.pw-strength-bar[data-score="3"] { width: 75%; background: #6aa84f; }
.pw-strength-bar[data-score="4"] { width: 100%; background: var(--color-success); }
.pw-issue { font-size: var(--text-xs); color: var(--color-danger); margin: 6px 0 0; }
.pw-rules { list-style: none; display: grid; gap: 4px; margin-top: 10px; font-size: var(--text-xs); color: var(--color-text-muted); }
.pw-rules li { display: flex; align-items: center; gap: 8px; }
.pw-check { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--color-border-strong); flex-shrink: 0; }
.pw-rules li.is-met { color: var(--color-success); }
.pw-rules li.is-met .pw-check { background: var(--color-success); border-color: var(--color-success); }
.pw-match { font-size: var(--text-xs); margin: -8px 0 var(--space-sm); }
.pw-match.is-ok { color: var(--color-success); }
.pw-match.is-bad { color: var(--color-danger); }
#authSignedIn p { margin-bottom: var(--space-md); }

/* ---------- 19. Çerez bandı ---------- */
.cookie-banner {
    position: fixed; z-index: var(--z-cookie);
    left: 12px; right: 12px;
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    padding: var(--space-md);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
}
.cookie-bar-main { display: flex; flex-direction: column; gap: var(--space-sm); }
.cookie-bar-main > strong { font-family: var(--font-display); font-size: var(--text-md); }
.cookie-text { color: var(--color-text-muted); font-size: var(--text-xs); margin: 0; }
.cookie-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cookie-opt { display: inline-flex; align-items: center; gap: 4px; }
.cookie-opt label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.cookie-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-box { width: 18px; height: 18px; border-radius: var(--radius-xs); border: 1.5px solid var(--color-border-strong); position: relative; }
.cookie-opt input:checked + .cookie-box { background: var(--color-primary-bg); border-color: var(--color-primary-bg); }
.cookie-opt input:checked + .cookie-box::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cookie-opt.is-required .cookie-box { opacity: 0.6; }
.cookie-opt b { font-weight: 600; }
.cookie-info { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--color-border-strong); background: none; color: var(--color-text-muted); font-size: 11px; font-weight: 700; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn-primary { grid-column: 1 / -1; }
.cookie-actions .btn, .cookie-actions button { min-height: 40px; font-size: var(--text-xs); }
.cookie-detail { position: relative; margin-top: var(--space-sm); padding: var(--space-md); border-radius: var(--radius-md); background: var(--color-surface-muted); }
.cookie-detail h4 { font-size: var(--text-sm); margin-bottom: 4px; }
.cookie-detail p { font-size: var(--text-xs); color: var(--color-text-muted); }
.cookie-detail-close { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--color-text-muted); }
.cookie-detail-close::before { content: '×'; font-size: 20px; line-height: 1; }
@media (min-width: 900px) {
    .cookie-banner { left: 24px; right: auto; bottom: 24px; width: 420px; }
}

/* ---------- 20. Yönetim ---------- */
body.auth-pending .page-panel { visibility: hidden; }
.admin-page { padding-block: var(--space-xl) var(--space-2xl); }
.panel-title { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.admin-note { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-lg); }
.admin-split-layout { display: grid; gap: var(--space-lg); align-items: start; margin-bottom: var(--space-lg); }
@media (min-width: 1024px) { .admin-split-layout { grid-template-columns: 1fr 1fr; } }
.admin-stack { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.admin-form-box, .admin-table-box, .glass {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 0;
}
.admin-form-box h3, .admin-table-box h3 { font-size: var(--text-md); margin-bottom: var(--space-md); }
.admin-subhead { margin-top: var(--space-xl) !important; }
.admin-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md); align-items: center; }
.admin-inline .form-control { flex: 1 1 140px; width: auto; }
.admin-block { margin-bottom: var(--space-md); }
.order-table { font-size: var(--text-sm); min-width: 520px; }
.order-table th, .order-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.order-table th { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); background: var(--color-surface-muted); white-space: nowrap; }
.order-table tbody tr:hover { background: var(--color-surface-muted); }
.order-table .form-control { min-height: 36px; padding: 6px 10px; font-size: var(--text-sm); }
.action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 36px; padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-strong);
    background: var(--color-surface); color: var(--color-text);
    font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
}
.action-btn:hover { border-color: var(--color-text); }
.save-btn { background: var(--color-primary-bg); border-color: var(--color-primary-bg); color: #fff; }
.save-btn:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.delete-btn { color: var(--color-danger); border-color: color-mix(in srgb, var(--color-danger) 35%, transparent); background: var(--color-surface); }
.delete-btn:hover { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.badge-status, .invoice-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: 700; white-space: nowrap; background: var(--color-surface-muted); color: var(--color-text-muted); }
.status-odeme { background: var(--color-primary-soft); color: var(--color-primary); }
.status-hazir { background: var(--color-warning-soft); color: var(--color-warning); }
.status-kargo { background: rgba(124, 92, 255, 0.12); color: #6d4fe0; }
.status-tamam, .invoice-ok { background: var(--color-success-soft); color: var(--color-success); }
.invoice-fail { background: var(--color-danger-soft); color: var(--color-danger); }
.invoice-wait { background: var(--color-warning-soft); color: var(--color-warning); }
.report-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); margin-bottom: var(--space-lg); }
@media (min-width: 900px) { .report-cards-grid { grid-template-columns: repeat(4, 1fr); } }
.report-card { padding: var(--space-md) var(--space-lg); }
.report-card h3, .report-card p:first-child { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; margin-bottom: 6px; }
.report-card .value, .report-card div:last-child, .report-card strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.log-terminal { max-height: 420px; overflow: auto; padding: var(--space-md); border-radius: var(--radius-lg); background: var(--color-ink); color: #c9d2e0; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }
.log-time { color: #7d8799; }
.visit-funnel { display: flex; flex-wrap: wrap; gap: 8px; }
.visit-funnel span { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--color-surface-muted); font-size: var(--text-xs); font-weight: 600; }
.visit-rank-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.image-drop-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 140px; padding: var(--space-md);
    border: 1.5px dashed var(--color-border-strong); border-radius: var(--radius-md);
    background: var(--color-surface-muted); color: var(--color-text-muted); text-align: center; font-size: var(--text-sm); cursor: pointer;
}
.image-drop-zone.small { min-height: 96px; }
.image-drop-zone.drag-over { border-color: var(--color-primary); background: var(--color-primary-soft); }
.image-drop-zone img { max-height: 160px; border-radius: var(--radius-sm); }
.drop-icon { font-size: 22px; }
.gallery-preview-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gallery-preview-item { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.remove-btn, .variant-row-remove { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 12px; }
.variant-row { position: relative; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.variant-thumb-upload { width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px dashed var(--color-border-strong); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; flex-shrink: 0; }
.variant-thumb-upload img { width: 100%; height: 100%; object-fit: cover; }
.fit-model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; max-height: 260px; overflow-y: auto; padding: var(--space-sm); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); }
.fit-model-list label { display: flex; align-items: center; gap: 6px; }
.review-admin-item { padding: var(--space-sm) 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-sm); }
.review-admin-item div { display: flex; gap: 6px; margin-top: 6px; }
.upload-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; display: inline-block; }
.product-select-cb { width: 16px; height: 16px; accent-color: var(--color-primary-bg); }
.legal-check { align-items: center; }
