/* ==========================================================================
   Enver Sandalye — Katalog (sade tema)
   ========================================================================== */

:root {
  --bg: #fbfaf8;
  --card: #f2f0ec;
  --ink: #1b1a18;
  --ink-2: #4d4943;
  --muted: #8a857d;
  --line: #e6e2dc;
  --wa: #1fae5b;

  --font: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Temel ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 80px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }

::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { top: 12px; }

/* Buton ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: #000; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: transparent; border-color: var(--ink); }
.btn .icon { width: 1.25em; height: 1.25em; }

/* Header ----------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(251, 250, 248, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.logo img { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.nav a.nav__icon { display: inline-grid; place-items: center; padding: 0; border: 0; color: var(--ink-2); }
.nav a.nav__icon:hover { color: var(--ink); }
.nav .nav__icon .icon { width: 20px; height: 20px; }

/* Katalog başlığı -------------------------------------------------------- */
.intro {
  padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px);
  text-align: center;
}
.intro h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.intro p:last-child {
  margin-top: 14px;
  color: var(--ink-2);
  font-weight: 300;
  font-size: 1.05rem;
}

/* Filtre çubuğu */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(251, 250, 248, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  min-height: 64px;
  padding-block: 10px;
}
.tabs { display: flex; gap: clamp(16px, 3vw, 32px); }
.tab {
  position: relative;
  padding-block: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.tab sup { font-size: 0.68rem; margin-left: 3px; letter-spacing: 0; }
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.tab:hover, .tab[aria-pressed="true"] { color: var(--ink); }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }

.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 0; color: var(--muted); pointer-events: none; }
.search input {
  width: 220px;
  min-height: 40px;
  padding: 0 0 0 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); }

/* Ürün ızgarası ---------------------------------------------------------- */
.catalog { padding-block: clamp(32px, 4vw, 56px) clamp(64px, 9vw, 120px); }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(14px, 2vw, 28px);
}

.card { position: relative; }
.card[hidden] { display: none; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card);
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.card__media .img-alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.03); }
  .card.alt-ready:hover .img-alt { opacity: 1; }
  .card.alt-ready:hover .img-main { opacity: 0; }
}
.card__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
}
.card__title { font-size: 1.05rem; font-weight: 500; letter-spacing: 0.02em; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__code { font-size: 0.85rem; color: var(--muted); }

.empty { display: none; padding: 64px 0; text-align: center; color: var(--ink-2); }
.empty.is-visible { display: block; }
.empty button { margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }

/* Breadcrumb ------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 28px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumb [aria-current] { color: var(--ink); }

/* Ürün detay ------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card);
  cursor: zoom-in;
}
.gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__main img.is-active { opacity: 1; }
.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(251, 250, 248, 0.9);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.2s;
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery__thumb {
  width: 84px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card);
  border: 1px solid transparent;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); }

.product__info { position: sticky; top: calc(var(--header-h) + 32px); }
.product__title { margin-top: 12px; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.product__desc { margin-top: 18px; color: var(--ink-2); font-weight: 300; font-size: 1.05rem; }
.product__cta { display: grid; gap: 10px; margin-top: 32px; }

.specs { margin-top: 36px; border-top: 1px solid var(--line); }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }
.product__note { margin-top: 20px; font-size: 0.88rem; font-weight: 300; color: var(--muted); }

.related { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.related__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.related__head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.related__head a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(251, 250, 248, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 1000px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  user-select: none;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  transition: border-color 0.2s;
}
.lightbox__btn:hover { border-color: var(--ink); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* İletişim --------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: stretch;
  padding-bottom: clamp(64px, 9vw, 112px);
}
.contact h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 28px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item .icon { margin-top: 3px; width: 22px; height: 22px; color: var(--ink-2); }
.contact-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-item span { font-size: 1.05rem; }
a.contact-item:hover span { text-decoration: underline; text-underline-offset: 4px; }
.contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }

.map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--card);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }

/* 404 */
.notfound { padding-block: clamp(80px, 14vw, 160px); text-align: center; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.notfound p { margin-top: 12px; color: var(--ink-2); font-weight: 300; }
.notfound .btn { margin-top: 28px; }

/* Footer ----------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}
.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 360px; color: var(--ink-2); font-weight: 300; font-size: 0.95rem; }
.footer h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer__list { display: grid; gap: 8px; font-size: 0.95rem; color: var(--ink-2); }
.footer__list a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

/* WhatsApp butonu */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px -8px rgba(31, 174, 91, 0.6);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float .icon { width: 28px; height: 28px; }


/* Online kataloglar ------------------------------------------------------ */
.home {                           /* ana sayfa: kataloglar ekranı dolduracak şekilde ortalanır */
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  justify-content: center;
  gap: clamp(28px, 5.5vw, 88px);
}
.book { position: relative; text-align: center; }
.book:hover, .book:focus-within { z-index: 2; }

/* 3D kitap: normalde düz durur; üzerine gelince kapak açılır ve ilk sayfa görünür. */
.book__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 10 / 13;
  perspective: 1800px;
}
.book__cover::after {             /* zemin gölgesi */
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -18px;
  height: 28px;
  background: radial-gradient(closest-side, rgba(27, 26, 24, 0.28), transparent);
  transition: transform 0.6s var(--ease) 0.35s;
  pointer-events: none;
}
.b3 {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: none;
  transition: transform 0.6s var(--ease) 0.35s;
}
.b3 span { position: absolute; inset: 0; display: block; }
.b3 img { width: 100%; height: 100%; object-fit: cover; }
.b3__back {
  transform: translateZ(calc(var(--t) / -2)) rotateY(180deg);
  background: var(--book);
}
.b3__spine {
  right: auto;
  width: var(--t);
  transform-origin: left center;
  transform: translateZ(calc(var(--t) / -2)) rotateY(-90deg);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.18)),
    var(--book);
}
.b3 .b3__page {
  inset: 3px 4px 3px 0;
  transform: translateZ(calc(var(--t) / 2 - 2px));
  background: var(--bg);
}
.b3__page::after {                 /* cilt tarafında sayfa gölgesi */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 12%);
}
.b3__cover {
  transform-origin: left center;
  transform: translateZ(calc(var(--t) / 2));
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
}
.b3__front, .b3__inside {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.b3__front { background: var(--book); }
.b3__front::before {               /* cilt kırımı */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.12) 45%, rgba(0, 0, 0, 0.06) 70%, transparent);
}
.b3__inside {
  transform: rotateY(180deg);
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.22), transparent 18%), var(--book);
}

