*{
    font-family: Almarai;
}
body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* هذا السطر يمنع ظهور شريط التمرير الأفقي تماماً */
    font-family: Almarai;
}

.navbar {
    position: relative; /* This is the critical change */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 100;
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar .right-nav ul {
    display: flex;
    direction: rtl;
    list-style-type: none;
    justify-content: space-around;
}
.navbar .right-nav ul li {
    margin-left: 25px;
}
.navbar .right-nav ul li a {
    text-decoration: none;
    position: relative;
    color: rgba(0, 104, 211, 1);
    padding-bottom: 5px;
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 21px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}
.right-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}

.right-nav ul li a:hover::after {
    width: 100%;
}
.navbar .center-img {
    display: flex;
    text-align: center;
}
.navbar .left-nav ul {
    display: flex;
    direction: rtl;
    list-style-type: none;
    justify-content: space-around;
}
.navbar .left-nav ul li {
    margin-left: 50px;
}
.navbar .left-nav ul li a {
    width: 22.02px;
}
.menu-icon {
    color: #555;
    text-decoration: none;
}
.menu-icon:hover {
    color: #007bff;
}

.menu-container {
    order: 1; /* يجعله أول عنصر (على اليسار) */
}
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}
.menu-btn:hover {
    color: #007bff;
}

