/* İlan detay sayfası */

.page-listing .crumbs { margin-bottom: 16px; }

.pdp { display: grid; gap: 16px; }

/* Galeri: mobilde parmakla kaydırılır, masaüstünde küçük resimlerle seçilir */
.gallery { position: relative; padding: 12px; overflow: hidden; }
.gallery__badge { position: absolute; left: 22px; top: 22px; z-index: 2; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); background: #fff; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; scroll-snap-align: center; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__count { position: absolute; right: 22px; top: 22px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(17, 17, 17, .75); color: #fff; font-size: 12px; font-weight: 700; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button { flex: none; width: 68px; height: 68px; padding: 4px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.gallery__thumbs button.is-on { border-color: var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery__empty { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 10px; border-radius: var(--r); background: var(--page); color: #a7abb3; font-weight: 600; }
.gallery__empty .icon { width: 56px; height: 56px; stroke-width: 1.2; }

/* Bilgi sütunu */
.pinfo { min-width: 0; }
.pinfo__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.pinfo__top .pill { text-decoration: none; }
.pinfo__title { font-size: 22px; line-height: 1.3; font-weight: 700; }
.pinfo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: 13px; }
.pinfo__rating { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.pinfo__oem { color: var(--muted); }
.pinfo__oem strong { color: var(--ink); }
.pinfo__fit { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.pinfo__fit .icon { width: 18px; height: 18px; color: var(--red); stroke-width: 2.4; }

.stars { display: inline-flex; gap: 1px; }
.stars .icon { width: 16px; height: 16px; color: #D5D8DE; }
.stars .icon.is-on { color: var(--red); }
.stars--lg .icon { width: 22px; height: 22px; }
.stars--sm .icon { width: 13px; height: 13px; }

.buybox { margin-top: 16px; padding: 18px; }
.buybox__price { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.buybox__stock { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.buybox__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.buybox__stock.is-out { color: var(--red); }
.buybox__stock.is-out::before { background: var(--red); }
.buybox__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.buybox__main { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.btn--wa { background: var(--card); border-color: var(--ink); }
.btn--wa:hover { background: var(--ink); color: #fff; }
.buybox__phone { margin: 12px 0 0; font-size: 14px; text-align: center; }
.buybox__phone a { font-weight: 800; color: var(--ink); }
.buybox__login { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.buybox__login .icon { width: 18px; height: 18px; color: var(--red); }
.buybox__login a { color: var(--red); font-weight: 700; }
.buybox__tools { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.buybox__tools form { margin: 0; flex: 1; }
.tool { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; list-style: none; }
.tool::-webkit-details-marker { display: none; }
.tool .icon { width: 18px; height: 18px; }
.tool:hover { border-color: var(--ink); }
.tool.is-on { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.tool.is-on .icon { fill: currentColor; }
.buybox__tools > .tool { flex: 1; }
.share { position: relative; flex: 1; }
.share__menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; min-width: 210px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.share__menu a, .share__menu button { padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }
.share__menu a:hover, .share__menu button:hover { background: var(--page); color: var(--red); }

.sellerbox { margin-top: 12px; padding: 18px; }
.sellerbox__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sellerbox__avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; }
.sellerbox__avatar .icon { width: 22px; height: 22px; }
.sellerbox__who { display: grid; gap: 2px; min-width: 180px; flex: 1; font-size: 13px; }
.sellerbox__who strong { font-size: 16px; color: var(--ink); }
.sellerbox__loc { display: flex; align-items: center; gap: 4px; }
.sellerbox__who a { color: var(--red); font-weight: 700; }
.sellerbox__locked { color: var(--muted) !important; }
.sellerbox__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.sellerbox__stats div { padding: 10px; border-radius: var(--r-sm); background: var(--page); }
.sellerbox__stats dt { font-size: 11.5px; color: var(--muted); }
.sellerbox__stats dd { margin: 2px 0 0; font-size: 13px; }

.tips { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tips li { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tips .icon { width: 18px; height: 18px; color: var(--red); }

/* Alt bloklar */
.pdp__more { display: grid; gap: 16px; margin-top: 16px; }
.block { padding: 20px; }
.block__title { font-size: 19px; margin-bottom: 14px; }
.block__text { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

.reviews { margin-top: 16px; }
.reviews__grid { display: grid; gap: 20px; }
.rsum { text-align: center; padding: 18px; border-radius: var(--r); background: var(--page); }
.rsum__avg { font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.rsum > p.muted { margin: 6px 0 12px; }
.rsum__dist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rsum__dist li { display: grid; grid-template-columns: 14px 14px 1fr 24px; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.rsum__dist .icon { width: 13px; height: 13px; color: var(--red); }
.rsum__bar { height: 8px; border-radius: 4px; background: #E3E5EA; overflow: hidden; }
.rsum__bar i { display: block; height: 100%; background: var(--red); }
.rlist { display: grid; gap: 12px; align-content: start; }
.rform { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.rform h3 { font-size: 15px; }
.rform .btn { justify-self: start; }
.starsel { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 0; padding: 0; border: 0; }
.starsel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starsel label { cursor: pointer; color: #D5D8DE; }
.starsel label .icon { width: 30px; height: 30px; }
.starsel label:hover, .starsel label:hover ~ label, .starsel input:checked ~ label { color: var(--red); }
.starsel input:focus-visible + label { outline: 2px solid var(--red); border-radius: 4px; }
.rlist__login { margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--page); font-size: 14px; }
.rlist__login a { color: var(--red); font-weight: 700; }
.rlist__empty { display: grid; justify-items: center; gap: 6px; padding: 26px 10px; color: var(--muted); text-align: center; }
.rlist__empty .icon { width: 32px; height: 32px; color: #C5C9D0; }
.rlist__empty p { margin: 0; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.review header time { margin-left: auto; font-size: 12px; }
.review p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .buybox__ctas { grid-template-columns: 1fr 1fr; }
  .pgrid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .gallery { position: sticky; top: 16px; padding: 16px; }
  .gallery__badge { left: 28px; top: 28px; }
  .gallery__count { right: 28px; top: 28px; }
  .pinfo__title { font-size: 26px; }
  .buybox { padding: 22px; }
  .buybox__price { font-size: 38px; }
  .pdp__more { grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
  .reviews { margin-top: 24px; }
  .reviews__grid { grid-template-columns: 260px 1fr; gap: 28px; }
  .block { padding: 26px; }
  .pgrid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
  .pgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