@media (hover: hover) {
  .book:hover .b3,
  .book__cover:focus-visible .b3 {
    transform: rotateY(0deg) translateX(25%);
    transition-delay: 0s;
  }
  .book:hover .book__cover::after,
  .book__cover:focus-visible::after {
    transform: translateX(25%) scaleX(1.25);
    transition-delay: 0s;
  }
  .book:hover .b3__cover,
  .book__cover:focus-visible .b3__cover {
    transform: translateZ(calc(var(--t) / 2)) rotateY(-128deg);
    transition: transform 0.85s var(--ease) 0.15s;
  }
}

.book__title {
  margin-top: 22px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.book__meta { margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.book__actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 14px;
}
.book__actions button,
.book__actions a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.book__actions a { color: var(--ink-2); border-color: var(--line); }
.book__actions a:hover { color: var(--ink); border-color: var(--ink); }
.book__actions span { margin-left: 4px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }

/* Katalog görüntüleyici */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: #e9e6e0;
}
.viewer[hidden] { display: none; }
.viewer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding-inline: var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.viewer__title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewer__count { font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer__actions { display: flex; justify-content: flex-end; gap: 8px; }
.viewer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: border-color 0.2s;
}
.viewer__btn:hover { border-color: var(--ink); }
.viewer__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 24px 72px;
}
.viewer__book { filter: drop-shadow(0 18px 28px rgba(27, 26, 24, 0.22)); }
.viewer__book .page { background: var(--bg); overflow: hidden; }
.viewer__book .page img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  transform: translateY(-50%);
  transition: border-color 0.2s, opacity 0.2s;
}
.viewer__nav:hover:not(:disabled) { border-color: var(--ink); }
.viewer__nav:disabled { opacity: 0.3; cursor: default; }
.viewer__nav--prev { left: 14px; }
.viewer__nav--next { right: 14px; }
.viewer__hint { padding: 0 16px 16px; text-align: center; font-size: 0.8rem; color: var(--muted); }

/* Sayfa geçişi ------------------------------------------------------------
   Bağlantıya tıklayınca sayfa bulanıklaşır, ortada logo belirir; yeni sayfa
   açılınca logo yukarı süzülerek kaybolur ve bulanıklık kalkar. */
.pt {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(251, 250, 248, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.pt__inner { display: grid; justify-items: center; gap: 22px; }
.pt__logo { width: clamp(150px, 16vw, 200px); height: auto; }
.pt__line {
  position: relative;
  width: 120px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.pt__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Çıkış: perde kapanır, logo soldan sağa açılarak belirir */
.pt.is-active,
.pt-in .pt {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease);
}
.pt.is-active .pt__logo { animation: pt-logo-in 0.6s var(--ease) both; }
.pt.is-active .pt__line { animation: pt-fade-in 0.4s var(--ease) 0.2s both; }
.pt.is-active .pt__line::after,
.pt-in .pt__line::after { animation: pt-line 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.25s infinite; }

/* Giriş: logo yukarı süzülerek kaybolur, perde açılır */
.pt-out .pt { opacity: 0; transition: opacity 0.6s var(--ease) 0.15s; }
.pt-out .pt__inner { animation: pt-logo-out 0.5s var(--ease) both; }

@keyframes pt-logo-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes pt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pt-logo-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes pt-line {
  0%    { transform: scaleX(0); transform-origin: left center; }
  50%   { transform: scaleX(1); transform-origin: left center; }
  50.1% { transform: scaleX(1); transform-origin: right center; }
  100%  { transform: scaleX(0); transform-origin: right center; }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .product, .contact { grid-template-columns: 1fr; }
  .product__info { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .map { min-height: 340px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .logo img { height: 28px; }
  .nav { gap: 16px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.08em; }
  .nav a.nav__icon { display: none; }      /* Instagram altbilgide de var */

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .card__body { flex-direction: column; gap: 0; padding-top: 12px; }
  .card__title { font-size: 0.98rem; }

  .toolbar__inner { flex-direction: column; align-items: stretch; gap: 4px; padding-block: 8px 12px; }
  .tabs { justify-content: space-between; }
  .tab { font-size: 0.78rem; letter-spacing: 0.08em; }
  .search input { width: 100%; }

  .gallery__thumb { width: 64px; }
  .gallery__nav { width: 38px; height: 38px; }
  .contact__actions { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }

  .home { min-height: 0; }
  .books { grid-template-columns: min(290px, 78%); gap: 56px; }

  .viewer__bar { grid-template-columns: 1fr auto; height: 56px; }
  .viewer__count { display: none; }
  .viewer__btn span { display: none; }
  .viewer__stage { padding: 12px 12px 76px; }
  .viewer__nav { top: auto; bottom: 16px; transform: none; }
  .viewer__nav--prev { left: calc(50% - 64px); }
  .viewer__nav--next { right: calc(50% - 64px); }
  .viewer__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .pt { display: none; }
}
