/* LOFT · aydınlık editoryal mobilya vitrini
   Yalnız html[data-tema="loft"] altında geçerlidir; Sade Katalog'u etkilemez. */

html[data-tema="loft"] {
  --bg: #faf8f4;
  --bg-2: #f0ebe3;
  --ink: #1e1b18;
  --ink-2: #4f4943;
  --ink-3: #8a837b;
  --line: #e4ddd2;
  --accent: #c9962b;      /* hardal: tek vurgu */
  --accent-ink: #1e1b18;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --hero-r: 28px;
  --gutter: clamp(12px, 2vw, 24px);
}

/* Üstteki örnek bandı ilk ekrandan kaldırılır; aynı bilgi hero'nun altında verilir. */
html[data-tema="loft"] body > .notice { display: none; }

html[data-tema="loft"] .btn { min-height: 48px; padding: 0 24px; font-weight: 600; }
html[data-tema="loft"] .btn--accent:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ——— Navigasyon ——— */

.lf-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 calc(var(--gutter) + 14px);
  background: #fff;
}

.lf-links { display: flex; gap: 26px; font-size: 14px; }
.lf-links--right { justify-content: flex-end; }
.lf-links a { color: var(--ink-2); text-decoration: none; }
.lf-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.lf-wordmark {
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 21px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

/* ——— Hero ——— */

.lf-hero {
  position: relative;
  margin: 0 var(--gutter);
  height: clamp(540px, calc(100vh - 92px), 880px);
  border-radius: var(--hero-r);
  overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}

.lf-hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 58%;
}

.lf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(20, 16, 12, .42) 0%, rgba(20, 16, 12, .12) 34%, rgba(20, 16, 12, 0) 56%);
  pointer-events: none;
}

.lf-hero-copy {
  position: absolute;
  left: clamp(24px, 4vw, 60px);
  top: clamp(28px, 5.5vw, 72px);
  max-width: min(620px, 80%);
  color: #fff;
}

.lf-hero-copy h1 {
  font: 600 clamp(42px, 6.4vw, 96px)/.98 var(--display);
  letter-spacing: -.04em;
  text-wrap: balance;
}

.lf-hero-copy p {
  margin-top: 16px;
  max-width: 34ch;
  font-size: clamp(15px, 1.3vw, 18px);
  opacity: .92;
}

/* Sol alt iç köşeden fotoğrafa giren kavisli ürün paneli */
.lf-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(450px, calc(100% - 56px));
  padding: 28px 32px 30px clamp(24px, 3vw, 34px);
  background: var(--bg);
  border-top-right-radius: var(--hero-r);
}

/* İç bükey kavisler: panelin üstünde ve sağında fotoğrafı yumuşakça panele bağlar */
.lf-panel::before,
.lf-panel::after {
  content: "";
  position: absolute;
  width: var(--hero-r);
  height: var(--hero-r);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--hero-r) - .5px), var(--bg) var(--hero-r));
  pointer-events: none;
}

.lf-panel::before { left: 0; bottom: 100%; }
.lf-panel::after { left: 100%; bottom: 0; }

