/* ==========================================================================
   Kart Merkezi — Vitrin Tasarim Sistemi
   Tek dosya, bagimliliksiz. Bootstrap/bootsnav/flexslider gerektirmez.
   ========================================================================== */

/* --------------------------------------------------------------- Tokenler */
:root {
    /* Renk */
    --bg:            #ffffff;
    --surface:       #f8fafc;
    --surface-2:     #f1f5f9;
    --border:        #e2e8f0;
    --border-strong: #cbd5e1;

    --text:          #0f172a;
    --text-soft:     #334155;
    --text-muted:    #64748b;
    --text-invert:   #ffffff;

    --brand:         #1e40af;
    --brand-hover:   #1d4ed8;
    --brand-soft:    #eff6ff;
    --brand-border:  #bfdbfe;

    --accent:        #2563eb;
    --success:       #059669;
    --success-soft:  #ecfdf5;
    --warning:       #d97706;
    --warning-soft:  #fffbeb;
    --danger:        #dc2626;
    --danger-soft:   #fef2f2;

    --ink:           #0b1220;   /* koyu bolumler */
    --ink-soft:      #16233c;

    /* Tipografi */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

    /* Olcek (8pt) */
    --s1: 4px;   --s2: 8px;   --s3: 12px;  --s4: 16px;
    --s5: 24px;  --s6: 32px;  --s7: 48px;  --s8: 64px;  --s9: 96px;

    /* Yuvarlama */
    --r-sm: 4px; --r: 6px; --r-lg: 10px; --r-xl: 16px; --r-full: 999px;

    /* Golge */
    --sh-1: 0 1px 2px rgba(15, 23, 42, .06);
    --sh-2: 0 2px 8px rgba(15, 23, 42, .08);
    --sh-3: 0 8px 24px rgba(15, 23, 42, .10);
    --sh-4: 0 16px 48px rgba(15, 23, 42, .14);

    --header-h: 72px;
    --maxw: 1240px;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-hover); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s3); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
h4 { font-size: 17px; }
p  { margin: 0 0 var(--s4); }

ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

::selection { background: var(--brand-soft); color: var(--brand); }

/* ----------------------------------------------------------------- Duzen */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.container-narrow { max-width: 820px; }

.section { padding: var(--s8) 0; }
.section-sm { padding: var(--s7) 0; }
.section-tint { background: var(--surface); }

.stack > * + * { margin-top: var(--s4); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ------------------------------------------------- YAN MENULU DUZEN (103)

   Kullanici bildirdi: *"mobil gorunumde /grup/... sayfalari bozuluyor sol
   menuden dolayi."* Olcum: 375px'te `documentElement.scrollWidth` 681,
   `clientWidth` 375 -- sayfa 306px yatay tasiyordu. Kolonlar 250px + 383px
   olarak KALIYORDU.

   SEBEP `.grid`in kendisi degil: `urunler.twig` kolonlari SATIR ICI
   `style="grid-template-columns:250px 1fr"` ile veriyordu. Satir ici bir
   bildirimi hicbir MEDYA SORGUSU ezemez (`!important` olmadan) -- yani o
   sayfa duyarli OLAMAZDI. Panelde ayni hata daha da acikti: uc sablon
   `class="grid-2"` yaziyordu, yani yazan kisi 900px'te cokmesini
   ISTIYORDU, ama satir ici bildirim o niyeti sessizce iptal ediyordu.

   BU YUZDEN KOLONLAR OZEL DEGISKENDEN GELIYOR: satir icinde yalnizca
   `--yan-sol`/`--yan-sag` kaliyor, `grid-template-columns` STIL
   DOSYASINDA tek yerde duruyor ve medya sorgusu onu ezebiliyor. Satir ici
   bir ozel degisken de kazanir -- ama medya sorgusu degiskeni degil
   BILDIRIMIN TAMAMINI degistirdigi icin onemi kalmiyor.

   Tek sinif + tek cokme kurali BILINCLI. Uc sayfa icin uc ayri sinif
   yazsaydim, dorduncu sayfa eklendiginde medya sorgusuna eklenmesi
   unutulacak bir LISTE olurdu -- bu projede "elle yazilmis liste
   kaynaktan kayar" dersi bes kez odendi. Kural sinifin kendisinde.

   `_test_stil.php` iki seyi olcuyor: (1) hicbir sablonda satir ici
   `grid-template-columns` yok, (2) `.yan-duzen` tanimlayan her stil
   dosyasi onu bir `max-width` medya sorgusunda cokertiyor. Ikincisi
   olmasa sinif "duyarli gorunen" ama cokmeyen bir sey olabilirdi.    */
.yan-duzen {
    display: grid;
    grid-template-columns: var(--yan-sol, 250px) minmax(0, var(--yan-sag, 1fr));
    gap: var(--yan-bosluk, var(--s6));
    align-items: start;
}

.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.row-center  { display: flex; align-items: center; gap: var(--s3); }
.flex-wrap   { flex-wrap: wrap; }

.section-head { margin-bottom: var(--s6); }
.section-head p { color: var(--text-muted); max-width: 62ch; margin-bottom: 0; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--brand); margin-bottom: var(--s2);
}

