/* ==================== PROFESSIONAL WATER PURIFIER WEBSITE ==================== */

:root {
    --primary-color: #116daf;
    --primary-dark: #0d5c94;
    --secondary-color: #1fc8db;
    --navbar-bg: #ffffff;
    --hero-bg: #e8f4f8;
    --dark-color: #1a1a1a;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6, p, span, div, button, input, textarea, select {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
}

/* ==================== NAVBAR ==================== */
.navbar {
    padding: 1rem 0;
    background: var(--navbar-bg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition);
    margin-right: 3rem !important;
}

[dir="rtl"] .navbar-brand {
    margin-right: 0 !important;
    margin-left: 3rem !important;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo-text .brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text .brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.1rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

[dir="rtl"] .navbar-icons {
    margin-left: 0;
    margin-right: 1rem;
}

.navbar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
}

.navbar-icon:hover {
    background: var(--hero-bg);
    color: var(--primary-color);
}

.navbar-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

/* ==================== HERO SLIDER - PROFESSIONAL & ENHANCED ==================== */
.hero-slider {
    margin-top: 0px;
    position: relative;
}

.carousel-item {
    height: 525px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out;
    background-attachment: fixed;
}

/* بدون تأثيرات - صور نظيفة */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

/* Overlay محسّن للوضع الأيسر - بدون تأثيرات */
.carousel-item.position-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Overlay محسّن للوضع الوسط - بدون تأثيرات */
.carousel-item.position-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Overlay محسّن للوضع الأيمن - بدون تأثيرات */
.carousel-item.position-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* RTL Support */
[dir="rtl"] .carousel-item.position-left::before {
    background: transparent;
}

[dir="rtl"] .carousel-item.position-right::before {
    background: transparent;
}

.carousel-item .container,
.carousel-item .row {
    position: relative;
    z-index: 2;
}

/* محتوى Hero بدون خلفية أو إطار */
.hero-content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 188, 212, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 188, 212, 0.7);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    max-width: 700px;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 0, 0, 0.4);
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 
        1px 1px 4px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 1.1rem 2.8rem;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}

/* تحسين انتقال Carousel */
.carousel-inner {
    overflow: hidden;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

/* مؤشرات السلايدر - محسّنة */
.carousel-indicators {
    bottom: 25px;
    margin: 0;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 35px;
    border-radius: 5px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

/* أزرار التنقل - محسّنة */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    opacity: 1;
    z-index: 3;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.carousel-control-prev:hover .carousel-control-icon,
.carousel-control-next:hover .carousel-control-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 188, 212, 0.5);
    border-color: var(--white);
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 4rem 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 100;
}

.feature-box {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.6rem;
    color: var(--white);
}

.feature-box h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* ==================== SECTION STYLES ==================== */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.title-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background: #f8f9fa;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-shape {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.1;
}

[dir="rtl"] .about-shape {
    left: auto;
    right: 30px;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 140px;
}

[dir="rtl"] .experience-badge {
    right: auto;
    left: 30px;
}

.experience-badge h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
}

