/* Parça sayfası (Bershka ürün gösteriminden uyarlandı, marka paleti ve fontlarıyla):
   kenardan kenara yatay galeri + sağ altta parça kartı → detaylar ve açılır bilgiler → öneri ızgarası → yapışkan alt çubuk. */
.pd { --pd-pad: max(28px, env(safe-area-inset-left, 0px)); }
.pd .tone-ink, .pd-buy .tone-ink { background: var(--ink); color: var(--dark-text); }
.pd .tone-mid, .pd-buy .tone-mid { background: var(--secondary); color: #F3F3F1; }
.pd .tone-light, .pd-buy .tone-light { background: var(--bg-2); color: var(--ink); }

/* ---------- Galeri ---------- */
.pd-top { position: relative; }
.pd-gal { position: relative; height: calc(100svh - var(--nav-hh)); min-height: 640px; max-height: 1040px; background: var(--bg-2); overflow: hidden; }
.pd-track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; outline: 0; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track.drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pd-track.auto { scroll-snap-type: none; } /* kendi kendine kayarken yakalama kapalı */
/* durdur / oynat */
.pd-pp { position: absolute; z-index: 3; left: var(--pd-pad); bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s var(--ease); }
.pd-pp span { width: 12px; height: 14px; background: linear-gradient(currentColor, currentColor) left / 4px 100% no-repeat, linear-gradient(currentColor, currentColor) right / 4px 100% no-repeat; }
.pd-pp.paused span { width: 0; height: 0; margin-left: 4px; background: none; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.pd-pp:hover { background: var(--ink); color: var(--bg); }
.pd-pp:active { transform: scale(.94); }
.pd-pp:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-track:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.pd-g { position: relative; flex: 0 0 calc(100% / 3); height: 100%; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; }
.pd-g + .pd-g { box-shadow: inset 1px 0 0 var(--bg); }
.pd-g svg { width: 44%; height: auto; transition: transform .7s var(--ease); }
.pd-g:hover svg { transform: scale(1.03); }
.pd-close svg { width: 150%; transform: translate(16%, 24%); }
.pd-close:hover svg { transform: translate(16%, 24%) scale(1.03); }
/* mekânda: ürün zemin çizgisine oturur (ikisi de karenin yüksekliğine göre konumlanır) */
.pd-room { container-type: size; }
.pd-room svg { position: absolute; left: 50%; translate: -50% 0; width: 30cqw; bottom: calc(22cqh - 30cqw * .18); }
.pd-room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22cqh; height: 2px; background: currentColor; opacity: .3; }
.pd-night svg { width: 54%; filter: drop-shadow(0 0 48px rgba(241, 89, 48, .35)); }

.pd-dots { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; }
.pd-dots button { all: unset; box-sizing: border-box; width: 28px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.pd-dots button::before { content: ""; width: 10px; height: 10px; background: var(--bg); box-shadow: 0 0 0 1px var(--ink); transition: background-color .2s, transform .2s var(--ease); }
.pd-dots button[aria-current]::before { background: var(--accent); transform: scale(1.2); }
.pd-dots button:hover::before { transform: scale(1.2); }
.pd-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
.pd-ar { position: absolute; z-index: 3; bottom: 20px; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background-color .2s, color .2s, opacity .2s, transform .15s var(--ease); }
/* oklar kare sayısına göre (her kare 28px) noktaların iki yanında 12px boşlukla durur */
.pd-ar-p { left: calc(50% - var(--n, 4) * 14px - 60px); } .pd-ar-n { left: calc(50% + var(--n, 4) * 14px + 12px); }
.pd-ar:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.pd-ar:active:not(:disabled) { transform: scale(.94); }
.pd-ar:disabled { opacity: .35; cursor: default; }
.pd-ar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-3d { position: absolute; z-index: 3; top: 20px; left: var(--pd-pad); display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 700 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.pd-3d:hover { background: var(--ink); color: var(--bg); }
.pd-3d:active { transform: scale(.96); }
.pd-3d:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-3dv { height: 100%; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 0 24px; }
.pd-3dv-ic { font: 700 clamp(64px, 9vw, 140px)/1 var(--font-display); }
.pd-3dv p { margin: 0; max-width: 30em; font-size: 15px; }

/* ---------- Parça kartı ---------- */
.pd-card { position: absolute; z-index: 4; right: var(--pd-pad); bottom: 28px; width: min(400px, 34vw); display: grid; gap: 16px; padding: 24px; background: var(--bg); border: 2px solid var(--ink); }
.pd-col { justify-self: start; display: inline-flex; align-items: center; min-height: 28px; font: 700 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.pd-col:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.pd-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pd-nm { margin: 0; font: 700 clamp(22px, 1.9vw, 28px)/1.1 var(--font-display); text-wrap: balance; }
.pd-st { flex: 0 0 auto; font: 700 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.pd-grp { display: grid; gap: 10px; }
.pd-lab { margin: 0; font-size: 14px; color: var(--text); } .pd-lab b { color: var(--ink); }
.pd-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-s { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 7px; border: 2px solid rgba(18, 19, 21, .2); cursor: pointer;
  font: 700 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .2s, transform .15s var(--ease); }
.pd-s i { width: 26px; height: 26px; box-shadow: inset 0 0 0 1px rgba(18, 19, 21, .25); }
.pd-s:hover { border-color: rgba(18, 19, 21, .55); }
.pd-s:active { transform: scale(.97); }
.pd-s.on { border-color: var(--ink); }
.pd-s:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-vd { margin: 0; font-size: 14px; line-height: 1.5; color: #3A3D40; }
.pd-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(18, 19, 21, .18); }
.pd-facts dt { font: 700 10px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pd-facts dd { margin: 4px 0 0; font-size: 14px; }
.pd-cta { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; background: var(--ink); color: var(--dark-text); text-decoration: none;
  font: 700 13px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.pd-cta:hover { background: var(--accent); color: var(--ink); }
.pd-cta:active { transform: scale(.98); }
.pd-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text); }

/* ---------- Detaylar + açılır bilgiler ---------- */
.pd-det { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.pd-det-img { position: sticky; top: var(--nav-hh); height: calc(100svh - var(--nav-hh)); align-self: start; display: grid; place-items: center; overflow: hidden; }
.pd-det-img svg { width: 38%; }
.pd-det-tx { padding: clamp(48px, 7vw, 110px) var(--pd-pad) clamp(56px, 8vw, 120px) clamp(32px, 5vw, 88px); max-width: 760px; }
.pd-eb { margin: 0 0 20px; font: 700 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pd-det-tx h2 { margin: 0; font: 700 clamp(26px, 2.8vw, 40px)/1.12 var(--font-display); text-wrap: balance; }
.pd-long { margin: 22px 0 0; font-size: 17px; line-height: 1.65; color: #3A3D40; max-width: 34em; }
.pd-q { list-style: none; margin: 36px 0 0; padding: 0; }
.pd-q li { display: grid; grid-template-columns: minmax(150px, .8fr) 1.2fr; gap: 6px 20px; padding: 14px 0; border-top: 1px solid rgba(18, 19, 21, .18); }
.pd-q b { font: 700 16px/1.3 var(--font-display); } .pd-q span { font-size: 15px; line-height: 1.5; color: #3A3D40; }
.pd-acc { margin-top: 44px; border-bottom: 2px solid var(--ink); }
.pd-acc details { border-top: 2px solid var(--ink); }
.pd-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; cursor: pointer;
  font: 700 13px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: transform .3s var(--ease); }
.pd-acc details[open] summary::after { transform: rotate(45deg); }
.pd-acc summary:hover { color: var(--accent-text); }
.pd-acc summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-acc details > p { margin: 0 0 24px; font-size: 15px; line-height: 1.65; color: #3A3D40; max-width: 36em; }
.pd-dl { display: grid; grid-template-columns: minmax(120px, .6fr) 1.4fr; gap: 10px 20px; margin: 0 0 24px; font-size: 15px; }
.pd-dl dt { font: 700 11px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pd-dl dd { margin: 0; }

/* ---------- Bunları da beğenebilirsiniz ---------- */
.pd-rec { border-top: 2px solid var(--ink); padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 8vw, 110px); }
.pd-rec-hd { padding: 0 var(--pd-pad); margin-bottom: clamp(24px, 3vw, 40px); }
.pd-rec-hd h2 { margin: 0; font: 700 clamp(28px, 3.4vw, 48px)/1.05 var(--font-display); text-wrap: balance; }
.pd-rec-hd p { margin: 10px 0 0; font-size: 15px; color: var(--text); }
.pd-rec-g { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: rgba(18, 19, 21, .16); border-top: 1px solid rgba(18, 19, 21, .16); border-bottom: 1px solid rgba(18, 19, 21, .16); }
.pd-rc { display: flex; flex-direction: column; background: var(--bg); color: var(--ink); text-decoration: none; }
.pd-rc-img { aspect-ratio: 3 / 4; display: grid; place-items: center; overflow: hidden; }
.pd-rc-img svg { width: 44%; transition: transform .6s var(--ease); }
.pd-rc:hover .pd-rc-img svg { transform: scale(1.03); }
.pd-rc-tx { display: grid; gap: 5px; padding: 14px 16px 22px; }
.pd-rc-c { font: 700 10px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pd-rc-n { font: 700 15px/1.25 var(--font-display); }
.pd-rc:hover .pd-rc-n { text-decoration: underline; text-underline-offset: 4px; }
.pd-rc-s { font-size: 13px; color: var(--text); }
.pd-rc:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Yapışkan alt çubuk ---------- */
.pd-buy { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 10px max(28px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(28px, env(safe-area-inset-left, 0px));
  background: var(--bg); border-top: 2px solid var(--ink); transform: translateY(110%); transition: transform .35s var(--ease); }
.pd-buy.on { transform: none; }
.pd-buy-th { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; }
.pd-buy-th svg { width: 70%; }
.pd-buy-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pd-buy-tx b { font: 700 16px/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-buy-tx em { font: 700 10px/1.2 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pd-buy .pd-cta { flex: 0 0 auto; min-height: 48px; }
body.pd-has-buy .totop { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .pd-buy { transition: none; } }

/* ---------- Tablet ve telefon ---------- */
@media (max-width: 1200px) {
  .pd-rec-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd-rc:nth-child(n+9) { display: none; }
}
@media (max-width: 900px) {
  .pd { --pd-pad: max(16px, env(safe-area-inset-left, 0px)); }
  .pd-gal { height: auto; min-height: 0; max-height: none; }
  .pd-track { height: auto; cursor: auto; }
  .pd-g { flex-basis: 100%; height: auto; aspect-ratio: 4 / 5; }
  .pd-ar { display: none; }
  .pd-dots { bottom: 8px; }
  .pd-pp { width: 44px; height: 44px; bottom: 8px; }
  .pd-3d { top: 12px; }
  .pd-card { position: static; width: auto; border: 0; border-bottom: 2px solid var(--ink); padding: 22px var(--pd-pad) 28px; }
  .pd-det { grid-template-columns: 1fr; }
  .pd-det-img { position: static; height: auto; aspect-ratio: 16 / 10; }
  .pd-det-tx { padding: 44px var(--pd-pad) 56px; }
  .pd-rec-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-rc:nth-child(n+9) { display: flex; } .pd-rc:nth-child(n+10) { display: none; }
  .pd-buy { gap: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  /* telefonda alt çubuk varken yukarı çık düğmesi içeriğin üstüne binmesin */
  body.pd-has-buy .totop { visibility: hidden !important; pointer-events: none !important; }
}
@media (max-width: 640px) {
  .pd-det-img { display: none; }
  .pd-det-tx { border-top: 0; }
  .pd-q li { grid-template-columns: 1fr; }
  .pd-dl { grid-template-columns: 1fr; gap: 2px; } .pd-dl dd { margin-bottom: 10px; }
  .pd-rec-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-rc:nth-child(n+9) { display: flex; }
  .pd-rc-img { aspect-ratio: 1 / 1; }
  .pd-rc-tx { padding: 12px 12px 18px; }
  .pd-buy-th { width: 40px; height: 40px; }
  .pd-buy .pd-cta { padding: 0 16px; font-size: 12px; }
  .pd-col { min-height: 44px; }
}

/* 3B model (js/urunler.js → model): galeri alanını doldurur */
.pd-mv { display: block; width: 100%; height: 100%; background: var(--bg-2); --poster-color: transparent; --progress-bar-color: var(--accent); outline: 0; }
.pd-mv:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.pd-mv-hint { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); margin: 0; font: 700 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; width: max-content; max-width: calc(100% - 32px); text-align: center; line-height: 1.4; pointer-events: none; }
.pd-mv-hint { transition: opacity .4s; } .pd-mv-hint.gone { opacity: 0; }
@media (max-width: 900px) { .pd-mv { aspect-ratio: 4 / 5; height: auto; } .pd-mv-hint { display: none; } } /* telefonda model-viewer'ın kendi el işareti */

/* ---------- Yakınlaştırma alanı (galerideki fotoğrafa tıklayınca, js/urun.js openZoom) ---------- */
.pd-track.zoomable .pd-photo { cursor: zoom-in; }
.pd-track.zoomable.drag .pd-photo { cursor: grabbing; }
.pz { position: fixed; inset: 0; z-index: 400; background: var(--bg); color: var(--ink); display: grid; animation: pz-in .28s var(--ease) both; }
@keyframes pz-in { from { opacity: 0; } to { opacity: 1; } }
.pz-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.pz-frame { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; touch-action: none; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; box-sizing: border-box; padding: clamp(76px, 9vh, 96px) clamp(16px, 5vw, 88px) clamp(96px, 12vh, 116px); }
.pz-frame.on { cursor: zoom-out; }
.pz-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none;
  transition: transform .35s var(--ease); will-change: transform; }
.pz-frame.on .pz-img { transition: transform .35s var(--ease), transform-origin .08s linear; }
.pz-mv { width: 100%; height: calc(100% - 160px); margin-top: 16px; --poster-color: transparent; background: var(--bg); }
.pz-soon { display: grid; justify-items: center; gap: 16px; text-align: center; padding: 0 24px; }
.pz-soon p { margin: 0; max-width: 30em; font-size: 15px; }
.pz-3d, .pz-x, .pz-ar { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); cursor: pointer;
  font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s, color .2s, transform .15s var(--ease); }
.pz-3d { top: max(18px, env(safe-area-inset-top, 0px)); left: max(18px, env(safe-area-inset-left, 0px)); padding: 0 20px; border-radius: 999px; }
.pz-x { top: max(18px, env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); width: 48px; border-radius: 50%; }
.pz-bar { position: absolute; z-index: 2; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; align-items: center; gap: 16px; }
.pz-bar[hidden] { display: none; }
.pz-ar { position: static; width: 48px; border-radius: 50%; }
.pz-n { min-width: 4.5em; text-align: center; font: 700 12px/1 var(--font-mono); letter-spacing: .08em; }
.pz-3d:hover, .pz-x:hover, .pz-ar:hover { background: var(--ink); color: var(--bg); }
.pz-3d:active, .pz-x:active, .pz-ar:active { transform: scale(.95); }
.pz-3d:focus-visible, .pz-x:focus-visible, .pz-ar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pz-3d[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pz-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(max(20px, env(safe-area-inset-bottom, 0px)) + 64px); margin: 0; text-align: center; pointer-events: none;
  font: 700 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.pz-hint[hidden] { display: none; }
.pz-stage .pz-hint { bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 720px) {
  .pz-frame { padding: 76px 0 108px; }
  .pz-3d { padding: 0 16px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .pz { animation: none; } .pz-img, .pz-frame.on .pz-img { transition: none; } }
button.pd-det-img { appearance: none; border: 0; padding: 0; margin: 0; width: 100%; font: inherit; color: inherit; cursor: zoom-in; }
button.pd-det-img:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
/* telefonda dokunulabilir olduklarını belli et (iPhone Safari için de) */
@media (hover: none) { .pd-track.zoomable .pd-photo { cursor: pointer; } }
