/* متغيرات الألوان المعدلة */
:root {
    --sugar-white: #FFF5F5; /* أبيض سكري */
    --primary-color: #FF6B35; /* برتقالي */
    --secondary-color: #004E89; /* أزرق */
    --accent-color: #FFD166; /* أصفر */
    --success-color: #06D6A0; /* أخضر */
    --dark-bg: #2D3047; /* خلفية داكنة للفوتر */
    --text-light: #F8F9FA;
    --text-dark: #333333;
    --border-radius: 25px; /* زوايا مدورة أكثر */
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* خلفية الصفحة الأساسية - أبيض سكري */
body {
    background-color: var(--sugar-white) !important;
    background-image: radial-gradient(circle at 15% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 20%), radial-gradient(circle at 85% 30%, rgba(0, 78, 137, 0.05) 0%, transparent 20%), radial-gradient(circle at 50% 80%, rgba(6, 214, 160, 0.05) 0%, transparent 20%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 80px;
}

/* تحسينات الـ Navbar */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #3A3D5D 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--primary-color);
    height: 70px;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
}

    .navbar-brand .text-red {
        color: var(--primary-color) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

/* زر البحث */
.btn-red {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8B5C 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600;
    transition: all 0.4s ease;
    padding: 10px 20px;
}

    .btn-red:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    }

.border-red {
    border-color: var(--primary-color) !important;
}

/* ========= بطاقات المنتجات بشكل دائري ========= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    padding: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 25px !important; /* زوايا مدورة بشكل دائري */
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.9);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

    .product-card:hover {
        transform: translateY(-10px) rotate(1deg);
        box-shadow: var(--shadow-heavy), 0 5px 15px rgba(255, 107, 53, 0.2);
        border-color: var(--primary-color);
    }

/* حاوية الصورة بشكل دائري */
.product-image-container {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

    .product-image-container::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        border-radius: 20px;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

.product-card:hover .product-image-container::before {
    opacity: 1;
}

.product-image {
    width: auto;
    max-width: 85%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    transition: all 0.5s ease;
    border-radius: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(2deg);
}

/* ========= إضافة العناصر البصرية من الصورة ========= */
/* العناصر البصرية الثابتة */
.visual-element {
    position: fixed;
    top: 100px;
    right: 50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.3) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(0, 78, 137, 0.3) 0%, transparent 50%);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 20s linear infinite;
    filter: blur(40px);
}

.visual-element-2 {
    position: fixed;
    bottom: 150px;
    left: 50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 40% 40%, rgba(6, 214, 160, 0.2) 0%, transparent 50%), radial-gradient(circle at 60% 60%, rgba(255, 209, 102, 0.2) 0%, transparent 50%);
    border-radius: 50%;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* صورة السيارة الدائرية */
.car-icon-circle {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 999;
}

    .car-icon-circle i {
        font-size: 60px;
        color: white;
    }

/* شارات المنتجات بشكل دائري */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="rtl"] .product-badge {
    right: auto;
    left: 15px;
}

/* معلومات المنتج */
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 0 25px 25px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-part {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 78, 137, 0.05);
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid rgba(0, 78, 137, 0.1);
}

.part-number {
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* عداد الكمية بشكل دائري */
.quantity-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 53, 0.1);
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
}

    .quantity-btn:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid rgba(255, 107, 53, 0.2);
    background: white;
    color: var(--text-dark);
    border-radius: 15px;
    margin: 0 15px;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px;
    transition: all 0.3s ease;
}

    .quantity-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    }

/* أزرار الإجراء بشكل دائري */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-add-to-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C);
    border: none;
    border-radius: 20px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

    .btn-add-to-cart:hover {
        background: linear-gradient(135deg, #FF8B5C, var(--primary-color));
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
    }

.btn-view-details {
    width: 55px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .btn-view-details:hover {
        background: var(--primary-color);
        color: white;
        transform: rotate(15deg) scale(1.1);
    }

/* ========= إضافة: البحث التلقائي ========= */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 5px;
}

    .search-results-dropdown.show {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

.search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-item:hover {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(0, 78, 137, 0.05));
        transform: translateX(5px);
    }

.search-result-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.search-result-part {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.search-result-category {
    font-size: 0.75rem;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 3px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

    .search-loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* إصلاح شريط البحث على الجوال */
#mobileSearch {
    position: relative;
    transition: all 0.3s ease;
}

/* إصلاح نتائج البحث التلقائي على الجوال */
.search-results-dropdown.mobile {
    position: fixed !important;
    top: 120px !important;
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    max-height: 60vh;
    z-index: 1050;
}

/* منع الاختفاء المفاجئ */
.search-results-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* تحسين العرض على الجوال */
@media (max-width: 768px) {
    .search-results-dropdown {
        position: fixed !important;
        top: 100px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        z-index: 9999;
    }
}

/* زر مسح البحث */
.search-clear {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    display: none;
    z-index: 5;
}

    .search-clear:hover {
        color: var(--primary-color);
    }

#searchInput:not(:placeholder-shown) + .search-clear {
    display: block;
}

/* ========= الفوتر الثابت في الأسفل ========= */
.footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #3A3D5D 100%);
    border-top: 2px solid var(--primary-color);
    padding: 10px 0 5px 0 !important;
    /* لجعل الفوتر ثابت في الأسفل */
    position: fixed;  /*fixed*/
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* تأثيرات إضافية */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* إضافة مساحة في أسفل الصفحة لمنع تداخل المحتوى مع الفوتر */
body {
    padding-bottom: 70px !important;
    min-height: 100vh;
    position: relative;
}

/* إخفاء جميع أقسام الفوتر ما عدا الحقوق */
.footer .row > div:not(:last-child) {
    display: none !important;
}

.footer .social-icons,
.footer h5,
.footer .text-white:not(.footer .row > div:last-child .text-white),
.footer hr {
    display: none !important;
}

/* تنسيق قسم الحقوق فقط */
.footer .row > div:last-child {
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
}

.footer .small {
    font-size: 0.75rem !important;
    color: #AAAAAA !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.footer a.small {
    display: block !important;
    margin-top: 3px !important;
    color: #AAAAAA !important;
    text-decoration: none !important;
}

    .footer a.small:hover {
        color: #FFFFFF !important;
    }

/* ========= إضافة: تصغير النماذج ========= */
.form-control, .form-select, .form-textarea {
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
    height: 36px !important;
    border-radius: 6px !important;
}

.form-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
}

