/* Ana site stilleri */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* RTL desteği */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.main-nav a {
    color: #555;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: #e9ecef;
    color: #333;
}

/* ── Category Auto-Dropdown Nav ──────────────────────────────────────────────
   Kategori menü itemlarında alt kategori dropdown — NAV-STABILIZATION
   Desktop: hover ile açılır. Mobile: .open class ile accordion (position:static).

   MİMARİ (3-katman):
   1. STRUCTURAL (bu dosya): position, display, z-index, animation — tema bağımsız
   2. CONTEXT    (tema layout): renkler, padding, font — her tema scoped olarak
   3. MOBILE     (@media ≤768px): static position, accordion open/close

   KRİTİK KURALLAR:
   - .cat-nav-item'a her zaman position:relative verilmeli (dropdown anchor)
   - .cat-sub-menu'ya her zaman position:absolute (desktop), z-index≥500
   - Tema scoped CSS hiçbir zaman position:relative veya position:absolute'u override etmemeli
   - overflow:hidden olan bir ata → dropdown clip olur! overflow:visible kullan.
   ────────────────────────────────────────────────────────────────────────── */

/* ── 1. Yapısal taban ────────────────────────────────────────────────────── */
.cat-nav-item {
    position: relative;  /* Dropdown anchor — ASLA kaldırma */
}
.cat-nav-item > .cat-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    /* Renk/padding/font → tema bağlamı tarafından belirlenir */
}

/* ── 2. Chevron ──────────────────────────────────────────────────────────── */
.cat-chevron {
    font-size: 0.7em;
    opacity: 0.6;
    transition: transform 0.20s ease;
    line-height: 1;
    flex-shrink: 0;
    display: inline-block;
}
.cat-nav-item:hover .cat-chevron,
.cat-nav-item.open  .cat-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── 3. Dropdown container ───────────────────────────────────────────────── */
.cat-sub-menu {
    display: none;
    position: absolute;      /* STRUCTURAL — tema override etmemeli */
    top: 100%;               /* Anchor item'ın tam altı */
    left: 0;
    min-width: 220px;
    max-width: 340px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-top: 3px solid transparent; /* Tema accent rengi için yer — override eder */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.08);
    z-index: 9500;           /* Header z-index'i (200) üstünde; mega menu (9999) altında */
    list-style: none;
    padding: 6px 0;
    margin: 0;
    overflow: visible;       /* flyout panellerin dışarı taşmasına izin ver */
}

/* ── 4. Hover trigger + animation ───────────────────────────────────────── */
.cat-nav-item:hover > .cat-sub-menu,
.cat-nav-item:focus-within > .cat-sub-menu {
    display: block;
    animation: catDropIn 0.16s ease-out;
}
@keyframes catDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 5. Hover bridge — cursor gap kapama ─────────────────────────────────
   Dropdown üstünde görünmez bir alan oluşturur; cursor link→dropdown
   geçerken hover kopmasını engeller (top:-10px ile 10px'lik buffer).    */
.cat-sub-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* ── 6. Alt kategori linkleri ────────────────────────────────────────────── */
.cat-sub-menu li { margin: 0; list-style: none; }
.cat-sub-menu > li:last-child > a { border-radius: 0 0 10px 10px; }
.cat-sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    line-height: 1.4;
    border-left: 3px solid transparent;
}
.cat-sub-menu a:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-left-color: currentColor;
}

/* ── 7. Flyout — alt-alt kategori (2. seviye, sağa açılan) ─────────────── */
.cat-sub-item.has-flyout {
    position: relative;
}
.cat-sub-item.has-flyout > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cat-fly-arrow {
    font-size: 1.05rem;
    opacity: 0.4;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 10px;
    transition: opacity 0.12s, transform 0.12s;
}
.cat-sub-item.has-flyout:hover > a .cat-fly-arrow {
    opacity: 0.9;
    transform: translateX(2px);
}
.cat-flyout {
    display: none;
    position: absolute;
    top: -7px;
    left: 100%;                 /* gap=0 — ölü alan yok, hover köprüsü ile yönetilir */
    min-width: 200px;
    max-width: 300px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-left: 2px solid rgba(0,0,0,.06); /* gap yerine ince sol çizgi */
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0,0,0,.14), 0 3px 10px rgba(0,0,0,.08);
    z-index: 9502;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    overflow: visible;
}
/* Hover köprüsü — mouse'un li'dan flyout'a geçişinde hover kopmasını engeller.
   ::before flyout'un soluna yapışır; mouse bu alanda iken .has-flyout:hover aktif kalır. */
.cat-flyout::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 100%;        /* flyout'un soluna uzanır */
    bottom: -10px;
    width: 14px;        /* li içine 14px girer — diagonal hareketi yakalar */
    background: transparent;
}
.cat-sub-item.has-flyout:hover > .cat-flyout {
    display: block;
    animation: catDropIn 0.14s ease-out;
}
/* Her seviyedeki flyout item aynı CSS'i miras alır — recursive çalışır */
.cat-flyout li { margin: 0; list-style: none; }
.cat-flyout > li:last-child > a { border-radius: 0 0 8px 8px; }
.cat-flyout a {
    display: block;
    padding: 10px 18px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
    border-left: 3px solid transparent;
}
.cat-flyout a:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-left-color: currentColor;
}

/* ── .main-nav bağlamı (default / modern tema) ───────────────────────────── */
/* .main-nav a zaten color:#555 + padding:5px 12px + border-radius:4px tanımlı.
   .cat-nav-link bunları miras alır. Sadece hover override gerekli.
   .cat-sub-menu a: .main-nav a'dan gelen border-radius/padding sızmasını engelle. */
.main-nav .cat-nav-item {
    position: relative; /* dropdown anchor — explicit */
}
.main-nav .cat-nav-item > .cat-nav-link {
    color: #555;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.18s, color 0.18s;
}
.main-nav .cat-nav-item > .cat-nav-link:hover,
.main-nav .cat-nav-item:hover > .cat-nav-link {
    background: #e9ecef;
    color: #333;
}
/* .main-nav a kuralı (border-radius:4px, padding:5px 12px) dropdown içine sızmasın */
.main-nav .cat-sub-menu a {
    color: #333;
    padding: 9px 18px;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 400;
}
.main-nav .cat-sub-menu a:hover {
    color: #1a1a1a;
    background: #f5f7fa;
}

/* ══════════════════════════════════════════════════════════════════════════
   TÜM KATEGORİLER — Premium Sidebar / Flyout Mega Menu
   Flex two-column: .all-cat-sidebar (left) + .all-cat-panels (right).
   Panels are SIBLINGS of the sidebar — not nested inside tab <li> elements.
   This avoids the overflow-y:auto clipping bug that hid absolutely-positioned panels.
   JS (app.js) adds .is-active to the correct panel on tab hover.
   ══════════════════════════════════════════════════════════════════════════ */

/* Mega menu dış kabı — FLEX layout ─────────────────────────────────────── */
.all-cats-item .all-cat-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    max-width: min(560px, calc(100vw - 40px)); /* sidebar(240) + liste(300) + 20px boşluk */
    background: transparent;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 6px 20px rgba(0,0,0,.10);
    z-index: 9500;
    overflow: visible;
}
.all-cats-item:hover > .all-cat-mega {
    display: flex;
    align-items: stretch;
    animation: catDropIn .18s ease;
}

/* Sol sidebar — ana kategori listesi ─────────────────────────────────────── */
.all-cat-sidebar {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    width: 240px;
    min-width: 240px;
    flex-shrink: 0;
    max-height: 480px;
    overflow-y: auto;
    /* No overflow-x — panels are siblings, they never clip here */
    background: #f4f6f9;
    border-radius: 0 0 0 14px;
    border-top: 3px solid var(--color-primary, #e63946);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.15) transparent;
}
.all-cat-sidebar::-webkit-scrollbar       { width: 4px; }
.all-cat-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }

/* Tab (li) */
.all-cat-tab { position: relative; }

