/* products-details.css — أنماط خاصة بهذه الصفحة وحدها.
   المرحلة 3: كانت مكتوبة داخل <style> فى الـ View، تنزل مع كل
   طلب ولا يستطيع المتصفح تخزينها. الآن ملف مستقل قابل للتخزين. */

.product-details-pro {
    --product-primary: #1a1a1a;
    --product-accent: #d4a017;
    --product-accent-bright: #f0c75e;
    --product-soft: #faf6ec;
    --product-border: #e8dfc4;
    direction: rtl;
}

/* ===== HERO ===== */
.product-details-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 20%, rgba(212,160,23,.18), transparent 28%), radial-gradient(circle at 88% 80%, rgba(212,160,23,.10), transparent 30%), linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 55%, #0a0a0a 100%);
    color: #fff;
    padding: 84px 0 64px;
    text-align: center;
}

.product-details-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(212,160,23,.12);
    border: 1px solid rgba(212,160,23,.32);
    color: #f4d693;
    font-weight: 800;
    margin-bottom: 18px;
    font-size: .92rem;
}

.product-details-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.2;
}

.product-details-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    line-height: 1.95;
}

/* ===== MAIN ===== */
.product-details-main {
    padding: 70px 0;
    background: linear-gradient(180deg, #fff 0%, #faf6ec 100%);
}

.product-details-card {
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 28px;
    box-shadow: 0 22px 55px rgba(26,26,26,.10);
    overflow: hidden;
}

.product-details-image-wrap {
    min-height: 100%;
    background: linear-gradient(135deg, #fbfbfb 0%, #f5f0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    position: relative;
    cursor: zoom-in;
}

    .product-details-image-wrap.has-gallery {
        min-height: 480px;
    }

    .product-details-image-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(212,160,23,.10), transparent 60%);
        pointer-events: none;
    }

    .product-details-image-wrap img {
        width: 100%;
        max-height: 480px;
        object-fit: contain;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 18px 28px rgba(0,0,0,.18));
    }

.product-details-content {
    padding: 38px;
}

    .product-details-content h2 {
        color: var(--product-primary);
        font-weight: 900;
        font-size: 1.85rem;
        margin-bottom: 10px;
    }

    .product-details-content > p {
        color: #555966;
        line-height: 2;
        font-size: 1.04rem;
        margin-bottom: 18px;
    }

.product-quick-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
}

    .product-quick-facts li {
        list-style: none;
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 10px 12px;
        background: var(--product-soft);
        border: 1px solid var(--product-border);
        border-radius: 12px;
        color: #2a2a2a;
        font-weight: 700;
        font-size: .93rem;
    }

        .product-quick-facts li i {
            color: var(--product-accent);
            margin-top: 2px;
        }

.product-details-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

    .product-details-actions .btn {
        border-radius: 999px;
        padding: 11px 22px;
        font-weight: 800;
        transition: transform .2s ease, box-shadow .2s ease;
    }

        .product-details-actions .btn:hover {
            transform: translateY(-2px);
        }

    .product-details-actions .btn-quote {
        background: linear-gradient(135deg, #d4a017, #f0c75e);
        color: #0a0a0a;
        border: 0;
        box-shadow: 0 8px 18px rgba(212,160,23,.3);
    }

        .product-details-actions .btn-quote:hover {
            box-shadow: 0 12px 26px rgba(212,160,23,.45);
            color: #0a0a0a;
        }

    .product-details-actions .btn-wa {
        background: #25d366;
        color: #fff;
        border: 0;
    }

        .product-details-actions .btn-wa:hover {
            color: #fff;
            background: #1ebe5d;
        }

    .product-details-actions .btn-outline {
        background: transparent;
        color: #1a1a1a;
        border: 1.5px solid #1a1a1a;
    }

        .product-details-actions .btn-outline:hover {
            background: #1a1a1a;
            color: #fff;
        }

/* ===== 3D Viewer ===== */
.product-3d-section {
    margin-top: 56px;
}

.product-3d-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 55%, #0a0a0a 100%);
    border-radius: 28px;
    padding: 38px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212,160,23,.25);
    box-shadow: 0 24px 60px rgba(0,0,0,.20);
}

    .product-3d-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 30%, rgba(212,160,23,.18), transparent 40%), radial-gradient(circle at 80% 70%, rgba(212,160,23,.10), transparent 38%);
        pointer-events: none;
    }

    .product-3d-card > * {
        position: relative;
        z-index: 2;
    }

