/* صفحة منتج — Digital / Gaming / RTL */
.store-main--product-detail {
    position: relative;
}

.pd-page {
    position: relative;
    isolation: isolate;
    color: #e2e8f0;
    padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
    .pd-page {
        padding-bottom: 1.5rem;
    }
}

.pd-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(234, 88, 12, 0.12), transparent 50%),
        radial-gradient(circle at 10% 40%, rgba(56, 189, 248, 0.08), transparent 45%),
        linear-gradient(180deg, #05060f 0%, #0a0b1e 40%, #04050c 100%);
}

.pd-container {
    width: min(1200px, 100% - 1.5rem);
    margin-inline: auto;
}

.pd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.pd-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.pd-breadcrumb a:hover {
    color: #fb923c;
}

.pd-breadcrumb__sep {
    opacity: 0.5;
    user-select: none;
}

.pd-layout {
    display: grid;
    gap: 1.25rem;
    direction: ltr;
}

@media (min-width: 1024px) {
    .pd-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
        gap: 1.5rem;
    }
}

.pd-main {
    min-width: 0;
}

.pd-hero__banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(234, 88, 12, 0.08);
    background: rgba(15, 23, 42, 0.5);
}

.pd-hero__banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(56vh, 520px);
    object-fit: contain;
    cursor: zoom-in;
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.35), #030712);
}

.pd-hero__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, transparent 40%, rgba(56, 189, 248, 0.06) 60%, transparent 80%);
    mix-blend-mode: screen;
}

.pd-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.pd-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pd-thumb.is-active {
    border-color: rgba(251, 146, 60, 0.65);
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}

.pd-thumb img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.pd-intro {
    margin-top: 1rem;
}

.pd-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.pd-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #94a3b8;
}

.pd-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.pd-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(22, 23, 45, 0.55);
}

.pd-features__ic {
    font-size: 1rem;
}

.pd-section-title {
    margin: 1.25rem 0 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.pd-only-mobile {
    display: block;
}

.pd-only-desktop {
    display: none;
}

@media (min-width: 1024px) {
    .pd-only-mobile {
        display: none;
    }

    .pd-only-desktop {
        display: block;
    }
}

.pd-packages-scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
}

.pd-packages-scroll .pd-pkg {
    flex: 0 0 min(82vw, 280px);
    scroll-snap-align: start;
}

.pd-packages-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pd-pkg__select {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    text-align: start;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(22, 23, 45, 0.65);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pd-pkg.is-selected .pd-pkg__select {
    border-color: rgba(251, 146, 60, 0.65);
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.22), inset 0 0 0 1px rgba(251, 146, 60, 0.15);
    background: rgba(234, 88, 12, 0.12);
}

.pd-pkg__badge {
    position: absolute;
    top: 6px;
    inset-inline-start: 8px;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.35);
    color: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.45);
}

.pd-pkg__img-wrap {
    grid-row: span 2;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.pd-pkg__img-wrap img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.pd-pkg__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pd-pkg__name {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.pd-pkg__sub {
    font-size: 0.72rem;
    color: #94a3b8;
}

.pd-pkg__prices {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.2rem;
}

.pd-hero-prices {
    margin: 0.75rem 0 0.35rem;
}

.pd-order__price-wrap,
.pd-sticky__totals {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pd-pkg__price {
    font-size: 1.05rem;
    color: #fb923c;
}

.pd-pkg__old {
    font-size: 0.75rem;
    color: #64748b;
}

.pd-pkg__gift {
    font-size: 0.72rem;
    color: #4ade80;
    font-weight: 700;
}

.pd-pkg__check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 900;
    border: 2px solid rgba(148, 163, 184, 0.25);
    color: transparent;
}

.pd-pkg.is-selected .pd-pkg__check {
    border-color: #fb923c;
    color: #fb923c;
    background: rgba(234, 88, 12, 0.2);
}

.pd-details {
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.15);
    background: rgba(22, 23, 45, 0.45);
    overflow: hidden;
}

.pd-details__summary {
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 800;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pd-details__summary::-webkit-details-marker {
    display: none;
}

.pd-details__body {
    padding: 0 1rem 1rem;
}

.pd-details__icon {
    font-size: 1.2rem;
}

.pd-hint {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
}

.pd-link-muted {
    color: #38bdf8;
    text-decoration: none;
}

.pd-form-grid {
    display: grid;
    gap: 0.75rem;
}

.pd-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pd-field__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
}

.pd-field abbr {
    color: #f87171;
    text-decoration: none;
}

.pd-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(10, 11, 30, 0.85);
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.88rem;
}