.form-group {
    margin-bottom: 10px !important;
}

textarea.form-control {
    height: 80px !important;
    min-height: 80px !important;
    resize: vertical !important;
}

/* تصغير الأزرار في النماذج */
.btn {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* تصغير الترويسات في النماذج */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px !important;
}

h1 {
    font-size: 1.5rem !important;
}

h2 {
    font-size: 1.3rem !important;
}

h3 {
    font-size: 1.1rem !important;
}

h4 {
    font-size: 1rem !important;
}

h5 {
    font-size: 0.9rem !important;
}

h6 {
    font-size: 0.85rem !important;
}

.toggle-text {
    display: inline-block;
    font-size: 0.9rem;
}

.sidebar-content {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    overflow-y: auto;
    border-left: 3px solid var(--primary-color);
}

[dir="rtl"] .sidebar-content {
    right: auto;
    left: -400px;
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

.sidebar-content.show {
    right: 0;
    animation: slideInSidebar 0.5s ease-out;
}

[dir="rtl"] .sidebar-content.show {
    left: 0;
    animation: slideInSidebarRTL 0.5s ease-out;
}

@keyframes slideInSidebar {
    from {
        right: -400px;
        opacity: 0;
    }

    to {
        right: 0;
        opacity: 1;
    }
}

@keyframes slideInSidebarRTL {
    from {
        left: -400px;
        opacity: 0;
    }

    to {
        left: 0;
        opacity: 1;
    }
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 2;
}

    .sidebar-header h5 {
        margin: 0;
        font-weight: 700;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.close-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .close-sidebar:hover {
        background: white;
        color: var(--primary-color);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

.categories-list {
    padding: 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.category-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

    .category-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

.category-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    background: white;
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

    .category-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent, rgba(255, 107, 53, 0.05));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .category-link:hover::before,
    .category-link.active::before {
        opacity: 1;
    }

    .category-link:hover,
    .category-link.active {
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        transform: translateX(5px);
    }

[dir="rtl"] .category-link:hover,
[dir="rtl"] .category-link.active {
    transform: translateX(-5px);
    border-left-color: transparent;
    border-right-color: var(--primary-color);
}

.category-link i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    min-width: 24px;
    text-align: center;
}

[dir="rtl"] .category-link i {
    margin-right: 0;
    margin-left: 15px;
}

.category-link:hover i,
.category-link.active i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.category-count {
    margin-left: auto;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.sub-category {
    padding-left: 40px;
    margin-top: 5px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[dir="rtl"] .sub-category {
    padding-left: 0;
    padding-right: 40px;
}

.sub-category .category-link {
    padding: 14px 20px;
    font-size: 0.95rem;
    background: rgba(0, 78, 137, 0.05);
    border-left-width: 3px;
    border-left-color: var(--secondary-color);
}

    .sub-category .category-link:hover {
        background: rgba(0, 78, 137, 0.1);
        border-left-color: var(--primary-color);
    }

.category-toggle {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .category-toggle:hover {
        background: rgba(255, 107, 53, 0.1);
        color: var(--primary-color);
        transform: rotate(90deg);
    }

    .category-toggle i {
        transition: transform 0.3s ease;
    }

    .category-toggle.rotated i {
        transform: rotate(180deg);
    }

/* ========= تحسينات للشاشات الصغيرة ========= */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .product-card {
        border-radius: 20px !important;
    }

    .product-image-container {
        height: 140px;
    }

    .product-image {
        max-height: 120px;
    }

    .car-icon-circle {
        width: 100px;
        height: 100px;
        right: 15px;
    }

        .car-icon-circle i {
            font-size: 40px;
        }

    .visual-element {
        width: 120px;
        height: 120px;
        right: 20px;
        filter: blur(30px);
    }

    .visual-element-2 {
        width: 100px;
        height: 100px;
        left: 20px;
        bottom: 100px;
    }

    .categories-sidebar {
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .sidebar-toggle {
        padding: 12px 15px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

        .sidebar-toggle .toggle-text {
            display: none;
        }

    .sidebar-content {
        width: 300px;
    }

    .sidebar-header {
        padding: 20px 15px;
    }

    .category-link {
        padding: 15px 20px;
    }

    .sub-category {
        padding-left: 35px;
    }

    [dir="rtl"] .sub-category {
        padding-right: 35px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        border-radius: 18px !important;
    }

    .product-info {
        padding: 15px;
    }

    .quantity-counter {
        padding: 10px;
        margin: 15px 0;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .quantity-input {
        width: 50px;
        margin: 0 10px;
        font-size: 1rem;
    }

    .btn-add-to-cart {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }

    .car-icon-circle {
        width: 80px;
        height: 80px;
        right: 10px;
    }

        .car-icon-circle i {
            font-size: 30px;
        }

    .sidebar-content {
        width: 280px;
    }

    .categories-list {
        padding: 15px;
    }

    .category-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

        .category-link i {
            font-size: 1rem;
            margin-right: 10px;
        }

    [dir="rtl"] .category-link i {
        margin-left: 10px;
    }

    .category-count {
        padding: 4px 10px;
        font-size: 0.75rem;
        min-width: 35px;
    }
}

/* تأثيرات التحميل */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

    /* تأخيرات للرسوم المتحركة */
    .product-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .product-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .product-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .product-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .product-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .product-card:nth-child(6) {
        animation-delay: 0.6s;
    }

/* تأثيرات خاصة */
.hover-grow {
    transition: transform 0.3s ease;
}

    .hover-grow:hover {
        transform: scale(1.05);
    }

/* تأثير حدود متلألئة */
@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

.product-card.highlight {
    animation: borderGlow 2s infinite;
}

/* تحسينات التمرير */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sugar-white);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(var(--secondary-color), var(--primary-color));
    }

/* زر الواتساب العائم بشكل دائري */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.4s ease;
    animation: pulse-whatsapp 2s infinite;
}

    .whatsapp-float:hover {
        transform: scale(1.1) rotate(15deg);
        box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    }

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* تنسيقات الهيدر */
.header-background {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

    .header-background::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200" preserveAspectRatio="none"><path fill="%23FF6B35" opacity="0.1" d="M0,50 C150,100 350,0 500,50 C650,100 850,0 1000,50 C1150,100 1350,0 1200,50 L1200,200 L0,200 Z"/></svg>');
        background-size: cover;
        background-position: center;
        opacity: 0.3;
    }

/* عناصر زخرفية */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.1);
    }
}

.text-red {
    color: var(--primary-color) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Hero Banner Styles */
.hero-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content {
    z-index: 3;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.stat-item {
    display: none !important;
}

.hero-stats {
    display: none !important;
}

.car-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 250px;
    }

    .hero-content {
        padding: 2rem !important;
    }

    .car-illustration {
        display: none;
    }
}

/* Custom Header Styles */
.custom-header {
    border: 1px solid #ff0000;
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image-side {
    position: relative;
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bg-image-header, .hero-banner {
        min-height: 200px;
    }

    .car-image-side {
        display: none;
    }

    .floating-icon i {
        font-size: 4rem !important;
    }
}
/* تحسينات للهيرو لتتناسب مع الهيدر */
.hero-banner {
    transition: all 0.3s ease;
    margin-top: 10px; /* ليقترب من الهيدر */
}

    .hero-banner:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.stat-item {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .stat-item:hover {
        background: rgba(255, 107, 53, 0.15) !important;
        transform: translateY(-2px);
    }

.floating-car-icon {
    animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.car-circle {
    transition: all 0.4s ease;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

    .car-circle:hover {
        transform: rotate(15deg) scale(1.05);
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
    }

/* جعل الهيرو أقرب للهيدر */
.container-fluid.py-3 {
    padding-top: 10px !important;
}

/* التأكيد على حدود مشابهة للهيدر */
.hero-banner {
    border-bottom: 3px solid var(--primary-color) !important;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-banner {
        margin-top: 5px;
        border-radius: 0 0 20px 20px !important;
    }

    .hero-content {
        padding: 2rem 1.5rem !important;
    }

    .floating-car-icon {
        margin-top: 20px;
    }

    .car-circle {
        width: 120px !important;
        height: 120px !important;
    }

        .car-circle i {
            font-size: 3rem !important;
        }
}

/* تحسينات للهيرو لتتناسب مع الهيدر */
.hero-banner {
    margin-top: -20px; /* لجعل الهيرو يلتصق بالهيدر */
    border-top: none !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

    .hero-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
        z-index: 1;
    }

    .hero-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        border-color: rgba(255, 107, 53, 0.5);
    }

/* إضافة تأثيرات النص */
.display-6 {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* تحسين شريط التفاصيل السفلية */
.border-end {
    border-right-color: rgba(255, 107, 53, 0.2) !important;
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-banner {
        margin-top: -15px;
        border-radius: 0 0 15px 15px !important;
    }

        .hero-banner .row {
            padding: 2rem 1.5rem !important;
        }

    .display-6 {
        font-size: 1.8rem;
    }

    .border-end {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 107, 53, 0.2) !important;
    }
}

/* إزالة الهوامش الزائدة */
.container-fluid.py-3 {
    padding-top: 0 !important;
}

/* تحسين التنسيق العام */
.products-grid {
    margin-top: 30px;
}

.full-image-hero {
    margin-top: -20px;
    border-radius: 0 0 20px 20px;
    border-bottom: 3px solid var(--primary-color);
}

    .full-image-hero img {
        filter: brightness(0.7);
    }

/* هيرو متجاوب */
.hero-responsive {
    margin-top: -10px;
    transition: all 0.3s ease;
}

/* العنوان الرئيسي بأحجام مختلفة */
.hero-main-title {
    font-size: 1.4rem;
    font-weight: 700;
}

/* الأقراص الإحصائية */
.stat-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

    .stat-pill:hover {
        background: rgba(255, 107, 53, 0.2);
        transform: translateY(-2px);
    }

    .stat-pill i {
        font-size: 0.8rem;
        color: var(--primary-color);
    }

    .stat-pill .fw-bold {
        font-size: 1rem;
        margin: 0 0.1rem;
    }

    .stat-pill small {
        font-size: 0.75rem;
        opacity: 0.8;
    }

/* تحسينات للشاشات الصغيرة جداً (جوال) */
@media (max-width: 576px) {
    .hero-responsive {
        min-height: 150px !important;
        padding: 0.8rem 1rem !important;
    }

    .hero-main-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .stat-pill {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

        .stat-pill .fw-bold {
            font-size: 0.9rem;
        }

    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* الشاشات الصغيرة (تابلت عمودي) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-responsive {
        min-height: 160px !important;
        padding: 1rem 1.25rem !important;
    }

    .hero-main-title {
        font-size: 1.3rem;
    }
}

/* الشاشات المتوسطة (تابلت أفقي) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-responsive {
        min-height: 170px !important;
        padding: 1rem 1.5rem !important;
    }

    .hero-main-title {
        font-size: 1.5rem;
    }
}

/* الشاشات الكبيرة */
@media (min-width: 993px) {
    .hero-responsive {
        min-height: 180px !important;
        padding: 1.25rem 2rem !important;
    }

    .hero-main-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* الشاشات الكبيرة جداً */
@media (min-width: 1200px) {
    .hero-responsive {
        min-height: 200px !important;
        padding: 1.5rem 2.5rem !important;
    }

    .hero-main-title {
        font-size: 2rem;
    }
}

/* هيرو مع خلفية صورة */
.hero-with-background {
    margin-top: -10px;
    transition: all 0.3s ease;
    background-attachment: fixed; /* تأثير Parallax */
}

/* التأكد من أن الصورة تملأ المساحة */
@media (max-width: 768px) {
    .hero-with-background {
        background-attachment: scroll !important; /* إلغاء Parallax على الجوال */
    }
}

/* تحسين رؤية النص على الخلفية */
.hero-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

    .hero-title::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--primary-color);
    }

/* عناصر الإحصاءات مع خلفية شبه شفافة */
.stat-item {
    background: rgba(45, 48, 71, 0.7);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 20px;
    padding: 0.35rem 0.8rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .stat-item:hover {
        background: rgba(255, 107, 53, 0.2);
        transform: translateY(-2px);
        border-color: var(--primary-color);
    }

    .stat-item i {
        color: var(--primary-color);
        font-size: 0.9rem;
    }

    .stat-item strong {
        font-size: 1rem;
        margin: 0 0.1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .stat-item small {
        font-size: 0.75rem;
        opacity: 0.9;
    }

/* تحسينات للشاشات الصغيرة */
@media (max-width: 576px) {
    .hero-with-background {
        min-height: 130px !important;
        padding: 0.8rem 1rem !important;
        background-position: center 40% !important;
    }

    .hero-title {
        font-size: 1.1rem;
    }

        .hero-title::after {
            width: 30px;
        }

    .stat-item {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

        .stat-item strong {
            font-size: 0.9rem;
        }

    .btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* تحسينات للشاشات المتوسطة */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-with-background {
        min-height: 140px !important;
    }

    .hero-title {
        font-size: 1.2rem;
    }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 769px) {
    .hero-with-background {
        min-height: 160px !important;
        padding: 1.2rem 2rem !important;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-content {
        max-width: 70%;
    }
}

/* تأثير زر التصفح */
.btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
    }

/* للشعار الضخم */
.navbar {
    height: 90px; /* ارتفاع أكبر للنافبار */
    padding: 0.75rem 0;
}

@media (max-width: 992px) {
    .logo-img {
        height: 60px !important;
    }

    .navbar {
        height: 85px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px !important;
    }

    .navbar {
        height: 80px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 45px !important;
    }

    .navbar {
        height: 75px;
    }
}
/* ========= شبكة المنتجات الصغيرة جداً ========= */
.products-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.product-card-small {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card-small:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

.product-image-small {
    height: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-info-small {
    flex-grow: 1;
    background: white;
}

.product-title-small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.product-part-small {
    font-size: 0.7rem;
    color: var(--secondary-color);
}

.quantity-counter-small {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.quantity-btn-small {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .quantity-btn-small:hover {
        background: var(--primary-color);
        color: white;
    }

.quantity-input-small {
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.btn-add-to-cart-small {
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: white;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-add-to-cart-small:hover {
        background: linear-gradient(135deg, #FF8B5C, var(--primary-color));
        transform: scale(1.05);
    }

/* ترقيم الصفحات الصغير */
.pagination-small .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: white;
    color: var(--text-dark);
}

.pagination-small .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* حالة المنتجات الفارغة الصغيرة */
.small-empty-state {
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 768px) {
    .products-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .product-image-small {
        height: 90px;
    }

    .product-title-small {
        font-size: 0.75rem;
    }

    .quick-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .products-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card-small {
        border-radius: 10px;
    }

    .product-image-small {
        height: 80px;
        padding: 8px;
    }

    .product-info-small {
        padding: 8px !important;
    }

    .btn-add-to-cart-small {
        padding: 6px 8px;
        min-width: 32px;
    }
}
/* تأثيرات الكمية */
.quantity-counter-small {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.quantity-btn-small {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .quantity-btn-small:hover {
        background: var(--primary-color);
        color: white;
        transform: scale(1.1);
    }

.quantity-input-small {
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    border: none;
    background: transparent;
    outline: none;
    width: 30px;
}

    /* إزالة الأسهم من input number */
    .quantity-input-small::-webkit-outer-spin-button,
    .quantity-input-small::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .quantity-input-small[type=number] {
        -moz-appearance: textfield;
    }

/* تأثير عند إضافة المنتج للسلة */
@keyframes addToCartEffect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.product-card-small.adding-to-cart {
    animation: addToCartEffect 0.3s ease;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* أيقونة العين */
.btn-eye {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .btn-eye:hover {
        background: rgba(var(--primary-rgb), 0.1);
        transform: scale(1.1);
    }

    .btn-eye i {
        font-size: 0.8rem;
        color: #6c757d;
    }

    .btn-eye:hover i {
        color: var(--primary-color);
    }


/* تحسينات للأسماء الطويلة */
.product-title-small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* عدد الأسطر */
    -webkit-box-orient: vertical;
    max-height: 2.4em; /* ارتفاع مزدوج */
    min-height: 1.2em;
}

/* منع التمدد الزائد */
.product-info-small {
    min-width: 0; /* مهم جداً ليعمل text-truncate */
    overflow: hidden;
}

/* إصلاح التخطيط */
.flex-grow-1.me-2 {
    min-width: 0;
    flex: 1;
}

/* منع كسر السطور في رقم القطعة */
.product-part-small {
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* إصلاح تخطيط الأزرار */
.quick-actions {
    flex-wrap: nowrap;
    min-width: 0;
}

.quantity-counter-small {
    flex-shrink: 0;
}

.btn-add-to-cart-small {
    flex-shrink: 0;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 576px) {
    .product-title-small {
        -webkit-line-clamp: 1; /* سطر واحد فقط في الجوال */
        max-height: 1.2em;
        font-size: 0.75rem;
    }

    .product-part-small {
        font-size: 0.65rem;
    }
}

/* ========= تحسينات للاسم الكامل ========= */
.product-title-small {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

    .product-title-small.expanded {
        background: rgba(255, 107, 53, 0.08) !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        margin: -4px -8px !important;
        white-space: normal !important;
        word-break: break-word !important;
        position: relative !important;
        z-index: 1 !important;
        border: 1px solid rgba(255, 107, 53, 0.2) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .product-title-small:hover:not(.expanded) {
        color: var(--primary-color) !important;
    }

/* تحسينات للجوال */
@media (max-width: 576px) {
    .product-title-small.expanded {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 300px !important;
        background: white !important;
        padding: 15px !important;
        margin: 0 !important;
        z-index: 9999 !important;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3) !important;
        border: 2px solid var(--primary-color) !important;
        text-align: center !important;
    }
}

/* ========= تصميم مودال تفاصيل المنتج ========= */

/* خلفية المودال */
#productDetailsModal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* الهيدر */
#productDetailsModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8B5C 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    #productDetailsModal .modal-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
        background-size: 10px 10px;
        opacity: 0.3;
        animation: moveBackground 20s linear infinite;
    }

@keyframes moveBackground {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#productDetailsModal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

    #productDetailsModal .modal-title i {
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.2);
        padding: 8px;
        border-radius: 10px;
        margin-right: 10px;
    }

#productDetailsModal .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    #productDetailsModal .btn-close:hover {
        background: white;
        opacity: 1;
        transform: rotate(90deg);
    }

/* الجسم */
#productDetailsModal .modal-body {
    padding: 25px;
    background: white;
}

#productDetailsModal .row {
    align-items: stretch;
}

/* صورة المنتج */
#productDetailsModal .modal-body .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalProductImage {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid rgba(255, 107, 53, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    #modalProductImage:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* تفاصيل المنتج */
#productDetailsModal .modal-body .col-md-8 {
    padding-left: 30px;
}

#productDetailsModal p {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

    #productDetailsModal p:last-of-type {
        border-bottom: none;
    }

    #productDetailsModal p strong {
        color: var(--primary-color);
        font-size: 0.95rem;
        display: inline-block;
        min-width: 120px;
        font-weight: 600;
    }

#modalProductName {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    word-break: break-word;
}

#modalPartNumber {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    background: rgba(0, 78, 137, 0.05);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 78, 137, 0.1);
}

#modalCategory {
    font-size: 0.9rem;
    background: rgba(0, 78, 137, 0.05);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

#modalDescription {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255, 107, 53, 0.03);
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

[dir="rtl"] #modalDescription {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

#modalDescription::-webkit-scrollbar {
    width: 6px;
}

#modalDescription::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

#modalDescription::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* الفوتر */
#productDetailsModal .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid rgba(255, 107, 53, 0.1);
    padding: 20px 25px;
    border-radius: 0 0 13px 13px;
}

    #productDetailsModal .modal-footer .btn {
        padding: 10px 25px;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s ease;
        min-width: 120px;
    }

    #productDetailsModal .modal-footer .btn-secondary {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        border: none;
        color: white;
    }

        #productDetailsModal .modal-footer .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
        }

/* تأثيرات إضافية */
#productDetailsModal .modal-body p::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

[dir="rtl"] #productDetailsModal .modal-body p::before {
    left: auto;
    right: 0;
    background: linear-gradient(-90deg, var(--primary-color), transparent);
}

/* تصميم للشاشات الصغيرة */
@media (max-width: 768px) {
    #productDetailsModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    #productDetailsModal .modal-body .row {
        flex-direction: column;
    }

    #productDetailsModal .modal-body .col-md-4,
    #productDetailsModal .modal-body .col-md-8 {
        width: 100%;
        padding: 0;
    }

    #productDetailsModal .modal-body .col-md-4 {
        margin-bottom: 20px;
    }

    #modalProductImage {
        max-height: 200px;
        max-width: 200px;
    }

    #productDetailsModal .modal-header {
        padding: 15px 20px;
    }

    #productDetailsModal .modal-body {
        padding: 20px;
    }

    #productDetailsModal .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
    }

        #productDetailsModal .modal-footer .btn {
            width: 100%;
        }

    #productDetailsModal .modal-title {
        font-size: 1.1rem;
    }
}

