/* ==========================================================================
   Mağaza tasarım sistemi (docs/B2C_FRONTEND_PLAN.md).
   Her sayfada yüklenir: reset, değişkenler (açık/koyu), temel öğeler, iskelet, ortak bileşenler.
   Sayfaya özel kurallar css/store/pages/*.css içinde. Derleme adımı yok.
   Vurgu rengi (--acc ve türevleri) sunucuda ThemeColors ile hesaplanıp <head>'e yazılır.
   ========================================================================== */
@layer reset, tokens, base, layout, components, pages, utilities;

/* Inter (gövde) ve Bricolage Grotesque (başlık, değişken wght 500–800 / opsz 12–96): ikisi de Türkçe alt kümeli tek
   dosya.
   @font-face kuralları _Layout'ta (sürüm ekli adres, preload ile aynı). */
/* Font yüklenene dek ölçüleri yaklaşık eşleyen yedekler: sayfa yazı gelince oynamaz. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
    ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; size-adjust: 107.12%; }
@font-face { font-family: "Bricolage Fallback";
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
    font-weight: 800; ascent-override: 93%; descent-override: 27%; line-gap-override: 0%; size-adjust: 100%; }

/* -------------------------------------------------------------------------- reset */
@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; tab-size: 4; }
    body { margin: 0; }
    img, svg, video, canvas, picture { display: block; max-width: 100%; }
    img, video { height: auto; }
    input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
    button { cursor: pointer; background: none; border: 0; padding: 0; }
    :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd) { margin: 0; }
    :where(ul, ol)[role="list"], :where(ul, ol).plain { list-style: none; margin: 0; padding: 0; }
    a { color: inherit; text-decoration: none; }
    table { border-collapse: collapse; }
    fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
    legend { padding: 0; }
    [hidden] { display: none !important; }
    :where(dialog) { padding: 0; border: 0; color: inherit; background: none; max-width: none; max-height: none; }
    :where([popover]) { padding: 0; border: 0; color: inherit; margin: 0; }
    summary { cursor: pointer; list-style: none; }
    summary::-webkit-details-marker { display: none; }
    input[type="search"]::-webkit-search-cancel-button { display: none; }
    input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
    /* iOS 16 px'ten küçük alana dokununca sayfayı yakınlaştırır ve geri uzaklaştırmaz; alttan açılan pencereler
       ondan sonra ekrana sığmıyordu (adres penceresi, çerez politikası…). Yalnız iOS'ta alanlar en az 16 px. */
    @supports (-webkit-touch-callout: none) {
        @media (pointer: coarse) {
            input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea { font-size: max(16px, 1em) !important; }
        }
    }
    input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
}

/* -------------------------------------------------------------------------- değişkenler */
/* Renk, yazı, hareket kararları: docs/B2C_STORE_REDESIGN_PLAN.md §3 (Vitrin). Nötrler renksizdir (zinc); vurgu
   tonu yalnız --acc* türevlerinden gelir. Metin ve zemin çiftleri iki temada da ≥ 4,5:1. */
