/* Furn — shared styles (public site, panels, designer). Bootstrap 5 is the base. */
:root {
    --brand: #8a5a2b;
    --ink: #1f2328;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #faf8f5;
}

html { font-size: 15px; }
body { color: var(--ink); }

/* ---------- Public site ---------- */
.site-body { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-logo { max-height: 40px; max-width: 180px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 1.5rem 0; margin-top: 3rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 85%, #000); border-color: color-mix(in srgb, var(--brand) 85%, #000); color: #fff; }
.text-brand { color: var(--brand); }
.hero { background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--brand) 10%, #fff) 100%); border-bottom: 1px solid var(--line); }
.hero-steps { display: grid; gap: .75rem; }
.hero-step { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem 1.25rem; font-weight: 500; }
.hero-step span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; margin-right: .75rem; }
.is-embed .site-main { padding: 0; }

/* ---------- Auth pages ---------- */
.auth-body { background: var(--paper); min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 440px; }

/* ---------- Panels ---------- */
.panel-body { background: #f5f6f8; }
.panel-topbar { position: sticky; top: 0; z-index: 1030; }
.panel-wrap { display: flex; min-height: calc(100vh - 56px); }
.panel-sidebar { width: 240px; background: #fff; border-right: 1px solid var(--line); flex-shrink: 0; }
.panel-sidebar .nav-link { color: var(--ink); padding: .45rem 1.25rem; border-left: 3px solid transparent; }
.panel-sidebar .nav-link:hover { background: #f3f4f6; }
.panel-sidebar .nav-link.active { border-left-color: var(--brand); background: #f3f4f6; font-weight: 600; }
.panel-sidebar .nav-section { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 1rem 1.25rem .25rem; }
.panel-main { flex: 1; padding: 1.5rem; min-width: 0; }
@media (max-width: 991.98px) { .panel-sidebar { width: 260px; } .panel-main { padding: 1rem; } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; text-decoration: none; color: inherit; height: 100%; }
.stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-label { color: var(--muted); font-size: .85rem; }
.swatch { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid #ccc; vertical-align: middle; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; }
.thumb-lg { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.sticky-actions { position: sticky; bottom: 0; background: #f5f6f8; padding: .75rem 0; }
.badge.status-draft { background: #9ca3af; }
.badge.status-quote { background: #f59e0b; }
.badge.status-depositreceived { background: #0ea5e9; }
.badge.status-sitemeasurement { background: #6366f1; }
.badge.status-inproduction { background: #8b5cf6; }
.badge.status-delivered { background: #16a34a; }
.badge.status-cancelled { background: #ef4444; }
.code-block { background: #111827; color: #e5e7eb; padding: 1rem; border-radius: .5rem; font-size: .85rem; overflow-x: auto; white-space: pre; }

/* ---------- Print (cut lists) ---------- */
@media print {
    .no-print, .panel-topbar, .panel-sidebar, .site-header, .site-footer { display: none !important; }
    .panel-main { padding: 0; }
    body, .panel-body { background: #fff; }
}

/* ---------- Designer ---------- */
.designer { max-width: 1440px; margin: 0 auto; padding: 1rem; }
.designer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.designer-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.designer-steps li { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; }
.designer-steps li span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; background: #e5e7eb; color: #374151; font-weight: 600; font-size: .8rem; }
.designer-steps li.active { color: var(--ink); font-weight: 600; }
.designer-steps li.active span { background: var(--brand); color: #fff; }
.designer-steps li.done { cursor: pointer; color: var(--ink); }
.designer-steps li.done span { background: #198754; color: #fff; }
.designer-steps li + li::before { content: ''; width: 1.25rem; height: 2px; background: #d1d5db; }
.designer-body { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 1rem; align-items: start; }
.designer-stage { position: relative; background: #1f2328; border-radius: .75rem; overflow: hidden; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.designer-stage canvas { display: block; max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; }
.designer[data-step="photo"] .designer-stage canvas { display: none; }
.stage-placeholder { display: none; color: #9ca3af; text-align: center; padding: 3rem; }
.designer[data-step="photo"] .stage-placeholder { display: flex; min-height: 380px; align-items: center; justify-content: center; }
.designer-views { position: absolute; top: .5rem; left: .5rem; right: .5rem; display: flex; flex-wrap: wrap; gap: .25rem; z-index: 2; pointer-events: none; }
.designer-views button { pointer-events: auto; border: 0; border-radius: .4rem; padding: .25rem .6rem; font-size: .8rem; background: rgba(255,255,255,.85); color: #222; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.designer-views button.active { background: var(--brand); color: #fff; }
.designer-views:empty { display: none; }
.designer[data-step="photo"] .designer-views { display: none; }
.designer-stage:has(.designer-views:not(:empty)) canvas { margin-top: 2.4rem; }
.wall-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .75rem; }
.wall-tabs .btn { font-size: .8rem; }
.shape-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.shape-card { border: 2px solid #d1d5db; border-radius: .6rem; background: #fff; padding: .5rem .25rem; text-align: center; font-size: .85rem; line-height: 1.2; }
.shape-card svg { display: block; margin: 0 auto .35rem; width: 54px; height: 40px; }
.shape-card.active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.corner-box { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem; margin-bottom: .75rem; background: #fafafa; }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.photo-thumbs img { height: 54px; border-radius: .3rem; border: 1px solid var(--line); }
.designer-panel { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; max-height: calc(100vh - 110px); overflow-y: auto; position: sticky; top: 1rem; }
.drop-zone { border: 2px dashed #cbd5e1; border-radius: .75rem; padding: 2rem 1rem; text-align: center; background: #f8fafc; }
.drop-zone.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.row-summary { margin-bottom: .5rem; }
.module-list { display: flex; gap: 4px; flex-wrap: wrap; }
.module-chip { border: 1px solid #d1d5db; background: #fff; border-radius: .4rem; padding: .25rem .4rem; min-width: 52px; display: flex; flex-direction: column; align-items: center; font-size: .75rem; line-height: 1.2; }
.module-chip strong { font-size: .8rem; }
.module-chip.active { border-color: #0d6efd; box-shadow: 0 0 0 2px rgba(13, 110, 253, .25); }
.module-chip.type-gap { border-style: dashed; color: var(--muted); }
.module-chip.type-filler { background: #f3f4f6; }
.module-chip.type-tall { background: #eef2ff; }
.module-editor { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .75rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch-btn { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; padding: 0; }
.swatch-btn.active { box-shadow: 0 0 0 3px #0d6efd; }
.tab-body { padding-top: .75rem; }
.issues { padding-left: 1.1rem; margin: .75rem 0; }
.panel-footer { position: sticky; bottom: -1rem; background: #fff; border-top: 1px solid var(--line); margin: 1rem -1rem -1rem; padding: .75rem 1rem 1rem; }
.price-total { font-size: 1.4rem; font-weight: 700; }
.quote-table td { vertical-align: top; }
.designer-page { background: var(--paper); }
@media (max-width: 991.98px) {
    .designer { padding: .5rem; }
    .designer-body { grid-template-columns: 1fr; }
    .designer-panel { position: static; max-height: none; }
    .designer-stage canvas { max-height: 62vh; }
    .panel-footer { position: static; margin: 1rem 0 0; padding: .75rem 0 0; }
}
@media (max-width: 575.98px) {
    .designer-steps { gap: .25rem; }
    .designer-steps li:not(.active) { font-size: 0; gap: 0; }
    .designer-steps li span { font-size: .8rem; }
    .designer-steps li + li::before { width: .6rem; }
    .designer[data-step="photo"] .designer-stage { display: none; }
}

/* ---------- Firm website and public pages ---------- */
.firm-hero { background: linear-gradient(135deg, #2b2a28 0%, color-mix(in srgb, var(--brand) 60%, #1f1f1f) 100%); background-size: cover; background-position: center; color: #fff; }
.firm-hero .lead { color: rgba(255, 255, 255, .9); }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; font-weight: 500; height: 100%; }
.step-no { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto .75rem; font-weight: 700; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; height: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.feature-list { padding-left: 1.2rem; }
.feature-list li { margin-bottom: .4rem; }
.kvkk-text { white-space: pre-line; }
.tracking-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.tracking-steps li { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.tracking-steps li span { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #e5e7eb; display: inline-grid; place-items: center; font-weight: 600; font-size: .85rem; }
.tracking-steps li.done { color: var(--ink); }
.tracking-steps li.done span { background: #198754; color: #fff; }
.tracking-steps li.active { color: var(--ink); font-weight: 600; }
.tracking-steps li.active span { background: var(--brand); color: #fff; }
.tracking-steps li + li::before { content: ''; width: 1.5rem; height: 2px; background: #d1d5db; }
.elevation svg { width: 100%; height: auto; background: #fff; }

/* Contracts (sözleşmeler) */
.legal-doc { line-height: 1.55; overflow-wrap: anywhere; }
.legal-doc h2 { font-size: 1.25rem; margin: 1rem 0 .75rem; }
.legal-doc h3 { font-size: 1.05rem; margin: 1.1rem 0 .5rem; }
.legal-doc table { font-size: .9rem; }
.legal-checks .form-check { margin-bottom: .35rem; }
.legal-dialog { width: min(760px, 94vw); max-height: 86vh; border: none; border-radius: .6rem; padding: 0; box-shadow: 0 1rem 3rem rgba(0,0,0,.25); }
.legal-dialog::backdrop { background: rgba(0,0,0,.45); }
.legal-dialog .legal-dialog-body { max-height: calc(86vh - 7rem); overflow-y: auto; padding: 1rem 1.25rem; }
.legal-dialog .legal-dialog-head, .legal-dialog .legal-dialog-foot { padding: .75rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; }
.legal-dialog .legal-dialog-foot { border-bottom: none; border-top: 1px solid var(--line); justify-content: flex-end; }

/* Appointment booking */
.appointment-kind { border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.appointment-kind:hover { border-color: var(--brand); }
.appointment-kind.active { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 25%, transparent); }
.appointment-days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; }
.appointment-day { min-width: 4.6rem; line-height: 1.2; flex: 0 0 auto; }
.appointment-times { display: flex; flex-wrap: wrap; gap: .5rem; }
.appointment-times .btn { min-width: 5rem; }

/* Landing page */
.demo-figure { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.06); }
.demo-figure svg { width: 100%; height: auto; max-height: 420px; display: block; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.08); transform: translateY(-2px); color: inherit; }
.product-card .p-3 { margin-top: auto; }
/* Same height for every drawing; the SVG keeps its proportions inside (viewBox). */
.product-art { background: #f6f3ee; padding: .75rem; height: 230px; }
.product-art svg { width: 100%; height: 100%; display: block; }
.how-card { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; height: 100%; }
.how-no { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; margin-bottom: .5rem; }
.appointment-band { background: var(--brand); color: #fff; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: .75rem 1rem; margin-bottom: .5rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: .5rem 0 0; color: #555; }

/* ---------- Developer pages (/gelistirici) ---------- */
.dev-hero { background: linear-gradient(135deg, #f6f3ee, #ffffff); border-bottom: 1px solid var(--line); }
.dev-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.dev-nav a { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: inherit; text-decoration: none; font-size: .9rem; }
.dev-nav a:hover { border-color: var(--brand); color: var(--brand); }
.dev-page section { scroll-margin-top: 1rem; }
.dev-table td, .dev-table th { font-size: .9rem; }
.dev-facts { padding-left: 1.1rem; }
.dev-facts li { margin-bottom: .3rem; }
.dev-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; }
.dev-toc { position: sticky; top: 1rem; }
.dev-toc li { margin-bottom: .35rem; }
.doc-content { min-width: 0; }
.doc-content h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.doc-content h2 { font-size: 1.4rem; margin-top: 2.25rem; padding-top: .5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.doc-content h3 { font-size: 1.15rem; margin-top: 1.75rem; scroll-margin-top: 1rem; }
.doc-content h4 { font-size: 1rem; margin-top: 1.25rem; }
.doc-content pre { background: #111827; color: #e5e7eb; padding: 1rem; border-radius: .5rem; font-size: .85rem; overflow-x: auto; }
.doc-content pre code { color: inherit; }
.doc-content table { display: block; overflow-x: auto; font-size: .9rem; }
.doc-content hr { display: none; }
.doc-content td:first-child code { white-space: nowrap; }
