/**
 * assets/css/product-detail.css
 * ============================================================
 * هذا الملف يُحمَّل فقط عند $view === 'product-detail' (راجع شرط التحميل
 * الموجود مسبقًا في themes/.../layouts/main.php)، لذلك قواعد body{}
 * أدناه آمنة ولا تؤثر على بقية صفحات الموقع - لكنها تنطبق على كامل
 * الصفحة الحالية (الهيدر + المحتوى + الفوتر + الشريط السفلي) وليس فقط
 * على عنصر .ez-product-detail، وهذا هو السلوك المقصود بالتصميم الأصلي
 * (كان <body class="no-copy"> بالنسخة المستقلة).
 *
 * ملاحظة مهمة: تم استبدال إعادة الضبط الشاملة `* { margin:0; padding:0; }`
 * بنسخة محصورة داخل `.ez-product-detail *` فقط، بدل تطبيقها على كل عنصر
 * بالصفحة (بما فيها الهيدر/الفوتر/الشريط السفلي)، حتى لا يتم كسر تباعد
 * تلك العناصر المشتركة مع بقية صفحات المتجر.
 *
 * ============================================================
 * [تحديث الهوية البصرية - بناءً على طلب صريح] أُعيد تلوين الملف بالكامل
 * ليطابق هوية صفحة إتمام الطلب (themes/default/views/checkout.php):
 *   - نفس متغيرات اللون: ذهبي (bf953f→fcf6ba→b38728→fbf5b7→aa771c) +
 *     عنابي ملكي (burgundy #65000f / #9b071b) + أحمر خطأ #ff334b.
 *   - نفس معالجة "البطاقة الملكية" المستخدمة في .card-box بصفحة إتمام
 *     الطلب: خلفية متدرجة داكنة + توهجات radial-gradient ذهبية/عنابية
 *     خفيفة + حدود ذهبية شبه شفافة (rgba(212,175,55,.25)) + خط ذهبي
 *     علوي دقيق (عبر inset box-shadow بدل ::before/::after حتى لا نتعارض
 *     مع العناصر الوهمية المستخدمة أصلاً لتأثيرات أخرى كاللمعان/الوميض)
 *     + تمويه خلفي backdrop-filter. طُبّقت هذه المعالجة على: الصورة
 *     الرئيسية، صندوق العرض السريع، شريط المتغيرات، قسم الأكورديون،
 *     ملخص التقييمات، كرت التقييم، كرت إضافة تقييم، رسالة "يجب تسجيل
 *     الدخول"، كرت المنتج المقترح، والنافذة المنبثقة.
 *   - النصوص الرمادية وُحّدت على نفس درجة صفحة إتمام الطلب (#999999
 *     للنص الخافت، ودرجة أغمق لعناصر التسعير الملغاة).
 *   - زر "أضف للسلة" أصبح بنفس أسلوب زر "تطبيق الخصم" العنابي بصفحة
 *     إتمام الطلب، وزر "اطلب الآن" بنفس تأثير اللمعان العنابي لزر
 *     "تأكيد الطلب" هناك (بدل اللمعان الأحمر السابق).
 *   - خلفية الحاوية الرئيسية (.ez-product-detail) وخلفيتها بنقاط التوقف
 *     المتوسطة/الكبيرة (تابلت وكمبيوتر) أصبحت شفافة بالكامل بدل الأسود
 *     شبه الشفاف السابق (rgba(8,8,8,.55) / rgba(11,11,11,.55)) - تمامًا
 *     كما طُلب، بنفس منطق checkout.php الذي يترك الخلفية للثيم العام
 *     وتُعطى البطاقات نفسها فقط خلفيتها الخاصة.
 *   لا تغيير إطلاقًا على أي كلاس/هيكل HTML أو منطق JS - تحديث ألوان فقط.
 *
 * [تحديث التنقل العلوي - بناءً على طلب صريح] حُذفت بالكامل تنسيقات
 * مسار التنقل القديم (.ez-breadcrumb و .ez-breadcrumb-divider وتوابعها)
 * لأن العنصر نفسه حُذف من views/product-detail.php، واستُبدلت بتنسيقات
 * الشريط العلوي الجديد (.ez-pd-topbar) الذي يحتوي زر "متابعة التسوق"
 * (.ez-pd-back) وزرّي المفضلة/المشاركة (.ez-pd-action-btn)، بنفس الهوية
 * البصرية لبطاقة checkout.php (خلفية داكنة متدرجة + حدود وخط علوي ذهبي).
 * ============================================================
 */

@keyframes ezFadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ezFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ezPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes ezPulseShadow { 0%, 100% { box-shadow: 0 0 15px rgba(155, 7, 27, 0.4); } 50% { box-shadow: 0 0 25px rgba(155, 7, 27, 0.7), 0 0 40px rgba(191, 149, 63, 0.4); } }
@keyframes ezShimmer { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }
@keyframes ezSlideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ezSlideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes ezSlideInUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ezSlideOutDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@keyframes luxuryGlow { 0%, 100% { box-shadow: 0 0 20px rgba(191, 149, 63, 0.15), 0 0 40px rgba(155, 7, 27, 0.08); } 50% { box-shadow: 0 0 30px rgba(191, 149, 63, 0.3), 0 0 60px rgba(155, 7, 27, 0.15); } }
@keyframes borderGlow { 0%, 100% { border-color: rgba(191, 149, 63, 0.3); } 50% { border-color: rgba(191, 149, 63, 0.6); } }
@keyframes floatUpDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shimmerBg { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

/* إعادة ضبط محصورة داخل عنصر الصفحة فقط (بدل `* {}` الشاملة) */
.ez-product-detail,
.ez-product-detail * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: transparent;
    color: #fff;
    overflow-x: hidden;
    padding-bottom: 150px;
}