/* تحسينات للجوال الصغير */
@media (max-width: 576px) {
    #productDetailsModal .modal-content {
        border-radius: 12px;
    }

    #modalProductName {
        font-size: 1.2rem;
    }

    #productDetailsModal p {
        flex-direction: column;
        align-items: flex-start;
    }

        #productDetailsModal p strong {
            min-width: auto;
            margin-bottom: 5px;
        }

    #modalDescription {
        max-height: 120px;
        font-size: 0.9rem;
    }
}

/* تأثيرات الظلال */
#productDetailsModal .modal-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 12px;
    background: linear-gradient(135deg, transparent, rgba(255, 107, 53, 0.05));
    z-index: -1;
    opacity: 0.5;
}

/* تحسين التباين */
#productDetailsModal .modal-body {
    color: #444;
}

#productDetailsModal p strong {
    color: #333;
}

/* تأثيرات النص */
#productDetailsModal p span {
    color: #555;
    font-weight: 500;
}

/* تحسينات إضافية للعربية */
[dir="rtl"] #productDetailsModal .modal-title i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] #productDetailsModal .modal-body .col-md-8 {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] #productDetailsModal .btn-close {
    margin-right: 0;
    margin-left: auto;
}

/* تأثيرات الظهور */
#productDetailsModal.modal.fade .modal-content {
    animation-delay: 0.1s;
}