.experience-badge p {
    color: var(--text-light);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-services {
    background: rgba(0, 188, 212, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

[dir="rtl"] .about-services {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.services-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services-list li {
    color: var(--text-light);
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.services-list li i {
    color: var(--primary-color);
    font-weight: bold;
}

.about-commitment {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
}

.stat-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
}

/* ==================== AUTOMATION SECTION ==================== */
.automation-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(17, 109, 175, 0.03), rgba(31, 200, 219, 0.03));
}

.automation-image-wrapper {
    position: relative;
}

.automation-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.automation-img:hover {
    transform: scale(1.02);
}

.automation-shape {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    z-index: 0;
    opacity: 0.1;
}

[dir="rtl"] .automation-shape {
    left: auto;
    right: 30px;
}

.automation-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.automation-features {
    background: rgba(0, 188, 212, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

[dir="rtl"] .automation-features {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.features-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.automation-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.automation-list li {
    color: var(--text-light);
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.automation-list li i {
    color: var(--primary-color);
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

[dir="rtl"] .automation-list li {
    flex-direction: row-reverse;
}

[dir="rtl"] .automation-list li i {
    margin-right: 0;
    margin-left: 0.8rem;
}

.automation-goals {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    background: rgba(17, 109, 175, 0.05);
    padding: 1rem;
    border-radius: var(--radius);
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    background: var(--white);
}

.categories-grid {
    margin-bottom: 4rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.category-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 188, 212, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.category-content {
    padding: 1.2rem;
}

.category-content h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.category-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
}

.products-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow);
}

[dir="rtl"] .product-badge {
    right: auto;
    left: 12px;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.95), rgba(31, 200, 219, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-view:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--shadow-lg);
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    display: inline-block;
    background: rgba(0, 188, 212, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-product {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 188, 212, 0.2);
}

.btn-product:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.product-item.hidden {
    display: none;
}

/* ==================== PRODUCT MODAL ==================== */
.product-modal .modal-dialog {
    max-width: 900px;
}

.product-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.product-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1.5rem 2rem;
}

.product-modal .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.product-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.product-modal .modal-body {
    padding: 2.5rem;
}

.product-modal-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-modal-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.product-modal-description {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.product-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.product-modal-status.available {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.product-modal-status.unavailable {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

.product-modal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    background: #f8f9fa;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background: #f8f9fa;
}

.contact-info-box {
    padding: 1.8rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid var(--border-color);
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-info-box h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info-box a {
    color: var(--text-light);
    transition: var(--transition);
    font-size: 0.9rem;
}

.contact-info-box a:hover {
    color: var(--primary-color);
}

.contact-form-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-logo h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 8px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline-light {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-dark);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.3rem;
    font-size: 1rem;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.4);
}

/* ==================== MOBILE OPTIMIZATION - PROFESSIONAL ==================== */

/* Base Mobile Styles */
@media (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    body {
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
    }
}

/* Tablet Optimization */
@media (max-width: 991px) {
    .hero-slider {
        margin-top: 70px;
    }
    
    .carousel-item {
        height: 412px;
        background-attachment: scroll;
    }
    
    /* تحسين overlay للتابلت - بدون تأثيرات */
    .carousel-item::after {
        background: transparent;
    }
    
    .carousel-item.position-left::before,
    .carousel-item.position-right::before,
    .carousel-item.position-center::before {
        background: transparent !important;
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
}

/* Mobile Optimization - Primary */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    body {
        padding-top: 0;
    }
    
    /* Navbar Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.4rem 0;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text i {
        font-size: 1.5rem;
    }
    
    .logo-text .brand-name {
        font-size: 1rem;
    }
    
    .logo-text .brand-subtitle {
        font-size: 0.65rem;
    }
    
    /* Carousel Mobile - بدون تأثيرات */
    .hero-slider {
        margin-top: 65px;
    }
    
    .carousel-item {
        height: 375px;
        background-size: cover;
        background-position: center center;
    }
    
    .carousel-item::after {
        background: transparent;
    }
    
    .carousel-item.position-left::before,
    .carousel-item.position-right::before,
    .carousel-item.position-center::before {
        background: transparent !important;
    }
    
    .carousel-item .container {
        padding: 0 15px;
    }
    
    .carousel-item .row {
        margin: 0;
    }
    
    .carousel-item [class*="col-"] {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center !important;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
        white-space: nowrap;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        text-align: center;
        max-width: 100%;
        letter-spacing: -0.5px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        text-align: center;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .hero-buttons {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 90%;
        max-width: 280px;
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Carousel Controls Mobile */
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
    }
    
    .carousel-control-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        bottom: 12px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
        margin: 0 3px;
    }
    
    .carousel-indicators .active {
        width: 20px;
    }
    
    /* Features Section Mobile */
    .features-section {
        padding: 2.5rem 0;
        margin-top: -30px;
    }
    
    .feature-box {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .feature-box h5 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-box p {
        font-size: 0.85rem;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: 50px 0;
    }
    
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .about-img {
        border-radius: var(--radius);
    }
    
    .experience-badge {
        bottom: 10px;
        right: 10px;
        padding: 0.8rem;
        min-width: 90px;
    }
    
    [dir="rtl"] .experience-badge {
        right: auto;
        left: 10px;
    }
    
    .experience-badge h2 {
        font-size: 1.8rem;
    }
    
    .experience-badge p {
        font-size: 0.8rem;
    }
    
    .about-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
    
    /* Automation Section Mobile */
    .automation-section {
        padding: 50px 0;
    }
    
    .automation-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .automation-img {
        border-radius: var(--radius);
    }
    
    .automation-shape {
        top: 15px;
        left: 15px;
    }
    
    [dir="rtl"] .automation-shape {
        left: auto;
        right: 15px;
    }
    
    .automation-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .automation-features {
        padding: 1rem;
    }
    
    .features-title {
        font-size: 1rem;
    }
    
    .automation-list li {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }
    
    .automation-goals {
        font-size: 0.9rem;
    }
    
    /* Products Section Mobile */
    .products-section {
        padding: 50px 0;
    }
    
    .categories-grid {
        margin-bottom: 2.5rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .category-image {
        height: 150px;
    }
    
    .category-content {
        padding: 1rem;
    }
    
    .category-content h5 {
        font-size: 0.95rem;
    }
    
    .category-content p {
        font-size: 0.8rem;
    }
    
    .products-filter {
        gap: 0.4rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: 1.2rem;
    }
    
    .product-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .btn-product {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    /* Contact Section Mobile */
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-info-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .contact-info-box h5 {
        font-size: 0.95rem;
    }
    
    .contact-info-box a {
        font-size: 0.85rem;
    }
    
    .contact-form-box {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    textarea.form-control {
        min-height: 100px;
    }
    
    /* Footer Mobile */
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 25px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-widget p {
        font-size: 0.85rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
    
    /* Product Modal Mobile */
    .product-modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .product-modal .modal-body {
        padding: 1.2rem;
    }
    
    .product-modal-image {
        height: 220px;
        margin-bottom: 1.2rem;
    }
    
    .product-modal-category {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .product-modal-name {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .product-modal-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .product-modal-status {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .product-modal .modal-footer {
        padding: 1rem;
    }
    
    .product-modal .modal-footer .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
    
    [dir="rtl"] .back-to-top {
        right: auto;
        left: 15px;
    }
    
    /* Section Headers Mobile */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .title-divider {
        width: 50px;
        height: 3px;
    }
    
    .section-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 575px) {
    html {
        font-size: 13px;
    }
    
    .carousel-item {
        height: 337px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        letter-spacing: -0.3px;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.45rem 0.9rem;
    }
    
    .hero-buttons .btn {
        width: 95%;
        max-width: 260px;
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .feature-box {
        padding: 1.2rem 0.8rem;
    }
    
    .product-image,
    .category-image {
        height: 180px;
    }
    
    .contact-form-box {
        padding: 1.2rem;
    }
}

/* Extra Small Devices */
@media (max-width: 380px) {
    .carousel-item {
        height: 315px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .carousel-item {
        height: 285px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 140px;
    }
    
    .features-section {
        margin-top: -20px;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .filter-btn,
    .nav-link,
    .product-card,
    .category-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active,
    .filter-btn:active {
        transform: scale(0.98);
    }
    
    .carousel-control-icon:active {
        transform: scale(0.95);
    }
}
/* ==================== PRODUCTS SEARCH & FILTER ==================== */
.products-controls {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 1rem 3rem 1rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
    background: var(--white);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    z-index: 10;
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.search-clear:hover {
    background: var(--danger);
    color: var(--white);
}

.filter-category select {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
}

.filter-category select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
    background: var(--white);
}

.results-info {
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== MINI CATEGORIES ==================== */
.categories-mini-grid {
    margin-bottom: 2rem;
}

.category-mini-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
}

.category-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.category-mini-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.category-mini-card.active h6 {
    color: var(--white);
}

.category-mini-image {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.category-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-mini-card:hover .category-mini-image img {
    transform: scale(1.1);
}

.category-mini-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 188, 212, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-mini-card:hover .category-mini-overlay {
    opacity: 1;
}

.category-mini-overlay i {
    color: var(--white);
    font-size: 1.2rem;
}

.category-mini-content {
    padding: 1rem;
    text-align: center;
}

.category-mini-content h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== PARTNERS SECTION ==================== */
.partners-section {
    padding: 5rem 0;
}

.partners-grid {
    margin-top: 2rem;
}

.partner-logo-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.partner-logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.partner-logo-wrapper:hover .partner-logo {
    transform: scale(1.05);
}

/* ==================== RESPONSIVE FOR NEW ELEMENTS ==================== */
@media (max-width: 768px) {
    .products-controls {
        padding: 1.5rem;
    }
    
    .search-input {
        padding: 0.8rem 2.5rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 1rem;
    }
    
    .category-mini-image {
        height: 60px;
    }
    
    .category-mini-content {
        padding: 0.8rem;
    }
    
    .category-mini-content h6 {
        font-size: 0.8rem;
    }
    
    .partner-logo-wrapper {
        padding: 1.5rem;
        height: 120px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
}

/* Arabic RTL Support for New Elements */
[dir="rtl"] .search-icon {
    left: auto;
    right: 1.2rem;
}

[dir="rtl"] .search-clear {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .search-input {
    padding: 1rem 3rem 1rem 3rem;
}

@media (max-width: 768px) {
    [dir="rtl"] .search-icon {
        right: 1rem;
    }
    
    [dir="rtl"] .search-input {
        padding: 0.8rem 2.5rem 0.8rem 2.5rem;
    }
}

/* ==================== تحسين عرض المنتجات غير المتوفرة ==================== */
.product-card {
    position: relative;
}

.product-card .product-badge.badge-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-weight: bold;
    z-index: 10;
}

.product-card .product-badge.badge-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-weight: bold;
    z-index: 10;
}

/* تأثير خفيف للمنتجات غير المتوفرة */
.product-card:has(.badge-danger) {
    opacity: 0.85;
}

.product-card:has(.badge-danger):hover {
    opacity: 1;
}

/* تحسين أيقونة الحالة */
.product-badge i {
    margin-right: 0.3rem;
}

[dir="rtl"] .product-badge i {
    margin-right: 0;
    margin-left: 0.3rem;
}

/* ==================== تحسين منطقة البحث الجديدة ==================== */
.products-controls .search-box {
    max-width: 600px;
    margin: 0 auto;
}

.products-controls .search-input {
    font-size: 1.1rem;
    padding: 1.2rem 3.5rem 1.2rem 3.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.products-controls .search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.15);
}

.products-controls .search-icon {
    left: 1.5rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.products-controls .search-clear {
    right: 1.2rem;
    padding: 0.7rem;
    font-size: 1rem;
}

.products-results {
    text-align: center;
}

.results-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* RTL Support */
[dir="rtl"] .products-controls .search-icon {
    left: auto;
    right: 1.5rem;
}

[dir="rtl"] .products-controls .search-clear {
    right: auto;
    left: 1.2rem;
}

[dir="rtl"] .products-controls .search-input {
    padding: 1.2rem 3.5rem 1.2rem 3.5rem;
}

@media (max-width: 768px) {
    .products-controls .search-input {
        font-size: 1rem;
        padding: 1rem 3rem 1rem 3rem;
    }
    
    .products-controls .search-icon {
        left: 1.2rem;
        font-size: 1rem;
    }
    
    .products-controls .search-clear {
        right: 1rem;
        padding: 0.6rem;
    }
    
    [dir="rtl"] .products-controls .search-icon {
        right: 1.2rem;
    }
    
    [dir="rtl"] .products-controls .search-clear {
        left: 1rem;
    }
}

/* ==================== زر جميع المنتجات ==================== */
.all-products-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: 2px solid var(--primary);
}

.all-products-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.3);
}

.all-products-btn.active {
    background: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);
    border-color: var(--success);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.4);
}

.all-products-btn h6 {
    color: var(--white);
    font-weight: 700;
}

.all-products-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.all-products-icon i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.9;
}

.all-products-btn:hover .all-products-icon i {
    transform: scale(1.1);
    opacity: 1;
}

/* تحسين عرض التصنيفات المصغرة */
.category-mini-card {
    height: 140px;
    display: flex;
    flex-direction: column;
}

.category-mini-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .all-products-icon {
        height: 60px;
    }
    
    .all-products-icon i {
        font-size: 1.5rem;
    }
    
    .category-mini-card {
        height: 120px;
    }
}

/* ==================== نظام الفلترة المحسن ==================== */

/* تأثيرات الانتقال للمنتجات */
.filterable-product {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* حالات إخفاء المنتجات */
.filterable-product.d-none {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    margin: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
}

/* تأثيرات الظهور */
.filterable-product:not(.d-none) {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* رسالة عدم وجود نتائج محسنة */
#noResultsMessage {
    animation: slideInUp 0.5s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border: 2px dashed #dee2e6;
}

#noResultsMessage i {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* عداد النتائج محسن */
.results-info .text-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* تحسين التصنيفات النشطة */
.category-mini-card.active {
    animation: activeGlow 0.3s ease;
}

.all-products-btn.active {
    animation: activeGlow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

@keyframes activeGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Loading states */
.products-loading {
    position: relative;
}

.products-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* تحسين الاستجابة */
@media (max-width: 768px) {
    .filterable-product {
        transition: all 0.3s ease;
    }
    
    #noResultsMessage {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .results-info .text-primary {
        font-size: 1rem;
    }
}

/* تحسين حالات التحميل */
.products-grid-container {
    min-height: 400px;
    position: relative;
}

/* تأثير focus للبحث */
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1), 
                0 8px 25px rgba(0, 188, 212, 0.15);
}

/* تحسين زر المسح */
.search-clear:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* تحسين أداء الرسوم المتحركة */
.filterable-product,
.category-mini-card,
.all-products-btn {
    will-change: transform;
    backface-visibility: hidden;
}