/* Tab linki — ana kategori adı */
.all-cat-tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 10px 18px;
    color: #1e293b;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .01em;
    border-left: 3px solid transparent;
    transition: background .13s, color .13s, border-color .13s;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
}
.all-cat-tab:hover > .all-cat-tab-link,
.all-cat-tab.is-active > .all-cat-tab-link {
    background: #fff;
    color: var(--color-primary, #e63946);
    border-left-color: var(--color-primary, #e63946);
}

/* Ok ikonu */
.all-cat-tab-name { flex: 1; }
.all-cat-tab-arr  {
    font-style: normal;
    font-size: .9em;
    opacity: .3;
    flex-shrink: 0;
    transition: opacity .13s, transform .13s;
    margin-left: 4px;
}
.all-cat-tab:hover > .all-cat-tab-link .all-cat-tab-arr,
.all-cat-tab.is-active > .all-cat-tab-link .all-cat-tab-arr {
    opacity: .85;
    transform: translateX(3px);
}

/* Sağ panels container — sidebar ile KARDEŞ ─────────────────────────────── */
.all-cat-panels {
    flex: 1;
    min-width: 220px;
    max-width: 300px;   /* tek sütun liste için daha dar */
    position: relative;
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-left: none;
    border-radius: 0 14px 14px 0;
    overflow: visible;  /* flyout taşabilsin */
}

/* Bireysel panel — JS ile .is-active eklenir ─────────────────────────────── */
.all-cat-panel {
    display: none;
    padding: 20px 22px;
    box-sizing: border-box;
    min-height: 200px;
}
.all-cat-panel.is-active {
    display: block;
    animation: catDropIn .14s ease;
}

/* Panel başlık — "Tüm X →" */
.all-cat-panel-head {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef1f5;
}
.all-cat-panel-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--color-primary, #e63946);
    text-decoration: none;
    transition: opacity .12s;
}
.all-cat-panel-head a:hover { opacity: .78; }

/* Panel alt kategori — dikey liste ──────────────────────────────────────── */
/* Eski .all-cat-panel-cols grid yerine tek sütun dikey liste */
.all-cat-panel-cols,      /* geriye dönük uyumluluk */
.all-cat-panel-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
}
.all-cat-panel-list > li {
    position: relative;   /* flyout için konum referansı */
    list-style: none;
    margin: 0;
}
.all-cat-sub-link {
    display: flex;
    align-items: center;
    padding: 7px 10px 7px 2px;
    font-size: .845rem;
    color: #475569;
    text-decoration: none;
    transition: color .12s, background .12s;
    border-radius: 5px;
    white-space: nowrap;
}
.all-cat-sub-link:hover {
    color: var(--color-primary, #e63946);
    background: #f8fafc;
}

/* ── Alt-alt kategori (3. seviye) — sağa açılan flyout listesi ──────────────
   Hover'da sağa açılır; ok ikonu gösterilir.                                 */
.all-cat-panel-item {
    position: relative;
}
.all-cat-panel-item.has-sub > .all-cat-sub-link {
    justify-content: space-between;
    padding-right: 6px;
}
.all-cat-sub-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.all-cat-sub-arr {
    font-style: normal;
    font-size: .85em;
    opacity: .35;
    flex-shrink: 0;
    margin-left: 6px;
    transition: opacity .12s, transform .12s;
    line-height: 1;
}
.all-cat-panel-item.has-sub:hover > .all-cat-sub-link {
    color: var(--color-primary, #e63946);
    background: #f8fafc;
}
.all-cat-panel-item.has-sub:hover > .all-cat-sub-link .all-cat-sub-arr {
    opacity: .9;
    transform: translateX(3px);
}

/* 3. seviye flyout — dikey liste, sağa açılır */
.all-cat-sub-flyout {
    display: none;
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 200px;
    max-width: 280px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    box-shadow: 8px 12px 32px rgba(0,0,0,.14);
    z-index: 9504;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    /* Sağa sığmazsa sola aç */
}
.all-cat-panel-item.has-sub:hover > .all-cat-sub-flyout {
    display: block;
    animation: catDropIn .12s ease;
}
/* Hover köprüsü — cursor gap'ini kapatır */
.all-cat-sub-flyout::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 100%;
    width: 14px;
}
/* Flyout başlık satırı — "Tüm X →" */
.all-cat-sub-flyout-head a {
    display: block;
    padding: 7px 16px 7px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-primary, #e63946);
    text-decoration: none;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 4px;
    white-space: nowrap;
}
.all-cat-sub-flyout-head a:hover { opacity: .78; }
/* Flyout liste öğeleri */
.all-cat-sub-flyout li { margin: 0; list-style: none; }
.all-cat-sub-flyout li a {
    display: block;
    padding: 7px 16px;
    font-size: .83rem;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .11s, background .11s;
}
.all-cat-sub-flyout li a:hover {
    color: var(--color-primary, #e63946);
    background: #f8fafc;
}

/* Yaprak kategori (alt kategorisi yok) — küçük nokta işareti ─────────────── */
.all-cat-tab--leaf > .all-cat-tab-link::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .25;
    margin-left: auto;
    flex-shrink: 0;
}
.all-cat-tab--leaf:hover > .all-cat-tab-link::after { opacity: .6; }

/* ── Mobile: dikey yığım ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cat-nav-item {
        display: block;
        width: 100%;
    }
    .cat-nav-item > .cat-nav-link {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 0.95rem;
        box-sizing: border-box;
        color: inherit;
    }
    /* Mega menu — mobilde dikey akış */
    .all-cats-item .all-cat-mega {
        display: none;
        flex-direction: column;
        position: static;
        box-shadow: none;
        border-radius: 8px;
        background: rgba(0,0,0,.03);
        margin: 4px 0;
        animation: none;
    }
    .cat-nav-item.open > .all-cat-mega { display: flex; }
    .all-cat-sidebar {
        width: 100%;
        min-width: unset;
        max-height: none;
        background: transparent;
        padding: 4px 0;
        border-radius: 8px 8px 0 0;
        border-top: none;
    }
    .all-cat-panels {
        min-width: unset;
        max-width: unset;
        border: none;
        border-radius: 0 0 8px 8px;
        box-shadow: none;
    }
    .all-cat-tab-link {
        padding: 9px 14px;
        font-size: .9rem;
        border-left: none;
        border-radius: 6px;
    }
    .all-cat-tab:hover > .all-cat-tab-link,
    .all-cat-tab.is-active > .all-cat-tab-link {
        background: rgba(0,0,0,.04);
        border-left: none;
        color: var(--color-primary, #e63946);
    }
    .all-cat-tab-arr { display: none; }
    .all-cat-panel {
        padding: 6px 10px 6px 22px;
        min-height: unset;
        animation: none;
    }
    .all-cat-panel.is-active { display: block; }
    .all-cat-panel-head { padding-bottom: 6px; margin-bottom: 8px; }
    /* Mobilde dikey liste zaten tek sütun — ek override gerekmez */
    .all-cat-panel-cols,
    .all-cat-panel-list { flex-direction: column; }

    /* Eski .cat-sub-menu mobil — geriye dönük uyumluluk */
    .cat-sub-menu {
        display: none !important;
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 6px;
        background: rgba(0,0,0,.04);
        padding: 4px 0 4px 14px;
        min-width: unset;
        max-width: unset;
        margin: 2px 0 4px;
        animation: none;
    }
    .cat-nav-item.open > .cat-sub-menu { display: block !important; }
    .cat-sub-menu::before { display: none; }
}

/* Main Content */
.site-content {
    flex: 1;
    padding: 40px 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 60px 20px;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.welcome-text {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
}

.language-info {
    margin-top: 30px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Error Pages */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.error-page h1 {
    font-size: 6rem;
    color: #e74c3c;
    line-height: 1;
    margin-bottom: 10px;
}

.error-page h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.error-page p {
    color: #666;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
}

.btn:hover {
    background: #2980b9;
}

/* ==========================================================================
   Auth Sayfaları — Giriş, Kayıt, Şifre Sıfırlama
   ========================================================================== */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px 40px;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .auth-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 28px;
}

/* Flash / Hata mesajları */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fbd38d;
    color: #975a16;
}

/* Form elemanları */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group .input-wrap {
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.form-group input.input-error {
    border-color: #fc8181;
}

.form-group input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.15);
}

/* Şifre göster/gizle butonu */
.btn-eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #a0aec0;
    line-height: 1;
}

.btn-eye:hover { color: #718096; }

/* RTL: göz ikonu sola geçer */
[dir="rtl"] .btn-eye {
    right: auto;
    left: 12px;
}

[dir="rtl"] .form-group input[type="password"] {
    padding-right: 14px;
    padding-left: 40px;
}

.field-error {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 5px;
    display: block;
}

/* Checkbox satırı */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.875rem;
    color: #4a5568;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3498db;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check label { cursor: pointer; }

/* Giriş/çıkış arasındaki bölücü satır */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.875rem;
}

.auth-row a, .auth-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-row a:hover, .auth-links a:hover { text-decoration: underline; }

/* Submit butonu */
.btn-primary {
    display: block;
    width: 100%;
    padding: 11px 20px;
    background: #3498db;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-primary:hover:not(:disabled) { background: #2980b9; }

.btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
}

/* Alt link satırı */
.auth-links {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #718096;
}

/* Mobil uyum */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 8px;
    }
}