#productDetailsModal .modal-header,
#productDetailsModal .modal-body,
#productDetailsModal .modal-footer {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

#productDetailsModal .modal-header {
    animation-delay: 0.2s;
}

#productDetailsModal .modal-body {
    animation-delay: 0.3s;
}

#productDetailsModal .modal-footer {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* إضافة زخارف */
#productDetailsModal .modal-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    border-radius: 3px;
}

/* تأثيرات تفاعلية */
#productDetailsModal .modal-footer .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#productDetailsModal .modal-footer .btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* تحسين عرض النصوص الطويلة */
#modalProductName,
#modalDescription {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* خطوط أفضل */
#productDetailsModal .modal-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

/* إضافة تلميحات بصرية */
#productDetailsModal .modal-body p {
    transition: all 0.2s ease;
}

    #productDetailsModal .modal-body p:hover {
        background: rgba(255, 107, 53, 0.02);
        border-radius: 8px;
        padding: 10px;
        margin: 5px -10px;
    }


/* زر المينيو */
.btn-menu-placeholder {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .btn-menu-placeholder:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .btn-menu-placeholder:active {
        transform: translateY(0);
    }

/* Offcanvas تخصيصات */
.offcanvas {
    background: var(--dark-color);
    color: white;
}

.offcanvas-header {
    background: rgba(45, 48, 71, 0.95);
}

.offcanvas-title {
    color: white;
    font-weight: 600;
}

.offcanvas-body {
    background: linear-gradient(135deg, rgba(30, 32, 48, 0.95) 0%, rgba(45, 48, 71, 0.9) 100%);
}

.offcanvas-footer {
    background: rgba(45, 48, 71, 0.95);
}

/* زر الإغلاق */
.btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.7;
}

    .btn-close:hover {
        opacity: 1;
    }