.lf-panel-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lf-panel-title { margin-top: 8px; font: 650 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: -.025em; }
.lf-panel-meta { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.lf-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.lf-panel-price { font-size: 14px; color: var(--ink-2); }

/* Sağ alt: mini ürün görselli detay düğmesi */
.lf-peek {
  position: absolute;
  right: clamp(16px, 2.4vw, 30px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px 7px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: left;
  box-shadow: 0 14px 30px -18px rgba(20, 16, 12, .6);
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.lf-peek:hover { transform: translateY(-2px); background: #fff; }
.lf-peek img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.lf-peek span { display: flex; flex-direction: column; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.lf-peek small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.lf-peek i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-style: normal;
}

.lf-sample {
  margin: 18px auto 0;
  padding: 0 24px;
  max-width: 760px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}

.lf-sample strong { color: var(--ink-2); }
.lf-sample a { color: var(--ink-2); text-underline-offset: 3px; white-space: nowrap; }

/* ——— Ortalı tipografi ——— */

.lf-intro {
  padding: clamp(80px, 11vw, 150px) 24px clamp(48px, 6vw, 80px);
  text-align: center;
}

.lf-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.lf-intro h2 {
  max-width: 19ch;
  margin: 18px auto 0;
  font: 600 clamp(32px, 4.4vw, 60px)/1.06 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lf-intro p { max-width: 52ch; margin: 22px auto 0; color: var(--ink-2); font-size: 17px; }

/* Satır içi transparan ürün görselleri */
.lf-intro h2 { max-width: 21ch; }

.lf-inline {
  display: inline-block;
  width: auto;
  height: 1.12em;
  margin: 0 .06em;
  vertical-align: -.2em;
  filter: drop-shadow(0 .08em .1em rgba(30, 27, 24, .22));
  transition: transform .4s var(--ease);
}

.lf-inline:hover { transform: rotate(-4deg) scale(1.06); }

/* ——— Asimetrik mozaik ——— */

.lf-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(240px, 27vw, 380px));
  gap: 14px;
  margin: 0 var(--gutter);
}

.lf-tile {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  text-align: left;
  color: #fff;
}

.lf-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
button.lf-tile:hover img { transform: scale(1.035); }

.lf-tile--a { grid-column: 1 / 6; grid-row: 1 / 3; }
.lf-tile--b { grid-column: 6 / 13; grid-row: 1; }
.lf-tile--c { grid-column: 6 / 9; grid-row: 2; }
.lf-tile--d { grid-column: 9 / 13; grid-row: 2; }

.lf-tile-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
}

.lf-tile-cap span { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.lf-tile-cap small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.lf-tile-cap i {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-style: normal;
}

/* Sahne fotoğrafları tıklanmaz; başlık hapı sola yaslanır */
.lf-tile-cap--scene { right: auto; padding-right: 18px; }

/* ——— Koleksiyon listesi ——— */

.lf-list { padding: clamp(80px, 9vw, 120px) var(--gutter) 40px; }

.lf-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 22px;
}

.lf-list-head h2 { font: 600 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -.03em; }
.lf-list-head p { color: var(--ink-3); font-size: 14px; }

.lf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.lf-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: #fff;
  text-align: left;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.lf-card:hover { border-color: #d2c8b8; box-shadow: 0 20px 40px -30px rgba(20, 16, 12, .5); }
.lf-card-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.lf-card-media img { width: 100%; height: 100%; object-fit: cover; }
.lf-card-media .tag { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); border-color: transparent; color: var(--ink-2); }
.lf-card-body { padding: 16px 8px 8px; }
.lf-card-cat { font-size: 12.5px; color: var(--ink-3); }
.lf-card-name { margin-top: 2px; font-weight: 650; font-size: 19px; letter-spacing: -.015em; }
.lf-card-dims { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.lf-card-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--accent); }

/* ——— İletişim ——— */

.lf-contact { padding: clamp(80px, 10vw, 130px) 24px; text-align: center; }
.lf-contact h2 { font: 600 clamp(30px, 4vw, 54px)/1.05 var(--display); letter-spacing: -.035em; }
.lf-contact p { max-width: 50ch; margin: 18px auto 0; color: var(--ink-2); }
.lf-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* ——— Ürün detayı LOFT tipografisi ——— */

html[data-tema="loft"] .detail-name { font-weight: 650; font-size: 38px; letter-spacing: -.03em; }
html[data-tema="loft"] .info-body h2 { font-weight: 650; font-size: 28px; letter-spacing: -.02em; }

/* ——— Duyarlı ——— */

@media (max-width: 900px) {
  .lf-links--left { display: none; }
  .lf-nav { grid-template-columns: 1fr auto; }
  .lf-wordmark { text-align: left; max-width: 60vw; }

  .lf-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: clamp(300px, 70vw, 520px) repeat(2, clamp(200px, 40vw, 320px)); }
  .lf-tile--a { grid-column: 1 / 3; grid-row: 1; }
  .lf-tile--b { grid-column: 1 / 3; grid-row: 2; }
  .lf-tile--c { grid-column: 1 / 2; grid-row: 3; }
  .lf-tile--d { grid-column: 2 / 3; grid-row: 3; }

  .lf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  html[data-tema="loft"] { --hero-r: 22px; }
  .lf-nav { min-height: 60px; padding: 0 calc(var(--gutter) + 6px); }
  .lf-wordmark { font-size: 16px; letter-spacing: .065em; white-space: normal; overflow-wrap: anywhere; max-width: none; line-height: 1.15; }
  .lf-links { gap: 16px; }

  .lf-hero { height: auto; min-height: calc(100svh - 76px); max-height: 760px; }
  .lf-hero-img { object-position: 73% center; }
  .lf-hero-copy { right: 22px; max-width: none; }
  .lf-hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
  .lf-panel { width: calc(100% - 36px); padding: 22px 20px 22px 20px; }
  .lf-panel-actions .btn { flex: 1 1 100%; }
  .lf-peek { display: none; }

  .lf-intro { padding-left: 16px; padding-right: 16px; }
  .lf-intro p { font-size: 16px; }

  .lf-mosaic { gap: 10px; }
  .lf-tile--c .lf-tile-cap, .lf-tile--d .lf-tile-cap { left: 8px; right: 8px; bottom: 8px; padding: 8px 8px 8px 12px; }
  .lf-tile-cap i { width: 28px; height: 28px; }

  .lf-cards { grid-template-columns: 1fr; }
  .lf-list-head { padding: 0 4px 18px; }
  .lf-contact-actions .btn { flex: 1 1 100%; }
}