.product-3d-header {
    text-align: center;
    margin-bottom: 22px;
}

    .product-3d-header .kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(212,160,23,.15);
        color: #f0c75e;
        padding: 6px 14px;
        border-radius: 999px;
        font-weight: 800;
        font-size: .85rem;
        margin-bottom: 12px;
    }

    .product-3d-header h2 {
        color: #fff;
        font-weight: 900;
        font-size: 1.8rem;
        margin: 0 0 8px;
    }

    .product-3d-header p {
        color: rgba(255,255,255,.7);
        margin: 0;
        font-size: .98rem;
    }

.product-3d-stage {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(212,160,23,.18);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-3d-stage model-viewer {
        width: 100%;
        height: 520px;
        background: transparent;
        --poster-color: transparent;
    }

.product-3d-hint {
    margin-top: 14px;
    text-align: center;
    color: rgba(255,255,255,.55);
    font-size: .85rem;
}

    .product-3d-hint i {
        color: #f0c75e;
        margin-left: 4px;
    }

/* ===== Specifications Table ===== */
.product-specs-section {
    margin-top: 56px;
}

.product-specs-header {
    text-align: center;
    margin-bottom: 26px;
}

    .product-specs-header span {
        display: inline-block;
        color: var(--product-accent);
        font-weight: 800;
        font-size: .9rem;
        letter-spacing: .5px;
        margin-bottom: 6px;
    }

    .product-specs-header h2 {
        color: var(--product-primary);
        font-weight: 900;
        margin: 0;
    }

.product-specs-table {
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(26,26,26,.07);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .product-specs-table table {
        margin: 0;
        width: 100%;
    }

    .product-specs-table thead th {
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        color: #f4d693;
        font-weight: 900;
        padding: 16px 22px;
        font-size: 1rem;
        text-align: right;
        letter-spacing: .3px;
    }

    .product-specs-table tbody tr {
        transition: background .15s ease;
    }

        .product-specs-table tbody tr:hover {
            background: rgba(212,160,23,.05);
        }

        .product-specs-table tbody tr:not(:last-child) td {
            border-bottom: 1px solid var(--product-border);
        }

    .product-specs-table tbody td {
        padding: 14px 22px;
        font-size: 1rem;
        vertical-align: middle;
    }

        .product-specs-table tbody td:first-child {
            color: #555966;
            font-weight: 600;
            width: 50%;
        }

        .product-specs-table tbody td:last-child {
            color: var(--product-primary);
            font-weight: 800;
        }

/* ===== Features List ===== */
.product-features-section {
    margin-top: 56px;
}

.product-features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    list-style: none;
    margin: 0;
}

    .product-features-list li {
        background: #fff;
        border: 1px solid var(--product-border);
        border-radius: 18px;
        padding: 20px 56px 20px 22px;
        position: relative;
        color: #2a2a2a;
        line-height: 1.95;
        font-size: 1rem;
        font-weight: 500;
        box-shadow: 0 12px 28px rgba(26,26,26,.05);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

        .product-features-list li::before {
            content: "✓";
            position: absolute;
            top: 18px;
            right: 18px;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, #d4a017, #f0c75e);
            color: #0a0a0a;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            font-size: 1rem;
            box-shadow: 0 4px 10px rgba(212,160,23,.35);
        }

        .product-features-list li:hover {
            transform: translateY(-3px);
            border-color: rgba(212,160,23,.35);
            box-shadow: 0 18px 36px rgba(26,26,26,.08);
        }

        .product-features-list li b,
        .product-features-list li strong {
            color: var(--product-primary);
            font-weight: 900;
        }

/* ===== Uses Section ===== */
.product-uses-section {
    margin-top: 56px;
}

.product-uses-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    list-style: none;
    margin: 0;
}

    .product-uses-list li {
        background: linear-gradient(135deg, #fff, var(--product-soft));
        border: 1px solid var(--product-border);
        border-radius: 18px;
        padding: 18px 22px;
        color: #2a2a2a;
        font-weight: 700;
        box-shadow: 0 10px 25px rgba(26,26,26,.05);
        display: flex;
        align-items: center;
        gap: 12px;
        transition: transform .2s ease, border-color .2s ease;
    }

        .product-uses-list li::before {
            content: "›";
            color: var(--product-accent);
            font-weight: 900;
            font-size: 1.4rem;
            flex-shrink: 0;
        }

        .product-uses-list li:hover {
            transform: translateY(-3px);
            border-color: rgba(212,160,23,.35);
        }

/* ===== Related Section ===== */
.product-related-section {
    padding: 60px 0 75px;
    background: #fff;
}

.price.big {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--product-accent);
    margin: 10px 0;
}

@media (max-width: 991px) {
    .product-features-list,
    .product-quick-facts {
        grid-template-columns: 1fr;
    }

    .product-uses-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details-content {
        padding: 24px;
    }

    .product-3d-card {
        padding: 22px;
    }

    .product-3d-stage,
    .product-3d-stage model-viewer {
        min-height: 380px;
        height: 380px;
    }
    /* Product image gallery — tablet */
    .product-details-image-wrap {
        padding: 24px;
    }

        .product-details-image-wrap.has-gallery {
            min-height: 380px;
        }

        .product-details-image-wrap img {
            max-height: 340px;
        }

        .product-details-image-wrap .pd-main-slide {
            inset: 24px;
        }

            .product-details-image-wrap .pd-main-slide img {
                max-height: 340px;
            }
}

@media (max-width: 575px) {
    .product-uses-list {
        grid-template-columns: 1fr;
    }

    .product-specs-table tbody td {
        padding: 11px 12px;
        font-size: .9rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .product-specs-table thead th {
        padding: 12px;
        font-size: .9rem;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .product-specs-table tbody td:first-child {
        width: 42%;
    }

    .product-details-hero {
        padding: 60px 0 44px;
    }

        .product-details-hero h1 {
            font-size: 1.6rem;
        }

        .product-details-hero p {
            font-size: .95rem;
            line-height: 1.8;
        }

    .product-details-actions {
        gap: 8px;
    }

        .product-details-actions .btn {
            padding: 10px 16px;
            font-size: .92rem;
            flex: 1;
            min-width: 0;
        }

        .product-details-actions .btn-wa-icon.lg {
            flex: 0 0 auto;
        }

    .product-3d-stage,
    .product-3d-stage model-viewer {
        min-height: 320px;
        height: 320px;
    }

    .product-3d-header h2 {
        font-size: 1.3rem;
    }
    /* Product image gallery — mobile */
    .product-details-image-wrap {
        padding: 16px;
    }

        .product-details-image-wrap.has-gallery {
            min-height: 280px;
        }

        .product-details-image-wrap img {
            max-height: 240px;
        }

        .product-details-image-wrap .pd-main-slide {
            inset: 16px;
        }

            .product-details-image-wrap .pd-main-slide img {
                max-height: 240px;
            }

        .product-details-image-wrap .pd-main-counter {
            bottom: 8px;
            font-size: .75rem;
            padding: 4px 10px;
        }

        .product-details-image-wrap .pd-main-zoom {
            top: 10px;
            left: 10px;
            width: 32px;
            height: 32px;
            font-size: .8rem;
            opacity: 1;
        }
}

/* Extra small phones */
@media (max-width: 380px) {
    .product-details-image-wrap {
        padding: 12px;
    }

        .product-details-image-wrap.has-gallery {
            min-height: 240px;
        }

        .product-details-image-wrap img {
            max-height: 200px;
        }

        .product-details-image-wrap .pd-main-slide {
            inset: 12px;
        }

            .product-details-image-wrap .pd-main-slide img {
                max-height: 200px;
            }

    .pd-thumb {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
    }
}

/* ===== Main Image — Gallery Mode (تتبدل بين الصور) ===== */
.product-details-image-wrap .pd-main-slide {
    position: absolute;
    inset: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.985);
    transition: opacity .45s ease, transform .55s ease;
    pointer-events: none;
    z-index: 1;
}

    .product-details-image-wrap .pd-main-slide.is-active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .product-details-image-wrap .pd-main-slide img {
        width: 100%;
        max-height: 480px;
        object-fit: contain;
        filter: drop-shadow(0 18px 28px rgba(0,0,0,.18));
    }

.product-details-image-wrap .pd-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(26,26,26,.78);
    color: var(--product-accent-bright);
    border: 1px solid rgba(212,160,23,.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 3;
    transition: background .2s ease, transform .2s ease, opacity .25s ease;
    opacity: 0;
    backdrop-filter: blur(6px);
}

.product-details-image-wrap:hover .pd-main-nav {
    opacity: 1;
}

.product-details-image-wrap .pd-main-nav:hover {
    background: rgba(212,160,23,.92);
    color: #0a0a0a;
    transform: translateY(-50%) scale(1.08);
}

.product-details-image-wrap .pd-main-prev {
    right: 14px;
}

.product-details-image-wrap .pd-main-next {
    left: 14px;
}

.product-details-image-wrap .pd-main-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,26,26,.78);
    color: var(--product-accent-bright);
    font-weight: 700;
    font-size: .82rem;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(212,160,23,.3);
    z-index: 3;
    letter-spacing: .5px;
    backdrop-filter: blur(6px);
}

