/* Ürün detay — VipLisans Design System */
body.pd2-body { background: var(--pv-bg); color: var(--pv-ink); }
.pd2 { padding: 22px 0 80px; }
.pd2-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pd2-crumb { font-size: .82rem; color: var(--pv-subtle); margin-bottom: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd2-crumb a { color: var(--pv-muted); text-decoration: none; }
.pd2-crumb a:hover { color: var(--pv-ink); }
.pd2-crumb span { margin: 0 8px; }
.pd2-crumb b { color: var(--pv-ink); font-weight: 500; }

.pd2-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pd2-left, .pd2-right { display: grid; gap: 16px; min-width: 0; }
.pd2-left { position: sticky; top: 16px; }

/* Görsel */
.pd2-media { position: relative; padding: 20px; }
.pd2-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: var(--pv-soft); }
.pd2-disc { position: absolute; top: 34px; left: 34px; z-index: 1; background: var(--pv-o); color: #fff; font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(255,100,23,.8); }
.pd2-disc--sm { top: 10px; left: 10px; font-size: .72rem; padding: 4px 9px; }

.pd2-trust { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 8px; }
.pd2-trust div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 8px; }
.pd2-trust div + div { border-left: 1px solid var(--pv-line); }
.pd2-trust i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-o-soft); color: var(--pv-o); font-size: .88rem; margin-bottom: 8px; }
.pd2-trust b { font-size: .82rem; font-weight: 600; }
.pd2-trust span { font-size: .72rem; color: var(--pv-muted); }

/* Satın alma kutusu */
.pd2-buy { padding: 26px; }
.pd2-buy__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.pd2-rating { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--pv-muted); text-decoration: none; }
.pd2-rating b { color: var(--pv-ink); font-weight: 600; }
.pd2-rating:hover { color: var(--pv-ink); }
.pd2-stars { color: var(--pv-o); letter-spacing: 1px; font-size: .9rem; }
.pd2-stars--lg { font-size: 1.15rem; margin: 8px 0 4px; }
.pd2-star-off { color: #dcdcd8; }
.pd2-pill-out { background: #fdecea; border-color: transparent; color: #b3261e; font-weight: 600; }
.pd2-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.pd2-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.pd2-tags a.d-pill { text-decoration: none; color: var(--pv-ink); }
.pd2-tags a.d-pill:hover { background: var(--pv-soft); }

.pd2-price { padding: 18px 0; border-top: 1px dashed var(--pv-line); border-bottom: 1px dashed var(--pv-line); margin-bottom: 18px; }
.pd2-price__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.pd2-price .d-num { font-size: clamp(2.1rem, 3.4vw, 2.8rem); }
.pd2-old { color: var(--pv-subtle); font-size: 1.05rem; }

.pd2-acts { display: grid; gap: 10px; }
.pd2-cta { width: 100%; justify-content: space-between; font-size: 1rem; padding-top: 8px; padding-bottom: 8px; }
.pd2-cta .d-btn__arr { width: 40px; height: 40px; }
.pd2-cta:disabled { opacity: .6; cursor: not-allowed; justify-content: center; }
.pd2-acts__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

.pd2-notes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.pd2-notes li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: .84rem; color: var(--pv-muted); line-height: 1.5; }
.pd2-notes i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-soft); color: var(--pv-ink); font-size: .82rem; }

/* Kısa açıklama */
.pd2-clamp { position: relative; max-height: 220px; overflow: hidden; }
.pd2-clamp.is-open { max-height: none; }
.pd2-clamp:not(.is-open).has-more::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(transparent, var(--pv-card)); }
.pd2-more { margin-top: 10px; }
.pd2-prose { font-size: .93rem; line-height: 1.75; color: #3f3f3c; }
body.dark-mode .pd2-prose { color: #cfd1d6; }
.pd2-prose p { margin: 0 0 .8em; }
.pd2-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pd2-prose h1, .pd2-prose h2, .pd2-prose h3, .pd2-prose h4 { color: var(--pv-ink); font-weight: 600; letter-spacing: -.02em; margin: 1.3em 0 .5em; }
.pd2-prose ul { padding-left: 1.2em; }
.pd2-prose a { color: var(--pv-o); }
.pd2-prose table { width: 100%; border-collapse: collapse; }
.pd2-prose td, .pd2-prose th { border: 1px solid var(--pv-line); padding: 8px 10px; }

/* Sekmeler */
.pd2-sec { margin-top: 40px; scroll-margin-top: 90px; }
.pd2-seg { margin-bottom: 16px; flex-wrap: wrap; }
.pd2-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pv-soft); color: var(--pv-muted); font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.pv-seg button[aria-selected="true"] .pd2-count { background: rgba(255,255,255,.18); color: #fff; }
.pd2-panel[hidden] { display: none; }
.pd2-desc { padding: clamp(22px, 3vw, 36px); }
.pd2-desc .product-description > *:first-child { margin-top: 0; }
.pd2-guar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.pd2-guar .d-tile { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start; }
.pd2-guar i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-o-soft); color: var(--pv-o); }
.pd2-guar b { font-size: .92rem; font-weight: 600; }
.pd2-guar span { font-size: .8rem; color: var(--pv-muted); line-height: 1.5; }