/* --------------------------------------------------------------- Butonlar */
.btn {
    --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    padding: 11px 20px; border-radius: var(--r);
    background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
    font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
    transition: background .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn:hover { --btn-bg: var(--brand-hover); --btn-bd: var(--brand-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--border-strong); }
.btn-outline:hover { --btn-bg: var(--brand-soft); --btn-fg: var(--brand); --btn-bd: var(--brand-border); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-soft); --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: transparent; }

.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-dark:hover { --btn-bg: var(--ink-soft); --btn-bd: var(--ink-soft); }

.btn-success { --btn-bg: var(--success); --btn-bd: var(--success); }
.btn-success:hover { --btn-bg: #047857; --btn-bd: #047857; }

.btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-danger:hover { --btn-bg: var(--danger-soft); --btn-bd: transparent; }

/* ---------------------------------------------------------------- Rozetler */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: var(--r-full);
    font-size: 12px; font-weight: 600; line-height: 1.4;
    background: var(--surface-2); color: var(--text-soft);
}
.badge-brand   { background: var(--brand-soft);   color: var(--brand); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }

/* ------------------------------------------------------------------ Kart */
.card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: var(--s5);
}
.card-flush { padding: 0; overflow: hidden; }
.card-tint { background: var(--surface); }

/* ------------------------------------------------------------------ Form */
.field { margin-bottom: var(--s4); }
.label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.label .req { color: var(--danger); }

.input, .select, .textarea {
    width: 100%; padding: 11px 13px;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--r);
    font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.textarea { min-height: 120px; resize: vertical; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.help { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.field-error .input, .field-error .select { border-color: var(--danger); }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-soft); }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* --------------------------------------------------------------- Uyarilar */
