/*!
 * OKKA Flipbook — sayfa çevirmeli e-katalog görüntüleyici
 * Renkler ve ölçüler CSS değişkenleriyle temadan değiştirilebilir.
 */
.okfb {
  --okfb-lacivert: #004a99;
  --okfb-lacivert-koyu: #00366f;
  --okfb-turuncu: #ff9900;
  --okfb-turuncu-koyu: #e08600;
  --okfb-metin: #1d2a3a;
  --okfb-metin-soluk: #5b6b7f;
  --okfb-cizgi: #d9e1eb;
  --okfb-zemin: #eef2f7;
  --okfb-panel: #ffffff;
  --okfb-odak: #ff9900;
  --okfb-yaricap: 10px;
  --okfb-yukseklik: min(88vh, 940px);
  --okfb-font: inherit;

  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--okfb-yukseklik);
  min-height: 460px;
  overflow: hidden;
  color: var(--okfb-metin);
  font-family: var(--okfb-font);
  font-size: 15px;
  line-height: 1.4;
  background: var(--okfb-zemin);
  border: 1px solid var(--okfb-cizgi);
  border-radius: var(--okfb-yaricap);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.okfb *, .okfb *::before, .okfb *::after { box-sizing: border-box; }

/* ---------- Üst şerit ---------- */
.okfb__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px 8px 18px;
  background: var(--okfb-lacivert);
  color: #fff;
}
.okfb__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.okfb__title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .8;
}
.okfb__actions { flex: none; display: flex; align-items: center; gap: 8px; }

/* ---------- Düğmeler ---------- */
.okfb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.okfb__btn svg { width: 20px; height: 20px; flex: none; }
.okfb__btn:focus-visible,
.okfb__book:focus-visible,
.okfb__thumb:focus-visible,
.okfb__zoom-view:focus-visible {
  outline: 3px solid var(--okfb-odak);
  outline-offset: 2px;
}
.okfb__btn[disabled], .okfb__btn[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }

.okfb__head .okfb__btn { color: #fff; border-color: rgba(255,255,255,.28); }
.okfb__head .okfb__btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.okfb__head .okfb__btn--birincil {
  background: var(--okfb-turuncu);
  border-color: var(--okfb-turuncu);
  color: #1d1300;
}
.okfb__head .okfb__btn--birincil:hover { background: var(--okfb-turuncu-koyu); border-color: var(--okfb-turuncu-koyu); color: #1d1300; }
.okfb__btn--wa svg { color: #25d366; }
.okfb__btn-boyut { font-weight: 400; opacity: .75; }

/* ---------- Sahne ---------- */
.okfb__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 76px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, #ffffff 0%, rgba(255,255,255,0) 65%),
    linear-gradient(180deg, #f4f7fb 0%, #e3e9f1 100%);
}
.okfb__shift {
  position: relative;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.okfb__book {
  position: relative;
  margin: 0 auto;
  outline: none;
  filter: drop-shadow(0 10px 22px rgba(0, 38, 84, .22));
}
.okfb__book .stf__wrapper { position: relative; width: 100%; }
.okfb__page {
  background: #fff;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.okfb__ic {
  position: absolute;
  inset: 0;
  background: #fff center / 100% 100% no-repeat;
}
.okfb__page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.okfb__page img.is-yuklendi { opacity: 1; }
.okfb__page img.is-hata { opacity: 1; font-size: 13px; color: var(--okfb-metin-soluk); padding: 16px; }
/* Sırt gölgesi */
.okfb__page::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 7%;
  pointer-events: none;
}
.okfb__page.--left::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.14), rgba(0,0,0,0)); }
.okfb__page.--right::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.14), rgba(0,0,0,0)); }
.okfb--dikey .okfb__page::after, .okfb__page.--hard::after { display: none; }

.okfb__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1px solid var(--okfb-cizgi);
  background: var(--okfb-panel);
  color: var(--okfb-lacivert);
  box-shadow: 0 4px 14px rgba(0, 38, 84, .14);
}
.okfb__arrow:hover { background: var(--okfb-lacivert); color: #fff; border-color: var(--okfb-lacivert); }
.okfb__arrow svg { width: 26px; height: 26px; }
.okfb__arrow--prev { left: 14px; }
.okfb__arrow--next { right: 14px; }

.okfb__durum {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--okfb-metin-soluk);
}
.okfb__durum a { color: var(--okfb-lacivert); font-weight: 600; }
.okfb__spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--okfb-cizgi);
  border-top-color: var(--okfb-lacivert);
  border-radius: 50%;
  animation: okfb-don 0.9s linear infinite;
}
@keyframes okfb-don { to { transform: rotate(360deg); } }

