/* ============================================================
   MOBİLYA KATALOG — TASARIM
   Renkler ve yazı tipleri değişkenler (:root) üzerinden yönetilir.
   ============================================================ */

:root {
  /* Renkler — Açık tema */
  --bg:        #f6f3ee;   /* sıcak kâğıt zemin */
  --surface:   #fffdfa;   /* kart / panel */
  --surface-2: #efe9e0;   /* ikincil yüzey */
  --ink:       #2a2521;   /* espresso metin */
  --muted:     #6b635a;   /* ikincil metin */
  --line:      #e4ddd1;   /* çizgi */
  --accent:    #a67c3d;   /* pirinç / amber vurgu */
  --accent-ink:#8a6530;   /* koyu vurgu (hover) */
  --accent-soft:#f0e6d4;  /* vurgu zemini */
  --whats:     #25d366;   /* whatsapp yeşili */
  --shadow:    0 1px 2px rgba(42,37,33,.06), 0 8px 24px rgba(42,37,33,.08);
  --shadow-lg: 0 24px 60px rgba(42,37,33,.22);
  --radius:    14px;
  --maxw:      1200px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #1b1815;
    --surface:   #24201c;
    --surface-2: #2d2823;
    --ink:       #f2ece2;
    --muted:     #b3a99b;
    --line:      #38322b;
    --accent:    #cea05a;
    --accent-ink:#e0b877;
    --accent-soft:#332a1c;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  }
}
/* Kullanıcının tema düğmesi bunları geçersiz kılar */
:root[data-theme="light"] {
  --bg:#f6f3ee; --surface:#fffdfa; --surface-2:#efe9e0; --ink:#2a2521;
  --muted:#6b635a; --line:#e4ddd1; --accent:#a67c3d; --accent-ink:#8a6530;
  --accent-soft:#f0e6d4;
  --shadow:0 1px 2px rgba(42,37,33,.06),0 8px 24px rgba(42,37,33,.08);
  --shadow-lg:0 24px 60px rgba(42,37,33,.22);
}
:root[data-theme="dark"] {
  --bg:#1b1815; --surface:#24201c; --surface-2:#2d2823; --ink:#f2ece2;
  --muted:#b3a99b; --line:#38322b; --accent:#cea05a; --accent-ink:#e0b877;
  --accent-soft:#332a1c;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:0 24px 60px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Üst menü ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px;
  padding: 11px 18px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--whats); color: #06331a; }
.btn-wa:hover { box-shadow: 0 6px 18px rgba(37,211,102,.35); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.theme-toggle {
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  color: var(--ink); font-size: 16px; display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px;
  font-weight: 700; color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 30px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stats .stat b {
  display: block; font-family: var(--font-display); font-size: 28px; color: var(--ink);
}
.hero-stats .stat span { font-size: 13.5px; color: var(--muted); }

.hero-media {
  position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Hero: otomatik değişen fotoğraflar (yumuşak geçiş) */
.hero-slides { position: absolute; inset: 0; }
.hero-media .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero-media .hero-slide.active { opacity: 1; }
.hero-media .tag {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* ---------- Bölüm başlığı ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 34px; }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  font-weight: 700; color: var(--accent); margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 40px); margin: 0; letter-spacing: -.01em;
}
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 56ch; }

/* ---------- Kategori filtreleri ---------- */
/* ---------- Arama kutusu ---------- */
.arama-kutusu { position: relative; display: flex; align-items: center; max-width: 440px; margin-bottom: 16px; }
.arama-kutusu svg {
  position: absolute; left: 15px; width: 18px; height: 18px;
  color: var(--muted); pointer-events: none;
}
.arama-kutusu input {
  width: 100%; padding: 12px 42px 12px 44px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 15px;
}
.arama-kutusu input::placeholder { color: var(--muted); }
.arama-kutusu input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.arama-temizle {
  position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 999px;
  border: none; background: transparent; color: var(--muted); cursor: pointer;
  font-size: 15px; display: grid; place-items: center;
}
.arama-temizle:hover { color: var(--accent); }
.arama-sonuc { margin: -6px 0 16px; font-size: 14px; color: var(--muted); }
.arama-sonuc b { color: var(--ink); }