.alert {
    display: flex; gap: var(--s3); align-items: flex-start;
    padding: var(--s4); border-radius: var(--r);
    border: 1px solid var(--border); background: var(--surface);
    font-size: 15px; margin-bottom: var(--s4);
}
.alert-info    { background: var(--brand-soft);   border-color: var(--brand-border); color: #1e3a8a; }
.alert-success { background: var(--success-soft); border-color: #a7f3d0; color: #065f46; }
.alert-warning { background: var(--warning-soft); border-color: #fde68a; color: #92400e; }
.alert-danger  { background: var(--danger-soft);  border-color: #fecaca; color: #991b1b; }
.alert strong { font-weight: 700; }

/* ------------------------------------------------------------------ Ustlk */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.topbar {
    background: var(--ink); color: #cbd5e1;
    font-size: 13px; padding: 7px 0;
}
.topbar a { color: #e2e8f0; font-weight: 500; }
.topbar a:hover { color: #fff; }
.topbar .row-between { gap: var(--s4); }
.topbar-items { display: flex; gap: var(--s5); align-items: center; }

.header-main { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.brand-sub { font-size: 11px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 13px; border-radius: var(--r);
    color: var(--text-soft); font-size: 15px; font-weight: 500;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.nav-link.is-active { color: var(--brand); font-weight: 600; }

.has-menu { position: relative; }
.menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--sh-3); padding: var(--s2); margin: 0; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    z-index: 60;
}
.has-menu:hover .menu, .has-menu:focus-within .menu, .menu.is-open {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.menu a {
    display: block; padding: 9px 12px; border-radius: var(--r);
    color: var(--text-soft); font-size: 14.5px;
}
.menu a:hover { background: var(--surface-2); color: var(--text); }
.menu-right { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--s2); flex: none; }

.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--r);
    background: transparent; border: 1px solid transparent; color: var(--text-soft);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .count {
    position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center; border-radius: var(--r-full);
    background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}

.burger { display: none; }

/* Mobil menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 200; background: var(--bg);
    transform: translateX(100%); transition: transform .22s ease; overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s4); border-bottom: 1px solid var(--border); }
.mobile-menu nav { padding: var(--s4); }
.mobile-menu nav a { display: block; padding: 13px 4px; font-size: 17px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu nav .sub a { padding-left: var(--s4); font-size: 15px; color: var(--text-soft); font-weight: 400; }

/* ------------------------------------------------------------- Guven seridi */
.trustbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.trustbar ul {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4);
    list-style: none; margin: 0; padding: var(--s4) 0;
}
.trustbar li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-soft); }
.trustbar svg { flex: none; color: var(--brand); }
.trustbar strong { display: block; color: var(--text); font-size: 14px; }
.trustbar span { font-size: 12.5px; color: var(--text-muted); }

/* ------------------------------------------------------------------- Hero */
/* Tam genislikte arka plan gorselli slayt. Header opak ve yapiskan oldugu
   icin slayt her zaman onun ALTINDAN baslar, ustune binmez. */
.hero {
    position: relative;
    min-height: clamp(420px, 58vh, 620px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    isolation: isolate;
}

.hero-slide {
    position: absolute; inset: 0; z-index: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: center;
}
/* Metnin okunabilirligi icin soldan saga koyulasan katman */
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(11, 18, 32, .92) 0%,
        rgba(11, 18, 32, .78) 38%,
        rgba(11, 18, 32, .35) 70%,
        rgba(11, 18, 32, .15) 100%);
}

.hero-inner { position: relative; z-index: 2; padding: var(--s8) 0; width: 100%; }
.hero-body { max-width: 640px; }

.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); margin-bottom: var(--s4); }
.hero p { color: #d7dee8; font-size: clamp(16px, 1.5vw, 18px); max-width: 52ch; }
.hero .eyebrow { color: #93c5fd; }
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.hero .btn-outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.hero .btn-outline:hover { --btn-bg: rgba(255,255,255,.12); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.6); }

/* Slayt kontrolleri */
.hero-controls {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--s5);
    display: flex; align-items: center; gap: var(--s3);
}
.hero-controls > .container { display: flex; align-items: center; gap: var(--s3); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--r-full);
    background: rgba(255, 255, 255, .35); transition: background .2s ease, width .2s ease;
}
.hero-dots button.is-active { background: #fff; width: 28px; }
.hero-arrows { display: flex; gap: 6px; margin-left: auto; }
.hero-arrows button {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: var(--r-full); background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22); color: #fff;
    backdrop-filter: blur(4px); transition: background .15s ease;
}
.hero-arrows button:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 860px) {
    .hero { min-height: clamp(380px, 62vh, 520px); }
    .hero-slide::after {
        background: linear-gradient(180deg,
            rgba(11, 18, 32, .72) 0%, rgba(11, 18, 32, .88) 60%, rgba(11, 18, 32, .94) 100%);
    }
    .hero-arrows { display: none; }
    .hero-inner { padding: var(--s7) 0 var(--s8); }
}

/* ------------------------------------------------------------- Urun karti */
.product-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
    overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.product-media {
    position: relative; display: block; aspect-ratio: 1 / 1;
    background: var(--surface); overflow: hidden;
}
/* Urun fotograflari kare cekildigi icin cerceve de kare; `cover` ile
   gorsel alani tamamen doldurur, kenarlarda bos gri bant kalmaz. */
.product-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    transition: transform .35s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-flags {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none;
}

.product-body { display: flex; flex-direction: column; flex: 1; padding: var(--s4); gap: 6px; }
.product-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; margin: 0; }
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--brand); }
.product-sub { font-size: 13px; color: var(--text-muted); margin: 0; }

.price-block { margin-top: auto; padding-top: var(--s3); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }
.price-main { font-size: 19px; font-weight: 700; color: var(--text); }
.price-unit { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.price-vat { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ----------------------------------------------------------- Urun detayi */
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: start; }

.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }

