:root {
  --cream: #f8f1e6;
  --cream-2: #f1e6d4;
  --ink: #2b2118;
  --brown: #6b4a2b;
  --gold: #b8894f;
  --gold-2: #d9b27a;
  --sage: #7d8466;
  --muted: #8a7a68;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .9, .25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at 50% 35%, #fffaf2 0%, var(--cream) 55%, var(--cream-2) 100%) fixed;
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 32px;
}
.logo img { height: 64px; display: block; }
.nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav-right { justify-content: flex-end; align-items: center; }
.nav a { color: var(--muted); transition: color .3s; position: relative; }
.nav a:hover, .nav a.active { color: var(--brown); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
}
.cart-btn { display: flex; align-items: center; gap: 8px; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--brown); }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px;
  background: var(--brown); color: var(--cream); font-size: 11px; letter-spacing: 0;
  transition: transform .4s var(--ease);
}
.cart-count.bump { transform: scale(1.4); }

/* ---------- Stage / rack ---------- */
.stage { position: relative; height: calc(100svh - 44px); margin-bottom: 44px; scroll-snap-align: start; }
body.lock { overflow: hidden; }
.rack-wrap {
  position: absolute; left: 0; right: 0; top: 18vh; height: 58vh;
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .8s var(--ease);
}
/* Ray görseli (img/ray.webp, 2000x144): uçlardaki tutucular sabit kalır, ortadaki çubuk uzar.
   40px yükseklikte çubuğun ortası 22px'te — kancalar tam üstüne oturur */
.rail {
  position: absolute; left: 3%; right: 3%; top: -17px; height: 40px;
  border-style: solid; border-width: 0 56px;
  border-image: url(img/ray.webp) 0 200 0 200 fill / 0 56px / 0 stretch;
  filter: drop-shadow(0 6px 6px rgba(107, 74, 43, .18));
  transform-origin: 50% 50%;
}

.rack {
  list-style: none; position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start;
  padding: 0 6%;
}
.item {
  --w: 250px;
  position: relative; flex: 0 1 150px; min-width: 0; height: 100%;
  perspective: 1400px;
  transition: flex-basis .8s var(--ease), opacity .5s;
  pointer-events: none;                 /* boş alan seçmesin; yalnızca kıyafet görseli tetikler */
}
.item .garment img { pointer-events: auto; }
.item.hidden { display: none; }
.garment {
  /* Görsel askılı çekildi: görselin tepesi kancanın tepesi — kanca rayın üstünden geçer */
  --gw: calc(var(--w) * var(--s, 1));
  position: absolute; left: 50%; top: -10px; width: var(--gw); margin-left: calc(var(--gw) / -2);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease), filter .6s var(--ease);
  filter: drop-shadow(0 16px 16px rgba(80, 55, 30, .2)) brightness(.93) saturate(.92);
}
/* Hiçbir ürün seçili değilken hepsi aynı boyda, düz asılı */
.garment { transform: scale(.86); }
.item.left .garment { transform: rotateY(18deg) scale(.8); }
.item.right .garment { transform: rotateY(-18deg) scale(.8); }
.garment img { position: relative; width: 100%; display: block; user-select: none; -webkit-user-drag: none; cursor: pointer; }
.item.focus { flex-basis: 330px; flex-shrink: 0; }
.item.focus .garment {
  transform: rotateY(0) translateZ(40px);
  filter: drop-shadow(0 28px 26px rgba(80, 55, 30, .28));
}
.item.focus .garment img { animation: sway 2.6s ease-in-out .8s infinite alternate; transform-origin: 50% 0; }
@keyframes sway { from { transform: rotateZ(-1deg); } to { transform: rotateZ(1deg); } }

.rack-info {
  position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: opacity .5s;
}
.hover-name { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); min-height: 26px; transition: opacity .3s; }

