/* TAN DECO — Stor / Zebra / Jaluzi sayfaları: canlı pencere önizlemesi, renk paletleri, sipariş / teklif bölümü
   ve ana sayfadaki üç küçük canlı kutu. Renkler ve yazı tipleri sitenin değişkenlerinden gelir (style.css, tema.css). */
.pon-sayfa { padding: 28px 0 40px; background: #fff; }
.pon { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.pon-sol { min-width: 0; }
.pon-sahne { position: relative; border-radius: 8px; overflow: hidden; background: var(--c-surface, #F3F0EA); line-height: 0; }
.pon-sahne canvas { display: block; width: 100%; height: auto; cursor: ns-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.pon-ipucu { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: calc(100% - 20px); padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--c-ink); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pon:not(.hazir) .pon-ipucu { display: none; }
.pon-ayar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 0; font-size: 14px; color: var(--c-ink-soft); }
.pon-ayar label { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; font-weight: 600; }
.pon-ayar input[type="range"] { flex: 1; min-width: 0; accent-color: var(--c-accent); }
.pon-zincir { flex: 0 0 auto; padding: 9px 14px; border: 1.5px solid var(--c-accent); border-radius: var(--r-btn, 6px); background: #fff; color: var(--c-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pon-zincir:hover { background: var(--c-accent); color: #fff; }
.pon-zincir[hidden] { display: none; }

.pon-yan { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.pon-baslik { margin: 0 0 8px; font-size: 15px; color: var(--c-ink-soft); }
.pon-baslik strong { color: var(--c-ink); font-weight: 700; }
.pon-renkler { display: flex; flex-wrap: wrap; gap: 8px; }
.pon-renk { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(59,53,47,.35); cursor: pointer; box-shadow: inset 0 0 0 2px #fff; }
.pon-renk.secili { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.pon-renk:focus-visible, .pon-zincir:focus-visible, .pon-alan input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.pon-not { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-ink-soft); }
.pon-dene { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pon-dene svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pon-yan .btn { width: 100%; box-sizing: border-box; white-space: normal; text-align: center; justify-content: center; }

.pon-kutu { border: 1px solid var(--c-line); border-radius: 8px; padding: 16px; background: var(--c-cream, #F7F5F1); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pon-kutu[hidden] { display: none; }
.pon-kutu h2 { margin: 0; font-family: var(--f-body); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.pon-kutu p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.pon-olcu { display: grid; grid-template-columns: 1fr 1fr 96px; gap: 10px; }
.pon-alan { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--c-ink-soft); min-width: 0; }
.pon-alan input { width: 100%; min-width: 0; box-sizing: border-box; padding: 11px 10px; border: 1px solid rgba(59,53,47,.4); border-radius: 6px; background: #fff; font: inherit; font-size: 16px; color: var(--c-ink); }
.pon-alan input[aria-invalid="true"] { border-color: #A32D2D; }
.pon-hata { color: #8E2424; font-size: 13.5px; font-weight: 600; }
.pon-hata[hidden], .pon-sinir[hidden], .pon-durum[hidden] { display: none; }
.pon-sinir { font-size: 13px; color: var(--c-ink-soft); }
.pon-fiyat-satir { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.pon-fiyat-satir b { font-size: 24px; font-weight: 800; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.pon-durum { font-size: 14.5px; font-weight: 600; color: var(--c-success, #2F6B4F); }
.pon-durum a { text-decoration: underline; }

.pon-bilgi { padding: 8px 0 64px; background: #fff; }
.pon-bilgi .container { max-width: 860px; }
.pon-bilgi h2 { font-size: clamp(21px, 2.2vw, 26px); margin: 30px 0 10px; }
.pon-bilgi p, .pon-bilgi li { font-size: 16px; line-height: 1.7; color: var(--c-ink); }
.pon-bilgi ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* Telefonda önizleme üstte sabit kalır, paletler ve bilgiler altından kayar */
@media (max-width: 860px) {
  .pon-sayfa { padding-top: 0; }
  .pon { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pon-sol { position: sticky; top: var(--pon-sticky, 62px); z-index: 20; background: #fff; padding: 6px 0 8px; margin: 0 calc(var(--gutter, 20px) * -1); padding-left: var(--gutter, 20px); padding-right: var(--gutter, 20px); box-shadow: 0 10px 14px -12px rgba(59,53,47,.45); }
  /* Sabit kutu (önizleme + açıklık ayarı) ekranın yaklaşık yüzde 40'ını geçmez: önizleme en çok 30vh yüksekliğinde çizilir.
     Alttan kayan bölümler (palet, ölçü kutuları) sabit kutunun ARKASINDA kalmasın diye kaydırma payı bırakılır. */
  .pon-sahne { max-width: calc(30vh * var(--pon-oran, 1.5)); margin: 0 auto; }
  .pon-yan > div, .pon-kutu, .pon-alan, .pon-olcu { scroll-margin-top: calc(var(--pon-sticky, 62px) + 30vh + 96px); }
  .pon-ayar { margin-top: 8px; gap: 8px 12px; font-size: 13px; }
  .pon-ayar label { flex-basis: 150px; }
  .pon-zincir { padding: 7px 10px; font-size: 13px; }
  .pon-ipucu { font-size: 11.5px; padding: 5px 9px; top: 6px; }
  .pon-renk { width: 42px; height: 42px; }
}
@media (max-width: 860px) and (max-height: 520px) { .pon-sol { position: static; } }
@media (max-width: 860px) { .pon.yaziyor .pon-sol { position: static; } }   /* yatay telefonda sabitlenmez (ekranı kaplamasın) */
@media (max-width: 360px) { .pon-olcu { grid-template-columns: 1fr 1fr; } .pon-olcu .pon-alan:last-child { grid-column: 1 / -1; } .pon-ipucu { white-space: normal; text-align: center; } }

/* Ana sayfadaki "Ürün ailemiz" kutularında canlı çizim (perde-mini.js) */
.banner-item figure.pon-mini { background: var(--c-surface, #F3F0EA); }
.banner-item figure.pon-mini canvas { display: block; width: 100%; height: 100%; }

/* Masaustu: sag taraf (renkler, olcu, tanitim) asagi kaydirilirken soldaki pencere onizlemesi yerinde sabit kalir */
@media (min-width: 861px) {
  .pon-sol { position: sticky; top: calc(var(--pon-ust, 76px) + 14px); align-self: start; }
}

/* Tanitim metni artik sag sutunun icinde (sol onizleme sabit kalsin diye): bolum bosluklari sifirlanir */
.pon-yan .pon-bilgi { padding: 6px 0 0; background: none; }
.pon-yan .pon-bilgi h2 { margin: 22px 0 8px; }
.pon-yan .pon-bilgi h2:first-child { margin-top: 6px; }

/* "Sepete eklendi" bildirimi (perde-onizleme.js): ekranın altında, büyük ve belirgin; "Sepete git" düğmesiyle */
.pon-bildirim { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1200; display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 14px 16px; border-radius: 10px;
  background: var(--c-success, #2F6B4F); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.28); font-family: var(--f-body); }
.pon-bildirim[hidden] { display: none; }
.pon-bildirim > svg { flex: 0 0 auto; width: 30px; height: 30px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: #fff; color: var(--c-success, #2F6B4F); }
.pon-bildirim-yazi { display: grid; gap: 2px; min-width: 0; }
.pon-bildirim-yazi strong { font-size: 17px; font-weight: 700; line-height: 1.25; }
.pon-bildirim-yazi span { font-size: 13.5px; line-height: 1.35; opacity: .95; overflow-wrap: anywhere; }
.pon-bildirim-git { flex: 0 0 auto; padding: 10px 16px; border-radius: var(--r-btn, 6px); background: #fff; color: var(--c-success, #2F6B4F); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pon-bildirim-git:hover, .pon-bildirim-git:focus-visible { background: var(--c-success-bg, #EAF2EC); }
.pon-bildirim-kapat { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.pon-bildirim-kapat:hover, .pon-bildirim-kapat:focus-visible { background: rgba(255,255,255,.3); }
.pon-bildirim-git:focus-visible, .pon-bildirim-kapat:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 480px) {
  .pon-bildirim { left: 12px; right: 12px; bottom: 12px; transform: none; width: auto; max-width: none; gap: 10px; padding: 12px; }
  .pon-bildirim-yazi strong { font-size: 16px; }
  .pon-bildirim-git { padding: 10px 12px; }
}
