/* صفحه‌ی جزئیات محصول: مینیمال، دو ستونه، با برگه‌ها و متن جمع‌شونده. فقط transform/opacity انیمیت می‌شود. */
.pp { color: #e9e7f5; padding: 120px 0 80px; line-height: 1.9; }
.pp a { text-decoration: none; }
.pp__wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.pp__crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: #a9a4c4; margin-bottom: 22px; }
.pp__crumb a { color: #a9a4c4; } .pp__crumb a:hover { color: #fff; } .pp__crumb i { font-size: 10px; opacity: .6; } .pp__crumb span { color: #fff; }

.pp__hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; animation: pp-in .55s both; }
@keyframes pp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* گالری */
.pp__gallery, .pp__gallery.product-image { position: sticky; top: 100px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; height: auto; border-radius: 0; }
.pp__gallery .details-list { border-radius: 22px; overflow: hidden; background: #17152a; border: 1px solid rgba(255,255,255,.1); aspect-ratio: 10 / 7; margin: 0 0 12px; }
.pp__gallery .details-list .swiper-slide { height: 100%; }
.pp__gallery .details-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__gallery .details-main { height: 66px; }
.pp__gallery .details-main .swiper-slide { width: 88px !important; height: 66px; border-radius: 12px; overflow: hidden; opacity: .5; cursor: pointer; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.pp__gallery .details-main .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.pp__gallery .details-main .swiper-slide-thumb-active, .pp__gallery .details-main .swiper-slide:hover { opacity: 1; border-color: #7b5cff; }
.pp__gallery .swiper-button-next, .pp__gallery .swiper-button-prev { width: 38px; height: 38px; border-radius: 50%; background: rgba(15,13,32,.7); color: #fff; backdrop-filter: blur(4px); }
.pp__gallery .swiper-button-next::after, .pp__gallery .swiper-button-prev::after { font-size: 14px; font-weight: 800; }

/* اطلاعات */
.pp__tag { display: inline-block; padding: 3px 14px; border-radius: 99px; background: rgba(123,92,255,.18); color: #bdaeff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.pp__title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; line-height: 1.5; color: #fff; margin: 0 0 12px; }
.pp__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #a9a4c4; font-size: 14px; margin-bottom: 14px; }
.pp__stars { color: #fbbf24; } .pp__stars b { color: #e9e7f5; font-weight: 700; }
.pp__dot { width: 4px; height: 4px; border-radius: 50%; background: #5d5880; }
.pp__spacer { flex: 1; }
.pp__like button, .pp__share { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #cfcbe6; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.pp__like button:hover, .pp__share:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.pp__like button.is-on { color: #f87171; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); }
.pp__summary { color: #cfcbe6; font-size: 16px; margin: 0 0 16px; }
.pp .vs-buy { margin: 6px 0 16px; }
.pp__facts { display: grid; gap: 0; margin: 0 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; }
.pp__facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.pp__facts div:last-child { border-bottom: 0; }
.pp__facts dt { color: #8f8aab; font-weight: 600; font-size: 14px; } .pp__facts dd { margin: 0; color: #e9e7f5; font-size: 14.5px; }
.pp__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 12px; color: #a9a4c4; font-size: 13.5px; }
.pp__trust i { color: #7ee2b8; margin-inline-end: 6px; }
.pp__ask { color: #ad99ff; font-size: 14px; font-weight: 700; } .pp__ask:hover { color: #fff; } .pp__ask i { font-size: 11px; margin-inline-start: 4px; }
.pp__video { margin-top: 36px; border-radius: 20px; overflow: hidden; } .pp__video video { width: 100%; display: block; }

/* برگه‌ها */
.pp__tabs { margin-top: 56px; }
.pp__tabbar { display: flex; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.pp__tabbar button { position: relative; padding: 12px 22px; border: 0; background: transparent; color: #a9a4c4; font: 700 16px inherit; cursor: pointer; white-space: nowrap; transition: color .2s; }
.pp__tabbar button::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #7b5cff, #22d3ee); transform: scaleX(0); transition: transform .25s; }
.pp__tabbar button.on { color: #fff; } .pp__tabbar button.on::after { transform: scaleX(1); } .pp__tabbar button:hover { color: #fff; }
.pp__pane { display: none; } .pp__pane.on { display: block; animation: pp-in .35s both; }

.pp__prose { max-width: 820px; font-size: 16.5px; color: #d8d4ee; }
.pp__prose.is-clamped { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pp__prose h4 { font-size: 21px; font-weight: 800; color: #fff; margin: 30px 0 10px; position: relative; padding-inline-start: 14px; }
.pp__prose h4::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 4px; background: linear-gradient(#7b5cff, #22d3ee); }
.pp__prose h4:first-child { margin-top: 0; }
.pp__prose h5 { font-size: 17px; font-weight: 700; color: #e9e7f5; margin: 20px 0 6px; }
.pp__prose p { margin: 0 0 12px; } .pp__prose ul, .pp__prose ol { padding-inline-start: 22px; margin: 0 0 14px; } .pp__prose li { margin-bottom: 5px; }
.pp__prose a { color: #ad99ff; text-decoration: underline; text-underline-offset: 3px; }
.pp__more { margin-top: 10px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; padding: 10px 22px; border-radius: 12px; font: 700 15px inherit; cursor: pointer; transition: background .2s; }
.pp__more:hover { background: rgba(255,255,255,.08); } .pp__more[hidden] { display: none; }

.pp__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp__spec { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px 18px; }
.pp__spec.is-wide { grid-column: 1 / -1; }
.pp__spec h4 { font-size: 14px; font-weight: 700; color: #8f8aab; margin: 0 0 6px; } .pp__spec p { margin: 0; color: #e9e7f5; font-size: 15.5px; }
.pp__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 0; }
.pp__chips li { padding: 5px 13px; border-radius: 99px; background: rgba(123,92,255,.14); border: 1px solid rgba(123,92,255,.25); color: #cfc5fc; font-size: 13.5px; line-height: 1.7; }

.pp__review { max-width: 640px; display: grid; gap: 10px; margin-bottom: 30px; }
.pp__review h3 { font-size: 18px; font-weight: 800; color: #fff; margin: 0; }
.pp__review input, .pp__review textarea { width: 100%; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #fff; padding: 11px 14px; font: inherit; }
.pp__review input:focus, .pp__review textarea:focus { outline: 0; border-color: #7b5cff; box-shadow: 0 0 0 3px rgba(123,92,255,.25); }
.pp__review p { margin: 0; font-size: 14px; color: #fca5a5; } #notifMessage { color: #6ee7b7 !important; }
.pp__review .vs-btn { justify-self: start; }

/* محصولات مرتبط */
.pp__related { margin-top: 64px; } .pp__related h2 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.pp__rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pp__rcard { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #e9e7f5; transition: transform .25s, border-color .25s; }
.pp__rcard:hover { transform: translateY(-4px); border-color: rgba(123,92,255,.7); }
.pp__rcard img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.pp__rcard b { display: block; color: #fff; font-size: 15.5px; line-height: 1.6; } .pp__rcard span { color: #7ee2b8; font-size: 14px; font-weight: 700; }

@media (max-width: 900px) { .pp__hero { grid-template-columns: minmax(0, 1fr); gap: 22px; } .pp__gallery, .pp__gallery.product-image { position: static; top: auto; } .pp__specs { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .pp { padding-top: 100px; } .pp__facts div { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .pp__hero, .pp__pane.on { animation: none; } }

.pp__hero > * { min-width: 0; } .pp__gallery .swiper { max-width: 100%; }

/* موبایل: گالری sticky نیست (قبلاً قاعده‌ی .product-image قوی‌تر بود و روی متن می‌افتاد) و نوار بندانگشتی هم‌پوشانی ندارد */
@media (max-width: 900px) {
  .pp__gallery .details-list { height: auto; aspect-ratio: 4 / 3; margin-bottom: 10px; }
  .pp__gallery .details-main { height: 62px; margin-top: 0; }
  .pp__gallery .details-main .swiper-slide { width: 82px !important; height: 62px; }
  .pp__gallery .details-main .swiper-slide-thumb-active { transform: none; }
}
