/* =====================================================================
   Kitap Tanıtım Sitesi — Ana stiller
   Tüm renk/font/boyut değerleri admin'den gelen CSS değişkenlerinden okunur.
   (Değişkenler header.php içindeki <style> bloğunda tanımlanır.)
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand__text {
  font-family: var(--font-heading);
  color: var(--heading-color, inherit);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.post__body a, .product__desc a { color: var(--link-color, var(--accent)); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }

.section__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__sub { color: var(--muted); margin-top: 10px; }

/* ----------------------------- Butonlar ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--accent); color: var(--btn-text); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.16); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--btn-text); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: .9rem; }

/* ----------------------------- Üst menü ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 14px rgba(0,0,0,.04);
}
.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__text { font-size: 1.25rem; letter-spacing: .3px; }
.brand__img { height: calc(var(--header-height) - 24px); width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--nav-color, var(--text)); font-size: var(--nav-size, .95rem); font-family: var(--nav-font, var(--font-body)); opacity: .82; transition: opacity .15s ease; }
.site-nav a:hover { opacity: 1; }
.site-nav__cta {
  border: 1.5px solid var(--accent);
  border-radius: var(--btn-radius);
  padding: 8px 18px;
  opacity: 1 !important;
}
.site-nav__cta:hover { background: var(--accent); color: var(--btn-text); }

/* Language switcher */
/* Language dropdown (single button → menu) */
.lang-dd { position: relative; margin-left: 6px; }
.lang-dd__btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  padding: 6px 11px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer; line-height: 1;
  transition: border-color .15s ease;
}
.lang-dd__btn:hover { border-color: var(--accent); }
.lang-dd__globe { font-size: .95em; }
.lang-dd__caret { font-size: .7em; opacity: .6; }
.lang-dd__menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 118px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0,0,0,.13); padding: 6px; display: none; z-index: 60;
}
.lang-dd.is-open .lang-dd__menu { display: block; }
.lang-dd__menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; color: var(--text); opacity: .85; }
.lang-dd__menu a:hover { background: var(--bg); opacity: 1; }
.lang-dd__menu a.is-active { font-weight: 700; opacity: 1; background: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .25s; }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; padding: clamp(54px, 8vw, 116px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 22px;
}
.hero__eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, var(--fs-h1));
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero__sub { color: var(--muted); font-size: 1.1rem; max-width: 31em; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 3B kitap görseli + arka plan sahnesi */
.hero__media { display: flex; justify-content: center; perspective: 1600px; }
.hero__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.hero__halo {
  position: absolute;
  width: clamp(280px, 33vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27,27,26,.07), rgba(27,27,26,0) 72%);
  z-index: 0;
}
.hero__ring {
  position: absolute;
  width: clamp(320px, 39vw, 500px);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: .8;
  z-index: 0;
}
.book3d { position: relative; z-index: 1; perspective: 1600px; display: block; }
.book3d--link { cursor: pointer; text-decoration: none; }

/* ===== Auto-built hero mockup: closed book (back) + open book (front) ===== */
.hmk {
  position: relative;
  z-index: 1;
  width: min(720px, 100vw);
  margin: 0 auto;
  aspect-ratio: 6 / 5;
  perspective: 1400px;
  animation: hmkFloat 7s ease-in-out infinite;
}
.hmk--closed { aspect-ratio: 4 / 5; }
@keyframes hmkFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hmk__surface {
  position: absolute; left: 50%; bottom: 2%;
  width: 92%; height: 13%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(20,18,15,.38), rgba(20,18,15,0) 68%);
  filter: blur(9px);
  z-index: 0;
}

