/* Gölmer Granit · Mutfağını Tasarla (sitedeki herkese açık stüdyo) */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #6a6f7a;
  --line: #e6e2d9;
  --brand: #004aac;
  --brand-deep: #003478;
  --brand-soft: #e8effa;
  --stone: #d9d3c7;
  --ok: #1f7a4a;
  --err: #a53030;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(22, 24, 29, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2 { margin: 0; }
h1 { font: 700 clamp(26px, 6vw, 40px)/1.15 "Playfair Display", Georgia, serif; letter-spacing: -.015em; }
h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }

.ds-wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px; }
.ds-narrow .ds-main { max-width: 520px; }
.ds-main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
.ds-sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Üst çubuk ve alt bilgi */
.ds-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.ds-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.ds-logo img { display: block; height: 40px; width: auto; }
.ds-top-user { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; color: var(--muted); }
.ds-top-user b { color: var(--brand); }
.ds-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: none; }
.ds-link:hover { text-decoration: underline; }
.ds-foot { border-top: 1px solid var(--line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.ds-foot .ds-wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ds-foot a { color: var(--muted); }

/* Düğmeler */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font: 600 15px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s; }
.ds-btn:hover { background: var(--brand-deep); }
.ds-btn:active { transform: scale(.98); }
.ds-btn:focus-visible, .ds-link:focus-visible, .ds-stone:focus-within, .ds-chip:focus-within { outline: 3px solid #7fa6e3; outline-offset: 2px; }
.ds-btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 14px; }
.ds-btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.ds-btn-ghost:hover { background: #faf8f4; }
.ds-btn-wa { background: #1c9b52; }
.ds-btn-wa:hover { background: #167e43; }
.ds-block-btn { width: 100%; }

/* Bilgi kutuları */
.ds-flash { padding: 12px 16px; border-radius: 12px; background: #e9f6ee; color: var(--ok); margin-bottom: 16px; font-weight: 500; }
.ds-flash-err { background: #fbecec; color: var(--err); }

/* Tanıtım */
.ds-hero { padding: 28px 0 8px; text-align: center; }
.ds-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.ds-hero p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-size: 17px; }
.ds-hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 26px; }
.ds-steps { display: grid; gap: 12px; margin: 36px 0; }
.ds-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ds-step b { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; }
.ds-step span { color: var(--muted); font-size: 14px; }
@media (min-width: 720px) { .ds-steps { grid-template-columns: repeat(3, 1fr); } .ds-step { grid-template-columns: 1fr; row-gap: 6px; } .ds-step b { grid-row: auto; margin-bottom: 6px; } }

.ds-hello { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.ds-hello p, .ds-sub { color: var(--muted); margin: 8px 0 0; }
.ds-head { margin-bottom: 20px; }
.ds-block { margin: 28px 0; }
.ds-example { max-width: 880px; margin: 40px auto 8px; }
.ds-block.ds-example h2 { justify-content: center; }
.ds-example .ds-hint { font-size: 14px; max-width: 560px; margin: 0 auto 14px; }

/* Kartlar ve formlar */
.ds-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.ds-card > h1 { font-size: clamp(24px, 6vw, 30px); }
.ds-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; letter-spacing: 0; }
.ds-form { display: grid; gap: 14px; margin-top: 20px; }
.ds-card .ds-form:first-child { margin-top: 0; }
.ds-field { display: grid; gap: 6px; margin-top: 4px; }
.ds-field > span { font-size: 14px; font-weight: 600; }
.ds-field i { font-style: normal; font-weight: 400; color: var(--muted); }
.ds-field small { color: var(--muted); font-size: 13px; }
.ds-field em, .ds-err { color: var(--err); font-size: 13px; font-style: normal; }
input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]) {
  width: 100%; padding: 13px 14px; border: 1px solid #d6d1c6; border-radius: 12px; background: #fff;
  font: 16px/1.3 inherit; font-family: inherit; color: var(--ink); }
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ds-code { text-align: center; font-size: 28px !important; letter-spacing: .4em; font-weight: 700; }
.ds-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); }
.ds-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.ds-alt { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.ds-alt form, form.ds-alt { margin-top: 18px; }

/* Fotoğraf alanı */
.ds-drop { position: relative; display: grid; place-items: center; min-height: 220px; border: 2px dashed #cfc8ba; border-radius: 14px; background: #faf8f3; cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s; }
.ds-drop:hover { border-color: var(--brand); }
.ds-drop img { width: 100%; height: auto; display: block; }
.ds-drop.has-photo { border-style: solid; border-color: var(--brand); min-height: 0; }
.ds-drop.has-photo .ds-drop-empty { display: none; }
.ds-drop-empty { display: grid; justify-items: center; gap: 6px; padding: 24px; color: var(--muted); font-size: 14px; max-width: 360px; }
.ds-drop-empty strong { color: var(--ink); font-size: 16px; }
.ds-drop-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 4px; }

/* Taşlar */
.ds-stones { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ds-stones form { margin: 0; }
.ds-stone { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 6px 6px 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); text-align: center; transition: border-color .15s, box-shadow .15s; }
.ds-stone input { position: absolute; opacity: 0; pointer-events: none; }
.ds-stone:hover { border-color: #b9c9e6; }
.ds-stone:has(input:checked), .ds-stone.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ds-stones-static .ds-stone { cursor: default; }
.ds-swatch { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--stone); }
.ds-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-stone-name { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* Seçim çipleri */
.ds-row-label { font-size: 14px; font-weight: 600; margin: 14px 0 8px; }
.ds-row-label:first-of-type { margin-top: 0; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ds-chip { position: relative; cursor: pointer; }
.ds-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ds-chip span { display: inline-block; padding: 9px 16px; border: 1px solid #d6d1c6; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; transition: all .15s; }
.ds-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Sonuç sahnesi */
.ds-stage { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; box-shadow: var(--shadow); margin-bottom: 10px; }
.ds-stage img { display: block; width: 100%; height: auto; }
.ds-busy .ds-stage-base { filter: blur(8px) brightness(.5); transform: scale(1.05); min-height: 260px; object-fit: cover; }
.ds-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 16px; }
.ds-wait img { width: auto; background: #fff; padding: 8px 16px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ds-wait span { opacity: .8; font-size: 14px; }
.ds-bar { width: min(260px, 70%); height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.ds-bar i { display: block; height: 100%; width: 40%; background: #fff; border-radius: 4px; animation: ds-bar 1.6s ease-in-out infinite; }
@keyframes ds-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.ds-compare { touch-action: pan-y; user-select: none; }
.ds-compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ds-compare .before img { width: 100%; height: 100%; object-fit: fill; }
.ds-compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.45); pointer-events: none; }
.ds-compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.ds-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ds-compare .tag { position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.ds-compare .tag-before { left: 12px; }
.ds-compare .tag-after { right: 12px; }
.ds-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.ds-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }

.ds-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 22px; margin: 0 0 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.ds-contact div { display: grid; gap: 4px; flex: 1 1 260px; }
.ds-contact span { opacity: .85; font-size: 14px; }
.ds-contact .ds-btn { background: #fff; color: var(--brand); }
.ds-contact .ds-btn-wa { background: #25d366; color: #fff; }
.ds-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-contact .ds-btn-call { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); white-space: nowrap; }
.ds-contact .ds-btn-call:hover { background: rgba(255,255,255,.12); }

/* Galeri ve geçmiş */
.ds-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ds-thumb { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; text-align: center; }
.ds-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.ds-history { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ds-history a { flex: 0 0 auto; border: 2px solid transparent; border-radius: 10px; overflow: hidden; }
.ds-history a.current { border-color: var(--brand); }
.ds-history img { display: block; width: 140px; height: 88px; object-fit: cover; }
.ds-card .ds-form:has(input[name=instruction]) { grid-template-columns: 1fr auto; margin-top: 0; }
@media (max-width: 480px) { .ds-card .ds-form:has(input[name=instruction]) { grid-template-columns: 1fr; } }

.ds-prose h2 { margin-top: 22px; margin-bottom: 8px; }
.ds-prose p, .ds-prose li { color: #3b3f47; font-size: 15px; }
.ds-prose h1 { font-size: 26px; margin-bottom: 12px; }

/* Bekleme katmanı */
.ds-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(246,244,239,.94); backdrop-filter: blur(4px); }
.ds-overlay[hidden] { display: none; }
.ds-loader { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 16px; }
.ds-loader span { color: var(--muted); font-size: 14px; }
.ds-spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #d8e2f2; border-top-color: var(--brand); animation: ds-spin .9s linear infinite; }
.ds-wait .ds-spin { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ds-spin, .ds-bar i { animation-duration: 3s; } }