/* القائمة المنسدلة للموبايل */
.dropdown-menu-mobile {
    max-height: 0; /* تبدأ مغلقة */
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    /* height: 100%; */
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.dropdown-menu-mobile.open {
    max-height: 560px; /* حدد طول كافي للقائمة */
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu-mobile ul {
    list-style-type: none;
    padding: 10px 0;
    margin: 0;
}
.dropdown-menu-mobile ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.dropdown-menu-mobile ul li a:hover {
    background-color: #f1f1f1;
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-dropdown-caret {
    font-size: 10px;
    transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown-caret {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
	display: block !important;
    list-style: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    padding: 8px;
    margin: 14px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
    max-height: 360px;
    overflow-y: auto;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li {
    padding: 0;
}
.nav-dropdown-menu li a {
    display: block;
    padding: 9px 14px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}
.nav-dropdown-menu li a::after {
    display: none;
}
.nav-dropdown-menu li a:hover {
    background: #f0f6ff;
    color: #007bff;
}
.nav-dropdown-menu li a.nav-dropdown-all {
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
    padding-bottom: 12px;
    font-weight: 700;
}
.nav-dropdown-mobile > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-dropdown-caret {
    margin-right: 4px;
}
.nav-dropdown-menu-mobile {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    margin: 0;
    background: #f8f9fa;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.nav-dropdown-mobile.open .nav-dropdown-menu-mobile {
    max-height: 400px;
    overflow-y: auto;
    padding: 6px 12px;
}
.nav-dropdown-mobile.open .nav-dropdown-caret {
    transform: rotate(180deg);
}
.nav-dropdown-menu-mobile li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}
.nav-dropdown-menu-mobile li:last-child a {
    border-bottom: none;
}
.login-register-button {
    display: flex;
    align-items: center;
    gap: 5px;
}
.login-register-button a {
    display: inline-block;
    padding: 0;
    margin: 0;
    text-decoration: none;
}
@media (max-width: 991.98px) {
    .navbar {
        flex-direction: row-reverse;
        padding: 8px 12px;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .navbar .center-img {
        order: 2; /* اللوجو في المنتصف */
        margin-left: auto; /* يدفع اللوجو لليمين */
        flex-shrink: 0;
    }
    .navbar .center-img img {
        max-width: 100px;
        height: auto;
    }
    .menu-btn {
        order: 1; /* زر القائمة على اليسار */
        margin-right: auto;
        flex-shrink: 0;
    }
    .right-nav {
        display: none !important;
    }
    .left-nav {
        display: flex !important;
        order: 0;
        margin-right: 0;
        min-width: 0;
        overflow: hidden;
    }
    .left-nav ul.icons {
        justify-content: flex-start;
    }
    .left-nav ul.icons > li:not(.login-register-button) {
        display: none !important;
    }
    .left-nav .login-register-button {
        display: flex !important;
        gap: 6px;
        margin-inline-start: 0;
        padding-inline-start: 0;
        border-inline-start: none;
    }
    .left-nav .login-register-button .btn-login-outline,
    .left-nav .login-register-button .btn-register-fill {
        padding: 7px 10px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }
    .left-nav .login-register-button .btn-register-fill i {
        display: none; /* save horizontal space on small screens */
    }
}

@media (max-width: 380px) {
    .navbar .center-img img {
        max-width: 80px;
    }
    .left-nav .login-register-button .btn-login-outline,
    .left-nav .login-register-button .btn-register-fill {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}

/* section two */

.mySwiper .swiper {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
}

.mySwiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100vh;
}

.mySwiper .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.mySwiper .slide-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 2;
    color: white;
    direction: rtl;
    text-align: right;
    max-width: 600px;
}

.logo-img {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.mySwiper .logo-img img {
    margin-left: 10px;
    position: static;
    width: 90.10224914550781px;
    height: 53.77811050415039px;
    angle: 0 deg;
    opacity: 1;

    z-index: auto;
}

.mySwiper .logo-img h3 {
    font-family: Almarai;
    font-weight: 400;
    font-style: Regular;
    font-size: 44px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}

.mySwiper .slide-content p {
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    margin-bottom: 50px;
    margin-top: 50px;
}

.mySwiper .call-to-action-button {
    width: 240px;
    height: 65px;
    angle: 0 deg;
    opacity: 1;
    border-radius: 8px;
    gap: 10px;
    background: rgba(0, 104, 211, 1);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}
.mySwiper .call-to-action-button:hover {
    background-color: #0056b3;
}

.mySwiper .arrow-icon {
    width: 31;
    height: 31;
    angle: 90 deg;
    opacity: 1;
    transform: rotate(0deg);
}

.mySwiper .swiper-button-prev,
.mySwiper .swiper-button-next {
    color: rgba(0, 104, 211, 1);
    background-color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.mySwiper .swiper-button-prev:after,
.mySwiper .swiper-button-next:after {
    font-size: 24px;
}

.mySwiper .swiper-pagination-bullet {
    background: #333; /* لون غامق زي الرمادي الغامق */
    opacity: 0.7; /* شفافية بسيطة */
}

.mySwiper .swiper-pagination-bullet-active {
    background-color: #007bff; /* لون أزرق واضح */
    opacity: 1; /* شفافية كاملة */
}

.mySwiper .swiper-pagination {
    position: relative; /* تم التغيير من absolute إلى relative */
    text-align: center;
    margin-top: 20px;
}
@media (max-width: 768px) {
    .swiper.mySwiper {
        display: none;
    }
}

/* three section */
/* تنسيق الحاوية الرئيسية */

/* تنسيق عنوان الأقسام */

.section-three {
    margin-top: 20px;
    margin-bottom: 20px;
}
.aksam {
    margin-bottom: 30px;
    text-align: center;
}

.aksam h1 {
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    color: rgba(0, 104, 211, 1);
}

.allcard {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    direction: rtl;
}

.allcard .category-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: 170px;
}
.allcard .category-wrapper a {
    text-decoration: none;
}
.section-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 104, 211, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    width: 100%;
    height: 175px;
    border-radius: 7px;
    border-width: 2px;
}

.section-icon img {
    color: rgba(0, 104, 211, 1);
    width: 83.32px;
    height: 83.34px;
    top: 8.33px;
    left: 8.34px;
    opacity: 1;
    border-width: 5px;
    margin: 44px;
}

.icones {
    background-color: rgba(0, 104, 211, 1);
}

.icones .section-icon .fas {
    width: 80px;
    height: 80px;
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: space-around;
    font-size: 40px;
}

/* تنسيق النص */
.category-wrapper p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 104, 211, 1);
    font-size: 25px;
    font-family: Almarai;
}

/* التجاوبية (Responsive) */
@media (max-width: 768px) {
    .allcard {
        justify-content: center;
    }

    .allcard .category-wrapper {
        width: 30%;
        /*flex-basis: 30%;*/
        max-width: 30%;
    }

    .section-item {
        width: 100%;
        height: 95px;
    }

    .section-icon img {
        width: 60px;
        height: 60px;
        margin: 20px;
    }

    .icones .section-icon .fas {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .category-wrapper p {
        font-size: 18px;
    }
    .aksam h1 {
        font-size: 26px;
    }
}
/* four */
.why-maqayda-section {
    padding: 80px 20px;
    background-color: #ffffff;
    text-align: center;
}
.why-maqayda-section h2 {
    font-size: 40px;
    margin-bottom: 50px;
    color: #333;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 0 20px;
}
.section-header h2,
.view-all-button,
.card-content h3,
.card-content p {
    font-family: Almarai, sans-serif;
}
.feature-card {
    padding: 40px;
    background-color: #f7f9fc;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.feature-card i {
    font-size: 50px;
    color: #007bff;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}
.feature-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}
.card-image {
    padding: 10px;
}
/* تنسيقات الأقسام المشتركة */
.featured-requests-section,
.featured-offers-section {
    /*padding: 50px 0;*/
    margin: 0 auto;
    background-color: rgba(245, 245, 245, 1);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 30px;
}
.section-header h2 {
    color: rgba(0, 104, 211, 1);
    font-family: Almarai;
    font-weight: 700;
    font-size: 37px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    position: relative;
    display: inline-block;
}
.section-header h2 .highlight,
.section-header h2 .highlight-s1 {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.section-header h2 .highlight::before,
.section-header h2 .highlight-s1::before {
    content: "";
    position: absolute;
    top: 81%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + -5px);
    height: calc(100% + -9px);
    background-color: rgba(173, 216, 230, 0.5);
    border-radius: 5px;
    z-index: -1;
}

/* تنسيق زر "عرض الكل" المشترك */
.view-all-button {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 28px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    border-radius: 34px;
    padding: 15px 25px;
    gap: 10px;
}
.view-all-button:hover {
    background-color: #0056b3;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 0 20px;
}
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 280px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}
.heart {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.heart i {
    color: #eceaea;
    font-size: 18px;
    transition: color 0.2s;
    -webkit-text-stroke: 1px rgba(0, 104, 211, 1);
    text-stroke: 2px rgba(0, 104, 211, 1);
}
.heart.active i {
    color: #ff335f;
}
.heart:hover {
    transform: scale(1.1);
}
.featured-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 8px 0px 0px 9px;
    font-weight: bold;
    z-index: 10;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.card-image img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    border-radius: 10px;
}
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}
.card-content h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}
.card-content p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
}
.card-content .contact-button {
    background-color: transparent;
    color: #007bff;
    width: 100%;
    padding: 5px 0px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid #007bff;
    transition: background-color 0.3s, color 0.3s;
    margin-top: auto;
}
.card-content .contact-button:hover {
    background-color: #007bff;
    color: white;
}
/* تنسيقات السلايدر (أزرار التنقل) المشتركة */
.requests-swiper-container,
.offers-swiper-container {
    position: relative;
    padding: 10px;
}
.requests-swiper-container .requests-button-prev,
.requests-swiper-container .requests-button-next,
.offers-swiper-container .offers-button-prev,
.offers-swiper-container .offers-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    background-color: rgba(0, 104, 211, 1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.requests-swiper-container .requests-button-prev,
.offers-swiper-container .offers-button-prev {
    left: 20px;
}

.requests-swiper-container .requests-button-next,
.offers-swiper-container .offers-button-next {
    right: 20px;
}
.requests-swiper-container .all-slider,
.offers-swiper-container .offers-slider {
    display: flex;
}
.requests-swiper-container .swiper-slide,
.offers-swiper-container .swiper-slide {
    display: flex;
    align-content: center;
    justify-content: center;
}
.requests-swiper-container.few-slides .swiper-wrapper,
.offers-swiper-container.few-slides .swiper-wrapper {
    justify-content: center;
}

/* تنسيقات الشاشات الصغيرة */
@media (max-width: 768px) {
    .view-all-button {
        padding: 3px 15px;
        font-size: 13px;
        border-radius: 20px;
        gap: 5px;
    }
    .view-all-button i {
        display: none;
    }
    .section-header h2 {
        font-size: 18px;
    }
}

/* five */

.form-toggle-btn {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 104, 211, 1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
}

.form-toggle-btn:hover {
    background-color: rgba(0, 80, 180, 1);
}
.request-content {
    display: flex; /* هذا هو السطر المهم */
    justify-content: center;
    gap: 50px;
    margin: 0 auto;
    max-width: 1200px;
}
.request-form {
    background-color: rgba(245, 245, 245, 1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}
.request-right h2 {
    text-align: center;
    margin-bottom: 25px;
    color: rgba(0, 104, 211, 1);
    position: relative;
    /* display: inline-block; */
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}
.request-right h2 .highlight-form {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.request-right h2 .highlight-form::before {
    content: "";
    position: absolute;
    top: 93%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + -16px);
    height: calc(100% + -9px);
    background-color: rgba(173, 216, 230, 0.5);
    border-radius: 5px;
    z-index: -1;
}

/* تنسيق الصفوف داخل النموذج */
/* Container for the two columns */
.request-form .form-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: Almarai;
}

/* Styling for each vertical column */
.request-form .form-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 20px;
}

.request-form .form-column:first-child {
    flex-basis: 60%;
}

.request-form .form-column:last-child {
    flex-basis: 40%;
}

