/* Gülistan Mobilya — site teması
   Palet logodan türetildi: kömür zemin, pirinç vurgu. */

:root {
  --coal: #313231;
  --coal-2: #3b3c3b;
  --ink: #232423;
  --paper: #f2f2ef;
  --white: #ffffff;
  --line: #dcdad3;
  --muted: #676863;
  --brass: #b48a47;
  --brass-ink: #86622a;          /* açık zeminde metin için yeterli kontrast */
  --brass-soft: #efe5d2;
  --wa: #1d8a4c;
  --wa-hover: #17733f;
  --danger: #a33a2b;

  --font-display: "Bodoni Moda", "Didot", Georgia, serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 76px;
  --radius-s: 4px;
  --radius-m: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; flex: none; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-brass { background: var(--brass); color: #1d1a14; }
.btn-brass:hover { background: #c79c56; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.06); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.text-link:hover { border-color: var(--ink); }

.tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brass-ink); background: var(--brass-soft);
  padding: 2px 8px 2px 14px; border-radius: 2px 6px 6px 2px;
  position: relative; white-space: nowrap;
}
/* Etiket deliği: ürün kartındaki stok kodu fiziksel bir askı etiketi gibi */
.tag::before {
  content: ""; position: absolute; left: 5px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(134, 98, 42, .35);
}
.tag-lg { font-size: .82rem; padding: 4px 12px 4px 18px; }
.tag-lg::before { left: 7px; }
.tag-sold { color: var(--white); background: var(--danger); }

/* ---------- Üst bölüm ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(242, 242, 239, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1;
  display: flex; flex-direction: column; letter-spacing: -.01em;
}
.brand-name span {
  font-family: var(--font-body); font-size: .68rem; font-weight: 500; letter-spacing: .32em;
  color: var(--muted); margin-top: 5px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
  font-size: .95rem; font-weight: 500; text-decoration: none;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(35,36,35,.06); }
.nav-link[aria-expanded="true"] .ico-sm { transform: rotate(180deg); }
.nav-link .ico-sm { transition: transform .2s; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(35,36,35,.25);
  padding: 32px 0 36px;
}
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 32px; }
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-parent {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  text-decoration: none; display: flex; align-items: baseline; gap: 8px;
}
.mega-parent span { font-family: var(--font-body); font-size: .75rem; color: var(--muted); }
.mega-parent:hover { color: var(--brass-ink); }
.mega-child { font-size: .9rem; color: var(--muted); text-decoration: none; }
.mega-child:hover { color: var(--ink); text-decoration: underline; }
.mega-all {
  grid-column: 1 / -1; justify-self: start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

.header-search {
  margin-left: auto; position: relative; flex: 1 1 260px; max-width: 340px;
}
.header-search input {
  width: 100%; height: 42px; padding: 0 44px 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: inherit; font-size: .92rem;
}
.header-search input:focus { outline: none; border-color: var(--ink); }
.header-search button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer;
}

.header-call {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none; font-weight: 500; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.header-call:hover { background: #000; }

.menu-btn, .icon-btn {
  display: none; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer;
}
.icon-btn { display: grid; }

/* ---------- Mobil çekmece ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,20,.45); overscroll-behavior: contain; }
html.is-locked, html.is-locked body { overflow: hidden; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%);
  background: var(--paper); display: flex; flex-direction: column;
  animation: drawer-in .28s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-search { position: relative; padding: 16px 16px 8px; }
.drawer-search input {
  width: 100%; height: 46px; padding: 0 48px 0 18px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--white); font: inherit;
}
.drawer-search button { position: absolute; right: 22px; top: 22px; border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; }
.drawer-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; display: flex; flex-direction: column; }
.drawer-nav a[aria-current="page"] { color: var(--brass-ink); }
.drawer-nav a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--font-display); font-size: 1.2rem;
}
.drawer-nav a span { font-family: var(--font-body); font-size: .8rem; color: var(--muted); }
.drawer-nav .drawer-child { font-family: var(--font-body); font-size: .95rem; padding: 8px 0 8px 16px; color: var(--muted); }
.drawer-nav .drawer-strong { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.drawer-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line);
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
}

/* ---------- Hero ---------- */
.hero { background: var(--coal); color: var(--white); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: 24px; min-height: min(640px, calc(100svh - var(--header-h)));
  padding-block: 56px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em;
  max-width: 14ch; text-wrap: balance;
}
.hero-text { margin-top: 24px; max-width: 46ch; color: rgba(255,255,255,.78); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-figure { margin: 0 calc(var(--gutter) * -1) 0 0; position: relative; }
.hero-figure img {
  width: 100%; height: auto;
  /* Stüdyo fotoğrafının gri fonunu kömür zemine eritir */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 14%, #000 74%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 14%, #000 74%, transparent 100%);
          mask-composite: intersect;
  animation: hero-in 1.1s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: translateX(32px) scale(.98); } }

/* ---------- Kategori dizini ---------- */
.index { padding-block: clamp(56px, 8vw, 104px); background: var(--white); }

/* Kategori mozaiği: büyük kutular en kalabalık kategoriler */
.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 17vw, 240px); grid-auto-flow: dense; gap: 14px;
}
.tile { position: relative; min-width: 0; }
.tile-large { grid-column: span 2; grid-row: span 2; }
.tile-large.is-right { grid-column: 3 / span 2; }
.tile-link {
  position: absolute; inset: 0; display: block; overflow: hidden;
  border-radius: var(--radius-m); background: var(--coal-2); color: var(--white); text-decoration: none;
}
.tile-link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.tile-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,27,.82) 0%, rgba(28,28,27,.35) 38%, rgba(28,28,27,0) 62%);
}
.tile-link:hover img, .tile-link:focus-visible img { transform: scale(1.04); }
.tile-text {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.tile-name {
  font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
}
.tile-count { font-size: .8rem; color: rgba(255,255,255,.78); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile-large .tile-text { left: 28px; right: 28px; bottom: 64px; }
.tile-large .tile-name { font-size: clamp(2rem, 3.4vw, 3rem); }
.tile-large .tile-count { font-size: .9rem; }
.tile-sub {
  position: absolute; left: 28px; right: 28px; bottom: 22px; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tile-sub a {
  height: 30px; padding: 0 12px; display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  color: var(--white); font-size: .82rem; text-decoration: none;
  background: rgba(28,28,27,.25); backdrop-filter: blur(4px);
}
.tile-sub a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.tile-large:not(:has(.tile-sub)) .tile-text { bottom: 26px; }

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.015em;
}

/* ---------- Bloklar & ızgara ---------- */
.block { padding-block: clamp(56px, 7vw, 96px); }
.block-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }

.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden;
  background: #e7e6e1; border-radius: var(--radius-m);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.card:hover .card-alt { opacity: 1; }
.card-badge {
  position: absolute; left: 12px; top: 12px; background: var(--danger); color: var(--white);
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.card.is-sold .card-media img { filter: grayscale(.7); opacity: .75; }

.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; color: #8d8c86;
  background: repeating-linear-gradient(135deg, #ebeae5 0 14px, #e6e5df 14px 28px);
}
.ph svg { width: 56px; height: 56px; }
.ph span { font-size: .8rem; max-width: 18ch; line-height: 1.4; }

.card-body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 1rem; font-weight: 500; line-height: 1.35; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-title a:hover { text-decoration: underline; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; color: var(--muted); }
.card-meta .tag { position: relative; z-index: 1; }

/* ---------- Markalar ---------- */
.brands { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.brand-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.brand-card {
  display: flex; align-items: center; gap: 18px; height: 100%;
  padding: 12px 20px 12px 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  text-decoration: none; transition: border-color .2s;
}
.brand-card:hover { border-color: var(--ink); }
.brand-thumb {
  flex: none; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--paper);
  display: grid; place-items: center; color: #9a998f;
}
.brand-thumb svg { width: 40px; height: 40px; }
.brand-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.brand-card:hover .brand-thumb img { transform: scale(1.06); }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-note { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-count {
  margin-left: auto; flex: none; min-width: 40px; height: 28px; padding: 0 10px;
  display: inline-grid; place-items: center; border-radius: 999px;
  background: var(--brass-soft); color: var(--brass-ink); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* ---------- Showroom ---------- */
.visit { background: var(--coal); color: var(--white); padding-block: clamp(56px, 7vw, 96px); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.visit-title { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.015em; }
.visit-copy > p { margin-top: 18px; color: rgba(255,255,255,.78); max-width: 46ch; }
.visit-info { margin: 28px 0 0; display: grid; gap: 14px; }
.visit-info div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.visit-info dt { color: rgba(255,255,255,.55); font-size: .88rem; }
.visit-info dd { margin: 0; }
.visit-info a { text-decoration: none; }
.visit-info a:hover { text-decoration: underline; }
.visit-map, .contact-map { aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--coal-2); }
.visit-map iframe, .contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }

/* ---------- Alt bölüm ---------- */
.site-footer { background: #262726; color: rgba(255,255,255,.75); padding-top: 64px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 18px; }
.footer-brand p { max-width: 38ch; }
.footer-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-hours { margin-top: 12px; }
.footer-cats ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; line-height: 2; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: .84rem;
}
.footer-social { display: flex; gap: 18px; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--white); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--wa-hover); }

/* Yalnızca panele giriş yapmış yöneticiye görünür */
.admin-chip {
  position: fixed; left: 20px; bottom: 20px; z-index: 30;
  padding: 10px 16px; border-radius: 40px; background: var(--ink); color: var(--white);
  font-size: .86rem; font-weight: 500; text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
}
.admin-chip:hover { background: var(--coal-2); }
.admin-note {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--brass-soft); color: var(--brass-ink); font-size: .9rem;
}

