/* ==========================================================================
   Gümüş Atölye — tasarım sistemi
   Konsept: fırçalanmış gümüş yüzeyler, sıcak ahşap vurgular.
   ========================================================================== */

:root {
    /* Gümüş skalası */
    --s-50:  #F8F9FA;
    --s-100: #F0F2F5;
    --s-150: #E7EAEF;
    --s-200: #DCE0E6;
    --s-300: #C4CAD3;
    --s-400: #A6AEBA;
    --s-500: #878F9C;
    --s-600: #6B7382;
    --s-700: #525A67;
    --s-800: #3B424C;
    --s-900: #262B33;
    --ink:   #171A1F;

    /* Ahşap vurgu */
    --wood-300: #E0C49C;
    --wood-400: #C8A271;
    --wood-500: #A97F4C;
    --wood-600: #8A6437;

    --ok: #2E7D5B;
    --warn: #B4792B;
    --danger: #B4453C;

    --bg: var(--s-50);
    --surface: #FFFFFF;
    --surface-2: var(--s-100);
    --border: var(--s-200);
    --border-strong: var(--s-300);
    --text: var(--ink);
    --text-soft: var(--s-600);
    --text-faint: var(--s-500);

    --metal: linear-gradient(135deg, #FDFDFE 0%, #DFE3E9 18%, #B9C0CA 42%, #EDF0F4 58%, #C6CDD6 78%, #9BA4B0 100%);
    --metal-soft: linear-gradient(135deg, #FFFFFF 0%, #EEF1F5 40%, #DBE0E7 70%, #F3F5F8 100%);
    /* Metin uzerinde okunakli kalan koyu gumus degrade */
    --metal-ink: linear-gradient(135deg, #7E8795 0%, #434B57 26%, #6E7784 48%, #343B45 72%, #6B7482 100%);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    --sh-1: 0 1px 2px rgba(23, 26, 31, .06), 0 1px 3px rgba(23, 26, 31, .04);
    --sh-2: 0 4px 12px rgba(38, 43, 51, .08), 0 1px 3px rgba(38, 43, 51, .05);
    --sh-3: 0 12px 32px rgba(38, 43, 51, .12), 0 2px 8px rgba(38, 43, 51, .06);
    --sh-4: 0 24px 60px rgba(38, 43, 51, .18);

    --nav-h: 68px;
    --maxw: 1240px;

    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Outfit", "Inter", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #14171B;
        --surface: #1C2026;
        --surface-2: #232830;
        --border: #2E343D;
        --border-strong: #3B424C;
        --text: #EDEFF2;
        --text-soft: #A6AEBA;
        --text-faint: #878F9C;
        --metal: linear-gradient(135deg, #8E97A3 0%, #5A6371 25%, #39404A 50%, #767F8C 72%, #454D58 100%);
        --metal-soft: linear-gradient(135deg, #343B45 0%, #272D35 50%, #3B434E 100%);
        --metal-ink: linear-gradient(135deg, #FFFFFF 0%, #C8CFD8 28%, #FFFFFF 52%, #AEB6C1 78%, #E7EBF0 100%);
        --sh-2: 0 4px 12px rgba(0, 0, 0, .4);
        --sh-3: 0 12px 32px rgba(0, 0, 0, .5);
    }
}

:root[data-theme="dark"] {
    --bg: #14171B;
    --surface: #1C2026;
    --surface-2: #232830;
    --border: #2E343D;
    --border-strong: #3B424C;
    --text: #EDEFF2;
    --text-soft: #A6AEBA;
    --text-faint: #878F9C;
    --metal: linear-gradient(135deg, #8E97A3 0%, #5A6371 25%, #39404A 50%, #767F8C 72%, #454D58 100%);
    --metal-soft: linear-gradient(135deg, #343B45 0%, #272D35 50%, #3B434E 100%);
    --metal-ink: linear-gradient(135deg, #FFFFFF 0%, #C8CFD8 28%, #FFFFFF 52%, #AEB6C1 78%, #E7EBF0 100%);
    --sh-2: 0 4px 12px rgba(0, 0, 0, .4);
    --sh-3: 0 12px 32px rgba(0, 0, 0, .5);
}

/* -------------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.18;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

p { margin: 0 0 1em; }

::selection { background: var(--wood-300); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--s-600);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

/* ------------------------------------------------------------------ layout */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.wrap-wide { max-width: 1480px; }
.section { padding-block: clamp(48px, 7vw, 92px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }

.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.center { text-align: center; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-faint);
}
.eyebrow::before {
    content: ""; width: 26px; height: 1px; background: var(--border-strong);
}

.lead { font-size: 1.08rem; color: var(--text-soft); max-width: 62ch; }
.muted { color: var(--text-soft); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }

/* ------------------------------------------------------------------ butonlar */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--r-full);
    font-weight: 600; font-size: .95rem;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(180deg, var(--s-700), var(--s-900));
    color: #fff;
    box-shadow: var(--sh-2);
}
.btn-primary:hover { box-shadow: var(--sh-3); background: linear-gradient(180deg, var(--s-600), var(--s-800)); }

.btn-metal {
    background: var(--metal);
    color: var(--ink);
    border-color: rgba(255, 255, 255, .6);
    box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.btn-metal:hover { box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, .9); }

.btn-wood {
    background: linear-gradient(180deg, var(--wood-400), var(--wood-500));
    color: #fff;
    box-shadow: var(--sh-2);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }

.btn-plain { background: transparent; border-color: transparent; padding-inline: 10px; }
.btn-plain:hover { background: var(--surface-2); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 8px 15px; font-size: .85rem; }
.btn-icon { padding: 10px; border-radius: var(--r-full); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------- kartlar */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
}
.card-pad { padding: 22px; }
.card-hover { transition: transform .2s ease, box-shadow .22s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--border-strong); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: var(--r-full);
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: .8rem; font-weight: 500; color: var(--text-soft);
}
.chip-wood { background: color-mix(in srgb, var(--wood-300) 30%, transparent); border-color: var(--wood-300); color: var(--wood-600); }

.badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--r-full);
    font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge-danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.badge-neutral { background: var(--surface-2); color: var(--text-soft); }

/* -------------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    height: var(--nav-h);
    display: flex; align-items: center; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--metal);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--sh-1);
    display: grid; place-items: center;
    flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1.02rem; }
.brand-text span { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav a {
    padding: 9px 13px; border-radius: var(--r-sm);
    font-size: .92rem; font-weight: 500; color: var(--text-soft);
    transition: color .15s ease, background .15s ease;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-full);
    border: 1px solid var(--border); background: var(--surface);
    display: grid; place-items: center; cursor: pointer; position: relative;
    transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .dot {
    position: absolute; top: -4px; right: -4px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: var(--r-full);
    background: var(--s-900); color: #fff;
    font-size: .68rem; font-weight: 700;
    display: grid; place-items: center;
    border: 2px solid var(--surface);
}

.burger { display: none; }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 12px 16px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 6px; border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }

@media (max-width: 1000px) {
    .nav { display: none; }
    .burger { display: grid; }
}

/* --------------------------------------------------------------------- hero */

.hero {
    position: relative;
    padding-block: clamp(44px, 6vw, 84px) clamp(40px, 5vw, 72px);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 120%;
    background:
        radial-gradient(60% 50% at 20% 10%, color-mix(in srgb, var(--s-300) 45%, transparent), transparent 70%),
        radial-gradient(50% 45% at 85% 25%, color-mix(in srgb, var(--wood-300) 35%, transparent), transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 span.shine {
    background: var(--metal-ink);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,.4));
}

.hero-points { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.hero-points svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--wood-500); }

.hero-visual {
    position: relative;
    border-radius: var(--r-xl);
    background: var(--metal-soft);
    border: 1px solid var(--border);
    box-shadow: var(--sh-4);
    padding: 22px;
    min-height: 340px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: grid; place-items: center;
}
/* 3B gösterim devralınca kenar boşluğu kalkar */
#heroStage:has(canvas) { padding: 0; }

.hero-caption {
    position: absolute; left: 16px; bottom: 16px; z-index: 2;
    padding: 11px 16px; border-radius: var(--r-md);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    box-shadow: var(--sh-2);
    max-width: calc(100% - 32px);
}
.hero-caption b { display: block; font-size: .95rem; font-weight: 600; line-height: 1.25; }
.hero-caption span { display: block; font-size: .78rem; color: var(--text-faint); }
.hero-caption.in { animation: capIn .45s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-caption.in { animation: none; } }

/* --------------------------------------------------------------------- ticker */

.ticker {
    border-block: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    padding-block: 11px;
}
.ticker-track {
    display: flex; gap: 48px; width: max-content;
    animation: ticker 38s linear infinite;
    font-size: .88rem; color: var(--text-soft); font-weight: 500;
}
.ticker-track span { display: flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: "C6"; color: var(--wood-400); font-size: .6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ----------------------------------------------------------------- oda kartı */

.room-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.room-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--sh-2); }
.room-card .ic {
    width: 54px; height: 54px; margin-inline: auto; border-radius: var(--r-md);
    background: var(--surface-2); display: grid; place-items: center; color: var(--s-600);
}
.room-card .ic svg { width: 28px; height: 28px; }
.room-card b { font-size: .94rem; font-weight: 600; }
.room-card small { color: var(--text-faint); font-size: .76rem; }

/* --------------------------------------------------------------- model kartı */

.model-card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}
.model-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--sh-2); }
.model-thumb {
    aspect-ratio: 4 / 3;
    background: var(--metal-soft);
    display: grid; place-items: center;
    border-bottom: 1px solid var(--border);
    padding: 14px;
}
.model-thumb svg { width: 100%; height: 100%; }
.model-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.model-body b { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.model-body .meta { font-size: .76rem; color: var(--text-faint); margin-top: auto; padding-top: 7px; }

/* ------------------------------------------------------------------ formlar */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--text-soft); }