/* --- closed book (FRONT, centered above the open book) — real 3D slab --- */
.hmk__closed {
  position: absolute; left: 50%; top: 4%;
  width: clamp(180px, 28vw, 250px);
  aspect-ratio: 600 / 820;
  transform: translateX(-50%) rotateY(-28deg) rotateX(7deg);
  transform-style: preserve-3d;
  border-radius: 4px 8px 8px 4px;
  z-index: 3;
}
/* back cover: gives the book true depth and carries the cast shadow */
.hmk__closed::after {
  content: ""; position: absolute; inset: 0;
  transform: translateZ(-32px);
  background: linear-gradient(115deg, #34312c, #15140f);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 28px 40px 58px rgba(0,0,0,.40);
}
/* glossy light sweep across the front cover */
.hmk__closed::before {
  content: ""; position: absolute; inset: 0; z-index: 4;
  transform: translateZ(1px);
  background: linear-gradient(108deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.07) 25%, rgba(255,255,255,0) 45%, rgba(0,0,0,.08) 80%, rgba(0,0,0,.16) 100%);
  border-radius: 4px 8px 8px 4px;
  pointer-events: none;
}
.hmk--closed .hmk__closed { position: relative; left: auto; top: auto; margin: 6% auto 0; width: min(300px, 72vw); transform: rotateY(-28deg) rotateX(7deg); }
.hmk--full .hmk__closed { animation: hmkBookFloat 6s ease-in-out infinite; }
.hmk__cover { position: absolute; inset: 0; border-radius: 4px 8px 8px 4px; transform-style: preserve-3d; }
.hmk__cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px 8px 8px 4px; }
/* page block on the fore-edge (right side) — real 3D thickness */
.hmk__cover::after {
  content: ""; position: absolute; top: 1%; right: 0; width: 32px; height: 98%;
  background: repeating-linear-gradient(90deg, #f3ecdf, #f3ecdf 1px, #d5ccba 2px, #efe7d8 3px);
  box-shadow: inset 0 0 16px rgba(0,0,0,.15);
  transform: translateX(16px) rotateY(90deg); transform-origin: right center; border-radius: 2px;
}
/* spine shadow on the left edge */
.hmk__cover::before {
  content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 100%; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,0)); border-radius: 4px 0 0 4px;
}
/* top page-block edge — visible because the book tips slightly back */
.hmk__pagestack {
  display: block; position: absolute; top: 0; left: 2%; width: 96%; height: 32px;
  background: linear-gradient(180deg, #f7f1e5, #d9d0bd);
  transform: translateY(-16px) rotateX(90deg); transform-origin: center top;
  border-radius: 2px;
}
@keyframes hmkBookFloat {
  0%,100% { transform: translateX(-50%) rotateY(-28deg) rotateX(7deg) translateY(0); }
  50%     { transform: translateX(-50%) rotateY(-28deg) rotateX(7deg) translateY(-9px); }
}

/* --- open book (FRONT-RIGHT, lying tilted on the surface) — no overlap with closed --- */
.hmk__open {
  position: absolute;
  left: 50%; bottom: 4%;
  transform: translateX(-50%);
  transform-style: preserve-3d; /* lets the page spread inherit real perspective */
  z-index: 1;
}
.hmk__pages {
  position: relative;
  display: flex;
  transform: rotateX(55deg) rotateZ(-16deg);
  transform-style: preserve-3d; /* no filter here — filters flatten 3D */
}
/* hard cover sticking out underneath the spread */
.hmk__pages::before {
  content: ""; position: absolute; inset: -7px -11px -12px;
  transform: translateZ(-18px);
  background: linear-gradient(100deg, #efe8da, #cfc5ae);
  border-radius: 10px;
  box-shadow: 0 26px 38px rgba(0,0,0,.35);
}
/* block of pages between the cover and the open spread */
.hmk__pages::after {
  content: ""; position: absolute; inset: -2px -5px -7px;
  transform: translateZ(-9px);
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,0) 40%),
    repeating-linear-gradient(180deg, #fdfaf2 0 2px, #e7e0cf 2px 3px);
  border-radius: 7px;
}
.hmk__page {
  position: relative;
  width: clamp(170px, 25vw, 230px);
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
}
.hmk__page img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* paper lighting painted over the artwork: gutter + fore-edge shading */
.hmk__page::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hmk__page--l {
  transform-origin: right center; transform: rotateY(14deg);
  border-radius: 9px 0 0 6px;
}
.hmk__page--l::after {
  background: linear-gradient(to right,
    rgba(0,0,0,.08), rgba(255,255,255,.12) 6%, rgba(0,0,0,0) 15%,
    rgba(0,0,0,0) 70%, rgba(0,0,0,.10) 90%, rgba(0,0,0,.34) 99%, rgba(0,0,0,.45) 100%);
}
.hmk__page--r {
  transform-origin: left center; transform: rotateY(-14deg);
  border-radius: 0 9px 6px 0;
}
.hmk__page--r::after {
  background: linear-gradient(to left,
    rgba(0,0,0,.08), rgba(255,255,255,.12) 6%, rgba(0,0,0,0) 15%,
    rgba(0,0,0,0) 70%, rgba(0,0,0,.10) 90%, rgba(0,0,0,.34) 99%, rgba(0,0,0,.45) 100%);
}
.hmk__leaves { display: none; }

@media (max-width: 700px) {
  .hmk { width: min(460px, 96vw); aspect-ratio: 5 / 4; }
  .hmk__closed { width: clamp(140px, 34vw, 175px); }
  .hmk__page { width: clamp(120px, 30vw, 160px); }
}

/* Hero rotating mockup carousel */
.hero-carousel { position: relative; width: min(440px, 88vw); margin: 0 auto; }
.hero-carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-carousel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-carousel__slide.is-active { opacity: 1; }
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card-bg); color: var(--text);
  font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.hero-carousel__arrow:hover { background: var(--accent); color: var(--btn-text); border-color: var(--accent); }
