/* =====================================================================
   Ganeşa Yayınevi — tasarım sistemi: temel, başlık, mega menü, yan paneller, ana sayfa
   Sayfa bileşenleri (formlar, katalog, ürün, sepet, ödeme, hesap) pages.css içindedir.
   Renkler logodan gelir: güneş #F2A900, mürekkep #282828.
   Lacivert (lapis) kadim gökyüzü; kapaklar renginin geri kalanını taşır.
   Hareket: yalnızca transform / opacity (+ clip-path); azaltılmış harekete saygı.
   ===================================================================== */

:root {
  /* renk */
  --sun: #F2A900;
  --sun-600: #DB9900;
  --sun-100: #FFF3D1;
  --sun-ink: #7A5300;
  --ink: #282828;
  --ink-2: #474A55;
  --muted: #6A6E7C;
  --line: #E4E5EC;
  --paper: #FFFFFF;
  --lapis: #1F2A5C;
  --lapis-900: #161E44;
  --lapis-100: #E9EBF4;
  --lapis-50: #F3F4F9;
  --kids-bg: #E2F2FB;
  --kids-ink: #0C4F78;
  --kids-btn: #0E6AA3;
  --kids-accent: #A84A00;

  /* yazı */
  --font-book: "Literata", Georgia, "Times New Roman", serif;
  --font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ölçü */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 3rem + 4vw, 112px);
  --radius-panel: 32px;
  --header-h: 80px;

  /* kitaplar kağıttan nesnelerdir: lacivert tonlu katmanlı gölge */
  --shadow-book:
    0 1px 1px rgb(22 30 68 / .10),
    0 6px 10px -4px rgb(22 30 68 / .18),
    0 18px 30px -14px rgb(22 30 68 / .30);

  /* hareket */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --focus: var(--lapis);
  --line-2: #CFD2DD;
  --ok: #1E7A4C;
  --ok-bg: #E6F4EC;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --radius: 14px;
  --radius-lg: 22px;
  --bottom-nav-h: 0px;
}

/* ------------------------------------------------------------- temel */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.no-scroll { overflow: hidden; padding-right: var(--sbw, 0px); }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--sun); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, figure, address { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
kbd { font-family: var(--font-ui); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero, .festival, .site-footer, .announce, .toasts, .side-feature { --focus: var(--sun); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; z-index: 100; left: 16px; top: -64px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 600;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }

/* ----------------------------------------------------------- düğmeler */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  white-space: nowrap; text-align: center;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { border: 1.5px solid var(--line-2); color: var(--ink); background: var(--paper); }
.hero .btn--line, .festival .btn--line, .on-dark .btn--line { border-color: rgb(255 255 255 / .38); color: var(--paper); background: transparent; }
.btn--kids { background: var(--kids-btn); color: #fff; }
.btn--add {
  width: 100%; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--ink); font-size: .9375rem;
}
.btn--add.btn--sm { min-height: 36px; font-size: .875rem; }
.btn[data-state="added"] .icon { width: 18px; height: 18px; }
.btn--add[data-state="added"] { background: var(--ink); color: var(--paper); }
.btn--sun[data-state="added"] { background: var(--paper); }

@media (hover: hover) and (pointer: fine) {
  .btn--sun:hover { background: var(--sun-600); }
  .btn--ink:hover { background: var(--lapis); }
  .btn--line:hover { border-color: var(--ink); }
  .hero .btn--line:hover, .festival .btn--line:hover, .on-dark .btn--line:hover { border-color: var(--paper); background: rgb(255 255 255 / .06); }
  .btn--kids:hover { background: var(--kids-ink); }
  .btn--add:hover { background: var(--ink); color: var(--paper); }
}

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; color: var(--ink);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--lapis-50); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  transition: border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); color: var(--ink); } }

/* ------------------------------------------------------------- duyuru */

.announce { background: var(--lapis-900); color: rgb(255 255 255 / .86); font-size: .875rem; }
.announce__text { padding-block: 10px; text-align: center; text-wrap: balance; }
.announce a { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }

/* -------------------------------------------------------------- başlık */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / .96);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow 200ms ease;
}
.site-header.is-scrolled:not(.mega-open) { box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgb(22 30 68 / .35); }

.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav tools";
  align-items: center;
  column-gap: 24px;
  min-height: var(--header-h);
}
.header__row .menu-btn { grid-area: menu; display: none; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { width: auto; height: 56px; }
.brand__type { display: flex; flex-direction: column; gap: 5px; }
.brand__word { width: auto; height: 21px; }
.brand__sub { font-size: .8125rem; font-weight: 500; line-height: 1; color: var(--muted); padding-left: 1px; }

.nav { grid-area: nav; justify-self: center; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  display: flex; align-items: center; gap: 2px;
  padding: 10px 12px; border-radius: 10px;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color 150ms ease;
}
.nav__link[aria-expanded="true"] { color: var(--ink); }
.nav__chev { width: 16px; height: 16px; color: var(--muted); transition: transform 200ms var(--ease-out); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--ink); } }