.gallery-main {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
    padding: var(--s3);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.gallery-thumbs button {
    width: 72px; height: 72px; padding: 6px; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.gallery-thumbs button.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-head h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: var(--s2); }
.product-meta { display: flex; gap: var(--s4); flex-wrap: wrap; font-size: 13.5px; color: var(--text-muted); margin-bottom: var(--s4); }

.price-panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: var(--s5); margin: var(--s5) 0;
}
.price-panel .unit-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.price-panel .unit-label { font-size: 13px; color: var(--text-muted); }
.price-panel .unit-value { font-size: 16px; font-weight: 600; }
.price-total { display: flex; align-items: baseline; gap: 10px; margin-top: var(--s3); }
.price-total .amount { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price-total .note { font-size: 13px; color: var(--text-muted); }

.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--r); overflow: hidden; background: var(--bg); }
.qty button { width: 42px; background: var(--surface); border: 0; font-size: 18px; color: var(--text-soft); }
.qty button:hover { background: var(--surface-2); color: var(--text); }
.qty input { width: 90px; border: 0; text-align: center; font-size: 16px; font-weight: 600; padding: 11px 4px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number] { -moz-appearance: textfield; }

.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.tier-table th {
    text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted); font-weight: 700; padding: 0 var(--s3) var(--s2);
}
.tier-table td { padding: 11px var(--s3); border-top: 1px solid var(--border); }
.tier-table tr { cursor: pointer; }
.tier-table tbody tr:hover td { background: var(--surface); }
.tier-table tr.is-selected td { background: var(--brand-soft); }
.tier-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.tier-table .tier-price { font-weight: 700; text-align: right; }

/* Kademeli fiyat kartlari — cok sayida kademe oldugunda tabloyu dikey
   uzatmak yerine tam genislikte izgaraya yayilir. */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s3); }
.tier-card {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--bg); cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tier-card:hover { border-color: var(--border-strong); background: var(--surface); }
.tier-card.is-selected {
    border-color: var(--brand); background: var(--brand-soft);
    box-shadow: 0 0 0 2px var(--brand-soft);
}
.tier-card .tier-range { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }
.tier-card.is-selected .tier-range { color: var(--brand); }
.tier-card .tier-unit { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tier-card .tier-vat { font-size: 12.5px; color: var(--text-muted); }
.tier-card .tier-mark {
    font-size: 12px; font-weight: 600; color: var(--brand);
    margin-top: 2px; min-height: 16px; visibility: hidden;
}
.tier-card.is-selected .tier-mark { visibility: visible; }

/* --------------------------------------------------------- Giris / kayit */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.auth-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.auth-tabs button {
    padding: 15px 12px; background: var(--surface); border: 0; border-bottom: 2px solid transparent;
    font-size: 15px; font-weight: 600; color: var(--text-muted);
}
.auth-tabs button.is-active { background: var(--bg); color: var(--brand); border-bottom-color: var(--brand); }
.auth-body { padding: var(--s6) var(--s5); }
.auth-foot { padding: var(--s4) var(--s5); background: var(--surface); border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-muted); text-align: center; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 11px var(--s3); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--text-muted); font-weight: 600; }

.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--border); margin-bottom: var(--s5); overflow-x: auto; }
.tabs button {
    padding: 12px var(--s4); background: none; border: 0; border-bottom: 2px solid transparent;
    font-size: 15px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
.tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel[hidden] { display: none; }

/* ------------------------------------------------- Gorsel + metin bolumu */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: center; }
.split + .split { margin-top: var(--s8); }
.split-media {
    border-radius: var(--r-xl); overflow: hidden; background: var(--surface);
    aspect-ratio: 4 / 3; border: 1px solid var(--border);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body p:last-child { margin-bottom: 0; }
.split-reverse .split-media { order: 2; }

/* Adim / ozellik kutusu */
.feature { display: flex; gap: var(--s4); align-items: flex-start; }
.feature-icon {
    flex: none; width: 44px; height: 44px; border-radius: var(--r-lg);
    display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 0; }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: var(--s5); }
    .split-reverse .split-media { order: 0; }
    .split + .split { margin-top: var(--s7); }
}

/* ------------------------------------------------------------------ Sepet */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--s6); align-items: start; }

.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item-media { width: 96px; height: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.cart-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cart-item-name { font-weight: 600; font-size: 15.5px; }
.cart-item-name a { color: var(--text); }
.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }

.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; gap: var(--s3); padding: 9px 0; font-size: 15px; color: var(--text-soft); }
.summary-total { border-top: 1px solid var(--border); margin-top: var(--s2); padding-top: var(--s4); font-size: 19px; font-weight: 800; color: var(--text); }

