/**
 * Product Quick View Styles - WITH RTL SUPPORT
 * ✅ دعم RTL للغة العربية
 * ✅ تصميم متجاوب
 * ✅ تحسينات للعرض بكل اللغات
 * ✅ زر "أضف إلى السلة" داخل تدفق الصفحة — بدون sticky/fixed
 *
 * @package GeneratePress_Child
 * @since 1.0.9
 */

/* ================================== */
/* منع التمرير عند فتح Modal          */
/* ================================== */

/*
 * ⚠️ overflow:hidden على body وحده **لا يوقف التمرير باللمس في iOS
 *    Safari** — يتجاهله المتصفح وتتحرّك الصفحة خلف النافذة.
 *
 *    الحيلة الموثوقة الوحيدة تثبيت الجسم. لكن position:fixed يُخرجه من
 *    التدفّق فيفقد موضع التمرير — لذلك يحفظه GPChild.scrollLock في
 *    top السالب ويعيده عند الإغلاق (config.js).
 */
body.modal-open {
    overflow: hidden;
}

body.gpc-scroll-locked {
    position: fixed;
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
}

/* ================================== */
/* Modal Overlay                       */
/* ================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end !important;
    background-color: transparent;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    padding: 0 !important;
    margin: 0 !important;
}

.modal-overlay.is-visible {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

/* ================================== */
/* Product Container — موبايل         */
/* ✅ عرض كامل 100% — لوحة سفلية ممتدة */
/* ================================== */

.gpchild-qv-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 90vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    border-radius: 20px 20px 0 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    /*
     * ⚠️ كان overflow-y: auto هنا **و** على .qv-inner-wrapper بداخله —
     *    حاويتا تمرير متداخلتان بنفس الارتفاع. فحين تبلغ الداخلية
     *    نهايتها يواصل المتصفح على الخارجية ثم على الصفحة خلف النافذة.
     *    التمرير الآن في مكان واحد: الغلاف الداخلي.
     */
    overflow: hidden !important;
}