/* üzerinde durulan menü öğesinin altında kayan güneş çizgisi */
.nav__indicator {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: 1px; height: 2px; background: var(--sun);
  transform-origin: 0 0; opacity: 0; pointer-events: none;
  transition: transform 240ms var(--ease-out), opacity 160ms ease;
}

.header__tools { grid-area: tools; display: flex; align-items: center; gap: 6px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 10px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--lapis-50);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  transition: background-color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.search-btn:active { transform: scale(0.97); }
.search-btn[aria-expanded="true"] { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.search-btn__label { min-width: 96px; }
.search-btn__kbd, .search-field__esc {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  font-size: .75rem; font-weight: 600; color: var(--muted);
}
@media (hover: hover) and (pointer: fine) { .search-btn:hover { border-color: var(--ink-2); } }
@media (hover: none) { .search-btn__kbd, .search-field__esc { display: none; } }

.cart__count {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  font-size: .6875rem; font-weight: 700; line-height: 19px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart__count.is-bumped { animation: bump 340ms var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.35); } }

/* ----------------------------------------------------------- mega menü */

.mega__bg {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  height: 0; opacity: 0; pointer-events: none;
  background: var(--paper);
  box-shadow: inset 0 1px 0 var(--line), 0 32px 64px -32px rgb(22 30 68 / .4);
  /* panel değişince yükseklik yeni içeriğe uyar; mutlak konumlu olduğu için sayfa akışını etkilemez */
  transition: height 300ms var(--ease-in-out), opacity 200ms ease;
}
.site-header.mega-open .mega__bg { opacity: 1; }

.mega__panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s linear 260ms;
}
.mega__panel.is-open {
  visibility: visible; opacity: 1; pointer-events: auto; transform: none;
  transition-delay: 0s;
}
/* paneller arası geçiş yöne duyarlı: sağdaki menüye geçince içerik sağdan gelir */
.mega__panel[data-leave="left"] { transform: translateX(-32px); }
.mega__panel[data-leave="right"] { transform: translateX(32px); }
.mega__panel[data-enter="left"] { transform: translateX(-32px); transition: none; }
.mega__panel[data-enter="right"] { transform: translateX(32px); transition: none; }
.site-header.is-instant .mega__bg,
.site-header.is-instant .mega__panel,
.site-header.is-instant .nav__indicator { transition: none; }

@media (prefers-reduced-motion: no-preference) {
  .site-header.is-opening .mega__panel.is-open [data-stagger] { animation: mega-in 320ms var(--ease-out) both; }
  .site-header.is-opening .mega__panel.is-open [data-stagger]:nth-child(2) { animation-delay: 35ms; }
  .site-header.is-opening .mega__panel.is-open [data-stagger]:nth-child(3) { animation-delay: 70ms; }
  .site-header.is-opening .mega__panel.is-open [data-stagger]:nth-child(4) { animation-delay: 105ms; }
  @keyframes mega-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  .mega__panel, .mega__panel[data-leave], .mega__panel[data-enter] { transform: none; }
}