/* RTL genel düzeltmeler */
[dir="rtl"] .auth-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-check {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* ==========================================================================
   Auth Sayfaları — İki sütunlu modern düzen (login / register)
   ========================================================================== */

/* Auth sayfasının container padding'ini sıfırla, tam genişlik */
.auth-page-wrap {
    display: flex;
    min-height: calc(100vh - 160px); /* tema header'ına (topbar+header+nav) göre ayarlandı */
    margin: 0;                        /* negatif marjin kaldırıldı — yeni temalarda bozuyor */
}

/* Sol panel — marka bilgi */
.auth-side-panel {
    width: 42%;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    flex-shrink: 0;
}

.auth-side-inner {
    max-width: 340px;
    width: 100%;
}

.auth-brand-link {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.auth-side-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #fff;
}

.auth-side-text {
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.6;
    margin-bottom: 32px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.af-icon {
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.auth-side-footer {
    font-size: 0.85rem;
    opacity: 0.7;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
}

.auth-side-footer a {
    color: #93c5fd;
    text-decoration: none;
}

.auth-side-footer a:hover { text-decoration: underline; }

/* Sağ panel — Form */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #f8fafc;
}

.auth-form-inner {
    width: 100%;
    max-width: 400px;
}

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px;
}

.auth-form-header p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Auth alert */
.auth-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-alert--success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.auth-alert--error   { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }
.auth-alert--warning { background: #fffbeb; border: 1px solid #fbd38d; color: #975a16; }

/* Form grupları */
.af-group {
    margin-bottom: 18px;
}

.af-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.af-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.af-label-row label { margin-bottom: 0; }

.af-forgot {
    font-size: 0.8rem;
    color: #3b82f6;
    text-decoration: none;
}

.af-forgot:hover { text-decoration: underline; }

.af-group input[type="email"],
.af-group input[type="password"],
.af-group input[type="text"],
.af-group input[type="tel"] {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2d3748;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.af-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.af-group input.af-invalid {
    border-color: #fc8181;
}

.af-group input.af-invalid:focus {
    box-shadow: 0 0 0 3px rgba(252,129,129,0.15);
}

.af-error {
    display: block;
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 5px;
    min-height: 1em;
}

/* Şifre göster/gizle */
.af-input-wrap {
    position: relative;
}

.af-input-wrap input {
    padding-right: 44px !important;
}

.af-eye {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #a0aec0;
    line-height: 1;
    display: flex;
}

.af-eye:hover { color: #718096; }

/* Beni hatırla */
.af-remember { margin-bottom: 20px; }

.af-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

.af-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Submit */
.af-submit {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    letter-spacing: 0.02em;
}

.af-submit:hover:not(:disabled) { background: #2d2d4e; }
.af-submit:active:not(:disabled) { transform: scale(0.99); }
.af-submit:disabled { background: #a0aec0; cursor: not-allowed; }

/* Alt link */
.af-bottom-link {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #718096;
}

.af-bottom-link a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.af-bottom-link a:hover { text-decoration: underline; }

/* Şifre güç göstergesi */
.pwd-strength {
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 8px;
}

.pwd-strength.visible { display: flex; }

.pwd-strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.pwd-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.pwd-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 52px;
    text-align: right;
}

/* Koşullar satırı */
.af-terms { margin-bottom: 20px; }
.af-terms--error .af-check { color: #e53e3e; }
.af-terms .af-check span { font-size: 0.85rem; line-height: 1.4; }
.af-terms a { color: #3b82f6; text-decoration: none; }
.af-terms a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .auth-page-wrap {
        flex-direction: column;
        min-height: auto;
        margin: 0;  /* negatif marjin kaldırıldı — yeni temalarda bozuyor */
    }

    .auth-side-panel {
        width: 100%;
        padding: 28px 20px;
    }

    .auth-features, .auth-side-footer { display: none; }

    .auth-form-panel {
        padding: 28px 16px;
        background: #fff;
    }
}

/* ==========================================================================
   Bayilik Başvuru Sayfası — dealer/apply.php
   ========================================================================== */

.apply-page {
    max-width: 1100px;
    margin: 0 auto;
}

.apply-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 12px;
    margin-bottom: 36px;
    overflow: hidden;
}

.apply-hero-inner {
    padding: 48px 40px;
    color: #fff;
}

.apply-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.apply-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
    color: #fff;
}

.apply-hero p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}

.apply-content { padding: 0 4px; }

.apply-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.apply-alert--success { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; }
.apply-alert--error   { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; }
.apply-alert--warning { background: #fffbeb; border: 1px solid #fbd38d; color: #975a16; }
.apply-alert--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

.apply-status-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.apply-status-card--success { border-top: 4px solid #48bb78; }
.apply-status-card--pending { border-top: 4px solid #f6ad55; }
.apply-status-card--error   { border-top: 4px solid #fc8181; }

.asc-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }

.apply-status-card h2 { font-size: 1.3rem; margin: 0 0 10px; color: #1a202c; }
.apply-status-card p  { color: #718096; font-size: 0.9rem; line-height: 1.6; margin: 0 0 20px; }

.asc-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #4a5568;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.8;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.apply-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.apply-card-title { font-size: 1.2rem; font-weight: 700; color: #1a202c; margin: 0 0 6px; }
.apply-card-sub   { color: #718096; font-size: 0.875rem; margin: 0 0 24px; }

.af2-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.af2-group { display: flex; flex-direction: column; }
.af2-full  { grid-column: 1 / -1; margin-bottom: 16px; }

.af2-group label { font-size: 0.8rem; font-weight: 600; color: #4a5568; margin-bottom: 5px; }
.af2-group .req  { color: #e53e3e; }

.af2-group input,
.af2-group textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 0.875rem;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.af2-group input:focus,
.af2-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.af2-group textarea { resize: vertical; min-height: 80px; }

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #fff;
    border: 2px solid #1a1a2e;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.apply-btn:hover { background: #2d2d4e; border-color: #2d2d4e; color: #fff; }

.apply-btn--outline { background: transparent; color: #1a1a2e; }
.apply-btn--outline:hover { background: #1a1a2e; color: #fff; }

.apply-aside { display: flex; flex-direction: column; gap: 16px; }

.apply-aside-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.apply-aside-card--info { background: #eff6ff; border-color: #bfdbfe; }
.apply-aside-card h3 { font-size: 0.95rem; font-weight: 700; color: #1a202c; margin: 0 0 16px; }

.apply-aside-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.apply-aside-list li { display: flex; align-items: flex-start; gap: 12px; }

.aal-icon {
    width: 32px;
    height: 32px;
    background: #f0f4ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    color: #3b82f6;
    font-weight: 700;
}

.apply-aside-list li div { display: flex; flex-direction: column; gap: 2px; }
.apply-aside-list li strong { font-size: 0.85rem; color: #2d3748; }
.apply-aside-list li span  { font-size: 0.8rem; color: #718096; line-height: 1.4; }

.apply-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apply-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: #374151; }

.apply-steps li span {
    width: 22px;
    height: 22px;
    background: #1d4ed8;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .apply-hero-inner { padding: 32px 20px; }
    .apply-hero h1    { font-size: 1.5rem; }
    .apply-grid { grid-template-columns: 1fr; }
    .apply-aside { order: -1; }
    .af2-row { grid-template-columns: 1fr; }
    .apply-status-card { padding: 32px 20px; }
}

/* ==========================================================================
   Arama Sayfası — search/index.php
   ========================================================================== */

/* Hero */
.search-hero {
    margin-bottom: 24px;
}

.search-form-main {
    margin-bottom: 10px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    max-width: 680px;
}

.search-input {
    flex: 1;
    padding: 11px 44px 11px 16px;
    border: 1.5px solid #ced4da;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    color: #2c3e50;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.12);
    z-index: 1;
}

.search-btn {
    padding: 0 18px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.search-btn:hover { background: #2980b9; }

/* Canlı arama dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 44px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 200;
    max-height: 380px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover      { background: #f8f9fa; }

.suggestion-name  { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-price { color: #3498db; font-weight: 600; font-size: 0.85rem; margin-left: 12px; white-space: nowrap; }

.search-summary {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Son aramalar */
.recent-searches {
    margin-top: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
}

.recent-label { color: #6c757d; }

.recent-tag {
    padding: 3px 10px;
    background: #e9ecef;
    border-radius: 20px;
    text-decoration: none;
    color: #495057;
    transition: background 0.15s;
}

.recent-tag:hover { background: #dee2e6; }

/* ── Arama layout (sidebar + results) ──── */
.search-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Filtre Sidebar ─────────────────────── */
.search-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.filter-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.filter-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.filter-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #495057;
    background: #fff;
    cursor: pointer;
}

.filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
}

.filter-price-range {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-price-input {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #495057;
}

.filter-price-sep { color: #adb5bd; font-size: 0.8rem; }

.filter-price-btn {
    padding: 6px 10px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.filter-price-btn:hover { background: #2980b9; }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #495057;
    cursor: pointer;
}

.filter-reset {
    display: block;
    text-align: center;
    padding: 8px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-top: 4px;
    transition: background 0.15s;
}

.filter-reset:hover { background: #f5c6cb; }

/* ── Sonuç alanı ────────────────────────── */
.search-results {
    flex: 1;
    min-width: 0;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.results-count {
    font-size: 0.875rem;
    color: #6c757d;
}

.sort-select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    background: #fff;
    cursor: pointer;
}

/* ── Ürün grid ──────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* ── Ürün kartı ─────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.15s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.product-card-img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f2f5;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.product-card:hover .product-card-img { transform: scale(1.04); }

.product-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #adb5bd;
}

.product-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

.product-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-name:hover { color: #3498db; }

.product-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e74c3c;
}

.price-compare {
    font-size: 0.8rem;
    color: #adb5bd;
    text-decoration: line-through;
}

/* Stok badge'leri (product-card içinde kullanılıyor) */
.badge-in-stock   { background: #d4edda; color: #155724; padding: 2px 8px; border-radius: 20px; }
.badge-low-stock  { background: #fff3cd; color: #856404; padding: 2px 8px; border-radius: 20px; }
.badge-out-stock  { background: #f8d7da; color: #721c24; padding: 2px 8px; border-radius: 20px; }

/* ── Boş durum ──────────────────────────── */
.search-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    color: #6c757d;
}

.search-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.search-empty-hint {
    font-size: 0.875rem;
    margin-top: 6px;
    color: #adb5bd;
}

/* ── Sayfalama (storefront — search + category + dealer + diğer) ─── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px 0 12px;
    flex-wrap: wrap;
}
/* .page-link eski sınıf adı — .page-btn ile aynı görünüm */
.page-btn, .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.page-btn:hover, .page-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
    text-decoration: none;
}
.page-btn:active, .page-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.page-btn.active, .page-link.active,
.pagination .current {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #2563eb;
    color: #fff;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.page-btn[disabled], .page-link[disabled],
.page-btn.is-disabled, .page-link.is-disabled {
    opacity: .4;
    pointer-events: none;
    cursor: not-allowed;
}
.page-ellipsis {
    padding: 0 6px;
    color: #94a3b8;
    font-size: 14px;
    user-select: none;
    line-height: 38px;
}

/* Mobil — kompakt buton */
@media (max-width: 480px) {
    .pagination { gap: 4px; margin: 20px 0 8px; }
    .page-btn, .page-link { min-width: 34px; height: 34px; padding: 0 9px; font-size: 12.5px; border-radius: 7px; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
    .search-layout       { flex-direction: column; }
    .search-sidebar      { width: 100%; }
    .product-grid        { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .filter-price-range  { flex-wrap: wrap; }
    .search-input        { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── RTL ────────────────────────────────── */
[dir="rtl"] .search-dropdown   { left: 44px; right: 0; }
[dir="rtl"] .product-card-badge { left: auto; right: 8px; }
[dir="rtl"] .suggestion-price  { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .search-input      { border-radius: 0 8px 8px 0; padding: 11px 16px 11px 44px; }

/* ==========================================================================
   Sepet — Cart
   ========================================================================== */

/* ── Header cart ikonu ── */
.header-cart { position: relative; }

.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #2c3e50;
    line-height: 0;
}
.cart-icon-btn:hover { color: #3498db; }

.cart-icon-svg { width: 26px; height: 26px; display: block; }

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-count-badge.cart-badge-hidden { display: none; }

/* ── Mini cart drawer ── */
.mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1000;
}
.mini-cart-drawer {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    z-index: 1001;
    overflow: hidden;
}
.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}
.mini-cart-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    letter-spacing: -.01em;
}
.mini-cart-close {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #475569;
    padding: 0;
    transition: all .15s;
}
.mini-cart-close:hover {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mini-cart-body { overflow-y: auto; max-height: 340px; }
/* Flex kolon: tam-yükseklik drawer panellerde (hepsi/heritage/luxeaura) içerik
   az olsa bile sticky alt blok en ALTA oturur; dropdown'da (auto yükseklik)
   etkisiz kalır (kompakt). */
.mini-cart-inner { padding: 8px 0 0; display: flex; flex-direction: column; min-height: 100%; }

.mini-cart-empty {
    text-align: center;
    padding: 28px 16px;
    color: #475569;
    font-weight: 500;
}
.mini-cart-empty-icon { font-size: 2rem; display: block; margin-bottom: 8px; }

.mini-cart-list { list-style: none; margin: 0; padding: 0; }
.mini-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.mini-cart-img-link { flex-shrink: 0; }
.mini-cart-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.mini-cart-no-img {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.mini-cart-item-info { flex: 1; min-width: 0; }
.mini-cart-item-name {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.mini-cart-item-name:hover { color: #2563eb; }
.mini-cart-item-variant {
    display: inline-block;
    font-size: .72rem;
    color: #1e3a8a;
    background: #dbeafe;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 3px;
}
.mini-cart-item-qty-price {
    display: block;
    font-size: .88rem;
    color: #0f172a;
    font-weight: 600;
    margin-top: 5px;
}
/* Mini cart içi adet azalt/artır + sil kontrolleri (tema-agnostik) */
.mini-cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}
.mini-cart-item-row .mini-cart-item-qty-price { margin-top: 0; }
.mini-cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.mc-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
    padding: 0;
}
.mc-qty-btn:hover { background: #e2e8f0; }
.mc-qty-val {
    min-width: 26px;
    text-align: center;
    font-size: .84rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0 2px;
}
.mc-remove-btn {
    flex-shrink: 0;
    align-self: flex-start;
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0;
    transition: color .12s, background .12s;
}
.mc-remove-btn:hover { color: #dc2626; background: #fef2f2; }
.mini-cart-more {
    text-align: center;
    font-size: .82rem;
    color: #475569;
    padding: 8px 16px 0;
    font-weight: 500;
}
.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 10px;
    font-size: .95rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 4px;
    color: #0f172a;
    font-weight: 600;
}
.mini-cart-subtotal strong { font-size: 1rem; color: #0f172a; }
.mini-cart-footer {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
}
.mini-cart-view-btn, .mini-cart-checkout-btn { flex: 1; text-align: center; }

/* ── Sticky alt blok: Ara Toplam + butonlar (Sepeti Görüntüle / Ödemeye Geç)
   ürün listesi kaydırılırken altta HER ZAMAN görünür kalır, kaybolmaz.
   Tüm temalarda geçerli (ortak cart-drawer.php + kayan drawer gövdesi). ── */
.mini-cart-foot {
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    margin-top: auto;          /* tam-yükseklik panelde foot'u en ALTA iter */
    background: #fff;
    box-shadow: 0 -1px 0 #e5e7eb, 0 -12px 22px -14px rgba(15, 23, 42, .22);
    z-index: 3;
}
.mini-cart-foot .mini-cart-subtotal { border-top: none; margin-top: 0; }

/* ── Sepet sayfası ── (eski kurallar, yeni tema themes/modern/cart.php tarafından override edilir) */
/* .cart-page { padding: 32px 0; } → yeni tasarımda override edildi */
.cart-title { font-size: 1.6rem; font-weight: 700; color: #2c3e50; margin-bottom: 28px; }

.cart-empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cart-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 16px; }
.cart-empty-text { font-size: 1.1rem; color: #666; margin-bottom: 24px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

/* Kalem tablosu */
.cart-items-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-size: .82rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e9ecef;
}
.cart-table td { padding: 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }

.cart-product-cell { display: flex; gap: 14px; align-items: center; }
.cart-product-img-link { flex-shrink: 0; }
.cart-product-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}
.cart-product-no-img {
    width: 72px;
    height: 72px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.cart-product-info { min-width: 0; }
.cart-product-name {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    margin-bottom: 2px;
}
.cart-product-name:hover { color: #3498db; }
.cart-product-variant, .cart-product-sku {
    display: block;
    font-size: .78rem;
    color: #888;
}

/* Adet stepper */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
    line-height: 1;
    transition: background .15s;
}
.qty-btn:hover { background: #e9ecef; }
.qty-input {
    width: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 6px 4px;
    font-size: .9rem;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-col-price, .cart-col-total, .cart-col-qty { white-space: nowrap; }
.cart-line-total { font-weight: 600; color: #2c3e50; }

.cart-remove-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.cart-remove-btn:hover { color: #e74c3c; background: #fef0f0; }

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

/* Özet kutusu */
.cart-summary-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 24px;
    position: sticky;
    top: 16px;
}
.cart-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .9rem;
    color: #555;
}
.cart-summary-note { color: #999; font-size: .82rem; }
.cart-summary-divider { height: 1px; background: #e9ecef; margin: 8px 0; }
.cart-summary-total { font-size: 1rem; color: #2c3e50; }
.cart-checkout-btn { width: 100%; margin-top: 16px; text-align: center; display: block; }

/* ── Buton yardımcıları ── */
.btn { display: inline-block; padding: 9px 18px; border-radius: 6px; border: none; cursor: pointer; font-size: .88rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: #3498db; color: #fff; }
.btn-primary:hover { background: #2980b9; color: #fff; }
.btn-secondary { background: #2c3e50; color: #fff; }
.btn-secondary:hover { background: #1a252f; color: #fff; }
.btn-danger-outline { background: #e74c3c; border: 1px solid #e74c3c; color: #fff; }
.btn-danger-outline:hover { background: #c0392b; border-color: #c0392b; color: #fff; }

/* ── Sepete ekle butonu durumları ── */
.add-to-cart-btn { margin-top: 8px; width: 100%; }
.add-to-cart-btn.cart-btn-loading { opacity: .7; pointer-events: none; }
.add-to-cart-btn.cart-btn-added { background: #27ae60; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: 6px; font-size: .9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.mb-4 { margin-bottom: 16px; }

/* ── Toast bildirimi ── */
.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    min-width: 240px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 2000;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .25s, transform .25s;
}
.cart-toast.cart-toast-show { opacity: 1; transform: translateY(0); }
.cart-toast-error { background: #e74c3c; }
.cart-toast-success { background: #27ae60; }
/* Sepete eklendi toast'ı tıklanabilir → sepet çekmecesini açar */
.cart-toast-success.cart-toast-clickable { cursor: pointer; }
.cart-toast-msg { flex: 1 1 auto; }
.cart-toast-go {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .18s;
}
.cart-toast-success.cart-toast-clickable:hover .cart-toast-go { background: rgba(255,255,255,.34); }
.cart-toast-close {
    background: none;
    border: none;
    color: #fff;
    opacity: .7;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}
.cart-toast-close:hover { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary-box { position: static; }
    .cart-table thead { display: none; }
    .cart-table tr { display: block; border-bottom: 2px solid #e9ecef; padding: 12px 0; }
    .cart-table td { display: flex; justify-content: space-between; align-items: center; border: none; padding: 6px 16px; }
    .cart-table td::before { content: attr(data-label); font-weight: 600; font-size: .82rem; color: #666; }
    .cart-col-product { flex-direction: column; align-items: flex-start; }
    .cart-col-product::before { display: none; }
    .mini-cart-drawer { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 16px 16px 0 0; max-height: 75vh; overflow-y: auto; }
}

/* ── RTL ── */
[dir="rtl"] .mini-cart-drawer { right: auto; left: 0; }
[dir="rtl"] .cart-toast       { left: auto; right: 24px; }
[dir="rtl"] .cart-count-badge { right: auto; left: -6px; }
[dir="rtl"] .search-btn        { border-radius: 8px 0 0 8px; }

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-page  {
    max-width: var(--cs-container, 1360px);
    margin: 0 auto;
    padding: 32px 32px 64px;
}
.co-flash       { margin-bottom: 20px; }

/* Step Indicator */
.co-steps { display: flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.co-step-item  { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.co-step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e9ecef; color: #999; font-weight: 700; font-size: .9rem;
    display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.co-step-active .co-step-circle { background: #3498db; color: #fff; }
.co-step-done .co-step-circle   { background: #27ae60; color: #fff; }
.co-step-label { font-size: .78rem; color: #888; white-space: nowrap; }
.co-step-active .co-step-label  { color: #3498db; font-weight: 600; }
.co-step-done .co-step-label    { color: #27ae60; }
.co-step-connector { flex: 1; height: 2px; background: #e9ecef; margin: 0 8px; margin-bottom: 22px; min-width: 40px; }
.co-step-connector-done { background: #27ae60; }

/* Layout */
.co-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.co-main-col { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 28px; }
.co-aside-col { position: sticky; top: 16px; }
.co-step-heading { font-size: 1.2rem; font-weight: 700; color: #2c3e50; margin-bottom: 20px; }

/* Adres kartları */
.co-address-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.co-address-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border: 2px solid #e9ecef; border-radius: 8px;
    cursor: pointer; transition: border-color .15s;
}
.co-address-card input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.co-address-card:hover   { border-color: #bbb; }
.co-address-selected     { border-color: #3498db !important; background: #f0f8ff; }
.co-address-card-body    { flex: 1; min-width: 0; }
.co-address-card-title   { font-weight: 700; font-size: .88rem; color: #2c3e50; margin-bottom: 2px; }
.co-address-card-name    { font-size: .85rem; color: #444; }
.co-address-card-detail  { font-size: .82rem; color: #666; margin-top: 2px; }
.co-address-card-phone   { font-size: .8rem; color: #888; margin-top: 2px; }
.co-add-address-toggle {
    background: none; border: 1px dashed #bbb; border-radius: 8px;
    padding: 10px 16px; width: 100%; color: #3498db;
    cursor: pointer; font-size: .88rem; transition: border-color .15s, background .15s;
}
.co-add-address-toggle:hover { border-color: #3498db; background: #f0f8ff; }

/* Form */
.co-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.co-span-2    { grid-column: span 2; }
.co-form-group { display: flex; flex-direction: column; gap: 5px; }
.co-label     { font-size: .83rem; font-weight: 600; color: #555; }
.co-required  { color: #e74c3c; }
.co-input, .co-select, .co-textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 6px;
    font-size: .9rem; color: #333; background: #fff; transition: border-color .15s;
}
.co-input:focus, .co-select:focus, .co-textarea:focus {
    outline: none; border-color: #3498db; box-shadow: 0 0 0 3px rgba(52,152,219,.12);
}
.co-textarea { resize: vertical; min-height: 80px; }
.co-new-address-title, .co-billing-title { font-size: 1rem; font-weight: 700; color: #2c3e50; margin-bottom: 12px; }
.co-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #555; cursor: pointer; }
.co-checkbox-label input[type="checkbox"] { accent-color: #3498db; }
.co-billing-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.co-billing-same    { margin-bottom: 12px; }

/* Seçilen adres özeti */
.co-selected-address-summary {
    display: flex; align-items: center; gap: 12px;
    background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
    padding: 12px 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.co-selected-address-label  { font-size: .8rem; font-weight: 700; color: #888; min-width: 100px; }
.co-selected-address-detail { flex: 1; font-size: .88rem; color: #444; }
.co-change-link             { font-size: .82rem; color: #3498db; text-decoration: none; flex-shrink: 0; }
.co-change-link:hover       { text-decoration: underline; }

/* Method kartları */
.co-shipping-methods, .co-payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.co-method-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border: 2px solid #e9ecef; border-radius: 8px;
    cursor: pointer; transition: border-color .15s;
}
.co-method-card input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.co-method-card:hover  { border-color: #bbb; }
.co-method-selected    { border-color: #3498db !important; background: #f0f8ff; }
.co-method-body        { flex: 1; }
.co-method-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.co-method-icon  { font-size: 1.2rem; margin-right: 6px; }
.co-method-label { font-weight: 700; font-size: .9rem; color: #2c3e50; }
.co-method-fee   { font-weight: 700; font-size: .9rem; color: #2c3e50; }
.co-method-desc  { font-size: .82rem; color: #666; }
.co-method-eta   { font-size: .8rem; color: #888; margin-top: 2px; }
.co-free-badge { background: #d4edda; color: #155724; font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

/* Checkout review */
.co-checkout-review { background: #f8f9fa; border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; }
.co-review-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: .88rem; color: #555; }
.co-review-total { font-size: .95rem; color: #2c3e50; padding-top: 10px; border-top: 1px solid #e9ecef; margin-top: 6px; }
.co-card-placeholder { background: #fff8e1; border: 1px solid #ffe082; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: .85rem; color: #856404; }
.co-order-note-group { margin-bottom: 20px; }

/* Step aksiyonlar */
.co-step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.co-next-btn, .co-place-order-btn { min-width: 200px; }
.co-place-order-btn { background: #27ae60; }
.co-place-order-btn:hover { background: #219a52; color: #fff; }
.co-hidden { display: none !important; }
.co-note   { font-size: .85rem; color: #888; }

/* Checkout özet paneli */
.checkout-summary { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.07); padding: 22px; }
.checkout-summary-title { font-size: 1rem; font-weight: 700; color: #2c3e50; margin-bottom: 16px; }
.checkout-summary-items { list-style: none; margin: 0 0 12px; padding: 0; }
.checkout-summary-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f6f6f6; }
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-sum-img-wrap { position: relative; flex-shrink: 0; }
.checkout-sum-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; }
.checkout-sum-no-img { width: 48px; height: 48px; background: #f5f5f5; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.checkout-sum-qty-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; background: #555; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.checkout-sum-info  { flex: 1; min-width: 0; }
.checkout-sum-name  { display: block; font-size: .82rem; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-sum-variant { display: block; font-size: .75rem; color: #888; }
.checkout-sum-price { font-size: .85rem; font-weight: 600; color: #2c3e50; flex-shrink: 0; }
.checkout-summary-divider { height: 1px; background: #e9ecef; margin: 10px 0; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: .88rem; color: #555; padding: 5px 0; }
.checkout-summary-total-row { font-size: 1rem; color: #2c3e50; }
.co-discount-row { color: #27ae60; }

/* Success sayfası */
.co-success-page    { padding: 32px 0 56px; }
.co-success-hero    { text-align: center; margin-bottom: 40px; }
.co-success-icon    { font-size: 3.5rem; display: block; margin-bottom: 12px; }
.co-success-title   { font-size: 1.6rem; font-weight: 700; color: #27ae60; margin-bottom: 8px; }
.co-success-subtitle { font-size: 1rem; color: #555; }
.co-order-no        { color: #2c3e50; }
.co-success-layout  { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.co-success-main    { display: flex; flex-direction: column; gap: 24px; }
.co-success-section { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 22px; }
.co-success-section-title { font-size: 1rem; font-weight: 700; color: #2c3e50; margin-bottom: 14px; }
.co-order-items-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.co-order-items-table th { text-align: left; padding: 8px 0; border-bottom: 2px solid #e9ecef; font-size: .8rem; color: #888; text-transform: uppercase; }
.co-order-items-table td { padding: 10px 0; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.co-order-items-table tr:last-child td { border-bottom: none; }
.co-text-right      { text-align: right; }
.co-success-address { font-size: .88rem; color: #555; line-height: 1.7; }
.co-success-aside   { position: sticky; top: 16px; }
.co-success-summary { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); padding: 22px; margin-bottom: 16px; }
.co-success-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: .88rem; color: #555; }
.co-success-total-row { font-size: 1rem; color: #2c3e50; }
.co-success-divider { height: 1px; background: #e9ecef; margin: 8px 0; }
.co-status-badge    { font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.co-status-pending  { background: #fff3cd; color: #856404; }
.co-bank-info       { background: #e8f4fd; border: 1px solid #bee5fb; border-radius: 8px; padding: 12px 14px; margin-top: 12px; font-size: .85rem; color: #0c5460; }
.co-bank-info code  { font-weight: 700; color: #2c3e50; }
.co-success-actions { display: flex; flex-direction: column; gap: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .checkout-page     { padding: 20px 16px 48px; }
    .co-layout         { grid-template-columns: 1fr; }
    .co-aside-col      { position: static; }
    .co-success-layout { grid-template-columns: 1fr; }
    .co-success-aside  { position: static; }
    .co-form-grid      { grid-template-columns: 1fr; }
    .co-span-2         { grid-column: span 1; }
    .co-step-connector { min-width: 20px; }
    .co-step-actions   { flex-direction: column-reverse; align-items: stretch; }
    .co-next-btn, .co-place-order-btn { width: 100%; text-align: center; }
}

/* RTL */
[dir="rtl"] .co-step-actions         { flex-direction: row-reverse; }
[dir="rtl"] .co-method-top           { flex-direction: row-reverse; }
[dir="rtl"] .checkout-summary-row    { flex-direction: row-reverse; }
[dir="rtl"] .co-selected-address-summary { flex-direction: row-reverse; }

/* ==========================================================================
   Modül 9A — Ödeme Sayfaları (Payment)
   ========================================================================== */
.payment-page,
.payment-success-page,
.payment-fail-page   { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.payment-mock-box    { background: #fff; border: 2px dashed #f59e0b; border-radius: 12px; padding: 40px 32px; text-align: center; }
.payment-mock-badge  { display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.payment-mock-title  { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.payment-mock-sub    { color: #6b7280; font-size: 14px; margin: 0; }
.payment-mock-note   { color: #6b7280; font-size: 14px; margin: 24px 0; }
.payment-mock-form   { margin: 12px 0; }
.payment-mock-btn    { width: 100%; max-width: 340px; padding: 14px 24px; font-size: 16px; font-weight: 600; border-radius: 8px; border: none; cursor: pointer; }
.payment-mock-fail-btn { margin-top: 8px; }
.payment-cancel-link { margin-top: 20px; font-size: 13px; }
.payment-cancel-link a { color: #6b7280; text-decoration: underline; }
.payment-order-info  { background: #f9fafb; border-radius: 8px; padding: 16px 20px; margin: 20px 0; text-align: left; }
.payment-order-row   { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.payment-order-row:not(:last-child) { border-bottom: 1px solid #e5e7eb; }
.payment-amount      { font-size: 18px; color: #1a56db; }
.payment-iframe-box  { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 32px; }
.payment-iframe-title{ font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.payment-success-hero      { text-align: center; padding: 40px 20px 32px; }
.payment-success-icon      { font-size: 60px; margin-bottom: 16px; }
.payment-success-title     { font-size: 28px; font-weight: 700; color: #065f46; margin-bottom: 8px; }
.payment-success-order-no  { font-size: 16px; color: #374151; margin-bottom: 12px; }
.payment-success-body      { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 32px; align-items: start; }
.payment-success-items     { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; }
.payment-success-summary   { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 24px; position: sticky; top: 20px; }
.payment-success-section-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; }
.payment-success-row       { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.payment-total-row         { font-size: 16px; padding-top: 10px; margin-top: 4px; }
.payment-discount-row      { color: #16a34a; }
.payment-success-divider   { border: none; border-top: 1px solid #e5e7eb; margin: 14px 0; }
.payment-success-address   { font-size: 13px; color: #4b5563; line-height: 1.6; }
.payment-success-address-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 4px; }
.payment-success-actions   { text-align: center; margin-top: 40px; }
.payment-items-table       { width: 100%; border-collapse: collapse; font-size: 14px; }
.payment-items-table th    { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; }
.payment-items-table td    { padding: 10px 0; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.payment-items-table tr:last-child td { border-bottom: none; }
.payment-bank-info         { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 16px; margin-top: 16px; font-size: 13px; }
.payment-bank-title        { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.payment-bank-details      { margin: 8px 0; padding-left: 18px; line-height: 1.8; }
.payment-bank-note         { color: #1d4ed8; font-size: 12px; margin: 8px 0 0; }
.payment-fail-page         { text-align: center; }
.payment-fail-hero         { padding: 40px 20px 32px; }
.payment-fail-icon         { font-size: 60px; margin-bottom: 16px; }
.payment-fail-title        { font-size: 26px; font-weight: 700; color: #991b1b; margin-bottom: 8px; }
.payment-fail-order-no     { font-size: 15px; color: #374151; margin-bottom: 12px; }
.payment-fail-message      { color: #6b7280; font-size: 14px; }
.payment-fail-actions      { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.payment-fail-notes        { background: #fef9c3; border: 1px solid #fde68a; border-radius: 10px; padding: 20px 24px; margin-top: 36px; text-align: left; max-width: 480px; margin-left: auto; margin-right: auto; }
.payment-fail-notes h3     { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.payment-fail-notes ul     { margin: 0; padding-left: 20px; line-height: 2; font-size: 14px; color: #4b5563; }
.badge                     { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-success             { background: #d1fae5; color: #065f46; }
.badge-warning             { background: #fef3c7; color: #92400e; }
.badge-info                { background: #dbeafe; color: #1e40af; }
.badge-secondary           { background: #f3f4f6; color: #374151; }
.btn-success               { background: #16a34a; color: #fff; }
.btn-success:hover         { background: #15803d; }
.btn-danger                { background: #dc2626; color: #fff; }
.btn-danger:hover          { background: #b91c1c; }
@media (max-width: 768px) {
    .payment-success-body   { grid-template-columns: 1fr; }
    .payment-success-summary{ position: static; }
    .payment-fail-actions   { flex-direction: column; align-items: center; }
}
[dir="rtl"] .payment-order-row    { flex-direction: row-reverse; }
[dir="rtl"] .payment-success-row  { flex-direction: row-reverse; }
[dir="rtl"] .payment-items-table th { text-align: right; }
[dir="rtl"] .payment-bank-details { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .payment-fail-notes ul{ padding-left: 0; padding-right: 20px; }

/* ==========================================================================
   FAZ 10 / BATCH 4A — Responsive Hardening & Mobile Layout
   ========================================================================== */

/* ── Global: overflow-x önleme ───────────────────────────────────────────── */
html, body {
    overflow-x: hidden;
}

/* ── Global: görsel taşma önleme ─────────────────────────────────────────── */
img, video, svg, iframe {
    max-width: 100%;
    height: auto;
}

/* ── Sticky header z-index ───────────────────────────────────────────────── */
.site-header--sticky {
    position: sticky;
    top: 0;
    z-index: 900;
}

/* ── Hamburger butonu ─────────────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Footer kolon responsive ─────────────────────────────────────────────── */
.footer-columns {
    display: grid !important;
}

/* ── Mobil breakpoint: 768px ─────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Container padding */
    .container { padding: 0 16px; }

    /* Header */
    .header-inner { flex-wrap: wrap; gap: 8px; }

    /* Hamburger göster */
    .nav-hamburger { display: flex; }

    /* Nav gizle — hamburger ile aç */
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 10;
        background: inherit;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(128,128,128,0.15);
        gap: 2px;
    }
    .main-nav.nav-open { display: flex; }
    .main-nav a {
        padding: 9px 12px;
        border-radius: 6px;
        font-size: 0.95rem;
    }

    /* CTA buton tam genişlik değil, sadece nav yanında */
    .header-cta-btn { font-size: 0.82em; padding: 7px 14px; }

    /* Footer kolonları: 2 sütun, küçük ekranda 1 */
    .footer-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

    /* Section genel padding */
    .section-block { padding: 40px 0 !important; }

    /* Hero font küçült */
    .hero-section .hero-headline,
    .mod-hero-headline,
    .def-hero-headline { font-size: clamp(1.4rem, 5vw, 2.2rem) !important; }

    .hero-section .hero-subheadline,
    .mod-hero-sub,
    .def-hero-sub { font-size: clamp(0.9rem, 3vw, 1.1rem) !important; }

    /* Ürün grid */
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Checkout layout */
    .co-layout { grid-template-columns: 1fr; }
    .co-aside-col { position: static; }

    /* ── VTE Layout: çok-kolonlu satırlar mobilde dikey yığılsın ── */
    .lr-row-inner {
        flex-wrap: wrap;
    }
    .lr-col {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* ── Section padding küçült (inline style override) ── */
    .section-cta-strip,
    .section-brand-showcase,
    .section-blog-highlights,
    .section-category-grid,
    .section-featured-products,
    .section-hero,
    .section-banner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Modern theme CTA strip büyük padding'i küçült */
    .section-cta-strip { padding-top: 36px !important; padding-bottom: 36px !important; }
    .section-brand-showcase { padding-top: 36px !important; padding-bottom: 36px !important; }

    /* ── Carousel taşma kırpma ── */
    [data-tr] { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

    /* ── Dekoratif absolute öğeleri kırp ── */
    .section-hero,
    .section-cta-strip,
    .section-banner { overflow: hidden !important; }
}

/* ── Çok küçük ekranlar: 480px ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .header-cta-btn { display: none; }
}

/* ==========================================================================
   Hesabım Sayfası — acc-*
   ========================================================================== */

.acc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

/* Flash mesajı */
.acc-flash {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 500;
}
.acc-flash--success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.acc-flash--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.acc-flash--warning { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.acc-flash--info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }

/* Profil hero kartı */
.acc-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 28px;
    color: #fff;
}
.acc-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
.acc-hero__name  { font-size: 1.4rem; font-weight: 700; margin: 0 0 4px; }
.acc-hero__email { font-size: .88rem; color: rgba(255,255,255,.65); margin: 0 0 8px; }
.acc-hero__role  {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
}
.acc-hero__role--bayi  { background: rgba(52,211,153,.2); border-color: rgba(52,211,153,.4); }
.acc-hero__role--admin { background: rgba(251,191,36,.2);  border-color: rgba(251,191,36,.4); }

/* Ana ızgara */
.acc-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* Kart */
.acc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.acc-card:last-child { margin-bottom: 0; }
.acc-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}
.acc-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.acc-card__header .acc-card__title { margin-bottom: 0; }
.acc-card__link {
    font-size: .82rem;
    color: #0f3460;
    text-decoration: none;
    font-weight: 600;
}
.acc-card__link:hover { text-decoration: underline; }

/* Navigasyon */
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: .88rem;
    font-weight: 500;
    transition: background .15s;
}
.acc-nav__item:hover { background: #f3f4f6; }
.acc-nav__item--logout { color: #dc2626; }
.acc-nav__item--logout:hover { background: #fff5f5; }
.acc-nav__icon  { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.acc-nav__label { flex: 1; }
.acc-nav__arrow { color: #9ca3af; flex-shrink: 0; }

/* Bayi durum kartı */
.acc-card--dealer { padding: 16px; margin-bottom: 0; }
.acc-card--dealer-active  { border-color: #6ee7b7; background: #f0fdf4; }
.acc-card--dealer-pending { border-color: #fcd34d; background: #fffbeb; }
.acc-card--dealer-rejected{ border-color: #fca5a5; background: #fef2f2; }
.acc-dealer-status { display: flex; align-items: center; gap: 12px; }
.acc-dealer-status__icon  { font-size: 1.6rem; flex-shrink: 0; }
.acc-dealer-status__title { font-size: .75rem; color: #6b7280; font-weight: 500; }
.acc-dealer-status__label { font-size: .9rem; font-weight: 700; color: #111827; }
.acc-dealer-status__company { font-size: .8rem; color: #6b7280; margin-top: 2px; }

/* Form */
.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-form__group { display: flex; flex-direction: column; gap: 5px; }
.acc-form__label { font-size: .82rem; font-weight: 600; color: #374151; }
.acc-form__input {
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .9rem;
    color: #111827;
    transition: border-color .15s;
    background: #fff;
}
.acc-form__input:focus { outline: none; border-color: #0f3460; }
.acc-form__input--readonly { background: #f9fafb; color: #6b7280; cursor: not-allowed; }
.acc-form__hint { font-size: .75rem; color: #9ca3af; }
.acc-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--acc-accent, #0f3460);
    color: #fff;
    border: none;
    border-radius: var(--acc-radius, 8px);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
    align-self: flex-start;
}
.acc-form__btn:hover { opacity: .88; }
.acc-form__btn--outline {
    background: transparent;
    color: var(--acc-accent, #0f3460);
    border: 1px solid var(--acc-border, #0f3460);
}
.acc-form__btn--outline:hover { background: var(--acc-bg, #f0f4ff); border-color: var(--acc-accent, #0f3460); opacity: 1; }

/* Boş durum */
.acc-empty {
    text-align: center;
    padding: 32px 16px;
    color: #6b7280;
    font-size: .9rem;
}
.acc-empty__icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }

/* Sipariş listesi */
.acc-orders-list { display: flex; flex-direction: column; gap: 8px; }
.acc-order-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.acc-order-row:hover { background: #f9fafb; border-color: #d1d5db; }
.acc-order-row__no   { font-size: .85rem; font-weight: 600; color: #0f3460; }
.acc-order-row__total{ font-size: .85rem; font-weight: 700; color: #111827; }
.acc-order-row__date { font-size: .78rem; color: #9ca3af; }

/* Sipariş durum rozeti */
.acc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
}
.acc-badge--pending    { background: #fef3c7; color: #92400e; }
.acc-badge--confirmed  { background: #dbeafe; color: #1e40af; }
.acc-badge--processing { background: #ede9fe; color: #5b21b6; }
.acc-badge--shipped    { background: #e0f2fe; color: #0369a1; }
.acc-badge--delivered  { background: #dcfce7; color: #166534; }
.acc-badge--cancelled  { background: #fee2e2; color: #991b1b; }

/* Mobil uyum */
@media (max-width: 768px) {
    .acc-grid { grid-template-columns: 1fr; }
    .acc-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
    .acc-order-row { grid-template-columns: 1fr auto; }
    .acc-order-row__total,
    .acc-order-row__date { display: none; }
}

/* ================================================================
   NCO Yeni Tasarım — Sepet & Checkout kritik layout kuralları
   Bu kurallar themes/modern/cart.php ve checkout.php <style>
   tag'larının body içinde render edilmesinden kaynaklanan CSS
   cascade sorunlarını önlemek için head'den yüklenen bu dosyaya
   eklendi.
   ================================================================ */

/* --- Sepet adım göstergesi --- */
.nco-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.nco-step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* --- Sepet satırları ve layout --- */
.cart-row {
    display: flex !important;
    align-items: center !important;
}
.cart-layout {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
}

/* --- Checkout adım göstergesi --- */
.co-steps {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.co-step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* --- Checkout ana layout --- */
.co-layout {
    display: grid !important;
    grid-template-columns: 1fr 340px !important;
    align-items: start !important;
}

/* --- Kargo & Ödeme yöntem kartları --- */
.co-shipping-methods,
.co-payment-methods {
    display: flex !important;
    flex-direction: column !important;
}
.co-method-card {
    display: flex !important;
    align-items: center !important;
}

/* --- Adres kartları ızgarası --- */
.co-address-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

/* --- Trust bar --- */
.co-trust-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* --- Checkout özet ürün listesi --- */
.checkout-summary-items {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.checkout-summary-item {
    display: flex !important;
    align-items: center !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .cart-layout   { grid-template-columns: 1fr !important; }
    .co-layout     { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .co-address-list { grid-template-columns: 1fr !important; }
}

/* ================================================================
   NCO — Evrensel Görsel Stiller (tema-bağımsız temel)
   Her tema bu stilleri kendi renk/font override'larıyla üstüne yazar.
   ================================================================ */

/* ── Sepet & Checkout sayfa kapsayıcıları ── */
.cart-page,
.checkout-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    min-height: 60vh;
}
.cart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 16px 0 14px;
}

/* ── Adım Göstergesi — Step Circles ── */
.nco-steps,
.co-steps {
    gap: 0;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.nco-step-circle,
.co-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    border: 1.5px solid #ccc;
    background: #f5f5f5;
    color: #666;
    flex-shrink: 0;
}
.nco-step-active .nco-step-circle,
.co-step-active  .co-step-circle {
    background: #111;
    color: #fff;
    border-color: #111;
}
.nco-step-label,
.co-step-label {
    font-size: .65rem;
    font-weight: 600;
    color: #888;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nco-step-active .nco-step-label,
.co-step-active  .co-step-label  { color: #111; font-weight: 700; }
.co-step-done .co-step-circle  { background: #16a34a; color: #fff; border-color: #16a34a; }
.co-step-done .co-step-label   { color: #16a34a; }
.nco-step-connector,
.co-step-connector {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
    margin: 0 8px;
    align-self: flex-start;
    margin-top: 13px;
}
.co-step-connector-done { background: #16a34a; }

/* ── Trust bar ── */
.co-trust-bar {
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0 18px;
    font-size: .78rem;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* ── Sepet satır stili ── */
.cart-row {
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start !important;
}
.cart-row:last-child { border-bottom: none; }
.cart-product-img-link { flex-shrink: 0; }
.cart-product-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
}
.cart-product-no-img {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}
.cart-product-info { flex: 1; min-width: 0; }
.cart-product-name {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}
.cart-product-name:hover { opacity: .75; }
.cart-product-variant {
    font-size: .75rem;
    color: #666;
    display: block;
}
.nco-stock-badge {
    display: inline-block;
    font-size: .7rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    padding: 1px 6px;
    margin-bottom: 4px;
}
.cart-items-wrap { margin-bottom: 16px; }

/* ── Adet stepper ── */
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    margin: 8px 0;
}
.qty-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    transition: background .15s;
}
.qty-btn:hover { background: #111; color: #fff; }
.qty-input {
    width: 36px;
    height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-weight: 700;
    font-size: .88rem;
    color: #111;
}
.cart-line-total { font-size: .95rem; font-weight: 700; color: #111; white-space: nowrap; }
.cart-remove-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    transition: color .15s;
}
.cart-remove-btn:hover { color: #e53e3e; }

/* ── Kupon ── */
.nco-coupon-card {
    padding: 14px 0;
    border-top: 1px solid #eee;
    margin-bottom: 12px;
}
.nco-coupon-label {
    font-size: .8rem;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 10px;
}
.nco-coupon-row { display: flex; gap: 8px; }
.nco-coupon-row input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: .84rem;
}
.nco-coupon-row button {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.nco-coupon-row button:hover { opacity: .8; }
.nco-continue-link {
    font-size: .82rem;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nco-continue-link:hover { color: #111; text-decoration: underline; }

/* ── Sepet özet kutusu ── */
.cart-summary-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    position: sticky;
    top: 90px;
}
.nco-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.cart-summary-title { font-size: .9rem; font-weight: 700; color: #111; }
.nco-secure-badge {
    font-size: .72rem;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 3px;
    padding: 2px 7px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    color: #555;
    margin-bottom: 8px;
}
.cart-summary-divider { border: none; border-top: 1px solid #eee; margin: 10px 0; }
.nco-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}
.nco-total-amount { font-size: 1.1rem; }
.nco-free-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 3px;
    padding: 2px 7px;
    font-size: .72rem;
    font-weight: 700;
}
.nco-discount-row { color: #16a34a !important; }
.cart-campaign-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: .8rem;
    color: #92400e;
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.cart-checkout-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 13px !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .15s !important;
    letter-spacing: .04em;
}
.cart-checkout-btn:hover { opacity: .8 !important; }
.nco-trust-signals { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; }
.nco-trust-item {
    display: flex;
    gap: 7px;
    font-size: .74rem;
    color: #666;
    margin-bottom: 5px;
    align-items: flex-start;
}
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cart-empty-text { font-size: .9rem; color: #666; margin-bottom: 20px; display: block; }

/* ── Checkout adım içerikleri ── */
.co-step-content { /* boş — tema üzerine yazar */ }
.co-step-heading  { font-size: 1.25rem; font-weight: 700; color: #111; margin: 0 0 6px; }
.co-step-subtitle { font-size: .84rem; color: #666; margin: 0 0 20px; }
.co-section-heading {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #666;
    margin: 20px 0 10px;
}

/* ── Adres kartları ── */
.co-address-card {
    display: block;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s;
}
.co-address-card:hover { border-color: #555; }
.co-address-selected { border-color: #16a34a !important; background: #f0fdf4; }
.co-address-card input[type="radio"] { display: none; }
.co-address-card-title {
    font-size: .8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.co-address-card-name  { font-size: .88rem; font-weight: 500; color: #111; margin-bottom: 3px; }
.co-address-card-detail { font-size: .78rem; color: #666; line-height: 1.5; }
.co-address-card-phone  { font-size: .74rem; color: #888; margin-top: 4px; }
.co-add-address-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed #ccc;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: .78rem;
    cursor: pointer;
    padding: 16px;
    min-height: 90px;
    width: 100%;
    transition: border-color .15s, color .15s;
}
.co-add-address-toggle:hover { border-color: #333; color: #333; }

/* ── Kargo ve ödeme yöntem kartları ── */
.co-method-card {
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 13px 16px;
    cursor: pointer;
    gap: 12px;
    transition: border-color .15s;
    background: #fff;
}
.co-method-card:hover { border-color: #555; }
.co-method-selected   { border-color: #111 !important; background: #fafafa; }
.co-method-card input[type=radio] { flex-shrink: 0; accent-color: #111; }
.co-method-name  { font-weight: 600; font-size: .86rem; color: #111; }
.co-method-price { margin-left: auto; font-weight: 700; font-size: .9rem; color: #111; }
.co-method-desc  { font-size: .76rem; color: #666; width: 100%; }

/* ── Form girdileri ── */
.co-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.co-span-2 { grid-column: span 2; }
.co-form-group { display: flex; flex-direction: column; gap: 5px; }
.co-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
}
.co-required { color: #e53e3e; margin-left: 2px; }
.co-input,
.co-select,
.co-textarea {
    border: 1px solid #ddd;
    outline: none;
    padding: 10px 13px;
    font-size: .85rem;
    color: #111;
    background: #fff;
    border-radius: 4px;
    transition: border-color .15s;
    width: 100%;
    box-sizing: border-box;
}
.co-input:focus, .co-select:focus, .co-textarea:focus { border-color: #111; }
.co-input::placeholder, .co-textarea::placeholder { color: #aaa; }
.co-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.co-select { appearance: none; cursor: pointer; }
.co-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .83rem;
    color: #555;
    cursor: pointer;
}
.co-checkbox-label input[type="checkbox"] {
    accent-color: #111;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.co-hidden  { display: none !important; }
.co-note    { font-size: .8rem; color: #888; font-style: italic; margin: 8px 0; }

/* ── Seçilen adres özet (kargo adımı) ── */
.co-selected-address-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 4px;
    flex-wrap: wrap;
}
.co-selected-address-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #666;
    white-space: nowrap;
}
.co-selected-address-detail { flex: 1; font-size: .84rem; color: #111; line-height: 1.4; }
.co-change-link {
    font-size: .72rem;
    font-weight: 600;
    color: #16a34a;
    text-decoration: underline;
    white-space: nowrap;
}
.co-change-link:hover { color: #111; }

/* ── Navigasyon butonları ── */
.co-next-btn {
    display: block;
    width: 100%;
    padding: 13px !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: opacity .15s !important;
    letter-spacing: .04em;
    text-align: center;
    margin-top: 12px;
}
.co-next-btn:hover { opacity: .8 !important; }
.co-place-order-btn {
    display: block;
    width: 100%;
    padding: 13px !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: opacity .15s !important;
    letter-spacing: .04em;
    text-align: center;
    margin-top: 12px;
}
.co-place-order-btn:hover { opacity: .8 !important; }
.co-back-btn {
    background: none;
    border: none;
    color: #666;
    font-size: .82rem;
    cursor: pointer;
    padding: 8px 0;
    text-decoration: underline;
    display: inline-block;
    margin-top: 4px;
}
.co-back-btn:hover { color: #111; }

/* ── Ödeme formu (checkout) ── */
.co-billing-section { margin-top: 18px; }
.co-billing-same    { margin-bottom: 0; }
.co-billing-address-wrap { margin-top: 14px; }
.co-billing-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #555;
    margin: 0 0 12px;
}
.co-new-address-title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #555;
    margin: 18px 0 10px;
}

/* ── Checkout özet (aside) ── */
.checkout-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 18px;
    position: sticky;
    top: 90px;
}
.nco-sum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.checkout-summary-title { font-size: .9rem; font-weight: 700; color: #111; }
.checkout-summary-item {
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: .82rem;
}
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-sum-img-wrap { position: relative; flex-shrink: 0; }
.checkout-sum-img-wrap img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
}
.checkout-sum-qty-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #111;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-sum-name   { flex: 1; font-size: .82rem; color: #111; font-weight: 500; }
.checkout-sum-price  { font-weight: 700; color: #111; white-space: nowrap; }
.nco-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    color: #555;
    margin-bottom: 6px;
}
.nco-sum-divider { border: none; border-top: 1px solid #eee; margin: 8px 0; }
.nco-sum-total {
    display: flex;
    justify-content: space-between;
    font-size: .95rem;
    font-weight: 700;
    color: #111;
    margin-top: 8px;
}
.nco-free-ship-banner {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}
.nco-sum-trust        { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee; }
.nco-sum-trust-item   { display: flex; gap: 6px; align-items: center; font-size: .72rem; color: #666; margin-bottom: 4px; }
.co-flash             { margin-bottom: 12px; }
.co-main-col          { min-width: 0; }
.co-aside-col         { /* sticky handled by checkout-summary */ }
.co-saved-addresses   { margin-bottom: 8px; }

/* ── Kargo formu cevap/hata mesajları ── */
@media (max-width: 600px) {
    .co-form-grid   { grid-template-columns: 1fr; }
    .co-span-2      { grid-column: span 1; }
}

/* ── Shared Layout Partials (_shared/_trust_badges.php, _payment_logos.php) ── */
.sh-trust-band > div { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .sh-trust-band > div { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .sh-trust-band > div { grid-template-columns: 1fr; } }
.sh-payment-logos { }