.pd-input:focus {
    outline: 2px solid rgba(56, 189, 248, 0.45);
    outline-offset: 1px;
}

.pd-field__help {
    font-size: 0.72rem;
    color: #64748b;
}

.pd-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-top: 0.25rem;
}

.pd-trust-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.pd-aside {
    position: sticky;
    top: 5.5rem;
}

.pd-aside-block {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background: rgba(22, 23, 45, 0.55);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.pd-aside-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.pd-order__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.pd-order__line strong {
    font-size: 1.35rem;
    font-weight: 900;
    color: #fb923c;
}

.pd-order__bonus {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: #4ade80;
    font-weight: 700;
}

.pd-tag-gift {
    margin-inline-end: 0.25rem;
}

.pd-pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.pd-pay-icons__item img {
    display: block;
    border-radius: 8px;
    opacity: 0.92;
}

.pd-aside-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

@media (max-width: 1023px) {
    .pd-aside-actions--desktop {
        display: none;
    }

    .pd-aside-block.pd-order {
        display: none;
    }

    .pd-aside {
        position: static;
        top: auto;
    }
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0 1.1rem;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pd-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.pd-btn--primary {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
}

.pd-btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(234, 88, 12, 0.45);
}

.pd-btn--ghost {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}

.pd-btn--block {
    width: 100%;
}

.pd-sticky {
    position: fixed;
    inset-inline: 0;
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 55;
    padding: 0.55rem 0.75rem 0.65rem;
    background: rgba(8, 10, 22, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(251, 146, 60, 0.28);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
}

@media (min-width: 900px) {
    .pd-sticky {
        display: none;
    }
}

.pd-sticky__inner {
    width: min(1200px, 100%);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pd-sticky__inner--dual {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
}

.pd-sticky__actions {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 0.5rem;
}

.pd-sticky__actions .pd-btn {
    min-height: 44px;
    font-size: 0.82rem;
    padding-inline: 0.65rem;
}

.pd-sticky__price {
    flex: 1;
    min-width: 0;
}

.pd-sticky__muted {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
}

.pd-sticky__price strong {
    font-size: 1.2rem;
    color: #fb923c;
}

.pd-field__lookup {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #4ade80;
    min-height: 1.2em;
}

@media (prefers-reduced-motion: reduce) {
    .pd-btn,
    .pd-pkg__select,
    .pd-thumb {
        transition: none !important;
    }
}

.pd-mobile-checkout {
    margin-top: 1.15rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    background: rgba(15, 23, 42, 0.72);
    display: grid;
    gap: 0.85rem;
}

.pd-mobile-checkout__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pd-mobile-checkout__label {
    font-weight: 800;
    color: #f8fafc;
    font-size: 0.92rem;
    line-height: 1.45;
}

.pd-mobile-checkout__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.pd-mobile-checkout__prices strong {
    font-size: 1.15rem;
    color: #fb923c;
}

.pd-mobile-checkout__actions {
    display: grid;
    gap: 0.55rem;
}

.pd-pay-icons--compact {
    margin-top: 0;
    gap: 0.35rem;
}

.pd-desc-wrap {
    margin-top: 2.25rem;
}

.pd-desc-accordions {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.65rem;
}

.pd-accordion {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.65);
    overflow: hidden;
}

.pd-accordion__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    cursor: pointer;
    font-weight: 800;
    color: #f8fafc;
    user-select: none;
}

.pd-accordion__summary::-webkit-details-marker {
    display: none;
}

.pd-accordion__title {
    font-size: 0.95rem;
}

.pd-accordion__chev {
    width: 0.55rem;
    height: 0.55rem;
    border-inline-end: 2px solid #94a3b8;
    border-block-end: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pd-accordion[open] .pd-accordion__chev {
    transform: rotate(-135deg);
}

.pd-accordion__body {
    padding: 0 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.pd-accordion__body.pd-prose {
    font-size: 0.92rem;
    line-height: 1.75;
}

.pd-desc-head {
    margin-bottom: 0.95rem;
}

.pd-desc-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 900;
    color: #f8fafc;
}

.pd-desc-lead.muted {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #94a3b8;
    font-weight: 600;
}

.pd-desc-card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: radial-gradient(circle at 20% -10%, rgba(124, 58, 237, 0.12), rgba(10, 14, 32, 0.78));
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(124, 58, 237, 0.08);
    padding: clamp(1rem, 2.5vw, 1.6rem);
}

.pd-prose {
    direction: rtl;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.9;
}

.pd-prose :first-child {
    margin-top: 0;
}

.pd-prose :last-child {
    margin-bottom: 0;
}

.pd-prose h1 {
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    margin: 1.4rem 0 0.6rem;
    color: #f8fafc;
}

.pd-prose h2,
.pd-prose h3 {
    margin: 1.15rem 0 0.5rem;
    color: #f1f5f9;
    font-weight: 900;
}

.pd-prose p {
    margin: 0.65rem 0;
}

.pd-prose a {
    color: #93c5fd;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.pd-prose img,
.pd-prose video {
    max-width: min(760px, 100%);
    height: auto;
    border-radius: 16px;
    margin: 0.75rem 0;
    display: block;
}

.pd-prose iframe {
    width: min(760px, 100%);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    margin: 0.85rem 0;
}

.pd-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.95rem 0;
    overflow: hidden;
    border-radius: 12px;
}

.pd-prose th,
.pd-prose td {
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 0.55rem 0.65rem;
    vertical-align: top;
}

.pd-prose thead th {
    background: rgba(30, 41, 59, 0.8);
}

.pd-prose ul,
.pd-prose ol {
    margin: 0.55rem 0;
    padding-inline-start: 1.25rem;
}

.pd-lightbox {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
}

.pd-lightbox::backdrop {
    background: rgba(2, 6, 23, 0.78);
}

.pd-lightbox__inner {
    display: grid;
    place-items: center;
    width: min(96vw, 1100px);
    max-height: 92vh;
}

.pd-lightbox__inner img {
    max-width: 100%;
    max-height: min(92vh, 840px);
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.62),
        0 0 60px rgba(124, 58, 237, 0.2);
}

.pd-gallery-lb__wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: min(96vw, 1100px);
    max-height: 92vh;
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.pd-gallery-lb__btn {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    margin: 0;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
}

.pd-gallery-lb__btn:hover {
    background: rgba(124, 58, 237, 0.92);
}

.pd-gallery-lb__btn:focus-visible {
    outline: 2px solid rgba(196, 181, 253, 0.95);
    outline-offset: 3px;
}

.pd-gallery-lb__close {
    top: 0.25rem;
    inset-inline-end: 0.35rem;
}

.pd-gallery-lb__prev {
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: max(2%, 0.35rem);
}

.pd-gallery-lb__next {
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: max(2%, 0.35rem);
}

.pd-gallery-lb__count {
    position: absolute;
    bottom: -0.35rem;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
}

.pd-condition {
    margin: 0 0 0.35rem;
}

.pd-condition__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cffafe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.pd-video-strip {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .pd-video-strip {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

.pd-video-strip__vid {
    width: 100%;
    border-radius: 14px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.22);
}
