/* httpdocs/assets/css/style.css
   =====================================================================
   Mango Coffee & Patisserie — Tasarım Sistemi (Stitch referansından)
   Tek statik CSS: build adımı yok, CDN bağımlılığı yok.
   Renk/tipografi/spacing token'ları DESIGN.md ile birebir aynıdır.
   ===================================================================== */

/* ------------------------- Tasarım Token'ları ------------------------ */
:root {
    /* Renkler */
    --surface:            #FFF8F4;  /* Krem zemin */
    --surface-card:       #FFFFFF;  /* Kart zemini */
    --surface-container:  #FAEBDD;
    --surface-high:       #F4E6D8;
    --surface-highest:    #EEE0D2;
    --sidebar:            #F2E8DF;  /* Admin kenar çubuğu */
    --on-surface:         #211A12;  /* Koyu espresso metin */
    --on-surface-variant: #524534;
    --outline:            #857462;
    --outline-variant:    #D7C3AE;
    --primary:            #835500;  /* Koyu amber (başlık/etkin çip) */
    --on-primary:         #FFFFFF;
    --mango:              #F5A623;  /* İmza mango turuncusu */
    --mango-deep:         #E8940A;
    --on-mango:           #211A12;
    --olive:              #546437;
    --olive-container:    #D7EAB1;  /* Fiyat rozeti / aktif admin menüsü */
    --on-olive-container: #3D4C21;
    --olive-soft:         #E7F0D3;  /* Alerjen çipi zemini */
    --error:              #BA1A1A;
    --error-container:    #FFDAD6;
    --on-error-container: #93000A;
    --info-container:     #C4E7FF;
    --on-info-container:  #004C69;

    /* Tipografi */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Plus Jakarta Sans', 'Segoe UI', sans-serif;

    /* Yuvarlatma */
    --r-sm: 0.5rem;
    --r-md: 0.75rem;
    --r-lg: 1rem;
    --r-xl: 1.5rem;
    --r-full: 9999px;

    /* Gölge (espresso tonlu yumuşak ambiyans) */
    --shadow-rest:  0 10px 30px rgba(59, 36, 23, 0.05);
    --shadow-hover: 0 14px 38px rgba(59, 36, 23, 0.12);

    /* Boşluk ritmi (8px tabanlı) */
    --sp-xs: 8px;
    --sp-sm: 16px;
    --sp-md: 24px;
    --sp-lg: 40px;
    --sp-xl: 64px;
    --container-max: 1200px;
}

/* ------------------------------ Sıfırlama ---------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--on-surface);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

/* Uygulama kabuğu: tamamen mobil odaklı tasarım — içerik her ekranda
   telefon genişliğinde tutulur ve daima merkezde (center) durur. */
.app {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}
/* Geniş ekranlarda kenarlar hafif koyulaşır; ortadaki mobil kolon
   yumuşak gölgeyle telefon tuvali gibi öne çıkar. */
@media (min-width: 560px) {
    body { background: var(--surface-high); }
    .app { box-shadow: 0 0 60px rgba(59, 36, 23, 0.12); }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 var(--sp-xs); }
button { font-family: inherit; }

/* ------------------------------ Üst Çubuk ---------------------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px var(--sp-sm);
    background: var(--surface);
    border-bottom: 1px solid var(--surface-high);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar__logo { width: 40px; height: 40px; object-fit: contain; }
.topbar__name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
}
.topbar__actions { display: flex; gap: var(--sp-xs); }
.topbar__icon-btn {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: var(--r-full);
    color: var(--on-surface);
    background: var(--surface-high);
    transition: background 0.2s ease;
}
.topbar__icon-btn:hover { background: var(--surface-highest); }
.topbar__icon-btn svg { width: 20px; height: 20px; }

/* ------------------------------ Sayfa Kabı --------------------------- */
.page {
    width: 100%;
    flex: 1;
    padding: 0 var(--sp-sm) calc(var(--sp-xl) + 72px); /* Alt gezinme payı */
}

/* --------------------------- Kategori Sekmeleri ---------------------- */
.category-tabs {
    position: sticky;
    top: 63px;
    z-index: 40;
    display: flex;
    gap: var(--sp-xs);
    overflow-x: auto;
    padding: 12px 0;
    margin: 0 calc(-1 * var(--sp-sm));
    padding-left: var(--sp-sm);
    padding-right: var(--sp-sm);
    background: var(--surface);
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: var(--r-full);
    background: var(--surface-high);
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}
.category-tab:hover { background: var(--surface-highest); }
.category-tab.is-active { background: var(--primary); color: var(--on-primary); }

