/* =====================================================================
   LikedWin — Ana Site Tasarım Sistemi
   Bu dosya tüm ana site sayfalarının (anasayfa + iç sayfalar) ortak
   temelidir. Renk/font/boşluk değişkenleri buradan yönetilir.
   ===================================================================== */

/* ---------- Tasarım Değişkenleri ---------- */
:root {
    /* Marka renkleri */
    --brand:        #2544d8;   /* ana mavi (butonlar, vurgular) */
    --brand-dark:   #1c34a8;   /* hover */
    --brand-soft:   #eef1fe;   /* açık mavi zemin */
    --brand-soft-2: #e2e8fb;   /* açık mavi zemin (hover) */
    --brand-line:   #dfe4fb;   /* açık mavi kenarlık */
    --brand-line-2: #cdd6f7;   /* açık mavi kenarlık (hover) */
    --ink:          #201e1f;   /* logo & başlık siyahı */
    --amber:        #f5b301;   /* "100 TL" vurgu sarısı */

    /* Durum renkleri */
    --success:      #2fbd8e;   /* yeşil aksan (ör. "veya Kayıt Ol") */
    --danger:       #ef4444;   /* kırmızı (bildirim noktası) */

    /* Metin */
    --text:         #1f2937;
    --muted:        #6b7280;
    --muted-2:      #9aa1ad;

    /* Zemin & çizgi */
    --bg:           #ffffff;
    --bg-soft:      #f7f8fb;
    --line:         #e9ebf1;
    --line-strong:  #dfe2ea;

    /* Ölçü & efekt */
    --radius:       12px;
    --radius-lg:    16px;
    --radius-pill:  999px;
    --shadow-sm:    0 1px 2px rgba(16, 24, 40, .05);
    --shadow-md:    0 4px 14px rgba(16, 24, 40, .08);
    --shadow-lg:    0 12px 32px rgba(16, 24, 40, .12);
    --ease:         .2s cubic-bezier(.4, 0, .2, 1);

    /* Düzen */
    --container:    1200px;
    --header-h:     64px;
    --topbar-h:     44px;   /* promo bar yüksekliği; JS gerçek değerle günceller */
}

/* ---------- Minimal Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* LikedWin marka işareti — metin içinde currentColor ile bulunduğu yerin rengini alır */
.lw-mark {
    display: inline-block;
    width: 1em; height: 1em;
    flex: 0 0 auto;
    vertical-align: -.14em;
    fill: currentColor;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: calc(-1 * var(--topbar-h));   /* promo bar kadar yukarı kayar → topbar sayfayla gider, ana bar sabitlenir */
    z-index: 100;
    background: var(--bg);
    transition: background .3s ease, box-shadow .3s ease;
}

/* ---------- 1) Üst Promo Bar ---------- */
.topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;   /* sol: duyuru · sağ: teslimat + gece modu */
    gap: 16px;
    min-height: 44px;
    padding: 6px 20px;
}
.topbar__confetti { height: 26px; width: auto; flex: none; opacity: .95; }
.topbar__confetti--flip { transform: scaleX(-1); }

.topbar__promo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 500;
    min-width: 0;
}
.topbar__promo strong { font-weight: 800; color: var(--brand); }