.mega__scrim {
  position: fixed; inset: 0; z-index: 35;
  background: rgb(22 30 68 / .28);
  opacity: 0; visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.mega__scrim.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

.mega__label { margin-bottom: 12px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.mega__more {
  display: inline-block; margin-top: 14px;
  font-size: .875rem; font-weight: 600; color: var(--lapis);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: rgb(31 42 92 / .3);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .mega__more:hover { text-decoration-color: currentColor; } }

.mega-list li + li { margin-top: 2px; }
.mega-list a { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: .9375rem; color: var(--ink-2); transition: color 150ms ease; }
.mega-list--strong a { color: var(--ink); font-weight: 600; }
.mega-list--rows li + li { margin-top: 0; }
.mega-list--rows a { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mega-list__meta { flex: none; font-size: .8125rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .mega-list a:hover { color: var(--lapis); } }

/* Kitaplar */
.mega-books { display: grid; grid-template-columns: 1.15fr 1.15fr .8fr .95fr; gap: 40px; padding-block: 32px 36px; }
.mega-topic {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-inline: -12px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--font-book); font-size: 1.125rem; font-weight: 500;
  transition: background-color 150ms ease;
}
.mega-topic.is-active { background: var(--lapis-50); }
.mega-topic__count { flex: none; font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); }
.mega-preview { display: grid; align-items: center; padding: 24px 20px; border-radius: 22px; background: var(--lapis-50); }
.mega-preview__item {
  grid-area: 1 / 1; text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}
.mega-preview__item.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.mega-preview__fan { margin: 0 auto 16px; max-width: 250px; }
/* konu değişince yelpaze kapalı halden açılır */
.mega-preview__item:not(.is-active) .shelf__img:nth-child(1) { transform: translateX(-62%) rotate(-3deg); }
.mega-preview__item:not(.is-active) .shelf__img:nth-child(3) { transform: translateX(-38%) rotate(3deg); }
.mega-preview__name { font-family: var(--font-book); font-weight: 600; font-size: 1.125rem; }
.mega-preview__desc { margin: 4px auto 0; max-width: 30ch; font-size: .875rem; color: var(--ink-2); }

.mega-feature {
  display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px 14px;
  margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
}
.mega-feature .btn { grid-column: 1 / -1; }
.mega-feature__img { width: 56px; border-radius: 2px; box-shadow: var(--shadow-book); }
.mega-feature__label { font-size: .75rem; font-weight: 700; color: var(--sun-ink); }
.mega-feature__title { font-family: var(--font-book); font-weight: 600; line-height: 1.25; }
.mega-feature .price { min-height: 0; margin-top: 2px; }

/* Çocuk */
.mega-kids { display: grid; grid-template-columns: .95fr 2.2fr 1.05fr; align-items: start; gap: 40px; padding-block: 32px 36px; }
.mega-kids__intro img { width: 88px; margin: -6px 0 10px -4px; }
.mega-kids__text { margin-bottom: 18px; max-width: 30ch; font-size: .9375rem; color: var(--ink-2); }
.mega-kids__books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mega-kid { display: flex; flex-direction: column; gap: 8px; }
.mega-kid__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-book); }
.mega-kid__title { font-family: var(--font-book); font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.mega-kid__meta { margin-top: -4px; font-size: .8125rem; color: var(--muted); }
.mega-journal { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: var(--kids-bg); color: var(--kids-ink); }
.mega-journal__name { font-size: .75rem; font-weight: 700; color: var(--kids-accent); }
.mega-journal__title { font-family: var(--font-book); font-style: italic; font-size: 1.125rem; line-height: 1.3; }
.mega-journal__text { font-size: .875rem; color: #2C556C; }
.mega-journal .mega__more { margin-top: 6px; color: var(--kids-ink); }

/* Yarışmalar */
.mega-comp { display: grid; grid-template-columns: 1.35fr 1.1fr .95fr; gap: 48px; padding-block: 32px 36px; }
.mega-series { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: var(--lapis-50); }
.mega-series__covers { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.mega-series__img { border-radius: 2px; box-shadow: var(--shadow-book); }
.mega-series__img:nth-child(1) { width: 46px; }
.mega-series__img:nth-child(2) { width: 54px; }
.mega-series__img:nth-child(3) { width: 64px; }
.mega-series__title { font-family: var(--font-book); font-weight: 600; font-size: 1.125rem; }
.mega-series__text { font-size: .875rem; color: var(--ink-2); }

/* Festival */
.mega-fest { display: grid; grid-template-columns: 150px 1.3fr 1fr; align-items: start; gap: 40px; padding-block: 32px 36px; }
.mega-fest__poster { width: 150px; border-radius: 4px; rotate: -2deg; box-shadow: 0 16px 30px -14px rgb(22 30 68 / .5); }
.mega-fest__title { font-family: var(--font-book); font-weight: 600; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.01em; }
.mega-fest__text { margin-top: 10px; max-width: 46ch; color: var(--ink-2); }
.mega-fest__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.mega-fest__links .mega__more { margin-top: 0; }
.mega-fest__grams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mega-fest__grams img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* Yayınevi */
.mega-house { display: grid; grid-template-columns: 1.35fr 1.2fr .95fr; gap: 48px; padding-block: 32px 36px; }
.mega-about { display: grid; grid-template-columns: 60px 1fr; align-content: start; gap: 6px 20px; padding: 22px; border-radius: 22px; background: var(--lapis-50); }
.mega-about__fil { grid-row: span 3; width: 60px; height: auto; color: var(--ink); }
.mega-about__quote { font-family: var(--font-book); font-style: italic; font-size: 1.25rem; line-height: 1.3; }
.mega-about__text { font-size: .875rem; color: var(--ink-2); }
.mega-about .mega__more { margin-top: 6px; justify-self: start; }
.mega-contact li + li { margin-top: 12px; }
.mega-contact a, .mega-contact span { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.mega-contact .icon { margin-top: 2px; color: var(--lapis); }

/* Arama paneli */
.mega__panel--search { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.search-panel { max-width: 900px; padding-block: 24px 36px; }
.search-field { display: flex; align-items: center; gap: 4px; border-bottom: 2px solid var(--ink); transition: border-color 150ms ease; }
.search-field:focus-within { border-color: var(--lapis); }
.search-field__icon { width: 26px; height: 26px; color: var(--muted); }
.search-field__input {
  flex: 1; min-width: 0; height: 64px; padding: 0 12px;
  border: 0; background: transparent; outline: none;
  font-family: var(--font-book); font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.01em;
  -webkit-appearance: none; appearance: none;
}
.search-field__input::placeholder { color: #A3A6B2; }
.search-field__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; margin-top: 16px; }
.search-results[hidden] { display: none; }
.search-item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; border-radius: 12px; cursor: pointer;
  transition: background-color 120ms ease;
}
.search-item img { width: 44px; height: 62px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgb(22 30 68 / .25); }
.search-item__t { display: block; font-family: var(--font-book); font-weight: 600; line-height: 1.3; }
.search-item__a { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.search-item__p { font-size: .8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.search-item[aria-selected="true"] { background: var(--lapis-50); }
@media (hover: hover) and (pointer: fine) { .search-item:hover { background: var(--lapis-50); } }
.search-empty { grid-column: 1 / -1; padding: 14px 10px; color: var(--ink-2); }
.search-idle { margin-top: 24px; }
.search-idle[hidden] { display: none; }

/* ------------------------------------------------------- 3B kitap nesnesi */
/* Kapak hafifçe döndüğünde sağ kenarda sayfa kalınlığı görünür. */

.b3d { position: relative; display: block; transform-style: preserve-3d; }
.b3d::before {
  content: ""; position: absolute; top: 1.4%; bottom: 1.4%; left: 100%;
  width: var(--thick, 10px);
  transform-origin: 0 50%; transform: rotateY(90deg);
  background:
    linear-gradient(90deg, rgb(0 0 0 / .16), rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .1)),
    repeating-linear-gradient(90deg, #FDFCF8 0 1px, #E4DFD3 1px 2px);
  border-radius: 0 2px 2px 0;
}
.b3d::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .16) 0, rgb(255 255 255 / .18) 1.4%, rgb(0 0 0 / .07) 3%, transparent 7%);
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  background: var(--lapis); color: var(--paper);
  padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: clamp(24px, 5vw, 80px);
}
.hero__copy { grid-column: 1; grid-row: 1; max-width: 560px; }
.hero__art {
  grid-column: 2; grid-row: 1;
  position: relative; width: 100%; max-width: 640px; justify-self: center;
  padding-bottom: 6%;
}
.hero__sunwrap, .hero__sun, .hero__stage { will-change: transform; }
.sun { width: 100%; height: auto; overflow: visible; }
.hero__stage { position: absolute; inset: 0; }
.hero__book {
  position: absolute; left: 0; right: 0; margin-inline: auto;
  top: 25%; width: 41%;
  opacity: 0; visibility: hidden;
}
.hero__book.is-active { opacity: 1; visibility: visible; }
.hero__book .b3d {
  --thick: 24px;
  border-radius: 2px 4px 4px 2px;
  transform: perspective(1400px) rotateY(-16deg);
  box-shadow:
    0 2px 4px rgb(0 0 0 / .25),
    0 24px 40px -16px rgb(0 0 0 / .55),
    0 56px 80px -40px rgb(0 0 0 / .6);
}
.hero__cover { width: 100%; border-radius: inherit; }

.hero__slides { display: grid; }
.hero__slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero__status { font-weight: 600; font-size: .9375rem; color: var(--sun); }
.hero__title {
  margin-top: 14px;
  font-family: var(--font-book); font-weight: 600;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__quote {
  margin-top: 24px; padding-left: 20px; border-left: 2px solid var(--sun);
  font-family: var(--font-book); font-style: italic;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.5;
  color: rgb(255 255 255 / .9); max-width: 34ch;
}
.hero__sub {
  margin-top: 20px;
  font-family: var(--font-book); font-style: italic;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.45;
  color: rgb(255 255 255 / .9); max-width: 34ch;
}
.hero__lead { margin-top: 16px; max-width: 44ch; color: rgb(255 255 255 / .72); }
.hero__buy { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__buy .price__now { font-size: 1.75rem; font-weight: 700; color: var(--paper); }
.hero__buy .price__was { color: rgb(255 255 255 / .55); font-size: 1.0625rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--sun { min-width: 160px; }

.hero__controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .14);
}
.hero__thumbs { display: flex; gap: 8px; }
.hero__thumb {
  position: relative; padding: 4px 4px 10px; border-radius: 8px;
  opacity: .5;
  transition: opacity 200ms ease, transform 160ms var(--ease-out);
}
.hero__thumb.is-active { opacity: 1; }
.hero__thumb:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .hero__thumb:hover { opacity: .85; } .hero__thumb.is-active:hover { opacity: 1; } }
.hero__thumb-img { width: 40px; height: 58px; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 12px -6px rgb(0 0 0 / .6); }
.hero__thumb-bar {
  position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px;
  overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / .18);
}
.hero__thumb-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--sun);
  transform: scaleX(0); transform-origin: 0 50%;
}
.hero__thumb.is-active .hero__thumb-bar::after { animation: hero-progress 8s linear forwards; }
.hero.is-paused .hero__thumb-bar::after { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero__pause { color: var(--paper); }
.hero__pause-icon { display: grid; place-items: center; }
.hero__pause-icon[data-icon="play"], .hero.is-user-paused .hero__pause-icon[data-icon="pause"] { display: none; }
.hero.is-user-paused .hero__pause-icon[data-icon="play"] { display: grid; }
@media (hover: hover) and (pointer: fine) { .hero__pause:hover { background: rgb(255 255 255 / .08); } }
.hero__note { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .875rem; color: rgb(255 255 255 / .72); }
.hero__note .icon { color: var(--sun); }

/* tek açılış anı: güneş yerine oturur, kitap yükselir, satırlar netleşir */
@media (prefers-reduced-motion: no-preference) {
  .hero.is-intro .hero__sunwrap { transform-origin: 50% 60%; animation: sun-in 1200ms var(--ease-out) both; }
  .hero.is-intro .hero__book.is-active { animation: book-in 900ms var(--ease-out) 180ms both; }
  .hero.is-intro .hero__slide.is-active > *,
  .hero.is-intro .hero__controls { animation: line-in 760ms var(--ease-out) both; }
  .hero.is-intro .hero__slide.is-active > :nth-child(1) { animation-delay: 120ms; }
  .hero.is-intro .hero__slide.is-active > :nth-child(2) { animation-delay: 180ms; }
  .hero.is-intro .hero__slide.is-active > :nth-child(3) { animation-delay: 240ms; }
  .hero.is-intro .hero__slide.is-active > :nth-child(4) { animation-delay: 300ms; }
  .hero.is-intro .hero__slide.is-active > :nth-child(5) { animation-delay: 360ms; }
  .hero.is-intro .hero__controls { animation-delay: 440ms; }
  @keyframes sun-in { from { opacity: 0; transform: rotate(-16deg) scale(0.94); } }
  @keyframes book-in { from { opacity: 0; transform: translateY(28px); } }
  @keyframes line-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
}

/* ------------------------------------------------------------- bölüm */

.section { padding-block: var(--section); }
.section--tint { background: var(--lapis-50); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px);
}
.section__title {
  font-family: var(--font-book); font-weight: 600;
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.015em;
}
.section__desc { color: var(--ink-2); }
.section__tools { display: flex; align-items: center; gap: 20px; }
.section__link {
  display: inline-block;
  font-weight: 600; font-size: .9375rem; color: var(--lapis);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  text-decoration-color: rgb(31 42 92 / .3);
  transition: text-decoration-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .section__link:hover { text-decoration-color: currentColor; } }

