/* Kamesh Welding — E-Katalog flipbook */
.kw-catalog-section { padding: 70px 0 90px; background: linear-gradient(180deg, #f4f5f7 0%, #ffffff 100%); }
.kw-catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.kw-catalog-head h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 32px); }
.kw-catalog-head p { margin: 0; color: #5e6a73; }
.kw-catalog-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-catalog-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); color: #333; font-size: 14px; font-weight: 600; text-decoration: none; }
.kw-catalog-tabs a.is-active, .kw-catalog-tabs a:hover { background: #c7282f; border-color: #c7282f; color: #fff; }

.kw-flipbook { position: relative; direction: ltr; background: #2b2f33; border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.18); overflow: hidden; }
.kw-flipbook.is-fs, .kw-flipbook.is-pseudo-fs { border-radius: 0; padding: 14px; display: flex; flex-direction: column; }
.kw-flipbook.is-pseudo-fs { position: fixed; inset: 0; z-index: 2147482000; }
/* Çift sayfa genişliği ≈ 1.43 × yükseklik → kitap ekran yüksekliğinin ~%78'ine sığar */
.kw-fb-stage { position: relative; width: 100%; max-width: min(1240px, calc(78vh * 1.43)); margin: 0 auto; min-height: 320px; }
@media (max-width: 767px) { .kw-fb-stage { max-width: 100%; } }
.kw-flipbook.is-fs .kw-fb-stage, .kw-flipbook.is-pseudo-fs .kw-fb-stage { flex: 1; max-width: calc((100vh - 110px) * 1.43); }
.kw-fb-book { margin: 0 auto; }
.kw-fb-page { background: #fff; overflow: hidden; }
.kw-fb-page img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s ease; user-select: none; -webkit-user-drag: none; }
.kw-fb-page.is-ready img { opacity: 1; }
.kw-fb-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f1f1f1 0%, #fafafa 50%, #f1f1f1 100%); background-size: 200% 100%; animation: kwFbShimmer 1.4s linear infinite; }
.kw-fb-page.is-ready::before { display: none; }
.kw-fb-page img { position: relative; z-index: 1; }
.kw-fb-page-num { position: absolute; z-index: 2; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 11px; color: rgba(0,0,0,.35); pointer-events: none; }
@keyframes kwFbShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.kw-fb-loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; z-index: 5; background: #2b2f33; min-height: 320px; }
.kw-fb-loader[hidden] { display: none; }
.kw-fb-loader-bar { width: min(320px, 70%); height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.kw-fb-loader-bar span { display: block; height: 100%; width: 4%; background: #e63234; transition: width .25s ease; }
.kw-fb-loader-text { font-size: 14px; opacity: .85; }

.kw-fb-error { padding: 60px 20px; text-align: center; color: #fff; }
.kw-fb-error[hidden] { display: none; }
.kw-fb-error p { margin-bottom: 18px; color: rgba(255,255,255,.85); }

.kw-fb-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #fff; }
.kw-fb-toolbar .kw-fb-group { display: inline-flex; align-items: center; gap: 6px; }
.kw-fb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.kw-fb-btn:hover, .kw-fb-btn:focus-visible { background: #c7282f; border-color: #c7282f; color: #fff; }
.kw-fb-btn[disabled] { opacity: .35; cursor: default; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.kw-fb-btn span { font-size: 14px; font-weight: 600; }
.kw-fb-counter { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.kw-fb-counter input { width: 58px; height: 36px; padding: 0 4px; line-height: 36px; font-family: Arial, Helvetica, sans-serif; font-weight: 600; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; text-align: center; font-size: 14px; -moz-appearance: textfield; }
.kw-fb-counter input::-webkit-outer-spin-button, .kw-fb-counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kw-fb-hint { margin: 10px 0 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }

/* Kitaplık kütüphanesi yüklenemezse: dikey okuma */
.kw-flipbook.is-fallback .kw-fb-book { display: grid; gap: 14px; max-width: 760px; }
.kw-flipbook.is-fallback .kw-fb-page { position: relative; aspect-ratio: 624 / 870; }
.kw-flipbook.is-fallback .kw-fb-toolbar [data-fb="prev"], .kw-flipbook.is-fallback .kw-fb-toolbar [data-fb="next"],
.kw-flipbook.is-fallback .kw-fb-toolbar [data-fb="first"], .kw-flipbook.is-fallback .kw-fb-toolbar [data-fb="last"],
.kw-flipbook.is-fallback .kw-fb-counter, .kw-flipbook.is-fallback .kw-fb-hint { display: none; }


@media (max-width: 767px) {
    .kw-catalog-section { padding: 40px 0 60px; }
    .kw-flipbook { padding: 10px 8px 10px; border-radius: 12px; }
    .kw-fb-btn { min-width: 36px; height: 36px; padding: 0 8px; }
    .kw-fb-btn span { display: none; }
}

/* ---------- Tam ekran katalog sayfası (header/footer yok) ---------- */
html, body.kw-fb-body { height: 100%; }
body.kw-fb-body { margin: 0; background: #1d2024; color: #fff; font-family: "Inter", "Segoe UI", Arial, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
.kw-fb-topbar { position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); pointer-events: none; }
.kw-fb-topbar > * { pointer-events: auto; }
.kw-fb-logo img { display: block; height: 30px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.kw-fb-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .3px; color: rgba(255,255,255,.85); }
.kw-fb-close { font-size: 22px; }
.kw-flipbook.kw-fb-full { position: fixed; inset: 0; border-radius: 0; padding: 60px 16px 12px; box-shadow: none; background: radial-gradient(ellipse at center, #2f343a 0%, #1d2024 70%); display: flex; flex-direction: column; justify-content: center; }
.kw-fb-full .kw-fb-stage { flex: 0 1 auto; width: 100%; max-width: min(1500px, calc((100vh - 140px) * 1.43)); max-width: min(1500px, calc((100dvh - 140px) * 1.43)); }
.kw-fb-full .kw-fb-toolbar { margin-top: 12px; }
.kw-fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kw-fb-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 20px; }
.kw-fb-empty p { margin: 0; font-size: 18px; color: rgba(255,255,255,.85); }
@media (max-width: 767px) {
    .kw-fb-topbar { height: 50px; padding: 0 10px; }
    .kw-fb-logo img { height: 24px; }
    .kw-fb-title { font-size: 13px; }
    .kw-flipbook.kw-fb-full { padding: 52px 8px 8px; }
    .kw-fb-full .kw-fb-stage { max-width: min(100%, calc((100vh - 150px) / 1.4)); max-width: min(100%, calc((100dvh - 150px) / 1.4)); }
    .kw-fb-full .kw-fb-toolbar { gap: 6px; }
}

/* Kitap alanında tarayıcının çift dokunma zoom'u kapalı (sayfa çevirme dokunuşları korunur) */
.kw-fb-full .kw-fb-stage { touch-action: manipulation; }
/* PhotoSwipe sayfa çerçevesi */
.pswp__img { background: #fff; }