.qv-inner-wrapper {
    width: 100%;
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    overflow-y: auto;
    /* يوقف انتقال التمرير إلى الصفحة عند بلوغ النهاية */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.modal-overlay.is-visible .gpchild-qv-container {
    transform: translateY(0);
}

/* scrollbar للحاوية الداخلية في الموبايل */
@media (max-width: 767px) {
    .qv-inner-wrapper::-webkit-scrollbar { display: none; }
    .qv-inner-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
}

/* ================================== */
/* Close Button                        */
/* ================================== */

.close-modal-btn {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    padding: 0;
}

.close-modal-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

[dir="rtl"] .close-modal-btn {
    right: auto;
    left: 10px;
}

/* ================================== */
/* Image Gallery                       */
/* ================================== */

.image-gallery {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    /* ✅ FIX MOBILE: overflow:visible حتى لا تُقطع/تختفي الصورة */
    /* الـ qv-inner-wrapper يتولى الـ overflow للكل */
    overflow: visible;
    padding-bottom: 0;
    position: relative;
}

/*
 * ✅ FIX MOBILE: ارتفاع صريح بـ vw لضمان ظهور الصورة دائماً
 * - height: 80vw أكبر من 70vw السابقة لملء أكبر مساحة ممكنة
 * - padding داخلي يُبعد الصورة عن الحواف
 * - لا نستخدم aspect-ratio لأنه يعطي نتائج غير متوقعة داخل flex overflow:hidden
 */
.main-image-container {
    width: 100%;
    height: 80vw;
    max-height: 380px;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/*
 * ✅ الصورة: width و height بـ 100% تملأ الحاوية
 * object-fit: contain تحافظ على النسب بدون قطع
 */
.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
    display: block;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 20px;
    margin-top: 0;
}

.thumbnail-item {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background-color: #fff;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #000;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================================== */
/* Product Content Wrapper             */
/* ================================== */

.product-content-wrapper {
    display: flex;
    flex-direction: column;
}

/* ================================== */
/* Product Content                     */
/* ================================== */

.product-content {
    padding: 20px 35px 30px;
}

[dir="rtl"] .product-content {
    text-align: right;
}

.product-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-desc {
    font-size: 0.95rem;
    color: #000;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ================================== */
/* Details Grid                        */
/* ================================== */

.details-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 12px;
    row-gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    align-items: center;
}

.detail-label {
    font-weight: bold;
    white-space: nowrap;
}

.detail-value {
    color: #555;
    text-align: left;
}

[dir="rtl"] .details-grid {
    grid-template-columns: max-content 1fr;
    column-gap: 12px;
    direction: rtl;
}

[dir="rtl"] .detail-label {
    text-align: right;
}

[dir="rtl"] .detail-value {
    text-align: left;
}

/* ================================== */
/* Pack Contents                       */
/* ================================== */

.pack-contents {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-bottom: 40px;
}

.pack-title {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.content-item {
    display: flex;
    justify-content: space-between;
    color: #555;
}

.content-name {
    font-weight: bold;
    color: #000;
}

[dir="rtl"] .pack-contents {
    text-align: right;
}

[dir="rtl"] .content-item {
    flex-direction: row-reverse;
}

/* ================================== */
/* Size Selector                       */
/* ================================== */

/*
 * ⚠️ كان 35px هنا و 30px على .price-qty-section أدناه — أي فجوة
 *    **65px** بين صفّ الأحجام وصفّ السعر والكمية. هي «المساحة الكبيرة»
 *    الظاهرة تحت 20ml. هامش واحد يكفي، والثاني صُفِّر.
 */
.size-selector {
    margin-bottom: 22px;
}

.size-label {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: #fff;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.size-btn:hover {
    border-color: #000;
    background-color: #f9f9f9;
}

.size-btn.selected,
.size-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/*
 * الحجم النافد: رمادي باهت مشطوب.
 *
 * ⚠️ ليس disabled — الزر يبقى قابلاً للنقر عمداً، ليردّ برسالة مترجمة
 *    تشرح السبب. الزر المعطّل يبتلع النقرة صامتاً فيظنّ الزبون العطل
 *    في الموقع. و pointer-events: none كان سيفعل الشيء نفسه.
 */
.size-btn.is-oos {
    color: #b0b0b0;
    background-color: #f5f5f5;
    border-color: #ececec;
    text-decoration: line-through;
    cursor: not-allowed;
}

.size-btn.is-oos:hover {
    border-color: #ddd;
    background-color: #f5f5f5;
}

[dir="rtl"] .size-label {
    text-align: right;
}

[dir="rtl"] .size-options {
    justify-content: flex-end;
}

/* ================================== */
/* Price / Quantity                    */
/* ================================== */

/*
 * ‎.price-qty-section‎ للتخطيط الأصلي (حقول مملوءة): السعر والكمية في
 * صفّ واحد. التخطيط المختصر يفصلهما — السعر أعلى العمود تحت الاسم.
 */
.price-qty-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 20px;
}

/*
 * ⚠️ حُذف  [dir="rtl"] .price-qty-section { flex-direction: row-reverse }
 *
 * وهو نفس الخطأ الموثَّق في cart-buttons.css: flex يقلب محوره وحده في
 * RTL، فإضافة row-reverse تقلبه **مرّة ثانية** — أي تعيده إلى ترتيب
 * LTR. فكان صفّ السعر والكمية يعاكس صفّ أزرار الشراء تحته مباشرة:
 * الكمية على حافّة، والزرّ الأساسي على الحافّة المقابلة.
 *
 * بحذفه يصطفّ الصفّان على محور واحد في اللغتين معاً.
 */

.current-price {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    font-variant-numeric: tabular-nums;
}

/* في التخطيط المختصر السعر عنصر مستقل تحت الاسم */
.qv-top .current-price {
    margin: 10px 0 0;
}

.modal-overlay .quantity-control {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

/*
 * على الجوّال يصير محدِّد الكمية بعرض صفّ الأزرار تماماً.
 *
 * كان قرصاً صغيراً على حافّة، وتحته زرّان يمتدّان عرض الصندوق — فحافّته
 * لا تلتقي بحافّتهما ويبدو الصفّان غير متناسقين. الآن الكمية والزرّان
 * ثلاثة صفوف بحافّتين واحدتين، ومساحة اللمس على + و − تتضاعف.
 */
@media (max-width: 767px) {
    .modal-overlay .quantity-control {
        display: flex;
        align-self: stretch;
        width: 100%;
        justify-content: space-between;
        border-radius: var(--gp-radius-pill, 999px);
    }

    .modal-overlay .qty-btn {
        flex: 0 0 auto;
        min-width: 56px;
    }

    .modal-overlay .qty-value {
        flex: 1 1 auto;
        text-align: center;
    }
}

.modal-overlay .qty-btn {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-overlay .qty-btn:hover { background-color: #e6e6e6; }

.modal-overlay .qty-value {
    min-width: 42px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* أزرار السلة نُقلت إلى assets/css/cart-buttons.css — كانت هنا
   فلا تصل صفحة المنتج المستقلة إليها (هذا الملف يُحمَّل كسولاً) */


/* ================================== */
/* Accordion                           */
/* ================================== */

.accordion {
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.modal-overlay .accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.modal-overlay .accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
    outline: none;
}

.modal-overlay .accordion-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.modal-overlay .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    padding-right: 20px;
}

.modal-overlay .accordion-content p {
    padding-bottom: 25px;
    margin: 0;
}

[dir="rtl"] .accordion-header {
    text-align: right;
}

[dir="rtl"] .accordion-content {
    padding-right: 0;
    padding-left: 20px;
    text-align: right;
}

/* Scent Details */
.scent-details {
    padding-bottom: 25px;
}

.scent-row {
    display: flex;
    margin-bottom: 8px;
}

.scent-label {
    font-weight: bold;
    min-width: 60px;
    margin-right: 15px;
    font-size: 0.9em;
    color: #333;
}

.scent-value {
    color: #333;
    font-size: 0.9em;
}

[dir="rtl"] .scent-row {
    direction: rtl;
}

[dir="rtl"] .scent-label {
    margin-right: 0;
    margin-left: 15px;
    text-align: right;
}

[dir="rtl"] .scent-value {
    text-align: left;
}

/* Pack Scent Notes */
.scent-trio-notes {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
}

.scent-name-title {
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 5px;
}

.notes-list {
    display: grid;
    grid-template-columns: 80px 1fr;
    row-gap: 5px;
}

.note-cat {
    font-weight: bold;
    color: #000;
}

[dir="rtl"] .scent-name-title {
    text-align: right;
}

[dir="rtl"] .notes-list {
    grid-template-columns: 80px 1fr;
    direction: rtl;
}

[dir="rtl"] .note-cat {
    text-align: right;
}

/* Icon */
.modal-overlay .icon {
    font-size: 24px;
    font-weight: 300;
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
}

.modal-overlay .accordion-item.open .icon {
    transform: rotate(45deg);
}

/* ================================== */
/* Desktop Styles (≥768px)            */
/* ================================== */

@media (min-width: 768px) {

    .modal-overlay {
        align-items: center;
        justify-content: center;
    }

    .gpchild-qv-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        max-height: none;
        overflow: visible;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        transform: translateY(0) scale(0.98);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    opacity 0.35s ease;
    }

    .modal-overlay.is-visible .gpchild-qv-container {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /*
     * ⭐ شبكة بعمودين متساويي الارتفاع.
     *
     * ⚠️ كان flex مع .image-gallery { position: sticky; align-self:
     * flex-start } وارتفاع صورة يُحسب في الجافاسكريبت
     * (--sync-image-height). أي أن تساوي العمودين كان يعتمد على قياس
     * يحدث بعد الرسم بـ 50ms — فيقفز التخطيط أمام الزائر.
     * الشبكة تفعل ذلك بلا سطر جافاسكريبت.
     *
     * وحُذف [dir=rtl] { flex-direction: row-reverse }: أعمدة الشبكة
     * تنقلب مع اتجاه الكتابة وحدها.
     */
    .qv-inner-wrapper {
        width: 80%;
        max-width: 1200px;
        height: 85vh;
        max-height: 85vh;
        border-radius: 20px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .close-modal-btn {
        top: 15px;
        right: 15px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    [dir="rtl"] .close-modal-btn {
        right: auto;
        left: 15px;
    }

    .image-gallery {
        width: auto;
        height: 100%;
        min-height: 0;
        border-start-start-radius: 20px;
        border-end-start-radius: 20px;
        overflow: hidden;
        padding: 26px 26px 18px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    /* الصورة تأخذ ما تبقّى من العمود — لا رقم ثابت ولا قياس بالجافاسكريبت */
    .main-image-container {
        flex: 1;
        width: 100%;
        aspect-ratio: unset;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 10px;
    }

    .thumbnails {
        padding: 0;
        margin: 0;
        gap: 12px;
        flex: none;
    }

    .thumbnail-item {
        width: 62px;
        height: 62px;
    }

    .product-content-wrapper {
        width: auto;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    /*
     * ⭐ التخطيط المختصر: توزيع الكتل الثلاث على كامل الارتفاع.
     * min-height:100% تضمن أن العمود يملأ الصندوق حتى لو قلّ المحتوى،
     * و space-between توزّع الفراغ بينها بدل تجميعه في الأسفل.
     */
    .product-content.is-minimal {
        flex: 1;
        min-height: 100%;
        padding: 32px 38px 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 24px;
    }

    /*
     * التخطيط الأصلي — كما كان قبل 2.6.0 بالضبط.
     * ⚠️ لا توزيع ولا space-between هنا: المحتوى يملأ العمود بنفسه،
     * وأي إعادة توزيع تُبعد الأزرار عن مكانها فوق الأكورديون.
     */
    .product-content.is-rich {
        display: block;
        padding: 30px 40px 40px;
        flex-shrink: 0;
    }

    .product-title {
        font-size: 1.9rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .details-grid {
        grid-template-columns: max-content 1fr;
        column-gap: 12px;
    }

    [dir="rtl"] .details-grid {
        grid-template-columns: max-content 1fr;
        column-gap: 12px;
    }
}


/* ══════════════════════════════════════════════════════════════
   الكتل الثلاث لعمود المحتوى
   ══════════════════════════════════════════════════════════════ */

.qv-top,
.qv-mid,
.qv-bot {
    display: flex;
    flex-direction: column;
}

.qv-top { gap: 4px; }
.qv-mid { gap: 24px; }
.qv-bot { gap: 20px; }

/* الكتلة الوسطى تبتلع الفراغ الزائد، فلا يتجمّع في الأسفل */
.qv-mid { flex: 1 1 auto; justify-content: center; }

/* سطر الماركة فوق الاسم */
.qv-brand {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gp-text-muted);
}

/* حقل معنون (الحجم، الكمية) */
.qv-field {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/*
 * ⚠️ .size-selector يحمل margin-bottom الخاص بالتخطيط الأصلي. وداخل
 *    .qv-mid تنضاف إليه فجوة الشريط (gap: 24px) — والهوامش لا تنطوي
 *    داخل flex. فالمسافة بين صفّ الأحجام و«الكمية» كانت 22 + 24 = 46px،
 *    وكانت 59px قبل تصغير الهامش. فجوة واحدة تكفي.
 */
.qv-mid .size-selector {
    margin-bottom: 0;
}

.qv-label {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gp-text-soft);
}

/* ══════════════════════════════════════════════════════════════
   سطر «منتج أصلي» — تحت الصور المصغّرة داخل عمود الصورة
   ══════════════════════════════════════════════════════════════ */
.qv-authentic {
    margin: 0;
    padding-top: 13px;
    border-top: 1px solid var(--gp-border);
    text-align: center;
    font-size: .71875rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--gp-brand-dark);
}

.qv-authentic:empty { display: none; }

/* ══════════════════════════════════════════════════════════════
   شروط الاستلام والإرجاع
   ══════════════════════════════════════════════════════════════ */
.qv-policy {
    padding-top: 18px;
    border-top: 1px solid var(--gp-border-soft);
}

.qv-policy-title {
    margin: 0 0 12px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gp-text-soft);
}

.qv-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/*
 * الترقيم هنا يحمل معنى: قبل الاستلام ← عنده ← بعده.
 * ليس زخرفة، فلذلك بقي رقماً ظاهراً لا نقطة.
 */
.qv-steps li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 9px;
    align-items: start;
    font-size: .78125rem;
    line-height: 1.55;
    color: var(--gp-text-soft);
}

.qv-steps b {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gp-brand-soft);
    color: var(--gp-brand-dark);
    font-size: .65625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* الخطوة الأهم: لا إرجاع بعد قبول الطرد */
.qv-steps li.is-strong {
    color: var(--gp-text);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   تبديل الصورة
   ══════════════════════════════════════════════════════════════ */

/*
 * ⚠️ الكود السابق كان يُخفت الصورة ثم يكتب src بعد 150ms — توقيت أعمى
 * لا يعرف هل وصلت الصورة الجديدة. فيُفرغ المتصفح العنصر ويبقى فارغاً
 * حتى تصل: تلك هي «الرمشة».
 *
 * الآن الصور تُحمَّل مسبقاً، والتبديل لا يحدث إلا بعد decode(). هذه
 * الحالة تظهر فقط إن لم تصل الصورة بعد — ونادرة بعد التحميل المسبق.
 */
.main-image {
    transition: opacity .18s ease;
}

.main-image.is-swapping {
    opacity: .55;
}

.thumbnail-item {
    padding: 0;
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    .main-image { transition: none; }
}

/* ================================== */
/* Scrollbar Styling                   */
/* ================================== */

@media (min-width: 768px) {
    .product-content-wrapper::-webkit-scrollbar {
        width: 8px;
    }

    .product-content-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .product-content-wrapper::-webkit-scrollbar-track {
        background: #f5f5f5;
    }
}

@media (max-width: 767px) {
    .gpchild-qv-container::-webkit-scrollbar {
        display: none;
    }

    .gpchild-qv-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* ================================== */
/* Toast Notifications                 */
/* ================================== */

/* أُزيلت قواعد .gpchild-toast — الإشعارات العائمة استُبدلت
   بتغذية راجعة في مكان الفعل (انظر .gp-feedback في main.css) */

/* حُذفت keyframes الإشعارات العائمة — لم يعد أي شيء يستعملها */

/* إخفاء شريط التمرير */
.product-content-wrapper::-webkit-scrollbar {
    display: none;
}

.product-content-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ================================== */
/* حالة فشل التحميل                    */
/* ================================== */

.qv-error {
    text-align: center;
    padding: var(--gp-space-6) var(--gp-space-4) var(--gp-space-3);
    color: var(--gp-text-soft);
    font-size: 1rem;
    margin: 0;
}

.qv-error-detail {
    display: block;
    text-align: center;
    padding: 0 var(--gp-space-4) var(--gp-space-4);
    color: var(--gp-danger);
    font-family: monospace;
    font-size: .72rem;
    word-break: break-all;
}

.qv-retry {
    display: block;
    margin: 0 auto var(--gp-space-6);
    padding: var(--gp-space-3) var(--gp-space-6);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: var(--gp-text-invert);
    background: var(--gp-brand);
    border: 0;
    border-radius: var(--gp-radius-pill);
    cursor: pointer;
}

.qv-retry:hover { background: var(--gp-brand-dark); }

/* ================================== */
/* منتج غير متاح للبيع                 */
/* ================================== */