@layer tokens {
    :root {
        color-scheme: light dark;

        /* vurgu (sunucu ezer) */
        --acc: #ff6a00;
        --acc-ink: #14171c;
        --acc-text-l: #ba4d00;
        --acc-text-d: #ff6a00;
        --acc-text: light-dark(var(--acc-text-l), var(--acc-text-d));
        --acc-hover: light-dark(color-mix(in oklab, var(--acc), #000 8%), color-mix(in oklab, var(--acc), #fff 10%));
        --acc-active: light-dark(color-mix(in oklab, var(--acc), #000 16%), color-mix(in oklab, var(--acc), #fff 18%));
        --acc-soft: color-mix(in oklab, var(--acc) 11%, var(--surface));
        --acc-soft-2: color-mix(in oklab, var(--acc) 20%, var(--surface));
        --acc-line: color-mix(in oklab, var(--acc) 45%, transparent);
        --acc-ring: color-mix(in oklab, var(--acc) 30%, transparent);
        /* vurgu kutusundaki ürün görselinin arkasındaki açık tabak: vurgunun %8'i + beyaz (iki temada da açık) */
        --acc-plate: color-mix(in oklab, var(--acc) 8%, #fff);

        /* nötrler (zinc) */
        --bg: light-dark(#ffffff, #0a0a0b);
        --surface: light-dark(#ffffff, #141416);
        --surface-2: light-dark(#f4f4f5, #1c1c1f);
        --surface-3: light-dark(#e9e9ec, #26262a);
        --border: light-dark(#e4e4e7, #26262a);
        --border-2: light-dark(#d4d4d8, #3a3a3f);
        --border-ctl: light-dark(#8e8e96, #7a7a82);        /* girdi / onay kutusu çizgisi (≥ 3:1) */
        --text: light-dark(#09090b, #fafafa);
        --text-2: light-dark(#3f3f46, #b4b4bb);
        --text-3: light-dark(#67676f, #90909a);            /* ikincil yüzeylerde de ≥ 4,5:1 */
        --ink: light-dark(#09090b, #fafafa);               /* siyah birincil düğme */
        --ink-text: light-dark(#ffffff, #09090b);
        /* ürün fotoğraf kartı: koyu temada da açık kalır, ürün görseli multiply ile oturur */
        --tile: light-dark(#f4f4f5, #d9d9dc);
        --tile-filter: none;
        --tile-blend: multiply;
        /* fotoğraf kartındaki yer tutucu ikon / metin (kart iki temada da açık) */
        --tile-ink: #5a5a63;
        --logo-plate: #ffffff;                             /* koyu alt bilgide açık logonun plakası */
        --whatsapp: #25d366;                               /* marka rengi; iki temada da aynı */
        --on-whatsapp: #ffffff;
        /* fotoğraf (afiş) üstündeki yazı ve karartma: fotoğraf temaya bakmaz, iki temada da aynı.
           -dark: koyu yazı / koyu yazının altına serilen açık örtü; -light: açık yazı / koyu örtü (örtü "r g b" üçlüsü)
           */
        --photo-text-dark: #09090b;
        --photo-text-light: #ffffff;
        --photo-veil-for-dark-text: 255 255 255;
        --photo-veil-for-light-text: 9 9 11;
        --band: var(--surface-2);
        /* koyu bant (duyuru çubuğu, alt bilgi, tanıtım bandı): iki temada da koyu; koyu temada çizgiyle ayrılır */
        --band-dark: light-dark(#09090b, #141416);
        --band-dark-line: light-dark(#09090b, #26262a);
        --band-ink: #fafafa;
        --band-ink-2: #b4b4bb;
        --scrim: light-dark(rgb(9 9 11 / .5), rgb(0 0 0 / .66));
        --scrim-soft: light-dark(rgb(9 9 11 / .22), rgb(0 0 0 / .45));
        --inverse: var(--ink);
        --inverse-text: var(--ink-text);
        --inverse-acc: light-dark(var(--acc-text-d), var(--acc-text-l));

        /* durum */
        --success-l: #0a7343;   /* açık: ikincil yüzeyde de ≥ 4,5 (4,91) */
        --success-d: #4acb8b;
        --success: light-dark(var(--success-l), var(--success-d));
        --success-soft: light-dark(#e5f5ec, #12291f);
        --danger-l: #c4232e;
        --danger-d: #ff7a7f;
        --danger: light-dark(var(--danger-l), var(--danger-d));
        --danger-soft: light-dark(#fcebec, #2e1719);
        /* --success / --danger dolgusu üstündeki yazı ve simge: açıkta beyaz, koyuda (açık yeşil / kırmızı zemin)
           koyu mürekkep */
        --on-status: light-dark(#ffffff, #09090b);
        --warning: light-dark(#8a5700, #f0b84a);
        --warning-soft: light-dark(#fcf3e0, #2b2212);
        --info-l: #1d5fd0;
        --info-d: #7fb0ff;
        --info: light-dark(var(--info-l), var(--info-d));
        --info-soft: light-dark(#e8f0fd, #14213a);
        --sale: #d32f2f;
        --sale-ink: #ffffff;
        --star: light-dark(#b86e00, #f5a524);

        /* yazı: başlık Bricolage Grotesque 800, gövde Inter */
        --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
        --font-head: "Bricolage Grotesque", "Bricolage Fallback", var(--font-body);
        --head-ls: -.035em;
        --head-wt: 800;
        --fs-xs: 12px;  --lh-xs: 16px;
        --fs-sm: 13px;  --lh-sm: 18px;
        --fs-md: 15px;  --lh-md: 22px;
        --fs-lg: 17px;  --lh-lg: 24px;
        --fs-xl: 20px;  --lh-xl: 28px;
        --fs-2xl: clamp(24px, 1vw + 18px, 30px);
        --fs-3xl: clamp(28px, 1.6vw + 16px, 40px);
        --fs-4xl: clamp(34px, 2.6vw + 14px, 56px);
        --fs-display: clamp(48px, 5.5vw + 8px, 100px);

        /* ölçü */
        --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
        --sp-6: 24px; --sp-7: 32px; --sp-8: 40px; --sp-9: 48px; --sp-10: 64px;
        --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
        --ctl-sm: 36px; --ctl-md: 44px; --ctl-lg: 52px; --ctl-xl: 56px;
        --container: 1320px;
        --gutter: 16px;
        --ann-h: 36px;
        --hdr-row: 72px;
        --hdr-sticky: 73px;
        --mnav-h: 0px;
        /* ürün sayfası yapışkan satın alma çubuğu; görünürken "yukarı çık" ve bildirimler üstüne çıkar */
        --sbar-h: 76px;

        /* gölge: yalnız üstte duran katmanda ve üstüne gelmede */
        --shc: light-dark(#09090b, #000000);
        --sh-1: 0 1px 2px color-mix(in srgb, var(--shc) 6%, transparent),
                0 2px 8px -2px color-mix(in srgb, var(--shc) 9%, transparent);
        --sh-2: 0 4px 10px -4px color-mix(in srgb, var(--shc) 13%, transparent),
                0 16px 40px -12px color-mix(in srgb, var(--shc) 22%, transparent);
        --sh-3: 0 20px 60px -16px color-mix(in srgb, var(--shc) 40%, transparent);

        /* hareket */
        --t-fast: 140ms;
        --t-med: 240ms;
        --t-slow: 420ms;
        --ease: cubic-bezier(.2, .8, .2, 1);
        --ease-out: cubic-bezier(.4, 0, 1, 1);
        /* Yay eğrileri: CSS linear() olarak yay denkleminden örneklendi (kütle 1; sertlik / sönüm: spring 420 / 28 ≈ %5
           aşım, snappy 500 / 32, soft 260 / 26); süre = oturma süresi. JS karşılığı Site.motion.springs (snappy, soft).
           */
        --ease-spring: linear(
            0, 0.0444, 0.1521, 0.2917, 0.4403, 0.5825, 0.7087, 0.8142, 0.8976, 0.9599, 1.0034, 1.0311, 1.0464, 1.0525,
            1.052, 1.0474, 1.0406, 1.0328, 1.025, 1.018, 1.0119, 1.007, 1.0033, 1.0006, 0.9988, 0.9978, 0.9973, 0.9972,
            0.9974, 0.9977, 1
        );
        --dur-spring: 470ms;
        --ease-spring-snappy: linear(
            0, 0.0361, 0.1251, 0.2432, 0.3724, 0.5004, 0.6189, 0.7231, 0.8108, 0.8817, 0.9366, 0.9772, 1.0057, 1.0241,
            1.0347, 1.0394, 1.0398, 1.0374, 1.0333, 1.0283, 1.0231, 1.0181, 1.0136, 1.0096, 1.0064, 1.0038, 1
        );
        --dur-spring-snappy: 340ms;
        --ease-spring-soft: linear(
            0, 0.0355, 0.1213, 0.2331, 0.354, 0.4724, 0.5817, 0.6779, 0.7596, 0.8268, 0.8804, 0.922, 0.9533, 0.976,
            0.9919, 1.0024, 1.0089, 1.0123, 1.0137, 1.0137, 1.0127, 1.0113, 1.0097, 1.008, 1.0064, 1.005, 1.0038,
            1.0028, 1
        );
        --dur-spring-soft: 500ms;
        /* aşımsız (kritik sönümlü, sertlik 300): ekran kenarına yaslı katmanlar (çekmece, alt sayfa) kenardan
           ayrılmasın */
        --ease-spring-calm: linear(
            0, 0.043, 0.1396, 0.2566, 0.3752, 0.4854, 0.5827, 0.6657, 0.7348, 0.7914, 0.837, 0.8734, 0.9022, 0.9247,
            0.9423, 0.9559, 0.9664, 0.9745, 0.9807, 0.9854, 0.989, 0.9917, 0.9938, 0.9953, 0.9965, 0.9974, 1
        );
        --dur-spring-calm: 460ms;

        /* katman */
        --z-sticky: 100;
        --z-header: 200;
        --z-nav: 250;
        --z-drop: 300;
        --z-drawer: 400;
        --z-toast: 500;
    }
    :root[data-theme="dark"], [data-theme="dark"] { color-scheme: dark; }
    :root[data-theme="light"], [data-theme="light"] { color-scheme: light; }
    [data-theme] { color: var(--text); }
    @media (min-width: 768px) { :root { --gutter: 24px; } }
    @media (min-width: 1280px) { :root { --gutter: 32px; } }
    @media (max-width: 1023.98px) {
        :root { --hdr-sticky: 55px; }
        :root { --mnav-h: calc(58px + env(safe-area-inset-bottom)); --sbar-h: 64px; }
    }
    @media (prefers-reduced-motion: reduce) {
        :root { --t-fast: 0ms; --t-med: 0ms; --t-slow: 0ms; --dur-spring: 0ms; --dur-spring-snappy: 0ms;
            --dur-spring-soft: 0ms; --dur-spring-calm: 0ms; }
    }
    @media (prefers-contrast: more) {
        :root { --border: light-dark(#8e8e96, #6a6a72); --border-2: light-dark(#71717a, #7a7a82);
            --text-3: var(--text-2); }
    }
}

/* -------------------------------------------------------------------------- temel */
@layer base {
    html { background: var(--bg); scroll-padding-top: calc(var(--hdr-sticky) + 20px); scrollbar-gutter: stable; }
    @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
    html:has(dialog[open]:modal) { overflow: hidden; }
    body {
        min-height: 100dvh; display: flex; flex-direction: column;
        font: 400 var(--fs-md)/var(--lh-md) var(--font-body); color: var(--text); background: var(--bg);
        -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
        font-feature-settings: "cv11";
        padding-bottom: var(--mnav-h);
    }
    main { flex: 1 0 auto; }
    :where(h1, h2, h3, h4) { font-family: var(--font-head); font-weight: var(--head-wt); letter-spacing: var(--head-ls);
        line-height: 1.12; font-optical-sizing: auto; text-wrap: balance; }
    h1 { font-size: var(--fs-2xl); }
    h2 { font-size: var(--fs-xl); }
    /* küçük başlıklar (pencere, kutu, sütun) 800 yerine 700 ve daha az sıkı: Bricolage küçük boyda kapanır */
    h3, h4 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
    p { text-wrap: pretty; }
    small { font-size: var(--fs-sm); }
    strong, b { font-weight: 600; }
    .link { color: var(--acc-text); text-decoration: underline; text-decoration-thickness: 1px;
        text-underline-offset: .18em; }
    .link:hover { text-decoration-thickness: 2px; }
    :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--acc-text);
        outline-offset: 2px; }
    [tabindex="-1"]:focus:not(:focus-visible) { outline: 0; }
    ::selection { background: color-mix(in oklab, var(--acc) 30%, transparent); }
    hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-5) 0; }
    kbd { font: 500 11px/1 var(--font-body); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--border-2);
        color: var(--text-3); background: var(--surface); }
    .icon, .lucide, i[data-lucide] { width: var(--ic, 20px); height: var(--ic, 20px); flex: none; display: inline-block;
        vertical-align: middle;
        fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
    .num { font-variant-numeric: tabular-nums; }
    .skip { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: var(--r-sm);
        background: var(--inverse); color: var(--inverse-text); font-weight: 600; transition: top var(--t-fast); }
    .skip:focus { top: 12px; }
    @view-transition { navigation: auto; }
    /* sayfanın geri kalanı hızlı çapraz solar (≤ 180 ms); asıl hareket eşleşen üç öğededir (js/store/boot.js) */
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
    /* kart görseli ↔ ürün görseli: yaylı eğriyle oturur, yolda hafif kalkar (gölge); başlık ve fiyat 40 / 70 ms
       arayla ardından gelir */
    ::view-transition-group(pimg) { animation-duration: calc(var(--dur-spring) + 60ms);
        animation-timing-function: var(--ease-spring); z-index: 52; }
    ::view-transition-image-pair(pimg) { animation: vt-lift calc(var(--dur-spring) + 60ms) var(--ease) both; }
    ::view-transition-old(pimg), ::view-transition-new(pimg) { height: 100%; width: 100%; object-fit: contain; }
    ::view-transition-group(ptitle) { animation-duration: var(--dur-spring); animation-delay: 40ms;
        animation-timing-function: var(--ease-spring-soft); z-index: 51; }
    ::view-transition-group(pprice) { animation-duration: var(--dur-spring); animation-delay: 70ms;
        animation-timing-function: var(--ease-spring-soft); z-index: 50; }
    ::view-transition-old(ptitle), ::view-transition-new(ptitle) { animation-duration: 260ms; animation-delay: 40ms; }
    ::view-transition-old(pprice), ::view-transition-new(pprice) { animation-duration: 260ms; animation-delay: 70ms; }
    /* eşi olmayan ad (öbür sayfada o öğe görünmüyordu): havada kalmaz, sayfanın geri kalanıyla aynı hızda solar */
    ::view-transition-old(pimg):only-child, ::view-transition-new(pimg):only-child { animation-duration: 160ms;
        animation-delay: 0ms; }
    ::view-transition-old(ptitle):only-child, ::view-transition-new(ptitle):only-child { animation-duration: 160ms;
        animation-delay: 0ms; }
    ::view-transition-old(pprice):only-child, ::view-transition-new(pprice):only-child { animation-duration: 160ms;
        animation-delay: 0ms; }
    @keyframes vt-lift { 45% { filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--shc) 22%, transparent)); } }
    @media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
}

/* -------------------------------------------------------------------------- iskelet */
@layer layout {
    .container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
        padding-inline: var(--gutter); }
    .page { padding-block: var(--sp-5) var(--sp-10); }
    .page-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
        margin-block: var(--sp-3) var(--sp-5); }
    .page-head h1 { font-size: var(--fs-3xl); }
    .page-head .meta { color: var(--text-3); font-size: var(--fs-sm); }

    /* ---- duyuru çubuğu (Store/_Announcement): koyu bant, mesajlar dikey döner (yalnız CSS; JS yokken de çalışır).
       Mesaj sayısına göre 2 / 3 adımlı animasyon; son satır ilkinin kopyasıdır (döngü kesintisiz kapansın, inert).
       Üstüne gelince durur; klavye ve dokunma için durdur / oynat düğmesi (header.js, data-paused; WCAG 2.2.2).
       Azaltılmış harekette dönüş ve düğme yoktur, yalnız ilk mesaj görünür. */
    .announce { position: relative; background: var(--band-dark); color: var(--band-ink);
        border-bottom: 1px solid var(--band-dark-line); font-size: 13px; font-weight: 500; }
    .announce-view { height: var(--ann-h); overflow: hidden; }
    .announce-track { margin: 0; padding: 0; list-style: none; animation-timing-function: var(--ease-spring-soft);
        animation-iteration-count: infinite; }
    /* safe center: uzun mesaj dar ekranda iki yandan kırpılmaz, başı görünür ve sonu üç nokta olur */
    .announce-item { display: flex; align-items: center; justify-content: safe center; gap: 8px; height: var(--ann-h);
        padding-inline: var(--gutter); text-align: center; white-space: nowrap; --ic: 15px; }
    .announce-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    /* bant her temada koyu: vurgunun koyu zemin türevi (--acc koyu markalarda kaybolurdu) */
    .announce-item .icon { color: var(--acc-text-d); }
    .announce[data-count="2"] .announce-track { animation-name: announce-2; animation-duration: 10s; }
    .announce[data-count="3"] .announce-track { animation-name: announce-3; animation-duration: 15s; }
    .announce:is([data-count="2"], [data-count="3"]) .announce-item { padding-inline: max(var(--gutter), 44px); }
    .announce:hover .announce-track, .announce[data-paused] .announce-track { animation-play-state: paused; }
    .announce-pause { position: absolute; top: 50%; right: max(var(--gutter) - 8px, 6px); translate: 0 -50%;
        display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--band-ink-2);
        --ic: 15px; transition: background var(--t-fast), color var(--t-fast); }
    .announce-pause:hover { background: color-mix(in oklab, var(--band-ink) 14%, transparent); color: var(--band-ink); }
    .announce-pause:focus-visible { outline-color: var(--acc-text-d); }
    .announce-pause[aria-pressed="true"] .icon:first-child,
            .announce-pause:not([aria-pressed="true"]) .icon:last-child { display: none; }
    @keyframes announce-2 {
        0%, 42% { translate: 0 0; }
        50%, 92% { translate: 0 calc(var(--ann-h) * -1); }
        100% { translate: 0 calc(var(--ann-h) * -2); }
    }
    @keyframes announce-3 {
        0%, 29% { translate: 0 0; }
        33.3%, 62.3% { translate: 0 calc(var(--ann-h) * -1); }
        66.6%, 95.6% { translate: 0 calc(var(--ann-h) * -2); }
        100% { translate: 0 calc(var(--ann-h) * -3); }
    }
    @media (prefers-reduced-motion: reduce) {
        .announce-track { animation: none !important; }
        .announce-pause { display: none; }
        .announce .announce-item { padding-inline: var(--gutter); }
    }

    /* ---- başlık: 72 px, yapışkan. Zemin ::before'da (backdrop-filter başlığın kendisinde olsaydı içindeki fixed arama
       paneli ve mega menü başlığa göre konumlanırdı); kaydırınca yarı saydam ve bulanık. */
    .hdr { position: sticky; top: 0; z-index: var(--z-header); border-bottom: 1px solid var(--border);
        transition: box-shadow var(--t-med) var(--ease); }
    .hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg);
        transition: background var(--t-med) var(--ease); }
    @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
        html[data-scrolled] .hdr::before { background: color-mix(in srgb, var(--bg) 78%, transparent);
            -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); }
    }
    html[data-scrolled] .hdr { box-shadow: 0 10px 28px -20px color-mix(in srgb, var(--shc) 35%, transparent); }
    .hdr-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas: "logo nav search act"; align-items: center; column-gap: var(--sp-4);
        height: var(--hdr-row); }
    /* Kaydırınca yalnız zemin ve gölge değişir; yükseklik sabit. Küçülen başlık içeriği kaydırıyor, tarayıcının
       kaydırma düzeltmesiyle en üstün hemen altında başlık sürekli büyüyüp küçülüyordu. */
    .hdr-start { grid-area: logo; display: flex; align-items: center; gap: 6px; min-width: 0; }
    .logo { display: flex; align-items: center; gap: var(--sp-3); }
    .logo-text { font-family: var(--font-head); font-size: 26px; font-weight: 800; letter-spacing: -.045em;
        color: var(--text); white-space: nowrap; }
    .logo img { height: 34px; width: auto; }
    .logo .logo-dark { display: none; }
    [data-theme="dark"] .logo .logo-light { display: none; }
    [data-theme="dark"] .logo .logo-dark { display: block; }
    :root[data-theme="dark"] [data-theme="light"] .logo .logo-light,
            :root:not([data-theme]) [data-theme="light"] .logo .logo-light { display: block; }
    :root[data-theme="dark"] [data-theme="light"] .logo .logo-dark,
            :root:not([data-theme]) [data-theme="light"] .logo .logo-dark { display: none; }
    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .logo .logo-light { display: none; }
        :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
    }
    .hdr-act { grid-area: act; display: flex; align-items: center; gap: 2px; }
    .hbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        height: 44px; min-width: 44px; padding-inline: 10px; border-radius: var(--r-md); font-size: 14px;
        font-weight: 600; color: var(--text); white-space: nowrap; transition: background var(--t-fast); --ic: 22px; }
    .hbtn:hover { background: var(--surface-2); }
    .hbtn-label { display: none; }
    .hbtn-ic { position: relative; display: grid; }
    .count { position: absolute; top: -7px; right: -9px; min-width: 19px; height: 19px; padding-inline: 5px;
        border-radius: var(--r-full); background: var(--acc); color: var(--acc-ink); border: 2px solid var(--bg);
        font: 700 11px/15px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }
    .count:empty, .count[data-n="0"] { display: none; }
    /* Motion yoksa (Site.motion.bump sınıfı verir) yay eğrisiyle büyüyüp döner */
    .count.bump { animation: bump var(--dur-spring) var(--ease-spring); }
    @keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

    /* tema düğmesi: sistem / açık / koyu */
    .theme-btn [data-mode] { display: none; }
    :root:not([data-theme]) .theme-btn [data-mode="system"], :root[data-theme="light"] .theme-btn [data-mode="light"], :root[data-theme="dark"] .theme-btn [data-mode="dark"] { display: inline-block; }

    /* ---- arama */
    .search { grid-area: search; position: relative; width: clamp(180px, 16vw, 240px); justify-self: end; }
    .search-box { display: flex; align-items: center; gap: 10px; height: 44px; padding-inline: 14px 6px;
        border-radius: var(--r-md); background: transparent; border: 1.5px solid var(--border-ctl);
        color: var(--text-3);
        transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
    .search-box:hover { border-color: var(--text-3); }
    .search[data-expanded] .search-box, .search-box:focus-within { background: var(--surface);
        border-color: var(--text); box-shadow: 0 0 0 3px var(--acc-ring); }
    .search-box input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none;
        color: var(--text); font-size: 15px; }
    .search-box input::placeholder { color: var(--text-3); text-overflow: ellipsis; }
    .search-box input:focus-visible { outline: 0; }
    .search-clear, .search-cancel { display: none; }
    .search[data-has-text] .search-clear { display: grid; }
    .search[data-has-text] kbd { display: none; }
    .search-clear { place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--text-3);
        --ic: 18px; }
    .search-clear:hover { background: var(--surface-2); color: var(--text); }
    .search-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
        color: var(--text-2); --ic: 18px; }
    /* panel kutudan geniş: sağa yaslı açılır, yay eğrisiyle iner */
    .search-panel { position: absolute; z-index: var(--z-drop); top: calc(100% + 10px); right: 0;
        width: min(540px, calc(100vw - 2 * var(--gutter))); display: none; max-height: min(72vh, 620px); overflow: auto;
        overscroll-behavior: contain; padding: var(--sp-2); background: var(--surface);
        border: 1.5px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-2);
        transform-origin: top right; }
    .search[data-expanded] .search-panel { display: block;
        animation: drop-in var(--dur-spring-soft) var(--ease-spring-soft); }
    @keyframes drop-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
    .sp-sec + .sp-sec { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border); }
    .sp-title { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
    .sp-title button { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none;
        color: var(--acc-text); }
    .sp-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px;
        border-radius: var(--r-md); color: var(--text); font-size: 14px; cursor: pointer; }
    .sp-opt:hover, .sp-opt[aria-selected="true"] { background: var(--surface-2); }
    .sp-opt mark { background: none; color: inherit; font-weight: 700; }
    .sp-opt .icon { color: var(--text-3); --ic: 18px; }
    .sp-opt .sp-sub { margin-left: auto; color: var(--text-3); font-size: 12px; }
    .sp-thumb { width: 48px; height: 48px; flex: none; border-radius: var(--r-sm); background: var(--tile);
        overflow: hidden; isolation: isolate; }
    .sp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--tile-blend);
        filter: var(--tile-filter); }
    .sp-name { display: grid; gap: 2px; min-width: 0; }
    .sp-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sp-price { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
    .sp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 10px; }
    .sp-all { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
        margin-top: var(--sp-2); border-radius: var(--r-md); background: var(--ink); color: var(--ink-text);
        font-weight: 600; font-size: 14px; }
    .sp-all:hover, .sp-all[aria-selected="true"] { background: color-mix(in oklab, var(--ink), var(--bg) 16%); }
    .sp-empty { padding: 20px 10px; text-align: center; color: var(--text-3); font-size: 14px; }
    /* boş panel: popüler aramalar ve görselli kategori kısayolları */
    .sp-pop { --ic: 14px; }
    .sp-pop .icon { color: var(--acc-text); }
    .sp-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px 6px 10px; }
    .sp-cat { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: var(--r-md);
        color: var(--text); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25;
        transition: background var(--t-fast); }
    .sp-cat:hover { background: var(--surface-2); }
    .sp-cat-img { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md);
        background: var(--tile); overflow: hidden; isolation: isolate; color: var(--tile-ink); --ic: 22px; }
    .sp-cat-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: var(--tile-blend);
        filter: var(--tile-filter); }
    @media (max-width: 767.98px) { .sp-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sp-cat-img { width: 52px; height: 52px; } }

    /* ---- kategori satırı (başlığın içinde) ve mega menü (masaüstü)
       Mega menü başlığa (.hdr) göre konumlanır: nav, nav-list ve li konumlu (position) olmamalı. Kayan çizgi (.nav-ink)
       js/store/header.js'te kurulur; JS yokken etkin öğenin altı ::after ile çizilir. */
    .catnav { --nav-pad: 11px; grid-area: nav; display: flex; align-self: stretch; min-width: 0; }
    .catnav-in { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-width: 0; }
    .catnav-list { display: flex; flex-wrap: wrap; flex: 0 1 auto; min-width: 0; height: var(--hdr-row);
        overflow: hidden; margin: 0; padding: 0; list-style: none; }
    .catnav-link { position: relative; display: flex; align-items: center; height: var(--hdr-row);
        padding-inline: var(--nav-pad); font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
        transition: color var(--t-fast); }
    .catnav-list > li:hover > .catnav-link, .catnav-list > li:focus-within > .catnav-link, .catnav-link[aria-current] { color: var(--text); }
    .catnav-list:not(.has-ink) .catnav-link[aria-current]::after { content: ""; position: absolute;
        left: var(--nav-pad); right: var(--nav-pad); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
        background: var(--acc); }
    .nav-ink { position: absolute; left: 0; bottom: -1px; z-index: 1; width: var(--ink-w, 0px); height: 3px;
        border-radius: 3px 3px 0 0; background: var(--acc); translate: var(--ink-x, 0px) 0; opacity: 0;
        pointer-events: none; }
    .nav-ink[data-on] { opacity: 1; }
    .nav-ink[data-ready] { transition: translate var(--dur-spring-snappy) var(--ease-spring-snappy),
            width var(--dur-spring-snappy) var(--ease-spring-snappy), opacity var(--t-fast); }
    /* Sarmalayıcı satır yüksekliğinde: hap düğmeden mega menüye inen fare başlığın altına kadar :hover içinde kalır. */
    .catnav-all-wrap { display: flex; flex: none; align-self: stretch; align-items: center; }
    .catnav-all { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 12px 16px;
        border-radius: var(--r-full); background: var(--ink); color: var(--ink-text); font-size: 14px; font-weight: 600;
        white-space: nowrap; --ic: 18px; transition: background var(--t-fast); }
    .catnav-all:hover { background: color-mix(in oklab, var(--ink), var(--bg) 16%); }
    .catnav-promo { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 10px;
        margin-left: auto; border-radius: var(--r-full); color: var(--acc-text); font-size: 14px; font-weight: 700;
        --ic: 18px; white-space: nowrap; }
    .catnav-promo:hover { background: var(--acc-soft); }
    .catnav-item { display: contents; }

    .mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
        border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
        border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--sh-2);
        visibility: hidden; opacity: 0; transform: translateY(-10px); transform-origin: top center;
        transition: opacity var(--t-fast) var(--ease-out) .2s, transform var(--t-fast) var(--ease-out) .2s, visibility 0s linear .32s; }
    /* pointer-events kapatılmaz: gizlenme visibility gecikmesiyle (.32s) olur. O sürede menü hâlâ fareyi alır;
       çapraz inen ya da kısa süre dışarı taşan fare menüye girince :hover geri gelir, menü kapanmaz. */
    .mega::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh;
        background: var(--scrim-soft); pointer-events: none; }
    .catnav-list > li:hover > .mega, .catnav-list > li:focus-within > .mega, .catnav-list > li[data-expanded] > .mega,
    .catnav-all-wrap:hover > .mega, .catnav-all-wrap:focus-within > .mega, .catnav-all-wrap[data-expanded] > .mega {
        visibility: visible; opacity: 1; transform: none; pointer-events: auto;
        transition: opacity var(--t-med) var(--ease) .12s, transform var(--dur-spring) var(--ease-spring) .12s,
                visibility 0s linear .12s; }
    .catnav-list:hover > li:not(:hover) > .mega { transition-delay: .1s, .1s, .22s; }
    /* Açılan menü, kapanmakta olanın üstünde: komşu öğeye geçip aşağı inen fare eski menüye düşmez. */
    .catnav-list > li:is(:hover, :focus-within, [data-expanded]) > .mega,
    .catnav-all-wrap:is(:hover, :focus-within, [data-expanded]) > .mega { z-index: 1; }
    .mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-8);
        padding-block: var(--sp-7) var(--sp-8); }
    .mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: var(--sp-6) var(--sp-7); align-content: start; }
    .mega-col { min-width: 0; }
    .mega-h { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 4px;
        font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
    .mega-h:hover { color: var(--acc-text); }
    .mega-thumb { display: block; width: 52px; height: 52px; flex: none; border-radius: var(--r-md);
        background: var(--tile); overflow: hidden; isolation: isolate;
        transition: transform var(--dur-spring-snappy) var(--ease-spring-snappy); }
    .mega-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: var(--tile-blend);
        filter: var(--tile-filter); }
    .mega-h:hover .mega-thumb { transform: scale(1.06); }
    .mega-col ul { list-style: none; margin: 2px 0 0; padding: 0; }
    .mega-col li a { display: flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--text-2); }
    .mega-col li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
    .mega-more { color: var(--acc-text) !important; font-weight: 600; gap: 4px; --ic: 15px; }
    .mega-in:not(:has(> .mega-feature)), .mega-sub:not(:has(> .mega-feature)) { grid-template-columns: minmax(0, 1fr); }
    .mega-feature { position: relative; display: block; align-self: start; border: 1.5px solid var(--border);
        border-radius: var(--r-xl); overflow: hidden; background: var(--tile); aspect-ratio: 1; isolation: isolate; }
    .mega-feature img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: var(--tile-blend);
        filter: var(--tile-filter); transition: transform var(--t-slow) var(--ease); }
    .mega-feature:hover img { transform: scale(1.05); }
    .mega-feature span { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center;
        justify-content: space-between; gap: 8px; padding: 12px 16px; border-radius: var(--r-md);
        background: var(--ink); color: var(--ink-text); font-weight: 600; font-size: 14px; --ic: 18px; }

    .mega-all .mega-in { grid-template-columns: 280px minmax(0, 1fr); position: relative; min-height: 440px; }
    .mega-tree { list-style: none; margin: 0; padding: 0 var(--sp-4) 0 0; border-right: 1px solid var(--border); }
    .mega-root { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px;
        padding-inline: 14px 10px; border-radius: var(--r-md); font-size: 15px; font-weight: 600; color: var(--text-2);
        --ic: 16px; transition: background var(--t-fast), color var(--t-fast); }
    .mega-root .icon { color: var(--text-3); }
    .mega-sub { position: absolute; top: var(--sp-7); left: calc(var(--gutter) + 280px + var(--sp-8));
        right: var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-8);
        visibility: hidden; opacity: 0; transition: visibility 0s linear .09s, opacity 0s linear .09s; }
    /* Seçili kök header.js'te (li[data-active]): fare ağaçtan sağdaki panele geçerken aradaki boşlukta ya da çapraz
       giderken başka köklerin üstünden geçince seçim değişmez (yalnız :hover ile panel ilk köke dönüyordu, alt dallara
       tıklanamıyordu). */
    /* inherit: menü kapalıyken (gizli .mega) seçili kök paneli de gizli kalır, görünmez tıklama alanı bırakmaz. */
    .mega-tree > li[data-active] > .mega-sub { visibility: inherit; opacity: 1; }
    .mega-tree > li[data-active] > .mega-root { background: var(--surface-2); color: var(--text); }
    .mega-tree > li[data-active] > .mega-root .icon { color: var(--acc-text); }
    /* JS yoksa eski davranış */
    html:not(.js) .mega-tree > li:hover > .mega-sub, html:not(.js) .mega-tree > li:focus-within > .mega-sub,
    html:not(.js) .mega-tree:not(:has(> li:hover, > li:focus-within)) > li:first-child > .mega-sub {
        visibility: inherit;
        opacity: 1; }
    .mega-sub .mega-cols { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

    @media (max-width: 1023.98px) {
        .catnav { display: none; }
        .hdr { top: -56px; }
        .hdr-in { grid-template-columns: auto minmax(0, 1fr) auto;
            grid-template-areas: "logo . act" "search search search"; height: auto; row-gap: 0; }
        .hdr-start .logo { height: 56px; }
        .logo img { height: 28px; }
        .search { width: auto; justify-self: stretch; padding-bottom: 10px; }
        .hdr-act .hide-m { display: none; }
        .hbtn { padding-inline: 10px; }
    }

    /* ---- mobil arama (tam ekran) */
    @media (max-width: 1023.98px) {
        html[data-search-full] { overflow: hidden; }
        html[data-search-full] .search { position: fixed; inset: 0; z-index: var(--z-drawer); width: auto;
            padding: 10px var(--gutter); background: var(--surface); display: flex; flex-direction: column; }
        html[data-search-full] .search-row { display: flex; align-items: center; gap: 8px; }
        html[data-search-full] .search-box { flex: 1; min-width: 0; }
        html[data-search-full] .search-cancel { display: inline-flex; height: 44px; align-items: center; padding-inline: 6px; color: var(--acc-text); font-weight: 600; font-size: 15px; }
        html[data-search-full] .search-panel { position: static; display: block; flex: 1; width: auto; max-height: none;
            margin-top: 10px; border: 0; box-shadow: none; padding: 0; border-radius: 0; animation: none; }
        html[data-search-full] .mnav { display: none; }
        .search-box input { font-size: 16px; }
    }
    .search-row { display: contents; }

    /* ---- mobil alt gezinme: etkin öğenin arkasındaki hap (--i: etkin sıra, sunucudan data-active). Sayfa geçişinde
       hap view-transition ile eski yerinden yenisine yayla kayar (mnav-pill adı); desteklemeyen tarayıcıda yerinde
       belirir.
       */
    .mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px);
            -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--border); }
    .mnav[data-active="0"] { --i: 0; } .mnav[data-active="1"] { --i: 1; } .mnav[data-active="2"] { --i: 2; }
    .mnav[data-active="3"] { --i: 3; } .mnav[data-active="4"] { --i: 4; }
    .mnav-pill { position: absolute; z-index: 0; top: 6px; left: calc(var(--i, 0) * 20% + 6px); width: calc(20% - 12px);
        height: 46px; border-radius: var(--r-md);
        background: color-mix(in oklab, var(--acc) 16%, transparent); pointer-events: none;
            view-transition-name: mnav-pill;
        transition: left var(--dur-spring-snappy) var(--ease-spring-snappy), opacity var(--t-fast); }
    .mnav:not([data-active]) .mnav-pill { opacity: 0; }
    .mnav-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
        justify-content: center; gap: 3px; height: 58px; font-size: 11px; font-weight: 500; color: var(--text-3);
        --ic: 22px; -webkit-tap-highlight-color: transparent; transition: color var(--t-fast); }
    .mnav-item[aria-current="page"] { color: var(--acc-text); font-weight: 700; }
    .mnav-item .count { top: 5px; right: calc(50% - 22px); }
    .mnav-item:active { transform: scale(.94); }
    @media (min-width: 1024px) { .mnav { display: none; } }
    body:has(.mbar) .mnav { display: none; }
    @media (max-width: 1023.98px) { body:has(.mbar) { --mnav-h: calc(72px + env(safe-area-inset-bottom)); } }

    /* ---- güven şeridi ve alt bilgi */
    /* Güven paneli: çerçeveli tek panel, sayfa zemini ile koyu alt bilginin sınırında (zemin yarı yarıya bölünür).
       Bölme noktası panelin ortası: üst boşluk (--trust-top) + panel yüksekliğinin yarısı = %50 + üst boşluğun yarısı.
       */
    .trust {
        --trust-top: var(--sp-9);
        padding-top: var(--trust-top);
        background: linear-gradient(to bottom, var(--bg) calc(50% + var(--trust-top) / 2), var(--band-dark) 0);
    }
    .trust-panel {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 0;
        padding: 0;
        list-style: none;
        background: var(--surface);
        border: 1.5px solid light-dark(var(--border), var(--border-2));
        border-radius: var(--r-xl);
        box-shadow: var(--sh-2);
        overflow: hidden;
    }
    .trust-item { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 22px 24px; }
    .trust-item + .trust-item { border-left: 1px solid var(--border); }
    .trust-ic {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        flex: none;
        border-radius: 14px;
        background: var(--acc-soft);
        color: var(--acc-text);
        --ic: 22px;
        transition: rotate var(--dur-spring) var(--ease-spring), scale var(--dur-spring) var(--ease-spring);
    }
    .trust-ic > svg { display: block; margin: 0; }
    @media (hover: hover) { .trust-item:hover .trust-ic { rotate: -8deg; scale: 1.08; } }
    .trust-text { min-width: 0; }
    .trust-text strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700;
        letter-spacing: -.02em; color: var(--text); }
    .trust-text span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-2); }
    @media (max-width: 1023.98px) {
        .trust { --trust-top: var(--sp-7); }
        .trust-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .trust-item:nth-child(odd) { border-left: 0; }
        .trust-item:nth-child(n + 3) { border-top: 1px solid var(--border); }
    }
    @media (max-width: 479.98px) {
        .trust-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
        .trust-ic { width: 40px; height: 40px; border-radius: 12px; --ic: 19px; }
        .trust-text strong { font-size: 15px; }
    }

    /* Alt bilgi iki temada da koyu (data-theme="dark" _Footer'da sabit): token'lar koyu değerini alır */
    .ftr { background: var(--band-dark); color: var(--text-2); font-size: 14px;
        border-top: 1px solid var(--band-dark-line); color-scheme: dark; }
    .ftr-in { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--sp-8);
        padding-block: var(--sp-10) var(--sp-7); }
    .ftr-brand .logo img { height: 44px; width: auto; }
    .ftr-brand .logo-text { font-size: 34px; }
    .ftr-brand .logo { width: fit-content; margin-bottom: var(--sp-5); }
    /* koyu logosu yoksa açık logo koyu zeminde okunmaz: açık plakaya oturur */
    .ftr-brand .logo.has-plate { padding: 10px 16px; border-radius: var(--r-md); background: var(--logo-plate); }
    .ftr-brand address { font-style: normal; display: grid; gap: 8px; }
    .ftr-brand address a, .ftr-brand address span { display: flex; align-items: center; gap: 10px; --ic: 17px; }
    .ftr-brand address a { justify-self: start; min-height: 32px; }   /* dokunma hedefi (WCAG 2.5.8) */
    .ftr-brand address .icon { color: var(--text-3); }
    .fcol > summary { display: flex; align-items: center; justify-content: space-between; min-height: 32px;
        margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; color: var(--text);
        font-size: 17px; }
    .fcol > summary .icon { display: none; }
    .fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
    .fcol a { display: inline-flex; min-height: 32px; align-items: center; transition: color var(--t-fast); }
    .fcol a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
    .ftr-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; padding-block: var(--sp-5); border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
    .ftr-social { display: flex; gap: 6px; }
    .ftr-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
        color: var(--text-2); border: 1.5px solid var(--border-2); --ic: 18px;
        transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
    .ftr-social a:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }
    .ftr-pay { display: flex; gap: 6px; flex-wrap: wrap; }
    .ftr-pay img { height: 28px; width: auto; border-radius: 4px; }
    .ftr-tools { display: flex; align-items: center; gap: var(--sp-3); }
    /* sağ alttaki "yukarı çık" düğmesi kutuyu örtmesin */
    @media (min-width: 1024px) { .ftr-tools { margin-right: 64px; } }
    @media (max-width: 1023.98px) {
        .ftr-in { grid-template-columns: 1fr; gap: 0; padding-block: var(--sp-8) var(--sp-3); }
        .ftr-brand { padding-bottom: var(--sp-5); }
        .fcol { border-top: 1px solid var(--border); }
        .fcol > summary { min-height: 52px; margin: 0; }
        .fcol > summary .icon { display: inline-block; transition: transform var(--t-med) var(--ease); }
        .fcol[open] > summary .icon { transform: rotate(180deg); }
        .fcol ul { padding-bottom: var(--sp-4); }
        .ftr-bottom { flex-direction: column; align-items: flex-start; }
    }
    @media (min-width: 1024px) { .fcol > summary { pointer-events: none; } }

    .to-top { position: fixed; right: 20px; bottom: calc(var(--mnav-h) + 20px); z-index: var(--z-sticky); display: grid;
        place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink);
        color: var(--ink-text); box-shadow: var(--sh-2);
        opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; visibility: hidden;
            transition: opacity var(--t-fast), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med); }
    html:has(.sbar[data-show]) .to-top { bottom: calc(var(--mnav-h) + var(--sbar-h) + 20px); }
    html[data-far] .to-top { opacity: 1; transform: none; pointer-events: auto; visibility: visible;
        transition: opacity var(--t-med), transform var(--dur-spring) var(--ease-spring), visibility 0s; }

    /* ---- yüzen WhatsApp düğmesi (ayar whatsapp_number); "yukarı çık" düğmesi onun üstüne çıkar */
    .wa-float { position: fixed; right: 20px; bottom: calc(var(--mnav-h) + 20px); z-index: var(--z-sticky);
        display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; --ic: 28px;
        background: var(--whatsapp); color: var(--on-whatsapp); box-shadow: var(--sh-2);
        transition: scale var(--t-fast) var(--ease); }
    .wa-float:hover { scale: 1.06; }
    .wa-float:active { scale: .94; }
    html:has(.sbar[data-show]) .wa-float { bottom: calc(var(--mnav-h) + var(--sbar-h) + 20px); }
    html:has(.wa-float) .to-top { bottom: calc(var(--mnav-h) + 84px); }
    html:has(.wa-float):has(.sbar[data-show]) .to-top { bottom: calc(var(--mnav-h) + var(--sbar-h) + 84px); }
}

