/* تعديلات للاستجابة على الأجهزة المختلفة */
/* Responsive */
/* أجهزة الكمبيوتر المحمولة / الشاشات الصغيرة */


@media (min-width: 800px) and (max-width: 1024px) {

    .alert-container {
        display: none !important;
    }

    .navbar-mobile {
        display: block !important;
    }

    .logo-img {
        max-height: 70px;
    }

}

@media (min-width: 768px) and (max-width: 1024px) {

    .carousel-item {
        height: auto;
    }

    .top-bar,
    header.sticky-top {
        display: none !important;
    }

    .mission-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* إلغاء التراكم وتثبيت التابات في سطر واحد */
        overflow-x: auto !important;
        /* لتمكين التمرير الأفقي */
        -webkit-overflow-scrolling: touch !important;
        /* تحسين تجربة المستخدم في أجهزة iOS */
        white-space: nowrap !important;
        /* منع التفاف النص */
    }

    .mission-tabs .nav-item {
        flex: 0 0 auto !important;
        /* منع التوسع، ليبقى العنصر بنفس حجمه */
        margin-right: 15px !important;
        /* إضفاء مسافة بين التابات */
    }

    .mission-tabs .nav-link {
        white-space: nowrap !important;
        /* منع التفاف النص داخل التابات */
        padding: 10px 15px !important;
        /* تخصيص حواف التابات */
    }

    /*
    .carousel-caption {
        top: 30%;
    }
*/

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .mission-section .about-image {
        max-width: 80%;
        margin: 0 auto 40px;
    }

    .whatsapp-wrapper,
    .ai-assistant {
        bottom: 80px;
    }

}

@media (min-width: 600px) and (max-width: 800px) {

    .alert-container {
        display: none !important;
    }

    .navbar-mobile {
        display: block !important;
    }

    .logo-img {
        max-height: 70px;
    }
}