.product-details-image-wrap .pd-main-zoom {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(26,26,26,.78);
    color: var(--product-accent-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    z-index: 3;
    opacity: 0;
    transition: opacity .25s ease;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.product-details-image-wrap:hover .pd-main-zoom {
    opacity: 1;
}

/* ===== Thumbnails Strip ===== */
.pd-thumbs {
    display: flex;
    gap: 10px;
    padding: 14px 18px 18px;
    background: rgba(26,26,26,.025);
    border-top: 1px solid var(--product-border);
    justify-content: center;
    flex-wrap: wrap;
}

.pd-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid var(--product-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    position: relative;
}

    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .25s ease;
    }

    .pd-thumb:hover {
        border-color: rgba(212,160,23,.55);
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(26,26,26,.08);
    }

        .pd-thumb:hover img {
            transform: scale(1.06);
        }

    .pd-thumb.is-active {
        border-color: var(--product-accent);
        box-shadow: 0 0 0 3px rgba(212,160,23,.18), 0 8px 18px rgba(212,160,23,.18);
    }

        .pd-thumb.is-active::after {
            content: "";
            position: absolute;
            inset: -2px;
            border-radius: 12px;
            border: 2px solid var(--product-accent);
            pointer-events: none;
        }

@media (max-width: 575px) {
    .pd-thumb {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
    }

    .pd-thumbs {
        padding: 12px 12px 14px;
        gap: 8px;
    }

    .product-details-image-wrap .pd-main-nav {
        width: 36px;
        height: 36px;
        opacity: 1;
    }
}

/* Lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(6px);
}

    .product-lightbox.is-open {
        display: flex;
        animation: lbFade .2s ease;
    }

    .product-lightbox img {
        max-width: 92%;
        max-height: 88vh;
        object-fit: contain;
        border-radius: 14px;
        box-shadow: 0 30px 70px rgba(0,0,0,.5);
    }

    .product-lightbox .lb-close {
        position: absolute;
        top: 22px;
        left: 22px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        color: #fff;
        border: 1px solid rgba(255,255,255,.25);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .2s ease;
    }

        .product-lightbox .lb-close:hover {
            background: rgba(255,255,255,.22);
        }

    .product-lightbox .lb-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
        color: #fff;
        border: 1px solid rgba(255,255,255,.22);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        transition: background .2s ease, transform .2s ease;
    }

        .product-lightbox .lb-nav:hover {
            background: rgba(212,160,23,.6);
            transform: translateY(-50%) scale(1.06);
        }

    .product-lightbox .lb-prev {
        right: 24px;
    }

    .product-lightbox .lb-next {
        left: 24px;
    }

@keyframes lbFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== Variants Section (الأنواع المتاحة) ===== */
.product-variants-section {
    margin-top: 56px;
    padding: 38px 32px;
    background: linear-gradient(135deg, #fbfbfb 0%, #f7f1e0 100%);
    border: 1px solid var(--product-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

    .product-variants-section::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 240px;
        height: 240px;
        background: radial-gradient(circle, rgba(212,160,23,.12), transparent 65%);
        pointer-events: none;
    }

.product-variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.product-variant-card {
    background: #fff;
    border: 1px solid var(--product-border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}

    .product-variant-card::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--product-accent), var(--product-accent-bright));
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .35s ease;
    }

    .product-variant-card:hover {
        transform: translateY(-6px);
        border-color: rgba(212,160,23,.45);
        box-shadow: 0 20px 38px rgba(26,26,26,.10);
        color: inherit;
        text-decoration: none;
    }

        .product-variant-card:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

.product-variant-image {
    background: linear-gradient(135deg, #fafafa 0%, #f0e8d0 100%);
    border-radius: 14px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

    .product-variant-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform .35s ease;
        filter: drop-shadow(0 8px 14px rgba(0,0,0,.10));
    }

.product-variant-card:hover .product-variant-image img {
    transform: scale(1.06);
}

.product-variant-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-variant-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--product-dark);
    line-height: 1.4;
    margin: 0;
}