/* --------------------------- Arama + Filtre -------------------------- */
.search-panel { margin: var(--sp-sm) 0 var(--sp-xs); }
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-card);
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--r-lg);
    padding: 12px var(--sp-sm);
    box-shadow: var(--shadow-rest);
}
.search-box svg { width: 20px; height: 20px; color: var(--outline); flex: 0 0 auto; }
.search-box input {
    flex: 1;
    border: 0;
    outline: none;
    font: inherit;
    font-size: 15px;
    color: var(--on-surface);
    background: transparent;
}
.allergen-filter { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-xs); margin-top: 12px; }
.allergen-filter__label { font-size: 13px; font-weight: 700; color: var(--on-surface-variant); letter-spacing: 0.04em; }
.allergen-filter__chips { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.filter-chip {
    padding: 7px 14px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--outline-variant);
    background: var(--surface-card);
    color: var(--on-surface-variant);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--olive); }
.filter-chip.is-active {
    background: var(--olive);
    border-color: var(--olive);
    color: #FFFFFF;
}

/* ---------------------------- Menü Bölümleri ------------------------- */
.menu-section { padding-top: var(--sp-md); }
.menu-section__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}
.menu-section__desc { color: var(--on-surface-variant); font-size: 15px; margin: 4px 0 0; }

/* Mobil odaklı akış: ürünler her ekranda tek kolonda listelenir */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
    margin-top: var(--sp-sm);
}

/* ----------------------------- Ürün Kartı ---------------------------- */
.product-card {
    background: var(--surface-card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-rest);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.product-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
/* Fotoğrafı olmayan ürünlerde logo, krem zeminde ortalanmış yer tutucudur */
.product-card__media--placeholder {
    aspect-ratio: 21 / 9;
    background: var(--surface-container);
    display: grid;
    place-items: center;
}
.product-card__media--placeholder img { width: 88px; height: 88px; object-fit: contain; }
.product-card__body { padding: var(--sp-sm); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-xs); }
.product-card__name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
}
.product-card__name a { text-decoration: none; color: var(--on-surface); }
.product-card__desc {
    font-size: 14.5px;
    color: var(--on-surface-variant);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xs); margin-top: auto; }
.product-card__allergens { display: flex; gap: 6px; }

.price-badge {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: var(--r-full);
    background: var(--olive-container);
    color: var(--on-olive-container);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.allergen-chip {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: var(--r-full);
    background: var(--olive-soft);
    color: var(--on-olive-container);
    font-size: 11px;
    font-weight: 700;
}
.allergen-chip--admin { min-width: 32px; height: 32px; font-size: 12px; }

/* ------------------------------ Düğmeler ----------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--mango); color: var(--on-mango); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--pill { background: var(--primary); color: var(--on-primary); }
.btn--pill:hover { filter: brightness(1.15); }
.btn--outline {
    background: transparent;
    color: var(--on-surface);
    border: 1.5px solid var(--outline);
}
.btn--outline:hover { background: var(--surface-high); }
.btn--danger { background: var(--error-container); color: var(--on-error-container); }
.btn--danger:hover { filter: brightness(0.97); }
.btn--small { padding: 6px 12px; font-size: 13px; }
.btn--big { padding: 14px 32px; font-size: 15px; }
.btn--block { width: 100%; }

/* --------------------------- Ürün Detay Sayfası ---------------------- */
.product-detail { position: relative; margin: 0 calc(-1 * var(--sp-sm)); }
.product-detail__back {
    position: absolute;
    top: var(--sp-sm);
    left: var(--sp-sm);
    z-index: 5;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-rest);
}
.product-detail__back svg { width: 20px; height: 20px; }
/* Görselsiz üründe geri düğmesi başlığa binmesin diye üstten pay bırakılır */
.product-detail--no-media .product-detail__sheet { margin-top: 0; padding-top: calc(44px + var(--sp-md) + var(--sp-sm)); }
.product-detail__media { max-height: 440px; overflow: hidden; }
.product-detail__media img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; }
/* Fotoğrafsız ürün detayında logo yer tutucusu */
.product-detail__media--placeholder {
    display: grid;
    place-items: center;
    height: 280px;
    background: var(--surface-container);
}
.product-detail__media--placeholder img { width: 140px; height: 140px; object-fit: contain; }
.product-detail__sheet {
    position: relative;
    margin-top: -24px;
    background: var(--surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: var(--sp-md) var(--sp-sm) var(--sp-lg);
}
.product-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-sm); }
.product-detail__name {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--mango-deep);
}
.product-detail__category { color: var(--on-surface-variant); font-size: 14px; margin: 6px 0 0; }
.price-circle {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 76px; height: 76px;
    border-radius: var(--r-full);
    background: var(--olive-container);
    color: var(--on-olive-container);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}