/* تأثيرات زر المينيو */
.btn-menu-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .btn-menu-placeholder:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
        background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 139, 92, 0.2)) !important;
    }

    .btn-menu-placeholder:active {
        transform: scale(0.95);
    }

/* تصميم الـ Offcanvas */
.offcanvas {
    border-left: 2px solid var(--primary-color);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    padding: 1.2rem 1.5rem;
}

.offcanvas-body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

    .offcanvas-body::-webkit-scrollbar {
        width: 5px;
    }

    .offcanvas-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .offcanvas-body::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

/* الأنيميشن للأيقونة */
.icon-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* تأثير الشيمر للعناصر النائبة */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* التأثير عند فتح القائمة */
.offcanvas.showing {
    transform: translateX(0);
    transition: transform 0.3s ease-out;
}

/* تصميم العناصر النائبة */
.placeholder-item {
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* تصميم الإرشادات */
.guideline-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .guideline-item:hover {
        transform: translateX(5px);
        background: rgba(var(--primary-rgb), 0.08) !important;
    }

/* تأثيرات للعناوين */
.section-header {
    position: relative;
}

    .section-header::after {
        content: '';
        position: absolute;
        bottom: -5px;
        right: 20px;
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color));
        border-radius: 2px;
    }


/* Categories Bar - Top of Page */