.product-variant-desc {
    font-size: .87rem;
    color: #6a6a6a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-variant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.product-variant-chip {
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212,160,23,.12);
    color: #8a6a10;
    border: 1px solid rgba(212,160,23,.25);
    letter-spacing: .2px;
}

.product-variant-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--product-accent);
    font-weight: 700;
    font-size: .92rem;
    padding-top: 8px;
    border-top: 1px dashed var(--product-border);
}

    .product-variant-cta i {
        transition: transform .25s ease;
    }

.product-variant-card:hover .product-variant-cta i {
    transform: translateX(-4px); /* RTL: السهم يتحرك يسار */
}

@media (max-width: 575px) {
    .product-variants-section {
        padding: 26px 18px;
    }

    .product-variants-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-variant-image {
        height: 150px;
    }
}

/* ── زر تحميل النموذج ثلاثى الأبعاد (المرحلة 4) ── */
.product-3d-load {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 320px;
    padding: 30px;
    border: 2px dashed #e8dfc4;
    border-radius: 24px;
    background: #faf6ec;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: .25s ease;
}

.product-3d-load:hover:not(:disabled) {
    background: #fff;
    border-color: #d4a017;
    box-shadow: 0 16px 35px rgba(10, 10, 10, .08);
}

.product-3d-load:disabled {
    cursor: progress;
    opacity: .75;
}

