/* =================================================================
   Weşanên Meyman — Anasayfa stili
   Sıcak kitapçı paleti (kahve / bordo / krem), aydınlık + karanlık tema.
   Tema <html data-theme="light|dark"> ile anahtarlanır.
   ================================================================= */

:root,
[data-theme="light"] {
    --bg:         #fbf6ef;   /* krem */
    --surface:    #ffffff;
    --surface-2:  #f5e9da;   /* sıcak panel */
    --ink:        #4a1b0c;   /* koyu kahve metin */
    --ink-soft:   #8a6a55;
    --accent:     #6b3410;   /* kahve vurgu */
    --accent-ink: #ffffff;
    --accent-2:   #9b2226;   /* bordo / kırmızı ikincil vurgu */
    --border:     #e7d8c6;
    --badge-bg:   #f1e2d1;
    --badge-ink:  #6b3410;
    --shadow:     0 14px 40px rgba(74, 27, 12, .12);
    --header-bg:  rgba(251, 246, 239, .92);
}

[data-theme="dark"] {
    /* Ferah dumanlı gri gece modu — kahve/bordo yok, yumuşak kırmızı aksan */
    --bg:         #292c32;   /* açık dumanlı gri zemin */
    --surface:    #33363d;   /* kartlar/yüzeyler (zeminden hafif açık) */
    --surface-2:  #33363d;   /* üst menü / footer */
    --ink:        #f2f3f6;   /* yumuşak açık metin */
    --ink-soft:   #b4b8c0;   /* ikincil açık gri metin */
    --accent:     #ff5a52;   /* yumuşak kırmızı vurgu (buton, aktif öğe) */
    --accent-ink: #292c32;   /* kırmızı buton üstü koyu metin */
    --accent-2:   #e84840;   /* vurgu hover / fiyat-rozet kırmızısı */
    --border:     #44474f;   /* kenarlık */
    --badge-bg:   #3a3d44;   /* ince hover zemini */
    --badge-ink:  #b4b8c0;
    --shadow:     0 14px 40px rgba(0, 0, 0, .35);
    --header-bg:  rgba(51, 54, 61, .92);  /* ≈ #33363d, sticky blur için hafif şeffaf */
}

* { box-sizing: border-box; }

html { color-scheme: light dark; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
    line-height: 1.5;
    transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3 { font-family: "Georgia", serif; }

a { color: inherit; }

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

/* ---------- Üst yardımcı çubuk (dil + tema) ---------- */
.topbar {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-family: system-ui, sans-serif;
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 38px; gap: 12px;
}
.lang-switch { display: flex; gap: 2px; flex-wrap: wrap; }
.lang-link {
    text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    color: var(--ink-soft); padding: 4px 7px; border-radius: 6px;
    transition: all .15s ease;
}
.lang-link:hover { color: var(--accent); background: var(--badge-bg); }
.lang-link.is-active { color: var(--accent-ink); background: var(--accent); }

.theme-toggle { display: flex; gap: 4px; }
.theme-btn {
    display: grid; place-items: center; width: 30px; height: 26px;
    border: 1px solid transparent; background: transparent; color: var(--ink-soft);
    border-radius: 6px; cursor: pointer; transition: all .15s ease;
}
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { color: var(--accent); background: var(--badge-bg); }
.theme-btn.is-active { color: var(--accent-ink); background: var(--accent); }

/* ---------- Ana üst menü ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    font-family: system-ui, sans-serif;
}
.nav { display: flex; gap: 22px; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-link {
    text-decoration: none; font-size: .95rem; font-weight: 600;
    color: var(--ink); padding: 6px 2px; position: relative;
    transition: color .15s ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
    background: var(--accent-2); transition: width .2s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

.logo { text-align: center; text-decoration: none; justify-self: center; }
.logo-text {
    font-family: "Georgia", serif; font-weight: 700; font-size: 1.5rem;
    color: var(--accent); letter-spacing: .01em; white-space: nowrap;
}
.logo-img { height: 52px; width: auto; max-width: 220px; display: block; object-fit: contain; }

.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.icon-bar { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    position: relative; display: grid; place-items: center;
    width: 40px; height: 40px; border: none; background: transparent;
    color: var(--ink); border-radius: 10px; cursor: pointer; transition: all .15s ease;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--badge-bg); color: var(--accent); }
.cart-badge {
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
    padding: 0 4px; border-radius: 999px; background: var(--accent-2); color: #fff;
    font-size: .68rem; font-weight: 700; display: grid; place-items: center;
    font-family: system-ui, sans-serif;
}

.hamburger { display: none; }

/* ---------- Mobil çekmece ---------- */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60;
}
.drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 86vw);
    background: var(--surface); border-left: 1px solid var(--border);
    z-index: 70; transform: translateX(100%); transition: transform .25s ease;
    display: flex; flex-direction: column; padding: 18px; gap: 14px;
    font-family: system-ui, sans-serif;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.drawer-link {
    text-decoration: none; font-weight: 600; color: var(--ink);
    padding: 12px 10px; border-radius: 10px; border-bottom: 1px solid var(--border);
}
.drawer-link:hover { background: var(--badge-bg); color: var(--accent); }
.drawer-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Ortak vurgu öğeleri ---------- */
.lang-badge {
    display: inline-block; font-family: system-ui, sans-serif;
    font-size: .64rem; font-weight: 800; letter-spacing: .05em;
    background: var(--accent-2); color: #fff; padding: 2px 6px; border-radius: 5px;
    vertical-align: middle;
}
.btn-cart {
    font-family: system-ui, sans-serif; font-size: .82rem; font-weight: 700;
    border: none; cursor: pointer; padding: 9px 14px; border-radius: 10px;
    background: var(--accent); color: var(--accent-ink); transition: all .15s ease;
}
.btn-cart:hover { background: var(--accent-2); }
.btn-cart.is-added { background: var(--accent-2); }