.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: white;
}

    .category-box:hover {
        background: rgba(255, 77, 77, 0.15);
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
    }

    .category-box.active {
        background: linear-gradient(135deg, var(--primary-color), #FF8B5C);
        border-color: var(--primary-color);
        box-shadow: 0 5px 20px rgba(255, 77, 77, 0.3);
    }

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-box.active .category-icon {
    color: white;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.category-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-top: 0.3rem;
}

.category-box.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Positioning */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1d2f, #2D3047);
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    border-left: 3px solid var(--primary-color);
}

/* RTL Languages (Arabic) */
html[dir="rtl"] .mobile-menu {
    right: -320px;
    left: auto;
}

    html[dir="rtl"] .mobile-menu.open {
        right: 0;
        left: auto;
    }

/* LTR Languages (English) */
html[dir="ltr"] .mobile-menu {
    left: -320px;
    right: auto;
    border-left: none;
    border-right: 3px solid var(--primary-color);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
}

    html[dir="ltr"] .mobile-menu.open {
        left: 0;
        right: auto;
    }

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

/* Menu Header */
.menu-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .menu-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(30deg);
    }

.menu-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* RTL: Icon on left, text on right */
html[dir="rtl"] .menu-title i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* LTR: Icon on right, text on left */
html[dir="ltr"] .menu-title i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Close Button */
.menu-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .menu-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg) scale(1.1);
    }