.steps { display: flex; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s6); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.steps li::after { content: ""; width: 28px; height: 1px; background: var(--border-strong); margin-left: var(--s2); }
.steps li:last-child::after { display: none; }
.steps .step-no { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--surface-2); font-size: 12px; font-weight: 700; }
.steps li.is-active { color: var(--text); font-weight: 600; }
.steps li.is-active .step-no { background: var(--brand); color: #fff; }
.steps li.is-done .step-no { background: var(--success); color: #fff; }

/* ------------------------------------------------------- Adres secimi */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s3); }
.addr-card {
    position: relative;
    border: 1px solid var(--border); border-radius: var(--r-lg);
    background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease;
}
.addr-card:hover { border-color: var(--border-strong); }
.addr-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.addr-card:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.addr-pick { display: flex; gap: var(--s3); padding: var(--s4); cursor: pointer; align-items: flex-start; }
.addr-pick input { margin: 3px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.addr-body { display: grid; gap: 3px; min-width: 0; }
.addr-body strong { font-size: 14.5px; }
.addr-body span { overflow-wrap: anywhere; }

.addr-edit {
    position: absolute; top: 8px; right: 10px;
    background: none; border: 0; padding: 4px 6px;
    font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer;
}
.addr-edit:hover { color: var(--brand); text-decoration: underline; }

/* ------------------------------------------------- Odeme secimi / onay */
.pay-option {
    display: flex; gap: var(--s3); align-items: flex-start;
    padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg);
    cursor: pointer; margin-bottom: var(--s2);
}
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input { margin: 3px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.pay-option > span { display: grid; gap: 2px; }

.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; }
.check input { margin: 2px 0 0; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }

/* ---------------------------------------------------------- Veri tablosu */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th {
    text-align: left; padding: 12px var(--s4); background: var(--surface);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); white-space: nowrap; border-bottom: 1px solid var(--border);
}
.data-table td { padding: 13px var(--s4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface); }
.ta-right { text-align: right; }

.design-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.design-thumbs img {
    width: 76px; height: 48px; object-fit: contain;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 3px;
}

.empty-state { text-align: center; padding: var(--s9) var(--s4); }
.empty-state svg { color: var(--border-strong); margin: 0 auto var(--s4); }
.empty-state h2 { margin-bottom: var(--s2); }
.empty-state p { color: var(--text-muted); margin-bottom: var(--s5); }

