/* Ürün kişiselleştirme bileşeni (public/assets/pz/pz.js). Renk ve köşeler temanın değişkenlerinden gelir:
   --theme-color (vurgu), --co-* (yenitema çizgi/metin), --pr / --pr-sm (ürün sayfası köşe ayarı). */
.pz{
  --pz-acc: var(--theme-color, #111827);
  --pz-acc-soft: color-mix(in srgb, var(--pz-acc) 9%, #fff);
  --pz-ink: var(--co-ink, #111827);
  --pz-ink2: var(--co-ink-2, #4b5563);
  --pz-mut: var(--co-mut, #6b7280);
  --pz-line: var(--co-line, #e5e7eb);
  --pz-line2: var(--co-line-2, #f1f3f4);
  --pz-bg: var(--co-bg, #f7f7f8);
  --pz-err: #c0352b;
  --pz-r: var(--pr, var(--yt-r, 14px));
  --pz-rs: var(--pr-sm, 10px);
  margin: 0 0 16px; font-size: 14px; color: var(--pz-ink); text-align: left;
}
.pz *, .pz *::before, .pz *::after{ box-sizing: border-box }
.pz svg{ width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none }
.pz-card{ border: 1px solid var(--pz-line); border-radius: var(--pz-r); background: #fff; overflow: hidden }
.pz-compact .pz-card{ border: 0; border-radius: 0; background: transparent; overflow: visible }

.pz-head{ display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--pz-line2) }
.pz-ic{ width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pz-acc-soft); color: var(--pz-acc); font-size: 17px; flex: none }
.pz-ic svg{ fill: currentColor; stroke: none }
.pz-ht{ flex: 1; min-width: 0 }
.pz-tr{ display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px }
.pz-ht b{ display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3 }
.pz-ht p{ margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--pz-ink2) }
.pz-pill{ flex: none; font-size: 12px; font-weight: 700; color: var(--pz-acc); background: var(--pz-acc-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap }
.pz-body{ padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 16px }
.pz-compact .pz-body{ padding: 0; gap: 14px }
.pz-alert{ margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--pz-ink2); background: var(--pz-bg); border-radius: var(--pz-rs); padding: 9px 11px }
.pz-editing{ display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--pz-ink2); background: var(--pz-acc-soft); border-radius: var(--pz-rs); padding: 9px 11px }
.pz-editing svg{ color: var(--pz-acc); margin-top: 2px }

.pz-f[hidden]{ display: none !important }
.pz-in-anim{ animation: pzIn .22s ease }
@keyframes pzIn{ from{ opacity: 0; transform: translateY(-4px) } to{ opacity: 1; transform: none } }
.pz-lab{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 7px }
.pz-lab label{ font-size: 13.5px; font-weight: 650; color: var(--pz-ink); margin: 0; cursor: default }
.pz-req{ color: var(--pz-err); font-weight: 700 }
.pz-opt{ font-size: 11.5px; color: var(--pz-mut) }
.pz-picked{ font-size: 13.5px; font-weight: 600; color: var(--pz-ink2); margin-left: -4px }
.pz-price{ font-style: normal; font-size: 12px; font-weight: 700; color: var(--pz-acc); white-space: nowrap }
.pz-lab .pz-price{ margin-left: auto }
.pz-help{ margin: -3px 0 8px; font-size: 12.5px; line-height: 1.45; color: var(--pz-mut) }

.pz .pz-in{
  display: block; width: 100%; min-height: 46px; padding: 11px 13px; margin: 0;
  font: inherit; font-size: 15px; line-height: 1.35; color: var(--pz-ink);
  background: #fff; border: 1px solid var(--pz-line); border-radius: var(--pz-rs) !important;
  outline: none; box-shadow: none; transition: border-color .15s, background-color .15s; -webkit-appearance: none; appearance: none;
}
.pz textarea.pz-in{ min-height: 92px; resize: vertical }
.pz .pz-in::placeholder{ color: #a3a8ae }
.pz .pz-in:hover{ border-color: color-mix(in srgb, var(--pz-ink) 25%, var(--pz-line)) }
.pz .pz-in:focus{ border-color: var(--pz-acc); outline: 2px solid color-mix(in srgb, var(--pz-acc) 18%, transparent); outline-offset: 0 }
.pz .pz-in:disabled{ background: var(--pz-bg) }
.pz-selw{ position: relative }
.pz-selw::after{ content: ''; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid var(--pz-mut); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); pointer-events: none }
.pz-selw .pz-in{ padding-right: 38px; cursor: pointer }

.pz-chips{ display: flex; flex-wrap: wrap; gap: 8px }
.pz-chip{ position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px; margin: 0;
  border: 1px solid var(--pz-line); border-radius: var(--pz-rs); background: #fff; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--pz-ink);
  transition: border-color .15s, background-color .15s; user-select: none; -webkit-tap-highlight-color: transparent }
.pz-chip:hover{ border-color: color-mix(in srgb, var(--pz-ink) 30%, var(--pz-line)) }
.pz-chip input, .pz-swatch input{ position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none }
.pz-chip:has(input:checked){ border-color: var(--pz-acc); background: var(--pz-acc-soft); box-shadow: inset 0 0 0 1px var(--pz-acc) !important }
.pz-chip:has(input:focus-visible), .pz-swatch:has(input:focus-visible) i{ outline: 2px solid var(--pz-acc); outline-offset: 2px }
.pz-chip .pz-price{ font-size: 11.5px }

.pz-sws{ display: flex; flex-wrap: wrap; gap: 10px 12px }
.pz-swatch{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 54px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent }
.pz-swatch i{ width: 38px; height: 38px; border-radius: 50% !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12) !important; position: relative; transition: transform .15s }
.pz-swatch i::after{ content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s }
.pz-swatch:has(input:checked) i::after{ border-color: var(--pz-acc) }
.pz-swatch:hover i{ transform: scale(1.05) }
.pz-swatch small{ font-size: 10.5px; font-weight: 700; color: var(--pz-acc); margin-top: -3px; white-space: nowrap }
.pz-swatch{ width: auto; min-width: 54px }
.pz-swatch span{ font-size: 11.5px; line-height: 1.25; color: var(--pz-ink2); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }

.pz-check{ display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 12px 13px; border: 1px solid var(--pz-line); border-radius: var(--pz-rs); background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .15s, background-color .15s }
.pz-check input{ position: absolute; opacity: 0; width: 1px; height: 1px }
.pz-box{ width: 21px; height: 21px; flex: none; border: 1.5px solid #c4c9cf; border-radius: 6px !important; display: grid; place-items: center; color: #fff; background: #fff; transition: all .15s; margin-top: 1px }
.pz-box svg{ width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; transform: scale(.6); transition: all .15s }
.pz-check:has(input:checked){ border-color: var(--pz-acc); background: var(--pz-acc-soft) }
.pz-check:has(input:checked) .pz-box{ background: var(--pz-acc); border-color: var(--pz-acc) }
.pz-check:has(input:checked) .pz-box svg{ opacity: 1; transform: none }
.pz-check:has(input:focus-visible) .pz-box{ outline: 2px solid var(--pz-acc); outline-offset: 2px }
.pz-ct{ flex: 1; min-width: 0 }
.pz-ct b{ display: block; font-size: 14px; font-weight: 650; line-height: 1.35 }
.pz-ct small{ display: block; font-size: 12.5px; color: var(--pz-mut); line-height: 1.45; margin-top: 2px }
.pz-check .pz-price{ margin-top: 2px }

.pz-drop{ display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #c9ced4; border-radius: var(--pz-rs); background: var(--pz-bg); cursor: pointer; transition: border-color .15s, background-color .15s; -webkit-tap-highlight-color: transparent }
.pz-drop:hover, .pz-drop.is-over, .pz-drop:focus-visible{ border-color: var(--pz-acc); background: var(--pz-acc-soft); outline: none }
.pz-drop[hidden], .pz-file[hidden], .pz-prog[hidden]{ display: none !important }
.pz-dic{ width: 40px; height: 40px; border-radius: 50% !important; display: grid; place-items: center; background: #fff; color: var(--pz-acc); font-size: 19px; flex: none; box-shadow: inset 0 0 0 1px var(--pz-line) !important }
.pz-dt b{ display: block; font-size: 14px; font-weight: 650 }
.pz-dt small{ display: block; font-size: 12px; color: var(--pz-mut); margin-top: 1px }
.pz-file{ display: flex; align-items: center; gap: 12px; padding: 9px; border: 1px solid var(--pz-line); border-radius: var(--pz-rs); background: #fff }
.pz-thumb{ width: 56px; height: 56px; flex: none; border-radius: 8px !important; overflow: hidden; background: var(--pz-bg); display: grid; place-items: center; color: var(--pz-mut); font-size: 24px }
.pz-thumb img{ width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important }
.pz-fn{ flex: 1; min-width: 0 }
.pz-fn b{ display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pz-fn small{ display: block; font-size: 12px; color: #177245; margin-top: 1px }
.pz-lnk{ border: 0; background: none; padding: 6px 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--pz-acc); cursor: pointer; text-decoration: underline; text-underline-offset: 2px }
.pz .pz-x{ width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50% !important; background: var(--pz-bg); color: var(--pz-ink2); font-size: 15px; cursor: pointer; padding: 0 }
.pz .pz-x:hover{ background: var(--pz-line) }
.pz-prog{ height: 4px; border-radius: 4px !important; background: var(--pz-line2); overflow: hidden; margin-top: 8px }
.pz-prog i{ display: block; height: 100%; width: 0; background: var(--pz-acc); transition: width .2s }

.pz-meta{ display: flex; justify-content: space-between; gap: 8px }
.pz-meta:has(.pz-err:empty):has(.pz-count:only-of-type), .pz-meta:not(:has(.pz-count)):has(.pz-err:empty){ display: none }
.pz-err{ font-size: 12.5px; color: var(--pz-err); line-height: 1.4; padding-top: 5px }
.pz-err:empty{ padding: 0 }
.pz-count{ margin-left: auto; font-size: 11.5px; color: var(--pz-mut); padding-top: 5px; font-variant-numeric: tabular-nums }
.pz-count.is-near{ color: #b45309; font-weight: 600 }
.pz-f.is-err .pz-in, .pz-f.is-err .pz-drop, .pz-f.is-err .pz-check, .pz-f.is-err .pz-chip{ border-color: var(--pz-err) !important }
.pz-f.is-err .pz-in{ background: #fffafa }

.pz-sum{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--pz-line2); background: var(--pz-bg); font-size: 13px; color: var(--pz-ink2) }
.pz-sum[hidden]{ display: none }
.pz-sum small{ font-size: 11.5px; color: var(--pz-mut) }
.pz-sum b{ color: var(--pz-ink); font-size: 14px }
.pz-compact .pz-sum{ margin-top: 12px; border: 0; border-radius: var(--pz-rs); padding: 10px 12px }

/* Telefonda alttan açılan pencere */
.pz-ov{ position: fixed; inset: 0; z-index: 10600; background: rgba(17, 24, 39, 0); display: flex; align-items: flex-end; transition: background .25s }
.pz-ov.is-open{ background: rgba(17, 24, 39, .5) }
.pz-sheet{ width: 100%; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.32, .72, 0, 1) }
.pz-ov.is-open .pz-sheet{ transform: none }
.pz-grab{ width: 38px; height: 4px; border-radius: 4px; background: #dfe2e6; margin: 9px auto 0; flex: none }
.pz-sh-h{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 10px; flex: none }
.pz-sh-h b{ font-size: 17px; font-weight: 700 }
.pz-sh-h .pz-x{ width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f1f3f4; color: #374151; font-size: 15px; padding: 0; cursor: pointer }
.pz-sh-h svg, .pz-sh-f svg{ width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round }
.pz-sh-b{ flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px 8px }
.pz-sh-b .pz{ margin: 0 }
.pz-sh-b .pz-card{ border: 0; border-radius: 0 }
.pz-sh-b .pz-head{ padding: 0 0 12px }
.pz-sh-b .pz-ic, .pz-sh-b .pz-tr b{ display: none } /* başlık pencerenin üstünde */
.pz-sh-b .pz-tr{ min-height: 0 }
.pz-sh-b .pz-ht p{ margin: 0 }
.pz-sh-b .pz-body{ padding: 14px 0 6px }
.pz-sh-b .pz-sum{ margin: 4px 0 0; border: 0; border-radius: 10px }
.pz-sh-f{ flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #f1f3f4 }
.pz-go{ width: 100%; min-height: 52px; border: 0; border-radius: 12px; background: var(--theme-color, #111827); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer }
.pz-go:active{ transform: scale(.99) }
.pz-ph{ min-height: 1px }
html.pz-lock, html.pz-lock body{ overflow: hidden }
/* Pencere ürün sayfası sarmalayıcısının dışında: tema kurallarından bağımsız aynı görünüm */
.pz-ov .pz{ --pz-r: 14px; --pz-rs: 10px }

@media (max-width: 575px){
  .pz-head{ padding: 13px 14px }
  .pz-body{ padding: 13px 14px 15px }
  .pz-sum{ padding: 10px 14px }
  .pz .pz-in{ font-size: 16px } /* iOS büyütmesin */
  .pz-chip{ flex: 1 1 auto; justify-content: center }
}

/* Sepet satırındaki kişiselleştirme (resources/views/partials/personalization/cart_line.php) */
.pzc{ margin: 8px 0 2px; font-size: 13px; line-height: 1.4 }
.pzc-list{ margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--co-bg, #f6f7f7); display: flex; flex-direction: column; gap: 5px }
.pzc-r{ display: block; min-width: 0 }
.pzc-r dt{ display: inline; font-weight: 500; color: var(--co-mut, #6b7280); margin: 0 }
.pzc-r dt::after{ content: ': ' }
.pzc-r dd{ display: inline; margin: 0; color: var(--co-ink, #111827); font-weight: 600; overflow-wrap: anywhere }
.pzc-r dd em{ font-style: normal; font-weight: 600; font-size: 12px; color: var(--theme-color, #111827); margin-left: 6px; white-space: nowrap }
.pzc-file{ display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; vertical-align: middle }
.pzc-file img{ width: 34px; height: 34px; object-fit: cover; border-radius: 6px; display: block }
.pzc-file span{ text-decoration: underline; text-underline-offset: 2px; font-weight: 500 }
.pzc-edit, .pzc-miss{ display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; font-weight: 600; text-decoration: none }
.pzc-edit{ color: var(--co-ink-2, #4b5563) }
.pzc-edit:hover{ color: var(--theme-color, #111827) }
.pzc-miss{ color: #b42318; background: #fef3f2; border-radius: 8px; padding: 7px 10px }

/* Tasarım stüdyosuna geçiş kartı (ürün sayfası / hızlı ekleme) */
.pz-studio{ display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--pz-acc); border-radius: var(--pz-rs); background: var(--pz-acc-soft); color: var(--pz-ink); text-decoration: none !important; transition: transform .15s }
.pz-studio:hover{ transform: translateY(-1px) }
.pz-sic{ width: 40px; height: 40px; border-radius: 50% !important; display: grid; place-items: center; background: var(--pz-acc); color: #fff; font-size: 18px; flex: none }
.pz-sic svg{ fill: currentColor; stroke: none }
.pz-st{ flex: 1; min-width: 0 }
.pz-st b{ display: block; font-size: 14.5px; font-weight: 700 }
.pz-st small{ display: block; font-size: 12.5px; color: var(--pz-ink2); margin-top: 1px; line-height: 1.4 }
.pz-sgo{ flex: none; font-size: 13px; font-weight: 700; color: #fff; background: var(--pz-acc); border-radius: 999px; padding: 7px 14px }