.price-circle small { font-size: 13px; font-family: var(--font-body); font-weight: 700; }
.product-detail__subheading {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin: var(--sp-md) 0 6px;
}
.product-detail__desc { color: var(--on-surface); font-size: 16px; }
.product-detail__calories { color: var(--on-surface-variant); font-size: 14px; margin-top: var(--sp-xs); }
.product-detail__actions { margin-top: var(--sp-md); text-align: center; }

/* Alerjen bilgi paneli */
.allergen-panel {
    margin-top: var(--sp-md);
    background: var(--surface-container);
    border-radius: var(--r-xl);
    padding: var(--sp-md) var(--sp-sm);
    text-align: center;
}
.allergen-panel__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-surface);
}
.allergen-panel__lead {
    font-size: 14px;
    font-style: italic;
    color: var(--on-surface-variant);
    max-width: 420px;
    margin: var(--sp-xs) auto;
}
.allergen-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xs);
    margin: var(--sp-sm) 0;
}
.allergen-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-card);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}
.allergen-panel__note { font-size: 12px; font-weight: 600; color: var(--on-surface-variant); margin: 0; }

/* --------------------------- Alt Gezinme (Mobil) --------------------- */
.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%); /* Uygulama kabuğuyla aynı hizada, daima merkezde */
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 60;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px var(--sp-xs) calc(8px + env(safe-area-inset-bottom));
    background: var(--surface-container);
    border-top: 1px solid var(--surface-highest);
}
.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 18px;
    border-radius: var(--r-full);
    color: var(--on-surface-variant);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.bottom-nav__item svg { width: 22px; height: 22px; }
.bottom-nav__item.is-active { background: var(--mango); color: var(--on-mango); }

/* --------------------------- Hakkımızda / KVKK ----------------------- */
.about-hero { text-align: center; padding: var(--sp-lg) 0 var(--sp-xs); }
.about-hero__logo { margin: 0 auto; }
.about-hero__title { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--primary); margin-top: var(--sp-sm); }
.about-hero__slogan { font-style: italic; color: var(--on-surface-variant); font-size: 16px; }
.about-text { max-width: 680px; font-size: 16px; }
/* Mobil odaklı iletişim kartları: her ekranda tek kolon */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
    margin-top: var(--sp-sm);
}
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
    background: var(--surface-card);
    border-radius: var(--r-lg);
    padding: var(--sp-sm);
    box-shadow: var(--shadow-rest);
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}
.contact-card:hover { box-shadow: var(--shadow-hover); }
.contact-card svg { width: 24px; height: 24px; color: var(--mango-deep); flex: 0 0 auto; margin-top: 3px; }
.contact-card strong { display: block; font-size: 14px; color: var(--primary); }
.contact-card span { font-size: 15px; color: var(--on-surface); }

.legal h2 { font-family: var(--font-display); font-size: 20px; color: var(--primary); margin: var(--sp-md) 0 6px; }
.legal p { max-width: 760px; font-size: 15px; }

/* ------------------------------- Footer ------------------------------ */
.footer { background: var(--surface-high); margin-top: var(--sp-xl); }
/* Mobil odaklı footer: tüm bloklar tek kolon, merkezde hizalı */
.footer__inner {
    padding: var(--sp-lg) var(--sp-sm);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
    text-align: center;
}
.footer__brand img { margin: 0 auto; }
.footer__slogan { font-style: italic; color: var(--on-surface-variant); font-size: 14px; margin-top: var(--sp-xs); }
.footer__info { font-style: normal; font-size: 14px; color: var(--on-surface-variant); }
.footer__info a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer__info p { margin: 0 0 4px; }
.footer__links { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer__links a { font-size: 14px; font-weight: 600; color: var(--on-surface); text-decoration: none; }
.footer__links a:hover { color: var(--primary); }
.footer__credit {
    border-top: 1px solid var(--outline-variant);
    padding: var(--sp-sm);
    text-align: center;
    font-size: 12.5px;
}
.footer__credit a { color: var(--on-surface-variant); text-decoration: none; }
.footer__credit a:hover { color: var(--primary); }

/* ------------------------------ Boş Durum ---------------------------- */
.empty-state {
    text-align: center;
    color: var(--on-surface-variant);
    padding: var(--sp-lg) var(--sp-sm);
    font-size: 15px;
}
.empty-state a { color: var(--primary); font-weight: 700; }

/* =====================================================================
   YÖNETİM PANELİ
   ===================================================================== */
.admin-body { background: var(--surface); }
.admin-layout { display: flex; min-height: 100vh; }

/* Kenar çubuğu */
.admin-sidebar {
    flex: 0 0 240px;
    background: var(--sidebar);
    padding: var(--sp-md) var(--sp-sm);
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar__brand {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
    text-decoration: none;
}
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-sidebar__bottom { display: flex; flex-direction: column; gap: 4px; }
.admin-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--r-md);
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}
.admin-nav__item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.admin-nav__item:hover { background: var(--surface-high); }
.admin-nav__item.is-active { background: var(--olive-container); color: var(--on-olive-container); }