/* Kapak yer tutucu */
.cover-ph {
    width: 100%; height: 100%;
    background: linear-gradient(150deg, var(--c1), var(--c2));
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 12px; color: #fff7ee; position: relative;
}
.cover-ph::after {
    content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px;
    background: rgba(255,255,255,.25); border-radius: 2px;  /* kitap sırtı çizgisi */
}
.cover-ph-initials { font-family: "Georgia", serif; font-size: 1.6rem; font-weight: 700; opacity: .9; align-self: flex-end; }
.cover-ph-title { font-family: "Georgia", serif; font-size: .92rem; line-height: 1.25; opacity: .95; }
.cover-img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s ease; }

/* ---------- 1) SLIDER ---------- */
.slider { position: relative; margin: 28px auto; }
.slider-viewport { overflow: hidden; border-radius: 18px; }
.slider-track { display: flex; transition: transform .5s ease; }
.slide {
    min-width: 100%;
    display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    padding: 34px; box-shadow: var(--shadow);
}
.slide-cover {
    width: 220px; aspect-ratio: 5 / 7; height: auto; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,.28); background: var(--surface-2);
}
/* Slider kapağı alanı tam doldursun (boşluk kalmasın); kapak oranı zaten ~5:7 */
.slide-cover .cover-img { object-fit: cover; }
.slide-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.badge-new {
    font-family: system-ui, sans-serif; font-size: .68rem; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase;
    background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: 999px;
}
.slide-title { margin: 0 0 6px; font-size: 2rem; line-height: 1.15; color: var(--ink); }
.slide-author { margin: 0 0 22px; color: var(--ink-soft); font-size: 1.1rem; font-style: italic; }
.slide-foot { display: flex; align-items: center; gap: 18px; }
.slide-price { font-size: 1.5rem; font-weight: 700; color: var(--accent-2); font-family: system-ui, sans-serif; }
.slide-foot .btn-cart { font-size: .92rem; padding: 11px 20px; }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--accent); font-size: 1.7rem; line-height: 1;
    cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow);
    transition: all .15s ease; z-index: 2;
}
.slider-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.slider-arrow.prev { left: -10px; }
.slider-arrow.next { right: -10px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.slider-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--border); padding: 0; transition: all .2s ease;
}
.slider-dots button.is-active { background: var(--accent); width: 26px; border-radius: 6px; }