.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--s-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-400) 25%, transparent);
}
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23878F9C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 17px; padding-right: 38px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--s-700); flex: none; }

.field-error, .validation-summary-errors { color: var(--danger); font-size: .83rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.input.input-validation-error { border-color: var(--danger); }

.alert { padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid; font-size: .92rem; margin-bottom: 18px; }
.alert-ok { background: color-mix(in srgb, var(--ok) 10%, transparent); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.alert-info { background: var(--surface-2); border-color: var(--border); color: var(--text-soft); }
.alert-danger { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }

/* ------------------------------------------------------------------ tablolar */

.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 700; }
.table tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ----------------------------------------------------------------- akordiyon */

.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary {
    padding: 17px 20px; cursor: pointer; font-weight: 600; font-size: .98rem;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
    content: ""; width: 10px; height: 10px; flex: none;
    border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.acc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.acc .acc-body { padding: 0 20px 18px; color: var(--text-soft); font-size: .93rem; }

/* ------------------------------------------------------------------- footer */

.site-footer { background: var(--s-900); color: var(--s-200); margin-top: 60px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr repeat(3, 1fr); padding-block: 54px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: var(--s-300); font-size: .91rem; display: block; padding: 5px 0; transition: color .15s ease; }
.site-footer a.brand { display: flex; padding: 0; color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .84rem; color: var(--s-400); }
.footer-brand-text { color: var(--s-400); font-size: .92rem; max-width: 34ch; }

/* --------------------------------------------------------------- yıldızlar */

.stars { display: inline-flex; gap: 2px; color: var(--wood-400); }
.stars svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- whatsapp fab */

.fab-wa {
    position: fixed; right: 18px; bottom: 18px; z-index: 50;
    width: 54px; height: 54px; border-radius: var(--r-full);
    background: #25D366; color: #fff;
    display: grid; place-items: center;
    box-shadow: var(--sh-3);
    transition: transform .18s ease;
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 27px; height: 27px; }

/* ======================================================================
   KONFİGÜRATÖR
   ====================================================================== */

body.cfg-mode { overflow: hidden; }

.cfg {
    position: fixed; inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--bg);
}

.cfg-top {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    z-index: 5;
}
.cfg-title { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.cfg-title b { font-size: .97rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfg-title small { font-size: .74rem; color: var(--text-faint); }

.cfg-price {
    margin-left: auto;
    text-align: right;
    padding: 7px 15px;
    border-radius: var(--r-md);
    background: var(--metal-soft);
    border: 1px solid var(--border);
    line-height: 1.15;
    min-width: 132px;
}
.cfg-price b { font-size: 1.12rem; font-family: var(--font-display); letter-spacing: -.01em; }
.cfg-price small { display: block; font-size: .66rem; color: var(--text-faint); letter-spacing: .04em; }
.cfg-price.loading b { opacity: .45; }

.cfg-stage { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.cfg-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }

.stage-tools { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 7px; z-index: 3; }
.stage-tools-right { left: auto; right: 14px; }

.cfg-hint {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    padding: 7px 15px; border-radius: var(--r-full);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--border);
    font-size: .79rem; color: var(--text-soft);
    pointer-events: none; z-index: 3;
    backdrop-filter: blur(6px);
}

.cfg-spec {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 14px; border-radius: var(--r-md);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--border);
    backdrop-filter: blur(6px);
    font-size: .76rem; color: var(--text-soft);
}
.cfg-spec b { color: var(--text); font-size: .82rem; }

/* alt panel */
.cfg-panel { background: var(--surface); border-top: 1px solid var(--border); z-index: 5; }

.tool-rail {
    display: flex; gap: 6px; padding: 9px 12px;
    overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}
.tool-rail::-webkit-scrollbar { display: none; }
.tool-btn {
    flex: none;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 76px; padding: 8px 4px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    background: transparent; cursor: pointer;
    color: var(--text-soft);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tool-btn svg { width: 26px; height: 26px; }
.tool-btn span { font-size: .68rem; font-weight: 600; letter-spacing: .01em; }
.tool-btn:hover { background: var(--surface-2); }
.tool-btn.active { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }

.tab-rail {
    display: flex; gap: 6px; padding: 10px 12px 2px;
    overflow-x: auto; scrollbar-width: none;
}
.tab-rail::-webkit-scrollbar { display: none; }
.tab-btn {
    flex: none; padding: 7px 15px; border-radius: var(--r-full);
    border: 1px solid var(--border); background: var(--surface);
    font-size: .83rem; font-weight: 600; color: var(--text-soft);
    cursor: pointer; white-space: nowrap;
    transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--border-strong); }
.tab-btn.active { background: var(--s-800); border-color: var(--s-800); color: #fff; }

.pane { padding: 14px 16px 18px; max-height: 32vh; overflow-y: auto; }
.pane-title { font-size: .8rem; color: var(--text-faint); margin-bottom: 10px; display: flex; justify-content: space-between; }

/* kaydırıcı */
.slider-row { display: flex; align-items: center; gap: 12px; }
.slider-row .step {
    width: 38px; height: 38px; flex: none; border-radius: var(--r-full);
    border: 1px solid var(--border); background: var(--surface);
    font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--text-soft);
    display: grid; place-items: center;
}
.slider-row .step:hover { border-color: var(--border-strong); background: var(--surface-2); }

input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: var(--r-full);
    background: var(--s-200); outline: none; cursor: pointer;
}
:root[data-theme="dark"] input[type="range"] { background: var(--s-700); }
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: var(--r-full);
    background: var(--metal); border: 1px solid var(--s-400);
    box-shadow: var(--sh-2); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: var(--r-full);
    background: #E6E9ED; border: 1px solid var(--s-400);
    box-shadow: var(--sh-2); cursor: grab;
}