.ez-product-detail {
    /* ═══ متغيرات الهوية البصرية - نفس متغيرات checkout.php بالضبط ═══ */
    --pd-burgundy: #65000f;
    --pd-burgundy-dark: #2c0008;
    --pd-burgundy-light: #9b071b;
    --pd-gold: #d4af37;
    --pd-gold-light: #f1df9a;
    --pd-gold-gradient: linear-gradient(145deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --pd-card-bg: linear-gradient(165deg, rgba(20, 9, 14, 0.97) 0%, rgba(14, 14, 20, 0.98) 50%, rgba(8, 5, 9, 0.99) 100%);
    --pd-card-glow: radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.07) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(107, 13, 35, 0.12) 0%, transparent 50%);
    --pd-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(212, 175, 55, 0.3);
    --pd-input-bg: rgba(13, 11, 15, 0.8);
    --pd-border-color: rgba(212, 175, 55, 0.25);
    --pd-border-soft: rgba(212, 175, 55, 0.15);
    --pd-border-focus: #bf953f;
    --pd-text-muted: #999999;
    --pd-text-dim: #6b6b6b;
    --pd-error-red: #ff334b;
    --pd-success-green: #4caf50;

    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: transparent;
    color: #fff;
    padding: 15px;
    overflow-x: hidden;
    width: 100%;
}

.ez-product-detail a { text-decoration: none; color: inherit; }
.ez-product-detail ul { list-style: none; }

.ez-product-detail .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ez-product-detail .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.ez-product-detail .pulse-shadow { animation: ezPulseShadow 2s ease-in-out infinite; }

.gold-metallic-text {
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ez-cart-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: var(--pd-card-bg); border: 1px solid #bf953f; color: #fff;
    padding: 14px 24px; border-radius: 14px; z-index: 2000; font-size: 14px;
    font-weight: 700; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(212, 175, 55, 0.3);
    animation: ezSlideInRight 0.4s ease forwards; white-space: nowrap;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.ez-cart-toast i {
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
}
.ez-cart-toast.hiding { animation: ezSlideOutRight 0.4s ease forwards; }
.ez-cart-toast.warning { border-color: #ff9800; }
.ez-cart-toast.warning i { color: #ff9800; -webkit-text-fill-color: initial; }

/* ============================================================
   شريط "متابعة التسوق" العلوي - بديل مسار التنقل (breadcrumb) القديم
   ============================================================ */
.ez-product-detail .ez-pd-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 15px; margin-bottom: 15px;
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--pd-card-shadow);
    position: relative; overflow: hidden;
}
.ez-product-detail .ez-pd-topbar::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(241, 223, 154, 0.7), rgba(212, 175, 55, 0.45), transparent);
}
.ez-product-detail .ez-pd-back {
    display: flex; align-items: center; gap: 10px;
    background: none; border: none; padding: 0;
    color: var(--pd-gold-light); font-size: 15px; font-weight: 800;
    font-family: inherit; cursor: pointer; transition: color 0.3s ease;
}
.ez-product-detail .ez-pd-back:hover { color: #ffffff; }
.ez-product-detail .ez-pd-back-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pd-input-bg); border: 1px solid var(--pd-border-color);
    color: var(--pd-gold); font-size: 24px; line-height: 1;
    transition: transform 0.3s ease;
}
.ez-product-detail .ez-pd-back:hover .ez-pd-back-circle { transform: translateX(5px); }
.ez-product-detail .ez-pd-topbar-actions { display: flex; gap: 10px; }
.ez-product-detail .ez-pd-action-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pd-input-bg); border: 1px solid var(--pd-border-color);
    cursor: pointer; transition: all 0.3s ease;
}
.ez-product-detail .ez-pd-action-btn:hover { background: rgba(101, 0, 15, 0.35); border-color: rgba(212, 175, 55, 0.45); }
.ez-product-detail .ez-pd-action-btn svg {
    width: 19px; height: 19px; fill: none; stroke: var(--pd-gold);
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: all 0.3s ease;
}
.ez-product-detail .ez-pd-action-btn:hover svg { stroke: var(--pd-gold-light); transform: scale(1.08); }
.ez-product-detail .ez-pd-action-btn#ezWishlistBtn.active svg { fill: var(--pd-gold); }

