/* تحسين الخطوط العربية */
body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif !important;
}

/* الهيدر */
.header {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* اللوجو */
.logo {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #000 !important;
    padding: 1rem 2rem !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5) !important;
    transition: all 0.3s ease !important;
}

.logo:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.7) !important;
}

/* أيقونة السلة */
.cart-icon {
    position: relative !important;
    background: transparent !important;
    border: 2px solid #ffd700 !important;
    color: #ffd700 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.cart-icon:hover {
    background: #ffd700 !important;
    color: #000 !important;
    transform: rotate(15deg) scale(1.1) !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5) !important;
}

/* عداد السلة */
.cart-badge {
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    background: #ff0000 !important;
    color: white !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    animation: pulse 1.5s infinite !important;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5) !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* البانر الرئيسي */
.hero-section {
    position: relative !important;
    min-height: 600px !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hero-content {
    text-align: center !important;
    color: #fff !important;
    animation: fadeInUp 1s ease !important;
    padding: 2rem !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 5rem !important;
    font-weight: 900 !important;
    color: #ffd700 !important;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 1rem !important;
}

.hero-subtitle {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

/* قسم البحث */
.search-section {
    max-width: 1400px !important;
    margin: -100px auto 4rem !important;
    padding: 0 2rem !important;
    position: relative !important;
    z-index: 100 !important;
}

.search-card {
    background: #fff !important;
    border-radius: 25px !important;
    padding: 3rem !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    animation: slideUp 0.8s ease !important;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(80px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    color: #333 !important;
    margin-bottom: 0.8rem !important;
}

.search-subtitle {
    text-align: center !important;
    color: #666 !important;
    font-size: 1.2rem !important;
    margin-bottom: 2.5rem !important;
}

/* الفلاتر */
.filters-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.filter-group label {
    display: block !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 0.8rem !important;
    font-size: 1.1rem !important;
}

.filter-group select {
    width: 100% !important;
    padding: 1rem 1.2rem !important;
    border: 3px solid #e0e0e0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    background: #f8f9fa !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.filter-group select:focus {
    outline: none !important;
    border-color: #ffd700 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2) !important;
}

/* زر البحث */
.search-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #000 !important;
    border: none !important;
    padding: 1.3rem !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
}

.search-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6) !important;
}

/* بطاقات المنتجات */
.product-card {
    background: #fff !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s ease !important;
    animation: fadeInScale 0.6s ease !important;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
}

.product-image {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    padding: 3.5rem !important;
    text-align: center !important;
}

.product-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.product-price {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #ffd700 !important;
    text-shadow: 0 2px 5px rgba(255, 215, 0, 0.3) !important;
}

/* زر إضافة للسلة */
.add-to-cart {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #000 !important;
    border: none !important;
    padding: 0.8rem 1.8rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

.add-to-cart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6) !important;
}

/* السلة المنزلقة */
.cart-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    max-width: 450px !important;
    height: 100vh !important;
    background: #fff !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5) !important;
    z-index: 2000 !important;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    display: flex !important;
    flex-direction: column !important;
}

.cart-sidebar.active {
    left: 0 !important;
}

.cart-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 1999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
}

.cart-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* رأس السلة */
.cart-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    padding: 1.5rem 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.cart-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #000 !important;
}

/* عناصر السلة */
.cart-item {
    background: #f8f9fa !important;
    border-radius: 15px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    gap: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.cart-item:hover {
    transform: translateX(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* أزرار الكمية */
.quantity-btn {
    background: #e0e0e0 !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
}

.quantity-btn:hover {
    background: #ffd700 !important;
    color: #000 !important;
    transform: scale(1.1) !important;
}

/* تذييل السلة */
.cart-footer {
    border-top: 2px solid #e0e0e0 !important;
    padding: 2rem !important;
    background: #f8f9fa !important;
}

.cart-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
}

.cart-total-price {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #ffd700 !important;
    text-shadow: 0 2px 5px rgba(255, 215, 0, 0.3) !important;
}

/* زر إتمام الطلب */
.checkout-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
    color: #000 !important;
    border: none !important;
    padding: 1.3rem !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
}

.checkout-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6) !important;
}

/* سكرول بار مخصص */
::-webkit-scrollbar {
    width: 12px !important;
}

::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    border-radius: 10px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700) !important;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .hero-title { font-size: 3rem !important; }
    .hero-subtitle { font-size: 2rem !important; }
    .search-title { font-size: 1.8rem !important; }
    .cart-sidebar { max-width: 100% !important; }
}

/* إشعارات */
.notification {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    padding: 1rem 2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    font-weight: bold !important;
    animation: slideInRight 0.4s ease !important;
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}