.value-badge {
    text-align: center; font-family: var(--font-display);
    font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em;
    margin-bottom: 6px; line-height: 1.1;
}
.value-badge small { font-size: .72rem; color: var(--text-faint); font-weight: 500; margin-left: 3px; }
/* Her ölçü milimetrenin altında santimetre karşılığıyla birlikte okunur */
.value-badge .value-alt {
    font-family: var(--font); font-size: .78rem; font-weight: 500;
    color: var(--text-faint); letter-spacing: 0; margin-top: 1px;
}
.slider-scale {
    display: flex; justify-content: space-between;
    font-size: .68rem; color: var(--text-faint); margin-top: 5px;
}
.cfg-spec b .alt { display: block; font-weight: 500; font-size: .74rem; color: var(--text-faint); }
.icon-btn.off { opacity: .45; }
.chip b { color: var(--text); font-weight: 600; }

/* seçenek ızgarası */
.opt-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.opt {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: var(--r-sm);
    border: 1px solid var(--border); background: var(--surface);
    cursor: pointer; font-size: .85rem; text-align: left;
    transition: all .15s ease;
}
.opt:hover { border-color: var(--border-strong); }
.opt.active { border-color: var(--s-700); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--s-700); }
.opt .dot { width: 15px; height: 15px; border-radius: var(--r-full); border: 2px solid var(--border-strong); flex: none; }
.opt.active .dot { border-color: var(--s-700); background: var(--s-700); box-shadow: inset 0 0 0 2.5px var(--surface); }
.opt .lbl { flex: 1; min-width: 0; }
.opt .lbl b { display: block; font-weight: 600; font-size: .85rem; }
.opt .lbl small { font-size: .72rem; color: var(--text-faint); }