.request-form .form-group {
    display: flex;
    flex-direction: column;
}

.request-form input,
.request-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color: #fff;
    text-align: right;
}
#category_id {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color: #fff;
    text-align: right;
    color: rgba(142, 142, 147, 1);
}
#category_id option {
    color: rgba(142, 142, 147, 1);
}

.image-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #f9f9f9;
}

.image-upload-label:hover {
    background-color: #eee;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: #007bff; /* لون أزرق مناسب */
    margin-bottom: 10px;
}

.upload-text {
    font-size: 16px;
    color: #555;
    /*font-weight: bold;*/
}

/* لإخفاء الـ input الأصلي */
.d-none {
    display: none;
}
/* Styling for the button */
.request-form button {
    display: block;
    width: 100%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    background-color: rgba(0, 104, 211, 1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}

.request-form button[type="submit"]:hover {
    background-color: rgba(0, 104, 211, 1); /* Darker blue on hover */
}
/* تنسيقات الفورم الرئيسية */
.request-form {
    background-color: rgba(245, 245, 245, 1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}
.request-form .form-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.request-form .form-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 20px;
}
.request-form .form-column:first-child {
    flex-basis: 60%;
}
.request-form .form-column:last-child {
    flex-basis: 40%;
}
.request-form .form-group {
    display: flex;
    flex-direction: column;
}
.request-form input,
.request-form textarea,
#category_id {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color: #fff;
    text-align: right;
    font-family: inherit;
}

/* حقل رقم الهاتف مع مفتاح الدولة */
.phone-input-row {
    display: flex;
    gap: 8px;
    direction: rtl;
}
.phone-input-row .country-code-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 92px;
    padding: 10px 6px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background-color: #fff;
    text-align: center;
    font-family: inherit;
}
.phone-input-row .local-phone-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

@media (max-width: 767px) {
    .phone-input-row .country-code-select {
        min-width: 78px;
        padding: 12px 4px;
        border-radius: 10px;
        font-size: 13px;
    }
    .phone-input-row .local-phone-input {
        padding: 12px;
        border-radius: 10px;
    }
}

/* ------------------------------------------- */
/* تنسيقات الشاشات الصغيرة (الجوالات) */
/* ------------------------------------------- */
@media (max-width: 767px) {
    /* تطبيق هذا التنسيق على الشاشات التي عرضها 767 بكسل أو أقل */

    /* جعل الأعمدة تظهر فوق بعضها لبعض */
    .request-form .form-columns {
        flex-direction: column;
        gap: 0;
    }

    /* جعل كل عمود يأخذ العرض الكامل */
    .request-form .form-column {
        flex-basis: auto;
        width: 100%;
        gap: 20px; /* لإعادة المسافة بين الحقول */
    }

    /* إضافة مسافة بين مجموعات الحقول */
    .request-form .form-group {
        margin-bottom: 20px;
    }

    /* تنسيق خاص لحقول الإدخال في الجوال */
    .request-form input,
    .request-form textarea,
    #category_id {
        padding: 12px; /* زيادة الـ padding لسهولة الاستخدام */
        border-radius: 10px; /* تقليل الـ border-radius قليلاً */
    }
}

/* تنسيق الأيقونات الاجتماعية بالكامل */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* margin-top: 15px; */
}

/* تنسيق الحاوية الخارجية لكل أيقونة */
.contact-items-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.contact-items-container .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* تنسيق خلفية الأيقونة (الدائرة البيضاء مع الظل) */
.socielleft {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* margin-top: 180px; */
}
.contact-info h3 {
    color: rgba(0, 104, 211, 1);
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 27px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    margin-top: 20px;
    margin-right: -33px;
}

.contact-numbers .contact-item a {
    margin-left: 10px;
    text-decoration: none;
}
.contact-items-container .icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid rgba(0, 197, 251, 1);
    transition: transform 0.3s ease;
}

.contact-items-container .icon-bg i {
    color: rgba(0, 197, 251, 1);
    background-color: #fff; /* لون الخلفية الأبيض */
    font-size: 1.2rem;
}

.contact-items-container .number-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.contact-items-container .number-text {
    margin: 0;
    font-size: 1rem;
    color: rgba(0, 104, 211, 1);
    direction: ltr;
}

.social-icons a {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
}

/* تنسيق الخلفية الزرقاء الداخلية */
.social-icons .icon-bg {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* تنسيق الأيقونة نفسها */
.social-icons i {
    color: #007bff;
    font-size: 1.8rem;
}
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    margin-bottom: 24px;
}

.gallery-column {
    padding: 10px;
}

/* تنسيق الصورة نفسها */
.gallery-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
    .contact-items-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px; }

    .contact-info h3 {
        text-align: center;
        margin-right: 0;
    }
}
.main-footer {
    background-color: rgba(0, 104, 211, 1);
    color: #ffffff;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
    margin: 20px;
    border-radius: 22px;
}
.footer-number-text {
    color: #f1f1f1;
}
.footer-container {
    display: flex;
    /* flex-wrap: wrap; / */
    justify-content: space-around;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 280px;
    margin-bottom: 20px;
}
.footer-column .fot-p {
    font-family: Almarai;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 150%;
    letter-spacing: 0%;
    /* text-align: right; */
}
.about-us {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .contact-items-container {
        display: flex; /* تأكد من أن الحاوية الأم هي flexbox */
        flex-direction: column; /* الأرقام فوق بعضها على الشاشات الكبيرة */
        align-items: center;
        gap: 20px;

    }
    .contact-number-wrapper {
        display: flex; /* الأيقونة والرقم بجانب بعضهما */
        align-items: center;
        gap: 15px;
        /* text-decoration: none; */
    }
}

/* تنسيقات الشاشات الأصغر جداً */
@media (max-width: 575px) {
    .contact-items-container {
        flex-direction: row; /* الأرقام بجانب بعضها على الجوالات */
        justify-content: center;
        flex-wrap: wrap;
    }
    .contact-number-wrapper {
        flex-direction: column; /* الأيقونة والرقم فوق بعضهما في الأصغر */
        gap: 5px;
    }
    .contact-info h3 {
        text-align: center;
        margin-right: 0;
    }
}
.footer-title {
    font-size: 22px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px; /* خط تحت العنوان */
    height: 3px;
    background-color: #ffffff;
}

