﻿/* =========================================
   Bootstrap Modal Override & Sizing
========================================== */
/* تكبير عرض البوب أب */
.brand-modal .modal-dialog {
    max-width: 980px; /* تم زيادة العرض من 850px إلى 980px */
    margin: 1.75rem auto;
}

.brand-modal .modal-content {
    border: none;
    border-radius: 28px;
    background: transparent;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* =========================================
   Main Card Design Area
========================================== */
.brand-modal-design {
    position: relative;
    width: 100%;
    height: 580px; /* تم زيادة الارتفاع من 520px إلى 580px */
    background-color: #121212;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: inherit;
    direction: rtl;
}

/* Background Image Layer */
.brand-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Dark Overlay */
.brand-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 2;
}

/* =========================================
   Close Button & Top Company Logo
========================================== */
/* زر الإغلاق X */
.brand-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    border: none;
    color: #111;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
}

    .brand-modal-close:hover {
        transform: scale(1.1) rotate(90deg);
        background: #ffffff;
    }

/* اللوجو العائم العلوي (NASEEB) */
.brand-modal-company {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    padding: 14px 50px 20px 40px;
    border-bottom-right-radius: 40px;
    z-index: 5;
    box-shadow: 4px 6px 20px rgba(0,0,0,0.2);
    border-bottom: 4px solid #ffb703;
}

    .brand-modal-company img {
        height: 46px;
        max-width: 200px;
        object-fit: contain;
    }

/* =========================================
   Modern Glassmorphism Floating Card (تثبيت الحجم ومنع التمدد)
========================================== */
.brand-modal-info {
    position: absolute;
    bottom: 95px;
    right: 40px;
    /* 1. تثبيت العرض تماماً لمنع التمدد الأفقي */
    width: 460px;
    max-width: 90%;
    /* خلفية زجاجية عصرية شفافة */
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    padding: 28px;
    color: #ffffff;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: right;
    transition: transform 0.3s ease;
    /* 2. كسر الكلمات الطويلة جداً إن وجدت عشان ما تطلعش بره الكارت */
    word-break: break-word;
    overflow-wrap: break-word;
}

.brand-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand-code {
    background-color: #ffb703;
    color: #000000;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
}

.brand-divider {
    width: 2px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
}

/* 1. منع العنوان والـ Badges من تمديد البوكس */
.brand-modal-heading h2 {
    margin: 0;
    font-size: 22px; /* تصغير بسيط ليعطي مساحة للكلمات الطويلة */
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* يضع ... لو العنوان أطول من المساحة */
}

/* الخط الأصفر التجميلي تحت العنوان */
.brand-modal-info::after {
    content: '';
    display: block;
    width: 55px;
    height: 3px;
    background: linear-gradient(90deg, #ffb703, rgba(255, 183, 3, 0.2));
    margin-bottom: 16px;
    border-radius: 2px;
}

/* 2. ضبط فقرة الوصف لتثبيت الارتفاع وإضافة Scrollbar أنيق عند زيادة الكلام */
.brand-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
    text-align: right;
    /* التعديل الجوهري لمنع تكبير البوكس */
    max-height: 75px; /* تثبيت أقصى ارتفاع للفقرة */
    overflow-y: auto; /* إضافة سكرول عند الحاجة فقط */
    padding-left: 5px; /* مسافة بسيطة لراحة العين أثناء السكرول */
}

    /* 3. شكل السكرول بار بيكون شيك وناعم جداً ومخفي تقريباً */
    .brand-modal-text::-webkit-scrollbar {
        width: 4px;
    }
    .brand-modal-text::-webkit-scrollbar-thumb {
        background: rgba(255, 183, 3, 0.5); /* باللون الأصفر المودرن */
        border-radius: 4px;
    }

/* المميزات والأيقونات العصرية */
.brand-modal-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

.brand-feature {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
}

    .brand-feature:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.15);
    }

.brand-feature-icon {
    color: #ffb703;
    font-size: 22px;
    filter: drop-shadow(0 2px 8px rgba(255, 183, 3, 0.3));
}

.brand-feature span {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

/* =========================================
   Bottom Brand Area
========================================== */
.brand-modal-footer {
    position: relative;
    width: 100%;
    height: 80px; /* زيادة الارتفاع ليتناسب مع الحجم الجديد */
    background-color: #0f1012;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

    /* النقاط الخلفية الهادئة والمودرن */
    .brand-modal-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.2px, transparent 1.2px);
        background-size: 12px 12px;
        opacity: 0.5;
        z-index: 1;
        pointer-events: none;
    }

.brand-modal-cat-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

    .brand-modal-cat-logo img {
        height: 52px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
    }

.brand-modal-footer-name {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.8px;
}

    .brand-modal-footer-name span {
        width: 9px;
        height: 9px;
        background-color: #ffb703;
        border-radius: 50%;
        display: inline-block;
        box-shadow: 0 0 8px #ffb703;
    }

    .brand-modal-footer-name strong {
        font-weight: 700;
    }

/* Responsive */
@media (max-width: 768px) {
    .brand-modal-design {
        height: auto;
        min-height: 580px;
    }

    .brand-modal-info {
        position: relative;
        right: 0;
        bottom: 0;
        width: 92%;
        margin: 100px auto 20px auto;
    }

    .brand-modal-company {
        padding: 10px 30px 15px 20px;
    }

        .brand-modal-company img {
            height: 32px;
        }
}
.brand-modal-footer-name {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.8px;
    /* لعكس الترتيب أوتوماتيكياً */
    flex-direction: row-reverse;
}
/* =========================================
   LTR Support (اللغة الإنجليزية)
========================================== */
[dir="ltr"] .brand-modal-design {
    direction: ltr;
}

[dir="ltr"] .brand-modal-close {
    left: 24px;
    right: auto;
}

[dir="ltr"] .brand-modal-company {
    right: 0;
    left: auto;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 0;
    box-shadow: -4px 6px 20px rgba(0,0,0,0.2);
}

[dir="ltr"] .brand-modal-info {
    left: 40px;
    right: auto;
    text-align: left;
}

[dir="ltr"] .brand-modal-text {
    text-align: left;
}

[dir="ltr"] .brand-modal-footer-name {
    flex-direction: row; /* ضبط اتجاه النقطة والاسم في الإنجليزية */
}
.blumaq-logo {
    width: 150px;
    height: 150px;
}

    .blumaq-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }