/* ==========================================================================
   تنسيقات صفحة تفاصيل المنتج / اللعبة الواحدة (Risha Product Detail)
   ========================================================================== */

.product-detail-wrapper {
    padding: 7.5rem 0 4.5rem;
    background: #FFFFFF;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--text-secondary, #6B5B68);
    margin-bottom: 2rem;
}

.product-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: var(--primary-color, #2C1628);
}

.product-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3rem;
    align-items: start;
}

/* معرض الصور والغلاف */
.product-media-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-main-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-sand, #F7F3EE);
    border: 1px solid var(--border-color, rgba(44, 22, 40, 0.1));
}

.product-main-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-stage-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #2C1628 0%, #4A2543 100%);
    color: rgba(247, 243, 238, 0.85);
    padding: 2rem;
    text-align: center;
}

.product-stage-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--accent-color, #D4A359);
}

.product-thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-thumb-btn {
    width: 84px;
    height: 58px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--surface-sand, #F7F3EE);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-btn.active {
    border-color: var(--primary-color, #2C1628);
    transform: translateY(-2px);
}

/* الوصف التفصيلي */
.product-description-box {
    margin-top: 1rem;
    padding: 2rem;
    border-radius: 20px;
    background: var(--surface-ivory, #FAF8F5);
    border: 1px solid var(--border-color, rgba(44, 22, 40, 0.08));
}

.product-desc-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary, #1F0F1C);
    margin-bottom: 1rem;
}

.product-desc-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary, #52434F);
    white-space: pre-line;
}

.product-desc-body p {
    margin-bottom: 1rem;
}

/* بطاقة الشراء والتفعيل المثبتة */
.product-purchase-card {
    position: sticky;
    top: 6.25rem;
    padding: 2rem;
    border-radius: 22px;
    background: #FFFFFF;
    border: 1px solid var(--border-color, rgba(44, 22, 40, 0.12));
    box-shadow: 0 18px 40px -24px rgba(44, 22, 40, 0.22);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-type-pill {
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--surface-sand, #F7F3EE);
    color: var(--primary-color, #2C1628);
}

.product-promo-pill {
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(212, 163, 89, 0.18);
    color: #8A5E1B;
}

.product-detail-title {
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary, #1F0F1C);
}

.product-short-summary {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--text-secondary, #6B5B68);
}

.product-price-panel {
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    background: var(--surface-sand, #F7F3EE);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.product-price-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary, #6B5B68);
}

.product-price-values {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
}

.product-current-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary-color, #2C1628);
}

.product-old-price {
    font-size: 1rem;
    color: var(--text-secondary, #8A7A87);
    text-decoration: line-through;
}

.product-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-cta-stack .btn-primary,
.product-cta-stack .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
}

.product-highlights {
    list-style: none;
    padding: 1rem 0 0;
    margin: 0;
    border-top: 1px solid var(--border-color, rgba(44, 22, 40, 0.08));
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--text-secondary, #52434F);
}

.product-highlights li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.highlight-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color, #D4A359);
    flex-shrink: 0;
}

.product-not-found {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--surface-sand, #F7F3EE);
    border-radius: 20px;
}

@media (max-width: 960px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-purchase-card {
        position: static;
    }
}