/* -------------------------------------------------------------------------- bileşenler */
@layer components {
    /* ---- düğme */
    .btn {
        --btn-h: var(--ctl-md); --btn-px: 18px; --btn-fs: 15px;
        --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-2);
        --btn-bg-h: var(--surface-2); --btn-bg-a: var(--surface-3);
        position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        height: var(--btn-h); padding-inline: var(--btn-px); border-radius: var(--r-md);
        background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
        font-size: var(--btn-fs); font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
            user-select: none;
        transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast),
                transform var(--dur-spring-snappy) var(--ease-spring-snappy);
        --ic: 19px;
    }
    .btn:hover { background: var(--btn-bg-h); }
    .btn:active { background: var(--btn-bg-a); transform: translateY(1px); }
    .btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
    /* birincil düğme siyah (--ink); ürünle ilgili eylemler (sepete ekle, hızlı ekle) vurgu renginde (.btn-acc) */
    .btn-primary, .btn-dark { --btn-bg: var(--ink); --btn-fg: var(--ink-text); --btn-bd: transparent;
        --btn-bg-h: color-mix(in oklab, var(--ink), var(--bg) 16%);
        --btn-bg-a: color-mix(in oklab, var(--ink), var(--bg) 28%); }
    .btn-acc { --btn-bg: var(--acc); --btn-fg: var(--acc-ink); --btn-bd: transparent; --btn-bg-h: var(--acc-hover);
        --btn-bg-a: var(--acc-active); }
    .btn-soft { --btn-bg: var(--acc-soft); --btn-fg: var(--acc-text); --btn-bd: transparent; --btn-bg-h: var(--acc-soft-2); --btn-bg-a: var(--acc-soft-2); }
    .btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
    .btn-danger { --btn-fg: var(--danger); --btn-bd: color-mix(in oklab, var(--danger) 40%, transparent); --btn-bg-h: var(--danger-soft); }
    .btn-link { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--acc-text); --btn-bg-h: transparent; --btn-bg-a: transparent; --btn-px: 0; height: auto; min-height: 32px; }
    .btn-link:hover { text-decoration: underline; text-underline-offset: .2em; }
    .btn-sm { --btn-h: var(--ctl-sm); --btn-px: 14px; --btn-fs: 14px; --ic: 17px; }
    .btn-lg { --btn-h: var(--ctl-lg); --btn-px: 26px; --btn-fs: 16px; --ic: 20px; }
    .btn-block { width: 100%; }
    .btn-icon { width: var(--btn-h); padding: 0; }
    .btn-round { border-radius: var(--r-full); }
    .btn[data-loading] { pointer-events: none; }
    .btn[data-loading] > :is(svg, i):first-child { opacity: 0; }
    .btn[data-loading]::after { content: ""; position: absolute; left: var(--btn-px); top: 50%; width: var(--ic); height: var(--ic); margin-top: calc(var(--ic) / -2); border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
    .btn[data-loading]:not(:has(> :is(svg, i))) { color: transparent; }
    .btn[data-loading]:not(:has(> :is(svg, i)))::after { left: 50%; margin-left: calc(var(--ic) / -2); border-color: var(--btn-fg); border-right-color: transparent; }
    .btn[data-done] { --btn-bg: var(--success); --btn-fg: var(--on-status); --btn-bg-h: var(--success); }
    @keyframes spin { to { transform: rotate(360deg); } }
    .icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
    .icon-btn:hover { background: var(--surface-2); color: var(--text); }

    /* ---- form */
    .field { display: grid; gap: 6px; min-width: 0; }
    .label { font-size: 14px; font-weight: 550; color: var(--text); }
    .label .opt { font-weight: 400; color: var(--text-3); }
    .label .req { color: var(--danger); }
    .hint { font-size: 13px; color: var(--text-3); }
    .input, .select, .textarea {
        width: 100%; height: var(--ctl-md); padding-inline: 14px; border-radius: var(--r-md);
        background: var(--surface); color: var(--text); border: 1.5px solid var(--border-ctl);
        font-size: 15px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
    }
    .textarea { height: auto; min-height: 96px; padding-block: 11px; resize: vertical; line-height: 1.5; field-sizing: content; }
    .select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23808897' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
    .input::placeholder, .textarea::placeholder { color: var(--text-3); }
    .input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
    .input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--text);
        box-shadow: 0 0 0 3px var(--acc-ring); }
    .input:user-invalid, .textarea:user-invalid, .select:user-invalid, [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 18%, transparent); }
    .input:disabled, .select:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
    .field-error { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--danger); --ic: 16px; }
    @media (max-width: 767.98px) { .input, .select, .textarea { font-size: 16px; } }
    .ig { position: relative; display: flex; align-items: center; }
    .ig .input { flex: 1; }
    .ig-pre { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; --ic: 18px; }
    .ig-pre + .input { padding-left: 42px; }
    .ig-suf { position: absolute; right: 4px; }
    .ig:has(.ig-suf) .input { padding-right: 48px; }
    .ig-unit { position: absolute; right: 12px; color: var(--text-3); font-size: 13px; pointer-events: none; }

    .check, .radio { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 24px; cursor: pointer;
        font-size: 14px; line-height: 20px; }
    .check input, .radio input {
        appearance: none; flex: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0;
        border: 1.5px solid var(--border-ctl); background: var(--surface); cursor: pointer;
        transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
    }
    .check input { border-radius: 6px; }
    .radio input { border-radius: 50%; }
    .check input::before { content: ""; width: 12px; height: 12px; background: var(--acc-ink); transform: scale(0); transition: transform var(--t-fast) var(--ease);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
    .radio input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc-ink); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
    .check input:checked, .radio input:checked { background: var(--acc); border-color: var(--acc); }
    .check input:checked::before, .radio input:checked::before { transform: scale(1); }
    .check input:hover:not(:checked), .radio input:hover:not(:checked) { border-color: var(--text-2); }
    .check input:focus-visible, .radio input:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }
    .check input:disabled, .radio input:disabled { opacity: .45; cursor: not-allowed; }
    .switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; min-height: 28px; }
    .switch input { appearance: none; flex: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: var(--r-full); background: var(--border-ctl); cursor: pointer; transition: background var(--t-med); }
    .switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
        border-radius: 50%; background: var(--photo-text-light);
        box-shadow: 0 1px 3px color-mix(in srgb, var(--shc) 25%, transparent);
            transition: transform var(--t-med) var(--ease); }
    .switch input:checked { background: var(--acc); }
    .switch input:checked::before { transform: translateX(18px); }
    .switch input:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }

    .qty { --q-h: var(--ctl-md); display: inline-flex; align-items: center; height: var(--q-h);
        border: 1.5px solid var(--border-2); border-radius: var(--r-md); background: var(--surface); }
    .qty button { display: grid; place-items: center; width: var(--q-h); height: 100%; color: var(--text-2); border-radius: inherit; --ic: 17px; }
    .qty button:hover { color: var(--text); background: var(--surface-2); }
    .qty button:disabled { color: var(--text-3); opacity: .45; pointer-events: none; }
    .qty input { width: 44px; height: 100%; border: 0; background: none; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; outline: 0; }
    .qty-sm { --q-h: var(--ctl-sm); }
    .qty-sm input { width: 34px; font-size: 14px; }
    .qty-lg { --q-h: var(--ctl-lg); }

    /* ---- çip, rozet */
    .chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px;
        border-radius: var(--r-full); border: 1.5px solid var(--border-2); background: var(--surface);
        color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap;
        transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); --ic: 15px; }
    a.chip:hover, button.chip:hover { border-color: var(--text-3); color: var(--text); }
    .chip[aria-pressed="true"], .chip[aria-current], .chip.is-on { background: var(--ink); border-color: var(--ink);
        color: var(--ink-text); }
    .chip-x { padding-right: 6px; }
    .chip-x button { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
        color: var(--text-3); --ic: 14px; }
    .chip-x button:hover { background: var(--surface-3); color: var(--text); }
    .chip-sm { height: 26px; padding-inline: 10px; font-size: 12px; }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .chips-scroll::-webkit-scrollbar { display: none; }
    @media (min-width: 1024px) { .chips-scroll { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

    .badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding-inline: 8px; border-radius: 5px;
        background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; line-height: 1;
        white-space: nowrap; --ic: 13px; }
    .badge-sale { background: var(--sale); color: var(--sale-ink); font-weight: 700; }
    .badge-camp { background: var(--acc); color: var(--acc-ink); }
    .badge-new { background: var(--inverse); color: var(--inverse-text); }
    .badge-out { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); }
    .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); }
    .badge-info { background: var(--info-soft); color: var(--info); }
    .badge-acc { background: var(--acc-soft); color: var(--acc-text); }
    .badge-lg { height: 28px; padding-inline: 10px; font-size: 13px; }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

    /* ---- uyarı */
    .alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; line-height: 20px; --ic: 20px; }
    .alert > .icon { margin-top: 0; }
    .alert-body { flex: 1; display: grid; gap: 2px; }
    .alert-body strong { font-weight: 600; }
    .alert-info { background: var(--info-soft); border-color: color-mix(in oklab, var(--info) 22%, transparent); }
    .alert-info > .icon { color: var(--info); }
    .alert-success { background: var(--success-soft); border-color: color-mix(in oklab, var(--success) 22%, transparent); }
    .alert-success > .icon { color: var(--success); }
    .alert-warning { background: var(--warning-soft); border-color: color-mix(in oklab, var(--warning) 25%, transparent); }
    .alert-warning > .icon { color: var(--warning); }
    .alert-danger { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 22%, transparent); }
    .alert-danger > .icon { color: var(--danger); }

    [data-tip] { position: relative; }
    [data-tip]::after { content: attr(data-tip); position: absolute; z-index: var(--z-drop); left: 50%;
        bottom: calc(100% + 8px); translate: -50% 4px; width: max-content; max-width: 240px; padding: 6px 10px;
        border-radius: var(--r-sm); background: var(--inverse); color: var(--inverse-text);
        font: 500 12px/16px var(--font-body); white-space: normal; text-align: center; opacity: 0; pointer-events: none;
        transition: opacity var(--t-fast), translate var(--t-fast); }
    [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; transition-delay: .3s; }

    /* ---- kart, bölüm */
    .card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); }
    .card-pad { padding: var(--sp-5); }
    @media (min-width: 768px) { .card-pad { padding: var(--sp-6); } }
    .card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px;
        margin-bottom: var(--sp-4); font-size: var(--fs-lg); }
    .sec { margin-block: var(--sp-9); }
    .band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
        padding-block: var(--sp-8); }
    .band.sec { margin-block: var(--sp-9); }
    @media (max-width: 767.98px) { .sec { margin-block: var(--sp-7); } }
    .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
        margin-bottom: var(--sp-4); }
    .sec-head h2 { font-size: var(--fs-3xl); }
    .sec-head p { color: var(--text-3); font-size: 14px; margin-top: 4px; }
    .sec-link { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 32px; color: var(--text);
        font-size: 14px; font-weight: 700; --ic: 17px; }
    .sec-link .icon { transition: transform var(--t-fast) var(--ease); }
    .sec-link:hover .icon { transform: translateX(3px); }
    .stack { display: grid; gap: var(--gap, var(--sp-4)); }
    .row { display: flex; align-items: center; gap: var(--gap, var(--sp-3)); flex-wrap: wrap; }
    .row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
    .divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; }
    .divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

    /* ---- breadcrumb */
    .crumbs { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 13px; color: var(--text-3); }
    .crumbs::-webkit-scrollbar { display: none; }
    .crumbs li { display: flex; align-items: center; gap: 6px; }
    .crumbs li + li::before { content: ""; width: 14px; height: 14px; background: currentColor; opacity: .6;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
    .crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-2); }
    .crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
    .crumbs [aria-current] { color: var(--text-3); max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }

    /* ---- sayfalama: 1.5 px çerçeveli düğmeler, etkin sayfa siyah dolgu */
    .pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: var(--sp-8); }
    .pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 8px;
        border-radius: var(--r-md); border: 1.5px solid transparent; font-size: 15px; font-weight: 600;
        color: var(--text-2); font-variant-numeric: tabular-nums;
        transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast),
                translate var(--dur-spring-snappy) var(--ease-spring-snappy); --ic: 18px; }
    .pager a:hover { border-color: var(--text); color: var(--text); }
    .pager a:active { translate: 0 1px; }
    .pager [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ink-text);
        font-family: var(--font-head); font-weight: 800; }
    .pager .gap { min-width: 24px; color: var(--text-3); }
    .pager .pg-edge { border-color: var(--border-2); background: var(--surface); color: var(--text); }
    .pager .pg-edge[aria-disabled="true"] { opacity: .4; pointer-events: none; }
    .pager-info { display: none !important; }
    @media (max-width: 559.98px) {
        .pager > :not(.pg-edge, .pager-info) { display: none; }
        .pager-info { display: grid !important; min-width: 96px; color: var(--text); }
    }

    /* ---- sekme */
    .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding-inline: 14px;
        font-size: 15px; font-weight: 550; color: var(--text-2); white-space: nowrap; transition: color var(--t-fast); }
    .tab:hover { color: var(--text); }
    .tab[aria-selected="true"], .tab[aria-current] { color: var(--text); }
    .tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
        border-radius: 2px; background: var(--acc); transform: scaleX(0);
        transition: transform var(--t-med) var(--ease); }
    .tab[aria-selected="true"]::after, .tab[aria-current]::after { transform: scaleX(1); }
    .tab .n { font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-2);
        border-radius: var(--r-full); padding: 2px 7px; }

    /* ---- akordeon */
    .acc { border-bottom: 1px solid var(--border); }
    .acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-weight: 600; font-size: 15px; --ic: 18px; }
    .acc > summary .icon { color: var(--text-3); transition: transform var(--t-med) var(--ease); }
    .acc[open] > summary .chev { transform: rotate(180deg); }
    .acc-body { padding-bottom: var(--sp-4); color: var(--text-2); }
    @supports (interpolate-size: allow-keywords) {
        :root { interpolate-size: allow-keywords; }
        details::details-content { block-size: 0; overflow: clip; transition: block-size var(--t-med) var(--ease), content-visibility var(--t-med) allow-discrete; }
        details[open]::details-content { block-size: auto; }
    }

    /* ---- adım göstergesi, zaman çizelgesi */
    /* adım göstergesi: <ol class="steps" data-current="2"><li data-done><span>Sepet</span></li><li
       aria-current="step"><span>…</span></li>… Altta çizgi yolu (::before) ve üstünde etkin adıma kadar dolan çubuk
       (::after). Her adım ayrı sayfa olduğundan çubuk, sayfa açılınca önceki adımın ucundan yeni adımın ucuna yayla
       kayar (yalnız CSS: JS yokken de çalışır). */
    .steps { --cur: 1; --total: 4; position: relative; display: flex; align-items: center;
        justify-content: space-between; margin: 0; padding: 0 0 16px; list-style: none; counter-reset: st;
        font-size: 14px; }
    .steps[data-current="2"] { --cur: 2; } .steps[data-current="3"] { --cur: 3; } .steps[data-current="4"] { --cur: 4; }
    .steps::before, .steps::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
        border-radius: 4px; }
    .steps::before { background: var(--surface-3); }
    .steps::after { background: var(--acc); transform-origin: left center; scale: calc(var(--cur) / var(--total)) 1;
        border-radius: 0 4px 4px 0;
        animation: steps-slide var(--dur-spring-soft) var(--ease-spring-soft) .12s backwards; }
    .steps:has(li[data-failed])::after { background: var(--danger); }
    @keyframes steps-slide { from { scale: calc((var(--cur) - 1) / var(--total)) 1; } }
    @media (prefers-reduced-motion: reduce) { .steps::after { animation: none; } }
    .steps li { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: var(--text-3);
        font-weight: 600; white-space: nowrap; counter-increment: st; }
    .steps li::before { content: counter(st); content: counter(st) / ""; display: grid; place-items: center; flex: none;
        width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border-2); background: var(--surface);
        font: 800 13px/1 var(--font-head); letter-spacing: 0;
            transition: background var(--t-med), border-color var(--t-med), color var(--t-med); }
    .steps li[data-done] { color: var(--text-2); }
    .steps li[data-done]::before { content: "✓"; content: "✓" / ""; background: var(--ink); border-color: var(--ink);
        color: var(--ink-text); font-family: var(--font-body); }
    .steps li[data-failed] { color: var(--danger); }
    .steps li[data-failed]::before { content: "!"; content: "!" / ""; background: var(--danger);
        border-color: var(--danger); color: var(--on-status); }
    .steps li[aria-current="step"] { color: var(--text); font-weight: 700; }
    .steps li[aria-current="step"]::before { background: var(--acc); border-color: var(--acc); color: var(--acc-ink);
        box-shadow: 0 0 0 4px var(--acc-ring); }
    @media (max-width: 639.98px) {
        .steps li { flex: none; }
        .steps li:not([aria-current]) span { position: absolute; width: 1px; height: 1px; overflow: hidden;
            clip-path: inset(50%); }
    }

    .timeline { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); margin: 0;
        padding: 0; list-style: none; }
    .timeline li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
        font-size: 13px; color: var(--text-3); padding-top: 0; }
    .timeline li::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px;
        background: var(--border-2); z-index: 0; }
    .timeline li:first-child::before { display: none; }
    .timeline li[data-done]::before, .timeline li[aria-current]::before { background: var(--success); }
    .tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-2); color: var(--text-3); --ic: 15px; }
    .timeline li[data-done] .tl-dot { background: var(--success); border-color: var(--success);
        color: var(--on-status); }
    .timeline li[aria-current] .tl-dot { background: var(--surface); border-color: var(--success);
        color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
    .timeline li[data-done], .timeline li[aria-current] { color: var(--text); }
    .timeline time { font-size: 12px; color: var(--text-3); }
    @media (max-width: 639.98px) {
        .timeline { grid-template-columns: 1fr; gap: 0; }
        .timeline li { grid-template-columns: 30px 1fr; justify-items: start; text-align: left; column-gap: 12px;
            padding-bottom: 18px; }
        .timeline li::before { left: 14px; right: auto; top: -18px; width: 2px; height: 18px; }
        .timeline li .tl-dot { grid-row: span 2; }
    }

    /* ---- katmanlar: pencere, çekmece, alt sayfa
       Kapalı hâl (taban kural) çıkış geçişini, [open] giriş geçişini taşır: çıkış hızlı, giriş yaylı (CSS linear()).
       Kenara yaslı katmanlar (çekmece, alt sayfa) aşımsız yay kullanır; yüzen pencere hafif aşar. */
    dialog.modal, dialog.drawer, dialog.sheet { background: var(--surface); color: var(--text);
        border: 1.5px solid var(--border); box-shadow: var(--sh-3); overflow: hidden; flex-direction: column; }
    dialog.modal[open], dialog.drawer[open], dialog.sheet[open] { display: flex; }
    dialog::backdrop { background: var(--scrim); opacity: 0;
        transition: opacity var(--t-med) var(--ease), overlay var(--t-med) allow-discrete,
            display var(--t-med) allow-discrete; }
    dialog[open]::backdrop { opacity: 1;
        transition: opacity var(--t-slow) var(--ease), overlay var(--t-slow) allow-discrete,
            display var(--t-slow) allow-discrete; }
    @starting-style { dialog[open]::backdrop { opacity: 0; } }
    dialog.modal { width: min(var(--modal-w, 560px), calc(100vw - 32px)); max-height: min(86dvh, 820px); margin: auto;
        border-radius: var(--r-xl);
        opacity: 0; transform: translateY(18px) scale(.96);
        transition: opacity var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease),
                overlay var(--t-med) allow-discrete, display var(--t-med) allow-discrete; }
    dialog.modal[open] { opacity: 1; transform: none;
        transition: opacity var(--t-med) var(--ease), transform var(--dur-spring) var(--ease-spring),
                overlay var(--dur-spring) allow-discrete, display var(--dur-spring) allow-discrete; }
    @starting-style { dialog.modal[open] { opacity: 0; transform: translateY(18px) scale(.96); } }
    dialog.drawer { position: fixed; inset: 0 0 0 auto; width: min(var(--drawer-w, 420px), 100vw); height: 100dvh;
        max-height: 100dvh; margin: 0; border-width: 0 0 0 1.5px; border-radius: var(--r-xl) 0 0 var(--r-xl);
        transform: translateX(100%);
            transition: transform var(--t-med) var(--ease), overlay var(--t-med) allow-discrete,
                display var(--t-med) allow-discrete; }
    dialog.drawer.from-left { inset: 0 auto 0 0; border-width: 0 1.5px 0 0; border-radius: 0 var(--r-xl) var(--r-xl) 0;
        transform: translateX(-100%); }
    dialog.drawer[open] { transform: none;
        transition: transform var(--dur-spring-calm) var(--ease-spring-calm),
                overlay var(--dur-spring-calm) allow-discrete, display var(--dur-spring-calm) allow-discrete; }
    @starting-style {
        dialog.drawer[open] { transform: translateX(100%); }
        dialog.drawer.from-left[open] { transform: translateX(-100%); }
    }
    /* klavye açıkken (core.js: --kb klavye yüksekliği, --vvh görünen alan yüksekliği) alttan açılan pencere
       klavyenin üstüne oturur */
    dialog.sheet { position: fixed; inset: auto 0 var(--kb, 0px) 0; width: 100%; max-width: 100%;
        max-height: min(92dvh, var(--vvh, 100dvh) - 12px); margin: 0; border-width: 1.5px 0 0;
        border-radius: var(--r-xl) var(--r-xl) 0 0; padding-bottom: env(safe-area-inset-bottom);
        transform: translateY(100%);
            transition: transform var(--t-med) var(--ease), overlay var(--t-med) allow-discrete,
                display var(--t-med) allow-discrete; }
    dialog.sheet[open] { transform: none;
        transition: transform var(--dur-spring-calm) var(--ease-spring-calm),
                overlay var(--dur-spring-calm) allow-discrete, display var(--dur-spring-calm) allow-discrete; }
    @starting-style { dialog.sheet[open] { transform: translateY(100%); } }
    dialog.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px;
        margin-left: -20px; border-radius: 4px; background: var(--border-2); pointer-events: none; }
    @media (max-width: 639.98px) {
        dialog.modal { width: 100%; max-width: 100%; max-height: min(92dvh, var(--vvh, 100dvh) - 12px);
            margin: auto 0 var(--kb, 0px); border-width: 1.5px 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
            transform: translateY(40px); padding-bottom: env(safe-area-inset-bottom); }
        dialog.modal[open] { transition: opacity var(--t-med) var(--ease),
                transform var(--dur-spring-calm) var(--ease-spring-calm), overlay var(--dur-spring-calm) allow-discrete,
                display var(--dur-spring-calm) allow-discrete; }
        @starting-style { dialog.modal[open] { opacity: 0; transform: translateY(40px); } }
    }
    .dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px;
        padding: 10px 12px 10px 24px; border-bottom: 1.5px solid var(--border); flex: none; }
    .dlg-head h2 { font-size: var(--fs-xl); }
    .sheet .dlg-head { padding-top: 18px; }
    /* flex-basis auto (0 değil): yüksekliği içerikten gelen pencerede Safari 0 tabanla hesaplayıp gövdeyi padding kadar bırakıyordu
       (iPhone'da adres penceresinde yalnız başlık ve düğmeler görünüyordu). Taşarsa min-height: 0 ile küçülür, içi
       kayar. */
    .dlg-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--sp-5); }
    .dlg-foot { display: flex; gap: 10px; padding: 14px var(--sp-5); border-top: 1.5px solid var(--border); flex: none;
        background: var(--surface); }
    .dlg-foot .btn { flex: 1; }

    /* açılır menü (popover) */
    .menu { min-width: 220px; padding: 6px; background: var(--surface); border: 1.5px solid var(--border);
        border-radius: var(--r-lg); box-shadow: var(--sh-2); color: var(--text); }
    .menu:popover-open { position: fixed; inset: auto; margin: 0;
        animation: drop-in var(--dur-spring-soft) var(--ease-spring-soft); }
    @supports (position-area: bottom) {
        .menu:popover-open { position-area: bottom span-left; margin-top: 8px;
            position-try-fallbacks: flip-block, flip-inline; }
    }
    .menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
    .menu-head strong { display: block; font-size: 14px; }
    .menu-head span { font-size: 12px; color: var(--text-3); }
    .menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding-inline: 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--text-2); text-align: left; --ic: 18px; }
    .menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
    .menu [aria-checked="true"], .menu [aria-current] { color: var(--text); font-weight: 600; }
    .menu [aria-checked="true"]::after, .menu [aria-current]::after { content: "✓"; margin-left: auto; color: var(--acc-text); }
    .menu hr { margin: 6px 0; }

    /* ---- bildirim: koyu (--ink) kutu, yayla gelir; çıkış hızlı */
    .toasts { position: fixed; z-index: var(--z-toast); left: 24px; bottom: 24px; display: grid; gap: 8px;
        width: min(420px, calc(100vw - 32px)); pointer-events: none; }
    @media (max-width: 1023.98px) {
        .toasts { left: 16px; right: 16px; width: auto; bottom: calc(var(--mnav-h) + 12px); }
    }
    html:has(.sbar[data-show]) .toasts { bottom: calc(var(--mnav-h) + var(--sbar-h) + 12px); }
    .toast { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 10px 10px 16px;
        border-radius: var(--r-lg); background: var(--ink); color: var(--ink-text);
        border: 1.5px solid light-dark(transparent, var(--border-2)); box-shadow: var(--sh-3); font-size: 14px;
        font-weight: 500; pointer-events: auto; --ic: 20px;
        animation: toast-in var(--dur-spring) var(--ease-spring); }
    .toast > .icon:first-child { flex: none; }
    /* bildirim zemini --ink (temanın tersi): durum renkleri de ters yönde alınır */
    .toast-ok > .icon:first-child { color: light-dark(var(--success-d), var(--success-l)); }
    .toast-err > .icon:first-child { color: light-dark(var(--danger-d), var(--danger-l)); }
    .toast-info > .icon:first-child { color: light-dark(var(--info-d), var(--info-l)); }
    .toast-msg { flex: 1; }
    .toast-act { flex: none; height: 36px; padding-inline: 12px; border-radius: var(--r-sm); color: var(--inverse-acc);
        font-weight: 700; }
    .toast-act:hover { background: color-mix(in oklab, var(--inverse-text) 10%, transparent); }
    .toast-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm);
        color: color-mix(in oklab, var(--inverse-text) 70%, transparent); --ic: 18px; }
    .toast-x:hover { background: color-mix(in oklab, var(--inverse-text) 10%, transparent);
        color: var(--inverse-text); }
    .toast.out { animation: toast-out var(--t-med) var(--ease-out) forwards; }
    @keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
    @keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

    /* ---- iskelet, boş durum */
    .sk { display: block; border-radius: var(--r-xs);
        background: linear-gradient(90deg, var(--surface-2) 0 35%, var(--surface-3) 50%,
            var(--surface-2) 65% 100%) 0 0 / 300% 100%;
        animation: sk 1.3s linear infinite; }
    @keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
    @media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
    .sk-line { height: 12px; }
    .sk-media { aspect-ratio: 1; border-radius: var(--r-md); }
    .empty { display: grid; justify-items: center; gap: 10px; padding: var(--sp-9) var(--sp-4); text-align: center; }
    .empty-ic { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 6px; border-radius: 50%;
        background: var(--surface-2); color: var(--text-3); --ic: 34px; }
    .empty h2, .empty h3 { font-size: var(--fs-lg); }
    .empty p { max-width: 42ch; color: var(--text-3); font-size: 14px; }
    .empty .btn { margin-top: 10px; }

    /* ---- fiyat, puan */
    .price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; font-variant-numeric: tabular-nums; }
    .price-now { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; color: var(--text);
        white-space: nowrap; }
    .price-now small { font-size: .72em; font-weight: 550; letter-spacing: 0; }
    .price-old { font-size: 13px; color: var(--text-3); text-decoration: line-through; white-space: nowrap; }
    .price-off { font-size: 13px; font-weight: 650; color: var(--sale); }
    .price.is-sale .price-now { color: var(--text); }
    .stars { --s: 16px; --r: 0; display: inline-block; width: calc(var(--s) * 5); height: var(--s); flex: none;
        background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--border-2) 0);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") 0 0 / var(--s) var(--s) repeat-x; }
    .stars-lg { --s: 22px; }
    .stars-sm { --s: 13px; }
    .rate { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
    .rate .star1 { width: 14px; height: 14px; background: var(--star); flex: none;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
    .rate b { font-weight: 600; color: var(--text); }
    .rate-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
    .rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
    .rate-input label { width: var(--s, 36px); height: var(--s, 36px); cursor: pointer; background: var(--border-2); transition: background var(--t-fast), transform var(--t-fast) var(--ease);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat; }
    .rate-input label:hover, .rate-input label:hover ~ label, .rate-input input:checked ~ label { background: var(--star); }
    .rate-input label:hover { transform: scale(1.12); }
    .rate-input input:focus-visible + label { outline: 2px solid var(--acc-text); outline-offset: 2px; border-radius: 4px; }

    /* ---- ürün kartı (Vitrin V2, docs/B2C_STORE_REDESIGN_PLAN.md §5)
       Çerçeveli kart: üstte açık fotoğraf kartı (koyu temada da açık), altında bilgi bloğu. Üstüne gelince çerçeve
       --text olur,
       kart 2 px kalkar (bağımsız `translate`: FLIP'in Motion `transform`'uyla çakışmaz), ikinci görsele geçilir, vurgu
       renginde "Sepete ekle" yayla belirir. Dokunmatikte her zaman görünen yuvarlak "+" ve kalp. */
    .pgrid { --cols: 2; --gx: 12px; --gy: 12px; display: grid;
        grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gy) var(--gx); }
    @media (min-width: 768px) { .pgrid { --cols: 3; --gx: 20px; --gy: 20px; } }
    @media (min-width: 1280px) { .pgrid { --cols: 4; --gx: 24px; --gy: 24px; } }
    .pgrid[data-cols="1"] { --cols: 1; }
    @media (min-width: 1024px) { .pgrid[data-cols="3"] { --cols: 3; } .pgrid[data-cols="4"] { --cols: 4; } .pgrid[data-cols="5"] { --cols: 5; } }

    .pcard { position: relative; display: flex; flex-direction: column; min-width: 0; container-type: inline-size;
        border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
        transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
                translate var(--dur-spring-snappy) var(--ease-spring-snappy); }
    @media (hover: hover) {
        .pcard:hover { border-color: var(--text); box-shadow: var(--sh-2); translate: 0 -2px; }
    }
    .pcard-media { position: relative; display: block; aspect-ratio: 1;
        border-radius: calc(var(--r-lg) - 1.5px) calc(var(--r-lg) - 1.5px) 0 0; background: var(--tile);
        overflow: hidden; isolation: isolate; z-index: 2; pointer-events: none; }
    /* Görsel alanı, başlık linkinin kartı kaplayan katmanının (.pcard-title a::after) üstünde durur; isolation ayrı bir
       katman kurduğu için düğmelerin kendi z-index'i yetmez. Boş alan ve görsel tıklaması alttaki link katmanına geçer,
       düğmeler ve linkler tıklamayı kendileri alır. */
    .pcard-media :is(button, a) { pointer-events: auto; }
    /* görsellerin yalıtılmış katmanı: multiply karışımı yalnız bu katmanda kalır, rozet ve düğmeleri etkilemez */
    /* Zemin --tile: multiply bu katmanın içinde kalır ama beyaz fotoğraf zemini yine fotoğraf kartının grisine karışır. */
    .pcard-photo { position: absolute; inset: 0; isolation: isolate; background: var(--tile); }
    .pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
        mix-blend-mode: var(--tile-blend); filter: var(--tile-filter);
        transition: opacity var(--t-slow) var(--ease), transform calc(var(--t-slow) * 1.4) var(--ease); }
    .pcard-media[data-fit="cover"] img { object-fit: cover; }
    .pcard-media img.alt { opacity: 0; }
    /* koyu temada da açık kalan fotoğraf kartının içindeki yer tutucular: ikonlar --tile-ink, baş harf (ctile-ini)
       açık tema renkleriyle */
    .ctile-ini { color-scheme: light; }
    .pcard-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tile-ink);
        --ic: 36px; }
    @media (hover: hover) {
        .pcard:hover .pcard-media img.alt[data-ready] { opacity: 1; }
        .pcard:hover .pcard-media:has(img.alt[data-ready]) img:not(.alt) { opacity: 0; }
        .pcard:hover .pcard-media:not(:has(img.alt[data-ready])) img { transform: scale(1.04); }
    }

    /* rozetler: keskin etiket (kart açık kalır, rozet rengi temadan bağımsız okunur) */
    .pcard-badges { position: absolute; z-index: 2; top: 10px; left: 10px; right: 56px; display: flex; flex-wrap: wrap;
        gap: 6px; pointer-events: none; }
    .pcard-badges .badge { height: 24px; padding-inline: 9px; border-radius: 4px; font-family: var(--font-head);
        font-size: 12px; font-weight: 700; letter-spacing: 0; }
    .pcard-badges .badge-new { background: var(--band-dark); color: var(--band-ink); }

    /* favori ve hızlı bak: yuvarlak, sağ üstte; masaüstünde üstüne gelince belirir (beğenilmişse hep görünür) */
    .pcard-fav, .pcard-quick { position: absolute; z-index: 3; right: 10px; display: grid; place-items: center;
        width: 38px; height: 38px; border-radius: 50%;
        background: var(--surface); color: var(--text-2); box-shadow: var(--sh-1); --ic: 18px;
        transition: color var(--t-fast), background var(--t-fast), opacity var(--t-med) var(--ease),
                scale var(--dur-spring-snappy) var(--ease-spring-snappy); }
    .pcard-fav { top: 10px; }
    .pcard-quick { top: 56px; color: var(--text); }
    .pcard-fav:hover { color: var(--danger); }
    .pcard-quick:hover { background: var(--surface-2); }
    [data-fav][aria-pressed="true"] { color: var(--danger); }
    [data-fav][aria-pressed="true"] .icon { fill: currentColor; }
    @media (hover: hover) {
        .pcard-fav, .pcard-quick { opacity: 0; scale: .8; }
        .pcard:hover .pcard-fav, .pcard:focus-within .pcard-fav, .pcard-fav[aria-pressed="true"],
        .pcard:hover .pcard-quick, .pcard:focus-within .pcard-quick { opacity: 1; scale: 1; }
    }

    /* sepete ekle: sağ altta vurgu rengi; yay ile büyüyerek gelir */
    .pcard-add { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: flex; align-items: center;
        justify-content: center; gap: 8px; height: 44px; padding-inline: 14px 18px; border-radius: var(--r-md);
        background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 700; white-space: nowrap;
            box-shadow: var(--sh-2); --ic: 18px; transform-origin: right bottom;
        transition: opacity var(--t-med) var(--ease), scale var(--dur-spring) var(--ease-spring),
                background var(--t-fast); }
    .pcard-add:hover { background: var(--acc-hover); }
    .pcard-add[data-done] { background: var(--success); color: var(--ink-text); }
    @media (hover: hover) {
        .pcard-media .pcard-add { opacity: 0; scale: .6; pointer-events: none; }
        .pcard:hover .pcard-media .pcard-add, .pcard:focus-within .pcard-media .pcard-add { opacity: 1; scale: 1;
            pointer-events: auto; }
    }
    /* dokunmatik ve dar ekran: hızlı bak yok, "+" yuvarlak ve hep görünür */
    @media (hover: none), (max-width: 767.98px) {
        .pcard-quick { display: none; }
        .pcard-fav { width: 36px; height: 36px; top: 8px; right: 8px; opacity: 1; scale: 1; }
        .pcard-media .pcard-add { right: 8px; bottom: 8px; width: 44px; height: 44px; padding: 0; border-radius: 50%;
            opacity: 1; scale: 1; pointer-events: auto; box-shadow: var(--sh-1); --ic: 22px; }
        .pcard-add span { display: none; }
        .pcard-badges { top: 8px; left: 8px; right: 50px; }
    }

    /* bilgi bloğu */
    .pcard-info { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; padding: 14px 16px 16px; }
    @media (max-width: 767.98px) { .pcard-info { padding: 10px 12px 12px; } }
    .pcard-brand { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
        color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pcard-title { font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 20px;
        letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        text-wrap: auto; }
    .pcard-title a { color: var(--text); }
    .pcard-title a::after { content: ""; position: absolute; inset: -2px; z-index: 1; border-radius: var(--r-lg); }
    .pcard-title a:focus-visible { outline: 0; }
    .pcard:has(.pcard-title a:focus-visible) { outline: 2px solid var(--acc-text); outline-offset: 3px; }
    .pcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 22px; }
    .pcard-meta:not(:has(*)) { display: none; }
    .pcard-meta .chip-sm { height: 22px; padding-inline: 8px; border-width: 1px; font-size: 11px;
        color: var(--text-3); }
    .pcard .price { margin-top: auto; padding-top: 6px; }
    .pcard .price-now { font-size: 17px; font-weight: 700; }
    .pcard.is-out .pcard-media img { opacity: .5; }
    .pcard.is-out:hover .pcard-media img.alt[data-ready] { opacity: .5; }
    .pcard.is-out .pcard-add { display: none; }
    .pcard.is-out .price-now { color: var(--text-3); }
    @media (min-width: 768px) {
        .pcard-title { font-size: 15px; line-height: 21px; }
        .pcard .price-now { font-size: 19px; }
    }
    @container (max-width: 200px) {
        .pcard-brand { font-size: 11px; }
        .pcard-title { font-size: 13px; line-height: 18px; }
        .pcard .price-now { font-size: 15px; }
        .pcard .price-old { font-size: 12px; }
        .pcard-media .pcard-add { right: 8px; bottom: 8px; width: 40px; height: 40px; padding: 0; border-radius: 50%;
            --ic: 20px; }
        .pcard-add span { display: none; }
    }
    /* ---- imza hareketler (js/store/fx.js): süs öğeleri tarayıcının üst katmanında (popover) çizilir, tıklamayı
       yutmaz.
       .fly-ghost sepete uçan görsel, .morph-ghost hızlı bakış görsel kopyası, .fx-burst (.fav-burst / .cart-burst)
       nokta halkası. */
    .fx-layer { position: fixed; inset: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: none;
        color: inherit; pointer-events: none; z-index: var(--z-toast); }
    .fly-ghost, .morph-ghost { border-radius: var(--r-lg); background: var(--tile); isolation: isolate;
        overflow: hidden; transform-origin: 50% 50%; will-change: transform, opacity; }
    .fly-ghost { box-shadow: var(--sh-3); }
    .morph-ghost { transform-origin: 0 0; --lift: 0;
        box-shadow: 0 calc(18px * var(--lift)) calc(40px * var(--lift)) -8px color-mix(in srgb,
            var(--shc) calc(40% * var(--lift)), transparent); }
    .fly-ghost img, .morph-ghost img { display: block; width: 100%; height: 100%; object-fit: contain;
        mix-blend-mode: var(--tile-blend); filter: var(--tile-filter); }
    .fx-burst { width: 0; height: 0; }
    .fx-dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: 0; border-radius: 50%;
        background: var(--acc); }
    .fx-dot.is-small { width: 5px; height: 5px; }
    .fx-ring { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border: 2px solid var(--acc);
        border-radius: 50%; }
    /* sepet simgesi varışta bu noktadan ezilir (alt orta); mobil alt çubukta simge svg'dir */
    [data-mini-cart] .hbtn-ic, .mnav-item .icon { transform-origin: 50% 90%; }
    /* metin kayması (Site.rollText): eski değer ::after'da yukarı çıkar, yenisi .roll-in ile alttan gelir; metin hep
       yeni değerdir */
    [data-roll] { overflow: hidden; }
    /* ikinci content bildirimi alt metni boş verir: ekran okuyucu eski değeri ("Sepet 3 2") okumaz; desteklemeyen
       tarayıcı ilkini kullanır */
    [data-roll]::after { content: attr(data-prev); content: attr(data-prev) / ""; position: absolute; inset: 0;
        display: grid; place-items: center; }
    .roll-in { display: block; font-style: normal; }
    /* mini sepete yeni eklenen satır: giriş yayı JS'te, burada kısa vurgu */
    .mc-line.is-new { animation: mc-new 1.4s var(--ease) both; }
    @keyframes mc-new { from { background: var(--acc-soft); } to { background: transparent; } }
    @media (prefers-reduced-motion: reduce) { .mc-line.is-new { animation: none; } }
    /* sepet / sipariş satırında kişiselleştirme metni */
    .cline-custom { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 2px; padding: 4px 8px;
        border-radius: var(--r-sm); background: var(--acc-soft); color: var(--text-2); font-size: 13px;
        line-height: 18px; --ic: 14px; max-width: 100%; }
    .cline-custom .icon { margin-top: 2px; color: var(--acc-text); }
    .cline-custom b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
    /* liste görünümü: görsel solda, bilgi sağda, fiyat en sağda */
    .pgrid[data-view="list"] { --cols: 1; --gy: 12px; }
    .pgrid[data-view="list"] .pcard { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
    .pgrid[data-view="list"] .pcard-media { border-radius: calc(var(--r-lg) - 1.5px) 0 0 calc(var(--r-lg) - 1.5px); }
    .pgrid[data-view="list"] .pcard-info { display: grid; grid-template-columns: minmax(0, 1fr) auto;
        align-content: start; column-gap: var(--sp-6); padding: 18px 22px; }
    .pgrid[data-view="list"] .pcard-info > * { grid-column: 1; }
    .pgrid[data-view="list"] .pcard-title { min-height: 0; font-size: 17px; line-height: 24px; }
    .pgrid[data-view="list"] .pcard-desc { display: block; }
    .pgrid[data-view="list"] .price { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end;
        margin-top: 0; padding-top: 0; }
    .pgrid[data-view="list"] .pcard-media .pcard-add { right: 8px; bottom: 8px; width: 44px; height: 44px; padding: 0;
        border-radius: 50%; opacity: 1; scale: 1; pointer-events: auto; box-shadow: var(--sh-1); --ic: 22px; }
    .pgrid[data-view="list"] .pcard-add span { display: none; }
    .pgrid[data-view="list"] .pcard-quick { display: none; }
    .pcard-desc { display: none; margin-top: 4px; color: var(--text-3); font-size: 14px; -webkit-line-clamp: 2; }

    /* ---- kaydırmalı şerit */
    .scroller { --per: 2.2; --gap: 12px; position: relative; }
    @media (min-width: 640px) { .scroller { --per: 3.2; } }
    @media (min-width: 1024px) { .scroller { --per: var(--per-lg, 5); --gap: 20px; } }
    .scroller-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap);
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
            margin: -4px 0 -24px; padding: 4px 0 30px; list-style: none; }
    .scroller-track::-webkit-scrollbar { display: none; }
    .scroller-track > * { scroll-snap-align: start; min-width: 0; }
    @media (max-width: 1023.98px) {
        .scroller-track { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
        .scroller { --edge: var(--gutter); }
    }
    .scroller-btn { position: absolute; z-index: 4; top: var(--btn-top, 38%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--sh-2); --ic: 20px;
        transition: opacity var(--t-fast), transform var(--t-fast) var(--ease); }
    .scroller-btn:hover { transform: scale(1.06); }
    .scroller-btn[data-dir="-1"] { left: -22px; }
    .scroller-btn[data-dir="1"] { right: -22px; }
    .scroller-btn:disabled { opacity: 0; pointer-events: none; }
    @media (max-width: 1023.98px), (hover: none) { .scroller-btn { display: none; } }
    .dots { display: flex; justify-content: center; margin-top: 4px; }
    /* görünen nokta 8 px, dokunma alanı 24 px (WCAG 2.5.8) */
    .dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0; background: none; }
    .dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--border-2); transition: width var(--t-med) var(--ease), background var(--t-med); }
    .dots button[aria-current="true"]::before { width: 22px; background: var(--text); }

    /* ---- kargo ilerlemesi, geri sayım */
    .meter { display: grid; gap: 8px; font-size: 14px; }
    .meter-text { display: flex; align-items: center; gap: 8px; --ic: 18px; }
    .meter-text .icon { color: var(--acc-text); }
    .meter-text b { font-weight: 650; }
    .bar { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
    .bar > i { display: block; width: calc(var(--p, 0) * 1%); height: 100%; border-radius: inherit; background: var(--acc); transition: width var(--t-slow) var(--ease); }
    .meter.is-done .meter-text .icon { color: var(--success); }
    .meter.is-done .bar > i { background: var(--success); }
    .cd { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
    .cd span { display: grid; grid-auto-flow: column; justify-content: center; place-items: center; min-width: 30px;
        height: 28px; padding-inline: 4px; border-radius: 6px; background: var(--inverse); color: var(--inverse-text);
        font-size: 13px; font-weight: 650; }
    /* her rakam kendi kutusunda: yalnız değişen rakam dikey kayar (core.js › renderCountdownUnit) */
    .cd .cd-d { position: relative; display: block; min-width: .62em; font: inherit; text-align: center;
        line-height: 18px; }
    .cd i { font-style: normal; color: var(--text-3); font-weight: 600; }
    .cd .cd-label { min-width: 0; height: auto; padding: 0; margin-right: 4px; background: none; color: var(--text-3); font-size: 12px; font-weight: 500; }
    /* aç/kapa etiketi: label.tmore > input + .more + .less */
    .tmore { cursor: pointer; --ic: 16px; }
    .tmore .less, .tmore:has(input:checked) .more { display: none; }
    .tmore:has(input:checked) .less { display: inline; }
    .tmore .icon { transition: transform var(--t-med) var(--ease); }
    .tmore:has(input:checked) .icon { transform: rotate(180deg); }
    .tmore:has(input:focus-visible) { outline: 2px solid var(--acc-text); outline-offset: 2px; border-radius: 4px; }

    /* ---- adres, sipariş kartı */
    .opt-card { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 48px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); font-size: 14px; color: var(--text-2); }
    .opt-card:hover { border-color: var(--border-2); }
    .opt-card input { position: absolute; left: 16px; top: 18px; }
    .opt-card:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
    .opt-card strong { color: var(--text); font-size: 15px; }
    .opt-card .badge { justify-self: start; }

    /* ---- düzyazı (panel içerikleri, açıklama) */
    .prose { max-width: 72ch; color: var(--text-2); font-size: 15px; line-height: 1.7; }
    .prose > * + * { margin-top: 1em; }
    .prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; }
    .prose h2 { font-size: var(--fs-xl); }
    .prose h3 { font-size: var(--fs-lg); }
    .prose ul, .prose ol { padding-left: 1.3em; }
    .prose li + li { margin-top: .35em; }
    .prose li::marker { color: var(--text-3); }
    .prose strong { color: var(--text); }
    .prose a { color: var(--acc-text); text-decoration: underline; text-underline-offset: .18em; }
    .prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
    .prose th { color: var(--text); font-weight: 600; background: var(--surface-2); }
    .prose .contract-table td:last-child, .prose .contract-table th:last-child { text-align: right; white-space: nowrap; }
    .prose img { border-radius: var(--r-md); }
    .prose table { width: 100%; font-size: 14px; }
    .prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
    .prose blockquote { padding-left: 16px; border-left: 3px solid var(--acc); color: var(--text); }

    /* ---- tanım tablosu (özellikler) */
    .spec { width: 100%; font-size: 14px; }
    .spec th, .spec td { padding: 12px 16px; text-align: left; vertical-align: top; }
    .spec th { width: 40%; font-weight: 500; color: var(--text-3); }
    .spec td { color: var(--text); }
    .spec tr:nth-child(odd) { background: var(--surface-2); }
    .spec tr:nth-child(odd) :is(th, td):first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
    .spec tr:nth-child(odd) :is(th, td):last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

    /* ---- sepet satırı, özet satırları, mini sepet (her sayfada: mini sepet çekmecesi) */
    .cline-img { position: relative; display: block; width: 104px; aspect-ratio: 1; border-radius: var(--r-md); background: var(--tile); overflow: hidden; isolation: isolate; }
    .cline-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--tile-blend); filter: var(--tile-filter); }
    .cline-info { display: grid; align-content: start; gap: 6px; min-width: 0; }
    .cline-name { font-size: 15px; font-weight: 550; line-height: 1.35; color: var(--text); }
    .cline-name:hover { text-decoration: underline; text-underline-offset: .2em; }
    .cline-var { font-size: 13px; color: var(--text-3); }
    .cline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
    .cline-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warning); --ic: 15px; }
    .cline-unit { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
    .srows { display: grid; gap: 10px; margin: 0; }
    .srow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
    .srow dd { margin: 0; color: var(--text); font-weight: 550; white-space: nowrap; }
    .srow.minus dd { color: var(--success); }
    .srow-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: -6px; padding-left: 12px; font-size: 12px; color: var(--text-3); }
    .srow-sub::before { content: "└"; margin-right: 6px; opacity: .5; }
    .srow-sub dt { flex: 1; }
    .srow-sub dd { margin: 0; }
    .srow.total { padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--border); align-items: center; font-size: 16px; color: var(--text); font-weight: 600; }
    .srow.total dd { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
    .saving { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 600; --ic: 17px; }
    /* mini sepet */
    .mc { --drawer-w: 440px; }
    .mc .dlg-body { padding: 0; display: flex; flex-direction: column; }
    .mc-meter { padding: 14px var(--sp-5); border-bottom: 1px solid var(--border); background: var(--surface-2); }
    .mc-lines { margin: 0; padding: 0 var(--sp-5); list-style: none; flex: 1; }
    .mc-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--border); }
    .mc-line:last-child { border-bottom: 0; }
    .mc-line .cline-img { width: 76px; border-radius: var(--r-sm); }
    .mc-line .cline-name { font-size: 14px; }
    .mc-line-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
    .mc-line-head > div { display: grid; gap: 2px; min-width: 0; }
    .mc-line-head .cline-rm { width: 32px; height: 32px; margin: -6px -6px 0 0; --ic: 17px; }
    .cline-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tile-ink); --ic: 24px; }
    .mc-line-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
    .mc-line-foot .price-now { font-size: 15px; }
    .mc-foot { display: grid; gap: 12px; padding: 16px var(--sp-5) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); flex: none; }
    .mc-foot .srow { font-size: 15px; }
    .mc-foot .srow dd { font-size: 18px; font-weight: 700; }
    .mc-foot-btns { display: grid; }
    .mc-recs { padding: 16px var(--sp-5); border-top: 1px solid var(--border); }
    .mc-recs h3 { font-size: 14px; margin-bottom: 12px; }
    .mc-recs .scroller { --per: 2.4; --per-lg: 2.4; --gap: 12px; }
    .mc-recs .scroller-track { margin: -4px 0 -24px; padding-inline: 0; }


    /* ---- mobil alt satın alma çubuğu, sepete eklendi */
    .mbar { position: fixed; z-index: var(--z-nav); left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -18px color-mix(in srgb, var(--shc) 35%, transparent); }
    .mbar .price { flex-direction: column; align-items: flex-start; gap: 0; }
    .mbar .price-now { font-size: 18px; }
    .mbar .price-old { font-size: 12px; }
    .mbar .btn { flex: 1; }
    @media (min-width: 1024px) { .mbar { display: none; } }

    /* sepete eklendi (mobil alt sayfa) */
    .added { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
    .added-img { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--tile); isolation: isolate; overflow: hidden; }
    .added-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: var(--tile-blend); filter: var(--tile-filter); }
    .added-title { display: flex; align-items: center; gap: 8px; color: var(--success); font-weight: 600; --ic: 20px; }
    .added .bar { height: 3px; margin-top: 14px; grid-column: 1 / -1; }
    .added .bar > i { animation: drain 5s linear forwards; width: 100%; }
    @keyframes drain { to { width: 0; } }
    @media (prefers-reduced-motion: reduce) { .added .bar { display: none; } }


    /* ---- mobil kategori çekmecesi */
    .lvls { position: relative; flex: 1; overflow: hidden; }
    .lvl { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 24px; background: var(--surface); transform: translateX(100%); visibility: hidden; transition: transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); }
    .lvl[data-active] { transform: none; visibility: visible; transition: transform var(--t-slow) var(--ease), visibility 0s; }
    .lvl[data-past] { transform: translateX(-30%); visibility: hidden; }
    .lvl-back { display: flex; align-items: center; gap: 6px; min-height: 48px; padding-inline: 8px; color: var(--text-2); font-weight: 600; font-size: 14px; --ic: 18px; }
    .lvl-title { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 12px; }
    .lvl-title h3 { font-size: var(--fs-xl); }
    .lvl ul { list-style: none; margin: 0; padding: 0; }
    .lvl-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding-inline: 8px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; color: var(--text); text-align: left; --ic: 18px; }
    .lvl-link .icon:last-child { margin-left: auto; color: var(--text-3); }
    .lvl-link img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; background: var(--tile); }
    .lvl-all { color: var(--acc-text); font-weight: 600; }
}