/* renk kartları */
.swatch-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.swatch {
    border: 1px solid var(--border); border-radius: var(--r-sm);
    overflow: hidden; cursor: pointer; background: var(--surface);
    transition: all .15s ease;
}
.swatch:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.swatch.active { border-color: var(--s-700); box-shadow: 0 0 0 2px var(--s-700); }
.swatch .sw { height: 50px; display: block; position: relative; }
.swatch .sw::after {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(100deg, rgba(255,255,255,.14) 0 2px, rgba(0,0,0,.05) 2px 5px);
    mix-blend-mode: overlay;
}
.swatch small { display: block; padding: 6px 7px; font-size: .71rem; text-align: center; color: var(--text-soft); line-height: 1.2; }

/* anahtar */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .t b { display: block; font-size: .9rem; font-weight: 600; }
.switch-row .t small { font-size: .76rem; color: var(--text-faint); }
.switch { position: relative; width: 46px; height: 27px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
    position: absolute; inset: 0; border-radius: var(--r-full);
    background: var(--s-300); transition: background .18s ease; cursor: pointer;
}
.switch .track::before {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 21px; height: 21px; border-radius: var(--r-full);
    background: #fff; box-shadow: var(--sh-1); transition: transform .18s ease;
}
.switch input:checked + .track { background: var(--s-700); }
.switch input:checked + .track::before { transform: translateX(19px); }