/* ---------- Sayfa başlığı & katalog ---------- */
.page-head { padding: 36px 0 28px; border-bottom: 1px solid var(--line); background: var(--white); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .ico-sm { width: 12px; height: 12px; opacity: .6; }
.crumbs [aria-current] { color: var(--ink); }
.page-title {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.05;
  letter-spacing: -.02em; margin-top: 18px; text-wrap: balance;
}
.page-count { margin-top: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 8px; margin-top: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: .9rem; font-weight: 500; background: var(--white);
}
.chip span { color: var(--muted); font-size: .78rem; font-weight: 400; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.is-active span { color: rgba(255,255,255,.65); }

.catalog { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 36px 96px; }
.catalog-side {
  position: sticky; top: calc(var(--header-h) + 24px); align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px); overflow: hidden auto;
  padding-inline: 10px; margin-inline: -10px; scrollbar-width: thin;
}
.side-title { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a {
  display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; margin-inline: -10px;
  border-radius: var(--radius-s); text-decoration: none; font-size: .94rem;
}
.side-list a span { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.side-list a:hover { background: rgba(35,36,35,.05); }
.side-list a.is-active { background: var(--ink); color: var(--white); }
.side-list a.is-active span { color: rgba(255,255,255,.65); }

.toolbar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar-search { position: relative; flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; }
.toolbar-search .ico { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.toolbar-search input {
  width: 100%; height: 46px; padding: 0 16px 0 46px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--white); font: inherit;
}
.toolbar-search input:focus { outline: none; border-color: var(--ink); }
.toolbar-search-lg { max-width: 520px; margin: 28px auto 0; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 40px; height: 24px; border-radius: 999px; background: #cfcdc6; position: relative; transition: background .2s; flex: none; }
.switch-ui::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brass); outline-offset: 2px; }

.select { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: .92rem; color: var(--muted); }
.select select {
  height: 42px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23232423' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font: inherit; color: var(--ink); appearance: none; cursor: pointer;
}

.grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 64px; flex-wrap: wrap; }
.pg-nums { display: flex; gap: 6px; align-items: center; }
.pg-num, .pg-step {
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-variant-numeric: tabular-nums; background: var(--white);
}
.pg-num:hover, .pg-step:hover { border-color: var(--ink); }
.pg-num.is-current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pg-gap { color: var(--muted); padding: 0 4px; }

.empty { text-align: center; padding: 72px 16px; max-width: 620px; margin: 0 auto; }
.empty > svg { width: 72px; height: 72px; color: var(--brass); margin: 0 auto 16px; }
.empty h2 { font-family: var(--font-display); font-size: 1.9rem; }
.empty p { margin-top: 12px; color: var(--muted); }
.empty .hero-actions { justify-content: center; }
.empty-404 { padding-block: 96px; }

/* ---------- Ürün detayı ---------- */
.crumbs-product { padding-top: 28px; }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); padding: 24px 0 72px; align-items: start; }