/* ---------- Küçük resimler ---------- */
.okfb__thumbs {
  flex: none;
  background: var(--okfb-panel);
  border-top: 1px solid var(--okfb-cizgi);
}
.okfb__thumbs[hidden] { display: none; }
.okfb__thumbs ol {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 14px 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.okfb__thumbs li { flex: none; margin: 0; padding: 0; }
.okfb__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 64px;
  padding: 3px;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: none;
  color: var(--okfb-metin-soluk);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.okfb__thumb img {
  display: block;
  width: 54px;
  height: 76px;
  object-fit: cover;
  background: var(--okfb-zemin);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 38, 84, .18);
}
.okfb__thumb:hover { border-color: var(--okfb-cizgi); }
.okfb__thumb[aria-current="page"] { border-color: var(--okfb-turuncu); color: var(--okfb-metin); font-weight: 700; }

/* ---------- Alt araç çubuğu ---------- */
.okfb__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 8px 12px;
  background: var(--okfb-panel);
  border-top: 1px solid var(--okfb-cizgi);
  color: var(--okfb-lacivert);
}
.okfb__grup { display: flex; align-items: center; gap: 4px; }
.okfb__bar .okfb__btn:hover { background: #e8f0fa; }
.okfb__bar .okfb__btn[aria-pressed="true"], .okfb__bar .okfb__btn[aria-expanded="true"] { background: #e8f0fa; border-color: #c4d6ec; }
.okfb__sayac {
  min-width: 92px;
  padding: 0 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--okfb-metin);
}
.okfb__sayac small { display: block; font-size: 11px; font-weight: 400; color: var(--okfb-metin-soluk); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Yakınlaştırma katmanı ---------- */
.okfb__zoom {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #0d1b2e;
  color: #fff;
}
.okfb__zoom[hidden] { display: none; }
.okfb__zoom-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, .35);
}
.okfb__zoom-bar .okfb__btn { color: #fff; }
.okfb__zoom-bar .okfb__btn:hover { background: rgba(255,255,255,.12); }
.okfb__zoom-yuzde { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.okfb__zoom-view {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.okfb__zoom-view.is-surukle { cursor: grabbing; }
.okfb__zoom-icerik {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  transform-origin: 0 0;
  will-change: transform;
}
.okfb__zoom-icerik img {
  display: block;
  height: 100%;
  width: auto;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.okfb__zoom-ipucu {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  font-size: 13px;
  pointer-events: none;
  transition: opacity .4s;
}

/* ---------- Tam ekran ---------- */
.okfb:fullscreen { height: 100%; width: 100%; border: 0; border-radius: 0; }
.okfb:-webkit-full-screen { height: 100%; width: 100%; border: 0; border-radius: 0; }
.okfb.okfb--tam-ekran-yedek {
  position: fixed;
  inset: 0;
  z-index: 99999;
  height: 100%;
  height: 100dvh;
  border: 0;
  border-radius: 0;
}
html.okfb-kilit, html.okfb-kilit body { overflow: hidden; }

/* ---------- Ekran okuyucu ---------- */
.okfb__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Dar ekran (mobil) ---------- */
@media (max-width: 760px) {
  .okfb__stage { padding: 12px 10px; }
  .okfb__arrow { display: none; }
  .okfb__btn-metin, .okfb__btn-boyut { display: none; }
  .okfb__title small { display: none; }
}
@media (max-width: 640px) {
  .okfb {
    --okfb-yukseklik: calc(100svh - 24px);
    min-height: 420px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .okfb__head { min-height: 52px; padding: 6px 8px 6px 14px; gap: 8px; }
  .okfb__title { font-size: 15px; }
  .okfb__actions { gap: 6px; }
  .okfb__bar { padding: 6px; gap: 2px; min-height: 52px; }
  .okfb__btn { min-width: 40px; padding: 0 8px; }
  .okfb__sayac { min-width: 70px; padding: 0 4px; }
  .okfb__sayac small { max-width: 110px; }
  .okfb__thumbs ol { padding: 8px 10px 6px; gap: 6px; }
}

/* ---------- Animasyonsuz mod ---------- */
@media (prefers-reduced-motion: reduce) {
  .okfb *, .okfb *::before, .okfb *::after { transition: none !important; animation-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.okfb--hareketsiz .okfb__shift, .okfb--hareketsiz .okfb__page img { transition: none; }

@media print {
  .okfb__head, .okfb__bar, .okfb__thumbs, .okfb__arrow { display: none; }
}