/* ---------- Topbar sağ blok ---------- */
.topbar__aside {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

/* Canlı teslimat akışı — çerçevesiz; en yeniden başlayarak sırayla döner */
.delivery {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 2px;
    border: 0;
    background: none;
    white-space: nowrap;
}
/* Canlı yeşil nokta — nabız halkalı */
.delivery__live {
    position: relative;
    flex: none;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #5fe0b0, var(--success));
    box-shadow: 0 0 0 3px rgba(47, 189, 142, .16);
}
.delivery__live::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 2px var(--success);
    animation: deliveryPulse 2s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes deliveryPulse {
    0%   { transform: scale(1);   opacity: .5; }
    70%  { transform: scale(2.6); opacity: 0; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Tek satırlık pencere — SABİT en/boy → alan hiç oynamaz (sağa-sola genişlemez).
   İçerik sola yaslı; uzun etiket … ile kısalır, diğer öğeler sabit. */
.delivery__viewport {
    position: relative;
    height: 30px;
    width: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Akan öğe — tek satır; giriş/çıkış animasyonu (dikey ticker) */
.delivery__item {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    white-space: nowrap;
    will-change: transform, opacity;
    transition: opacity .34s ease, transform .34s cubic-bezier(.2, .9, .25, 1);
}
.delivery__item.is-out { opacity: 0; transform: translateY(-90%); }
.delivery__item.is-in  { animation: deliveryIn .42s cubic-bezier(.2, .9, .25, 1); }
@keyframes deliveryIn {
    from { opacity: 0; transform: translateY(90%); }
    to   { opacity: 1; transform: translateY(0); }
}

.delivery__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 7px;
    background: var(--pc, var(--brand));
    color: #fff;
    font-size: 12px;
    /* Not: viewport ticker için overflow:hidden → box-shadow glow kesilir; o yüzden gölge yok */
}
.delivery__label {
    flex: 1 1 auto; min-width: 0;   /* büyür → durum/saat sağa sabitlenir; kısa etiketde araya boşluk */
    font-size: 13px; font-weight: 800; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis;
}
.delivery__check { flex: none; color: var(--success); font-size: 11px; margin-left: 2px; }
.delivery__status { flex: none; font-size: 12.5px; font-weight: 600; color: var(--success); }
.delivery__sep { flex: none; color: var(--muted-2); }
.delivery__time { flex: none; font-size: 12px; color: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
    .delivery__live::after { animation: none; }
    .delivery__item { transition: none; }
    .delivery__item.is-in { animation: none; }
}

/* Gece modu */
.nightmode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px 6px 14px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: none;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--ease);
}
.nightmode:hover { color: var(--brand); }
.nightmode i { font-size: 15px; }
.topbar__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
}
.topbar__badge svg { width: 13px; height: 13px; }
.topbar__chip {
    display: inline-block;
    padding: 2px 8px;
    margin: 0 2px;
    border-radius: 8px;
    background: #fff6d8;
    color: #8a5a00;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(245, 179, 1, .35);
}
.topbar__promo a { color: inherit; }
.topbar__arrow { color: var(--brand); font-weight: 800; }