/* Menu Content */
.menu-content {
    padding: 1.5rem;
}

.menu-section {
    margin-bottom: 2rem;
    animation: slideInRight 0.5s ease;
    animation-delay: calc(var(--section-index) * 0.1s);
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Animation for RTL */
html[dir="rtl"] .menu-section {
    animation: slideInRight 0.5s ease;
}

/* Animation for LTR */
html[dir="ltr"] .menu-section {
    animation: slideInLeft 0.5s ease;
}

/* Section Title */
.section-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 77, 77, 0.3);
    display: flex;
    align-items: center;
}

/* RTL: Icon on right */
html[dir="rtl"] .section-title i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* LTR: Icon on left */
html[dir="ltr"] .section-title i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Menu Categories */
.menu-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.menu-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

    .menu-category-item:hover {
        background: rgba(255, 77, 77, 0.1);
        border-color: var(--primary-color);
        transform: scale(1.05);
    }

    .menu-category-item.active {
        background: linear-gradient(135deg, rgba(255, 77, 77, 0.2), rgba(255, 139, 92, 0.2));
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
    }

.menu-category-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.menu-category-name {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.3rem;
}

.menu-category-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

/* Menu Actions */
.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

/* RTL: Hover effect to left */
html[dir="rtl"] .menu-action-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* LTR: Hover effect to right */
html[dir="ltr"] .menu-action-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