/* Each line keeps its final dimensions while the letters appear. */
.lf-type-line { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .lf-type-line { animation: lf-type .48s steps(15, end) both; }
  .lf-type-line:last-child { animation-duration: .38s; animation-timing-function: steps(12, end); animation-delay: .48s; }
  .lf-hero-copy p { animation: lf-settle .48s ease-out .6s both; }
  .lf-panel, .lf-peek { animation: lf-settle .55s ease-out .15s backwards; }
}
@keyframes lf-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes lf-settle { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }

/* The tile supplies a stationary timeline. Its image moves inside the crop. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lf-tile { view-timeline-name: --tile; }
    .lf-tile img {
      --dx: 4%; --dy: -3%;
      scale: 1.13;
      animation: lf-drift linear both;
      animation-timeline: --tile;
      animation-range: entry 0% exit 100%;
    }
    .lf-tile--b img { --dx: -4%; --dy: 3%; }
    .lf-tile--c img { --dx: -2%; --dy: -5%; }
    .lf-tile--d img { --dx: 3%; --dy: 4%; }
    .lf-hero { view-timeline-name: --cover; }
    .lf-hero-img {
      animation: lf-cover linear both;
      animation-timeline: --cover;
      animation-range: exit 0% exit 100%;
    }
    .lf-intro { view-timeline-name: --intro; }
    .lf-inline {
      --turn: 9deg;
      animation: lf-turn linear both;
      animation-timeline: --intro;
    }
    .lf-inline:last-of-type { --turn: -9deg; }
  }
}
@keyframes lf-drift {
  from { translate: calc(-1 * var(--dx)) calc(-1 * var(--dy)); }
  to { translate: var(--dx) var(--dy); }
}
@keyframes lf-cover {
  from { transform: scale(1); }
  to { transform: translateY(4%) scale(1.10); }
}
@keyframes lf-turn {
  from { rotate: calc(-1 * var(--turn)); }
  to { rotate: var(--turn); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-tema="loft"] { scroll-behavior: auto; }
  .lf-inline:hover, button.lf-tile:hover img, .lf-peek:hover { transform: none; }
}

.lf-curtain { display:none; }
.lf-tour { position:relative; margin:clamp(50px,7vw,120px) 0; isolation:isolate; background:#241e18; color:white; }
.lf-tour-stage { position:relative; }
.lf-scene { position:relative; min-height:80vh; min-height:80svh; display:flex; align-items:flex-end; isolation:isolate; overflow:hidden; background:#241e18; }
.lf-scene img,.lf-scene::after { position:absolute; inset:0; width:100%; height:100%; z-index:-1; }
.lf-scene img { object-fit:cover; }
.lf-scene::after { content:""; background:linear-gradient(0deg,#100c09ec,transparent 68%); }
.lf-caption { width:min(100%,850px); padding:0 max(6vw,24px) max(8vh,42px); }
.lf-caption p { font-size:.8rem; font-weight:650; letter-spacing:.12em; text-transform:uppercase; margin-bottom:12px; }
.lf-caption h2,.lf-material-copy h2 { font:550 clamp(40px,6vw,86px)/.98 var(--display); letter-spacing:-.055em; margin:0 0 20px; }
.lf-caption span { display:block; font-size:clamp(16px,1.5vw,21px); line-height:1.55; max-width:46ch; }
.lf-tour.is-cinematic { height:320vh; height:320svh; }
.is-cinematic .lf-tour-stage { position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; }
.is-cinematic .lf-scene { position:absolute; inset:0; }
.is-cinematic .lf-scene img { transform:translateX(var(--pan,0%)) scale(var(--zoom,1.06)); }
.is-cinematic .lf-caption { transform:translateY(var(--lift,0px)); opacity:var(--ink-opacity,1); }
@media(max-width:680px) {
 .lf-scene:first-child img { object-position:72% center; }
 .lf-caption { padding-bottom:max(9svh,env(safe-area-inset-bottom)); }
}
.lf-materials { margin:70px auto 100px; width:min(1180px,92%); display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(28px,6vw,100px); align-items:center; }
.lf-material-image { overflow:hidden; border-radius:20px; background:#e3d8c7; }
.lf-material-image img { width:100%; aspect-ratio:1.18; object-fit:cover; display:block; }
.lf-material-copy h2 { margin:16px 0 28px; }
.lf-material-copy h3 { font-size:1.35rem; margin:20px 0 6px; }
.lf-material-copy p { max-width:40ch; }
.lf-swatches { display:flex; flex-wrap:wrap; gap:8px; }
.lf-swatches button { cursor:pointer; font:inherit; border-radius:30px; border:1px solid #c9bdac; background:transparent; color:#302a24; padding:10px 18px; }
.lf-swatches [aria-pressed=true] { background:#302a24; color:white; }
@media(max-width:680px) {
 .lf-materials { grid-template-columns:1fr; margin:42px auto 64px; }
 .lf-material-image img { aspect-ratio:1.45; }

}
@media(prefers-reduced-motion:no-preference){
 .lf-curtain:not([hidden]) { position:fixed; inset:0; z-index:99; pointer-events:none; background:#26201b; color:#faf5e9; display:grid; place-items:center; animation:lf-unveil .64s cubic-bezier(.76,0,.24,1) .74s both; }
 .lf-curtain div { max-width:90%; text-align:center; font:550 clamp(26px,5vw,72px)/1.08 var(--display); letter-spacing:-.045em; animation:lf-settle .48s both; }
 .lf-curtain i { display:block; width:100%; height:2px; margin:16px auto; background:#c9962b; transform-origin:left; animation:lf-stroke .72s ease both; }
 .lf-curtain ~ main .lf-type-line { animation-delay:1s; }
 .lf-curtain ~ main .lf-type-line:last-child { animation-delay:1.48s; }
 @keyframes lf-unveil { from {clip-path:inset(0);} to {clip-path:inset(0 0 100%);} }
 @keyframes lf-stroke { from {transform:scaleX(0);} to {transform:scaleX(1);} }
}


/* Reading order, press feedback and native dialog transitions. */
@media (prefers-reduced-motion:no-preference) {
  html[data-tema="loft"] .lf-arrived {
    animation: lf-arrive .6s cubic-bezier(.18,.75,.22,1) var(--lf-delay,0ms) backwards;
  }
  html[data-tema="loft"] .lf-arrived:focus-within { animation: none; }
  .lf-links a,.lf-sample a {
    background:linear-gradient(currentColor,currentColor) left bottom / 0 1px no-repeat;
    transition:background-size .22s ease;
  }
  .lf-links a:is(:hover,:focus-visible),.lf-sample a:is(:hover,:focus-visible) {
    text-decoration:none; background-size:100% 1px;
  }
  html[data-tema="loft"] :is(.btn,.lf-card,.lf-tile,.lf-peek,.detail-close,.lf-swatches button,.color-options button) {
    transition:scale .16s ease,box-shadow .25s ease,background-color .25s ease,color .2s ease,border-color .2s ease;
  }
  html[data-tema="loft"] :is(button,.btn):active { scale:.975; }
  html[data-tema="loft"] :is(a,button):focus-visible { outline:3px solid #a17320; outline-offset:3px; }
  .lf-tile-cap i,.lf-peek i { transition:translate .24s ease; }
  .lf-card-media img { transition:transform .55s cubic-bezier(.2,.7,.25,1); }
  @media (hover:hover) {
    .lf-card:hover .lf-card-media img { transform:scale(1.045); }
    :is(.lf-tile,.lf-peek):hover i { translate:3px 0; }
    html[data-tema="loft"] .btn:hover { box-shadow:0 4px 14px #35251329; }
  }
  html[data-tema="loft"] .ask-status:not(:empty),
  html[data-tema="loft"] .color-options [aria-pressed=true] { animation:lf-confirm .23s ease-out; }

  @supports (transition-behavior:allow-discrete) {
    html[data-tema="loft"] dialog {
      opacity:0; transform:translateY(13px) scale(.985);
      transition:opacity .19s ease,transform .24s ease,display .24s allow-discrete,overlay .24s allow-discrete;
    }
    html[data-tema="loft"] dialog[open] { opacity:1; transform:none; }
    html[data-tema="loft"] dialog::backdrop {
      opacity:0; transition:opacity .2s ease,display .24s allow-discrete,overlay .24s allow-discrete;
    }
    html[data-tema="loft"] dialog[open]::backdrop { opacity:1; }
    @starting-style {
      html[data-tema="loft"] dialog[open] { opacity:0; transform:translateY(13px) scale(.985); }
      html[data-tema="loft"] dialog[open]::backdrop { opacity:0; }
    }
  }
  @keyframes lf-arrive { from { opacity:.12; translate:0 18px; } to { opacity:1; translate:0 0; } }
  @keyframes lf-confirm { from {scale:.93;opacity:.6;} to {scale:1;opacity:1;} }
}

.basket-open,.basket-controls button { color:inherit; font:inherit; background:transparent; border:1px solid var(--line,#ccc); border-radius:24px; padding:8px 13px; cursor:pointer; }
.basket-line { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--line,#ccc); }
.basket-line img { width:50px; height:58px; object-fit:cover; border-radius:6px; }
.basket-line small { display:block; }
.basket-controls { display:flex; align-items:center; gap:7px; margin-left:auto; }
.basket-controls button:disabled { opacity:.4; }
#basketLines,#basketMessage { margin:18px 0; }
#basketMessage { white-space:pre-line; }
#basketActions[hidden] { display:none; }
#basket .info-body { position:relative; }
@media(max-width:680px){.lf-links--right a[href="#iletisim"] {display:none;} }
#testRecipient:not([hidden]) { display:block; }
#sendBasket[aria-disabled=true] { opacity:.5; cursor:not-allowed; }
