/* ==========================================================================
   Serpil Emprime — site stilleri
   Tema, <html data-theme="..."> değerine göre CSS değişkenleriyle değişir.
   Tema yalnızca admin panelinden (Site Ayarları) seçilir.
   ========================================================================== */

/* ---------- Temalar ---------- */
:root {
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 10px 30px rgba(20, 16, 10, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="butik"] {
  --bg: #F6F1E7; --surface: #FFFDF8; --surface-2: #EFE7D8; --text: #1C1814; --muted: #6E645A; --line: #E2D7C5;
  --accent: #A8823F; --accent-strong: #8C6A2E; --primary: #1C1814; --primary-contrast: #FBF7EF;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --font-body: 'Jost', system-ui, sans-serif;
  --head-weight: 600; --head-transform: none; --head-spacing: -0.01em; --head-scale: 1.12; --head-line: 1.02;
  --radius: 4px; --btn-radius: 999px; --card-border: 1px solid var(--line);
  --stage-bg: radial-gradient(ellipse at 50% 40%, #FFFDF8 0%, #EFE7D8 75%);
  --hero-bg: linear-gradient(180deg, #F6F1E7 0%, #EFE6D4 100%);
}

[data-theme="sokak"] {
  --bg: #0E0E10; --surface: #17171B; --surface-2: #212127; --text: #F4F4F0; --muted: #A5A5AD; --line: #2E2E36;
  --accent: #D4FF3A; --accent-strong: #C2F21A; --primary: #D4FF3A; --primary-contrast: #0E0E10;
  --font-head: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif; --font-body: 'Space Grotesk', system-ui, sans-serif;
  --head-weight: 400; --head-transform: uppercase; --head-spacing: 0.01em; --head-scale: 1.4; --head-line: .92;
  --radius: 14px; --btn-radius: 10px; --card-border: 1px solid var(--line);
  --stage-bg: radial-gradient(ellipse at 50% 35%, #2A2A31 0%, #121215 75%);
  --hero-bg: radial-gradient(circle at 80% 10%, rgba(212, 255, 58, .14), transparent 40%), radial-gradient(circle at 10% 90%, rgba(255, 61, 127, .14), transparent 45%), #0E0E10;
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
}

[data-theme="minimal"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F5F5F3; --text: #111111; --muted: #6B6B6B; --line: #E6E6E3;
  --accent: #111111; --accent-strong: #000000; --primary: #111111; --primary-contrast: #FFFFFF;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head-weight: 600; --head-transform: none; --head-spacing: -0.035em; --head-scale: 1; --head-line: 1.05;
  --radius: 0; --btn-radius: 0; --card-border: 1px solid var(--line);
  --stage-bg: #F5F5F3;
  --hero-bg: #FFFFFF;
  --shadow: none;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-transform);
  letter-spacing: var(--head-spacing); line-height: var(--head-line); margin: 0 0 .5em;
}
h1 { font-size: calc(clamp(2.4rem, 5.2vw, 4.2rem) * var(--head-scale)); }
h2 { font-size: calc(clamp(1.9rem, 3.4vw, 2.8rem) * var(--head-scale)); }
h3 { font-size: calc(1.35rem * var(--head-scale)); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--primary-contrast); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 18px;
}
[data-theme="sokak"] .eyebrow { color: var(--accent); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--btn-radius); border: 1px solid var(--text);
  background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--primary-contrast); }
