/* =========================================================
   Punta v2 — Ürün detay sayfası (style-v2.css üzerine)
   ========================================================= */
.p-hero { padding: calc(var(--utility-h) + var(--header-h) + 20px) 0 clamp(56px, 7vw, 96px); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(20px, 3vw, 32px); font-size: 0.86rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.crumbs a { transition: color var(--dur-micro) var(--ease-out-quart); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--ink); } }

.p-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }

/* Görsel */
.p-media { position: sticky; top: calc(var(--header-h) + 24px); }
.p-stage { position: relative; border-radius: var(--r-lg); background: var(--white); aspect-ratio: 1 / 1.02; }
.p-reveal { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.p-reveal img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.p-dot {
  position: absolute; left: clamp(-24px, -2vw, -12px); bottom: clamp(-24px, -2vw, -12px);
  width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--dot);
  box-shadow: 0 0 0 10px var(--bg); pointer-events: none;
}

.p-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.p-zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
.p-reveal img { transition: opacity 140ms var(--ease-out-quart); }
.p-reveal img.is-out { opacity: 0; }

/* Ürün galerisi küçük görselleri */
.p-thumbs { list-style: none; margin: 16px 0 0; padding: 0 0 0 clamp(84px, 7.5vw, 112px); display: flex; flex-wrap: wrap; gap: 10px; }
.p-thumb {
  display: block; width: 76px; aspect-ratio: 1; padding: 4px; border: 0; border-radius: var(--r-md); background: var(--white);
  cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-micro) var(--ease-out-quart);
}
.p-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--r-md) - 4px); }
.p-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.p-thumb:focus-visible { outline: 2px solid var(--dot); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .p-thumb:hover { box-shadow: inset 0 0 0 2px var(--ink-2); } .p-thumb[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 2px var(--ink); } }

/* Bilgi */
.p-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 18px; }
.p-lead { color: var(--ink-2); font-size: 1.1rem; max-width: 48ch; margin-bottom: 28px; }

/* ---------- PİKTOGRAMLAR ---------- */
.pictos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.picto {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--white);
}
.picto-ico { width: 48px; height: 48px; padding: 6px; border-radius: 50%; background: var(--dot-soft); color: var(--ink); flex: none; }
.picto-txt { display: flex; flex-direction: column; line-height: 1.15; }
.picto-txt b { font-size: 0.9rem; font-weight: 600; }
.picto-code { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
.picto-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: 220px;
  padding: 8px 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 0.8rem; line-height: 1.35;
  opacity: 0; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity 150ms var(--ease-out-quart), transform 150ms var(--ease-out-quart);
}
.picto-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); }
.picto:hover .picto-tip, .picto:focus-within .picto-tip { opacity: 1; transform: translate(-50%, 0); }

/* EN 388 büyük gösterge */
.p-perf { padding: 18px 20px 20px; border-radius: var(--r-md); background: var(--white); margin-bottom: 12px; }
.en388-lg .en388-head { font-size: 0.74rem; margin-bottom: 12px; }
.en388-lg .en388-cells { gap: 8px; }
.en388-lg .en388-cell { padding: 12px 10px; border-radius: 14px; }
.en388-lg .en388-val { font-size: 1.35rem; }
.en388-lg .en388-bar { height: 5px; margin-top: 10px; }
.en388-lg .en388-lbl { font-size: 0.72rem; margin-top: 8px; }

/* Hızlı bilgiler */
.p-quick { display: grid; gap: 1px; border-radius: var(--r-md); overflow: hidden; background: var(--line-soft); margin-bottom: 24px; }
.p-quick > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 14px 20px; background: var(--white); }
.p-quick dt { color: var(--muted); font-size: 0.88rem; }
.p-quick dd { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.sizes li { min-width: 40px; padding: 5px 10px; border-radius: 999px; background: var(--bg); text-align: center; font-size: 0.84rem; font-weight: 600; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }

/* Belgeler — bağlantı kartları */
.docs { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
.doc {
  display: grid; grid-template-columns: 46px 1fr 32px; gap: 12px; align-items: center;
  padding: 10px 12px 10px 10px; border-radius: 999px; background: var(--white);
  border: 1.5px solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out-quart);
}
.doc-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; }
.doc-ico-cert { background: var(--dot); color: var(--ink); }
.doc-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.doc-txt b { font-weight: 600; font-size: 0.95rem; }
.doc-txt span { color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: transform var(--dur-micro) var(--ease-out-quart), background-color var(--dur-micro) var(--ease-out-quart); }
@media (hover: hover) and (pointer: fine) {
  .doc:hover { border-color: var(--ink); }
  .doc:hover .doc-go { background: var(--dot); transform: translate(2px, -2px); }
}
.p-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Detaylar ---------- */
.p-details { background: var(--panel); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-grid + .detail-grid { margin-top: 16px; }
.detail-grid-wide { grid-template-columns: 1.4fr 1fr; }
.d-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); background: var(--white); }
.d-card-dark { background: var(--graphite); color: #fff; }
.d-title { font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 20px; }
.dot-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.dot-list li:last-child { border-bottom: 0; }
.dot-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; transform: translateY(-1px); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 0.92rem; }