/* göz düzenleyici */
.cell-editor { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.cell-map { display: grid; gap: 3px; border: 1px solid var(--border-strong); padding: 4px; border-radius: var(--r-xs); background: var(--surface-2); }
.cell-col { display: grid; gap: 3px; }
.cell {
    min-width: 34px; min-height: 26px;
    border: 1px solid var(--border); border-radius: 3px;
    background: var(--surface); cursor: pointer;
    display: grid; place-items: center;
    font-size: .62rem; font-weight: 700; color: var(--text-faint);
    transition: all .12s ease;
}
.cell:hover { border-color: var(--s-600); }
.cell[data-kind="1"] { background: color-mix(in srgb, var(--wood-300) 55%, var(--surface)); color: var(--wood-600); }
.cell[data-kind="2"] { background: color-mix(in srgb, var(--s-400) 40%, var(--surface)); color: var(--s-800); }
.cell[data-kind="3"] { background: color-mix(in srgb, #7FB8D4 40%, var(--surface)); color: #2C6484; }

.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--text-faint); }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--border); }

/* fiyat dökümü */
.price-lines { font-size: .86rem; }
.price-lines .pl { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.price-lines .pl:last-child { border-bottom: 0; }
.price-lines .pl span:first-child b { display: block; font-weight: 600; color: var(--text); }
.price-lines .pl span:first-child small { color: var(--text-faint); font-size: .75rem; }
.price-lines .pl span:last-child { font-weight: 600; white-space: nowrap; }

/* dar ekranlarda üst bar tek satırda kalsın */
@media (max-width: 680px) {
    .cfg-top { gap: 6px; padding: 8px 10px; flex-wrap: nowrap; }
    .cfg-top .icon-btn { width: 34px; height: 34px; flex: none; }
    .cfg-top .icon-btn svg { width: 16px; height: 16px; }
    .cfg-top #btnReset, .cfg-top #btnRedo { display: none; }
    .cfg-title b { font-size: .86rem; max-width: 30vw; }
    .cfg-title small { display: none; }
    .cfg-price { min-width: 0; padding: 5px 9px; }
    .cfg-price b { font-size: .92rem; }
    .cfg-price small { font-size: .56rem; }
    #btnCart .cart-label { display: none; }
    #btnCart { padding: 9px 12px; }
    .tool-btn { width: 66px; }
    .tool-btn svg { width: 22px; height: 22px; }
    .pane { max-height: 36vh; }
}

/* masaüstü düzen */
@media (min-width: 1100px) {
    .cfg { grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto minmax(0, 1fr); }
    .cfg-top { grid-column: 1 / -1; }
    .cfg-panel { border-top: 0; border-left: 1px solid var(--border); overflow-y: auto; display: flex; flex-direction: column; }
    .tool-rail { flex-wrap: wrap; overflow: visible; }
    .pane { max-height: none; flex: 1; }
}

/* ------------------------------------------------------------------- admin */

.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } }
.admin-side { background: var(--s-900); color: var(--s-200); padding: 20px 14px; }
.admin-side a { display: block; padding: 10px 13px; border-radius: var(--r-sm); font-size: .9rem; color: var(--s-300); }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.09); color: #fff; }
.admin-side a.brand { display: flex; padding: 0; color: #fff; }
.admin-side a.brand:hover { background: transparent; }
.admin-main { padding: 26px 24px 60px; background: var(--bg); }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 17px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.02em; }
.stat small { color: var(--text-faint); font-size: .8rem; }

/* ------------------------------------------------------------------ yardımcı */

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--border); margin-block: 22px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media print {
    .site-header, .site-footer, .fab-wa, .btn { display: none !important; }
}