/* -------------------------------------------------------------------------- yardımcılar */
@layer utilities {
    .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
    .muted { color: var(--text-3); }
    .muted-2 { color: var(--text-2); }
    .small { font-size: var(--fs-sm); }
    .xsmall { font-size: var(--fs-xs); }
    .strong { font-weight: 600; }
    .acc-text { color: var(--acc-text); }
    .success-text { color: var(--success); }
    .danger-text { color: var(--danger); }
    .center { text-align: center; }
    .nowrap { white-space: nowrap; }
    .full { width: 100%; }
    .mb-4 { margin-bottom: var(--sp-4); }
    .mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
    @media (max-width: 767.98px) { .hide-sm { display: none !important; } }
    @media (min-width: 768px) { .show-sm { display: none !important; } }
    @media (max-width: 1023.98px) { .hide-md { display: none !important; } }
    @media (min-width: 1024px) { .show-md { display: none !important; } }
    /* Site.motion.reveal: görünüme girene dek gizli. İşareti yalnız JS koyar (Motion yüklüyse); JS yoksa ya da
       hareket azaltılmışsa içerik hep görünür. */
    [data-reveal="hidden"] { opacity: 0; translate: 0 16px; }
    @media print, (prefers-reduced-motion: reduce) { [data-reveal="hidden"] { opacity: 1; translate: none; } }
}

