/* =====================================================================
 * Fotoğraf Baskı — /fotograf-baski (SUP-0320)
 * Yalnız bu sayfada yüklenir. Renkler style.css değişkenlerinden gelir.
 * ===================================================================== */

.pb-wrap { padding: 26px 20px 60px; }

.pb-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.pb-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft);
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px; }
.pb-steps li span { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.pb-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.pb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow-sm); }
.pb-h { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 16px; flex-wrap: wrap; }
.pb-h small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pb-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
    display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; }

.pb-field { margin-bottom: 14px; }
.pb-label { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.pb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.pb-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pb-chips-sm { grid-template-columns: 1fr 1fr; }
.pb-chip { position: relative; cursor: pointer; display: block; }
.pb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pb-chip > span { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 12px; transition: border-color .15s, background .15s; }
.pb-chip strong { font-size: 14px; }
.pb-chip em { font-style: normal; font-size: 12px; color: var(--accent-dark); }
.pb-chip small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pb-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.pb-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.pb-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.5; }
.pb-hint svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--info); }

/* Yükleme alanı */
.pb-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
    border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px 16px; background: var(--cream);
    transition: border-color .15s, background .15s; }
.pb-drop:hover, .pb-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.pb-drop-icon svg { width: 40px; height: 40px; color: var(--accent); }
.pb-drop strong { font-size: 16px; }
.pb-drop span { font-size: 14px; color: var(--ink-soft); }
.pb-drop small { font-size: 12.5px; color: var(--muted); }

.pb-progress { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.pb-progress[hidden] { display: none !important; }
.pb-progress-bar { height: 8px; background: var(--border-soft); border-radius: 99px; overflow: hidden; }
.pb-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.pb-errors { margin-top: 12px; background: #fdecea; border: 1px solid var(--danger); color: #8e2a1f;
    border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.pb-errors[hidden] { display: none !important; }

/* Fotoğraf listesi */
.pb-list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pb-list-head .pb-h { margin-bottom: 8px; }
.pb-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pb-bulk select { width: auto; min-width: 120px; padding: 8px 10px; }
.pb-bulk input { width: 70px; padding: 8px 10px; }

.pb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: var(--surface); }
.pb-item.is-low { border-color: var(--warning); background: #fffbf1; }
.pb-thumb { position: relative; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; background: var(--border-soft); }
.pb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-thumb span { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px;
    border-radius: 4px; padding: 1px 6px; }
.pb-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pb-meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta small { color: var(--muted); font-size: 12px; }
.pb-warn { font-size: 12.5px; color: #8a5c0c; line-height: 1.4; }
.pb-ctrl { display: flex; gap: 10px; align-items: flex-end; }
.pb-ctrl label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin: 0; }
.pb-ctrl select { padding: 7px 8px; min-width: 104px; width: auto; }
.pb-qty { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pb-qty button { width: 32px; border: 0; background: var(--cream); font-size: 16px; cursor: pointer; color: var(--ink); }
.pb-qty input { width: 52px; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 7px 2px;
    -moz-appearance: textfield; appearance: textfield; }
.pb-qty input::-webkit-outer-spin-button, .pb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pb-del { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
    color: var(--danger); cursor: pointer; font-size: 14px; flex: 0 0 auto; }
.pb-del:hover { background: #fdecea; }

/* Özet */
.pb-side { position: sticky; top: calc(var(--header-h) + 70px); }
.pb-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); }
.pb-summary h3 { margin: 0 0 12px; font-size: 18px; }
.pb-breakdown { display: flex; flex-direction: column; gap: 8px; font-size: 14px; margin-bottom: 12px; }
.pb-breakdown p { margin: 0; font-size: 13px; }
.pb-brow { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.pb-brow span { display: flex; flex-direction: column; }
.pb-brow em { font-style: normal; color: var(--success); font-size: 12px; }
.pb-brow small { color: var(--muted); font-size: 12px; }
.pb-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; padding-top: 4px; }
.pb-total strong { font-size: 26px; color: var(--price); }
.pb-total-note { font-size: 12px; color: var(--muted); margin: 2px 0 14px; }
.pb-summary .btn svg { width: 18px; height: 18px; }
.pb-secure { display: flex; gap: 6px; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.pb-secure svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; }

/* Fiyat tablosu */
.pb-prices { margin-top: 40px; }
.pb-prices h2 { font-size: 22px; margin: 0 0 14px; }
.pb-table-wrap { overflow-x: auto; }
.pb-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.pb-table th, .pb-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.pb-table th { background: var(--cream); font-size: 13px; color: var(--ink-soft); }
.pb-tier { display: inline-block; background: #eaf7ee; color: #1e6b3c; border-radius: 99px; padding: 2px 9px;
    font-size: 12px; margin: 2px 4px 2px 0; }
.pb-info { margin-top: 36px; }

@media (max-width: 991px) {
    .pb-layout { grid-template-columns: 1fr; }
    .pb-side { position: static; }
}

@media (max-width: 640px) {
    .pb-wrap { padding: 18px 16px 48px; }
    .pb-steps { display: none; }
    .pb-card { padding: 16px; }
    .pb-row2 { grid-template-columns: 1fr; gap: 0; }
    .pb-chips { grid-template-columns: 1fr 1fr; }
    .pb-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
    .pb-thumb { width: 64px; height: 64px; }
    .pb-ctrl { grid-column: 1 / -1; justify-content: space-between; }
    .pb-ctrl select { min-width: 118px; padding-right: 30px; }
    .pb-bulk { width: 100%; }
    .pb-bulk select { flex: 1; }
    .pb-table thead { display: none; }
    .pb-table, .pb-table tbody, .pb-table tr, .pb-table td { display: block; width: 100%; }
    .pb-table tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
    .pb-table td { border: 0; padding: 4px 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .pb-table td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; }
}