/* İçerik alanı */
.admin-content { flex: 1; padding: var(--sp-md) var(--sp-md) var(--sp-xl); max-width: 1100px; }
.admin-content__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--sp-md);
}

/* Özet kartları */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--sp-sm);
    margin-bottom: var(--sp-md);
}
.stat-card {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    background: var(--surface-card);
    border-radius: var(--r-lg);
    padding: var(--sp-sm) var(--sp-md);
    box-shadow: var(--shadow-rest);
}
.stat-card__icon {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--r-full);
    flex: 0 0 auto;
}
.stat-card__icon svg { width: 22px; height: 22px; }
.stat-card__icon--orange { background: var(--surface-container); color: var(--primary); }
.stat-card__icon--green  { background: var(--olive-container);   color: var(--on-olive-container); }
.stat-card__icon--red    { background: var(--error-container);   color: var(--on-error-container); }
.stat-card__icon--blue   { background: var(--info-container);    color: var(--on-info-container); }
.stat-card__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-surface-variant);
}
.stat-card__value { font-family: var(--font-display); font-size: 28px; font-weight: 700; }

/* Panel kartı */
.panel-card {
    background: var(--surface-card);
    border-radius: var(--r-lg);
    padding: var(--sp-md);
    box-shadow: var(--shadow-rest);
    margin-bottom: var(--sp-md);
}
.panel-card--narrow { max-width: 720px; }
.panel-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    margin-bottom: var(--sp-sm);
}
.panel-card__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.quick-actions { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-top: var(--sp-sm); }

/* Filtre çubuğu */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-bottom: var(--sp-sm); }
.filter-bar__search { flex: 1 1 220px; }
.filter-bar__select { flex: 0 1 220px; }

/* Veri tablosu (dikey çizgisiz, krem ayraçlı) */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 10px 12px;
    border-bottom: 2px solid var(--surface-high);
}
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--surface-high);
    vertical-align: middle;
    font-size: 14.5px;
}
.data-table__name { font-weight: 700; }
.data-table__muted { color: var(--on-surface-variant); }
.data-table__price { font-weight: 700; white-space: nowrap; }
.data-table__thumb {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    font-size: 22px;
}
.data-table__thumb--empty { background: var(--surface-container); }
.data-table__actions { white-space: nowrap; text-align: right; }
.data-table__actions .btn { margin-left: 6px; }
.inline-form { display: inline; }
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    padding-top: var(--sp-sm);
    font-size: 14px;
    color: var(--on-surface-variant);
}
.pagination { display: flex; align-items: center; gap: var(--sp-sm); }
.pagination a { color: var(--primary); font-weight: 700; text-decoration: none; }

/* Rozetler */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
}
.badge--green { background: var(--olive-container); color: var(--on-olive-container); }
.badge--gray  { background: var(--surface-highest); color: var(--on-surface-variant); }

/* Formlar */
.form-group { margin-bottom: var(--sp-sm); }
.form-group label, .form-group legend {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.form-hint { font-size: 12.5px; font-weight: 500; color: var(--on-surface-variant); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], select, textarea {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--on-surface);
    background: var(--surface-card);
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--r-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--mango);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}
input[type="file"] { padding: 8px; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: var(--sp-xs); margin-top: var(--sp-md); }
.form-current-image {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: var(--sp-xs);
}
.form-current-image img { border-radius: var(--r-md); object-fit: cover; }
fieldset.form-group { border: 0; padding: 0; margin: 0 0 var(--sp-sm); }