[data-theme="butik"] .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-whatsapp { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178A45; border-color: #178A45; color: #fff; }
.btn-block { width: 100%; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--text);
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  border-radius: var(--btn-radius);
}
[data-theme="butik"] .brand-mark { border-color: var(--accent); color: var(--accent-strong); border-radius: 50%; }
[data-theme="sokak"] .brand-mark { background: var(--accent); color: #0E0E10; border-color: var(--accent); border-radius: 10px; font-size: 1.3rem; }
.brand-text { font-family: var(--font-head); font-weight: var(--head-weight); font-size: calc(1.35rem * var(--head-scale)); text-transform: var(--head-transform); letter-spacing: var(--head-spacing); line-height: 1; }
[data-theme="butik"] .brand-text { letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .2s; }
.admin-bar { background: #111; color: #eee; font-size: .82rem; text-align: center; padding: 6px; }
.admin-bar a { color: #ffd76a; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; }
}

/* ---------- Bölümler ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }
.section-head h2 { margin: 0; }

/* Hero */
.hero { background: var(--hero-bg); padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-points { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-points strong { display: block; color: var(--text); font-family: var(--font-head); font-size: calc(1.6rem * var(--head-scale)); font-weight: var(--head-weight); line-height: 1; }
.hero-visual { position: relative; }
.hero-stage {
  position: relative; background: var(--stage-bg); border: var(--card-border); border-radius: calc(var(--radius) * 2);
  aspect-ratio: 6 / 6.4; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.hero-stage canvas { width: 92%; height: auto; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.hero-stage canvas.is-switching { opacity: .35; transform: scale(.985); }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--btn-radius);
  padding: 8px 14px; font: inherit; font-size: .85rem; cursor: pointer; transition: all .2s; text-decoration: none;
}
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); }
.hero-badge {
  position: absolute; left: -10px; bottom: 40px; background: var(--surface); border: var(--card-border);
  padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .85rem; max-width: 220px;
}
.hero-badge strong { display: block; font-family: var(--font-head); font-size: calc(1.1rem * var(--head-scale)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
}

/* Adımlar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 28px; border: var(--card-border); background: var(--surface); border-radius: var(--radius); position: relative; }
.step::before {
  counter-increment: step; content: '0' counter(step); display: block; font-family: var(--font-head);
  font-size: calc(2.6rem * var(--head-scale)); color: var(--accent); line-height: 1; margin-bottom: 14px; font-weight: var(--head-weight);
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Teknik kartları */
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tech-card { background: var(--surface); border: var(--card-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tech-card canvas { width: 100%; height: auto; background: var(--stage-bg); aspect-ratio: 6 / 7; }
.tech-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tech-card h3 { margin: 0; }
.tech-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.tech-card .best { font-size: .82rem; color: var(--text); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.tech-card a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--accent-strong); }
[data-theme="sokak"] .tech-card a { color: var(--accent); }
@media (max-width: 1100px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } .tech-card .body { padding: 14px; } }

/* Ürünler */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-card {
  text-decoration: none; background: var(--surface); border: var(--card-border); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; transition: transform .25s var(--ease), border-color .2s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--text); }
.product-card img { width: 100%; aspect-ratio: 6 / 7; object-fit: contain; }
.product-card strong { display: block; margin-top: 8px; font-family: var(--font-head); font-size: calc(1.15rem * var(--head-scale)); font-weight: var(--head-weight); text-transform: var(--head-transform); }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

/* Desenler */
.pattern-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pattern-tile {
  position: relative; display: block; background: #fff; border: var(--card-border); border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1; text-decoration: none;
}
.pattern-tile img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s var(--ease); }
.pattern-tile:hover img { transform: scale(1.05); }
.pattern-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: .85rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transition: opacity .25s;
}
.pattern-tile:hover span, .pattern-tile:focus-visible span { opacity: 1; }
@media (max-width: 760px) { .pattern-strip { grid-template-columns: repeat(2, 1fr); } .pattern-tile span { opacity: 1; } }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item { margin: 0; background: var(--surface); border: var(--card-border); border-radius: var(--radius); overflow: hidden; }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 14px 16px; }
.gallery-item figcaption strong { display: block; font-size: .98rem; }
.gallery-item figcaption span { font-size: .82rem; color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--btn-radius); margin-top: 8px; color: var(--muted); }
@media (max-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-row > span { font-size: .82rem; color: var(--muted); min-width: 92px; }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; padding: 10px; }

