/* Pangereh — product page */
.pp { --a: #0f766e; --a2: #115e59; --tx: #0f172a; --mu: #64748b; --ln: #e2e8f0; --bg: #fff; --bg2: #f8fafc; --soft: color-mix(in srgb, var(--a) 9%, transparent);
    padding-top: 18px; padding-bottom: 60px; color: var(--tx); direction: rtl; }
html.dark .pp { --tx: #e2e8f0; --mu: #94a3b8; --ln: #334155; --bg: #1e293b; --bg2: #0f172a; }
.pp * { box-sizing: border-box; }
.pp a { color: inherit; }
.pp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; color: var(--mu); font-size: 12.5px; }
.pp-crumbs a { text-decoration: none; } .pp-crumbs a:hover { color: var(--a); } .pp-crumbs b { color: var(--tx); font-weight: 600; }
.pp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: start; margin-bottom: 28px; }
.pp-gallery { position: sticky; top: 90px; }
.pp-main { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--ln); border-radius: 24px; background: var(--bg2); }
.pp-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .4s; }
.pp-main:hover img { transform: scale(1.02); }
.pp-ph { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; font-size: 80px; font-weight: 900; }
.pp-off { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 13px; font-weight: 800; }
.pp-demo-float { position: absolute; bottom: 14px; left: 14px; padding: 9px 16px; border-radius: 12px; background: rgba(15, 23, 42, .78); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; backdrop-filter: blur(4px); }
.pp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pp-thumbs button { flex: none; width: 76px; height: 58px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: var(--bg2); cursor: pointer; opacity: .7; }
.pp-thumbs button.is-on { border-color: var(--a); opacity: 1; }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-badges span { padding: 4px 11px; border-radius: 99px; background: var(--bg2); color: var(--mu); font-size: 12px; font-weight: 700; }
.pp-kind.is-web_tools { background: rgba(37, 99, 235, .1) !important; color: #1d4ed8 !important; }
.pp-kind.is-license { background: rgba(124, 58, 237, .1) !important; color: #6d28d9 !important; }
.pp-kind.is-files { background: rgba(234, 88, 12, .1) !important; color: #c2410c !important; }
.pp-info h1 { margin: 12px 0 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.6; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--mu); font-size: 13px; }
.pp-meta a { color: var(--a); text-decoration: none; font-weight: 700; }
.pp-stars b { color: #f59e0b; }
.pp-lead { margin: 14px 0 0; color: var(--mu); font-size: 14.5px; line-height: 2.1; }
.pp-lead p { margin: 0; }
.pp-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; padding: 0; list-style: none; }
.pp-feats li { padding: 10px 12px; border: 1px solid var(--ln); border-radius: 12px; background: var(--bg); font-size: 13px; font-weight: 600; }
.pp-feats small { color: var(--mu); font-weight: 500; }
.pp-buy { padding: 20px; border: 1px solid var(--ln); border-radius: 22px; background: var(--bg); box-shadow: 0 14px 40px rgba(15, 23, 42, .06); }
.pp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.pp-price del { color: var(--mu); font-size: 15px; }
.pp-price strong { font-size: 30px; font-weight: 900; }
.pp-price span { color: var(--mu); font-size: 14px; }
.pp-stock { margin-top: 6px; font-size: 13px; font-weight: 700; }
.pp-stock.is-ok { color: #15803d; } .pp-stock.is-bad { color: #dc2626; }
.pp-owned { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); color: var(--a2) !important; font-size: 13px; font-weight: 800; text-decoration: none; }
.pp-form { display: flex; gap: 8px; margin-top: 14px; }
.pp-qty { width: 84px; height: 52px; border: 1.5px solid var(--ln); border-radius: 14px; background: var(--bg2); color: var(--tx); font: inherit; font-size: 16px; text-align: center; }
.pp-btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff !important; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.pp-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pp-btn:disabled { background: var(--ln); color: var(--mu) !important; cursor: not-allowed; transform: none; }
.pp-btn.is-ghost { height: 44px; border: 1.5px solid var(--ln); background: var(--bg); color: var(--tx) !important; font-size: 13.5px; }
.pp-actions { display: flex; gap: 8px; margin-top: 8px; }
.pp-actions:empty { display: none; }
.pp-trust { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ln); color: var(--mu); font-size: 12px; }
.pp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.pp-tabs { position: sticky; top: 64px; z-index: 5; display: flex; gap: 4px; margin-bottom: 14px; padding: 6px; overflow-x: auto; border: 1px solid var(--ln); border-radius: 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.pp-tabs a { flex: none; padding: 9px 14px; border-radius: 11px; color: var(--mu); font-size: 13px; font-weight: 700; text-decoration: none; }
.pp-tabs a.is-on { background: var(--soft); color: var(--a); }
.pp-card { margin-bottom: 16px; padding: 22px; border: 1px solid var(--ln); border-radius: 20px; background: var(--bg); scroll-margin-top: 130px; }
.pp-card h2 { margin: 0 0 14px; font-size: 18px; font-weight: 900; }
.pp-card h3 { margin: 16px 0 8px; font-size: 15px; }
.pp-card p { line-height: 2.1; }
.pp-rich { font-size: 15px; line-height: 2.2; overflow-wrap: anywhere; }
.pp-rich img { max-width: 100%; height: auto; border-radius: 14px; }
.pp-rich h2, .pp-rich h3 { margin: 1.4em 0 .5em; }
.pp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--ln); border-radius: 14px; }
.pp-spec div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--ln); }
.pp-spec div:nth-child(odd) { border-left: 1px solid var(--ln); }
.pp-spec dt { color: var(--mu); font-size: 13px; } .pp-spec dd { margin: 0; font-size: 13.5px; font-weight: 700; text-align: left; }
.pp-req { margin: 0; padding-right: 20px; line-height: 2.1; }
.pp-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pp-file { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--ln); border-radius: 14px; background: var(--bg2); }
.pp-file-ico { font-size: 22px; } .pp-file b { display: block; font-size: 13.5px; } .pp-file small { color: var(--mu); font-size: 12px; }
.pp-muted { color: var(--mu); font-size: 13px; }
.pp-log { padding: 14px 16px; border-radius: 14px; background: var(--bg2); font-size: 13.5px; line-height: 2.1; }
.pp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.pp-plans div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--ln); border-radius: 14px; text-align: center; }
.pp-plans span { color: var(--mu); font-size: 12.5px; } .pp-plans strong { color: var(--a); font-size: 17px; }
.pp-rsum { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ln); }
.pp-ravg { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pp-ravg b { font-size: 40px; font-weight: 900; } .pp-ravg span { color: #f59e0b; letter-spacing: 2px; } .pp-ravg small { color: var(--mu); }
.pp-rbars div { display: grid; grid-template-columns: 40px 1fr 30px; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.pp-rbars i { height: 7px; overflow: hidden; border-radius: 99px; background: var(--bg2); } .pp-rbars i b { display: block; height: 100%; background: #f59e0b; }
.pp-review { padding: 12px 0; border-bottom: 1px solid var(--ln); }
.pp-review > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.pp-review small { margin-inline-start: auto; color: var(--mu); }
.pp-review p { margin: 6px 0 0; font-size: 14px; }
.pp-verified { padding: 1px 8px; border-radius: 99px; background: rgba(22, 163, 74, .1); color: #15803d; font-size: 11px; font-weight: 700; }
.pp-rstars { color: #f59e0b; }
.pp-side { position: sticky; top: 90px; }
.pp-sum ul { margin: 0 0 14px; padding: 0; list-style: none; }
.pp-sum li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--ln); font-size: 13px; }
.pp-sum li span { color: var(--mu); }
.pp-side-price { margin-bottom: 10px; font-size: 20px; font-weight: 900; text-align: center; }
.pp-sum .pp-btn { width: 100%; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-tags a { padding: 4px 10px; border-radius: 99px; background: var(--bg2); color: var(--mu); font-size: 12.5px; text-decoration: none; }
.pp-related h2 { margin: 30px 0 14px; font-size: 20px; font-weight: 900; }
.pp-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pp-rel { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--ln); border-radius: 18px; background: var(--bg); text-decoration: none; transition: .2s; }
.pp-rel:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, .08); }
.pp-rel-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--bg2); }
.pp-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-rel-img i { display: grid; place-items: center; height: 100%; color: var(--mu); font-size: 32px; font-style: normal; }
.pp-rel b { font-size: 14px; line-height: 1.7; } .pp-rel span { color: var(--a); font-size: 13px; font-weight: 800; }
.pp-sticky { display: none; }
.pp-lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 23, .9); cursor: zoom-out; }
.pp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; }
@media (max-width: 1000px) {
    .pp-hero, .pp-body { grid-template-columns: 1fr; }
    .pp-gallery, .pp-side { position: static; }
    .pp-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pp-feats, .pp-spec { grid-template-columns: 1fr; }
    .pp-spec div:nth-child(odd) { border-left: 0; }
    .pp-rsum { grid-template-columns: 1fr; }
    .pp-card { padding: 16px; border-radius: 16px; }
    .pp-sticky { position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ln, #e2e8f0); background: var(--bg, #fff); box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
    .pp-sticky div { flex: 1; min-width: 0; } .pp-sticky small { display: block; overflow: hidden; color: #64748b; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; } .pp-sticky b { font-size: 15px; }
    .pp-sticky .pp-btn { flex: none; height: 46px; }
    .pp { padding-bottom: 90px; }
}