/* Onay kutusu çipleri (alerjen çoklu seçim) */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.checkbox-chip { position: relative; cursor: pointer; }
.checkbox-chip input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-chip span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--outline-variant);
    background: var(--surface-card);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.checkbox-chip input:checked + span {
    background: var(--olive-container);
    border-color: var(--olive);
    color: var(--on-olive-container);
}
.checkbox-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(84, 100, 55, 0.3); }

/* Aç/kapa anahtarı */
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
    position: relative;
    width: 44px; height: 26px;
    border-radius: var(--r-full);
    background: var(--surface-highest);
    transition: background 0.2s ease;
    flex: 0 0 auto;
}
.switch__track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    border-radius: var(--r-full);
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}
.switch input:checked + .switch__track { background: var(--olive); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }

/* Uyarı kutuları */
.alert {
    border-radius: var(--r-md);
    padding: 12px var(--sp-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--sp-sm);
}
.alert--success { background: var(--olive-container); color: var(--on-olive-container); }
.alert--error   { background: var(--error-container); color: var(--on-error-container); }
.alert--info    { background: var(--info-container);  color: var(--on-info-container); }
.alert__list { margin: 0; padding-left: 18px; }

/* İki sütunlu admin düzeni */
.admin-two-col {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--sp-md);
    align-items: start;
}
@media (max-width: 900px) { .admin-two-col { grid-template-columns: 1fr; } }

/* Sürükle-bırak sıralanabilir liste */
.sortable-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-xs); }
.sortable-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-card);
    border: 1.5px solid var(--surface-high);
    border-radius: var(--r-md);
    padding: 10px 12px;
    cursor: grab;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.sortable-list__item.is-dragging { opacity: 0.5; }
.sortable-list__item.is-over { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2); }
.sortable-list__handle { color: var(--outline); font-size: 18px; cursor: grab; }
.sortable-list__body { flex: 1; min-width: 0; }
.sortable-list__body strong { display: block; font-size: 15px; }
.sortable-list__body small { color: var(--on-surface-variant); font-size: 12.5px; }
.sortable-list__actions { display: flex; gap: 6px; flex: 0 0 auto; }

/* Giriş sayfası */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--surface);
    padding: var(--sp-sm);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface-card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-hover);
    padding: var(--sp-lg) var(--sp-md);
    text-align: center;
}
.login-card__logo { margin: 0 auto var(--sp-sm); }
.login-card__title { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--primary); }
.login-card__subtitle { color: var(--on-surface-variant); font-size: 14px; margin-bottom: var(--sp-md); }
.login-card form { text-align: left; }

/* QR kod sayfası */
.qr-page { max-width: 900px; }
.qr-page__heading {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}
.qr-page__lead {
    text-align: center;
    color: var(--on-surface-variant);
    max-width: 560px;
    margin: var(--sp-xs) auto var(--sp-md);
}
.qr-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    background: var(--surface-card);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-rest);
    padding: var(--sp-md);
    align-items: center;
}
@media (max-width: 760px) { .qr-card { grid-template-columns: 1fr; } }
.qr-card__preview { text-align: center; }
.qr-frame {
    display: inline-block;
    padding: var(--sp-sm);
    border: 2px solid var(--outline-variant);
    border-radius: var(--r-lg);
    background: #FFFFFF;
}
.qr-frame img { width: 100%; max-width: 280px; height: auto; }
.qr-frame--empty {
    display: grid;
    place-items: center;
    width: 280px;
    max-width: 100%;
    aspect-ratio: 1;
    color: var(--on-surface-variant);
    font-size: 14px;
}
.qr-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-xs);
    color: var(--olive);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.qr-card__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.qr-card__subtitle { color: var(--on-surface-variant); font-size: 14px; margin-bottom: var(--sp-sm); }
.qr-card__options .btn { margin-top: var(--sp-xs); }
.qr-card__options .form-hint { display: block; text-align: center; margin-top: 4px; }

/* Mobil admin: kenar çubuğu üste alınır */
@media (max-width: 820px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        position: static;
        height: auto;
        flex: none;
        flex-direction: column;
        padding: var(--sp-sm);
    }
    .admin-sidebar__nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
    }
    .admin-sidebar__bottom { flex-direction: row; }
    .admin-nav__item { white-space: nowrap; padding: 9px 12px; }
    .admin-content { padding: var(--sp-sm); }
}

/* Erişilebilirlik: hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