/* ---------- 2) Ana Bar (logo + giriş) ---------- */
.headbar { border-bottom: 1px solid var(--line); }
.headbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__icon {
    height: 27px; width: 27px; flex: none;
    transition: transform 1s ease-in-out;   /* canlı sitedeki gibi yavaş dönüş */
}
.brand:hover .brand__icon { transform: rotate(360deg) scale(0.9); }
.brand__text { height: 20px; width: auto; }
.brand__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;                           /* kayan yazıyı kırp */
    transition: width .45s cubic-bezier(.65,0,.35,1), background-color .4s ease;
}
.brand__badge.is-claude { background: #d97757; } /* Claude turuncusu — ana sağlayıcı */
.brand__badge.is-gpt    { background: #10a37f; } /* ChatGPT yeşili */
.brand__badge.is-main   { background: #6d28d9; } /* Ana Sağlayıcı — mor */
.brand__badge-word {
    display: inline-block;
    line-height: 20px;
    will-change: transform, opacity;
    transition: transform .38s ease, opacity .38s ease;
}
.brand__badge-word.is-out { transform: translateY(-115%); opacity: 0; }
.brand__badge-word.is-in  { animation: brandBadgeIn .42s cubic-bezier(.2,.9,.25,1); }
@keyframes brandBadgeIn {
    from { transform: translateY(115%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .brand__badge, .brand__badge-word { transition: none; }
    .brand__badge-word.is-in { animation: none; }
}

/* Sağ taraf: giriş / üye ol */
/* Arama çubuğu — logo ile giriş arasında, ortada esner */
.head-search {
    flex: 1;
    max-width: 380px;
    position: relative;
    display: flex;
    align-items: center;
}
.head-search__icon {
    position: absolute;
    left: 15px;
    font-size: 14px;
    color: var(--muted-2);
    pointer-events: none;
    transition: color var(--ease);
}
.head-search__input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.head-search__input::placeholder { color: var(--muted-2); }
.head-search__input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.head-search:focus-within .head-search__icon { color: var(--brand); }

.head-actions { display: flex; align-items: center; gap: 10px; }

/* Üst bar ikon butonları — gece modu / bildirim / sepet (boyu hesap butonuyla eşit) */
.head-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.head-icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.head-icon-btn--cart {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: var(--brand);
}
.head-icon-btn--cart:hover { background: var(--brand-soft-2); border-color: var(--brand-line-2); }
/* Sepet sayaç rozeti */
.head-icon-btn__count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    border: 2px solid var(--bg);
}
/* Sepet boşken rozet gizlenir; display:inline-flex UA'nın [hidden] kuralını
   ezdiği için burada açıkça geçersiz kılıyoruz. */
.head-icon-btn__count[hidden] { display: none; }

/* Hesap butonu — giriş/kayıt birleşik kart */
.account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: var(--bg);
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.account-btn:hover {
    border-color: var(--brand);
}
.account-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
}
.account-btn__icon svg { width: 16px; height: 16px; }
.account-btn__text { display: flex; flex-direction: column; line-height: 1.1; }
.account-btn__title { font-size: 13px; font-weight: 800; color: var(--ink); }
.account-btn__sub { font-size: 11px; font-weight: 600; color: var(--success); margin-top: 2px; }

/* Giriş yapılmış hâli: avatar (foto/baş harfler) + isim + yeşil "Panele Geçiş Yap" */
.account-btn--user:hover { border-color: var(--success); }
.account-btn__icon.account-avatar {
    border-radius: 50%;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.account-btn__icon.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-btn--user .account-btn__title {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-btn__sub--go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.account-btn__sub--go i { font-size: 9px; transition: transform var(--ease); }
.account-btn--user:hover .account-btn__sub--go i { transform: translateX(2px); }

/* Yeşil "Panele Geçiş Yap" butonu (drawer) */
.btn--panel { background: var(--success); color: #fff; box-shadow: 0 5px 14px rgba(47, 189, 142, .28); }
.btn--panel:hover { background: #29a87d; }

/* Mobil header: giriş yapılmışsa avatar + ad (panele gider) */
.mobile-user { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.mobile-user__avatar {
    width: 28px; height: 28px; flex: none;
    border-radius: 50%; overflow: hidden;
    background: var(--brand-soft); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; letter-spacing: -.02em;
}
.mobile-user__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-user__name {
    max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.mobile-user:active { opacity: .5; }

/* Drawer üst kullanıcı satırı */
.drawer__user { display: flex; align-items: center; gap: 11px; padding: 0 2px 6px; }
.drawer__user-avatar {
    width: 40px; height: 40px; flex: none;
    border-radius: 50%; overflow: hidden;
    background: var(--brand-soft); color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; letter-spacing: -.02em;
}
.drawer__user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drawer__user-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 5px 14px rgba(37, 68, 216, .25);
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { color: var(--text); padding: 0 6px; height: auto; }
.btn--ghost:hover { color: var(--brand); }

/* ---------- 3) Menü Barı (app tarzı: ikon + arka planlı pill + rozet) ---------- */
.menubar { border-bottom: 1px solid var(--line); background: var(--bg); }
.menubar__inner {
    display: flex;
    align-items: stretch;          /* sağ bloktaki dikey çizgiler tam boy olsun */
    min-height: 58px;
}
.mainnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Sağ blok: sepet + sipariş takibi (en sağa yaslı) */
.menubar__aside { display: flex; align-items: stretch; gap: 14px; margin-left: auto; }

/* Sipariş Takibi — iki yanında dikey çizgi + açılır ok */
.menu-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    padding: 0 22px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color var(--ease), background var(--ease);
}
.menu-order:hover { color: var(--brand); background: rgba(37, 68, 216, .05); }
.menu-order__caret { font-size: 11px; color: var(--muted-2); transition: color var(--ease), transform .25s ease; }
.menu-order:hover .menu-order__caret { color: var(--brand); transform: translateY(1px); }

/* Menü öğesi = pill (ikon + metin + rozet) */
.mainnav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #565f6e;   /* menü metni — muted'ten çok az koyu */
    transition: color var(--ease), background var(--ease), transform var(--ease);
}
.mainnav a:hover,
.mainnav a.is-active {
    color: var(--brand);
    background: rgba(37, 68, 216, .09);
    transform: translateY(-1px);
}

.nav-icon {
    font-size: 15px;
    color: #838b98;   /* menü ikonu — muted-2'den çok az koyu */
    transition: transform .3s ease, color var(--ease);
}
.mainnav a:hover .nav-icon,
.mainnav a.is-active .nav-icon {
    color: var(--brand);
    transform: scale(1.1) rotate(5deg);
}

/* İlk öğenin İKONU logo ikonuyla aynı sol kenarda başlasın.
   Pill'in iç boşluğu (14px) kadar sola kaydırıyoruz ki içerik hizalansın. */
.menubar .mainnav a:first-child { margin-left: -14px; }

/* Rozet — pill'in sağ üstünde yüzer (app nav-pop-badge tarzı) */
.nav-badge {
    position: absolute;
    top: -7px;
    right: -6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1.5;
    padding: 2px 7px;
    border-radius: 20px;
    color: #fff;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
    transform: rotate(6deg);
}
.nav-badge--new { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 3px 8px rgba(34, 197, 94, .32); }
.nav-badge--hot { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 3px 8px rgba(245, 158, 11, .32); }
/* "POPÜLER" — app/includes/header-likedwin.php'deki .nav-pop-badge ile birebir aynı */
.nav-badge--pop {
    top: -11px;
    right: -14px;
    background: #fbbf24;
    color: #b45309;
    box-shadow: 0 3px 8px rgba(245, 158, 11, .35);
    padding: 2px 8px;
    transform: rotate(13deg);
}

/* ---------- Mobil öğeler (varsayılan gizli) ---------- */
.hamburger, .mobile-only { display: none; }

/* =====================================================================
   MOBİL  (≤ 900px)
   ===================================================================== */
@media (max-width: 900px) {
    :root { --header-h: 64px; }

    /* Üst bar sadeleşir */
    .topbar__inner { gap: 10px; min-height: 40px; font-size: 12.5px; }
    .topbar__confetti { display: none; }
    .delivery { display: none; }          /* teslimat rozeti dar ekrana sığmaz */
    .nightmode__label { display: none; }  /* mobilde sadece ay ikonu */
    .nightmode { padding-left: 12px; }

    /* Bildirim zili → üst barda, gece modunun SOLUNDA; boyu ay ikonuyla eşit */
    .topbar__aside { gap: 4px; }
    .topbar-notif {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px; height: 32px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--text);
        font-size: 15px;                  /* nightmode ay ikonuyla (i:15px) birebir aynı */
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color var(--ease);
    }
    .topbar-notif:hover,
    .topbar-notif:active { color: var(--brand); }
    /* Rozet zilin sağ üstüne otursun (32px buton içinde köşeden taşmasın) */
    .topbar-notif .lw-notif-badge { top: -1px; right: -1px; }

    /* Ana bar: [MENÜ] [logo] [GİRİŞ] */
    .headbar__inner { justify-content: space-between; gap: 8px; }
    .brand { position: absolute; left: 50%; transform: translateX(-50%); gap: 7px; }
    .brand__badge { display: none; }             /* mobilde badge gizli, dar ekran için */

    /* Mobil logo geçişi (animasyonlu, çift yönlü):
       - En üstte  → "LikedWin" yazısı
       - Kaydırınca → favicon; yazı sönerken ikon hafif dönerek belirir */
    .brand__text {
        display: block;
        height: 20px;
        transition: opacity .32s ease, transform .32s ease;
    }
    .brand__icon {
        display: block;
        height: 30px; width: 30px;
        position: absolute; top: 50%; left: 50%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.5) rotate(-40deg);
        transition: opacity .32s ease, transform .42s cubic-bezier(.34, 1.56, .64, 1);
    }
    .site-header.is-scrolled .brand__text {
        opacity: 0;
        transform: translateY(-6px) scale(.9);
    }
    .site-header.is-scrolled .brand__icon {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0);
    }

    /* Kaydırınca sabit bar TAMAMEN opak → arkadaki içerik (üye ol vb.) hiç sızmaz.
       (Buzlu cam kaldırıldı çünkü saydamlık kaçınılmaz olarak arka içeriği gösteriyordu.) */
    .site-header.is-scrolled {
        background: #fff;
        box-shadow: 0 6px 20px rgba(16, 24, 40, .07);
    }
    .site-header.is-scrolled .headbar { background: transparent; border-bottom-color: rgba(233, 235, 241, .6); }

    .menubar { display: none; }                   /* menü satırı drawer'a taşınır */
    .desktop-only { display: none !important; }

    /* Menü + Giriş: arka plansız, sade ve zarif; bir tık küçük */
    .hamburger,
    .mobile-login {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 4px;
        border: none;
        background: transparent;
        font-size: 13px;
        font-weight: 600;
        color: var(--ink);
        letter-spacing: -.01em;
        transition: opacity var(--ease), color var(--ease);
    }
    .hamburger:active,
    .mobile-login:active { opacity: .5; }
    .hamburger svg { width: 19px; height: 19px; }
    .mobile-login svg { width: 18px; height: 18px; }

    /* Mobil sepet — masaüstündeki sepet butonunun karşılığı */
    .mobile-actions { display: inline-flex; align-items: center; gap: 12px; }
    .mobile-cart {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px; height: 34px;
        border-radius: 10px;
        background: var(--brand-soft);
        color: var(--brand);
        font-size: 15px;
        transition: background var(--ease);
    }
    .mobile-cart:active { background: var(--brand-soft-2); }
    .mobile-cart__count {
        position: absolute;
        top: -5px; right: -5px;
        min-width: 17px; height: 17px;
        padding: 0 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 2px solid var(--bg);
        background: var(--brand);
        color: #fff;
        font-size: 9.5px;
        font-weight: 800;
        line-height: 1;
    }
    .mobile-cart__count[hidden] { display: none; }
}

@media (min-width: 901px) {
    .mobile-menu { display: none; }
}

/* ---------- Mobil Tam Ekran Menü (üstten açılır, header görünür kalır) ---------- */
.mobile-menu {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;        /* tam ekran → translateY(-100%) ile tamamen ekran dışına çıkar */
    padding-top: calc(var(--header-h) + 1px);    /* içerik header'ın altından başlar; JS gerçek yükseklikle günceller */
    background: var(--bg);
    transform: translateY(-100%);                /* üstten iner */
    transition: transform .34s cubic-bezier(.4, 0, .2, 1);
    z-index: 90;                                 /* header (100) altında kalır → header görünür */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
body.drawer-open .mobile-menu { transform: translateY(0); }
body.drawer-open { overflow: hidden; }

/* Menü açıkken hamburger ikonu → X */
.hamburger .i-close { display: none; }
body.drawer-open .hamburger .i-bars { display: none; }
body.drawer-open .hamburger .i-close { display: block; }
.drawer__nav { padding: 8px 10px; display: flex; flex-direction: column; }
.drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    border-radius: 10px;
}
.drawer__nav a:hover { background: var(--bg-soft); color: var(--brand); }
.drawer__nav .nav-icon { width: 22px; text-align: center; font-size: 16px; color: var(--muted-2); }
.drawer__nav a:hover .nav-icon { color: var(--brand); }
/* Drawer'da rozet satır sonunda düz dursun (yüzen değil) */
.drawer__nav .nav-badge { position: static; transform: none; margin-left: auto; }
.drawer__cta { padding: 14px 18px 22px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.drawer__cta .btn { width: 100%; height: 46px; }
.drawer__cta .btn--ghost { border: 1px solid var(--line-strong); border-radius: var(--radius); }