.gallery-stage {
  position: relative; aspect-ratio: 1; background: var(--white); border-radius: var(--radius-m); overflow: hidden;
}
.gallery-slide {
  position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.gallery-slide.is-on { opacity: 1; visibility: visible; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.25);
}
.gallery-nav.prev { left: 14px; }
.gallery-nav.prev .ico { transform: rotate(180deg); }
.gallery-nav.next { right: 14px; }
.gallery-count {
  position: absolute; right: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(35,36,35,.75); color: var(--white); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer;
  aspect-ratio: 1; background: var(--white); opacity: .7; transition: opacity .2s, border-color .2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-on { border-color: var(--ink); opacity: 1; }
.gallery-empty {
  aspect-ratio: 1; border-radius: var(--radius-m); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: repeating-linear-gradient(135deg, #ebeae5 0 18px, #e6e5df 18px 36px); color: #8d8c86; text-align: center; padding: 24px;
}
.gallery-empty > svg { width: 88px; height: 88px; }

.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-cats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; }
.product-cats a { color: var(--brass-ink); text-decoration: none; font-weight: 500; }
.product-cats a:hover { text-decoration: underline; }
.product-title {
  font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08;
  letter-spacing: -.015em; margin-top: 12px; text-wrap: balance;
}
.product-tags { display: flex; gap: 8px; margin-top: 18px; }
.product-price { font-size: 1.6rem; font-weight: 600; margin-top: 18px; }

.dims { margin-top: 28px; background: var(--white); border-radius: var(--radius-m); padding: 18px 20px; }
.dims-title { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.dims-title .ico { color: var(--brass); }
.dims dl { margin: 10px 0 0; }
.dims dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--paper); }
.dims dt { color: var(--muted); font-size: .92rem; }
.dims-single { margin-top: 6px; font-family: var(--font-display); font-size: 1.7rem; font-variant-numeric: lining-nums tabular-nums; }
.dims dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.product-desc { margin-top: 22px; display: grid; gap: 8px; max-width: 60ch; }
.ask { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.ask-text { color: var(--muted); font-size: .95rem; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ask-actions .btn { flex: 1 1 200px; }
.copy-link { margin-top: 18px; }
.product-address { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .88rem; color: var(--muted); }
.product-address a { text-decoration: none; }
.product-address a:hover { text-decoration: underline; color: var(--ink); }
.block-related { background: var(--white); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(20,20,20,.96); color: var(--white);
}
.lightbox::backdrop { background: rgba(20,20,20,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; }
.lb-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: var(--white); cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-prev .ico { transform: rotate(180deg); }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; font-size: .9rem; opacity: .8; font-variant-numeric: tabular-nums; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); padding-block: 48px 96px; align-items: start; }
.contact-info { display: grid; gap: 24px; }
.contact-card { background: var(--white); border-radius: var(--radius-m); padding: 28px; }
.contact-card h2 { font-size: .85rem; font-weight: 600; color: var(--muted); }
.contact-card h2 + p { margin: 4px 0 18px; font-size: 1.1rem; }
.contact-card a { text-decoration: none; }
.contact-card p a:hover { text-decoration: underline; }
.contact-form { background: var(--white); border-radius: var(--radius-m); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.form-lead { color: var(--muted); margin-top: -6px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .9rem; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); font: inherit; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; }
.form-ok { background: #e3efe6; color: #1c5a35; padding: 12px 16px; border-radius: 8px; }
.form-error { background: #f6e3df; color: var(--danger); padding: 12px 16px; border-radius: 8px; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1180px) {
  /* Tablette arama kutusu kalır; telefon numarası yerine yalnızca simge */
  .header-row { gap: 18px; }
  .header-search { flex: 1 1 180px; }
  .header-call span { display: none; }
  .header-call { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .main-nav, .header-search { display: none; }
  .header-call { margin-left: auto; }
  .menu-btn { display: grid; }
  .header-row { gap: 10px; }
  .brand img { width: 44px; height: 44px; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 0 48px; gap: 0; }
  .hero-figure { margin: 0 calc(var(--gutter) * -1); order: -1; }
  .hero-copy { margin-top: -12px; position: relative; }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 30vw, 230px); gap: 10px; }
  .tile-large, .tile-large.is-right { grid-column: span 2; grid-row: span 2; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .visit-grid, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .catalog { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .catalog-side { display: none; }
  .grid-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .product { grid-template-columns: 1fr; }
  .product-info { position: static; }
}

@media (max-width: 720px) {
  .grid, .grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card-title { font-size: .95rem; }
  .select { margin-left: 0; }
  .toolbar { gap: 14px; }
  .toolbar-search { flex-basis: 100%; max-width: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Parmakla rahat basılsın */
  .footer-cats ul { line-height: 1.4; }
  .footer-cats li a, .site-footer address a { display: inline-block; padding-block: 8px; }
  .site-footer address { line-height: 1.4; }
  .crumbs a { display: inline-block; padding-block: 6px; }
  /* Sabit WhatsApp düğmesi en alttaki satırı örtmesin */
  .footer-bottom { padding-bottom: 84px; }
  .visit-info div { grid-template-columns: 1fr; gap: 2px; }
  .brand-name { font-size: 1.25rem; }
  .brand-name span { letter-spacing: .24em; }
  .pagination .pg-step { display: none; }
  .tile-text { left: 12px; right: 12px; bottom: 12px; flex-direction: column; gap: 2px; }
  .tile-large .tile-text { left: 18px; right: 18px; bottom: 58px; }
  .tile-sub { left: 18px; right: 18px; bottom: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tile-sub a { flex: none; }
  .tile-large:not(:has(.tile-sub)) .tile-text { bottom: 18px; }
  .brand-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brand-note { white-space: normal; }
  .brand-thumb { width: 68px; height: 68px; }
  .gallery-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; scrollbar-width: none; }
  /* Yatay kayan şeritler ekran kenarına kadar uzanır; kesik duran son öğe kaydırılabildiğini gösterir */
  .chips, .gallery-thumbs {
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
  }
  .chip { flex: none; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

.chips::-webkit-scrollbar, .tile-sub::-webkit-scrollbar, .gallery-thumbs::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