.contact-info p {
    /* margin-bottom: 10px; */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .contact-info i {
  color: rgba(0, 204, 252, 1);
  background-color: #fff;

} */

.main-footer .social-icons a {
    border: 3px solid rgba(0, 0, 0, 0.1);
    width: 37px;
    height: 37px;
    border-radius: 50%;
    position: relative;
    background-color: #fff;
    box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}
.main-footer .social-icons a i {
    font-size: 15.68px;
    color: rgba(0, 204, 252, 1);
    background-color: #fff;
    border-radius: 10px;
}

.about-us {
    text-align: right;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    justify-content: flex-end;
}

.footer-logo img {
    width: 250px;
    height: auto;
}

.about-us p {
    height: 71px;
    top: 183px;
    left: 836px;
    opacity: 1;
    font-family: Almarai;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: right;
}

.main-footer .social-icons a:hover {
    background-color: #ffffff;
    color: #0d47a1;
}

.payment-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end; /* لترتيب أيقونات الدفع على اليمين */
}

.payment-icons img {
    width: 60px; /* حجم أيقونات الدفع */
    height: auto;
    background-color: #ffffff; /* لجعل أيقونات الدفع تظهر بشكل واضح */
    padding: 5px;
    border-radius: 5px;
}

.footer-column .contact-numbers .contact-item a {
    /* margin-left: 10px; */
    text-decoration: none;
}
.footer-column .contact-items-container .icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid rgba(0, 197, 251, 1);
    transition: transform 0.3s ease;
    background: #fff;
}
.footer-column .contact-numbers h3 {
    color: #fff;
}
.footer-column .contact-numbers .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.footer-column .contact-items-container {
    gap: 10px;
}

.footer-column .contact-items-container .icon-bg i {
    color: rgba(0, 197, 251, 1);
    background-color: #fff;
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgb(255 251 251 / 91%);
    font-size: 14px;
    margin-right: 61px;
    margin-left: 61px;
}
.footer-bottom .payment-icons img {
    background-color: rgba(255, 255, 255, 0.45);
    width: 70px;
}
.footer-bottom p {
    text-align: right;
    font-family: Almarai;
    font-weight: 400;
    font-style: Regular;
    font-size: 19px;
    line-height: 100%;
}
.footer-bottom .payment-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}
.footer-number-text {
    direction: ltr;
    margin: 0;
}
/* استجابة الفوتر للشاشات الصغيرة */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        right: unset;
    }

    .contact-info p,
    .footer-logo,
    .social-icons,
    .payment-icons {
        justify-content: center;
    }

    .main-footer .social-icons a {
        width: 58px;
        margin-top: 73px;
        height: 58px;
    }
    .view-all-button {
        font-size: 13px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom p {
        text-align: center;
        margin-right: 0;
    }

    .footer-bottom .payment-icons {
        justify-content: center;
    }
}
/* الاقسام */
/* describtion */
.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-right: 160px;
  color: #0068D3;
}

.product-media-section {
	max-width: 700px;
	margin: 0 auto;
}
.main-image-container {
	width: 100%;
	max-width: 650px;
	aspect-ratio: 650 / 302;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 16px;
}

.main-image-container img {
  height: 100%;
  width: 100%;
  object-fit: contain; 
}

/* Swiper.js container styling */
.thumbnails-container-wrapper {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  padding: 0 40px;
}

.product-thumbnails-swiper {
  text-align: center;
  position: static;
}

.thumbnail-item {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
  border-color: #4caf50;
  transform: scale(1.05);
}

.swiper-slide .thumbnail-item {
  width: 100px;
  height: 100px;
  angle: 0 deg;
  opacity: 1;
  border-radius: 8px;
}
.thumbnails-container-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* تعديل خصائص Swiper.js container */
.product-thumbnails-swiper {
  padding: 0 20px;
  position: static;
  text-align: center;
  /* width: 100%; */
}

/* .thumbnails-container-wrapper {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
} */

.product-thumbnails-swiper {
  padding: 0 20px;
  position: static;
  text-align: center;
  /* width: 100%; */
}

.product-thumbnails-swiper .thumbnail-prev,
.product-thumbnails-swiper .thumbnail-next {
 top: 65%;
 transform: translateY(-50%);
 position: absolute;
}

.product-thumbnails-swiper .thumbnail-prev {
 right: 0;
}

.product-thumbnails-swiper .thumbnail-next {
 left: 0;
}


/* Styling for both contact buttons */
.contact-btn {
  border: 2px solid #00c65c; /* Border color from the design */
  background-color: white; /* White background */
  color: #333; /* Dark text color */
  font-weight: 600;
  font-size: 1rem;
  /* padding: 10px 20px; */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

/* Specific styling for the WhatsApp button */
.whatsapp-btn {
  border-color: #00c65c;
  color:rgba(52, 199, 89, 1);
}

.whatsapp-btn img {
  height: 35px; /* Adjust icon size */
  width: auto;
  margin-left: 10px;
}

/* Specific styling for the phone button */
.phone-btn {
  border-color: #0068d3;
  color: #0068d3;
}

.phone-btn i {
  font-size: 1.2rem;
  color: #0068d3; /* Icon color */
  margin-left: 10px;
}

/* Hover effects */
.contact-btn:hover {
  background-color: #00c65c;
  color: white;
}

.contact-btn:hover .phone-btn i {
  color: white; /* Change icon color on hover */
}
.down-swiper{
  display: flex;
  justify-content: space-between;

}
/* لعمل خط فاصل بين العمودين */
.down-swiper .col-md-6:first-child {
  /* هذا يستهدف العمود الأول في الـ "row" */
  border-left: 2px solid #00CCFC; /* لون خفيف للخط الفاصل */
  padding-left: 10px; /* مسافة من الخط الفاصل للنص في العمود الأيمن */
  margin-right: -1px; /* لضمان عدم وجود مسافة بيضاء إضافية */
}
.curd {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
}
.curd .pr {
  font-family: Almarai;
  /* font-weight: 700; */
  /* font-style: Bold; */
  font-size: 25px;
  leading-trim: NONE;
  line-height: 41px;
  letter-spacing: 0%;
  text-align: justify;
}
.curd .pr span {
  color: #0068d3;
}
.curd .adress {
  font-family: Almarai;
  font-weight: 300;
  /* font-style: Bold; */
  font-size: 32px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}
.curd .adress .pr-1{
  color: #0068D3;
}
.curd  .product-owner {
  font-family: Almarai;
  font-weight: 400;
  font-style: Regular;
  font-size: 32px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: #00ccfc;
  margin-bottom: 24px;
}

.product-name {
  font-family: Almarai;
  font-weight: 700;
  font-style: Bold;
  font-size: 35px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}
@media (max-width: 576px) {
    .product-title {
        font-size: 1.5rem;
        justify-content: center; /* توسيط العنوان */
        margin-right: 0;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .curd .product-owner {
        font-size: 1.2rem;
    }

    .curd .pr {
        font-size: 0.9rem;
    }

    .curd .adress {
        font-size: 1rem;
    }
}


/* تحسينات للشاشات المتوسطة (768px وأكبر) */
@media (min-width: 768px) {
    .down-swiper {
        flex-direction: row; /* إعادة المحتوى ليكون في صف واحد */
    }

    .down-swiper .col-md-6:first-child {
        border-left: 2px solid #00ccfc;
        padding-left: 10px;
        margin-right: -1px;
    }

    .curd .product-owner {
        font-size: 2rem;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .curd .pr {
        font-size: 1.2rem;
    }

    .curd .adress {
        font-size: 1.2rem;
    }

    .contact-btn {
        font-size: 1rem;
    }
}

/* ============================================
   Categories Section — Premium Redesign
   ============================================ */
.categories-section {
  --cat-radius: 18px;
  --cat-border: #e7edf5;
  --cat-border-hover: #0068d3;
  --cat-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --cat-shadow-hover: 0 14px 30px rgba(0, 104, 211, 0.16);
  --cat-icon-bg-hover: #0068d3;
  --cat-accent: #0068d3;
  --cat-text: #1c2733;
  --cat-desc: #8a94a6;
  padding: 48px 20px;
  max-width: 1200px;
  margin: 30px auto;
  text-align: center;
}

.categories-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cat-accent);
  text-align: right;
  margin-bottom: 10px;
  padding-right: 20px;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.categories-section .section-title::before {
  content: "";
  position: absolute;
  top: 87%;
  left: 44%;
  transform: translate(-50%, -50%);
  width: calc(100% + -36px);
  height: calc(100% + -9px);
  background-color: rgba(173, 216, 230, 0.5);
  border-radius: 5px;
  z-index: -1;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--cat-desc);
  margin: 0 0 34px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  justify-content: center;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #fff;
  border: 1.5px solid var(--cat-border);
  border-radius: var(--cat-radius);
  padding: 26px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--cat-text);
  box-shadow: var(--cat-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--cat-shadow-hover);
  border-color: var(--cat-border-hover);
  background-color: #fbfdff;
}