.ez-product-detail .product-hero {
    position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
    background: var(--pd-card-glow), var(--pd-card-bg);
    display: flex; justify-content: center; align-items: center;
    border-radius: 20px; border: 1px solid var(--pd-border-color);
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .slider-container { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.ez-product-detail .product-slide-img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; padding: 0; opacity: 0; transition: opacity 0.5s ease; }
.ez-product-detail .product-slide-img.active { opacity: 1; z-index: 2; }

.ez-product-detail .best-seller-badge {
    position: absolute; top: 20px; right: 20px;
    background: rgba(20, 9, 14, 0.85);
    border: 1px solid #bf953f;
    background-image: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; z-index: 5; backdrop-filter: blur(10px);
}
.ez-product-detail .best-seller-badge i { color: #ff9800; -webkit-text-fill-color: initial; margin-left: 5px; }

.ez-product-detail .hero-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(5, 4, 6, 0.65); border: 1px solid var(--pd-border-color); color: #fff; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 5; backdrop-filter: blur(5px); }
.ez-product-detail .hero-nav-btn.right { right: 15px; }
.ez-product-detail .hero-nav-btn.left { left: 15px; }

.ez-product-detail .hero-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.ez-product-detail .hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; }
.ez-product-detail .hero-dots span.active {
    background: var(--pd-gold-gradient);
    width: 24px; border-radius: 12px;
}

.ez-product-detail .product-content { padding: 10px 0; }
.ez-product-detail .product-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: right; line-height: 1.4; }
.ez-product-detail .product-subtitle { font-size: 13px; color: var(--pd-text-muted); line-height: 1.6; margin-bottom: 15px; text-align: right; }