.hero-carousel__arrow--prev { left: -6px; }
.hero-carousel__arrow--next { right: -6px; }
.hero-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hero-carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--border); transition: background-color .2s ease, transform .2s ease;
}
.hero-carousel__dot.is-active { background: var(--accent); transform: scale(1.25); }

/* ===== Hero mockup SCENES — your book cover, in animated modern mockup scenes ===== */
.hero-carousel--mockup { width: min(440px, 90vw); }
.hero-carousel__viewport--mockup {
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(0,0,0,.16);
  perspective: 1500px;
}
.hero-carousel__viewport--mockup .hero-carousel__slide { display: block; }

/* The book object, reused across scenes — small enough to sit fully inside the card */
.scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; perspective: 1300px; }
.scene__book { position: relative; width: 37%; aspect-ratio: 600 / 820; z-index: 3; }
.scene__book img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px 5px 5px 2px; }
.scene__book::before { /* spine sheen */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10%; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.26), transparent); border-radius: 2px 0 0 2px;
}
/* soft contact shadow on the surface (light scenes) */
.scene--studio::after, .scene--desk::after, .scene--duo::after {
  content: ""; position: absolute; left: 50%; top: 70%; width: 30%; height: 16px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0,0,0,.30), transparent 72%); filter: blur(5px); z-index: 1;
  animation: scContact 6s ease-in-out infinite;
}
.scene--duo::after { width: 44%; }
@keyframes scContact { 0%,100%{opacity:.85} 50%{opacity:.58} }