/* ---- ödeme adımları: sade başlık ve alt bilgi (plan 7.7) */
@layer layout {
    .hdr-co .hdr-in { grid-template-columns: 1fr auto 1fr; grid-template-areas: none; height: 68px; }
    .hdr-co .logo { justify-self: center; }
    .co-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 40px; padding-inline: 6px 10px; border-radius: var(--r-full); color: var(--text-2); font-size: 14px; font-weight: 550; --ic: 18px; transition: background var(--t-fast), color var(--t-fast); }
    .co-back:hover { background: var(--surface-2); color: var(--text); }
    .co-secure { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: var(--success); font-size: 13px; font-weight: 600; --ic: 16px; }
    @media (max-width: 639.98px) {
        .hdr-co .hdr-in { height: 58px; }
        .co-back span, .co-secure span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
        .co-back { padding: 0; width: 40px; justify-content: center; }
    }
    .is-checkout .mnav { display: none; }
    .is-checkout { --mnav-h: 0px; }
    .co-ftr { margin-top: var(--sp-9); border-top: 1px solid var(--border); background: var(--surface); }
    .co-ftr-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); padding-block: var(--sp-5); font-size: 13px; color: var(--text-3); }
    .co-ftr ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
    .co-ftr a { color: var(--text-2); }
    .co-ftr a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
    @media (max-width: 1023.98px) { .is-checkout .co-ftr { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
}

/* ---- adres penceresi (Store/_AddressDialog), segment seçici, ekleme kartı: ödeme ve Hesabım */
@layer components {
    .addr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .addr-grid .full { grid-column: 1 / -1; }
    @media (max-width: 639.98px) { .addr-grid { grid-template-columns: 1fr; } }
    .seg { display: inline-flex; justify-self: start; width: max-content; padding: 3px; border-radius: var(--r-full); background: var(--surface-2); }
    .seg label { position: relative; }
    .seg input { position: absolute; opacity: 0; }
    .seg span { display: block; padding: 6px 16px; border-radius: var(--r-full); font-size: 14px; font-weight: 550; color: var(--text-2); cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
    .seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
    .seg input:focus-visible + span { outline: 2px solid var(--acc-text); outline-offset: 1px; }

    .acard-new { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 132px; border: 1.5px dashed var(--border-2); border-radius: var(--r-md); color: var(--text-2); font-size: 14px; font-weight: 550; --ic: 22px;
        transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
    .acard-new:hover { border-color: var(--acc); color: var(--acc-text); background: var(--acc-soft); }
}

/* -------------------------------------------------------------------------- Windows yüksek kontrast (plan 10)
   Zemin ve gölgeler sistem renklerine döner: düğme, girdi ve kart sınırları ile odak halkası görünür kalsın. */
@layer utilities {
    @media (forced-colors: active) {
        .btn, .hbtn, .icon-btn, .chip, .seg, .card, .pcard-add, .pcard-quick, .qty, .badge, .code-tag { border: 1px solid ButtonText; }
        .input, .select, .textarea { border: 1px solid FieldText; }
        :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible, .input:focus, .select:focus, .textarea:focus { outline: 2px solid Highlight; outline-offset: 2px; }
        .dots button::before { forced-color-adjust: none; background: ButtonText; }
        .dots button[aria-current="true"]::before { background: Highlight; }
    }
}