/* CTA bandı */
.cta-band { background: var(--primary); color: var(--primary-contrast); border-radius: calc(var(--radius) * 2); padding: clamp(32px, 6vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: .8; max-width: 560px; }
.cta-band .btn:not(.btn-whatsapp) { border-color: var(--primary-contrast); color: var(--primary-contrast); }
[data-theme="butik"] .cta-band { background: #1C1814; color: #FBF7EF; }
[data-theme="sokak"] .cta-band { background: linear-gradient(120deg, #D4FF3A, #9BE82A); color: #0E0E10; }
[data-theme="sokak"] .cta-band .btn:not(.btn-whatsapp) { border-color: #0E0E10; color: #0E0E10; }

/* Sayfa başlığı */
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 640px; font-size: 1.08rem; margin: 0; }

/* Hakkımızda */
.about-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose p { font-size: 1.08rem; }
.contact-card { background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 28px; position: sticky; top: 96px; }
.contact-card h3 { margin-bottom: 18px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.value { border-top: 2px solid var(--accent); padding-top: 14px; }
.value strong { display: block; font-family: var(--font-head); font-size: calc(1.2rem * var(--head-scale)); font-weight: var(--head-weight); text-transform: var(--head-transform); }
.value span { color: var(--muted); font-size: .92rem; }
.map-embed { margin-top: 40px; border: var(--card-border); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }
@media (max-width: 860px) { .about-grid, .values { grid-template-columns: 1fr; } .contact-card { position: static; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: calc(1.05rem * var(--head-scale)); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; color: var(--muted); }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  background: #1FA855; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.page-design .wa-float { display: none; }

/* Hata sayfası */
.error-page { min-height: 52vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-head); font-size: calc(5rem * var(--head-scale)); color: var(--accent); line-height: 1; }

/* ==========================================================================
   Baskı önizleme editörü
   ========================================================================== */
.editor-head { padding: 22px 0 6px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.editor-head h1 { font-size: calc(clamp(1.8rem, 3vw, 2.4rem) * var(--head-scale)); margin: 0; }
.editor-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.editor {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 18px; align-items: start;
  max-width: 1440px; margin: 0 auto; padding: 14px var(--gutter) 40px;
}
.panel { background: var(--surface); border: var(--card-border); border-radius: var(--radius); padding: 16px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: calc(1.05rem * var(--head-scale)); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h2 small { font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.panel.is-disabled { opacity: .92; }
.product-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius);
  padding: 8px 6px; cursor: pointer; font: inherit; font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.product-btn img { width: 100%; aspect-ratio: 6/7; object-fit: contain; }
.product-btn.is-active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; padding: 0;
  background: var(--swatch); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { outline: 2px solid var(--text); outline-offset: 2px; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--btn-radius); overflow: hidden; }
.side-tabs button { border: 0; background: transparent; padding: 9px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--muted); }
.side-tabs button.is-active { background: var(--primary); color: var(--primary-contrast); }
.side-tabs em { font-style: normal; font-size: .75rem; opacity: .75; }

.stage-wrap { position: sticky; top: 84px; }
.stage {
  background: var(--stage-bg); border: var(--card-border); border-radius: calc(var(--radius) * 2);
  min-height: 420px; display: flex; justify-content: center; align-items: center; padding: 10px; overflow: hidden;
}
.stage-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 8px 4px 0; gap: 10px; flex-wrap: wrap; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.actions .btn { padding: 11px 10px; font-size: .86rem; }
.actions .btn-primary { grid-column: span 1; }

.add-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.add-btn {
  border: 1px dashed var(--line); background: var(--surface-2); color: var(--text); border-radius: var(--radius);
  padding: 14px 6px; font: inherit; font-size: .82rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.add-btn:hover { border-color: var(--text); }
.add-btn svg { width: 22px; height: 22px; }
.add-btn input { display: none; }
.tech-list { display: flex; flex-direction: column; gap: 6px; }
.tech-btn {
  border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: var(--radius); text-align: left;
  padding: 10px 12px; font: inherit; font-size: .9rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.tech-btn::after { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--muted); }
.tech-btn.is-active { border-color: var(--text); font-weight: 600; }
.tech-btn.is-active::after { background: var(--accent); border-color: var(--accent); }
.tech-desc { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
.option-row { margin-top: 12px; }
.option-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.tip { margin-top: 12px; font-size: .82rem; background: var(--surface-2); border-left: 3px solid var(--accent); padding: 8px 10px; border-radius: 0 var(--radius) var(--radius) 0; }
.layer-size { font-family: var(--font-head); font-size: calc(1.3rem * var(--head-scale)); font-weight: var(--head-weight); }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-row .btn { padding: 7px 10px; font-size: .8rem; border-color: var(--line); }
.tool-row .btn:hover { border-color: var(--text); }
.field-inline { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .85rem; }
.field-inline input[type="number"] { width: 90px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--text); }
input[type="color"] { width: 44px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: none; padding: 2px; cursor: pointer; }
.font-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.font-list button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 7px; cursor: pointer; border-radius: var(--radius); font-size: 1rem; }
.font-list button.is-active { border-color: var(--text); }
.check { display: flex; gap: 8px; align-items: center; font-size: .86rem; margin-top: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

@media (max-width: 1180px) {
  .editor { grid-template-columns: 230px minmax(0, 1fr); }
  .editor-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .editor-right .panel + .panel { margin-top: 0; }
}
@media (max-width: 820px) {
  .editor { grid-template-columns: 1fr; }
  .stage-wrap { position: static; order: -1; }
  .editor-left { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .editor-left .panel + .panel { margin-top: 0; }
  .product-list { grid-template-columns: repeat(5, 1fr); }
  .editor-right { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr 1fr; }
}

/* Modallar */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 10, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box {
  background: var(--surface); color: var(--text); border-radius: calc(var(--radius) * 2); width: min(960px, 100%);
  max-height: 92vh; overflow: auto; padding: 24px; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal-box.narrow { width: min(720px, 100%); }
.modal-close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px 10px; }
.modal-box h2 { font-size: calc(1.6rem * var(--head-scale)); margin-right: 40px; }
.pattern-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pattern-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pattern-card { border: 1px solid var(--line); background: #fff; color: #222; border-radius: var(--radius); padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font: inherit; font-size: .78rem; }
.pattern-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pattern-card:hover { border-color: #111; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.compare-item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--stage-bg); display: flex; flex-direction: column; }
.compare-item.is-current { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.compare-item figcaption { padding: 10px 12px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.compare-item figcaption span { font-size: .78rem; color: var(--muted); flex: 1; }
.quote-layout { display: grid; grid-template-columns: 200px 1fr; gap: 22px; }
.quote-layout img { border: 1px solid var(--line); border-radius: var(--radius); background: var(--stage-bg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; }
.field .hint { color: var(--muted); font-size: .76rem; }
.field-error { color: #C62828; font-size: .78rem; min-height: 0; }
.has-error input, .has-error textarea { border-color: #C62828; }
.general-error { color: #C62828; font-size: .88rem; margin: 10px 0 0; }
.success-box { text-align: center; padding: 20px 10px; }
.success-box .no { font-family: var(--font-head); font-size: calc(2.4rem * var(--head-scale)); color: var(--accent); }
@media (max-width: 640px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-layout img { max-width: 160px; margin: 0 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 18px; }
}
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); background: #111; color: #fff; padding: 11px 18px;
  border-radius: 999px; font-size: .88rem; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 90; max-width: 92vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #B3261E; }

/* KVKK ve metin sayfaları */
.legal { max-width: 820px; }
.legal h2 { font-size: calc(1.4rem * var(--head-scale)); margin-top: 1.6em; }

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

/* Butik temasındaki Cormorant yazı tipinde rakamlar düz (lining) görünsün: "SE00001" "SEooo01" gibi okunmasın */
[data-theme="butik"] h1, [data-theme="butik"] h2, [data-theme="butik"] h3, [data-theme="butik"] .success-box .no,
[data-theme="butik"] .hero-points strong, [data-theme="butik"] .step::before, [data-theme="butik"] .layer-size,
[data-theme="butik"] .error-code, [data-theme="butik"] .brand-text { font-variant-numeric: lining-nums; }

/* ---------- El yazısı logo ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1; }
.brand-script {
  font-family: 'Pacifico', 'Brush Script MT', cursive; font-weight: 400; font-size: 1.7rem; line-height: 1.15;
  color: var(--text); letter-spacing: 0; text-transform: none; padding: 0 6px 0 2px; white-space: nowrap;
}
.brand-swash { width: 100%; height: 9px; margin-top: -5px; color: var(--accent); }
[data-theme="sokak"] .brand-script { color: var(--accent); }
[data-theme="sokak"] .brand-swash { color: #FF3D7F; }
.site-footer .brand-script { font-size: 1.5rem; }
.site-footer .brand { margin-bottom: 12px; }
@media (max-width: 420px) { .brand-script { font-size: 1.4rem; } }

/* ---------- Hazır ürünler ---------- */
.ready-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ready-card { background: var(--surface); border: var(--card-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.ready-visual { background: var(--stage-bg); aspect-ratio: 6 / 6.4; display: grid; place-items: center; overflow: hidden; }
.ready-visual canvas { width: 94%; height: auto; transition: opacity .3s; }
.ready-card.is-loading canvas { opacity: .4; }
.ready-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ready-body h3 { margin: 0; }
.ready-body p { margin: 0; font-size: .9rem; }
.ready-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ready-meta .tag { margin-top: 0; }
.ready-price { font-weight: 600; font-size: 1.05rem; }
.ready-row .option-label strong { color: var(--text); text-transform: none; letter-spacing: 0; }
.ready-row .swatch { width: 26px; height: 26px; }
.ready-inputs { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.ready-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.ready-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.ready-actions .btn { width: 100%; }
@media (max-width: 1000px) { .ready-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ready-grid { grid-template-columns: 1fr; } }

/* Editör: ürün grupları, devre dışı yüz sekmesi; ana sayfa hazır ürün kartları */
.product-group { margin: 4px 0 8px; }
.product-list + .product-group { margin-top: 14px; }
.side-tabs button:disabled { opacity: .35; cursor: not-allowed; }
.ready-mini { text-decoration: none; color: inherit; transition: transform .25s var(--ease); }
.ready-mini:hover { transform: translateY(-4px); }
.ready-mini .ready-price { font-size: .92rem; color: var(--accent-strong); }
[data-theme="sokak"] .ready-mini .ready-price { color: var(--accent); }

/* ==========================================================================
   Mobil: önizleme üstte sabit, işlem butonları altta sabit çubuk,
   ürünler yatay kayan şerit
   ========================================================================== */
@media (max-width: 820px) {
  .page-design .editor-head { padding-top: 14px; }
  .page-design .editor-head h1 { font-size: calc(1.5rem * var(--head-scale)); }
  .page-design .editor-head p { font-size: .85rem; }
  .editor { gap: 12px; padding-top: 8px; padding-bottom: 90px; }
  .stage-wrap {
    position: sticky; top: 72px; z-index: 20; background: var(--bg);
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px;
    box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .35);
  }
  .stage { min-height: 0; padding: 4px; border-radius: var(--radius); }
  .stage-meta { font-size: .72rem; padding-top: 4px; }
  .stage-meta span:last-child { display: none; }
  .actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0;
    grid-template-columns: repeat(4, 1fr); gap: 6px;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
  }
  .actions .btn { padding: 11px 4px; font-size: .76rem; white-space: normal; line-height: 1.15; }
  .page-design .site-footer { padding-bottom: 90px; }
  .page-design .toast { bottom: 84px; }
  .product-list { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .product-btn { flex: 0 0 84px; scroll-snap-align: start; }
  .panel { padding: 14px; }
  .tool-row .btn { padding: 9px 11px; }
  .swatch { width: 34px; height: 34px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 16px 16px 0 0; max-height: 90vh; width: 100%; }
}
@media (max-width: 420px) {
  .stage-wrap { top: 72px; }
  .actions .btn { font-size: .72rem; }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .add-btn { padding: 12px 4px; font-size: .76rem; }
}
/* Grid sütunları içerik (ör. kayan ürün şeridi) yüzünden taşmasın */
.editor > *, .editor-left > *, .editor-right > * { min-width: 0; }
@media (max-width: 820px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-left, .editor-right { grid-template-columns: minmax(0, 1fr); }
}