/* 1) Studio — seamless light backdrop, book standing on the surface */
.scene--studio { background: linear-gradient(165deg, #f4eee3 0%, #ece4d6 56%, #ddd3c1 100%); }
.scene--studio .scene__book {
  box-shadow: 14px 20px 36px rgba(0,0,0,.22);
  transform: rotateY(-15deg) rotateX(2deg) translateY(-3%);
  animation: scStudio 6s ease-in-out infinite;
}
@keyframes scStudio { 0%,100%{transform:rotateY(-15deg) rotateX(2deg) translateY(-3%)} 50%{transform:rotateY(-15deg) rotateX(2deg) translateY(-6%)} }

/* 2) Desk — wall + table surface, book standing on the desk */
.scene--desk { background: linear-gradient(180deg, #efe7da 0%, #efe7da 57%, #d7cab4 57%, #ccbda2 100%); }
.scene--desk .scene__book {
  box-shadow: 24px 26px 40px rgba(0,0,0,.26);
  transform: rotateY(-20deg) rotateX(3deg) translateY(-1%);
  animation: scDesk 7s ease-in-out infinite;
}
@keyframes scDesk { 0%,100%{transform:rotateY(-20deg) rotateX(3deg) translateY(-1%)} 50%{transform:rotateY(-18deg) rotateX(3deg) translateY(-4%)} }

/* 3) Pedestal — dark dramatic scene, spotlight + plinth */
.scene--pedestal { background: radial-gradient(78% 62% at 50% 42%, #2d2a26 0%, #1a1816 68%, #121110 100%); }
.scene--pedestal .scene__spot {
  position: absolute; left: 50%; top: 22%; width: 64%; height: 54%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245,206,22,.18), transparent 70%); filter: blur(8px); z-index: 1;
  animation: scSpot 5s ease-in-out infinite;
}
.scene--pedestal .scene__plinth {
  position: absolute; left: 50%; bottom: 17%; width: 50%; height: 46px; transform: translateX(-50%);
  background: linear-gradient(180deg,#3b3833,#211f1d); border-radius: 4px; box-shadow: 0 18px 30px rgba(0,0,0,.55); z-index: 2;
}
.scene--pedestal .scene__plinth::before { content:""; position:absolute; inset:0 0 auto 0; height:8px; background:#48433b; border-radius:4px 4px 0 0; }
.scene--pedestal .scene__book {
  box-shadow: 12px 20px 40px rgba(0,0,0,.6);
  transform: translateY(6%) rotateY(-12deg) rotateX(3deg);
  animation: scPed 6s ease-in-out infinite;
}
@keyframes scSpot { 0%,100%{opacity:.6} 50%{opacity:1} }
@keyframes scPed { 0%,100%{transform:translateY(6%) rotateY(-12deg) rotateX(3deg)} 50%{transform:translateY(4%) rotateY(-12deg) rotateX(3deg)} }

/* 4) Duo — two books standing/leaning on a surface */
.scene--duo { background: linear-gradient(180deg, #f1ebe0 0%, #f1ebe0 60%, #ddd3c2 60%, #d0c5af 100%); }
.scene--duo .scene__book { width: 31%; }
.scene--duo .scene__book--back {
  z-index: 2; box-shadow: 12px 18px 30px rgba(0,0,0,.20);
  transform: rotate(-5deg) rotateY(10deg) translateY(-2%);
  animation: scDuoBack 7s ease-in-out infinite;
}
.scene--duo .scene__book--front {
  margin-left: -10%; z-index: 3; box-shadow: 16px 20px 34px rgba(0,0,0,.26);
  transform: rotate(5deg) rotateY(-10deg) translateY(3%);
  animation: scDuoFront 7s ease-in-out infinite;
}
@keyframes scDuoBack { 0%,100%{transform:rotate(-5deg) rotateY(10deg) translateY(-2%)} 50%{transform:rotate(-5deg) rotateY(10deg) translateY(-5%)} }
@keyframes scDuoFront { 0%,100%{transform:rotate(5deg) rotateY(-10deg) translateY(3%)} 50%{transform:rotate(5deg) rotateY(-10deg) translateY(0%)} }

@media (prefers-reduced-motion: reduce) {
  .scene__book, .scene--pedestal .scene__spot, .scene--studio::after, .scene--desk::after, .scene--duo::after { animation: none !important; }
}
/* ===== Hero book scene — closed book (cover) + open book (spread), from 3 uploaded images ===== */
.bookscene {
  position: relative;
  width: min(480px, 94vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  perspective: 1600px;
  perspective-origin: 50% 32%;
}
.bookscene__item { position: absolute; transform-style: preserve-3d; }
.bookscene__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* OPEN book — back / upper-right, lying open on the surface */
.bookscene__open {
  top: 3%; right: 1%; width: 62%;
  display: flex;
  transform: rotateX(52deg) rotateZ(-23deg);
  filter: drop-shadow(0 26px 20px rgba(0,0,0,.22));
}
.bookscene__page { position: relative; width: 50%; aspect-ratio: 600 / 820; background: #fbf8f2; }
.bookscene__page--l { border-radius: 3px 0 0 3px; box-shadow: inset -16px 0 24px -12px rgba(0,0,0,.26); }
.bookscene__page--r { border-radius: 0 3px 3px 0; box-shadow: inset 16px 0 24px -12px rgba(0,0,0,.26); }
.bookscene__page--l img { border-radius: 3px 0 0 3px; }
.bookscene__page--r img { border-radius: 0 3px 3px 0; }

/* CLOSED book — front / lower-left, cover up, with page-block thickness */
.bookscene__closed {
  bottom: 1%; left: 2%; width: 41%; aspect-ratio: 600 / 820;
  transform: rotateX(52deg) rotateZ(-23deg);
  border-radius: 3px;
  box-shadow: 0 30px 26px rgba(0,0,0,.30);
}
.bookscene__closed img { border-radius: 3px; }
.bookscene__closed::after { /* page block thickness on the right + bottom edges */
  content: ""; position: absolute; right: -7px; top: 3px; bottom: 3px; width: 7px;
  background: repeating-linear-gradient(0deg,#efe9df,#efe9df 1px,#d3cab9 2px,#efe9df 3px);
  border-radius: 0 2px 2px 0;
}
.bookscene__closed::before { /* spine shadow on the left edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10%; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.22), transparent); border-radius: 3px 0 0 3px;
}
@media (max-width: 860px) { .bookscene { width: min(380px, 90vw); } }

.book3d__cover {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 600 / 820;
  transform: rotateY(-24deg) rotateX(5deg);
  transform-style: preserve-3d;
  border-radius: 4px 8px 8px 4px;
  box-shadow: 22px 30px 55px rgba(0,0,0,.22);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  animation: bookFloat 6s ease-in-out infinite;
}
.book3d__cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px 8px 8px 4px; }
/* Sayfa kalınlığı efekti */
.book3d__cover::after {
  content: "";
  position: absolute;
  top: 2%;
  right: 0;
  width: 26px;
  height: 96%;
  background: repeating-linear-gradient(90deg, #efe9df, #efe9df 1px, #d9d2c5 2px, #efe9df 3px);
  transform: translateX(13px) rotateY(90deg);
  transform-origin: right center;
  border-radius: 2px;
}
/* Sırt gölgesi */
.book3d__cover::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0));
  z-index: 2;
  border-radius: 4px 0 0 4px;
}
.book3d:hover .book3d__cover { transform: rotateY(-10deg) rotateX(2deg); animation-play-state: paused; }

@keyframes bookFloat {
  0%, 100% { transform: rotateY(-24deg) rotateX(5deg) translateY(0); }
  50%      { transform: rotateY(-24deg) rotateX(5deg) translateY(-14px); }
}

/* Aşağı kaydır göstergesi */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--muted);
}
.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--muted);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--muted);
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  35%  { opacity: 1; }
  70%  { opacity: 1; transform: translate(-50%, 9px); }
  100% { opacity: 0; transform: translate(-50%, 9px); }
}

/* ----------------------------- Hakkında ----------------------------- */
.about__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about__text { color: var(--muted); font-size: 1.1rem; margin: 18px 0 28px; }

/* ----------------------------- Yazar Hakkında ----------------------------- */
.author__inner {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.author__photo { position: relative; }
.author__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 22px 46px rgba(0,0,0,.14);
  position: relative;
  z-index: 1;
}
.author__photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 0;
}
.author__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.author__name { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.author__role {
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  margin: 6px 0 0;
}
.author__text { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

/* ----------------------------- Koleksiyon ----------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}
/* Featured posts on the home page: always 3, evenly centered (not left-skewed) */
#featured .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin: 0 auto; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0,0,0,.10); }
.card__media { aspect-ratio: 3 / 4; overflow: hidden; background: #ece6dc; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 18px 20px 22px; }
.card__title { font-size: 1.2rem; }
.card__sub { color: var(--muted); font-size: .92rem; margin: 6px 0 0; }
.card__price { display: inline-block; margin-top: 12px; font-weight: 600; }

/* ----------------------------- Blog grid (professional listing) ----------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 30px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(0,0,0,.10); }
.post-card__media { aspect-ratio: 16 / 11; overflow: hidden; background: #ece6dc; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: .74rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 11px; }
.post-card__title { font-size: 1.32rem; line-height: 1.25; margin: 0 0 11px; }
.post-card__excerpt { color: var(--muted); font-size: .96rem; line-height: 1.65; margin: 0 0 18px; }
.post-card__more { margin-top: auto; font-size: .86rem; font-weight: 600; letter-spacing: .3px; color: var(--link-color, var(--accent)); }
.post-card:hover .post-card__more { text-decoration: underline; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* Koleksiyon boş durumu ("yakında") */
.collection__empty {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 54px 32px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--muted);
}
.collection__empty-icon {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  opacity: .55;
  margin-bottom: 12px;
}
.collection__empty p { margin: 0; font-size: 1.06rem; }

/* ----------------------------- Email signup ----------------------------- */
.subscribe__box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--ff-bg, var(--card-bg));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
}
.subscribe__title {
  font-family: var(--ff-heading-font, var(--font-heading));
  color: var(--ff-heading-color, var(--heading-color, var(--text)));
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.subscribe__text {
  font-family: var(--ff-text-font, var(--font-body));
  color: var(--ff-text-color, var(--muted));
  font-size: 1.08rem;
  max-width: 46em;
  margin: 14px auto 28px;
}
.subscribe__form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.subscribe__input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--btn-radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
}
.subscribe__input:focus { outline: none; border-color: var(--accent); }
.subscribe__btn { white-space: nowrap; background: var(--ff-btn-bg, var(--accent)); color: var(--ff-btn-text, var(--btn-text)); border-color: var(--ff-btn-bg, var(--accent)); }
.subscribe__msg {
  max-width: 46em;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 1.02rem;
}
.subscribe__msg--ok  { background: #eaf7ee; border: 1px solid #bfe6cb; color: #1c6b35; }
.subscribe__msg--err { background: #fdecea; border: 1px solid #f4c7c0; color: #a02617; }

/* ----------------------------- Contact ----------------------------- */
.contact.section { padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(40px, 5vw, 60px); }
.contact__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.contact__text { color: var(--muted); font-size: 1.1rem; margin: 16px auto 30px; max-width: 40em; }
.contact__methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact__method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1.5px solid var(--border);
  border-radius: var(--btn-radius);
  font-weight: 500;
  font-size: .98rem;
  color: var(--text);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.contact__method:hover { background: var(--accent); color: var(--btn-text); border-color: var(--accent); transform: translateY(-2px); }
.contact__method svg { width: 19px; height: 19px; }

/* Social icon buttons (footer + contact) */
.social-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--btn-text);
  border: 1px solid var(--accent);
  transition: transform .18s ease, opacity .18s ease;
}
.social-ico:hover { transform: translateY(-2px); opacity: .85; }
.social-ico svg { width: 20px; height: 20px; display: block; }
/* Placeholder icon (no link set yet) — same dark look, just not clickable */
.social-ico--empty { cursor: default; }
.social-ico--empty:hover { transform: none; opacity: 1; }

.contact__social { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }

/* Look Inside (inline book detail) */
.review .product__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Flipbook (JS reveals it; the gallery is the no-JS fallback) */
.flipbook { display: none; position: relative; margin: 0 auto; touch-action: pan-y; }
.product__gallery.is-flip .gallery__main { display: none; }
/* two-page spread, kept compact and side-by-side with the description */
.product__gallery.is-flip .flipbook { max-width: 460px; }
.product__gallery.is-flip .gallery__thumbs { justify-content: center; margin-top: 16px; }
/* static ground shadow behind the open book (3D feel, no per-frame cost) */
.flipbook::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: 7%; bottom: 2%;
  box-shadow: 0 26px 36px rgba(0,0,0,.22); border-radius: 3px; z-index: -1;
}
.flip-page { background: var(--card-bg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.flip-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-page--soft { background: var(--card-bg); }
/* page-block thickness on the outer edges of the open book */
.flipbook .stf__parent { overflow: visible; }
.flipbook .stf__parent::before, .flipbook .stf__parent::after {
  content: ""; position: absolute; top: 3%; height: 94%; width: 6px; z-index: 0;
  background: repeating-linear-gradient(0deg, #efe9df, #efe9df 1px, #d3cab9 2px, #efe9df 3px);
}
.flipbook .stf__parent::before { left: -5px; border-radius: 2px 0 0 2px; }
.flipbook .stf__parent::after  { right: -5px; border-radius: 0 2px 2px 0; }

/* ----------------------------- Blog post ----------------------------- */
.post__cta { margin: 26px 0 6px; }
.post__inner { max-width: 760px; margin: 0 auto; }
.post__title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 24px; }
.post__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; border: 1px solid var(--border); }
.post__cover img { width: 100%; display: block; }
.post__body { color: var(--text); font-size: 1.08rem; line-height: 1.85; }
.post__gallery { display: grid; gap: 16px; margin-top: 30px; }
.post__gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }

/* ----------------------------- Ürün detay ----------------------------- */
.product__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.gallery__main {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery__thumb {
  width: 72px; height: 96px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: border-color .2s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }

.product__back { color: var(--muted); font-size: .92rem; display: inline-block; margin-bottom: 16px; }
.product__title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.product__subtitle { color: var(--muted); font-size: 1.15rem; margin: 10px 0 0; }
.product__price { font-size: 1.4rem; font-weight: 600; margin: 20px 0; }
.product__desc { color: var(--text); margin: 22px 0 30px; }
.product__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----------------------------- Footer (minimal, thin) ----------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: var(--section-gap); padding: 30px 0; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.site-footer__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: .92rem; transition: color .2s ease; }
.site-footer__mail:hover { color: var(--accent); }
.site-footer__mail svg { width: 18px; height: 18px; }
.site-footer__social { display: inline-flex; gap: 12px; }
.site-footer__copy { color: var(--muted); font-size: .85rem; text-align: center; margin: 0; }

/* ----------------------------- Scroll animasyonu ----------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 860px) {
  .hero { padding: 28px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero__text { order: 1; }                     /* title + buttons visible first */
  .hero__media { order: 2; margin-top: 22px; margin-bottom: 0; }
  .hero__sub { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero__actions { justify-content: center; }
  .hero__scroll { display: none; }
  /* smaller book on phones so the whole hero (and buttons) fit on screen */
  .hero__stage { padding: 8px 0; }
  .book3d__cover { width: min(230px, 58vw); }
  .hero__halo { width: clamp(220px, 60vw, 300px); }
  .hero__ring { display: none; }
  .product__inner { grid-template-columns: 1fr; }
  /* Look Inside thumbnails: tidy horizontal scroll strip instead of wrapping rows */
  .product__gallery, .gallery { min-width: 0; }
  .gallery__thumbs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 6px; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
  .gallery__thumb { flex: 0 0 auto; }

  .author__inner { grid-template-columns: 1fr; text-align: center; max-width: 520px; margin: 0 auto; }
  .author__photo { max-width: 360px; margin: 0 auto; }
  .author__photo::before { inset: 16px -16px -16px 16px; }
  .author__text { text-align: left; }

  .subscribe__form { flex-direction: column; }
  .subscribe__btn { width: 100%; }

  #featured .cards { grid-template-columns: 1fr; max-width: 400px; }

  .site-footer__top { grid-template-columns: 1fr; gap: 34px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .book3d__cover { animation: none; }
  .hero-carousel__slide { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