/* Oyun bilgileri kutularını sisteme uydur */
.pd2-desc .gi-card { border-color: var(--pv-line); border-radius: 18px; background: var(--pv-soft); }
.pd2-desc .gi-card h3 { font-weight: 600; }
.pd2-desc .gi-banner, .pd2-desc .gi-video { border-radius: 18px; }
.pd2-desc .gi-wrap { margin-bottom: 26px; }

/* Değerlendirmeler */
.pd2-rv { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pd2-rv__sum { position: sticky; top: 16px; }
.pd2-dist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.pd2-dist li { display: grid; grid-template-columns: 34px 1fr 22px; gap: 10px; align-items: center; font-size: .78rem; color: var(--pv-muted); }
.pd2-dist i { height: 6px; border-radius: 6px; background: var(--pv-soft); overflow: hidden; }
.pd2-dist b { display: block; height: 100%; background: var(--pv-o); border-radius: inherit; }
.pd2-rv__list { display: grid; gap: 12px; }
.pd2-review p { margin: 12px 0 0; font-size: .92rem; line-height: 1.65; }
.pd2-review__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pd2-review__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pd2-review__who img, .pd2-review__who > span { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pd2-review__who > span { background: var(--pv-ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.pd2-review__who b { display: block; font-size: .9rem; font-weight: 600; }
.pd2-review__who small { font-size: .76rem; color: var(--pv-muted); }
.pd2-review__r { display: flex; align-items: center; gap: 8px; }
.pd2-dots { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--pv-soft); color: var(--pv-muted); }
.pd2-menu { border: 1px solid var(--pv-line); border-radius: 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.2); padding: 6px; }
.pd2-menu .dropdown-item { border-radius: 10px; font-size: .86rem; display: flex; gap: 10px; align-items: center; }
.pd2-empty { text-align: center; color: var(--pv-muted); padding: 40px 20px; }
.pd2-empty i { display: block; font-size: 1.6rem; color: #cfcfcb; margin-bottom: 10px; }

.pd2-form textarea { width: 100%; border: 1px solid transparent; background: var(--pv-soft); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: .93rem; color: var(--pv-ink); resize: vertical; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.pd2-form textarea:focus { background: var(--pv-card); border-color: var(--pv-o); box-shadow: 0 0 0 4px rgba(255,100,23,.12); }
.pd2-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pd2-check { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--pv-muted); cursor: pointer; }
.pd2-check input { width: 17px; height: 17px; accent-color: var(--pv-ink); }
.pd2-alert { background: #fdecea; color: #a12d22; border-radius: 12px; padding: 10px 14px; font-size: .86rem; margin-bottom: 14px; }
/* Yıldız seçimi: sağdan sola sıralı radyolar, hover'da öncekileri de boyar */
.pd2-rate { border: 0; padding: 0; margin: 0 0 14px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.pd2-rate legend { float: left; width: 100%; margin-bottom: 6px; }
.pd2-rate input { position: absolute; opacity: 0; pointer-events: none; }
.pd2-rate label { font-size: 1.8rem; line-height: 1; color: #dcdcd8; cursor: pointer; transition: color .12s ease, transform .16s var(--pv-ease); }
.pd2-rate label:active { transform: scale(.9); }
.pd2-rate input:checked ~ label, .pd2-rate label:hover, .pd2-rate label:hover ~ label { color: var(--pv-o); }
.pd2-rate input:focus-visible + label { outline: 2px solid var(--pv-o); outline-offset: 2px; border-radius: 4px; }

/* SSS */
.pd2-faq { padding: 8px 26px; }
.pd2-faq details { border-bottom: 1px solid var(--pv-line); }
.pd2-faq details:last-child { border-bottom: 0; }
.pd2-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: .96rem; cursor: pointer; }
.pd2-faq summary::-webkit-details-marker { display: none; }
.pd2-faq summary i { width: 30px; height: 30px; border-radius: 50%; background: var(--pv-soft); display: grid; place-items: center; font-size: .72rem; transition: transform .2s var(--pv-ease); flex-shrink: 0; }
.pd2-faq details[open] summary i { transform: rotate(45deg); }
.pd2-faq details > div { padding: 0 0 18px; }

/* Tanıtım bandı */
.pd2-lp { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-radius: var(--pv-r); padding: clamp(24px, 3vw, 36px); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 120% at 100% 0%, rgba(255,100,23,.5), transparent 60%), linear-gradient(135deg, #14161f 0%, #1d2030 100%); }
.pd2-lp__k { font-size: .78rem; font-weight: 600; color: var(--pv-o2); display: inline-flex; gap: 6px; align-items: center; }
.pd2-lp h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; margin: 8px 0 6px; }
.pd2-lp p { margin: 0; color: rgba(255,255,255,.6); font-size: .9rem; }

/* Benzer ürünler */
.pd2-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.pd2-h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.03em; margin: 0 0 4px; }
.pd2-arrows { display: flex; gap: 8px; }
.pd2-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--pv-line); background: var(--pv-card); color: var(--pv-ink); cursor: pointer; transition: background-color .15s ease, transform .16s var(--pv-ease); }
.pd2-arrows button:hover { background: var(--pv-soft); }
.pd2-arrows button:active { transform: scale(.94); }
.pd2-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.pd2-rail::-webkit-scrollbar { display: none; }
.pd2-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--pv-ink); padding: 14px; transition: border-color .15s ease, transform .16s var(--pv-ease); }
.pd2-card:hover { color: var(--pv-ink); border-color: #ffd2b9; }
.pd2-card:active { transform: scale(.985); }
.pd2-card__img { position: relative; display: block; }
.pd2-card__img img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: var(--pv-soft); display: block; }
.pd2-card b { font-size: .9rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pd2-card__p { display: flex; gap: 8px; align-items: baseline; margin-top: auto; }
.pd2-card__p span { font-weight: 700; font-variant-numeric: tabular-nums; }
.pd2-card__p s { color: var(--pv-subtle); font-size: .8rem; }

/* Düzenleme penceresi */
#editReviewModal .modal-content { border: 1px solid var(--pv-line); border-radius: 24px; background: var(--pv-card); }
#editReviewModal .form-select, #editReviewModal .form-control { background: var(--pv-soft) !important; border: 1px solid transparent !important; border-radius: 14px !important; box-shadow: none !important; padding: 12px 14px; }
#editReviewModal .form-select:focus, #editReviewModal .form-control:focus { border-color: var(--pv-o) !important; box-shadow: 0 0 0 4px rgba(255,100,23,.12) !important; background: var(--pv-card) !important; }
#editReviewModal .btn-warning { background: var(--pv-o); border: 0; color: #fff; border-radius: 999px; padding: 12px; }

@media (max-width: 991.98px) {
  .pd2-main { grid-template-columns: 1fr; }
  /* Mobilde sıra: görsel → satın alma → güvenceler → öne çıkanlar */
  .pd2-left, .pd2-right { display: contents; }
  .pd2-media { order: 1; } .pd2-buy { order: 2; } .pd2-trust { order: 3; } .pd2-short { order: 4; }
  .pd2-rv { grid-template-columns: 1fr; }
  .pd2-rv__sum { position: static; }
  .pd2-guar { grid-template-columns: 1fr; }
  .pd2-rail { grid-auto-columns: 45%; }
}
@media (max-width: 575.98px) {
  .pd2-wrap { padding: 0 14px; }
  .pd2-trust { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .pd2-trust div:nth-child(3) { border-left: 0; }
  .pd2-buy { padding: 20px; }
  .pd2-rail { grid-auto-columns: 62%; }
  .pd2-seg { width: 100%; }
  .pd2-seg button { flex: 1; justify-content: center; padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd2-card, .pd2-arrows button, .pd2-rate label, .pd2-faq summary i { transition: none; }
}

/* Ürün rozetleri — görselin sağ üst köşesi (admin'den eklenen rozet görselleri) */
.pd2-media .product-badges-img { top: 34px; right: 34px; z-index: 2; }
@media (max-width: 576px) { .pd2-media .product-badges-img { top: 28px; right: 28px; } }

/* ── Satın alma butonları (çark "Çarkı çevir" butonuyla aynı tarz) ── */
.pd2-acts__row { grid-template-columns: 1fr; }
.pd2-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 1rem; font-weight: 700; color: #fff; padding: 16px 20px; border-radius: 999px;
  transition: transform .16s var(--pv-ease), background-color .15s ease, box-shadow .16s var(--pv-ease); }
.pd2-cta i { font-size: 1.05em; }
.pd2-cta:hover { color: #fff; }
.pd2-cta:active:not(:disabled) { transform: scale(.98); }
.pd2-cta:focus-visible { outline: 2px solid var(--pv-ink); outline-offset: 3px; }
.pd2-cart { background: var(--pv-o); box-shadow: 0 10px 24px -10px rgba(255,100,23,.8); }
.pd2-cart:hover { background: #f05a0e; }
.pd2-wa { background: #22c55e; box-shadow: 0 10px 24px -10px rgba(22,163,74,.8); }
.pd2-wa i { font-size: 1.2em; }
.pd2-wa:hover { background: #16a34a; }
.pd2-cta:disabled { background: var(--pv-soft); color: var(--pv-muted); box-shadow: none; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .pd2-cta { transition: none; } }
