/* Ana vitrin slaytı — ortak iskelet + tema varyantları (.stg--<tema>). JS: stage.js */
@property --stg-b { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --stg-r { syntax: '<length-percentage>'; inherits: false; initial-value: 0%; }
.stg { --stg-ratio: 2.6; --stg-ease: cubic-bezier(.7, 0, .2, 1); --stg-radius: 20px; --stg-accent: var(--c-accent, #2563eb); --stg-ink: #0b0b0c; --stg-paper: #fff;
  position: relative; max-width: 1440px; margin: 20px auto 8px; padding: 0 16px; box-sizing: border-box; isolation: isolate; overflow-x: clip; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.stg * { box-sizing: border-box; }
.stg-track { position: relative; width: 100%; aspect-ratio: var(--stg-ratio); max-height: min(78vh, 760px); border-radius: var(--stg-radius); overflow: hidden; background: color-mix(in srgb, var(--stg-ink) 6%, var(--stg-paper)); }
.stg-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--stg-ease), visibility 0s .9s; }
.stg-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .9s var(--stg-ease), visibility 0s; }
.stg-media { position: absolute; inset: 0; display: block; overflow: hidden; }
.stg-media picture, .stg-media img { display: block; width: 100%; height: 100%; }
.stg-media img { object-fit: cover; -webkit-user-drag: none; }
.stg-cap { position: absolute; left: clamp(16px, 4vw, 56px); bottom: clamp(16px, 4vw, 56px); z-index: 3; max-width: min(560px, 78%); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #fff; pointer-events: none; }
.stg-cap a { pointer-events: auto; }
.stg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stg-title { margin: 0; font-size: clamp(26px, 4.2vw, 60px); line-height: 1; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.stg-text { margin: 0; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.5; opacity: .9; }
.stg-cta { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0b0b0c; font-weight: 700; font-size: 14px; text-decoration: none; }
.stg-cap > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--stg-ease), transform .9s var(--stg-ease); }
.stg-slide.is-active .stg-cap > * { opacity: 1; transform: none; transition-delay: calc(.35s + var(--k, 0) * 90ms); }
.stg-cap > :nth-child(2) { --k: 1; } .stg-cap > :nth-child(3) { --k: 2; } .stg-cap > :nth-child(4) { --k: 3; }
.stg-slide:has(.stg-cap) .stg-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 55%); pointer-events: none; }
.stg-ui { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.stg-count { font-variant-numeric: tabular-nums; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.stg-count b { font-size: 22px; }
.stg-count span { font-size: 13px; opacity: .55; }
.stg-dots { display: flex; gap: 6px; flex: 1; }
.stg-dots button { flex: 1; max-width: 90px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.stg-dots button i { position: absolute; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.stg-dots button i::after { content: ''; position: absolute; inset: 0; background: var(--stg-accent); transform-origin: 0 50%; transform: scaleX(0); }
.stg-dots button[aria-current=true] i::after { transform: scaleX(1); }
.stg.is-playing .stg-dots button[aria-current=true] i::after { animation: stg-prog var(--stg-interval, 6.5s) linear both; }
@keyframes stg-prog { from { transform: scaleX(0); } }
.stg-arrows { display: flex; gap: 8px; }
.stg-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.stg-arrows button:hover { background: var(--stg-accent); border-color: var(--stg-accent); color: #fff; }
.stg-arrows button:active { transform: scale(.92); }
.stg :focus-visible { outline: 2px solid var(--stg-accent); outline-offset: 3px; }

/* —— Varsayılan: yavaş yakınlaşma + parlak geçiş —— */
.stg--default .stg-slide.is-active .stg-media img { animation: stg-kb calc(var(--stg-interval, 6.5s) + 1.5s) linear both; }
@keyframes stg-kb { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1); } }
.stg--default .stg-slide.is-active { animation: stg-flash 1s var(--stg-ease); }
@keyframes stg-flash { from { opacity: 0; filter: brightness(1.6) saturate(.4); } }

/* —— Zeno: kayan pencere + nefes alan çerçeve, limon/mor —— */
.stg--zeno { --stg-accent: #5B3DF5; --stg-radius: 32px; padding: 0; margin: 0; font-family: 'Geist', system-ui, sans-serif; }
.stg--zeno .stg-track { animation: stg-zn-morph 14s ease-in-out infinite; box-shadow: 0 30px 80px -40px rgb(91 61 245 / .45); }
@keyframes stg-zn-morph { 0%, 100% { border-radius: 32px; } 33% { border-radius: 56px 28px 48px 24px; } 66% { border-radius: 24px 52px 28px 60px; } }
.stg--zeno .stg-slide { transition: clip-path 1.1s var(--stg-ease), opacity .01s 1.1s, visibility 0s 1.1s; clip-path: inset(0 0 0 100% round 32px); opacity: 1; }
.stg--zeno[data-dir=prev] .stg-slide:not(.is-active) { clip-path: inset(0 100% 0 0 round 32px); }
.stg--zeno .stg-slide.is-active { clip-path: inset(0 0 0 0 round 32px); transition: clip-path 1.1s var(--stg-ease), visibility 0s; }
.stg--zeno .stg-slide.is-active .stg-media img { animation: stg-zn-in 1.4s var(--stg-ease) both; }
@keyframes stg-zn-in { from { transform: scale(1.18); filter: blur(6px) saturate(1.4); } }
.stg--zeno .stg-title { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; font-size: clamp(34px, 5.6vw, 84px); letter-spacing: -.01em; }
.stg--zeno .stg-eyebrow { background: #C6F432; color: #0B0B0C; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; text-transform: none; font-size: 13px; }
.stg--zeno .stg-cta { background: #C6F432; border-radius: 14px; }
.stg--zeno .stg-ui { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 5; margin: 0; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgb(11 11 12 / .55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); color: #fff; width: min(440px, calc(100% - 32px)); }
.stg--zeno .stg-dots button i { background: rgb(255 255 255 / .25); }
.stg--zeno .stg-dots button i::after { background: #C6F432; }
.stg--zeno .stg-arrows button { width: 38px; height: 38px; border-color: rgb(255 255 255 / .25); }
.stg--zeno .stg-arrows button:hover { background: #C6F432; border-color: #C6F432; color: #0B0B0C; }
.stg--zeno .stg-cap { bottom: 96px; }

/* —— Velora: jaluzi geçişi, koyu yeşil —— */
.stg--velora { --stg-accent: #0E5A52; --stg-radius: 28px; font-family: 'Figtree', system-ui, sans-serif; }
.stg--velora .stg-slide { transition: none; opacity: 1; }
.stg--velora .stg-slide:not(.is-active):not(.is-leaving) { visibility: hidden; }
.stg--velora .stg-slide.is-leaving { visibility: visible; z-index: 1; }
.stg--velora .stg-slide.is-active { z-index: 2; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(12.5% - var(--stg-b) * .125), transparent calc(12.5% - var(--stg-b) * .125) 12.5%); mask-image: repeating-linear-gradient(90deg, #000 0 calc(12.5% - var(--stg-b) * .125), transparent calc(12.5% - var(--stg-b) * .125) 12.5%); animation: stg-blinds 1.1s var(--stg-ease) both; }
@keyframes stg-blinds { from { --stg-b: 100%; } to { --stg-b: 0%; } }
.stg--velora .stg-slide.is-active .stg-media img { animation: stg-vl-in 1.6s var(--stg-ease) both; }
@keyframes stg-vl-in { from { transform: scale(1.1) translateX(var(--vl-x, 3%)); } }
.stg--velora[data-dir=prev] { --vl-x: -3%; }
.stg--velora .stg-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; letter-spacing: -.03em; }
.stg--velora .stg-eyebrow { color: #9FD3C9; }
.stg--velora .stg-cta { background: #0E5A52; color: #fff; }
.stg--velora .stg-ui { color: #15171C; }
.stg--velora .stg-count b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; }

/* —— Maison: tıklanan noktadan açılan daire, editoryal serif —— */
.stg--maison { --stg-accent: #7A5F38; --stg-radius: 0px; padding: 0; max-width: none; margin: 0; font-family: 'Manrope', system-ui, sans-serif; }
.stg--maison .stg-track { aspect-ratio: auto; height: min(88vh, calc(100vw / var(--stg-ratio) * 1.25)); min-height: 420px; background: #111; }
.stg--maison .stg-slide { transition: none; opacity: 1; }
.stg--maison .stg-slide:not(.is-active):not(.is-leaving) { visibility: hidden; }
.stg--maison .stg-slide.is-leaving { visibility: visible; z-index: 1; }
.stg--maison .stg-slide.is-leaving .stg-media img { transform: scale(1.06); filter: brightness(.6); transition: transform 1.4s var(--stg-ease), filter 1.4s; }
.stg--maison .stg-slide.is-active { clip-path: circle(var(--stg-r) at var(--cx, 50%) var(--cy, 50%)); animation: stg-ms-iris 1.4s var(--stg-ease) both; }
@keyframes stg-ms-iris { from { --stg-r: 0%; } to { --stg-r: 150%; } }
.stg--maison .stg-slide.is-active .stg-media img { animation: stg-ms-kb calc(var(--stg-interval, 7s) + 2s) ease-out both; }
@keyframes stg-ms-kb { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.stg--maison .stg-cap { left: 50%; bottom: clamp(40px, 8vh, 96px); translate: -50% 0; align-items: center; text-align: center; max-width: min(820px, 90%); }
.stg--maison .stg-cap > * { transform: translateY(110%); }
.stg--maison .stg-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(40px, 7vw, 108px); line-height: .95; letter-spacing: -.01em; }
.stg--maison .stg-eyebrow { color: #C8A96A; letter-spacing: .32em; font-weight: 600; font-size: 11px; }
.stg--maison .stg-cta { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .6); border-radius: 0; letter-spacing: .2em; text-transform: uppercase; font-size: 11px; font-weight: 600; height: 48px; padding: 0 28px; transition: background .3s, color .3s; }
.stg--maison .stg-cta:hover { background: #fff; color: #111; }
.stg--maison .stg-slide:has(.stg-cap) .stg-media::after { background: linear-gradient(to top, rgb(0 0 0 / .6), transparent 60%); }
.stg--maison .stg-ui { position: absolute; right: clamp(16px, 4vw, 48px); top: 50%; translate: 0 -50%; z-index: 5; flex-direction: column; margin: 0; color: #fff; gap: 18px; }
.stg--maison .stg-count { flex-direction: column; align-items: center; font-family: 'Cormorant Garamond', serif; font-weight: 400; }
.stg--maison .stg-count b { font-size: 34px; }
.stg--maison .stg-dots { flex-direction: column; flex: none; gap: 4px; }
.stg--maison .stg-dots button { width: 22px; height: 36px; max-width: none; }
.stg--maison .stg-dots button i { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; translate: -50% 0; background: rgb(255 255 255 / .3); }
.stg--maison .stg-dots button i::after { background: #C8A96A; transform-origin: 50% 0; transform: scaleY(0); }
.stg--maison .stg-dots button[aria-current=true] i::after { transform: scaleY(1); }
.stg--maison.is-playing .stg-dots button[aria-current=true] i::after { animation-name: stg-prog-y; }
@keyframes stg-prog-y { from { transform: scaleY(0); } }
.stg--maison .stg-arrows { flex-direction: column; }
.stg--maison .stg-arrows button { border-color: rgb(255 255 255 / .4); border-radius: 0; }
.stg--maison .stg-arrows button:hover { background: #fff; color: #111; border-color: #fff; }

/* —— Modern: bento — sıradaki iki slayt yan karolarda bekler, geçişte karolar yer değiştirir —— */
.stg--modern { --stg-radius: 22px; font-family: 'Poppins', sans-serif; }
.stg--modern .stg-track { aspect-ratio: calc(var(--stg-ratio) / .66); overflow: visible; background: none; border-radius: 0; }
.stg--modern .stg-slide { opacity: 1; visibility: visible; border-radius: var(--stg-radius); overflow: hidden; transition: left .9s var(--stg-ease), top .9s var(--stg-ease), width .9s var(--stg-ease), height .9s var(--stg-ease), opacity .6s, transform .9s var(--stg-ease); inset: auto; left: 100%; top: 0; width: 32.5%; height: 49%; opacity: 0; pointer-events: none; }
.stg--modern .stg-slide.is-active { left: 0; top: 0; width: 66%; height: 100%; opacity: 1; pointer-events: auto; }
.stg--modern .stg-slide.is-next { left: 67.5%; top: 0; width: 32.5%; height: 49%; opacity: 1; pointer-events: auto; cursor: pointer; z-index: 2; }
.stg--modern .stg-slide.stg-d2 { left: 67.5%; top: 51%; width: 32.5%; height: 49%; opacity: 1; pointer-events: auto; cursor: pointer; z-index: 2; }
.stg--modern .stg-slide.is-prev { left: -10%; opacity: 0; transform: scale(.9); }
.stg--modern .stg-slide:not(.is-active) .stg-cap { display: none; }
.stg--modern .stg-slide:not(.is-active) .stg-media::before { content: 'Sıradaki'; position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgb(255 255 255 / .9); color: #111; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stg--modern .stg-slide:not(.is-active):hover .stg-media img { transform: scale(1.06); }
.stg--modern .stg-media img { transition: transform .8s var(--stg-ease); }
.stg--modern .stg-cta { background: var(--c-accent, #2563eb); color: #fff; }
@media (max-width: 760px) {
  .stg--modern .stg-track { aspect-ratio: calc(var(--stg-ratio) / 1.36); }
  .stg--modern .stg-slide.is-active { width: 100%; height: 73%; }
  .stg--modern .stg-slide.is-next { left: 0; top: 75%; width: 49%; height: 25%; }
  .stg--modern .stg-slide.stg-d2 { left: 51%; top: 75%; width: 49%; height: 25%; }
}

/* —— ShopNova: 3B kapak akışı —— */
.stg--shopnova { --stg-radius: 18px; font-family: 'Outfit', sans-serif; }
.stg--shopnova .stg-track { aspect-ratio: calc(var(--stg-ratio) / .64); overflow: visible; background: none; perspective: 1600px; border-radius: 0; }
.stg--shopnova .stg-slide { inset: 0 18%; opacity: calc(1 - var(--ad) * .35); visibility: visible; border-radius: var(--stg-radius); transform: translateX(calc(var(--d) * 58%)) translateZ(calc(var(--ad) * -260px)) rotateY(calc(var(--d) * -32deg)); z-index: calc(10 - var(--ad)); transition: transform 1s var(--stg-ease), opacity 1s var(--stg-ease); pointer-events: none; box-shadow: 0 40px 70px -40px rgb(0 0 0 / .55); -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgb(255 255 255 / .18)); }
.stg--shopnova .stg-slide.is-active, .stg--shopnova .stg-slide.is-prev, .stg--shopnova .stg-slide.is-next { pointer-events: auto; }
.stg--shopnova .stg-slide:not(.is-active):not(.is-prev):not(.is-next) { opacity: 0; }
.stg--shopnova .stg-slide:not(.is-active) { cursor: pointer; }
.stg--shopnova .stg-slide:not(.is-active) .stg-media img { filter: brightness(.7) saturate(.8); }
.stg--shopnova .stg-media { border-radius: inherit; }
.stg--shopnova .stg-media img { transition: filter 1s; }
.stg--shopnova .stg-ui { justify-content: center; margin-top: clamp(24px, 6vw, 60px); }
.stg--shopnova .stg-dots { flex: 0 1 360px; }
.stg--shopnova .stg-cta { background: var(--c-accent, #2563eb); color: #fff; }
@media (max-width: 760px) { .stg--shopnova .stg-slide { inset: 0 8%; } .stg--shopnova .stg-track { aspect-ratio: calc(var(--stg-ratio) / .84); } }

@media (max-width: 640px) {
  .stg-cap { max-width: 88%; gap: 6px; }
  .stg-text { display: none; }
  .stg-cta { height: 38px; padding: 0 16px; font-size: 13px; }
  .stg--zeno .stg-cap { bottom: 78px; }
  .stg--maison .stg-ui { top: auto; bottom: 16px; translate: 0; right: 16px; flex-direction: row; }
  .stg--maison .stg-dots, .stg--maison .stg-arrows { flex-direction: row; }
  .stg--maison .stg-dots button { width: 28px; height: 22px; }
  .stg--maison .stg-dots button i { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; translate: 0 -50%; }
  .stg--maison .stg-cap { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .stg *, .stg-slide { animation: none !important; transition: none !important; } }