/* ---------- 2) 3 BÖLMELİ ŞERİT ---------- */
.strips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 44px auto; }
.strip {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
}
.strip-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.strip-title {
    margin: 0; font-size: 1.15rem; color: var(--ink);
    border-left: 4px solid var(--accent-2); padding-left: 10px;
}
.strip-all { font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.strip-all:hover { color: var(--accent-2); }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; }
.mini-cover { width: 48px; height: 66px; border-radius: 6px; overflow: hidden; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.18); background: var(--surface-2); }
.mini-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-title { font-weight: 700; font-size: .95rem; color: var(--ink); }
.mini-author { font-size: .82rem; color: var(--ink-soft); font-style: italic; }
.mini-price { font-family: system-ui, sans-serif; font-weight: 700; font-size: .88rem; color: var(--accent-2); }

/* ---------- 3) KATEGORİLER ---------- */
.categories { margin: 44px auto 60px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.chip {
    font-family: system-ui, sans-serif; font-size: .9rem; font-weight: 600;
    text-decoration: none; color: var(--ink);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 999px; transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
/* Kapak: tam görünür (kırpılmaz), oran gerçek kapağa yakın, zemin letterbox'ı kapatır */
.book-cover { position: relative; aspect-ratio: 7 / 10; overflow: hidden; background: var(--surface-2); }
.book-cover .lang-badge { position: absolute; top: 10px; left: 10px; }
.book-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.book-title { margin: 0; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.book-author { margin: 0; font-size: .85rem; color: var(--ink-soft); font-style: italic; }
.book-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book-price { font-family: system-ui, sans-serif; font-weight: 700; color: var(--accent-2); }

/* Kart hover hareketi — yalnızca hover destekli (masaüstü) cihazlarda */
@media (hover: hover) and (pointer: fine) {
    .book-card { transition: transform .22s ease, box-shadow .22s ease; }
    .book-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(74, 27, 12, .22); }
    [data-theme="dark"] .book-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
    .book-card:hover .cover-img { transform: scale(1.05); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 70px; font-family: system-ui, sans-serif; flex-wrap: wrap;
}
.footer-brand { font-family: "Georgia", serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.footer-tag { color: var(--ink-soft); font-size: .85rem; }

/* ---------- Listeleme sayfaları ---------- */
.listing { padding: 24px 20px 60px; }
.listing-title { font-size: 1.9rem; color: var(--ink); margin: 6px 0 20px; }
.listing-count { font-size: 1rem; color: var(--ink-soft); font-weight: 400; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; align-items: center; }
.filter-bar input[type=search], .filter-bar select {
    font-family: system-ui, sans-serif; font-size: .92rem; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.filter-bar input[type=search] { flex: 1; min-width: 200px; }
.filter-bar select { min-width: 150px; }
.filter-bar .btn-cart { padding: 10px 18px; }
.btn-clear {
    font-family: system-ui, sans-serif; font-size: .88rem; font-weight: 600; color: var(--ink-soft);
    text-decoration: none; padding: 10px 12px; border-radius: 10px;
}
.btn-clear:hover { color: var(--accent-2); }

.book-grid.wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.empty-state {
    text-align: center; color: var(--ink-soft); padding: 60px 20px; font-size: 1.05rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.pagination .pg {
    font-family: system-ui, sans-serif; font-weight: 700; text-decoration: none; color: var(--accent);
    border: 1px solid var(--border); padding: 9px 16px; border-radius: 10px; background: var(--surface);
}
.pagination .pg:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pg-info { font-family: system-ui, sans-serif; color: var(--ink-soft); font-size: .9rem; }

/* Kategori kartları */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-card {
    display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat-name { font-family: "Georgia", serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.cat-count { font-family: system-ui, sans-serif; font-size: .85rem; color: var(--accent-2); font-weight: 600; }

/* Yazar kartları */
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.author-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    transition: border-color .15s ease, transform .15s ease;
}
.author-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.author-info { display: flex; flex-direction: column; min-width: 0; }
.author-count { font-family: system-ui, sans-serif; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Stok durumu ---------- */
.btn-cart.is-disabled {
    background: var(--surface-2); color: var(--ink-soft); cursor: not-allowed;
    border: 1px solid var(--border); opacity: .75;
}
.btn-cart.is-disabled:hover { background: var(--surface-2); }
.stock-badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(20,20,20,.82); color: #fff; font-family: system-ui, sans-serif;
    font-size: .68rem; font-weight: 700; letter-spacing: .03em;
    padding: 4px 9px; border-radius: 6px;
}
.book-card.is-oos .book-cover { filter: grayscale(.5) opacity(.85); }
.low-stock { font-family: system-ui, sans-serif; font-size: .78rem; font-weight: 700; color: #c2410c; margin-left: 8px; }
[data-theme="dark"] .low-stock { color: #f0a868; }
.mini-oos { color: var(--accent-2); font-weight: 700; }
.oos-tag {
    font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 800;
    background: var(--accent-2); color: #fff; padding: 3px 10px; border-radius: 999px;
    vertical-align: middle; margin-left: 12px;
}

/* ---------- Arama çubuğu (header altında) ---------- */
.search-bar { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.search-bar-inner { display: flex; gap: 10px; padding: 14px 20px; align-items: center; }
.search-bar input[type="search"] {
    flex: 1; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--ink); font-family: system-ui, sans-serif; font-size: 1rem;
}
.search-bar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155,34,38,.12); }

/* ---------- Favori rozeti (header kalp) ---------- */
.fav-badge {
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
    padding: 0 4px; border-radius: 999px; background: var(--accent-2); color: #fff;
    font-size: .68rem; font-weight: 700; display: grid; place-items: center; font-family: system-ui, sans-serif;
}
.icon-fav { position: relative; }

/* ---------- Kart favori (kalp) butonu ---------- */
.book-card { position: relative; }
.card-fav {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    display: grid; place-items: center; background: rgba(255,255,255,.9); color: #8a6a55;
    box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: all .15s ease;
}
.card-fav svg { width: 18px; height: 18px; }
.card-fav:hover { color: var(--accent-2); transform: scale(1.1); }
.card-fav.is-active { background: var(--accent-2); color: #fff; }
.card-fav.is-active svg { fill: currentColor; }
[data-theme="dark"] .card-fav { background: rgba(40,30,22,.85); color: var(--ink-soft); }

/* ---------- Kart linkleri ---------- */
.slide-cover, .mini-cover, .book-cover { display: block; }
.book-title a, .slide-title a, .mini-title a { color: inherit; text-decoration: none; }
.book-title a:hover, .slide-title a:hover, .mini-title a:hover { color: var(--accent); }

/* ---------- Kitap detay sayfası ---------- */
.detail { padding: 24px 20px 60px; }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin: 8px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .6; }
.breadcrumb .bc-current { color: var(--ink); font-weight: 600; }

.detail-main { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.detail-cover {
    width: 320px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.28); background: var(--surface-2);
}
.detail-cover .cover-img, .detail-cover .cover-ph { width: 100%; height: 100%; }

.detail-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.cat-tag {
    font-family: system-ui, sans-serif; font-size: .76rem; font-weight: 700;
    background: var(--surface-2); color: var(--accent); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 999px;
}
.detail-title { margin: 0 0 8px; font-size: 2.1rem; line-height: 1.15; color: var(--ink); }
.detail-author { margin: 0 0 22px; font-size: 1.15rem; font-style: italic; color: var(--ink-soft); }
.detail-price { font-family: system-ui, sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent-2); margin-bottom: 20px; }

.detail-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.detail-actions .btn-cart { font-size: 1rem; padding: 13px 26px; }
.fav-btn {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft);
    cursor: pointer; transition: all .15s ease;
}
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.fav-btn.is-active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.fav-btn.is-active svg { fill: currentColor; }

.detail-h {
    font-size: 1.2rem; color: var(--ink); margin: 0 0 14px;
    border-left: 4px solid var(--accent-2); padding-left: 12px;
}
.tech-list { margin: 0; display: grid; gap: 0; }
.tech-row { display: grid; grid-template-columns: 160px 1fr; padding: 9px 0; border-bottom: 1px solid var(--border); }
.tech-row dt { color: var(--ink-soft); font-size: .9rem; }
.tech-row dd { margin: 0; color: var(--ink); font-weight: 600; }

.detail-section { margin-top: 40px; }
.detail-desc { color: var(--ink); line-height: 1.7; max-width: 760px; }

.author-box { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.3rem;
}
.author-name { font-size: 1.1rem; font-weight: 700; color: var(--ink); }

.not-found { padding: 80px 20px; display: grid; place-items: center; }
.nf-box { text-align: center; max-width: 480px; }
.nf-box h1 { font-size: 1.8rem; margin: 0 0 12px; }
.nf-box p { color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- Footer (sol marka | orta telif | sağ dengeleyici) ---------- */
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 72px; font-family: system-ui, sans-serif; }
.footer-left { display: flex; align-items: center; justify-content: flex-start; }
.footer-center { text-align: center; font-size: .85rem; color: var(--ink-soft); }
.footer-spacer { } /* sağ boş sütun: telifi gerçek ortada tutar */
.footer-brand { font-family: "Georgia", serif; font-weight: 700; color: var(--accent); font-size: 1.15rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: #25D366;
    box-shadow: 0 6px 20px rgba(0,0,0,.28);
    transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,211,102,.5); }
.wa-float:active { transform: scale(.97); }
[data-theme="dark"] .wa-float { box-shadow: 0 6px 20px rgba(0,0,0,.5); }
@media (max-width: 760px) {
    .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 29px; height: 29px; }
}

/* ---------- İçerik sayfaları (about/contact) ---------- */
.page { padding: 24px 20px 60px; max-width: 900px; }
.about-slogan { margin: 8px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.slogan-main { font-family: "Georgia", serif; font-size: 1.7rem; font-weight: 700; color: var(--accent); margin: 0; line-height: 1.25; }
.slogan-sub { font-size: 1rem; font-style: italic; color: var(--ink-soft); opacity: .85; margin: 6px 0 0; }
.page-lead { font-size: 1.1rem; color: var(--accent-2); font-weight: 600; margin: 6px 0 4px; }
.page-title { font-size: 2rem; color: var(--ink); margin: 0 0 24px; line-height: 1.2; }
.page-prose p { color: var(--ink); line-height: 1.8; margin: 0 0 16px; font-size: 1.02rem; }
.about-contact {
    margin-top: 30px; padding: 20px 22px; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 14px;
    display: flex; flex-wrap: wrap; gap: 22px; font-family: system-ui, sans-serif;
}
.ac-item { display: flex; flex-direction: column; gap: 2px; }
.ac-item a { color: var(--accent); text-decoration: none; }
.ac-label, .ci-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; font-family: system-ui, sans-serif; }
.ci-block p { margin: 4px 0 0; color: var(--ink); line-height: 1.6; }
.ci-block a { color: var(--accent); text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field > span { font-size: .85rem; font-weight: 600; color: var(--ink-soft); font-family: system-ui, sans-serif; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--ink); font-family: inherit; font-size: .95rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155,34,38,.12); }
.contact-form .btn-cart { align-self: flex-start; padding: 12px 28px; font-size: 1rem; }
.field-math input { max-width: 120px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-flash { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-family: system-ui, sans-serif; }
.flash-success { background: #e7f6ee; color: #138a4f; }
.flash-error { background: #fdecec; color: #c01820; }
[data-theme="dark"] .flash-success { background: #14321f; color: #6ee7a0; }
[data-theme="dark"] .flash-error { background: #3a1717; color: #f09a9a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .strips { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    /* Üst menü mobil: hamburger + ortada logo + sepet */
    .nav-left, .nav-right { display: none; }
    .header-right .icon-bar { gap: 2px; }
    .header-inner { grid-template-columns: auto 1fr auto; min-height: 64px; }
    .hamburger {
        display: grid; place-items: center; width: 42px; height: 42px;
        border: none; background: transparent; color: var(--ink); cursor: pointer; border-radius: 10px;
    }
    .hamburger svg { width: 24px; height: 24px; }
    .logo-text { font-size: 1.2rem; }

    .slide { grid-template-columns: 1fr; text-align: center; padding: 24px; gap: 18px; }
    .slide-cover { width: 160px; height: auto; margin: 0 auto; }
    .slide-title { font-size: 1.4rem; }
    .slide-badges, .slide-foot { justify-content: center; }
    .slider-arrow.prev { left: 2px; }
    .slider-arrow.next { right: 2px; }
}

@media (max-width: 460px) {
    .book-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding-top: 18px; padding-bottom: 18px; }
    .footer-left { justify-content: center; }
    .footer-spacer { display: none; }
    .detail-main { grid-template-columns: 1fr; gap: 24px; }
    .detail-cover { width: 220px; margin: 0 auto; }
    .detail-title { font-size: 1.6rem; }
    .tech-row { grid-template-columns: 130px 1fr; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .slider-track { transition: none; }
    * { scroll-behavior: auto; }
}