.ez-product-detail .price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.ez-product-detail .price {
    font-size: 26px; font-weight: 800;
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ez-product-detail .price span { font-size: 14px; font-weight: normal; color: var(--pd-text-muted); margin-right: 5px; -webkit-text-fill-color: var(--pd-text-muted); }
.ez-product-detail .rating { display: flex; align-items: center; color: var(--pd-text-muted); font-size: 13px; }
.ez-product-detail .stars {
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-left: 5px; font-size: 12px; display: inline-block;
}

.ez-product-detail .flash-sale {
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 14px; padding: 16px; margin-bottom: 20px;
    position: relative; overflow: hidden;
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .flash-sale::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(191, 149, 63, 0.08) 50%, transparent 60%); animation: ezShimmer 3s infinite; }
.ez-product-detail .flash-sale-header { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--pd-error-red); }
.ez-product-detail .flash-sale-header i { color: #ff9800; font-size: 16px; }
.ez-product-detail .flash-sale-prices { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ez-product-detail .old-price { font-size: 16px; color: var(--pd-text-dim); text-decoration: line-through; font-weight: 500; }
.ez-product-detail .new-price {
    font-size: 28px; font-weight: 800;
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ez-product-detail .new-price span { font-size: 14px; font-weight: normal; color: var(--pd-text-muted); -webkit-text-fill-color: var(--pd-text-muted); }
.ez-product-detail .discount-badge { background: linear-gradient(135deg, #ff334b, #b3001f); color: #fff; padding: 3px 10px; border-radius: 15px; font-size: 11px; font-weight: 700; }
.ez-product-detail .countdown-timer { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--pd-text-muted); }
.ez-product-detail .countdown-timer span {
    background: var(--pd-input-bg); border: 1px solid var(--pd-border-soft); padding: 4px 8px; border-radius: 6px;
    background-image: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-weight: 700; font-size: 13px; min-width: 28px; text-align: center;
}
.ez-product-detail .countdown-timer .separator {
    background: transparent; border: none;
    background-image: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-size: 15px; padding: 0; min-width: auto;
}

.ez-product-detail .features-row { display: flex; justify-content: space-between; border-top: 1px solid var(--pd-border-soft); border-bottom: 1px solid var(--pd-border-soft); padding: 14px 0; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.ez-product-detail .feature-box { display: flex; align-items: center; font-size: 12px; color: #e5e5e5; }
.ez-product-detail .feature-box i {
    margin-left: 8px;
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-size: 15px;
}

.variation-bar {
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 16px; padding: 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--pd-card-shadow); margin-bottom: 20px;
}
.variation-section { margin-bottom: 20px; }
.variation-section:last-child { margin-bottom: 0; }
.variation-label { font-size: 0.7rem; font-weight: 600; color: var(--pd-text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.variation-label i { background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 0.8rem; }
.variation-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to left, rgba(191, 149, 63, 0.4), transparent); }
.variation-options { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; flex-wrap: nowrap; justify-content: flex-start; }
.variation-options::-webkit-scrollbar { display: none; }
.variation-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; padding: 4px; border-radius: 16px; background: transparent; min-width: 64px; }
.variation-item .img-wrapper { width: 56px; height: 56px; background: var(--pd-input-bg); border-radius: 16px; border: 2px solid var(--pd-border-soft); display: flex; justify-content: center; align-items: center; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.variation-item .img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s ease; }
.variation-item.active .img-wrapper { border: 2px solid #bf953f; box-shadow: 0 0 25px rgba(191, 149, 63, 0.35), inset 0 0 20px rgba(191, 149, 63, 0.1); transform: scale(1.05); }
.variation-item.active .img-wrapper::after { content: ''; position: absolute; inset: -2px; border-radius: 18px; background: linear-gradient(135deg, rgba(191, 149, 63, 0.2), transparent); z-index: 0; }
.variation-item .item-name { font-size: 0.6rem; color: var(--pd-text-muted); text-align: center; margin-top: 6px; font-weight: 500; letter-spacing: 0.3px; transition: all 0.3s ease; }
.variation-item.active .item-name { background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.variation-item .item-price { font-size: 0.55rem; color: var(--pd-text-dim); margin-top: 1px; font-weight: 400; letter-spacing: 0.2px; }
.variation-item.active .item-price { color: var(--pd-text-muted); }
.variation-item.out-of-stock { opacity: 0.3; pointer-events: none; position: relative; }
.variation-item.out-of-stock::after { content: 'نفد'; position: absolute; top: 4px; right: 4px; background: var(--pd-error-red); color: #fff; font-size: 6px; padding: 2px 6px; border-radius: 10px; font-weight: 700; letter-spacing: 0.5px; z-index: 2; }
.variation-item.out-of-stock .img-wrapper { filter: grayscale(0.8); }
.color-grid-6 { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; justify-content: space-between; }
.color-grid-6 .variation-item { flex: 0 0 calc(16.666% - 6px); min-width: 48px; }
.color-grid-6 .variation-item .img-wrapper { width: 100%; aspect-ratio: 1 / 1; height: auto; max-width: 60px; }

.ez-product-detail .bottom-action-bar {
    position: fixed; bottom: 0; left: 0; right: 0; width: 100%;
    background: rgba(5, 4, 6, 0.95); border: none; border-top: 1px solid var(--pd-border-color);
    border-radius: 16px 16px 0 0; padding: 12px 18px; z-index: 99;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px 16px; box-shadow: 0 -10px 40px rgba(0,0,0,0.85);
    animation: ezSlideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ez-product-detail .ez-left-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ez-product-detail .ez-qty-selector { display: flex; align-items: center; gap: 8px; background: rgba(212, 175, 55, 0.06); border: 1px solid var(--pd-border-soft); border-radius: 10px; padding: 4px 6px; }
.ez-product-detail .ez-qty-btn { background: rgba(212, 175, 55, 0.08); border: none; color: #ffffff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.ez-product-detail .ez-qty-btn:hover { background: var(--pd-gold-gradient); color: #0b0b0f; }
.ez-product-detail .ez-qty-number { font-size: 1.1rem; font-weight: bold; min-width: 26px; text-align: center; color: #ffffff; }
.ez-product-detail .ez-bar-prices { display: flex; align-items: center; gap: 8px; }
.ez-product-detail .ez-bar-old-price { font-size: 0.85rem; color: var(--pd-text-muted); text-decoration: line-through; }
.ez-product-detail .ez-bar-current-price { font-size: 1.3rem; font-weight: 900; background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ez-product-detail .ez-bar-current-price span { font-size: 0.9rem; font-weight: normal; }
.ez-product-detail .ez-bar-buttons-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ez-product-detail .btn-buy, .ez-product-detail .btn-cart { padding: 10px 16px; border-radius: 12px; font-size: 0.9rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.3s ease; border: none; font-family: inherit; white-space: nowrap; }

/* زر "اطلب الآن" - نفس أسلوب زر "تأكيد الطلب" الذهبي بصفحة إتمام الطلب،
   بنفس تأثير اللمعان العنابي (submit-btn::after هناك) بدل الأحمر السابق */
.ez-product-detail .btn-buy { background: var(--pd-gold-gradient); color: #0b0b0f; position: relative; overflow: hidden; box-shadow: 0 6px 25px rgba(212, 175, 55, 0.35), 0 0 20px rgba(155, 7, 27, 0.2); }
.ez-product-detail .btn-buy::after { content: ''; position: absolute; top: -30%; left: -30%; width: 80%; height: 160%; background: linear-gradient(90deg, transparent, rgba(155, 7, 27, 0.35), rgba(180, 20, 40, 0.55), rgba(155, 7, 27, 0.35), transparent); transform: rotate(25deg); transition: left 0.5s ease; pointer-events: none; }
.ez-product-detail .btn-buy:hover::after { left: 120%; }
.ez-product-detail .btn-buy:hover { transform: scale(1.02); box-shadow: 0 10px 35px rgba(212, 175, 55, 0.55), 0 0 30px rgba(155, 7, 27, 0.3); }
.ez-product-detail .btn-buy:active { transform: scale(0.97); transition: 0.1s; }

/* زر "أضف للسلة" - نفس أسلوب زر "تطبيق الخصم" العنابي بصفحة إتمام الطلب */
.ez-product-detail .btn-cart { background: rgba(101, 0, 15, 0.2); border: 1.2px solid rgba(212, 175, 55, 0.3); color: var(--pd-gold); position: relative; overflow: hidden; }
.ez-product-detail .btn-cart::after { content: ''; position: absolute; top: -30%; left: -30%; width: 80%; height: 160%; background: rgba(155, 7, 27, 0.3); transform: rotate(25deg); transition: left 0.5s ease; pointer-events: none; }
.ez-product-detail .btn-cart:hover::after { left: 120%; }
.ez-product-detail .btn-cart:hover { background: rgba(120, 0, 20, 0.3); border-color: rgba(212, 175, 55, 0.5); color: var(--pd-gold-light); transform: scale(1.02); box-shadow: 0 10px 30px rgba(101, 0, 15, 0.55); }
.ez-product-detail .btn-cart:active { background: rgba(80, 0, 12, 0.4); border-color: rgba(212, 175, 55, 0.65); color: var(--pd-gold-light); transform: scale(0.97); transition: 0.1s; }

.ez-product-detail .accordion-section {
    margin-top: 15px; background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 16px; padding: 4px 16px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .accordion-item { border-bottom: 1px solid var(--pd-border-soft); }
.ez-product-detail .accordion-item:last-child { border-bottom: none; }
.ez-product-detail .accordion-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; }
.ez-product-detail .accordion-header div { display: flex; align-items: center; font-size: 14px; font-weight: 600; }
.ez-product-detail .accordion-header div i { margin-left: 10px; background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 16px; }
.ez-product-detail .accordion-header i.fa-chevron-down { color: var(--pd-text-dim); -webkit-text-fill-color: initial; font-size: 12px; transition: transform 0.3s ease; }
.ez-product-detail .accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.5s ease; padding: 0; }
.ez-product-detail .accordion-body.open { max-height: 8000px; padding: 0 0 20px 0; }
.ez-product-detail .desc-text { font-size: 13px; color: rgba(255, 255, 255, 0.75); line-height: 1.8; text-align: right; }

.ez-product-detail .review-summary {
    display: flex; align-items: center; gap: 15px; padding: 16px;
    background: var(--pd-card-glow), var(--pd-card-bg);
    border-radius: 14px; border: 1px solid var(--pd-border-color); margin-bottom: 16px; flex-wrap: wrap;
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .review-summary .big-rating { font-size: 38px; font-weight: 800; background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ez-product-detail .review-summary .rating-details { flex: 1; min-width: 120px; }
.ez-product-detail .review-summary .rating-details .stars-row { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.ez-product-detail .review-summary .rating-details .stars-row i { background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 14px; }
.ez-product-detail .review-summary .rating-details .count { font-size: 12px; color: var(--pd-text-muted); }
.ez-product-detail .satisfaction-bar { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.ez-product-detail .satisfaction-fill { height: 100%; background: var(--pd-gold-gradient); border-radius: 4px; }
.ez-product-detail .satisfaction-text { font-size: 10px; color: var(--pd-text-muted); margin-top: 5px; text-align: left; }

.ez-product-detail .filter-buttons { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ez-product-detail .filter-buttons::-webkit-scrollbar { display: none; }
.ez-product-detail .filter-btn { background: var(--pd-input-bg); border: 1px solid var(--pd-border-soft); color: var(--pd-text-muted); padding: 7px 16px; border-radius: 20px; font-size: 11px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ez-product-detail .filter-btn.active { background: rgba(191, 149, 63, 0.08); border-color: #bf953f; background-image: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }

.ez-product-detail .review-card {
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 14px; padding: 16px; margin-bottom: 12px; text-align: right;
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .review-card.ez-hidden { display: none !important; }
.ez-product-detail .review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ez-product-detail .reviewer-name { font-weight: 700; font-size: 13px; }
.ez-product-detail .reviewer-badge { background: rgba(191, 149, 63, 0.15); border: 1px solid rgba(191, 149, 63, 0.3); background-image: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 9px; padding: 3px 8px; border-radius: 10px; margin-right: 6px; }
.ez-product-detail .reviewer-badge i { -webkit-text-fill-color: initial; color: #bf953f; }
.ez-product-detail .review-date { font-size: 10px; color: var(--pd-text-dim); }
.ez-product-detail .review-stars { background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-size: 11px; display: inline-block; }
.ez-product-detail .review-text { font-size: 12px; color: var(--pd-text-muted); line-height: 1.7; margin-top: 5px; }
.ez-product-detail .review-images { display: flex; gap: 8px; margin-top: 10px; }
.ez-product-detail .review-images img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid var(--pd-border-soft); cursor: pointer; }

.ez-product-detail .show-more-reviews-btn { width: 100%; padding: 14px; background: transparent; border: 1px dashed var(--pd-border-color); color: var(--pd-text-muted); border-radius: 14px; font-family: inherit; font-weight: 600; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 5px; }

.ez-product-detail .login-required-message {
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 14px; padding: 20px; text-align: center; margin-top: 15px;
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .login-required-message i { font-size: 32px; background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; display: block; }
.ez-product-detail .login-required-message p { font-size: 12px; color: var(--pd-text-muted); margin-bottom: 14px; }
.ez-product-detail .login-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--pd-gold-gradient); color: #0b0b0f; padding: 10px 24px; border-radius: 25px; font-family: inherit; font-weight: 700; font-size: 12px; cursor: pointer; border: none; }

.ez-product-detail .add-review-section {
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 14px; padding: 16px; margin-top: 15px; text-align: right;
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .add-review-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ez-product-detail .logged-in-info { font-size: 11px; color: var(--pd-text-dim); margin-bottom: 10px; }
.ez-product-detail .logged-in-info strong { background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ez-product-detail .name-edit-input { background: var(--pd-input-bg); border: 1px solid var(--pd-border-soft); border-radius: 8px; color: #fff; padding: 8px 12px; font-family: inherit; font-size: 12px; width: 100%; margin-bottom: 10px; }
.ez-product-detail .name-edit-input:focus { border-color: #bf953f; outline: none; }
.ez-product-detail .star-rating-input { display: flex; gap: 6px; margin-bottom: 14px; direction: ltr; justify-content: flex-end; }
.ez-product-detail .star-rating-input i { font-size: 24px; color: rgba(255, 255, 255, 0.15); cursor: pointer; }
.ez-product-detail .star-rating-input i.active, .ez-product-detail .star-rating-input i:hover { background: var(--pd-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ez-product-detail .review-textarea { width: 100%; background: var(--pd-input-bg); border: 1px solid var(--pd-border-soft); border-radius: 10px; color: #fff; padding: 12px; font-family: inherit; font-size: 12px; resize: vertical; min-height: 80px; margin-bottom: 12px; }
.ez-product-detail .review-textarea:focus { border-color: #bf953f; outline: none; box-shadow: 0 0 0 3px rgba(191, 149, 63, 0.06), 0 0 20px rgba(212, 175, 55, 0.08); }

.ez-product-detail .image-upload-area { margin-bottom: 12px; }
.ez-product-detail .image-upload-label { display: inline-flex; align-items: center; gap: 6px; background: var(--pd-input-bg); border: 1px dashed var(--pd-border-color); border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: 11px; color: var(--pd-text-muted); transition: all 0.3s ease; }
.ez-product-detail .image-upload-label:hover { border-color: #bf953f; color: var(--pd-gold); }
.ez-product-detail .image-upload-label i { font-size: 14px; }
.ez-product-detail .uploaded-images-preview { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ez-product-detail .uploaded-image-item { position: relative; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; border: 1px solid var(--pd-border-soft); }
.ez-product-detail .uploaded-image-item img { width: 100%; height: 100%; object-fit: cover; }
.ez-product-detail .uploaded-image-item .remove-image { position: absolute; top: 2px; right: 2px; background: rgba(255, 51, 75, 0.85); border: none; color: #fff; width: 18px; height: 18px; border-radius: 50%; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.ez-product-detail .submit-review-btn { background: linear-gradient(135deg, #9b071b, #65000f); border: none; color: #fff; padding: 10px 20px; border-radius: 10px; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ez-product-detail .submit-review-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* عارض صور التقييمات المكبّر */
.ez-product-detail .image-viewer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.97); z-index: 3000;
    display: none; justify-content: center; align-items: center;
}
.ez-product-detail .image-viewer-overlay.active { display: flex; }
.ez-product-detail .image-viewer-close {
    position: absolute; top: 20px; left: 20px;
    background: rgba(212, 175, 55, 0.12); border: 1px solid var(--pd-border-color);
    color: #fff; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; font-size: 18px; z-index: 3001;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.ez-product-detail .image-viewer-close:hover { background: rgba(212, 175, 55, 0.2); }
.ez-product-detail .image-viewer-container {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; justify-content: center; align-items: center;
}
.ez-product-detail .image-viewer-container img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    border-radius: 12px;
}

/* ============ كروت المنتجات المقترحة ============ */
.ez-related-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ez-related-section-title i {
    font-size: 1.2rem;
}

.ez-product-detail .related-products {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(191, 149, 63, 0.3) transparent;
}
.ez-product-detail .related-products::-webkit-scrollbar {
    height: 4px;
}
.ez-product-detail .related-products::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}
.ez-product-detail .related-products::-webkit-scrollbar-thumb {
    background: rgba(191, 149, 63, 0.3);
    border-radius: 4px;
}

.ez-product-detail .related-item {
    flex-shrink: 0;
    width: 170px;
    height: 260px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: luxuryGlow 3s ease-in-out infinite;
}
.ez-product-detail .related-item:hover {
    transform: translateY(-8px);
    border-color: rgba(191, 149, 63, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(191, 149, 63, 0.2), 0 0 60px rgba(155, 7, 27, 0.12);
    animation: none;
}

.ez-product-detail .related-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}
.ez-product-detail .related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
}
.ez-product-detail .related-item:hover img {
    transform: scale(1.05);
}

.ez-product-detail .related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.7) 15%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.05) 65%,
        transparent 100%);
    z-index: 2;
    transition: all 0.5s ease;
    pointer-events: none;
}
.ez-product-detail .related-item:hover .related-overlay {
    background: linear-gradient(to top,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.6) 15%,
        rgba(0,0,0,0.2) 40%,
        rgba(0,0,0,0.02) 65%,
        transparent 100%);
}

.ez-product-detail .related-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    z-index: 4;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}
.ez-product-detail .related-badge.sale {
    background: linear-gradient(135deg, rgba(155, 7, 27, 0.85), rgba(101, 0, 15, 0.85));
    color: #fff;
}
.ez-product-detail .related-badge.new {
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.8), rgba(170, 119, 28, 0.8));
    color: #000;
}
.ez-product-detail .related-badge.bestseller {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 165, 0, 0.8));
    color: #000;
}

.ez-product-detail .related-content {
    position: relative;
    z-index: 3;
    padding: 14px 12px 12px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.ez-product-detail .related-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 9px;
    margin-bottom: 4px;
    order: -1;
}
.ez-product-detail .related-rating .rating-count {
    font-size: 8px;
    color: var(--pd-text-muted);
    -webkit-text-fill-color: var(--pd-text-muted);
    margin-right: 4px;
}
.ez-product-detail .related-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    order: -2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
    color: var(--pd-gold-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.ez-product-detail .related-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.ez-product-detail .related-price {
    font-size: 16px;
    font-weight: 800;
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ez-product-detail .related-price span {
    font-size: 10px;
    color: var(--pd-text-muted);
    font-weight: normal;
    -webkit-text-fill-color: var(--pd-text-muted);
}
.ez-product-detail .related-old-price {
    font-size: 10px;
    color: var(--pd-text-dim);
    text-decoration: line-through;
    -webkit-text-fill-color: var(--pd-text-dim);
}
.ez-product-detail .related-discount-badge-mini {
    font-size: 8px;
    background: rgba(255, 51, 75, 0.15);
    color: var(--pd-error-red);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
}

/* نافذة منبثقة */
.ez-product-detail .popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1000; display: none; justify-content: center; align-items: flex-end; }
.ez-product-detail .popup-overlay.active { display: flex; }
.ez-product-detail .popup-content {
    background: var(--pd-card-glow), var(--pd-card-bg);
    border: 1px solid var(--pd-border-color); border-radius: 20px 20px 0 0; width: 100%; max-width: 480px; padding: 20px; position: relative; max-height: 85vh; overflow-y: auto;
    box-shadow: var(--pd-card-shadow);
}
.ez-product-detail .popup-close { position: absolute; top: 15px; left: 15px; background: rgba(212, 175, 55, 0.1); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ez-product-detail .popup-product-info { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; }
.ez-product-detail .popup-product-img { width: 65px; height: 65px; border-radius: 12px; object-fit: cover; border: 1px solid var(--pd-border-soft); }
.ez-product-detail .popup-product-details h3 { font-size: 14px; margin-bottom: 4px; }
.ez-product-detail .popup-product-details p { font-size: 11px; color: var(--pd-text-muted); }

.popup-variation-section { margin-bottom: 20px; }
.popup-variation-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pd-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.popup-variation-label i {
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8rem;
}
.popup-variation-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, rgba(191, 149, 63, 0.4), transparent);
}
.popup-variation-options {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.popup-variation-options::-webkit-scrollbar { display: none; }

.popup-variation-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 6px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.02);
    border: 1.5px solid var(--pd-border-soft);
    min-width: 70px;
    max-width: 90px;
}
.popup-variation-item:hover {
    background: rgba(191, 149, 63, 0.05);
    border-color: rgba(191, 149, 63, 0.3);
}
.popup-variation-item .popup-img-wrapper {
    width: 52px;
    height: 52px;
    background: var(--pd-input-bg);
    border-radius: 14px;
    border: 2px solid var(--pd-border-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.popup-variation-item .popup-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.popup-variation-item.active {
    border-color: rgba(191, 149, 63, 0.6);
    background: rgba(191, 149, 63, 0.08);
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.15);
}
.popup-variation-item.active .popup-img-wrapper {
    border: 2px solid #bf953f;
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.3), inset 0 0 15px rgba(191, 149, 63, 0.08);
    transform: scale(1.05);
}
.popup-variation-item .popup-item-name {
    font-size: 0.65rem;
    color: var(--pd-text-muted);
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}
.popup-variation-item.active .popup-item-name {
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.popup-variation-item .popup-item-price {
    font-size: 0.6rem;
    color: var(--pd-text-dim);
    margin-top: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.popup-variation-item.active .popup-item-price {
    color: #bf953f;
    font-weight: 700;
}

.popup-variation-item.out-of-stock {
    opacity: 0.35;
    pointer-events: none;
}
.popup-variation-item.out-of-stock::after {
    content: 'نفد';
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--pd-error-red);
    color: #fff;
    font-size: 7px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ez-product-detail .popup-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid rgba(191, 149, 63, 0.2);
    border-bottom: 1px solid rgba(191, 149, 63, 0.2);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(191, 149, 63, 0.03);
    padding: 14px 16px;
    border-radius: 12px;
}
.ez-product-detail .popup-total .total-label {
    color: var(--pd-text-muted);
    font-size: 12px;
}
.ez-product-detail .popup-total .total-price {
    background: var(--pd-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 800;
}
.ez-product-detail .popup-total .total-price .currency {
    font-size: 13px;
    font-weight: 500;
}
.ez-product-detail .popup-confirm-btn {
    width: 100%;
    padding: 14px;
    background: var(--pd-gold-gradient);
    border: none;
    border-radius: 14px;
    color: #0b0b0f;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(191, 149, 63, 0.2);
}
.ez-product-detail .popup-confirm-btn:hover {
    box-shadow: 0 12px 35px rgba(191, 149, 63, 0.35);
    transform: translateY(-2px);
}
.ez-product-detail .popup-confirm-btn:active {
    transform: scale(0.97);
}

.ez-product-detail .desktop-spacer { display: none; }

/* صفحة المنتج على الجوال فقط: إلغاء هوامش main */
@media (max-width: 767px) {
    main { padding: 73px 0 20px !important; }
}

@media (max-width: 550px) {
    .ez-product-detail .bottom-action-bar { flex-direction: column; align-items: stretch; padding: 14px; }
    .ez-product-detail .ez-left-group { justify-content: space-between; width: 100%; }
    .ez-product-detail .ez-bar-buttons-row { width: 100%; justify-content: stretch; }
    .ez-product-detail .btn-buy, .ez-product-detail .btn-cart { flex: 1; white-space: nowrap; padding: 10px 8px; font-size: 0.8rem; }
    .ez-product-detail .related-item { width: 150px; height: 230px; }
    .popup-variation-item { min-width: 60px; max-width: 75px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    body { padding-bottom: 150px; background-color: transparent; }
    .ez-product-detail { max-width: 100%; width: 100%; margin: 0; padding: 30px 40px; background: transparent; border: none; border-radius: 0; min-height: 100vh; }
    .ez-product-detail .ez-pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: 100%; width: 100%; }
    .ez-product-detail .product-hero { position: sticky; top: 30px; }
    .ez-product-detail .product-content { padding: 0; }
    .ez-product-detail .product-title { font-size: 28px; }
    .ez-product-detail .product-subtitle { font-size: 14px; }
    .ez-product-detail .price { font-size: 30px; }
    .ez-product-detail .new-price { font-size: 28px; }
    .ez-product-detail .btn-buy, .ez-product-detail .btn-cart { padding: 14px 20px; font-size: 13px; }
    .ez-product-detail .desktop-spacer { display: block; height: 60px; }
    .ez-product-detail .ez-pd-full-width { grid-column: 1 / -1; }
    .ez-product-detail .related-item { width: 180px; height: 260px; }
    .ez-product-detail .popup-overlay { align-items: center; }
    .ez-product-detail .popup-content { border-radius: 20px; max-width: 450px; }
}

@media (min-width: 992px) {
    body { padding-bottom: 150px; margin: 0; background-color: transparent; min-height: 100vh; }
    .ez-product-detail { max-width: 100%; width: 100%; margin: 0; padding: 50px 80px; background: transparent; border: none; border-radius: 0; min-height: 100vh; display: flex; align-items: center; }
    .ez-product-detail .ez-pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; max-width: 100%; width: 100%; }
    .ez-product-detail .product-hero { position: sticky; top: 50px; border-radius: 24px; aspect-ratio: 1 / 1; max-height: calc(100vh - 100px); }
    .ez-product-detail .product-content { padding: 0; max-height: calc(100vh - 100px); overflow-y: auto; padding-left: 10px; }
    .ez-product-detail .product-content::-webkit-scrollbar { width: 4px; }
    .ez-product-detail .product-content::-webkit-scrollbar-track { background: rgba(13, 11, 15, 0.6); border-radius: 4px; }
    .ez-product-detail .product-content::-webkit-scrollbar-thumb { background: var(--pd-border-color); border-radius: 4px; }
    .ez-product-detail .product-title { font-size: 36px; margin-bottom: 12px; }
    .ez-product-detail .product-subtitle { font-size: 16px; margin-bottom: 20px; }
    .ez-product-detail .price { font-size: 38px; }
    .ez-product-detail .price span { font-size: 16px; }
    .ez-product-detail .new-price { font-size: 36px; }
    .ez-product-detail .rating { font-size: 14px; }
    .ez-product-detail .stars { font-size: 13px; }
    .ez-product-detail .flash-sale { padding: 20px; margin-bottom: 25px; border-radius: 16px; }
    .ez-product-detail .features-row { padding: 16px 0; margin-bottom: 25px; }
    .ez-product-detail .feature-box { font-size: 13px; }
    .ez-product-detail .feature-box i { font-size: 16px; }
    .variation-bar { margin-bottom: 25px; }
    .ez-product-detail .btn-buy, .ez-product-detail .btn-cart { padding: 16px 24px; font-size: 15px; }
    .ez-product-detail .ez-bar-old-price { font-size: 1rem; }
    .ez-product-detail .ez-bar-current-price { font-size: 1.5rem; }
    .ez-product-detail .ez-qty-number { font-size: 1.2rem; }
    .ez-product-detail .desktop-spacer { display: block; height: 80px; }
    .ez-product-detail .accordion-section { margin-top: 20px; }
    .ez-product-detail .accordion-header div { font-size: 16px; }
    .ez-product-detail .accordion-header div i { font-size: 18px; margin-left: 12px; }
    .ez-product-detail .desc-text { font-size: 15px; }
    .ez-product-detail .ez-pd-full-width { grid-column: 1 / -1; }
    .ez-product-detail .related-item { width: 200px; height: 280px; border-radius: 22px; }
    .ez-product-detail .related-title { font-size: 13px; }
    .ez-product-detail .related-price { font-size: 18px; }
    .ez-product-detail .popup-overlay { align-items: center; }
    .ez-product-detail .popup-content { border-radius: 24px; max-width: 500px; }
    .ez-product-detail .review-summary { padding: 20px; border-radius: 16px; }
    .ez-product-detail .review-summary .big-rating { font-size: 42px; }
    .ez-product-detail .review-card { padding: 18px; border-radius: 16px; }
    .ez-product-detail .reviewer-name { font-size: 14px; }
    .ez-product-detail .review-text { font-size: 13px; }
}

/* [محذوف سابقًا] كل قواعد نظام حماية الصور/منع النسخ/رصد أدوات المطوّر/
   العلامة المائية أُزيلت بالكامل بناءً على طلب صريح سابق - لا يوجد أي
   عنصر بـ views/product-detail.php أو product-detail.js يشير لها. */