/* RTL: Icon on right */
html[dir="rtl"] .menu-action-btn i:first-child {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* LTR: Icon on left */
html[dir="ltr"] .menu-action-btn i:first-child {
    margin-left: 0;
    margin-right: 0.75rem;
}

.menu-action-text {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-action-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Menu Footer */
.menu-footer {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.menu-footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* Menu Button in Header */
.btn-menu-placeholder {
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C) !important;
    border: none !important;
    color: white !important;
    width: 45px;
    height: 45px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    cursor: pointer;
}

    .btn-menu-placeholder:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Categories Bar */
.categories-bar {
    display: none !important;
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.category-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: white;
}

    .category-box:hover {
        background: rgba(255, 77, 77, 0.15);
        border-color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
    }

    .category-box.active {
        background: linear-gradient(135deg, var(--primary-color), #FF8B5C);
        border-color: var(--primary-color);
        box-shadow: 0 5px 20px rgba(255, 77, 77, 0.3);
    }

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-box.active .category-icon {
    color: white;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.category-count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-top: 0.3rem;
}

.category-box.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-bar {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .categories-container {
        gap: 0.5rem;
    }

    .category-box {
        min-width: 80px;
        padding: 0.75rem 0.5rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 0.75rem;
    }

    .mobile-menu {
        width: 280px;
    }

    html[dir="rtl"] .mobile-menu {
        right: -280px;
    }

    html[dir="ltr"] .mobile-menu {
        left: -280px;
    }

    .menu-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .category-box {
        min-width: 70px;
        padding: 0.6rem 0.4rem;
    }

    .category-icon {
        font-size: 1.3rem;
    }

    .category-name {
        font-size: 0.7rem;
    }
}

/* Scrollbar Styling */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Pulse animation for cart badge */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.cart-badge, .cart-badge-menu {
    animation: pulse 0.5s;
}

/* Custom toast positioning */
[dir="rtl"] .custom-toast {
    left: 20px !important;
    right: auto !important;
}

[dir="ltr"] .custom-toast {
    right: 20px !important;
    left: auto !important;
}

/* تنسيق زر الفلترة */
.btn-filter {
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C) !important;
    border: none !important;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s !important;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn-filter:hover {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
    }

    .btn-filter::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 10px 10px;
        opacity: 0.3;
    }

    .btn-filter i {
        position: relative;
        z-index: 1;
        font-size: 1.2rem;
    }

/* ========= حذف عناصر الإحصاءات وشريط الكاتيجوري ========= */
.hero-stats,
.stat-item,
.stat-pill,
.categories-bar {
    display: none !important;
}

/* ========= زر الفلترة والتسوق الآن بنفس التصميم ========= */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), #FF8B5C) !important;
    border: none !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: white !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    min-width: 110px;
}

    .btn-gradient:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
        background: linear-gradient(135deg, #FF8B5C, var(--primary-color)) !important;
    }

    .btn-gradient:active {
        transform: translateY(-1px) !important;
        box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3) !important;
    }

    .btn-gradient::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .btn-gradient:hover::after {
        left: 100%;
    }

    .btn-gradient i {
        transition: transform 0.3s ease;
        margin-right: 8px;
    }

[dir="rtl"] .btn-gradient i {
    margin-right: 0;
    margin-left: 8px;
}

.btn-gradient:hover i {
    transform: scale(1.1);
}

/* ========= زر العرض الخاص ========= */
.special-offer-btn {
    background: linear-gradient(135deg, var(--secondary-color), #0066CC) !important;
    box-shadow: 0 4px 15px rgba(0, 78, 137, 0.3) !important;
    animation: pulseSpecial 2s infinite;
}

    .special-offer-btn:hover {
        background: linear-gradient(135deg, #0066CC, var(--secondary-color)) !important;
        animation: none;
    }

    .special-offer-btn i {
        color: var(--accent-color);
    }

@keyframes pulseSpecial {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 78, 137, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 78, 137, 0.5), 0 0 15px rgba(255, 209, 102, 0.4);
    }
}

/* ========= إظهار النص كاملاً في الجوال ========= */
.btn-gradient,
.btn-gradient span {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* ========= تصميم للجوال ========= */
@media (max-width: 768px) {
    .btn-gradient {
        padding: 8px 20px !important;
        font-size: 0.85rem !important;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .btn-gradient {
        padding: 8px 16px !important;
        min-width: 90px;
        font-size: 0.8rem !important;
    }

        .btn-gradient span {
            display: inline-block !important;
            max-width: none !important;
            font-size: 0.8rem !important;
        }
}

@media (max-width: 375px) {
    .btn-gradient {
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }

        .btn-gradient span {
            font-size: 0.75rem !important;
        }
}


/* أضف فقط هذه الأسطر في نهاية CSS */
.btn-gradient {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

    .btn-gradient span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

/* للجوال */
@media (max-width: 576px) {
    .btn-gradient {
        padding: 8px 14px !important;
    }
}

/* جميع تنسيقات CSS الحالية... */

/* ========= حل مشكلة الاسم في الويب فقط ========= */
@media (min-width: 768px) {
    .product-title-small {
        display: block !important;
        max-height: none !important;
        white-space: normal !important;
        overflow: visible !important;
        word-break: break-word !important;
        height: auto !important;
    }
}