/* E-Katalog FlipBuilder-benzeri görüntüleyici */
.ek-flip-body {
  margin: 0;
  padding: 0;
  background: #1a1d21;
  color: #f2f2f2;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
.ek-flip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: #0f1114;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ek-flip-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ek-flip-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.ek-flip-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}
.ek-flip-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ek-flip-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.ek-flip-btn:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.ek-flip-btn-primary {
  background: #c9a227;
  border-color: #c9a227;
  color: #111;
  font-weight: 600;
}
.ek-flip-btn-primary:hover { background: #dbb532; color: #111; }

.ek-flip-main {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 58px);
}
.ek-flip-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 8px 4px;
  position: relative;
}
.ek-flip-book-wrap {
  position: relative;
  width: min(1400px, 96vw);
  height: min(860px, 78vh);
  cursor: zoom-in;
}
.ek-flip-book {
  width: 100%;
  height: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.ek-flip-book .stf__item { background: #fff; }
.ek-flip-book .stf__block { background: #fff; }
.ek-flip-book .stf__canvas,
.ek-flip-book canvas {
  image-rendering: auto;
}

/* Hover büyüteç */
.ek-flip-loupe {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid #c9a227;
  box-shadow: 0 8px 28px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.25);
  pointer-events: none;
  z-index: 40;
  display: none;
  background-repeat: no-repeat;
  background-color: #fff;
  overflow: hidden;
}
.ek-flip-loupe.is-on { display: block; }
.ek-flip-loupe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(0,0,0,.18);
  pointer-events: none;
}

.ek-flip-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.ek-flip-nav:hover { background: rgba(255,255,255,.15); }

.ek-flip-footer {
  text-align: center;
  padding: 6px 12px 8px;
  font-size: 13px;
  opacity: .85;
}
.ek-flip-hint {
  display: block;
  font-size: 12px;
  opacity: .65;
  margin-top: 2px;
}
.ek-flip-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 16px 18px;
  scrollbar-width: thin;
}
.ek-flip-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.ek-flip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ek-flip-thumb.is-active,
.ek-flip-thumb:hover { border-color: #c9a227; }

.ek-flip-empty {
  margin: 80px auto;
  text-align: center;
  max-width: 480px;
  padding: 24px;
}
.ek-flip-empty h2 { margin-top: 0; }

/* Tıklayınca detay lightbox */
.ek-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 12, .92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px;
}
.ek-zoom-overlay.is-open { display: flex; }
.ek-zoom-toolbar {
  width: min(1200px, 96vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ek-zoom-stage {
  position: relative;
  width: min(1200px, 96vw);
  height: min(82vh, 900px);
  overflow: auto;
  background: #111;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  cursor: grab;
  text-align: center;
}
.ek-zoom-stage.is-dragging { cursor: grabbing; }
.ek-zoom-stage img {
  max-width: none;
  height: auto;
  display: inline-block;
  transform-origin: center center;
  transition: transform .08s linear;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 900px) {
  .ek-flip-book-wrap {
    width: min(100vw, 96vw);
    height: min(640px, 70vh);
  }
  .ek-flip-loupe { display: none !important; }
}
@media (max-width: 768px) {
  .ek-flip-bar { flex-direction: column; align-items: stretch; }
  .ek-flip-title { max-width: 100%; }
  .ek-flip-menu { justify-content: flex-start; }
  .ek-flip-book-wrap { height: min(560px, 62vh); }
  .ek-flip-nav { display: none; }
}