/* -------------------------------------------------------------- Kirintilar */
.breadcrumb { padding: var(--s4) 0; font-size: 13.5px; color: var(--text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li[aria-current] { color: var(--text-soft); font-weight: 500; }
.breadcrumb .sep { color: var(--border-strong); }

/* ------------------------------------------------------------ Yan gezinme */
.sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-nav a {
    display: flex; justify-content: space-between; gap: var(--s3);
    padding: 10px 12px; border-radius: var(--r); color: var(--text-soft); font-size: 14.5px;
}
.sidebar-nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar-nav a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.sidebar-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: var(--s5) 0 var(--s2); }

/* ------------------------------------------------------------------- Alt */
.site-footer { background: var(--ink); color: #94a3b8; padding: var(--s8) 0 var(--s5); margin-top: var(--s9); }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--s4); }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s6); }
.footer-brand p { font-size: 14.5px; max-width: 34ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 3px; color: #64748b; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.08); margin-top: var(--s7); padding-top: var(--s5);
    font-size: 13.5px;
}

/* ------------------------------------------------------------------ Toast */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 380px;
    padding: 13px 15px; border-radius: var(--r); background: var(--ink); color: #fff;
    box-shadow: var(--sh-3); font-size: 14.5px;
    animation: toast-in .2s ease;
}
.toast.is-success { background: var(--success); }
.toast.is-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- Yukleniyor */
.loading-overlay {
    position: fixed; inset: 0; z-index: 400; display: none;
    place-items: center; background: rgba(255, 255, 255, .7); backdrop-filter: blur(2px);
}
.loading-overlay.is-on { display: grid; }
.spinner {
    width: 38px; height: 38px; border-radius: 50%;
    border: 3px solid var(--border-strong); border-top-color: var(--brand);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- WhatsApp */
.wa-btn {
    position: fixed; right: 18px; bottom: 18px; z-index: 90;
    width: 54px; height: 54px; border-radius: var(--r-full);
    display: grid; place-items: center; background: #25d366; color: #fff;
    box-shadow: var(--sh-3); transition: transform .15s ease;
}
.wa-btn:hover { transform: scale(1.06); color: #fff; }

/* -------------------------------------------- reCAPTCHA rozeti (103b)

   v3 rozeti sag alt koseye SABITLENIYOR ve `.wa-btn` tam orada
   (`right:18px bottom:18px`) -- ust uste biniyorlar ve rozet WhatsApp
   dugmesini tiklanamaz yapiyor.

   Google rozetin gizlenmesine IZIN VERIYOR; sarti, formda su bildirimin
   gorunmesi: "reCAPTCHA ile korunmaktadir · Gizlilik · Sartlar".
   `_recaptcha_not.twig` onu basiyor ve captcha tasiyan UC formda da
   duruyor. Rozeti gizleyip bildirimi yazmamak kosullara aykiri olurdu --
   bu kural ve o parca birbirine bagli, biri kalkarsa oteki de kalkmali.

   `visibility` DEGIL `display: none`: rozet bir `iframe` yukluyor ve
   gorunmez birakmak onu klavye sirasinda birakirdi.                    */
.grecaptcha-badge { display: none !important; }

/* --------------------------------------------------------------- Yardimci */
.muted { color: var(--text-muted); }
.small { font-size: 13.5px; }
.strong { font-weight: 700; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }
.mb-2 { margin-bottom: var(--s2); } .mb-3 { margin-bottom: var(--s3); }
.mb-4 { margin-bottom: var(--s4); } .mb-5 { margin-bottom: var(--s5); } .mb-6 { margin-bottom: var(--s6); }
.hide { display: none !important; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose img { border-radius: var(--r-lg); margin: var(--s5) 0; }
.prose ul, .prose ol { margin-bottom: var(--s4); }
.prose li { margin-bottom: 6px; }
.lead { font-size: 17.5px; line-height: 1.6; }

/* ------------------------------------------------------------------ Blog */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); align-items: start; }
.blog-head { margin-bottom: var(--s5); }
.blog-head h1 { max-width: 24ch; }
.blog-banner { margin: 0 0 var(--s6); }
.blog-banner img {
    width: 100%; height: auto; display: block;
    border-radius: var(--r-lg); border: 1px solid var(--border);
}
.blog-side { position: sticky; top: calc(var(--header-h) + 20px); }

/* Sepet satirlarindaki kompakt adet kutusu */
.qty-sm button { width: 34px; font-size: 16px; }
.qty-sm input { width: 66px; font-size: 14.5px; padding: 7px 4px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 500;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------- Duyarli */
@media (max-width: 1024px) {
            .product-layout { grid-template-columns: 1fr; gap: var(--s6); }
    .product-gallery { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .blog-layout { grid-template-columns: 1fr; gap: var(--s6); }
    .blog-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .nav, .topbar-items .hide-sm { display: none; }
    .burger { display: inline-flex; }

    /* MASAUSTU KISAYOLLARI GIZLENIYOR (103).

       Marka esnetildiginde bile 375px'te yazi kirpiliyordu: "Giriş Yap"
       dugmesi ve hesap simgesi tek basina ~120px yiyor. Ikisi de mobil
       menude ZATEN VAR (`Giriş yap`, `Profilim`, `Adreslerim`,
       `Siparişlerim`, `Çıkış yap`) -- yani gizlemek hicbir sayfayi
       ulasilamaz yapmiyor. Bu tam olarak §100'de odenen hatanin tersi:
       orada bir sayfa yalnizca kendi icindeki menuden ulasilabiliyordu.
       Burada gizlenen her baglantinin mobil menude karsiligi oldugunu
       `_test_stil.php` OLCUYOR -- ikisi ayrisirsa test kirmizi olur.

       SEPET GIZLENMIYOR: sepette urun varken sayi rozeti tasiyan tek
       gostergedir ve mobil menude karsiligi bir sayi degil, duz bir
       baglanti.                                                       */
    .header-actions .btn, .header-actions .has-menu { display: none; }
    .trustbar ul { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section { padding: var(--s7) 0; }

    /* MENU DUGMESI EKRAN DISINDAYDI (103).

       Olcum: 375px'te `.burger` 376px'ten basliyordu -- yani mobil
       menuyu acan TEK dugme gorunur alanin disindaydi ve sayfa 41px
       yatay tasiyordu. `/grup/...` dahil BUTUN vitrin sayfalarinda.

       Sebep: `.brand` ve `.header-actions` ikisi de `flex: none`. Ikisi
       de kucuvlemiyor, toplam genislik kapsayiciyi asinca fazlasi sagdan
       tasiyor -- ve `.header-actions` sonda oldugu icin tasan o oluyor.

       102 bunu KOTULESTIRDI: marka yazisi "Kart Merkezi"den
       "RFIDIMALAT.com"a cikti (800 agirlikta iki karakter daha) ve alt
       satir uzadi. Isareti o degistirme koydu, sebebi bu kural.

       Cozum kucuvlemeye izin vermek: marka esner ve gerekirse ucu
       kirpilir; dugmeler `flex: none` KALIR -- tiklanabilir bir hedefin
       kucuvlemesi onu kullanilamaz yapar.                             */
    .brand { flex: 1 1 auto; min-width: 0; }
    .brand-text { min-width: 0; }
    .brand-name, .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* Tek kolon. Kural SINIFIN kendisinde: sayfaya ozel bir varyant
       eklenirse buraya da eklenmesi gerekmiyor.                       */
    .yan-duzen { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }

    /* Yan menu ICERIGIN ALTINA. Tek kolona dusmek tasmayi bitirir ama
       kategori listesini urunlerin USTUNE koyar: `/grup/...` sayfasini
       acan kisi bir ekran boyu menuyu gectikten sonra urunu goruyordu.
       Belge sirasi masaustu icin dogru (menu solda), mobil icin degil --
       `order` ikisini ayiriyor.                                        */
    .yan-duzen > .yan-alta { order: 2; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .trustbar ul { grid-template-columns: 1fr; }
    /* Tabloyu kart listesine cevir */
    .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .data-table tr { display: block; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
    .data-table tbody tr:last-child { border-bottom: 0; }
    .data-table td { display: flex; justify-content: space-between; gap: var(--s3); padding: 5px 0; border: 0; text-align: left; }
    .data-table td.ta-right { text-align: left; }
    .data-table td[data-label]::before {
        content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: .05em;
        text-transform: uppercase; color: var(--text-muted); flex: none;
    }
    .data-table tbody tr:hover td { background: transparent; }
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item-media { width: 72px; height: 72px; }
    .cart-item-right { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
        .price-total .amount { font-size: 28px; }
}

@media print {
    .site-header, .site-footer, .wa-btn, .toast-wrap, .breadcrumb { display: none !important; }
    body { color: #000; }
}

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

/* =========================================================== REFERANSLAR

   Grup basligi + esit yukseklikli gorsel izgarasi.

   `object-fit: contain` bilincli: referans gorselleri logo da olabilir
   fotograf da, en-boy oranlari tutmuyor. `cover` kirpar -- bir logonun
   kenarini kirpmak onu tanınmaz yapar. Kutu sabit, gorsel icine
   sigiyor; bos kalan yer arka planla dolduruluyor.                     */
.referans-grup { margin-bottom: var(--s8, 48px); }

.referans-grup-baslik {
    font-size: 20px;
    margin: 0 0 var(--s4) 0;
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--border);
}

.referans-izgara {
    display: grid;
    gap: var(--s4);
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.referans-kart {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r3, 10px);
    overflow: hidden;
}

.referans-kart img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: contain;
    background: #fff;
    padding: var(--s3);
}

.referans-kart figcaption {
    padding: var(--s3);
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================ HESAP MENUSU

   Hesap sayfalari (profil, adresler, siparisler, bildirim tercihleri)
   birbirine bag vermiyordu; her birine yalnizca adres cubugundan
   giriliyordu. Yatay bir serit, dar ekranda kaydiriliyor -- alt alta
   dizmek sayfanin ustunu bir menuye cevirirdi.                        */
.hesap-menu {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--s3);
}

.hesap-menu a {
    padding: 6px 12px;
    border-radius: var(--r, 8px);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.hesap-menu a:hover { background: var(--surface); color: var(--text); }

/* Bulundugun sayfa isaretli: menu "nereye gidebilirim" kadar
   "neredeyim" sorusunu da cevaplamali. */
.hesap-menu a.is-active {
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
}

/* Varsayilan adres rozeti -- notr `.badge`ten ayirt edilebilsin. */
.badge-varsayilan { background: var(--brand, #0e7490); color: #fff; }

/* Kurumsal alanlar: JS kapatinca gorunur kalir (ilerici zenginlestirme),
   yani `hidden` yerine sinif. Sunucu her halukarda dogruluyor. */
.fatura-kurumsal[hidden] { display: none; }