.product-3d-load i {
    font-size: 2.4rem;
    color: #d4a017;
}

.product-3d-load small {
    font-size: .85rem;
    font-weight: 600;
    color: #6b6b6b;
}

/* ── الإجابة المختصرة (المرحلة 7) ──
   أول كتلة نصية بعد العنوان — هى ما تقرؤه ملخصات الذكاء الاصطناعى. */
.product-answer { padding: 26px 0 0; }

.product-answer__box {
    background: #fff;
    border: 1px solid #e8dfc4;
    border-right: 4px solid #d4a017;
    border-radius: 18px;
    padding: 22px 24px;
}

.product-answer__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 900;
    color: #d4a017;
    margin-bottom: 10px;
}

.product-answer__text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 2.05;
    color: #1a1a1a;
}

.product-answer__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.product-answer__facts li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px;
    background: #faf6ec;
    border: 1px solid #f3ebd6;
    border-radius: 12px;
}

.product-answer__facts span { font-size: .78rem; color: #6b6b6b; font-weight: 700; }
.product-answer__facts b { font-size: .96rem; color: #0a0a0a; font-weight: 900; }

@media (max-width: 575.98px) {
    .product-answer__box { padding: 18px 16px; }
    .product-answer__text { font-size: .96rem; }
}

/* ── جدول مقارنة التنويعات (المرحلة 7) ── */
.product-compare { margin-top: 34px; }

.product-compare__title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0a0a0a;
    margin-bottom: 14px;
}

/* الجدول قد يتجاوز عرض الشاشة على الموبايل — يمرّر داخل حاويته
   ولا يجعل الصفحة كلها تتحرك أفقيًا. */
.product-compare__scroll {
    overflow-x: auto;
    border: 1px solid #e8dfc4;
    border-radius: 16px;
    background: #fff;
}

.product-compare__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.product-compare__table th,
.product-compare__table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #f3ebd6;
    font-size: .93rem;
}

.product-compare__table thead th {
    background: #faf6ec;
    font-weight: 900;
    color: #0a0a0a;
    white-space: nowrap;
}

.product-compare__table thead th a { color: #0a0a0a; text-decoration: none; }
.product-compare__table thead th a:hover { color: #d4a017; }

.product-compare__table tbody th {
    font-weight: 700;
    color: #6b6b6b;
    background: #fffdf7;
}

.product-compare__table tbody tr:last-child th,
.product-compare__table tbody tr:last-child td { border-bottom: 0; }

/* نص مخفى بصريًا لكن يقرؤه قارئ الشاشة والمحرّكات */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
