/* Esnaf İşi Dijital Katalog — temel stiller: belirteçler, tipografi, üst çubuk, alt bilgi, katmanlar, formlar.
   Renk ve yazı tipi değişkenleri müşteri temasından (tenants/<x>/theme.json) gelir; buradakiler yedek değerlerdir. */
:root {
  --c-ink: #081428; --c-navy: #0f2447; --c-navy-hi: #1a3a6b; --c-anthracite: #2a2e35; --c-graphite: #3d434c;
  --c-steel: #8a94a3; --c-line: #d4d8de; --c-paper: #f3f2ee; --c-white: #fff; --c-accent: #ff6a13; --c-accent-ink: #1a0b00;
  --f-display: "Bahnschrift", "DIN Condensed", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --f-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Palatino Linotype", Palatino, Georgia, serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  background: var(--c-paper); color: var(--c-ink); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-intro, body.ov-open { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 400; background: var(--c-accent); color: var(--c-accent-ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.center { text-align: center; }
.fine { font-size: .8rem; color: var(--c-steel); }

/* Tipografi */
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: .005em; line-height: 1.02; font-stretch: 75%; font-variation-settings: "wdth" 75; text-wrap: balance; }
h1, h2 { text-transform: uppercase; }
.kicker { font: 600 .76rem/1.2 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; }
.code, .code-line { font-family: var(--f-mono); letter-spacing: .1em; }
.mini-h { font: 600 .72rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c-graphite); margin: 22px 0 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon { flex: none; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 2px; font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none; background: none; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 52px; padding: 0 28px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.btn-accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-accent:hover { background: #ff7d33; }
.btn-dark { background: var(--c-ink); color: #fff; }
.btn-dark:hover { background: var(--c-navy-hi); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost-dark { border-color: var(--c-ink); color: var(--c-ink); }
.btn-ghost-dark:hover { background: var(--c-ink); color: #fff; }
.grow { flex: 1; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 1px solid var(--c-line); border-radius: 2px; color: inherit; flex: none; }
.icon-btn:hover { border-color: var(--c-ink); }

/* Üst çubuk */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h); color: #fff; transition: background .35s, backdrop-filter .35s, border-color .35s; border-bottom: 1px solid transparent; }
body:not(.has-dark-top) .topbar, body.is-scrolled .topbar { background: rgba(8, 20, 40, .94); backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, .08); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .mark { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--c-accent); color: var(--c-accent); font: 700 1.05rem var(--f-display); }
.brand .word { font: 700 .95rem var(--f-display); letter-spacing: .2em; text-transform: uppercase; font-variation-settings: "wdth" 75; white-space: nowrap; }
.viewswitch { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 61; height: var(--header-h); display: flex; align-items: center; gap: 4px; color: #fff; }
.top-actions { margin-left: auto; }
.viewswitch a { display: block; padding: 10px 16px; text-decoration: none; font-size: .88rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); position: relative; }
.viewswitch a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--c-accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.viewswitch a:hover { color: #fff; }
.viewswitch a[aria-current="page"] { color: #fff; }
.viewswitch a[aria-current="page"]::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 2px; }
.top-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; justify-content: center; color: #fff; background: none; border: 0; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.top-btn:hover { color: var(--c-accent); }
.top-quote { background: var(--c-accent); color: var(--c-accent-ink); margin-left: 8px; padding: 0 14px; border-radius: 2px; letter-spacing: .02em; font-size: .88rem; }
.top-quote:hover { color: var(--c-accent-ink); background: #ff7d33; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--c-accent); color: var(--c-accent-ink); font: 700 11px/18px var(--f-body); text-align: center; }
.top-quote .badge { background: var(--c-ink); color: #fff; top: -6px; right: -6px; }

/* Alt bilgi */
.footer { background: var(--c-ink); color: rgba(255, 255, 255, .78); padding-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.foot-brand .word { font: 700 1.4rem var(--f-display); letter-spacing: .18em; color: #fff; margin: 0 0 10px; }
.footer .mini-h { color: var(--c-steel); margin-top: 0; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a[aria-current] { color: var(--c-accent); }
.foot-demo { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 28px; font-size: .86rem; color: var(--c-steel); }
.foot-demo strong { display: block; color: var(--c-accent); font: 600 .74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.foot-demo p { max-width: 90ch; margin-bottom: .5em; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: var(--c-steel); }

/* Medya (yer tutucu + gerçek fotoğraf) */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4 / 5); background: #d4d9e0; }
.media-ph, .media-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-ph svg { width: 100%; height: 100%; display: block; }
.media-img { object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.media-img.is-in { opacity: 1; }
.media-fill { position: absolute; inset: 0; aspect-ratio: auto; background: transparent; }
.media-flag { position: absolute; left: 10px; bottom: 10px; font: 600 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(8, 20, 40, .5); opacity: 0; animation: fadein .4s 1s forwards; pointer-events: none; }
.media.has-img .media-flag { display: none; }
.story-img .media-flag { color: rgba(255, 255, 255, .55); }
.hero .media-flag, .closing .media-flag, .mini .media-flag { display: none; }
@keyframes fadein { to { opacity: 1; } }

/* Hareket: belirme */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].in { opacity: 1; transform: none; }
html[data-motion="reduced"] [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Katmanlar */
.ov { position: fixed; inset: 0; z-index: 100; }
.ov-backdrop { position: absolute; inset: 0; background: rgba(5, 12, 24, .55); animation: fadein .25s both; opacity: 0; }
.ov-panel { position: absolute; background: var(--c-paper); color: var(--c-ink); display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.ov-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--c-line); }
.ov-head h2 { font-size: 1.15rem; flex: 1; }
.ov-head .count { font: 600 .78rem var(--f-mono); color: var(--c-graphite); }
.ov-body { padding: 18px 20px 28px; overflow: auto; flex: 1; overscroll-behavior: contain; }
.ov-quote .ov-panel { top: 0; right: 0; bottom: 0; width: min(560px, 100vw); animation: slidein .45s var(--ease) both; }
.ov-lang .ov-panel, .ov-share .ov-panel { top: calc(var(--header-h) + 6px); right: var(--gutter); width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - var(--header-h) - 24px); border-radius: 4px; animation: popin .3s var(--ease) both; }
.ov-lang .ov-backdrop, .ov-share .ov-backdrop { background: rgba(5, 12, 24, .25); }
.ov-lightbox .ov-panel { inset: 0; background: #060d1a; box-shadow: none; }
.ov-lightbox .ov-backdrop { display: none; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popin { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.choice { list-style: none; display: grid; gap: 6px; }
.choice-wrap { grid-template-columns: repeat(2, 1fr); }
.choice button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; background: #fff; border: 1px solid var(--c-line); border-radius: 2px; }
.choice button:hover { border-color: var(--c-ink); }
.choice button[aria-current="true"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.choice .native { flex: 1; font-weight: 600; }
.choice .abbr { font: 600 .72rem var(--f-mono); opacity: .6; }
.choice .sug { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.hint { font-size: .82rem; color: var(--c-graphite); margin-top: 14px; }
.hint.demo { background: #fff3e9; border-left: 3px solid var(--c-accent); padding: 10px 12px; }

.linkrow { margin-bottom: 16px; }
.linkrow label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; min-width: 0; font: .82rem var(--f-mono); padding: 0 10px; height: 36px; border: 1px solid var(--c-line); background: #fff; }
.soon { list-style: none; margin-top: 22px; display: grid; gap: 6px; }
.soon li { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px dashed var(--c-line); color: var(--c-steel); font-size: .88rem; }
.soon em { font: 600 .68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* Formlar */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--c-graphite); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 1rem; background: #fff; border: 1px solid var(--c-line); border-radius: 2px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 0; border-color: var(--c-accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--c-line); background: #fff; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; }
.stepper button:hover { background: var(--c-paper); }
.stepper input { width: 84px; border: 0; text-align: center; font-weight: 600; font-size: 1rem; background: transparent; min-width: 0; }

/* Teklif çekmecesi */
.q-empty { text-align: center; padding: 28px 8px; }
.qlist { list-style: none; display: grid; gap: 12px; }
.qitem { display: grid; grid-template-columns: 56px 1fr auto 44px; gap: 12px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--c-line); }
.qthumb { width: 56px; height: 68px; background: #dfe3e8; color: var(--c-garment-line, rgba(8, 20, 40, .55)); display: grid; place-items: center; }
.qthumb { position: relative; overflow: hidden; }
.qthumb .media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qthumb .mini-sil { width: 80%; height: 80%; fill: var(--garment); stroke: rgba(0, 0, 0, .45); stroke-width: 5; }
.qinfo { min-width: 0; font-size: .9rem; }
.qinfo small { display: flex; align-items: center; gap: 6px; color: var(--c-graphite); }
.sw { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); border: 1px solid rgba(0, 0, 0, .25); display: inline-block; }
.qitem .stepper { grid-column: 2 / 4; justify-self: start; }
.qitem .stepper button, .qitem .stepper { height: 38px; }
.qitem .stepper button { width: 38px; }
.qitem .stepper input { width: 64px; }
.qitem > .icon-btn { grid-row: 1; grid-column: 4; border: 0; }
.qtotal { text-align: right; font-weight: 700; margin: 12px 0 0; }
#q-form { margin-top: 8px; }
.tabs { display: flex; gap: 0; margin-bottom: 8px; border-bottom: 1px solid var(--c-line); }
.tabs button { background: none; border: 0; padding: 10px 16px; font-weight: 600; border-bottom: 2px solid transparent; color: var(--c-graphite); }
.tabs button[aria-selected="true"] { color: var(--c-ink); border-color: var(--c-accent); }
pre.doc { margin: 0 0 14px; padding: 16px; background: #fff; border: 1px solid var(--c-line); font: .84rem/1.6 var(--f-mono); white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Lightbox */
.lb-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: none; }
.lb-stage.drag { cursor: grabbing; }
.lb-content { height: min(92dvh, 120vw); aspect-ratio: 4 / 5; transform-origin: center; transition: transform .2s var(--ease); will-change: transform; }
.lb-stage.drag .lb-content { transition: none; }
.lb-content .media { position: absolute; inset: 0; aspect-ratio: auto; }
.lb-content .media-flag { display: none; }
.lb-bar { position: absolute; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: rgba(8, 20, 40, .85); padding: 8px; backdrop-filter: blur(8px); color: #fff; }
.lb-bar .icon-btn { border-color: rgba(255, 255, 255, .3); color: #fff; }
.lb-bar .btn-sm { border-color: rgba(255, 255, 255, .3); color: #fff; }

/* Bildirim */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--c-ink); color: #fff; padding: 12px 18px; z-index: 300; font-size: .9rem; border-left: 3px solid var(--c-accent); transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Açılış perdesi */
.intro { position: fixed; inset: 0; z-index: 500; background: var(--c-ink); color: #fff; display: grid; place-items: center; transition: transform .9s var(--ease); cursor: pointer; }
.intro.out { transform: translateY(-100%); pointer-events: none; }
.intro-in { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.intro-mark { width: 64px; height: 64px; display: grid; place-items: center; border: 3px solid var(--c-accent); color: var(--c-accent); font: 700 2rem var(--f-display); opacity: 0; transform: scale(.8); animation: intro-pop .7s .1s var(--ease) forwards; }
.intro-word { font: 700 clamp(1.4rem, 5vw, 2.4rem) var(--f-display); letter-spacing: .34em; text-transform: uppercase; padding-left: .34em; font-variation-settings: "wdth" 75; opacity: 0; transform: translateY(14px); animation: intro-pop .8s .45s var(--ease) forwards; }
.intro-line { width: min(220px, 50vw); height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; animation: intro-line 1s .7s var(--ease) forwards; }
.intro-tag { font: 600 .74rem var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--c-steel); opacity: 0; animation: intro-pop .8s 1.1s var(--ease) forwards; }
.intro-skip { position: absolute; right: 20px; bottom: 20px; background: none; border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .7); padding: 8px 14px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
@keyframes intro-pop { to { opacity: 1; transform: none; } }
@keyframes intro-line { to { transform: scaleX(1); } }

.fatal { max-width: 640px; margin: 20vh auto; padding: 24px; color: #fff; font-family: system-ui; }
.fatal pre { white-space: pre-wrap; opacity: .7; }

/* Mobil: görünüm anahtarı alt çubuğa taşınır */
@media (max-width: 1120px) { .top-quote .lbl { display: none; } .top-quote { padding: 0 12px; } }
@media (max-width: 860px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .viewswitch { top: auto; left: 0; right: 0; bottom: 0; transform: none; height: auto; z-index: 70; margin: 0; gap: 0; background: rgba(8, 20, 40, .97); border-top: 1px solid rgba(255, 255, 255, .1); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(12px); }
  .viewswitch a { flex: 1; text-align: center; padding: 18px 8px 16px; }
  .viewswitch a::after { left: 30%; right: 30%; bottom: 8px; }
  .top-actions { margin-left: auto; }
  .top-quote .lbl { display: none; }
  .top-quote { padding: 0 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .ov-lang .ov-panel, .ov-share .ov-panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 82dvh; border-radius: 14px 14px 0 0; animation: slidein-up .4s var(--ease) both; }
  .ov-quote .ov-panel { width: 100vw; }
}
@media (max-width: 520px) {
  .brand .word { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .top-actions [data-action="open-share"] { display: none; }
}
@keyframes slidein-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* v0.7: sade alt bilgi (tek satır; çok sütunlu klasik site alt bilgisi kaldırıldı) */
.footer.slim { padding: 0; font-size: .84rem; }
.foot-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 16px; }
.foot-slim .word { font: 700 .95rem var(--f-display); letter-spacing: .18em; color: #fff; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-contact { margin-left: auto; color: var(--c-steel); }
.footer.slim .foot-demo { padding-block: 12px 16px; font-size: .78rem; line-height: 1.5; }
.footer.slim .foot-demo p { max-width: 110ch; margin-bottom: .3em; }
.footer.slim .foot-made { color: var(--c-steel); opacity: .8; }
@media (max-width: 860px) { .foot-contact { margin-left: 0; width: 100%; } }

/* Müşteri özellik anahtarları (business.json > features): kapalı özellikler gizlenir */
.no-compare .cmp, .no-compare [data-badge="compare"], .no-compare .top-btn[href*="/compare"], .no-compare [data-action="fav-compare-all"], .no-compare .cx-add-link { display: none !important; }
.no-favorites .fav, .no-favorites [data-action="open-favs"], .no-favorites [data-action="col-add-favs"], .no-favorites [data-action="col-from-favs"] { display: none !important; }
.no-collections [data-action="open-cols"] { display: none !important; }
.no-quote .top-quote, .no-quote [data-action="add-quote"], .no-quote [data-action="st-add"], .no-quote [data-action="mg-add"], .no-quote [data-action="cx-add"], .no-quote [data-action="fav-add-quote"] { display: none !important; }
