/* =========================================
   1. الهيكل العام والسكرول بار
   ========================================= */
body, #app, .main-wrapper, main, section, .home {
    background-color: #ffffff !important;
    color: #1d1d1f !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f9f9fb; }
::-webkit-scrollbar-thumb { background: #6a1b9a; border-radius: 10px; }

/* =========================================
   2. تأثير قائمة التصنيفات العلوية
   ========================================= */
.nav-link, .s-nav-link {
    position: relative !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
    padding: 10px 15px !important;
}

.nav-link::after, .s-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #6a1b9a;
    transition: all 0.3s ease-in-out !important;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after, 
.s-nav-link:hover::after, .s-nav-link.active::after {
    width: 70%;
}

.nav-link:hover { color: #6a1b9a !important; }

/* =========================================
   3. تطوير صفحة المنتج (Product Page)
   ========================================= */
/* تنسيق الصورة الرئيسية */
.s-product-images-container img, .product-details__image {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

/* السعر البارز في صفحة المنتج */
.s-product-sp-price, .product-details__price {
    color: #6a1b9a !important;
    font-weight: 900 !important;
    font-size: 2rem !important;
    background: #f8f4ff !important;
    padding: 8px 15px !important;
    border-radius: 12px !important;
    display: inline-block !important;
}

/* صندوق الضمان والمعلومات */
.s-product-sp-description, .product-details__description {
    background: #f9f9fb !important;
    border-right: 4px solid #6a1b9a !important;
    padding: 15px !important;
    border-radius: 10px !important;
}

/* =========================================
   4. بطاقات المنتجات والتفاعلات
   ========================================= */
.card-product, .s-product-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 22px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s ease !important;
}

.card-product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(106, 27, 154, 0.1) !important;
}

/* =========================================
   5. الأزرار النابضة (Pulse Effect)
   ========================================= */
@keyframes pulse-madar {
    0% { box-shadow: 0 0 0 0 rgba(106, 27, 154, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(106, 27, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 27, 154, 0); }
}

.btn-primary, .add-to-cart, .buy-now, .s-button, .s-product-sp-ad-button {
    background: linear-gradient(45deg, #6a1b9a, #8e24aa) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    animation: pulse-madar 2s infinite !important;
    transition: 0.3s ease !important;
}

.btn-primary:hover { transform: scale(1.03) !important; }

/* =========================================
   6. إصلاح الفوتر وحماية الشعار
   ========================================= */
footer, .s-footer {
    background-color: #f9f9fb !important;
    border-top: 1px solid #f0f0f2 !important;
    padding: 20px 0 !important;
    margin-top: 50px !important;
}

.s-header-logo img, .navbar-brand img, [id*="logo"] img {
    filter: none !important;
    opacity: 1 !important;
}