/* Teklif Al: Koleksiyonum sayfasındaki bölüm, onay ekranı ve sonuç ekranı. */
.collection-quote { margin: 32px 0 8px; padding: 22px 22px 24px; background: #f4f6fb; border-radius: 14px; }
.collection-quote h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.collection-quote-lead { margin: 0 0 16px; font-size: 14.5px; color: #3d475c; max-width: 720px; }
.collection-quote-form { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.collection-quote-field { display: flex; flex-direction: column; gap: 6px; }
.collection-quote-field label { font-size: 13.5px; font-weight: 600; }
.collection-quote-field input, .collection-quote-field textarea { padding: 10px 14px; font: inherit; color: inherit; background: #ffffff; border: 1.5px solid #8892a8; border-radius: 10px; box-sizing: border-box; width: 100%; }
.collection-quote-field input { height: 46px; padding-top: 0; padding-bottom: 0; }
.collection-quote-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.collection-quote-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.collection-quote-check a { color: #1b2f63; text-decoration: underline; }
.collection-quote-error { margin: 0; font-size: 13.5px; font-weight: 600; color: #b91c1c; }
.collection-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.collection-quote [hidden] { display: none !important; }
.collection-quote-field input:focus-visible, .collection-quote-field textarea:focus-visible,
.collection-quote-check input:focus-visible, .collection-quote-check a:focus-visible { outline: 3px solid #4a7bff; outline-offset: 2px; }

.quote-page { padding: 130px 20px 70px; color: #0d1b3e; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
.quote-card { max-width: 820px; margin: 0 auto; padding: 32px 28px; background: #ffffff; border: 1px solid #dfe3ec; border-radius: 16px; box-shadow: 0 8px 28px rgba(13, 27, 62, 0.06); }
.quote-title { margin: 0 0 8px; font-size: 30px; font-weight: 700; }
.quote-lead { margin: 0 0 6px; font-size: 14.5px; color: #3d475c; }
.quote-summary { margin: 0 0 20px; font-size: 14px; font-weight: 600; color: #5b6478; }
.quote-group { margin-bottom: 22px; }
.quote-group-title { margin: 0 0 8px; padding-bottom: 6px; font-size: 18px; font-weight: 700; border-bottom: 2px solid #0d1b3e; }
.quote-table { width: 100%; border-collapse: collapse; }
.quote-table th { padding: 6px 10px; text-align: left; font-size: 12.5px; font-weight: 600; color: #5b6478; border-bottom: 1px solid #dfe3ec; }
.quote-table td { padding: 10px; vertical-align: top; font-size: 14.5px; border-bottom: 1px solid #eceff5; }
.quote-line-note { display: block; margin-top: 4px; font-size: 12.5px; color: #5b6478; }
.quote-unavailable { margin: 0 0 18px; padding: 12px 16px; font-size: 14px; color: #6b4a00; background: #fff7e0; border-radius: 10px; }
.quote-unavailable p { margin: 0 0 6px; font-weight: 600; }
.quote-unavailable ul { margin: 0; padding-left: 18px; }
.quote-price-note { margin: 0 0 20px; font-size: 13px; color: #5b6478; }
.quote-form { display: flex; flex-direction: column; gap: 16px; }
.quote-field { display: flex; flex-direction: column; gap: 6px; }
.quote-field label { font-size: 13.5px; font-weight: 600; }
.quote-field input, .quote-field textarea { padding: 10px 14px; font: inherit; color: inherit; background: #ffffff; border: 1.5px solid #8892a8; border-radius: 10px; box-sizing: border-box; width: 100%; }
.quote-field input { height: 46px; padding-top: 0; padding-bottom: 0; }
.quote-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.quote-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.quote-check a { color: #1b2f63; text-decoration: underline; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.quote-submit, .quote-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 600; border-radius: 12px; cursor: pointer; border: 1.5px solid #0d1b3e; text-decoration: none; }
.quote-submit { color: #ffffff; background: #0d1b3e; }
.quote-submit:hover { background: #1b2f63; border-color: #1b2f63; }
.quote-submit:disabled { opacity: 0.6; cursor: wait; }
.quote-secondary { color: #0d1b3e; background: #ffffff; }
.quote-secondary:hover { background: #f4f6fb; }
.quote-error { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #7f1d1d; background: #fdf2f2; border: 1.5px solid #f0c4c4; border-radius: 10px; }
.quote-success { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: #0f4a2b; background: #e8f6ee; border-radius: 10px; }
.quote-info { margin: 0 0 16px; padding: 10px 14px; font-size: 14px; color: #1b2f63; background: #eaf0ff; border-radius: 10px; }
.quote-results { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.quote-result { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: baseline; padding: 12px 14px; border: 1.5px solid #dfe3ec; border-radius: 10px; }
.quote-result.is-sent { border-color: #b6dfc6; background: #f5fbf8; }
.quote-result.is-failed { border-color: #f0c4c4; background: #fdf7f7; }
.quote-result-name { font-weight: 700; }
.quote-result-count { font-size: 13px; color: #5b6478; }
.quote-result-status { font-size: 13.5px; font-weight: 700; }
.quote-result.is-failed .quote-result-status { color: #b91c1c; }
.quote-result.is-sent .quote-result-status { color: #0f4a2b; }
.quote-result-reason { grid-column: 1 / -1; font-size: 13px; color: #7f1d1d; }
/* Bot tuzağı: görsel ve klavye/ekran okuyucu dışında tutulur. */
.quote-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-field input:focus-visible, .quote-field textarea:focus-visible, .quote-check input:focus-visible,
.quote-check a:focus-visible, .quote-submit:focus-visible, .quote-secondary:focus-visible { outline: 3px solid #4a7bff; outline-offset: 2px; }
@media screen and (max-width: 640px) {
    .quote-page { padding-top: 110px; }
    .quote-card { padding: 24px 16px; }
    .quote-result { grid-template-columns: minmax(0, 1fr); }
}

/* Teklif onay ekranı: ürün görseli sütunu. */
.quote-table td { vertical-align: middle; }
.quote-col-image { width: 88px; }
.quote-thumb-frame {
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; padding: 5px; box-sizing: border-box;
    background: #ffffff; border: 1px solid #e3e7ef; border-radius: 10px; overflow: hidden;
}
.quote-thumb { display: block; width: 100%; height: 100%; object-fit: contain; }
.quote-thumb-placeholder {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    font-size: 24px; font-weight: 700; color: #8a93a8; background: #f4f6fb; border-radius: 6px;
}
.quote-table .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media screen and (max-width: 560px) {
    .quote-col-image { width: 64px; }
    .quote-thumb-frame { width: 56px; height: 56px; }
}

/* ============================================================
   Teklif onay ekranı (qp-*): adım göstergesi + iki sütun (ürünler | form).
   Sonuç ekranı da aynı adım göstergesini kullanır (.qp-inner--narrow).
   ============================================================ */
.qp { padding-bottom: 100px; }
.qp [hidden] { display: none !important; }
.qp-inner { max-width: 1100px; margin: 0 auto; }
.qp-inner--narrow { max-width: 820px; }
.qp .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.qp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: #3d475c; text-decoration: none; }
.qp-back:hover { color: #0d1b3e; text-decoration: underline; text-underline-offset: 3px; }

/* Adım göstergesi */
.qp-steps { display: flex; align-items: center; gap: 0; margin: 0 0 26px; padding: 0; list-style: none; max-width: 520px; }
.qp-step { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #8a93a8; font-size: 14px; font-weight: 600; }
.qp-step:not(:last-child)::after { content: ""; display: block; width: 44px; height: 2px; margin: 0 14px; background: #dfe3ec; border-radius: 2px; }
.qp-step.is-done:not(:last-child)::after { background: #0d1b3e; }
.qp-step-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 13px; font-weight: 700; color: #8a93a8; background: #ffffff; border: 2px solid #dfe3ec; border-radius: 50%; }
.qp-step.is-done { color: #1c325f; }
.qp-step.is-done .qp-step-dot { color: #ffffff; background: #0d1b3e; border-color: #0d1b3e; }
.qp-step.is-current { color: #0d1b3e; }
.qp-step.is-current .qp-step-dot { color: #ffffff; background: #0d1b3e; border-color: #0d1b3e; box-shadow: 0 0 0 4px rgba(13, 27, 62, .12); }

.qp-head { margin-bottom: 22px; }
.qp-title { margin: 0 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.qp-lead { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.55; color: #5b6478; }

.qp-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #7f1d1d; background: #fdf2f2; border: 1.5px solid #f0c4c4; border-radius: 12px; }
.qp-alert svg { flex: 0 0 auto; margin-top: 1px; }
.qp-empty { padding: 36px 20px; text-align: center; background: #f8fafc; border: 1.5px dashed #c9cfdc; border-radius: 16px; }

/* Düğmeler */
.qp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; border-radius: 12px; cursor: pointer; text-decoration: none; box-sizing: border-box; border: 1.5px solid #0d1b3e; transition: background-color .15s ease, box-shadow .15s ease; }
.qp-btn-primary { color: #ffffff; background: #0d1b3e; }
.qp-btn-primary:hover { background: #1b2f63; border-color: #1b2f63; box-shadow: 0 6px 16px rgba(13, 27, 62, .18); color: #ffffff; }
.qp-btn:disabled { opacity: 0.65; cursor: wait; box-shadow: none; }
.qp-btn:focus-visible, .qp-back:focus-visible, .qp-field input:focus-visible, .qp-field textarea:focus-visible,
.qp-check input:focus-visible, .qp-check a:focus-visible { outline: 3px solid #4a7bff; outline-offset: 2px; }

/* İki sütun */
.qp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.qp-main { min-width: 0; }
.qp-aside { position: sticky; top: 110px; }

/* Özet kartı */
.qp-overview { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 18px; padding: 16px 18px; background: #f4f6fb; border-radius: 14px; }
.qp-collection-name { margin: 0; font-size: 18px; font-weight: 700; }
.qp-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #5b6478; }
.qp-facts strong { color: #0d1b3e; font-size: 16px; }

/* Marka grubu + ürün satırları */
.qp-group { margin-bottom: 18px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px -4px rgba(15, 23, 42, .06); }
.qp-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.qp-group-title { margin: 0; font-size: 16.5px; font-weight: 700; }
.qp-chip { flex: 0 0 auto; padding: 4px 10px; font-size: 12.5px; font-weight: 600; color: #1c325f; background: #e8eefc; border-radius: 999px; }
.qp-lines { margin: 0; padding: 0; list-style: none; }
.qp-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #eef2f7; }
.qp-line:last-child { border-bottom: 0; }
.qp-thumb { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 4px; box-sizing: border-box; background: #ffffff; border: 1px solid #e3e7ef; border-radius: 10px; overflow: hidden; }
.qp-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qp-thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 22px; font-weight: 700; color: #8a93a8; background: #f4f6fb; border-radius: 6px; }
.qp-line-body { min-width: 0; }
.qp-line-body p { margin: 0; }
.qp-line-name { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.qp-line-code { margin-top: 4px !important; }
.qp-code { padding: 2px 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; color: #334155; background: #eef2f7; border-radius: 6px; }
.qp-configs { margin: 7px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.qp-cfg-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: #0d1b3e; background: #f8fafc; border: 1px solid #dbe2ee; border-radius: 999px; }
.qp-cfg-swatch { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(13, 27, 62, 0.2); flex: 0 0 auto; display: block; }
.qp-note-block { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.qp-line-note { padding: 7px 10px; font-size: 13px; line-height: 1.45; color: #334155; background: #f8fafc; border-left: 3px solid #94a3b8; border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.qp-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.qp-note-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; color: #334155; background: #f8fafc; border: 1px solid #dbe2ee; border-radius: 8px; cursor: pointer; transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
@media (hover: hover) { .qp-note-toggle:hover { color: #0d1b3e; background: #eef2ff; border-color: #cbd5e1; } }
.qp-note-toggle:active { transform: scale(0.97); }
.qp-note-toggle.has-note { color: #0d1b3e; background: #eef2ff; border-color: #c7d4f7; }
.qp-note-status { font-size: 12px; font-weight: 600; color: #64748b; }
.qp-note-status.is-saving { color: #1c325f; }
.qp-note-status.is-saved { color: #0f683a; }
.qp-note-status.is-error { color: #b91c1c; }
.qp-note-editor { display: flex; flex-direction: column; gap: 6px; }
.qp-note-input { display: block; width: 100%; min-height: 62px; padding: 8px 10px; font: inherit; font-size: 13.5px; line-height: 1.45; color: #0d1b3e; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 9px; resize: vertical; box-sizing: border-box; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.qp-note-input:focus { outline: none; border-color: #0d1b3e; box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.08); }
.qp-note-editor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.qp-note-hint { font-size: 12px; color: #64748b; }
.qp-note-done { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: #0d1b3e; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 8px; cursor: pointer; transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease; }
@media (hover: hover) { .qp-note-done:hover { background: #e2e8f0; border-color: #94a3b8; } }
.qp-note-done:active { transform: scale(0.97); }
.qp-note-toggle:focus-visible, .qp-note-done:focus-visible { outline: 3px solid #4a7bff; outline-offset: 2px; }

/* Konfigürasyon Düzenleme Butonu ve Seçici Çekmecesi */
.qp-config-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.qp-config-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.qp-config-btn:focus-visible {
    outline: 3px solid #4a7bff;
    outline-offset: 2px;
}

.qp-config-btn[hidden] {
    display: none !important;
}

.qp-config-drawer {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qp-config-drawer[hidden] {
    display: none !important;
}

.qp-cfg-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qp-cfg-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.qp-cfg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qp-cfg-option {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    background: #ffffff;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.qp-cfg-option:hover {
    border-color: #0052cc;
    background: #f8fafc;
}

.qp-cfg-option.is-selected {
    border-color: #0052cc;
    background: #ebf5ff;
    color: #0052cc;
    font-weight: 600;
}

.qp-cfg-thumb {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.qp-cfg-loading,
.qp-cfg-hint {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}
.qp-form-alert { margin: 0; font-size: 13.5px; }
.qp-qty { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 10px; background: #f4f6fb; border-radius: 10px; }
.qp-qty-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.qp-qty-value { font-size: 20px; font-weight: 700; line-height: 1.15; }

.qp-warning { margin: 0 0 18px; padding: 14px 18px; font-size: 14px; color: #6b4a00; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 12px; }
.qp-warning-title { margin: 0 0 6px; font-weight: 700; }
.qp-warning ul { margin: 0; padding-left: 18px; }
.qp-price-note { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; color: #64748b; }

/* Form paneli */
.qp-form { display: flex; flex-direction: column; gap: 16px; padding: 22px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 6px 24px -8px rgba(15, 23, 42, .12); }
.qp-form-title { margin: 0; font-size: 18px; font-weight: 700; }
.qp-send-to { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 14px; background: #f4f6fb; border-radius: 12px; }
.qp-send-to-label { font-size: 12px; font-weight: 600; color: #64748b; }
.qp-send-to-value { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.qp-field { display: flex; flex-direction: column; gap: 6px; }
.qp-field label { font-size: 13.5px; font-weight: 600; }
.qp-optional { font-weight: 500; color: #64748b; }
.qp-field input, .qp-field textarea { width: 100%; padding: 10px 14px; font: inherit; color: inherit; background: #ffffff; border: 1.5px solid #8892a8; border-radius: 10px; box-sizing: border-box; }
.qp-field input { height: 46px; padding-top: 0; padding-bottom: 0; }
.qp-field textarea { resize: vertical; min-height: 96px; }
.qp-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.qp-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.qp-check a { color: #1b2f63; text-decoration: underline; }
.qp-submit { width: 100%; min-height: 52px; font-size: 16px; }
.qp-fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: #64748b; }

/* Dar ekran: tek sütun, gönder düğmesi altta sabit çubukta */
.qp-mobilebar { display: none; }
@media screen and (max-width: 960px) {
    .qp-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .qp-aside { position: static; }
    .qp-mobilebar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #ffffff; border-top: 1px solid #e2e8f0;
        box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
    }
    .qp-mobilebar-info { margin: 0; font-size: 13.5px; color: #3d475c; }
    .qp-mobilebar .qp-btn { min-height: 46px; padding: 0 22px; }
    .qp-submit { display: none; }
}
@media screen and (max-width: 600px) {
    .qp.quote-page { padding-left: 14px; padding-right: 14px; padding-top: 110px; }
    .qp-title { font-size: 26px; }
    .qp-steps { max-width: 100%; }
    .qp-step { font-size: 12.5px; gap: 6px; flex: 1 1 auto; }
    .qp-step:last-child { flex: 0 0 auto; }
    .qp-step:not(:last-child)::after { flex: 1 1 auto; width: auto; min-width: 8px; margin: 0 8px; }
    .qp-line { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
    .qp-thumb { width: 52px; height: 52px; }
    .qp-group-head { padding: 12px 14px; }
}
@media screen and (max-width: 400px) {
    .qp-step { font-size: 12px; gap: 5px; }
    .qp-step-dot { width: 24px; height: 24px; font-size: 12px; }
    .qp-step:not(:last-child)::after { margin: 0 5px; }
}
@media (prefers-reduced-motion: reduce) { .qp-btn, .qp-note-toggle, .qp-note-done { transition: none; } }

/* Teklif talebi adımı / sonuç sayfası yazdırma ve PDF düzeni */
@media print {
    @page {
        size: A4 portrait;
        margin: 14mm 14mm 15mm;
    }

    body:has(.quote-page) {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body:has(.quote-page) > *:not(main) {
        display: none !important;
    }

    main {
        display: block;
        margin: 0;
        padding: 0;
    }

    .quote-page.qp {
        padding: 0;
        margin: 0;
        background: #ffffff;
        color: #0d1b3e;
    }

    .quote-page .qp-inner,
    .quote-page .qp-inner--narrow {
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .quote-page .qp-back,
    .quote-page .qp-steps,
    .quote-page .qp-aside,
    .quote-page .qp-mobilebar,
    .quote-page .qp-line-actions,
    .quote-page .qp-note-editor,
    .quote-page .quote-actions {
        display: none !important;
    }

    .quote-page .qp-layout {
        display: block;
    }

    .quote-page .qp-head {
        margin: 0 0 14px;
        padding: 0 0 12px;
        border-bottom: 2px solid #0d1b3e;
        break-inside: avoid;
    }

    .quote-page .qp-title {
        font-size: 22px;
        color: #0d1b3e;
    }

    .quote-page .qp-lead {
        max-width: none;
        font-size: 11px;
        color: #475569;
    }

    .quote-page .qp-overview {
        margin: 0 0 18px;
        padding: 12px 16px;
        background: #f8fafc;
        border: 1px solid #dbe2ee;
        border-top: 2.5px solid #0d1b3e;
        border-radius: 0 0 8px 8px;
        break-inside: avoid;
    }

    .quote-page .qp-collection-name {
        font-size: 16px;
        color: #0d1b3e;
    }

    .quote-page .qp-facts {
        font-size: 11px;
    }

    .quote-page .qp-facts strong {
        font-size: 13px;
    }

    .quote-page .qp-group {
        margin: 0 0 16px;
        box-shadow: none;
        border: 1px solid #dbe2ee;
        border-top: 2.5px solid #0d1b3e;
        border-radius: 0 0 8px 8px;
        overflow: visible;
    }

    .quote-page .qp-group-head {
        padding: 9px 14px;
        background: #f8fafc;
        border-bottom: 1px solid #dbe2ee;
        border-radius: 0;
        break-after: avoid;
        page-break-after: avoid;
    }

    .quote-page .qp-group-title {
        font-size: 14px;
    }

    .quote-page .qp-chip {
        font-size: 10px;
        padding: 3px 10px;
    }

    .quote-page .qp-line {
        grid-template-columns: 64px minmax(0, 1fr) 68px;
        gap: 14px;
        align-items: center;
        padding: 11px 14px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .quote-page .qp-thumb {
        width: 64px;
        height: 56px;
        border-radius: 8px;
        border-color: #dfe5ef;
    }

    .quote-page .qp-line-name {
        font-size: 12.5px;
        font-weight: 700;
        color: #0d1b3e;
    }

    .quote-page .qp-code {
        font-size: 9.5px;
        padding: 1.5px 7px;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
    }

    .quote-page .qp-configs {
        margin-top: 5px;
        gap: 4px;
    }

    .quote-page .qp-cfg-pill {
        font-size: 9.5px;
        padding: 2px 7px;
        background: #f8fafc;
        border-color: #dbe2ee;
    }

    .quote-page .qp-cfg-swatch {
        width: 11px;
        height: 11px;
    }

    .quote-page .qp-note-block {
        margin-top: 4px;
    }

    .quote-page .qp-line-note {
        padding: 5px 10px;
        font-size: 10.5px;
        color: #1e293b;
        background: #f8fafc;
        border-left: 2.5px solid #1c325f;
        border-radius: 0 5px 5px 0;
    }

    .quote-page .qp-qty {
        padding: 7px 6px;
        background: #f8fafc;
        border: 1px solid #dbe2ee;
        border-radius: 8px;
    }

    .quote-page .qp-qty-label {
        font-size: 8px;
    }

    .quote-page .qp-qty-value {
        font-size: 16px;
        color: #0d1b3e;
    }

    .quote-page .qp-price-note {
        margin: 16px 0 0;
        padding: 10px 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 500;
        color: #475569;
        break-inside: avoid;
    }

    .quote-page .quote-card {
        box-shadow: none;
        border: 1px solid #dbe2ee;
        padding: 20px;
    }
}