.pill {
  border: 1px solid var(--gold); border-radius: 999px; padding: 10px 26px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown);
  transition: background .3s, color .3s, transform .3s;
}
#openBtn { transition: opacity .4s, background .3s, color .3s; }
#openBtn.off { opacity: 0; pointer-events: none; }
.pill:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.pill.solid { background: var(--brown); color: var(--cream); border-color: var(--brown); padding: 14px 40px; }
.pill.solid:hover { background: var(--gold); border-color: var(--gold); }

/* ---------- Detail ---------- */
.stage.is-detail .rack-wrap { opacity: 0; filter: blur(8px); transform: scale(.96); pointer-events: none; }
.stage.is-detail .rack-info { opacity: 0; pointer-events: none; }

.detail {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  padding: 110px 8vw 30px; gap: 4vw;
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.stage.is-detail .detail { opacity: 1; pointer-events: auto; }

.ghosts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ghost {
  position: absolute; top: 22vh; width: 300px; opacity: .35; filter: blur(10px) saturate(.8);
  transition: transform 1s var(--ease), opacity 1s;
}
.ghost.l { left: 2vw; transform: rotateY(-50deg) scale(.85); }
.ghost.r { right: 2vw; transform: rotateY(50deg) scale(.85); }

.detail-hanger { --bw: min(46vh, 34vw); position: relative; justify-self: center; width: var(--bw); }
/* Detayda kanca kısa bir ray parçasına takılı */
.detail-rail {
  position: absolute; left: -22%; right: -22%; top: calc(var(--bw) * .012 - 16px); height: 34px;
  border-style: solid; border-width: 0 48px;
  border-image: url(img/ray.webp) 0 200 0 200 fill / 0 48px / 0 stretch;
  filter: drop-shadow(0 5px 5px rgba(107, 74, 43, .16));
}
.detail-img-box {
  position: relative; z-index: 1; overflow: hidden; border-radius: 4px;
  filter: drop-shadow(0 30px 30px rgba(80, 55, 30, .22));
}
.detail-img-box img {
  width: 100%; display: block; transition: transform .8s var(--ease), opacity .45s var(--ease);
  transform-origin: 50% 58%;
}
.detail-img-box.zoom img { transform: scale(1.9); }
.detail-img-box img.out-l { opacity: 0; transform: translateX(-30%) rotateY(30deg) scale(.9); }
.detail-img-box img.out-r { opacity: 0; transform: translateX(30%) rotateY(-30deg) scale(.9); }

.tag {
  position: absolute; right: -34px; top: 22%; width: 46px; padding: 18px 0 12px; border-radius: 4px 4px 6px 6px;
  background: linear-gradient(#f3e3c4, #d9b27a); color: var(--brown);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform-origin: 50% 0; animation: tag 3s ease-in-out infinite alternate;
  box-shadow: 0 6px 12px rgba(107, 74, 43, .2);
}
.tag::before { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); }
.tag span { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 700; letter-spacing: .2em; font-size: 12px; }
.tag b { font-size: 10px; writing-mode: vertical-rl; }
@keyframes tag { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }

.detail-text { display: flex; flex-direction: column; gap: 22px; max-width: 420px; }
.detail-text > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stage.is-detail .detail-text > * { opacity: 1; transform: none; }
.stage.is-detail .detail-text > *:nth-child(2) { transition-delay: .08s; }
.stage.is-detail .detail-text > *:nth-child(3) { transition-delay: .16s; }
.stage.is-detail .detail-text > *:nth-child(4) { transition-delay: .24s; }
.stage.is-detail .detail-text > *:nth-child(5) { transition-delay: .32s; }
.detail-text h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; color: var(--ink); }
.price { font-size: 20px; color: var(--brown); letter-spacing: .04em; }
.toggle { display: inline-flex; align-self: flex-start; border: 1px solid var(--gold-2); border-radius: 999px; padding: 3px; }
.toggle button { padding: 7px 20px; border-radius: 999px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: background .3s, color .3s; }
.toggle button.on { background: var(--brown); color: var(--cream); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { border: 1px solid #e0cfb3; padding: 9px 14px; border-radius: 6px; font-size: 13px; color: var(--muted); transition: all .25s; }
.sizes button:hover { border-color: var(--gold); color: var(--brown); }
.sizes button.on { border-color: var(--brown); color: var(--brown); background: #fff8ec; }
.detail-text .pill.solid { align-self: flex-start; }

.close { position: absolute; top: 108px; right: 32px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--brown); font-size: 16px; transition: transform .4s var(--ease), background .3s; z-index: 3; }
.close:hover { transform: rotate(90deg); background: #fff8ec; }
.arrow { position: absolute; top: 50%; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; color: var(--brown); border: 1px solid var(--gold-2); background: rgba(255, 250, 242, .7); z-index: 3; transition: background .3s; }
.arrow:hover { background: var(--brown); color: var(--cream); }
.arrow.prev { left: 20px; } .arrow.next { right: 20px; }

/* Rack -> detail flight */
.flyer { position: fixed; z-index: 40; pointer-events: none; transition: all .8s var(--ease); filter: drop-shadow(0 30px 30px rgba(80, 55, 30, .22)); }

/* ---------- Marquee ---------- */
.marquee {
  position: fixed; left: 0; right: 0; bottom: 0; height: 44px; overflow: hidden; z-index: 30;
  background: linear-gradient(90deg, #a87d45, #d9b27a 50%, #a87d45);
  display: flex; align-items: center;
}
.marquee-track { display: flex; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 17px; color: #fffaf0; padding: 0 22px; letter-spacing: .06em; }
.marquee-track span.dot { padding: 0; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

.toast {
  position: fixed; left: 50%; bottom: 70px; transform: translate(-50%, 20px); opacity: 0; z-index: 120; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 24px; border-radius: 999px; font-size: 14px;
  transition: all .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .top { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .nav-left { display: none; }
  .logo img { height: 52px; }
  .nav-right a { display: none; }
  .rack { justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 0 40vw; scrollbar-width: none; }
  .rack::-webkit-scrollbar { display: none; }
  .item { --w: 210px; flex-basis: 120px; flex-shrink: 0; }
  .item.focus { flex-basis: 230px; }
  .detail { grid-template-columns: 1fr; padding: 90px 16px 20px; gap: 18px; align-content: start; overflow-y: auto; }
  .detail-hanger { --bw: min(70vw, 300px); margin-top: 16px; }
  .detail-text { max-width: none; gap: 14px; }
  .close { top: 80px; right: 16px; }
  .arrow { top: 34%; }
  .arrow.prev { left: 8px; } .arrow.next { right: 8px; }
  .ghost { display: none; }
}


/* ---------- Yükleme ekranı ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #fffaf2 0%, var(--cream) 60%, var(--cream-2) 100%);
  transition: opacity 1s var(--ease), filter 1s var(--ease), visibility 0s 1s;
}
.loader.out { opacity: 0; filter: blur(12px); visibility: hidden; }
/* Yükleme: yapraklar logonun üstüne yağar */
.petal-rain { position: fixed; inset: 0; z-index: 101; pointer-events: none; overflow: hidden; transition: opacity 1.2s; }
.petal-rain.fade { opacity: 0; }
.petal-rain .petal { animation: shower var(--dur) cubic-bezier(.35, .05, .65, 1) var(--d) forwards; }
@keyframes shower {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  12% { opacity: 1; }
  80% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), 105vh) rotate(var(--r)); }
}
.loader-logo {
  width: min(440px, 78vw); opacity: 0; filter: blur(22px); transform: scale(1.06);
  animation: logoIn 1s cubic-bezier(.25, .8, .25, 1) .1s forwards;
}
@keyframes logoIn {
  35% { opacity: 1; filter: blur(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- Giriş bölümü (hero) ---------- */
.hero {
  --p: 0;                                  /* kaydırma ilerlemesi 0 → 1 (JS) */
  position: relative; height: 100svh; overflow: hidden; scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3vw;
  padding: 100px 6vw 70px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: #f3d9c4; }
.hero-bg i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 10vh; background: #ead7b2; animation-delay: -6s; }
.hero-bg i:nth-child(3) { width: 30vw; height: 30vw; left: 35vw; bottom: -14vw; background: #f1e1d0; animation-delay: -11s; }
@keyframes drift { to { transform: translate(4vw, 3vh) scale(1.12); } }

/* Kaydırınca metin yukarı kayıp bulanıklaşır */
.hero-text {
  justify-self: start; max-width: 430px; position: relative; z-index: 2;
  transform: translateY(calc(var(--p) * -60px)); opacity: calc(1 - var(--p) * 1.6);
  filter: blur(calc(var(--p) * 8px));
}
.hero-kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero-title {
  font-family: "Pinyon Script", var(--serif); font-weight: 400; color: var(--brown);
  font-size: clamp(64px, 8.6vw, 132px); line-height: .92; margin-left: -6px;
}
.hero-title .w { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(8px); }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--muted); margin: 22px 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-price { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-kicker, .hero-sub, .hero-actions { opacity: 0; transform: translateY(12px); }

/* Ortada kısa bir ray: kıyafet yukarıdan inip askıya takılır ve sallanır */
.hero-hang {
  --hw: min(400px, 30vw);
  position: relative; z-index: 1; width: var(--hw); align-self: center; margin-top: 4vh;
  display: flex; flex-direction: column; align-items: center;
  transform: translateY(calc(var(--p) * 22vh)) scale(calc(1 - var(--p) * .1));
  opacity: calc(1 - var(--p) * 1.3);
}
.hero-rail {
  width: 150%; height: 36px; margin-bottom: -28px; position: relative; z-index: 0;
  border-style: solid; border-width: 0 50px;
  border-image: url(img/ray.webp) 0 200 0 200 fill / 0 50px / 0 stretch;
  filter: drop-shadow(0 6px 6px rgba(107, 74, 43, .18));
  transform: scaleX(0);
}
.hang-item {
  position: relative; z-index: 1; width: 92%; transform-origin: 50% 0;
  opacity: 0; transform: translateY(-60px); filter: blur(10px) drop-shadow(0 22px 24px rgba(80, 55, 30, .25));
}
.hero-links {
  display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center;
  opacity: 0; transform: translateY(12px);
}
.hero-links a {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brown);
  padding: 11px 22px; border: 1px solid var(--gold-2); border-radius: 999px; background: rgba(255, 250, 242, .6);
  backdrop-filter: blur(6px); transition: background .3s, color .3s, border-color .3s;
}
.hero-links a:hover { background: var(--brown); color: var(--cream); border-color: var(--brown); }

/* Not kartı */
.note {
  justify-self: end; width: 230px; padding: 22px 22px 18px; background: #fbf5ea; color: var(--brown);
  box-shadow: 0 20px 40px rgba(80, 55, 30, .16); border-radius: 3px;
  transform: rotate(4deg); opacity: 0;
}
.note-head { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.note-line { font-family: var(--serif); font-style: italic; font-size: 18px; border-bottom: 1px solid #ead9bf; padding: 6px 0; }
.note-line span { display: block; font-family: var(--sans); font-style: normal; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.note-sign { font-family: "Pinyon Script", var(--serif); font-size: 34px; text-align: right; margin-top: 8px; color: var(--gold); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--brown); opacity: 0;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue i { width: 1.5px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Oynatma: yükleme bitince sırayla */
body.hero-play .hero-title .ch { animation: chIn .9s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * 55ms); }
@keyframes chIn { to { opacity: 1; transform: none; filter: blur(0); } }
body.hero-play .hero-kicker { animation: fadeUp .8s var(--ease) .1s forwards; }
body.hero-play .hero-sub { animation: fadeUp .8s var(--ease) 1s forwards; }
body.hero-play .hero-actions { animation: fadeUp .8s var(--ease) 1.2s forwards; }
body.hero-play .hero-rail { animation: railIn 1s cubic-bezier(.77, 0, .18, 1) .2s forwards; }
body.hero-play .hang-item { animation: hangIn 2.2s cubic-bezier(.2, .8, .2, 1) .7s forwards; }
body.hero-play .hero-links { animation: fadeUp .8s var(--ease) 1.6s forwards; }
body.hero-play .note { animation: noteIn 1.2s var(--ease) 1.6s forwards; }
body.hero-play .scroll-cue { animation: cueIn .8s var(--ease) 2s forwards; }
@keyframes railIn { to { transform: scaleX(1); } }
/* Askıya takılıp sönümlenerek sallanır */
@keyframes hangIn {
  0% { opacity: 0; transform: translateY(-60px) rotate(0); filter: blur(10px) drop-shadow(0 22px 24px rgba(80, 55, 30, .25)); }
  35% { opacity: 1; transform: translateY(0) rotate(4deg); filter: blur(0) drop-shadow(0 22px 24px rgba(80, 55, 30, .25)); }
  55% { transform: rotate(-2.4deg); }
  72% { transform: rotate(1.2deg); }
  86% { transform: rotate(-.5deg); }
  100% { opacity: 1; transform: rotate(0); filter: blur(0) drop-shadow(0 22px 24px rgba(80, 55, 30, .25)); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cueIn { to { opacity: 1; } }
@keyframes noteIn { from { opacity: 0; transform: rotate(12deg) translate(40px, 30px); } to { opacity: 1; transform: rotate(4deg); } }

/* Animasyon bitince kaydırmaya bağlanır: not kartı ve ipucu kaybolur */
.hero .hang-item.done, .hero .hero-rail.done, .hero .hero-links.done { animation: none; opacity: 1; transform: none; filter: drop-shadow(0 22px 24px rgba(80, 55, 30, .25)); }
.hero .hero-rail.done { filter: drop-shadow(0 6px 6px rgba(107, 74, 43, .18)); }
.hero .note.done { animation: none; opacity: calc(1 - var(--p) * 1.6); transform: rotate(4deg) translateY(calc(var(--p) * -80px)); }
.hero .scroll-cue.done { animation: none; opacity: calc(1 - var(--p) * 3); }

/* Yapraklar */
.intro-petals { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.petal {
  position: absolute; top: -40px; width: var(--sz); height: calc(var(--sz) * .62);
  border-radius: 100% 0 100% 0; opacity: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, .55), transparent 60%), var(--c);
  box-shadow: inset -2px -3px 6px rgba(120, 80, 40, .22), 0 2px 4px rgba(80, 55, 30, .12);
  animation: fall var(--dur) linear var(--d) infinite;
}
@keyframes fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  10% { opacity: .9; }
  50% { transform: translate(var(--dx), 55vh) rotate(200deg); }
  90% { opacity: .8; }
  100% { opacity: 0; transform: translate(calc(var(--dx) * -.4), 110vh) rotate(420deg); }
}

/* Askı bölümü görünür olunca: ray uzar, kıyafetler raya kayarak gelir */
.stage:not(.rack-in) .rail { transform: scaleX(0); }
.rail { transition: transform 1.2s cubic-bezier(.77, 0, .18, 1) .1s; }
.stage:not(.rack-in) .item { opacity: 0; transform: translateX(28vw); }
.stage.rack-play .item {
  transition: transform 1.3s var(--ease), opacity .9s var(--ease), flex-basis .8s var(--ease);
  transition-delay: calc(.4s + var(--k) * 90ms);
}
.stage:not(.rack-in) .rack-info { opacity: 0; }
.rack-info { transition: opacity .9s var(--ease) .9s; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 84px 16px 70px; gap: 0; }
  .hero-text { max-width: none; }
  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 18px; margin: 12px 0 18px; }
  .hero-hang { --hw: min(260px, 66vw); justify-self: center; margin-top: 10px; }
  .hero-links a { padding: 9px 16px; font-size: 11px; }
  .note { display: none; }
  .scroll-cue { bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .hero-title .ch, .hero-kicker, .hero-sub, .hero-actions, .note, .scroll-cue { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .hang-item, .hero-rail, .hero-links { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}

/* ---------- Hakkımızda / İletişim paneli ---------- */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100vw);
  background: #fbf6ec; box-shadow: -30px 0 60px rgba(80, 55, 30, .15);
  padding: 90px 40px 40px; overflow-y: auto;
  transform: translateX(105%); transition: transform .7s var(--ease);
}
.panel.open { transform: none; }
.panel-veil { position: fixed; inset: 0; z-index: 55; background: rgba(43, 33, 24, .25); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .5s; }
.panel-veil.open { opacity: 1; pointer-events: auto; }
.panel-close { position: absolute; top: 26px; right: 26px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--brown); transition: transform .4s var(--ease); }
.panel-close:hover { transform: rotate(90deg); }
.panel-tabs { display: inline-flex; border: 1px solid var(--gold-2); border-radius: 999px; padding: 3px; margin-bottom: 34px; }
.panel-tabs button { padding: 8px 18px; border-radius: 999px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.panel-tabs button.on { background: var(--brown); color: var(--cream); }
.panel-kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.panel h2 { font-family: "Pinyon Script", var(--serif); font-weight: 400; font-size: 46px; line-height: 1.05; color: var(--brown); margin-bottom: 20px; }
.panel-body p:not(.panel-kicker) { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink); margin-bottom: 14px; }
.panel-body[data-body="contact"] p:not(.panel-kicker) { border-bottom: 1px solid #ead9bf; padding-bottom: 12px; }
.panel-body p span { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .panel { padding: 80px 22px 30px; } }

/* ---------- Sepet paneli ---------- */
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100vw);
  background: #fbf6ec; box-shadow: -30px 0 60px rgba(80, 55, 30, .15);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .7s var(--ease);
}
.cart.open { transform: none; }
.cart-head { display: flex; align-items: baseline; gap: 12px; padding: 30px 28px 18px; position: relative; }
.cart-head h2 { font-family: "Pinyon Script", var(--serif); font-weight: 400; font-size: 44px; color: var(--brown); line-height: 1; }
.cart-n { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cart-head .panel-close { top: 24px; right: 22px; }
.cart-ship { margin: 0 28px; font-size: 13px; color: var(--muted); }
.cart-ship:empty { display: none; }
.cart-ship b { color: var(--brown); }
.cart-ship i { display: block; height: 3px; border-radius: 2px; background: #eadbc2; margin: 10px 0 6px; position: relative; overflow: hidden; }
.cart-ship i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .6s var(--ease); }
.cart-list { list-style: none; flex: 1; overflow-y: auto; padding: 10px 28px; }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ecdfc9; animation: ciIn .5s var(--ease); }
@keyframes ciIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item img { width: 78px; height: 86px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(80, 55, 30, .18)); }
.ci-name { font-family: var(--serif); font-size: 18px; line-height: 1.15; color: var(--ink); }
.ci-size { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid #e0cfb3; border-radius: 999px; }
.ci-qty button { width: 30px; height: 28px; color: var(--brown); font-size: 16px; }
.ci-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.ci-side b { font-weight: 500; color: var(--brown); }
.ci-remove { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.ci-remove:hover { color: var(--brown); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 0 28px 80px; color: var(--muted); }
.cart-empty[hidden] { display: none; }
.cart-empty-title { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink); }
.cart-empty .pill { margin-top: 12px; }
.cart-foot { padding: 20px 28px 26px; border-top: 1px solid #e6d6bb; background: #f8f0e2; }
.cart-foot[hidden] { display: none; }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.cart-row.muted { color: var(--muted); }
.cart-row.total { font-size: 17px; padding-top: 10px; margin-top: 6px; border-top: 1px dashed #dcc9a8; }
.cart-row.total b { font-weight: 600; color: var(--brown); }
.cart-checkout { width: 100%; margin-top: 16px; }
.cart-secure { text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-top: 10px; }
#cartVeil { z-index: 55; }
