/* ===========================================================================
   أنماط موقع دارك عرب - متجر الخدمات الرقمية
   =========================================================================== */

:root {
    --brand: #0d6efd;
    --brand-dark: #0a58ca;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f5f6f8;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* عناوين */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* شريط التنقل */
.navbar { font-size: 0.9rem; }
.navbar-brand { font-size: 1.1rem; }
.nav-link { font-size: 0.85rem; padding: 8px 12px !important; }

/* بطاقات المنتجات */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}
.product-card .card-body { padding: 0.75rem; }
.product-card .card-title { font-size: 0.85rem; margin-bottom: 4px; }
.product-card .card-text { font-size: 0.8rem; }

/* بطاقة القسم */
.category-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
    border: 1px solid #eef0f3;
    transition: all .15s ease;
}
.category-tile:hover {
    background: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}
.category-tile:hover img { transform: scale(1.15); }

/* أزرار */
.btn { font-size: 0.85rem; padding: 8px 16px; border-radius: 8px; }
.btn-lg { font-size: 0.95rem; padding: 10px 20px; }
.btn-sm { font-size: 0.78rem; padding: 5px 10px; }

/* بطاقات عامة */
.card { border-radius: 12px; }
.card-body { padding: 1rem; }

/* جداول */
.table { font-size: 0.85rem; }
.table th { font-size: 0.8rem; font-weight: 600; }

/* نماذج */
.form-control, .form-select { font-size: 0.85rem; padding: 8px 12px; border-radius: 8px; }
.form-label { font-size: 0.85rem; margin-bottom: 4px; }
.form-text { font-size: 0.75rem; }

/* تنبيهات */
.alert { font-size: 0.85rem; padding: 10px 14px; border-radius: 10px; }

/* شارات */
.badge { font-size: 0.72rem; padding: 4px 8px; }

/* فواصل */
hr { margin: 1rem 0; }

/* breadcrumb */
.breadcrumb { font-size: 0.78rem; }

/* تذييل */
footer { font-size: 0.8rem; }

/* تحسينات الموبايل */
@media (max-width: 768px) {
    body { font-size: 0.85rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }
    .btn { padding: 6px 12px; font-size: 0.8rem; }
    .btn-lg { padding: 8px 16px; font-size: 0.9rem; }
}

/* أدوات مس */
.small, small { font-size: 0.8rem; }
.text-muted { color: #6c757d !important; }
.fw-bold { font-weight: 700; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,.05) !important; }
.rounded-3 { border-radius: 10px !important; }
.rounded-4 { border-radius: 14px !important; }

/* أيقونة المفضلة */
.favourite-btn {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.favourite-btn i { font-size: 1rem; color: #6c757d; transition: color 0.2s; }
.favourite-btn.active { background: rgba(255,255,255,0.95); border-color: rgba(220, 53, 69, 0.3); }
.favourite-btn.active i { color: #dc3545; font-weight: bold; }

/* شريط البحث */
#searchSuggestions { font-size: 0.85rem; }
#searchSuggestions .badge { font-size: 0.8rem; cursor: pointer; }

/* Dark Navy Blue Header & Footer */
.navbar {
    background-color: #0a0e27 !important;
    border-bottom: 1px solid #1a1f3a;
}
.navbar .nav-link {
    color: #c0c5d0 !important;
}
.navbar .nav-link:hover {
    color: #ffffff !important;
}
.navbar .navbar-brand {
    color: #ffffff !important;
}
footer {
    background-color: #0a0e27 !important;
    color: #c0c5d0 !important;
    border-top: 1px solid #1a1f3a;
}
footer a {
    color: #8a8f9a !important;
}
footer a:hover {
    color: #ffffff !important;
}
footer .border-top {
    border-color: #1a1f3a !important;
}
/* Bottom Nav */
.navbar.fixed-bottom {
    background-color: #0a0e27 !important;
    border-top: 1px solid #1a1f3a;
}
.navbar.fixed-bottom a {
    color: #c0c5d0 !important;
}
.navbar.fixed-bottom a:hover {
    color: #ffffff !important;
}


/* تأثير الوميض المحسّن عند الضغط */
@keyframes navyFlash {
    0% { box-shadow: 0 0 0 0 rgba(10, 14, 39, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(10, 14, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 14, 39, 0); }
}

a:active, button:active, .category-tile:active {
    animation: navyFlash 0.6s ease-out;
}

img:active {
    animation: navyFlash 0.6s ease-out;
}

/* رفع أيقونة الشات */
iframe[title*="chat widget"],
iframe[title*="Chat Widget"],
div[id*="tawk"] {
    margin-bottom: 70px !important;
}

/* رفع أيقونة Tawk.to */
iframe[title*="chat widget"],
iframe[title*="Chat Widget"],
iframe[id*="tawk"],
div[id*="tawk"] {
    bottom: 70px !important;
}