/* الشاشات المتوسطة - هواتف ذكية كبيرة / أجهزة لوحية صغيرة */
@media (min-width: 481px) and (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .carousel-item {
        height: auto;
    }

    .mission-section .about-image {
        max-width: 80%;
        margin: 0 auto 40px;
    }

    .top-bar,
    header.sticky-top {
        display: none !important;
    }

    .mission-tabs .nav-link {
        font-size: 16px;
        padding: 10px 15px;
    }

    .feature-list li {
        width: 100%;
        float: none;
    }

    .strategy-box {
        margin-bottom: 30px;
    }

    .logo-container {
        justify-content: center;
        margin-bottom: 15px;
    }

    .contact-info {
        justify-content: center !important;
    }

    .top-bar .contact-item {
        margin: 0 15px;
    }

    .top-bar {
        padding: 15px 0;
    }

    .contact-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar .contact-item {
        margin: 5px 0;
        padding-right: 0;
    }

    .top-bar .contact-item:after {
        display: none;
    }

    .cart-sidebar.show {
        margin-top: 0 !important;
    }

    /*
    .carousel-caption {
        top: 30%;
    }
*/

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption .lead {
        font-size: 1rem;
    }

    .main-image {
        height: 350px;
    }

    .smart-status-bar .status-item {
        justify-content: center;
        margin-bottom: 10px;
    }

    .smart-status-bar .text-md-end {
        text-align: center !important;
    }

    .alert-container {
        bottom: 100px;
        right: 10px;
        left: 10px;
    }

    .smart-alert {
        max-width: 100%;
    }

    .split-image {
        height: 180px;
    }

    .service-content {
        padding: 15px;
    }

    .service-content h3 {
        font-size: 1.2rem;
    }

    .service-content p {
        font-size: 0.9rem;
    }

    .whatsapp-label {
        display: none;
    }

    .hero-section .btn {
        font-size: 1rem;
    }

    .services-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .pricing-card {
        margin-bottom: 2rem;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .project-counter {
        font-size: 3rem;
    }

    .content-with-image {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
    }

    .faq-image {
        width: 300px;
        height: 200px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .text-content {
        flex: 1;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-card {
        padding: 30px 15px;
        margin: 5px;
    }

    .stats-section {
        padding: 60px 0;
    }

    .scenes-section {
        padding: 3rem 0;
    }

    .scene-card {
        padding: 1.5rem 1rem;
        width: 100%;
    }

    .bubble-1,
    .bubble-2,
    .bubble-3,
    .bubble-4,
    .bubble-5 {
        display: none;
    }

    .cart-sidebar {
        max-width: 100%;
    }

    .ai-chat-container {
        width: calc(100vw - 40px);
        right: 20px;
    }

    .mission-tabs {
        margin-bottom: 0;
    }

    .mission-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* إلغاء التراكم وتثبيت التابات في سطر واحد */
        overflow-x: auto !important;
        /* لتمكين التمرير الأفقي */
        -webkit-overflow-scrolling: touch !important;
        /* تحسين تجربة المستخدم في أجهزة iOS */
        white-space: nowrap !important;
        /* منع التفاف النص */
    }

    .mission-tabs .nav-item {
        flex: 0 0 auto !important;
        /* منع التوسع، ليبقى العنصر بنفس حجمه */
        margin-right: 15px !important;
        /* إضفاء مسافة بين التابات */
    }

    .mission-tabs .nav-link {
        white-space: nowrap !important;
        /* منع التفاف النص داخل التابات */
        padding: 10px 15px !important;
        /* تخصيص حواف التابات */
    }

    .mission-section {
        padding: 50px 0;
    }

    .stat-card {
        padding: 20px 20px;
        margin: 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .location-map {
        width: 100%;
    }

    .product-description {
        display: none;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 1.2rem;
        /* حجم صغير للخط على شاشة الموبايل */
    }

    .product-img-container {
        height: 160px;
    }

    .product-title {
        font-size: 15px;
    }

    .price-container {
        padding: 0;
    }

    ins span.woocommerce-Price-amount,
    .price {
        font-size: 0.9rem !important;
    }

    .rating {
        font-size: 11px;
    }

    .icon-box {
        width: 55px;
        height: 55px;
    }

    .icon-box i {
        font-size: 1.3em;
    }

    p {
        font-size: 0.75rem;
    }

    .allRightsReserved {
        font-size: 0.95rem !important;
    }
}

@media (min-width: 596px) and (max-width: 600px) {
    .carousel-item {
        height: auto;
    }

    .navbar-mobile {
        display: block !important;
    }

    :dir(ltr) .whatsapp-wrapper {
        left: 16px;
    }

    .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* الشاشات الصغيرة - هواتف ذكية */
@media (max-width: 480px) {
    .carousel-item {
        height: 360px;
    }

    :dir(ltr) .whatsapp-wrapper {
        left: 16px;
    }

    .whatsapp-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        margin: 0;
    }

    .carousel-caption-btn {
        font-size: 0.95rem;
    }

    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        width: 1rem;
        height: 1rem;
    }

    .allRightsReserved {
        font-size: 0.95rem !important;
    }

    p {
        font-size: 0.75rem;
    }

    .icon-box {
        width: 55px;
        height: 55px;
    }

    .icon-box i {
        font-size: 1.3em;
    }

    .whatsapp-wrapper,
    .ai-assistant {
        bottom: 70px;
    }

    .dark-mode .navbar {
        border-bottom: 3px solid #0f141d;
    }

    .h_add_to_cart_button {
        font-size: 13px;
    }

    .top-bar,
    header.sticky-top {
        display: none !important;
    }

    .navbar {
        border-bottom: 1px solid #ddd;
    }

    .stat-card {
        padding: 20px 20px;
        margin: 0;
    }

    .product-description {
        display: none;
    }

    .product-img-container {
        height: 160px;
    }

    .rating {
        font-size: 12px;
    }

    .product-title {
        font-size: 15px;
    }

    .price-container {
        padding: 0;
    }

    ins span.woocommerce-Price-amount,
    .price,
    .woocommerce-Price-amount:nth-of-type(3) {
        font-size: 0.9rem !important;
    }

    .price .woocommerce-Price-amount {
        font-size: 1.3rem;
    }


    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .location-map {
        width: 100%;
    }

    .scene-notification {
        width: 100%;
        margin: 50px 0;
        text-align: center;
        left: 0;
    }

    /* تحسينات للهيدر */

    .logo-img {
        max-height: 50px;
        width: auto;
    }

    .navbar-brand {
        margin: 0 10px;
    }

    .navbar-brand span {
        display: none;
    }

    /*

    .carousel-caption {
        top: 30%;
    }
*/

    .mission-section .about-image {
        max-width: 80%;
        margin: 0 auto 40px;
    }

    .mission-tabs {
        margin-bottom: 0;
    }

    .mission-section {
        padding: 50px 0;
    }

    .mission-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* إلغاء التراكم وتثبيت التابات في سطر واحد */
        overflow-x: auto !important;
        /* لتمكين التمرير الأفقي */
        -webkit-overflow-scrolling: touch !important;
        /* تحسين تجربة المستخدم في أجهزة iOS */
        white-space: nowrap !important;
        /* منع التفاف النص */
    }

    .mission-tabs .nav-item {
        flex: 0 0 auto !important;
        /* منع التوسع، ليبقى العنصر بنفس حجمه */
        margin-right: 15px !important;
        /* إضفاء مسافة بين التابات */
    }

    .mission-tabs .nav-link {
        white-space: nowrap !important;
        /* منع التفاف النص داخل التابات */
        padding: 10px 15px !important;
        /* تخصيص حواف التابات */
    }
}