/* ---------- Filtre paneli (Tür / Model / Renk) ---------- */
.filtre-paneli { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.filtre-satiri { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.filtre-etiket {
  font-size: 11.5px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em; min-width: 46px; flex: 0 0 auto;
}
.filtre-secenekler { display: flex; flex-wrap: wrap; gap: 8px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  transition: all .18s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Alt filtre (gardırop kapak sayısı) ---------- */
.subfilters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: -18px 0 30px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.subfilter-label { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.chip-sm { padding: 7px 13px; font-size: 13px; }

/* ---------- Ürün ızgarası ---------- */
.grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-media {
  overflow: hidden; background: var(--surface-2); position: relative;
  container-type: inline-size;      /* aşağıdaki cqw birimi için */
}
/* Kart fotoğrafı doğal boyunda durur, ama en fazla 4:5 olabilir.
   125cqw = kart genişliğinin 1.25 katı = 4:5 oranı.
   Daha uzun görseller (ör. 9:16 story) sadece kartta kırpılır;
   ürün detayında tam hali görünür. */
.card-media img {
  width: 100%; height: auto; max-height: 125cqw;
  object-fit: cover; object-position: center;
  display: block; transition: transform .4s;
}
.card:hover .card-media img { transform: scale(1.05); }

/* Kartın üzerine gelince 2. fotoğrafa yumuşak geçiş */
.card-media img.hover-foto {
  position: absolute; inset: 0; width: 100%; height: 100%; max-height: none;
  object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .4s;
}
.card:hover .card-media img.hover-foto { opacity: 1; }
@media (hover: none) { .card-media img.hover-foto { display: none; } }
.card-cat {
  position: absolute; top: 12px; left: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; }
.card-body .desc { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 800; font-size: 17px; color: var(--accent); font-variant-numeric: tabular-nums; }
.price.price-msg { font-size: 13.5px; font-weight: 700; }
.m-price.price-msg { font-size: 17px; }
.card-foot .detail { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.card:hover .detail { color: var(--accent); }

/* Fotoğraf yüklenemezse gösterilecek yer tutucu */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  color: var(--muted); text-align: center; padding: 20px; gap: 8px;
}
.ph svg { width: 44px; height: 44px; opacity: .5; }
.ph small { font-size: 12px; }

/* ---------- Ürün detay penceresi (modal) ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(20,16,12,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-back.open { display: flex; }
.modal {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  width: 100%; max-width: 940px; max-height: 90vh; display: grid;
  grid-template-columns: 1.05fr 1fr; box-shadow: var(--shadow-lg);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-gallery { background: var(--surface-2); display: flex; flex-direction: column; max-height: 90vh; min-height: 0; }
.modal-main { flex: 1; min-height: 0; overflow: hidden; background: var(--surface-2); position: relative; }
.modal-main img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Kaydırmalı galeri */
.slides { display: flex; height: 100%; width: 100%; transition: transform .38s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink); font-size: 24px; line-height: 1; display: grid; place-items: center;
  transition: color .2s, border-color .2s;
}
.gal-nav.prev { left: 10px; }
.gal-nav.next { right: 10px; }
.gal-nav:hover { color: var(--accent); border-color: var(--accent); }
.gal-count {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.modal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; flex: 0 0 auto; }
.modal-thumbs img, .modal-thumbs .thumb {
  width: 66px; height: 66px; border-radius: 8px; object-fit: cover;
  cursor: pointer; border: 2px solid transparent; flex: 0 0 auto;
}
.modal-thumbs .thumb.active { border-color: var(--accent); }
.modal-info { padding: 30px; max-height: 90vh; overflow-y: auto; }
.modal-info .cat {
  text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px;
  font-weight: 700; color: var(--accent);
}
.modal-info h2 { font-family: var(--font-display); font-weight: 600; font-size: 28px; margin: 8px 0 4px; }
.modal-info .m-price { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.modal-info .m-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.spec { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec tr { border-bottom: 1px solid var(--line); }
.spec td { padding: 10px 0; font-size: 14px; vertical-align: top; }
.spec td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.spec td:last-child { font-weight: 600; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
.close-x {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 20px;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.close-x:hover { color: var(--accent); }

/* ---------- Örnek çalışmalar galerisi ---------- */
.works { columns: 3 240px; column-gap: 16px; }
.work {
  margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  position: relative; box-shadow: var(--shadow); background: var(--surface-2);
  border: 1px solid var(--line); break-inside: avoid; display: block; width: 100%;
}
.work-media { overflow: hidden; }
.work-media img { width: 100%; height: auto; display: block; transition: transform .4s; }
.work:hover .work-media img { transform: scale(1.06); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; font-size: 13.5px; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgba(20,14,8,.82), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.work:hover figcaption, .work:focus figcaption { opacity: 1; transform: translateY(0); }

/* Büyük görsel (lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(15,11,7,.9); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lb-inner { margin: 0; max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; gap: 12px; }
.lb-inner img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-inner figcaption { text-align: center; color: #f2ece2; font-size: 15px; font-weight: 600; }

/* ---------- İletişim / sipariş ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
}
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item b { display: block; font-size: 15px; }
.contact-item span { color: var(--muted); font-size: 14.5px; }

.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.order-form h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 6px; font-size: 22px; }
.order-form p.hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px;
  color: var(--muted); font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer.site .brand { font-size: 18px; }

/* ---------- Duyarlı (mobil) ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; }
  .nav-links { display: none; }
  .modal { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-gallery { max-height: none; }
  .modal-info { max-height: none; }
  .modal-main { flex: 0 0 auto; height: 50vh; }
  .contact-grid { grid-template-columns: 1fr; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
