/* Dijital katalog flipbook — gerçekçi sayfa çevirme */
.flipbook {
  --fb-bar: #111827;
  --fb-duration: 0.75s;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 42%),
    repeating-linear-gradient(
      90deg,
      #d2b48c 0px,
      #c9a96e 14px,
      #b8955c 28px,
      #d4bc90 42px,
      #c4a574 56px
    );
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  margin: 0 auto;
  max-width: 1100px;
}
.flipbook--compact .flipbook-stage { min-height: 420px; height: min(56vh, 560px); }
.flipbook-stage {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.25rem;
  min-height: 520px;
  height: min(72vh, 720px);
  padding: 1.1rem 0.4rem 0.85rem;
}
.flipbook-viewport {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
}
.flipbook-book {
  position: relative;
  width: min(920px, 100%);
  height: 100%;
  display: flex;
  transform-style: preserve-3d;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}
.flipbook-half {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.flipbook-half.is-left {
  border-radius: 6px 0 0 6px;
  box-shadow: inset -10px 0 18px rgba(0, 0, 0, 0.08);
}
.flipbook-half.is-right {
  border-radius: 0 6px 6px 0;
  box-shadow: inset 10px 0 18px rgba(0, 0, 0, 0.06);
}
.flipbook-sheet,
.flipbook-leaf-face {
  position: absolute;
  inset: 0;
  background: #fff;
}
.flipbook-sheet img,
.flipbook-leaf-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}
.flipbook-sheet.is-empty {
  background:
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.flipbook-sheet.is-empty img { opacity: 0; }

/* Omurga gölgesi */
.flipbook-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0.02) 45%,
    rgba(255,255,255,0.15) 50%,
    rgba(0,0,0,0.02) 55%,
    rgba(0,0,0,0.16)
  );
  pointer-events: none;
  z-index: 4;
}

/* Çevrilen yaprak — sağ sayfanın sol kenarından döner */
.flipbook-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  z-index: 6;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: none;
  pointer-events: none;
  visibility: hidden;
}
.flipbook-leaf.is-ready {
  visibility: visible;
}
.flipbook-leaf.is-animating {
  transition: transform var(--fb-duration) cubic-bezier(0.645, 0.045, 0.355, 1);
}
.flipbook-leaf.is-flipped {
  transform: rotateY(-180deg);
}
.flipbook-leaf-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 6px 6px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.flipbook-leaf-face.is-back {
  transform: rotateY(180deg);
  border-radius: 6px 0 0 6px;
}
.flipbook-leaf-shadow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.05) 18%,
    transparent 42%,
    rgba(0,0,0,0.08) 78%,
    rgba(0,0,0,0.22) 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: multiply;
}
.flipbook-leaf.is-animating .flipbook-leaf-shadow {
  opacity: 0.85;
}

/* Tek sayfa / kapak */
.flipbook.is-single .flipbook-half.is-left {
  visibility: hidden;
}
.flipbook.is-single .flipbook-half.is-right {
  width: 50%;
  margin-left: 50%;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.flipbook.is-single .flipbook-spine { opacity: 0.35; }
.flipbook.is-single .flipbook-leaf { left: 50%; }

.flipbook-nav {
  appearance: none;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 8;
}
.flipbook-nav:hover { background: rgba(15, 23, 42, 0.8); transform: scale(1.05); }
.flipbook-nav:disabled { opacity: 0.35; cursor: default; transform: none; }

.flipbook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--fb-bar);
  color: #e2e8f0;
}
.flipbook-bar-left,
.flipbook-bar-center,
.flipbook-bar-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.flipbook-bar-center { flex: 1; justify-content: center; }
.flipbook-tool {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.flipbook-tool:hover,
.flipbook-tool.is-on { background: #1e293b; color: #fff; }
.flipbook-tool[data-flip-sound]:not(.is-on) { opacity: 0.45; }
.flipbook-counter {
  min-width: 5.5rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.flipbook-thumbs {
  background: #0b1220;
  border-top: 1px solid #1e293b;
  max-height: 160px;
  overflow: auto;
}
.flipbook-thumbs-inner {
  display: flex;
  gap: 0.55rem;
  padding: 0.75rem;
}
.flipbook-thumb {
  appearance: none;
  border: 2px solid transparent;
  background: #111827;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  width: 72px;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
}
.flipbook-thumb img {
  display: block;
  width: 72px;
  height: 102px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}
.flipbook-thumb span { display: block; text-align: center; padding: 0.2rem 0; }
.flipbook-thumb.is-active,
.flipbook-thumb:hover { border-color: #c9a227; color: #fff; }

.flipbook.is-zoomed .flipbook-viewport { overflow: auto; }
.flipbook.is-zoomed .flipbook-book { height: auto; min-height: 100%; }
.flipbook.is-zoomed .flipbook-sheet img,
.flipbook.is-zoomed .flipbook-leaf-face img {
  object-fit: contain;
  min-height: min(900px, 120vh);
}

.flipbook:fullscreen,
.flipbook:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.flipbook:fullscreen .flipbook-stage,
.flipbook:-webkit-full-screen .flipbook-stage {
  flex: 1;
  height: auto;
  min-height: 0;
}

.flipbook-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.flipbook-section-head h2 { margin: 0; }
.flipbook-section-head p { margin: 0.35rem 0 0; color: var(--muted, #64748b); max-width: 520px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: -1.5rem auto 0;
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 1.25rem;
}
.trust-strip-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  text-align: center;
}
.trust-strip-item strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.trust-strip-item span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: -0.75rem; }
  .flipbook-stage {
    grid-template-columns: 36px 1fr 36px;
    min-height: 380px;
    height: min(62vh, 540px);
  }
  .flipbook-book { width: min(360px, 100%); }
  .flipbook.is-single .flipbook-half.is-right,
  .flipbook-half.is-right {
    width: 100%;
    margin-left: 0;
    border-radius: 6px;
  }
  .flipbook-half.is-left { display: none; }
  .flipbook-leaf { left: 0; width: 100%; }
  .flipbook-spine { display: none; }
}
@media (max-width: 560px) {
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0 0.85rem; }
  .trust-strip-item { padding: 0.7rem 0.65rem; }
  .flipbook-bar { flex-wrap: wrap; justify-content: center; }
}