.category-card:focus-visible {
  outline: 2px solid var(--cat-accent);
  outline-offset: 3px;
}

.category-card .card-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cat-accent);
  background-color: #eaf3ff;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.category-card:nth-child(1) .card-icon-wrapper { background-color: #fde2ea; }
.category-card:nth-child(2) .card-icon-wrapper { background-color: #fef3c7; }
.category-card:nth-child(3) .card-icon-wrapper { background-color: #dbeafe; }
.category-card:nth-child(4) .card-icon-wrapper { background-color: #ffe4d5; }
.category-card:nth-child(5) .card-icon-wrapper { background-color: #dcfce7; }
.category-card:nth-child(6) .card-icon-wrapper { background-color: #ede9fe; }
.category-card:nth-child(7) .card-icon-wrapper { background-color: #e0f2fe; }
.category-card:nth-child(8) .card-icon-wrapper { background-color: #fce7f3; }
.category-card:nth-child(9) .card-icon-wrapper { background-color: #e0e7ff; }
.category-card:nth-child(10) .card-icon-wrapper { background-color: #ffe4e6; }
.category-card:nth-child(11) .card-icon-wrapper { background-color: #fef9c3; }
.category-card:nth-child(12) .card-icon-wrapper { background-color: #d1fae5; }

.category-card:hover .card-icon-wrapper,
.category-card:focus-visible .card-icon-wrapper {
  background-color: var(--cat-icon-bg-hover) !important;
  color: #fff;
  transform: scale(1.08);
}

.card-icon-svg {
  width: 30px;
  height: 30px;
}

.category-card .card-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cat-text);
  line-height: 1.3;
}

.category-card .card-desc {
  font-size: 0.82rem;
  color: var(--cat-desc);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-card .card-icon-wrapper {
    transition: none;
  }
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-section .section-title {
    font-size: 2rem;
    text-align: center;
    padding-right: 0;
  }
  .section-subtitle {
    text-align: center;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .category-card {
    padding: 20px 12px;
  }
  .category-card .card-icon-wrapper {
    width: 58px;
    height: 58px;
  }
  .card-icon-svg {
    width: 26px;
    height: 26px;
  }
  .category-card .card-text {
    font-size: 0.95rem;
  }
  .category-card .card-desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .categories-section .section-title {
    font-size: 1.8rem;
  }
}
.favorites-link {
    position: relative;
}

.favorite-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    min-width: 20px;
    height: 20px;
}

#search-bar {
    position: fixed; /* يجب أن يكون ثابتًا ليظهر دائمًا أسفل الناف بار */
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* يجب أن يكون أعلى من المحتوى ولكنه أقل من الناف بار */
    transition: top 0.3s ease-in-out;

    /* القيمة الافتراضية للإخفاء */
    top: -100px; /* يجب أن تكون أعلى من ارتفاع الناف بار */
}

#search-bar.show {
    /* هنا ضع ارتفاع الناف بار بالضبط */
    top: 60px; /* افترض أن ارتفاع الناف بار هو 60px، عدّليه إذا كان مختلفًا */
}

.search-form-full-width {
    display: flex;
    justify-content: center; /* لمركزة العناصر إذا كان هناك مساحة إضافية */
    align-items: center;
    width: 100%;
    max-width: 90%; /* يمكنك تقييد عرض الفورم قليلاً لجعله أجمل */
    margin: 0 auto; /* لمركزة الفورم داخل الـ #search-bar */
}

.search-input-wrapper {
    flex-grow: 1; /* يجعل حقل الإدخال يمتد لملء المساحة */
    margin-left: 10px; /* مسافة بين حقل الإدخال وزر البحث */
}

.search-form-full-width .form-control {
    width: 100%;
}
/* العرض */
.deal-card {
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.deal-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.deal-content {
    z-index: 10;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px; /* لإضافة مساحة داخلية من اليمين */
}

.deal-content h3 {
    color: rgba(0, 104, 211, 1);
    font-family: Almarai;
    font-weight: 800;
    font-style: ExtraBold;
    font-size: 25px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    margin-bottom: 53px;
    white-space: normal;
    word-break: break-word;
    max-width: 400px;
}
.deal-content .tit-alan {
    font-family: Almarai;
    font-weight: 700;
    font-style: Bold;
    font-size: 17px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
}

.btn-deal {
    background-color: #007bff;
    color: #fff;
    /* padding: 10px 25px; */
    /* border-radius: 9px; */
    text-decoration: none;
    /* transition: background-color 0.3s ease, transform 0.3s ease; */
    border: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;

    width: 166;
    height: 44;
    border-radius: 9px;
    opacity: 1;
    gap: 4px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 20px;
}

.btn-deal:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.icon-box {
    border: 1px solid #fff;
    color: #fff;
    font-weight: bold;
    border-radius: 3px;
    padding: 2px 5px;
    margin-left: 10px;
    font-size: 1.2rem;
}

.card-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #6b7280;
    margin: 2px 0 6px;
}

.card-city i {
    color: #3b82f6;
    font-size: 0.78rem;
}

/* ===== Hero Section ===== */
.hero-section {
	padding: 10px 0 10px;
	background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin-bottom: 14px;
}

.hero-top {
	text-align: right;
	margin: 0 0 10px;
}

.hero-title {
	font-family: 'Cairo', 'Alexandria', 'Almarai', sans-serif;
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1.28;
	margin-bottom: 8px;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.hero-title .highlight-s1 {
	color: #2563eb;
}

.hero-subtitle {
	font-size: 0.95rem;
	line-height: 1.45;
	color: #64748b;
	margin: 0 0 12px;
	max-width: 480px;
}

.hero-search-form {
	display: flex;
	gap: 8px;
	margin: 0 0 8px;
}

.hero-search-form input[type="text"] {
	flex: 1 1 220px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.9rem;
}

.hero-search-form select {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.85rem;
	max-width: 140px;
}

.hero-search-form button {
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease;
}

.hero-search-form button:hover {
	background: #1d4ed8;
}

.hero-cta-row {
	display: flex;
	justify-content: flex-start;
}

.hero-secondary-link {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hero-secondary-link:hover {
	text-decoration: underline;
}

.hero-showcase {
	max-width: 100%;
}

.hero-showcase-img-wrap {
	position: relative;
}

.hero-showcase-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
	opacity: 0;
	animation: heroFadeUp 0.6s ease 0.1s both;
}

.hero-feature-cards {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero-feature-card {
	position: absolute;
	pointer-events: auto;
	width: 138px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 12px;
	padding: 7px 10px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
	opacity: 0;
	animation: heroFadeUp 0.6s ease both;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.hero-feature-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
}

.hero-feature-text {
	font-family: 'Cairo', sans-serif;
	font-weight: 700;
	font-size: 12.5px;
	color: #0f172a;
	white-space: nowrap;
}

.hero-feature-card.card-1 {
	top: -14px;
	left: 6px;
	animation-delay: 0.25s;
}

.hero-feature-card.card-2 {
	top: -14px;
	right: 6px;
	animation-delay: 0.4s;
}

.hero-feature-card.card-3 {
	bottom: -14px;
	left: 50%;
	margin-left: -69px;
	animation-delay: 0.55s;
}

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

.hero-cta-bar {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 15px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 0.98rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-cta-bar:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-top { order: -1; text-align: center; }
	.hero-search-form input[type="text"] { padding: 9px 12px; font-size: 0.85rem; }
	.hero-search-form select { padding: 9px 10px; font-size: 0.8rem; }
	.hero-search-form button { padding: 9px 14px; font-size: 0.85rem; }
	.hero-search-form {
		flex-wrap: wrap;
	}

	.hero-search-form input[type="text"] {
		flex: none;
		width: 100%;
	}

	.hero-search-form select {
		flex: 1;
		max-width: none;
		border-right: none;
		border-top: 1px solid #e2e8f0;
	}

	.hero-showcase {
		max-width: 420px;
	}

	.hero-feature-cards {
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
		margin-top: 14px;
	}

	.hero-feature-card {
		position: static;
		width: auto;
	}

	.hero-feature-card.card-3 {
		margin-left: 0;
	}
}
/* ===== Category count badge (homepage grid) ===== */
.card-count {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #2563eb;
    background: #eaf3ff;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: #1d4ed8;
    padding: 36px 0;
    margin: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #dbeafe;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== How it works ===== */
.how-it-works-section {
    padding: 48px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.step-item {
    text-align: center;
    padding: 28px 20px;
    border: 1px solid #eef1f5;
    border-radius: 16px;
    background: #fbfdff;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.step-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}

.step-item p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Why choose us ===== */
.why-us-section {
    padding: 48px 0;
    background: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef1f5;
}

.feature-item i {
    font-size: 1.6rem;
    color: #2563eb;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.feature-item p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Search results / refine form ===== */
.search-results-header {
    margin: 24px 0;
}

.search-refine-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.search-refine-form input[type="text"],
.search-refine-form select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
}

.search-refine-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
}

.search-results-count {
    color: #64748b;
    font-size: 0.9rem;
}

/* ===== Footer newsletter ===== */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.footer-newsletter-form {
    display: flex;
    gap: 8px;
}

.footer-newsletter-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.footer-newsletter-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.footer-newsletter-success {
    color: #86efac;
    font-size: 0.85rem;
}

.footer-links-column h3 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links-column ul li a:hover {
    color: #ffffff;
}

/* ===== Footer fixes ===== */
.footer-newsletter-form input[type="email"] {
    min-width: 0;
}

.privacy-link {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
}

.privacy-link:hover {
    color: #ffffff !important;
}

/* ===== Modern Footer Redesign 2026 ===== */
.footer-modern {
    background: linear-gradient(135deg, #0E63D5 0%, #0A4FA7 100%) !important;
    border-radius: 24px;
    padding: 56px 40px 0;
    margin: 20px;
}

.footer-modern-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-modern-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-col {
    align-items: flex-end;
    text-align: right;
}

.footer-modern-logo img {
    width: 190px;
    height: auto;
}

.footer-modern-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.footer-modern-social {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-social-btn:hover {
    transform: scale(1.12);
    background-color: #ffffff;
    color: #0A4FA7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-modern-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.footer-modern-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-contact-icons {
    text-decoration: none;
}

.footer-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-contact-icons:hover .footer-icon-circle {
    transform: scale(1.1);
    background-color: #ffffff;
    color: #0A4FA7;
}

.footer-modern-number {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
}

.footer-modern-contact-line {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-modern-contact-line i {
    color: rgba(255, 255, 255, 0.7);
    width: 16px;
    text-align: center;
}

.footer-modern-contact-line:hover {
    color: #ffffff;
}

.footer-modern-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-modern-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-modern-links a:hover {
    color: #ffffff;
    padding-right: 4px;
}

.footer-modern-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.footer-modern-newsletter-form input[type="email"] {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.footer-modern-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.footer-modern-newsletter-form input[type="email"]:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.footer-modern-newsletter-form button {
    width: 100%;
    background: #ffffff;
    color: #0A4FA7;
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.footer-modern-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    background-color: #f0f6ff;
}

.footer-modern-newsletter-success {
    color: #86efac;
    font-size: 0.85rem;
    margin: 0;
}

.footer-modern-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    width: 100%;
}

.footer-modern-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-modern-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin: 0;
}

.footer-modern-privacy {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-modern-privacy:hover {
    color: #ffffff !important;
}

@media (max-width: 992px) {
    .footer-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .footer-modern {
        padding: 40px 20px 0;
        margin: 12px;
        border-radius: 20px;
    }
    .footer-modern-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-modern-col {
        align-items: center;
    }
    .footer-brand-col {
        align-items: center;
        text-align: center;
    }
    .footer-modern-contact-row {
        justify-content: center;
    }
    .footer-modern-contact-line {
        justify-content: center;
    }
    .footer-modern-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Trust Badges (below hero) ===== */
.trust-badges-section {
    padding: 8px 0 40px;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trust-badge-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.trust-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #2563eb;
    margin-bottom: 16px;
}

.trust-badge-icon svg {
    width: 28px;
    height: 28px;
}

.trust-badge-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.trust-badge-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== Header Auth Buttons (login/register) ===== */
.login-register-button {
    margin-inline-start: 10px;
    padding-inline-start: 12px;
    border-inline-start: 1px solid rgba(15, 23, 42, 0.08);
}
.btn-login-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 10px;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn-login-outline:hover {
    background: #eaf3ff;
    color: #1d4ed8;
}
.btn-register-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.btn-register-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}
.logout-form-inline {
    display: inline-block;
    margin: 0;
}
.auth-buttons-mobile {
    width: 100%;
    padding: 14px 20px !important;
    border-inline-start: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 6px;
    justify-content: flex-start;
}
/* ===== Header Auth Buttons — specificity override ===== */
.navbar .left-nav ul li.login-register-button {
    margin-left: 20px;
}
.navbar .left-nav .login-register-button .btn-login-outline,
.navbar .left-nav .login-register-button .btn-register-fill,
.dropdown-menu-mobile .auth-buttons-mobile .btn-login-outline,
.dropdown-menu-mobile .auth-buttons-mobile .btn-register-fill {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    margin: 0;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
}
.navbar .left-nav .login-register-button .btn-login-outline,
.dropdown-menu-mobile .auth-buttons-mobile .btn-login-outline {
    border: 1.5px solid #2563eb;
    color: #2563eb;
    background: transparent;
}
.navbar .left-nav .login-register-button .btn-login-outline:hover,
.dropdown-menu-mobile .auth-buttons-mobile .btn-login-outline:hover {
    background: #eaf3ff;
    color: #1d4ed8;
}
.navbar .left-nav .login-register-button .btn-register-fill,
.dropdown-menu-mobile .auth-buttons-mobile .btn-register-fill {
    gap: 6px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.navbar .left-nav .login-register-button .btn-register-fill:hover,
.dropdown-menu-mobile .auth-buttons-mobile .btn-register-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}
@media (max-width: 700px) {
	.thumbnails-container-wrapper {
		padding: 0 12px;
	}
	.main-image-container {
		border-radius: 10px;
	}
}

/* ===== Auth Pages (login/register/forgot-password/reset-password) ===== */
.auth-page-wrapper {
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
padding: 32px 16px;
background: #f7f8fa;
}
.auth-card {
background: #fff;
border-radius: 18px;
box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
padding: 40px 36px;
max-width: 440px;
width: 100%;
border: 1px solid rgba(15, 23, 42, 0.06);
}
.auth-card-title {
font-family: 'Cairo', 'Almarai', sans-serif;
font-weight: 800;
font-size: 1.7rem;
color: #1e293b;
text-align: center;
margin-bottom: 6px;
}
.auth-card-subtitle {
font-family: 'Almarai', sans-serif;
font-size: 0.92rem;
color: #64748b;
text-align: center;
margin-bottom: 28px;
}
.auth-form-group {
margin-bottom: 14px;
}
.auth-label {
display: block;
font-family: 'Almarai', sans-serif;
font-weight: 700;
font-size: 0.88rem;
color: #334155;
margin-bottom: 8px;
}
.auth-input {
width: 100%;
padding: 11px 14px;
border: 1.5px solid #e2e8f0;
border-radius: 10px;
font-family: 'Almarai', sans-serif;
font-size: 0.95rem;
color: #1e293b;
background: #f8fafc;
transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-input:focus {
outline: none;
border-color: #2563eb;
background: #fff;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.auth-error {
display: block;
color: #dc2626;
font-family: 'Almarai', sans-serif;
font-size: 0.8rem;
margin-top: 6px;
}
.auth-alert {
border-radius: 10px;
padding: 12px 16px;
font-family: 'Almarai', sans-serif;
font-size: 0.88rem;
margin-bottom: 20px;
}
.auth-alert-success {
background: #dcfce7;
color: #166534;
border: 1px solid #bbf7d0;
}
.auth-alert-error {
background: #fef2f2;
color: #b91c1c;
border: 1px solid #fecaca;
}
.auth-alert-error ul {
margin: 0;
padding-inline-start: 18px;
}
.auth-submit-btn {
width: 100%;
padding: 12px;
border: none;
border-radius: 10px;
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
color: #fff;
font-family: 'Cairo', 'Almarai', sans-serif;
font-weight: 700;
font-size: 1rem;
cursor: pointer;
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.auth-submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}
.auth-links-row {
margin-top: 20px;
text-align: center;
font-family: 'Almarai', sans-serif;
font-size: 0.88rem;
color: #64748b;
}
.auth-links-row a {
color: #2563eb;
font-weight: 700;
text-decoration: none;
}
.auth-links-row a:hover {
text-decoration: underline;
}
.auth-forgot-link {
display: block;
text-align: left;
font-family: 'Almarai', sans-serif;
font-size: 0.82rem;
color: #2563eb;
margin-top: 8px;
text-decoration: none;
}
.auth-forgot-link:hover {
text-decoration: underline;
}
@media (max-width: 480px) {
.auth-card {
padding: 28px 22px;
}
}

/* ===== Member Public Profile ===== */
.member-profile-page {
    padding: 40px 16px 20px;
}

.member-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 32px;
}

.member-avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 700;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member-name {
    font-family: 'Cairo', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.member-since {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.member-since i {
    color: #2563eb;
}

.member-listings-heading {
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .member-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .member-name {
        font-size: 20px;
    }
}

.product-owner-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.product-owner-link:hover .product-owner {
    color: #2563eb;
    text-decoration: underline;
}

/* ===== Member Ratings ===== */
.star-filled {
    color: #fbbf24;
}

.star-empty {
    color: #d1d5db;
}

.member-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.member-rating-stars {
    display: flex;
    gap: 2px;
    font-size: 15px;
}

.member-rating-text {
    font-size: 14px;
    color: #64748b;
}

.member-ratings-section {
    padding: 20px 16px 60px;
}

.ratings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.rating-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.rating-card-stars {
    font-size: 14px;
    margin-bottom: 8px;
}

.rating-card-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.rating-card-comment {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.rating-card-date {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

.rating-empty-state {
    color: #64748b;
    padding: 20px 0;
}

.rating-success-alert {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

.rating-form-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.rating-form-heading {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 18px;
    text-align: center;
}

.rating-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.rating-form-error {
    color: #dc2626;
    font-size: 13px;
    margin: -10px 0 14px;
    text-align: center;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
    font-size: 32px;
    margin-bottom: 8px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease;
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #fbbf24;
}

@media (max-width: 767px) {
    .rating-form-wrapper {
        padding: 22px 20px;
    }

    .ratings-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Log ===== */
.contact-log-count {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin: 8px 0 0;
}

/* ===== Notification Bell ===== */
.notif-bell-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.notif-bell-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
}
.notif-bell-btn:hover {
    background: #e2e8f0;
}
.notif-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}
.notif-bell-wrapper.notif-open .notif-dropdown {
    display: flex;
}
.notif-dropdown-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    border-bottom: 1px solid #eef2f6;
}
.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}
.notif-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}
.notif-item:hover {
    background: #f8fafc;
}
.notif-item.notif-unread {
    background: #eff6ff;
}
.notif-item-message {
    margin: 0 0 4px;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
}
.notif-item-time {
    font-size: 11px;
    color: #94a3b8;
}
.notif-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}
.notif-mark-read-form {
    border-top: 1px solid #eef2f6;
}
.notif-mark-read-btn {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.notif-mark-read-btn:hover {
    background: #f8fafc;
}
@media (max-width: 767px) {
    .notif-dropdown {
        position: fixed;
        top: 70px;
        left: 5vw;
        right: 5vw;
        width: 90vw;
    }
}

/* ===== Notification Bell width override (nav li a specificity fix) ===== */
.notif-dropdown .notif-item {
    width: 100% !important;
}

/* ===== FAQ Page ===== */
.faq-page h1 {
    font-weight: 700;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    background: #fff;
}
.faq-item[open] {
    background: #f8fafc;
}
.faq-question {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    list-style: none;
    position: relative;
    padding-left: 28px;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::before {
    content: '';
}
.faq-answer {
    margin-top: 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}
.faq-answer p {
    margin: 0;
}
@media (max-width: 767px) {
    .faq-item {
        padding: 14px 16px;
    }
    .faq-question {
        font-size: 15px;
    }
}

/* ===== Terms Page ===== */
section.mb-5 h1.mb-4 {
    font-weight: 700;
}

/* ===== Card Meta (views/posted-ago badges) ===== */
.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8a8a8a;
    margin: 6px 0 0 0;
    padding: 0;
}
.card-meta i {
    font-size: 11px;
    color: #b0b0b0;
}
.card-meta-dot {
    color: #c9c9c9;
    font-weight: bold;
}
@media (max-width: 767px) {
    .card-meta {
        font-size: 11px;
    }
}

/* ===== Category City Filter ===== */
.category-city-filter {
    display: flex;
    justify-content: center;
    margin: 0 0 24px 0;
}
.city-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f9;
    border: 1px solid #e4e4e8;
    border-radius: 10px;
    padding: 10px 16px;
}
.city-filter-form label {
    font-size: 14px;
    color: #555;
    margin: 0;
    white-space: nowrap;
}
.city-filter-form select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    background: #fff;
    min-width: 150px;
}
@media (max-width: 767px) {
    .city-filter-form {
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
    .city-filter-form select {
        flex: 1;
        min-width: 0;
    }
}

/* ===== My Orders Page ===== */
.my-orders-page h1 {
    font-weight: 700;
}
.my-orders-phone-form form.d-flex {
    max-width: 500px;
    margin: 0 auto 24px auto;
}
.my-orders-phone-form .form-control {
    border-radius: 8px;
}
.my-orders-phone-form .btn {
    white-space: nowrap;
}
.my-order-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}
.card-image {
    position: relative;
}
@media (max-width: 767px) {
    .my-orders-phone-form form.d-flex {
        flex-direction: column;
    }
}

/* ===== Global Flash Alert (order submission confirmation, etc.) ===== */
.global-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
    width: 560px;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    font-size: 15px;
    font-weight: 500;
    animation: globalAlertSlideDown 0.35s ease;
}
.global-alert-success {
    background: #e9f9ee;
    color: #1e7e34;
    border: 1px solid #b7ecc6;
}
.global-alert-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c2bd;
    top: 80px;
}
.global-alert i {
    font-size: 20px;
    flex-shrink: 0;
}
.global-alert span {
    flex: 1;
    line-height: 1.5;
}
.global-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}
.global-alert-close:hover { opacity: 1; }
.global-alert-hide {
    animation: globalAlertFadeOut 0.4s ease forwards;
}
@keyframes globalAlertSlideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes globalAlertFadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translate(-50%, -10px); }
}
@media (max-width: 576px) {
    .global-alert {
        width: calc(100% - 24px);
        top: 12px;
        padding: 12px 14px;
        font-size: 13.5px;
    }
    .global-alert-error { top: 66px; }
}

/* ===== In-Site Chat Widget (order-details) ===== */
.chat-widget-section {
    margin-top: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.chat-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #f0f6ff;
    cursor: pointer;
    font-weight: 600;
    color: #0056b3;
    user-select: none;
}
.chat-widget-header i.fa-comments {
    font-size: 18px;
}
.chat-toggle-icon {
    margin-right: auto;
    margin-left: 0;
    transition: transform 0.2s ease;
}
.chat-widget-header.chat-widget-open .chat-toggle-icon {
    transform: rotate(180deg);
}
.chat-widget-body {
    padding: 16px 18px;
}
.chat-phone-gate {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}
.chat-gate-text {
    margin: 0 0 4px;
    color: #555;
    font-size: 14px;
}
.chat-input {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.chat-input:focus {
    outline: none;
    border-color: #007bff;
}
.chat-btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.chat-btn-primary:hover {
    background-color: #0056b3;
}
.chat-thread-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}
.chat-thread-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.chat-thread-item:hover {
    background-color: #f7f9fc;
}
.chat-thread-name {
    font-weight: 600;
    color: #333;
}
.chat-thread-preview {
    color: #888;
    font-size: 13px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-unread-badge {
    background-color: #dc3545;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 8px;
    margin-right: auto;
}
.chat-empty {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 12px 0;
}
.chat-messages {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 4px;
    margin-bottom: 12px;
}
.chat-bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-bubble-mine {
    align-self: flex-end;
    background-color: #007bff;
    color: #fff;
    border-bottom-left-radius: 4px;
}
.chat-bubble-theirs {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #333;
    border-bottom-right-radius: 4px;
}
.chat-input-row {
    display: flex;
    gap: 8px;
}
.chat-input-row .chat-input {
    flex: 1;
}
.chat-btn-send {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.chat-btn-send:hover {
    background-color: #0056b3;
}
.chat-btn-back {
    margin-bottom: 10px;
    background: none;
    border: none;
    color: #007bff;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
@media (max-width: 576px) {
    .chat-widget-body {
        padding: 12px;
    }
    .chat-bubble {
        max-width: 88%;
    }
}
