/* Çınar Mobilya — "Lamba": ürünler karanlık, sıcak bir odada ışık kaynağı */
@property --glow { syntax: "<color>"; inherits: true; initial-value: #f4b36a; }

:root {
  --bg: #100f0e;
  --bg-2: #191715;
  --ink: #f6f1ea;
  --muted: #b9b0a4;
  --line: rgba(255, 244, 230, 0.1);
  --lamp: #f4b36a;
  --wa: #178c49;
  --wa-dark: #12733b;
  --r: 28px;
  --r-s: 14px;
  --hero-display: "Playfair Display", Georgia, serif;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 18px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol, dl, dd { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; flex: none; }
small { font-size: 16px; color: var(--muted); font-weight: 600; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.h2 { font: 800 clamp(40px, 11vw, 72px)/1 var(--display); letter-spacing: -0.035em; }
.sec-title { font: 700 30px/1.08 var(--display); letter-spacing: -0.025em; }
main { position: relative; }
main > *, .ft { position: relative; z-index: 1; }
main > .hero { z-index: 0; }

/* ---------- kaydırınca belirme ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- üst bar ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(16, 15, 14, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); transition: background 0.4s, border-color 0.4s; }
.home .hd { position: fixed; left: 0; right: 0; }
.hd.is-over:not(.solid) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; font: 800 22px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.hd-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid rgba(255, 244, 230, 0.22); background: rgba(16, 15, 14, 0.3); font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.3s; }
.hd-wa svg { font-size: 20px; color: #1fae5b; }
.hd-wa:hover { background: rgba(255, 244, 230, 0.08); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; margin-left: -4px; font-weight: 700; text-decoration: none; }
.back svg { font-size: 20px; }
.product .brand { font-size: 20px; color: var(--muted); }

/* ---------- hero: tam ekran slayt ---------- */
.hero { position: relative; display: flex; align-items: flex-end; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; transition: --glow 1.2s var(--ease); }
.hero-media { position: absolute; inset: 0; z-index: -2; display: block; overflow: hidden; background: var(--bg); -webkit-tap-highlight-color: transparent; }
.h-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.h-layer.is-on { opacity: 1; }
.h-layer img, .h-layer video { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(0.94) brightness(0.82); transform: scale(var(--hz, 1)); transform-origin: var(--ho, 50% 50%); }
.h-layer img { transition: transform 0s linear 1.1s; }
.h-layer.is-zoom img { transform: scale(calc(var(--hz, 1) * 1.08)); transition: transform 7s linear; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(16, 15, 14, 0.55) 0%, rgba(16, 15, 14, 0) 22%, rgba(16, 15, 14, 0) 46%, rgba(16, 15, 14, 0.9) 76%, rgba(16, 15, 14, 0.98) 86%, var(--bg) 100%); }
.hero-light { position: absolute; left: -15%; right: -15%; bottom: -14%; z-index: -1; height: 40%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(48px); opacity: 0.22; pointer-events: none; }

.hero-in { position: relative; padding-bottom: 24px; }
.hero-h { font: 600 clamp(44px, 13vw, 96px)/1.02 var(--hero-display); letter-spacing: -0.01em; }
.hero-h span, .hero-h em { display: block; }
.hero-h em { font-style: italic; }
.hc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.22); text-decoration: none; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
.hc-row.is-out { opacity: 0; transform: translateY(6px); }
.hc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 clamp(20px, 6.2vw, 24px)/1.15 var(--display); letter-spacing: -0.02em; }
.hc-price { flex: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.bars { display: flex; margin: 4px 0 0 -3px; }
.bar { position: relative; flex: none; width: 24px; height: 44px; transition: width 0.4s var(--ease); }
.bar.is-on { width: 40px; }
.bar::before, .bar i { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.bar::before { background: rgba(255, 244, 230, 0.24); }
.bar i { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.bar.is-done i { transform: scaleX(1); opacity: 0.55; }
.bar.is-on i { animation: fill var(--dur, 5s) linear forwards; }
.hero.is-paused .bar.is-on i { animation-play-state: paused; }
.hero.no-auto .bar.is-on i { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; margin: 22px 0 18px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 800; text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.hero-cta svg { width: 22px; height: 22px; transform: rotate(90deg); }
.hero-cta:hover { background: #fff; transform: translateY(-2px); }
.hero-cta:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
.hero-pay { color: var(--muted); font-size: 15px; font-weight: 600; }

/* ---------- modeller ---------- */
.models { padding-top: 24px; scroll-margin-top: 64px; }
.mlist { display: grid; gap: 48px; margin-top: 32px; }
.m a { display: block; text-decoration: none; }
.m-media { position: relative; display: block; isolation: isolate; }
.m-media::before { content: ""; position: absolute; inset: 6% 4% -2%; z-index: -1; border-radius: var(--r); background: var(--glow); filter: blur(30px); opacity: 0.55; transition: opacity 1.4s var(--ease) 0.15s; pointer-events: none; }
.js-reveal .m:not(.in) .m-media::before { opacity: 0; }
.m-frame { display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.m-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.m-name { display: block; margin-top: 16px; font: 700 28px/1.08 var(--display); letter-spacing: -0.025em; }
.m-sub { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.m-price { font-weight: 800; font-size: 22px; white-space: nowrap; }
.m-type { flex: 1; color: var(--muted); font-size: 16px; font-weight: 600; white-space: nowrap; }
.m-go { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 244, 230, 0.28); font-size: 20px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
@media (hover: hover) and (min-width: 900px) {
  .m a:hover .m-frame img { transform: scale(1.03); }
  .m a:hover .m-go { background: var(--ink); border-color: var(--ink); color: var(--bg); }
}

/* ---------- kapanış ---------- */
.closing { margin-top: 72px; isolation: isolate; }
.closing::before { content: ""; position: absolute; left: -10%; top: -40%; z-index: -1; width: 110%; height: 180%; background: radial-gradient(45% 45% at 30% 50%, rgba(244, 179, 106, 0.16), transparent 72%); pointer-events: none; }
.closing p { margin-top: 16px; color: var(--muted); max-width: 28em; }
.closing .btn-wa { display: inline-flex; width: auto; margin-top: 24px; padding: 0 32px; }

/* ---------- WhatsApp butonu ---------- */
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; text-align: center; transition: background 0.2s; }
.btn-wa svg { font-size: 22px; }
.btn-wa:hover { background: var(--wa-dark); }

/* ---------- alt bilgi ---------- */
.ft { margin-top: 72px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.ft-brand { color: var(--ink); font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.ft-links { display: flex; gap: 24px; margin-top: 4px; }
.ft-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--lamp); font-weight: 700; text-decoration: none; }
.sign { margin-top: 16px; font-size: 14px; }
.sign a { color: var(--muted); }

/* ---------- ürün sayfası ---------- */
.p-head { padding-top: 24px; }
.p-head h1 { font: 800 clamp(48px, 14vw, 88px)/0.95 var(--display); letter-spacing: -0.04em; }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 12px; font-weight: 800; font-size: 26px; }
.p-feat { margin-top: 4px; color: var(--muted); }
.gallery { margin-top: 32px; transition: --glow 1.2s var(--ease); }
.stage-wrap { position: relative; isolation: isolate; }
.stage-wrap::before { content: ""; position: absolute; inset: -22% -16%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); background: radial-gradient(closest-side, oklch(from var(--glow) max(l, 0.62) c h), transparent); opacity: 0.3; pointer-events: none; }
.stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); transform: translateZ(0); }
.track { position: relative; aspect-ratio: 4 / 3; overflow: hidden; outline: none; }
.slide { position: absolute; inset: 0; display: none; place-items: center; }
.slide.on { display: grid; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.zoom-btn { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: rgba(16, 15, 14, 0.82); font-weight: 700; font-size: 16px; }
.zoom-btn svg { font-size: 16px; }
.g-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.g-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px; font-weight: 700; font-size: 18px; }
.g-btn svg { font-size: 20px; }
.g-btn:disabled { color: rgba(246, 241, 234, 0.25); cursor: default; }
.g-count { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -4px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { display: block; flex: none; width: 64px; height: 64px; border-radius: var(--r-s); overflow: hidden; opacity: 0.55; outline: 2px solid transparent; outline-offset: 2px; transition: opacity 0.2s, outline-color 0.2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { opacity: 1; outline-color: var(--lamp); }

.kumas { margin-top: 48px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; margin-top: 24px; }
.sw { position: relative; display: block; width: 100%; text-align: center; }
.sw img { width: 100%; aspect-ratio: 144 / 88; object-fit: cover; border-radius: var(--r-s); transition: box-shadow 0.2s; }
.sw-no { display: block; margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sw-check { position: absolute; top: 4px; right: 4px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lamp); color: #1a1410; font-size: 15px; }
.sw[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lamp); }
.sw[aria-pressed="true"] .sw-check { display: grid; }
.sw[aria-pressed="true"] .sw-no { color: var(--lamp); }

.p-sec { margin-top: 48px; }
.facts > div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { color: var(--muted); }
.video-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.video-list video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: #000; }
.others { margin-top: 16px; }
.others a { display: flex; align-items: center; gap: 16px; min-height: 88px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.others li:first-child a { border-top: 1px solid var(--line); }
.others img { flex: none; width: 88px; height: 64px; object-fit: cover; border-radius: var(--r-s); }
.o-name { flex: 1; font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; }
.o-price { font-weight: 800; font-size: 17px; white-space: nowrap; }

.product main { padding-bottom: 12px; }
.product .ft { padding-bottom: 160px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(16, 15, 14, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.sticky-in { max-width: 560px; margin: 0 auto; }
.sticky-status { margin-bottom: 8px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- büyütme ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background: rgba(10, 9, 8, 0.97); color: var(--ink); }
.lightbox[hidden] { display: none; }
.lb-img { width: 100%; max-height: 78vh; object-fit: contain; }
.lb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 16px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 244, 230, 0.22); font-weight: 700; }
.lb-ctrl { display: flex; align-items: center; justify-content: space-between; max-width: 720px; width: 100%; margin: 0 auto; padding: 12px 16px; }
.lb-ctrl button { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px; font-weight: 700; }
.lb-ctrl button:disabled { opacity: 0.3; }
.lb-ctrl svg { font-size: 20px; }
.lb-count { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- sayfa geçişi ---------- */
::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ---------- ölçüler ---------- */
@media (min-width: 480px) {
  .swatches { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .hero { align-items: center; min-height: 640px; }
  .hero-media { left: 46%; left: round(down, 46%, 1px); }
  .hero-shade { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 2%, rgba(16, 15, 14, 0) 20%), linear-gradient(180deg, rgba(16, 15, 14, 0.5) 0%, rgba(16, 15, 14, 0) 18%, rgba(16, 15, 14, 0) 82%, var(--bg) 100%); }
  .hero-light { left: -10%; right: auto; bottom: 8%; width: 62%; height: 46%; }
  .h-layer img, .h-layer video { --hz: 1; }
  .hero-in { width: 46%; max-width: none; margin: 0; padding: 96px 48px 48px max(32px, calc((100vw - 1200px) / 2 + 32px)); }
  .hc-row { margin-top: 32px; }
  .hc-name { font-size: 26px; }
  .hc-price { font-size: 19px; }
  .models { padding-top: 48px; }
  .mlist { grid-template-columns: 1fr 1fr; gap: 48px 32px; margin-top: 48px; }
  .p-layout { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "g h" "g k" "g f"; column-gap: 48px; max-width: 1200px; margin: 0 auto; padding: 0 32px; align-items: start; }
  .p-layout > .wrap { padding: 0; }
  .p-head { grid-area: h; padding-top: 32px; }
  .gallery { grid-area: g; margin-top: 32px; }
  .kumas { grid-area: k; margin-top: 32px; }
  .p-facts { grid-area: f; margin-top: 32px; }
  .others { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .others li:nth-child(2) a { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