/* ---------------------------------------------------------- kitap kartı */

.rail > li, .kids__books > li { display: flex; }
.book { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.book__cover {
  display: flex; align-items: flex-end; justify-content: center;
  aspect-ratio: 5 / 7; margin-bottom: 18px;
}
.book__obj {
  width: var(--fit, 100%);
  border-radius: 2px 3px 3px 2px;
  box-shadow: var(--shadow-book);
  transform: perspective(900px) rotateY(0deg);
}
.book__obj img { width: 100%; border-radius: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .book__obj { transition: transform 320ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .book:hover .book__obj { transform: perspective(900px) rotateY(-18deg); }
}
.book__badge {
  position: absolute; z-index: 1; top: -10px; left: -8px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  box-shadow: 0 2px 6px -2px rgb(22 30 68 / .35);
  font-size: .75rem; font-weight: 700; line-height: 1.2;
}
.book__body { flex: 1; display: flex; flex-direction: column; }
.book__title { font-family: var(--font-book); font-weight: 600; font-size: 1.125rem; line-height: 1.25; text-wrap: balance; }
.book__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .book:hover .book__title a { background-size: 100% 1.5px; } }
.book__author { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.book__buy { margin-top: auto; padding-top: 14px; display: grid; gap: 10px; }

.price { display: flex; align-items: baseline; gap: 8px; min-height: 24px; }
.price__now { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.price__was { color: var(--muted); font-size: .875rem; }
.price--ext { font-size: .875rem; color: var(--muted); }

/* yatay kitap rafı */
.rail {
  --rail-gap: clamp(16px, 2vw, 28px);
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 5 * var(--rail-gap)) / 6);
  gap: var(--rail-gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-block: 16px 8px; margin-block: -16px -8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav[hidden] { display: none; }
.rail-nav__btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: border-color 150ms ease, opacity 150ms ease, transform 160ms var(--ease-out);
}
.rail-nav__btn:disabled { opacity: .35; cursor: default; }
.rail-nav__btn:not(:disabled):active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .rail-nav__btn:not(:disabled):hover { border-color: var(--ink); } }

/* -------------------------------------------------------------- raflar */

.shelves { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.shelf { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px 4px; border-radius: 16px; }
.shelf__fan { position: relative; display: block; width: 100%; max-width: 168px; aspect-ratio: 4 / 3; margin-bottom: 18px; }
.shelf__img {
  position: absolute; bottom: 0; left: 50%; width: 44%;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgb(22 30 68 / .15), 0 12px 20px -10px rgb(22 30 68 / .45);
  transform-origin: 50% 100%;
}
.shelf__img:nth-child(1) { z-index: 1; transform: translateX(-90%) rotate(-9deg); }
.shelf__img:nth-child(2) { z-index: 3; transform: translateX(-50%) translateY(-5%); }
.shelf__img:nth-child(3) { z-index: 2; transform: translateX(-10%) rotate(9deg); }
.shelf__name { font-family: var(--font-book); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.shelf__count { margin-top: 2px; font-size: .875rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .shelf__img { transition: transform 300ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) {
  .shelf:hover .shelf__img:nth-child(1) { transform: translateX(-100%) rotate(-13deg); }
  .shelf:hover .shelf__img:nth-child(2) { transform: translateX(-50%) translateY(-9%); }
  .shelf:hover .shelf__img:nth-child(3) { transform: translateX(0%) rotate(13deg); }
}

/* -------------------------------------------------------- Ganeşa Çocuk */

.kids__panel {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr);
  align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--radius-panel);
  background: var(--kids-bg); color: var(--kids-ink);
  --focus: var(--kids-ink);
}
.kids__logo { width: 112px; margin: -8px 0 8px -6px; }
.kids__title { font-family: var(--font-book); font-weight: 600; font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; }
.kids__text { margin-top: 14px; font-size: 1.0625rem; color: #24506A; max-width: 34ch; }
.kids__intro .btn { margin-top: 28px; }
.kids__journal { display: block; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(12 79 120 / .18); }
.kids__journal-name { display: block; font-size: .8125rem; font-weight: 700; color: var(--kids-accent); }
.kids__journal-title { display: block; margin-top: 2px; font-family: var(--font-book); font-style: italic; font-size: 1.125rem; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .kids__journal:hover .kids__journal-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }

.kids__books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.kids .book__cover { aspect-ratio: 1; }
.kids .book__obj { border-radius: 3px; }
.kids__books li:nth-child(odd) .book__obj { rotate: -1.5deg; }
.kids__books li:nth-child(even) .book__obj { rotate: 1.5deg; }
.kids .book__author { color: #3F6A82; }
.kids .price__was { color: #4F7389; }
.kids .btn--add { border-color: var(--kids-ink); color: var(--kids-ink); }
.kids .btn--add[data-state="added"] { background: var(--kids-ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .kids .btn--add:hover { background: var(--kids-ink); color: #fff; } }

/* ------------------------------------------------- yarışmadan kitaba */

.series { background: var(--lapis-50); }
.series__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: end; gap: clamp(32px, 5vw, 80px); }
.series__intro p { margin-top: 16px; color: var(--ink-2); max-width: 36ch; }
.series__intro .section__link { margin-top: 24px; }
.series__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.series__item { padding-inline: clamp(8px, 1.5vw, 20px); }
.series__cover { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 4 / 5; border-bottom: 2px solid var(--ink); }
.series__item:nth-child(1) .book__obj { width: calc(var(--fit) * .74); }
.series__item:nth-child(2) .book__obj { width: calc(var(--fit) * .87); }
.series__meta { padding-top: 16px; }
.series__year { font-size: .875rem; font-weight: 700; color: var(--lapis); }
.series__title { margin-top: 2px; font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.series__from { margin-top: 4px; font-size: .875rem; color: var(--muted); max-width: 30ch; }

/* ------------------------------------------------------------ festival */

.festival { background: var(--ink); color: var(--paper); padding-block: var(--section); }
.festival__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.festival__poster { max-width: 420px; justify-self: center; }
.festival__poster img { border-radius: 4px; rotate: -2deg; box-shadow: 0 2px 4px rgb(0 0 0 / .3), 0 40px 60px -28px rgb(0 0 0 / .7); }
.festival__title { font-family: var(--font-book); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; }
.festival__lead { margin-top: 18px; font-family: var(--font-book); font-style: italic; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; color: var(--sun); max-width: 34ch; }
.festival__text > p:not(.festival__lead) { margin-top: 16px; color: rgb(255 255 255 / .74); max-width: 52ch; }
.festival__text .btn { margin-top: 32px; }

/* kaydırınca bir kez: seri sırayla yükselir, afiş yerine oturur */
@media (prefers-reduced-motion: no-preference) {
  .js .series__list[data-reveal] .series__item { opacity: 0; transform: translateY(32px); }
  .js .series__list.is-in .series__item { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .series__list.is-in .series__item:nth-child(2) { transition-delay: 100ms; }
  .js .series__list.is-in .series__item:nth-child(3) { transition-delay: 200ms; }
  .js .festival__poster[data-reveal] img { opacity: 0; transform: translateY(40px) rotate(5deg); }
  .js .festival__poster.is-in img { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
}

/* ----------------------------------------------------------- hakkımızda */

.about__grid { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); align-items: start; gap: clamp(28px, 6vw, 96px); max-width: 1040px; }
.about__fil { width: 100%; height: auto; color: var(--ink); margin-top: 8px; }
.about__quote p {
  font-family: var(--font-book); font-style: italic; font-weight: 500;
  font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.875rem);
  line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance;
}
.about__body > p { margin-top: 20px; font-size: 1.0625rem; color: var(--ink-2); max-width: 60ch; }
.about__body > p:first-of-type { margin-top: 28px; }
.about__body .section__link { margin-top: 24px; }

/* ---------------------------------------------------------------- alt */

.site-footer { overflow: hidden; background: var(--lapis-900); color: rgb(255 255 255 / .74); font-size: .9375rem; padding-top: clamp(56px, 6vw, 88px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 40px 32px; }
.footer__logo { width: 116px; height: auto; color: var(--paper); }
.footer__brand p { margin-top: 20px; max-width: 30ch; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--paper); font-weight: 600; }
.footer__title { margin-bottom: 14px; font-size: .9375rem; font-weight: 600; color: var(--paper); }
.footer__col li + li { margin-top: 10px; }
.footer__col a, .footer__btn { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover, .footer__btn:hover, .footer__social:hover { color: var(--sun); } }
.footer__contact a, .footer__contact address { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .icon { margin-top: 2px; color: var(--sun); }
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px); padding-block: 24px;
  font-size: .875rem; color: rgb(255 255 255 / .58);
}
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgb(255 255 255 / .12); }
.footer__giant-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); overflow: hidden; }
.footer__giant { width: 100%; height: auto; color: rgb(255 255 255 / .06); margin-bottom: -9%; }

/* --------------------------------------------------- yan paneller (sheet) */

.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgb(22 30 68 / .48); opacity: 0; transition: opacity 320ms ease; }
.sheet__panel {
  position: absolute; top: 0; bottom: 0;
  width: min(420px, 92vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: 0 0 60px -20px rgb(22 30 68 / .55);
  transition: transform 420ms var(--ease-drawer);
  touch-action: pan-y;
}
.sheet[data-side="left"] .sheet__panel { left: 0; transform: translateX(-100%); border-radius: 0 28px 28px 0; }
.sheet[data-side="right"] .sheet__panel { right: 0; transform: translateX(100%); border-radius: 28px 0 0 28px; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet.is-dragging .sheet__panel, .sheet.is-dragging .sheet__scrim { transition: none; }
.sheet.is-dragging { cursor: grabbing; user-select: none; }
@media (prefers-reduced-motion: reduce) {
  .sheet[data-side] .sheet__panel { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .sheet.is-open .sheet__panel { opacity: 1; }
}

.sheet__head { display: flex; align-items: center; gap: 8px; min-height: 68px; padding: 12px 14px 8px 20px; }
.sheet__back { margin-left: -10px; }
.sheet__back[hidden], .sheet__brand[hidden] { display: none; }
.sheet__mark { width: auto; height: 34px; color: var(--ink); }
.sheet__title { flex: 1; font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.sheet__close { margin-left: auto; }

.sheet__pages { position: relative; flex: 1; overflow: hidden; }
.sheet__page { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 28px; background: var(--paper); }
.sheet__page[hidden] { display: none; }
.sheet__page:not([data-page="root"]) { box-shadow: -18px 0 30px -24px rgb(22 30 68 / .45); }

.side-nav__link {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  font-family: var(--font-book); font-size: 1.375rem; font-weight: 500; text-align: left;
}
.side-nav__chev { width: 20px; height: 20px; color: var(--muted); }
.side-feature { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px; border-radius: 18px; background: var(--lapis); color: var(--paper); }
.side-feature img { flex: none; border-radius: 2px; box-shadow: 0 8px 16px -8px rgb(0 0 0 / .6); }
.side-feature__label { display: block; font-size: .75rem; font-weight: 700; color: var(--sun); }
.side-feature__title { display: block; font-family: var(--font-book); font-weight: 600; font-size: 1.0625rem; }
.side-feature__price { display: block; font-size: .875rem; color: rgb(255 255 255 / .75); }
.side-label { margin: 22px 0 6px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.side-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; }
.side-list__meta { flex: none; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.side-intro { margin: 12px 0 8px; color: var(--ink-2); }
.side-books li + li { border-top: 1px solid var(--line); }
.side-book { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; }
.side-book img { border-radius: 3px; box-shadow: var(--shadow-book); }
.side-book__t { display: block; font-family: var(--font-book); font-weight: 600; line-height: 1.25; }
.side-book__m { display: block; font-size: .8125rem; color: var(--muted); }
.side-book__p { font-size: .875rem; font-weight: 600; }
.side-journal { display: block; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--kids-bg); color: var(--kids-ink); font-family: var(--font-book); font-style: italic; font-size: 1.0625rem; line-height: 1.35; }
.side-journal .side-label { display: block; margin: 0 0 4px; font-family: var(--font-ui); font-style: normal; color: var(--kids-accent); }
.side-poster { width: 68%; margin: 16px auto 18px; border-radius: 6px; rotate: -2deg; box-shadow: 0 16px 30px -14px rgb(22 30 68 / .5); }
.sheet__page .chips { margin-top: 4px; }
.sheet__page > .btn { margin-top: 8px; }

.sheet__foot { display: flex; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.round-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .round-btn:hover { border-color: var(--ink); } }

/* sepet paneli */
.cart-panel__count { margin-left: 4px; font-family: var(--font-ui); font-size: .875rem; font-weight: 600; color: var(--muted); }
.cart-panel__ship { display: flex; align-items: center; gap: 8px; margin: 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--sun-100); color: var(--sun-ink); font-size: .875rem; font-weight: 500; }
.cart-panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.cart-items > li { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 240ms var(--ease-out), opacity 200ms ease; }
.cart-items > li.is-removing { grid-template-rows: 0fr; opacity: 0; }
.cart-item { min-height: 0; overflow: hidden; }
.cart-item__in { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item__in img { width: 64px; border-radius: 2px; box-shadow: var(--shadow-book); }
.cart-item__t { font-family: var(--font-book); font-weight: 600; line-height: 1.25; }
.cart-item__m { margin-top: 2px; font-size: .8125rem; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cart-item__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item__remove { margin-top: 8px; font-size: .8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.qty--sm { height: 36px; border-width: 1px; }
.qty__btn, .qty button { display: grid; place-items: center; width: 44px; height: 100%; border-radius: 999px; color: var(--ink); transition: background-color 120ms ease, transform 120ms var(--ease-out); }
.qty--sm .qty__btn, .qty--sm button { width: 34px; }
.qty__btn:active { transform: scale(0.9); }
.qty__btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .qty__btn:not(:disabled):hover { background: var(--lapis-50); } }
.qty__input, .qty output {
  width: 34px; min-width: 22px; height: 100%; padding: 0; border: 0; background: none; outline: none;
  text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty:focus-within { border-color: var(--ink); }
.cart-empty { display: flex; flex-direction: column; align-items: center; padding: 56px 12px; text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-empty__fil { width: 76px; height: auto; color: var(--lapis-100); margin-bottom: 18px; }
.cart-empty__title { font-family: var(--font-book); font-weight: 600; font-size: 1.25rem; }
.cart-empty__text { margin: 4px 0 20px; color: var(--ink-2); }
.cart-panel__foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-panel__foot[hidden] { display: none; }
.cart-sum { display: flex; justify-content: space-between; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-sum--muted { margin: 4px 0 16px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.cart-panel__secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: .8125rem; color: var(--muted); }

/* sepete uçan kapak */
.fly { position: fixed; z-index: 90; pointer-events: none; }
.fly__img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 14px 28px -10px rgb(22 30 68 / .5); }

/* ------------------------------------------------------------- bildirim */

.toasts {
  position: fixed; z-index: 80; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 8px;
  width: min(360px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 34px -10px rgb(0 0 0 / .45);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.toast[data-state="enter"] { opacity: 0; transform: translateY(14px) scale(0.98); }
.toast[data-state="leave"] { opacity: 0; transform: translateY(6px); transition-duration: 180ms; }
.toast__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--sun); color: var(--ink); }
.toast__icon .icon { width: 18px; height: 18px; }
.toast__text { font-size: .875rem; line-height: 1.35; }
.toast__text strong { display: block; font-size: .9375rem; }
.toast__text span { color: rgb(255 255 255 / .72); }
.toast__link { padding: 6px 4px; font-size: .875rem; font-weight: 600; color: var(--sun); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .toast[data-state="enter"], .toast[data-state="leave"] { transform: none; }
}

/* ---------------------------------------------------------- duyarlılık */

@media (max-width: 1180px) {
  .header__row { grid-template-columns: auto auto 1fr; grid-template-areas: "menu brand tools"; column-gap: 12px; }
  .header__row .menu-btn { display: grid; margin-left: -10px; }
  .nav { display: none; }
  .header__tools { justify-self: end; }
  .mega__panel:not(.mega__panel--search) { display: none; }
}

@media (max-width: 1100px) {
  .rail {
    grid-auto-columns: minmax(180px, 30%);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
  .kids__panel { grid-template-columns: 1fr; }
  .series__grid { grid-template-columns: 1fr; align-items: start; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; row-gap: 8px; }
  .hero__art { grid-column: 1; grid-row: 1; max-width: 460px; }
  .hero__copy { grid-column: 1; grid-row: 2; }
  .festival__grid { grid-template-columns: 1fr; }
  .festival__poster { max-width: 340px; }
  .kids__books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__fil { width: 96px; margin-top: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header__row { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .brand__mark { height: 40px; }
  .brand__word { height: 15px; }
  .search-btn { width: 44px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .search-btn[aria-expanded="true"] { background: var(--lapis-50); border-color: transparent; }
  .search-btn__label, .search-btn__kbd, .search-field__esc { display: none; }
  .header__tools { gap: 0; }
  .search-results { grid-template-columns: 1fr; }
  .search-panel { padding-block: 12px 24px; }
  .rail { grid-auto-columns: 46%; }
  .rail-nav { display: none; }
  .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series__list { margin-inline: calc(var(--gutter) * -0.5); }
  .series__title { font-size: 1.0625rem; }
  .series__from { font-size: .8125rem; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col:last-child { grid-column: 1 / -1; }
  .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .hero__buy { gap: 16px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .hero__note { margin-left: 0; width: 100%; }
}
