/* Ürün detay sayfası */
.pd-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 14px 16px 40px; }
html { scroll-behavior: smooth; }
body { background: #fff; }

.pd-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 36px; align-items: start; }

/* Görseller */
.pd-gallery { position: sticky; top: calc(var(--hp-nav-h, 0px) + 12px); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.pd-gallery--single { grid-template-columns: minmax(0, 1fr); }
.pd-thumbs { position: relative; }
.pd-thumbs__in { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.pd-thumbs__in::-webkit-scrollbar { display: none; }
.pd-thumb { flex: 0 0 90px; padding: 0; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 8px; background: var(--hp-bg); cursor: pointer; transition: border-color .15s; }
.pd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: #c9ced6; }
.pd-thumb.active { border-color: var(--hp-orange); box-shadow: 0 0 0 1px var(--hp-orange); }
.pd-stage { position: relative; aspect-ratio: 4 / 5; min-height: 380px; max-height: min(720px, calc(100vh - 110px)); width: 100%; overflow: hidden; border-radius: 12px; background: var(--hp-bg); cursor: zoom-in; }
.pd-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease-out; }
.pd-stage.is-zoom > img { transform: scale(1.9); transition: none; }
.pd-stage__off { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 6px; background: var(--hp-red); color: #fff; font-size: .8125rem; font-weight: 700; }
.pd-stage__count { position: absolute; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 20px; background: rgba(31, 35, 40, .62); color: #fff; font-size: .75rem; }
.pd-stage__nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); color: var(--hp-ink); cursor: pointer; opacity: 0; transition: opacity .15s; }
.pd-stage__nav--prev { left: 12px; }
.pd-stage__nav--next { right: 12px; }
.pd-stage:hover .pd-stage__nav, .pd-stage__nav:focus-visible { opacity: 1; }

/* Bilgiler */
.pd-head { display: flex; justify-content: space-between; gap: 14px; }
.pd-brand { display: inline-block; margin-bottom: 2px; color: var(--hp-orange); font-size: .875rem; font-weight: 700; text-decoration: none; }
.pd-brand:hover { text-decoration: underline; }
.pd-title { margin: 0; font-size: 1.5rem; line-height: 1.3; font-weight: 600; color: var(--hp-ink); }
.pd-head__acts { display: flex; flex: none; gap: 8px; }
.pd-icon { width: 42px; height: 42px; border: 1px solid var(--hp-line); border-radius: 50%; background: #fff; color: #5b626c; font-size: 1.0625rem; cursor: pointer; transition: border-color .15s, color .15s; }
.pd-icon:hover { border-color: var(--hp-orange); color: var(--hp-orange); }
.pd-icon.is-on { border-color: #f5c6ca; background: #fdebec; color: var(--hp-red); }
.pd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; color: var(--hp-muted); font-size: .8125rem; }
.pd-rating a { display: inline-flex; align-items: center; gap: 5px; color: var(--hp-muted); text-decoration: none; }
.pd-rating a:hover { color: var(--hp-orange); }
.pd-rating strong { color: var(--hp-ink); }
.pd-stars { position: relative; display: inline-block; color: #dfe2e6; font-size: .9rem; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.pd-stars::before { content: "★★★★★"; }
.pd-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--v, 0%); overflow: hidden; color: #ffb400; }

.pd-pricebox { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--hp-bg); }
.pd-old { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--hp-muted); font-size: .875rem; }
.pd-old[hidden] { display: none; }
.pd-old span { padding: 1px 7px; border-radius: 5px; background: #fdebec; color: var(--hp-red); font-size: .8125rem; font-weight: 700; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pd-price > span { color: var(--hp-orange); font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.pd-price small { color: var(--hp-muted); font-size: .75rem; }

.pd-opt { margin-top: 18px; }
.pd-opt[hidden] { display: none; }
.pd-opt__label { margin-bottom: 8px; color: var(--hp-muted); font-size: .875rem; }
.pd-opt__label b { color: var(--hp-ink); font-weight: 600; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 52px; min-height: 42px; padding: 6px 14px; border: 1px solid #d5d9df; border-radius: 8px; background: #fff; color: var(--hp-ink); font-size: .875rem; cursor: pointer; transition: border-color .15s; }
.pd-chip:hover { border-color: var(--hp-orange); }
.pd-chip.active { border-color: var(--hp-orange); box-shadow: inset 0 0 0 1px var(--hp-orange); background: var(--hp-orange-soft); font-weight: 600; }
.pd-chip.out-of-stock, .pd-chip.disabled { border-style: dashed; color: #a2a8b1; cursor: not-allowed; }
.pd-chip.disabled { text-decoration: line-through; }
.pd-chip small { font-size: .6875rem; }
.pd-dot { width: 16px; height: 16px; flex: none; border: 1px solid rgba(0, 0, 0, .18); border-radius: 50%; }

.pd-stock { display: flex; align-items: center; gap: 7px; margin-top: 16px; font-size: .875rem; font-weight: 500; color: #0b7a44; }
.pd-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-stock[data-state="low"] { color: #c2410c; }
.pd-stock[data-state="out"] { color: var(--hp-red); }

.pd-buy { display: grid; grid-template-columns: auto minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.pd-qty { display: flex; height: 50px; overflow: hidden; border: 1px solid #d5d9df; border-radius: 8px; }
.pd-qty button { width: 38px; border: 0; background: #fff; color: var(--hp-ink); font-size: 1.125rem; cursor: pointer; }
.pd-qty button:hover { background: var(--hp-bg); }
.pd-qty input { width: 42px; padding: 0; border: 0; text-align: center; font-weight: 600; appearance: textfield; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.pd-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 12px; border: 1px solid var(--hp-orange); border-radius: 8px; background: var(--hp-orange); color: #fff; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.pd-cta:hover { border-color: var(--hp-orange-dark); background: var(--hp-orange-dark); }
.pd-cta--alt { background: #fff; color: var(--hp-orange); }
.pd-cta--alt:hover { background: var(--hp-orange-soft); color: var(--hp-orange-dark); }
.pd-cta:disabled { border-color: #d5d9df; background: #eceef1; color: #9aa1ab; cursor: not-allowed; }

.pd-perks { display: grid; gap: 12px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--hp-line); border-radius: 10px; list-style: none; }
.pd-perks li { display: flex; gap: 12px; }
.pd-perks i { flex: none; width: 20px; margin-top: 3px; color: var(--hp-orange); text-align: center; }
.pd-perks div { min-width: 0; font-size: .875rem; line-height: 1.35; }
.pd-perks strong { display: block; font-weight: 600; color: var(--hp-ink); }
.pd-perks span { color: var(--hp-muted); font-size: .8125rem; }
.pd-perks a { color: var(--hp-muted); }
.pd-free { color: #0b7a44; font-weight: 600; }

.pd-seller { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--hp-line); border-radius: 10px; }
.pd-seller__logo { display: flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--hp-orange-soft); color: var(--hp-orange); font-weight: 800; text-decoration: none; }
.pd-seller__meta { flex: 1; min-width: 0; line-height: 1.25; }
.pd-seller__meta small { display: block; color: var(--hp-muted); font-size: .6875rem; }
.pd-seller__meta a { display: block; overflow: hidden; color: var(--hp-ink); font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.pd-seller__meta a:hover { color: var(--hp-orange); }
.pd-seller__score { flex: none; padding: 3px 8px; border-radius: 6px; background: #0b7a44; color: #fff; font-size: .8125rem; font-weight: 700; }
.pd-seller__score i { font-size: .6875rem; }
.pd-follow { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--hp-orange); border-radius: 8px; background: #fff; color: var(--hp-orange); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.pd-follow.is-on { border-color: var(--hp-line); background: var(--hp-bg); color: var(--hp-muted); }

/* Alt bölümler */
.pd-nav { position: sticky; top: var(--hp-nav-h, 0); z-index: 20; display: flex; gap: 26px; margin-top: 34px; overflow-x: auto; border-bottom: 1px solid var(--hp-line); background: #fff; scrollbar-width: none; white-space: nowrap; }
.pd-nav::-webkit-scrollbar { display: none; }
.pd-nav a { padding: 13px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--hp-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.pd-nav a:hover { color: var(--hp-ink); }
.pd-nav a.active { border-color: var(--hp-orange); color: var(--hp-orange); font-weight: 600; }
.pd-sec { padding: 26px 0; border-bottom: 1px solid var(--hp-line); scroll-margin-top: calc(var(--hp-nav-h, 0px) + 56px); }
.pd-sec h2 { margin: 0 0 14px; font-size: 1.1875rem; font-weight: 700; }
.pd-desc { max-width: 860px; color: #3f4650; font-size: .9375rem; line-height: 1.7; }
.pd-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.pd-specs div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hp-line); font-size: .875rem; }
.pd-specs dt { flex: 0 0 42%; color: var(--hp-muted); font-weight: 400; }
.pd-specs dd { margin: 0; color: var(--hp-ink); font-weight: 500; }

.pd-rev { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.pd-rev:not(:has(.pd-rev__list)) { grid-template-columns: minmax(0, 420px); }
.pd-score { display: grid; justify-items: start; gap: 2px; margin-bottom: 12px; }
.pd-score strong { font-size: 2.5rem; line-height: 1; font-weight: 800; }
.pd-score .pd-stars { font-size: 1.125rem; }
.pd-score small { color: var(--hp-muted); }
.pd-bars { display: grid; gap: 5px; margin-bottom: 14px; font-size: .75rem; color: var(--hp-muted); }
.pd-bars > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 8px; }
.pd-bars .fa-star { color: #ffb400; font-size: .625rem; }
.pd-bar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--hp-line); }
.pd-bar b { display: block; height: 100%; background: #ffb400; }
.pd-empty { padding: 4px 0 12px; color: var(--hp-muted); }
.pd-empty i { font-size: 1.5rem; }
.pd-empty p { margin: 6px 0 0; }
.pd-note { color: var(--hp-muted); }
.pd-form summary { color: var(--hp-orange); font-weight: 600; cursor: pointer; }
.pd-form .rating-stars { display: flex; gap: 6px; margin: 10px 0; }
.rating-star { color: #dfe2e6; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.rating-star.active { color: #ffb400; }
.pd-login { display: inline-block; color: var(--hp-orange); font-weight: 600; text-decoration: none; }
.pd-login:hover { text-decoration: underline; }
.pd-review { padding: 14px 0; border-bottom: 1px solid var(--hp-line); }
.pd-review:first-child { padding-top: 0; }
.pd-review:last-child { border-bottom: 0; }
.pd-review header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8125rem; }
.pd-review time { margin-left: auto; color: var(--hp-muted); }
.pd-review p { margin: 6px 0 0; color: #3f4650; font-size: .9375rem; }
.pd-qa { padding: 12px 0; border-bottom: 1px solid var(--hp-line); max-width: 860px; }
.pd-qa p { margin: 0; }
.pd-qa__q { font-weight: 600; }
.pd-qa__a { margin-top: 6px !important; padding: 8px 12px; border-radius: 8px; background: var(--hp-bg); font-size: .9375rem; }
.pd-qa__wait { margin-top: 4px !important; color: var(--hp-muted); font-size: .8125rem; }
.pd-qa small { display: block; margin-top: 6px; color: var(--hp-muted); }
.pd-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 860px; margin-top: 14px; }
.pd-ask .hp-btn { width: auto; margin: 0; white-space: nowrap; }

/* Görsel büyütme */
.lightbox-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .94); }
.lightbox-img { max-width: 92%; max-height: 90%; object-fit: contain; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox-modal.is-zoomed button, .lightbox-modal.is-zoomed .lightbox-counter { opacity: .35; }
.lightbox-modal button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.125rem; cursor: pointer; }
.lightbox-modal button:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 20px; top: calc(50% - 24px); }
.lightbox-next { right: 20px; top: calc(50% - 24px); }
.lightbox-close { top: 16px; right: 20px; }
.lightbox-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .875rem; }

/* Bildirim */
.notification { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0, 0, 0, .15); }
.notification.success { background: #e8f6ee; color: #0b7a44; }
.notification.error { background: #fdebec; color: #b4232f; }
.notification.info { background: #eef2f7; color: #334155; }

/* Geniş ekran */
@media (min-width: 992px) { .pd-page { max-width: none; padding-left: clamp(16px, 2vw, 40px); padding-right: clamp(16px, 2vw, 40px); } }

/* Tablet */
@media (max-width: 991.98px) {
  .pd-top { gap: 22px; }
  .pd-gallery { grid-template-columns: minmax(0, 1fr); }
  .pd-thumbs { order: 2; }
  .pd-thumbs__in { position: static; flex-direction: row; overflow-x: auto; }
  .pd-thumb { flex: 0 0 56px; height: 70px; }
  .pd-buy { grid-template-columns: auto minmax(0, 1fr); }
  .pd-buy .pd-cta--alt { grid-column: 1 / -1; }
  .pd-rev { grid-template-columns: minmax(0, 1fr); }
}

/* Telefon */
@media (max-width: 767.98px) {
  .pd-page { padding: 6px 12px 24px; }
  .pd-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pd-gallery { position: static; margin: 0 -12px; }
  .pd-thumbs { padding: 0 12px; }
  .pd-stage { min-height: 0; max-height: 72vh; border-radius: 0; cursor: default; touch-action: pan-y; }
  .pd-stage__nav { display: none; }
  .pd-title { font-size: 1.1875rem; }
  .pd-icon { width: 38px; height: 38px; }
  .pd-price > span { font-size: 1.625rem; }
  .pd-specs { grid-template-columns: minmax(0, 1fr); }
  .pd-nav { gap: 20px; margin: 22px -12px 0; padding: 0 12px; }
  .pd-sec { padding: 20px 0; }
  .pd-ask { grid-template-columns: minmax(0, 1fr); }
  .lightbox-prev, .lightbox-next { display: none; }
}

/* Koyu tema */
[data-theme="dark"] body { background: #14181d; }
[data-theme="dark"] .pd-icon,[data-theme="dark"] .pd-chip, [data-theme="dark"] .pd-qty button, [data-theme="dark"] .pd-follow, [data-theme="dark"] .pd-nav, [data-theme="dark"] .pd-qty input, [data-theme="dark"] .pd-cta--alt { background: #1b2026; color: #e5e7eb; }
[data-theme="dark"] .pd-title, [data-theme="dark"] .pd-specs dd, [data-theme="dark"] .pd-perks strong, [data-theme="dark"] .pd-seller__meta a, [data-theme="dark"] .pd-opt__label b { color: #fff; }
[data-theme="dark"] .pd-pricebox, [data-theme="dark"] .pd-stage { background: #232930; }