.spec-table > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.spec-table > div:last-child { border-bottom: 0; }
.spec-table dt { color: var(--muted); font-size: 0.92rem; }
.spec-table dd { font-weight: 500; }

.cert > div { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.cert dt { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-bottom: 2px; }
.cert dd { font-weight: 500; }
.cert dd.mono { font-size: 0.86rem; letter-spacing: 0; }
.d-card-dark .link-arrow { margin-top: 24px; }
.link-light { border-color: rgba(255,255,255,0.6); color: #fff; }
@media (hover: hover) and (pointer: fine) { .link-light:hover { background: #fff; color: var(--ink); } }

.related { background: var(--panel); padding-top: 0; }
.product-page .cta { background: var(--panel); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-media { position: relative; top: 0; }
  .p-dot { left: auto; right: 22px; bottom: -22px; width: 60px; }
  .p-thumbs { margin-top: 18px; padding-left: 0; padding-right: 96px; }
  .detail-grid, .detail-grid-wide { grid-template-columns: 1fr; }
  .related .sheet-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .p-hero { padding-top: calc(var(--header-h) + 12px); }
  .docs { grid-template-columns: 1fr; }
  .picto { padding-right: 14px; }
  .p-thumb { width: 64px; }
  .picto-ico { width: 42px; height: 42px; }
  .p-quick > div { grid-template-columns: 1fr; gap: 6px; }
  .spec-table > div { grid-template-columns: 1fr; gap: 2px; }
  .en388-lg .en388-cells { gap: 4px; }
  .en388-lg .en388-cell { padding: 8px 4px; }
  .en388-lg .en388-val { font-size: 1rem; }
  .en388-lg .en388-lbl { display: block; font-size: 0.56rem; }
  .p-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .picto-tip { transition: none; }
}

/* Dinamik içerik ekleri */
.detail-grid-full { grid-template-columns: 1fr; }
.detail-grid-one { grid-template-columns: 1fr; }
.d-prose { color: var(--ink-2); line-height: 1.7; }
.d-prose > * + * { margin-top: 0.9em; }
.d-prose h2, .d-prose h3 { font-family: var(--f-head); color: var(--ink); font-weight: 600; }
.d-prose ul { list-style: disc; padding-left: 1.2em; }
.d-prose table { width: 100%; border-collapse: collapse; }
.d-prose td, .d-prose th { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.picto-img { object-fit: contain; }
.pictos svg.picto-ico { overflow: visible; }

/* ---------- Satın al / Teklif al ---------- */
.p-buy { margin: 4px 0 14px; padding: 18px; border-radius: var(--r-md); background: var(--white); }
.p-buy-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.qty { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--line-soft); }
.qty-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--ink); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out-quart); }
.qty-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .qty-btn:hover { background: var(--white); } }
.qty-btn:focus-visible { outline: 2px solid var(--dot); outline-offset: 1px; }
.qty-input { width: 64px; height: 44px; border: 0; background: transparent; text-align: center; font: inherit; font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }
.qty:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.qty-unit { padding: 0 14px 0 2px; font-size: 0.88rem; color: var(--muted); }
.p-buy-btn { flex: 1 1 200px; justify-content: center; }
.p-buy-status { min-height: 0; font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.p-buy-status:not(:empty) { margin-top: 12px; padding-left: 18px; position: relative; }
.p-buy-status:not(:empty)::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.p-buy-note { margin-top: 10px; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.p-buy.is-quote .p-buy-note { display: none; }

/* Teklif penceresi */
.q-dialog { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--r-md); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(18, 20, 24, 0.3); overflow-y: auto; overscroll-behavior: contain; }
.q-dialog::backdrop { background: rgba(18, 20, 24, 0.55); }
.q-dialog[open] { animation: ckIn 260ms var(--ease-out-quart); }
.q-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 0; }
.q-prod { display: flex; align-items: center; gap: 14px; min-width: 0; }
.q-prod img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: contain; background: var(--panel); flex: none; }
.q-prod .tag { margin-bottom: 4px; }
.q-prod h2 { font-family: var(--f-head); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
.q-lead { padding: 12px 24px 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.q-dialog .cform { padding: 16px 24px 24px; border-radius: 0; scroll-margin-top: 0; }
.fld input.is-readonly { background: var(--white); border-style: dashed; color: var(--ink-2); }
@media (max-width: 560px) {
  .p-buy { padding: 14px; }
  .qty { flex: 1 1 100%; justify-content: space-between; }
  .qty-input { flex: 1; }
  .q-head, .q-lead, .q-dialog .cform { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) { .q-dialog[open] { animation: none; } }
