@import url('https://fonts.googleapis.com/css2?family=Iansui&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Slab:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Iansui&family=Playwrite+HU:wght@100..400&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Slab:wght@100..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/biski-trial');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    caret-color: transparent;
}
:focus {
    outline: none;
}
html,body {
    overflow-x: hidden;
    font-family: 'Marhey', sans-serif;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

header {
    height: 100vh;
    background: url('../image/hhh.png') center center/cover no-repeat;
    position: relative;
}

#navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-icons i {
    margin-right: 20px;
    color: white;
    font-size: 20px;
    transition: color 0.3s;
    left: 200px;
}

.nav-icons i:hover {
    color: #8B9B8B;
}

#navbar img {
    width: 120px;
    height: 120px;
    margin-left: 100px;
}

#navbar ul {
    display: flex;
    margin-right: 100px;
}

#navbar ul li a {
    position: relative;
    padding: 15px 20px;
    color: white;
    font-weight: 600;
}

#navbar ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: white;
    transform: skewX(-30deg);
    transition: width 0.4s ease, left 0.4s ease;
}

#navbar ul li a:hover::after {
    width: 100%;
    left: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 75%;
    position: relative;
    padding: 3rem;
    color: white;

}

.Natural {
    font-family: 'Marhey', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out, glowUp 2s ease-out 1s forwards;
}

.Discover {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-family: 'Marhey', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    animation: fadeInUp 1s ease-out, glowUp 2s ease-out 1s forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cta-button {
    font-family: 'Marhey', sans-serif;
    background-color: #8B9B8B;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    letter-spacing: 1px;
    margin-top: 100px;
    display: inline-block;
    text-align: center;
    animation: fadeInUp 1s ease-out, glowUp 2s ease-out 1s forwards;
}

.cta-button:hover {
    background-color: #738173;
    transform: translateY(5px);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgb(0, 0, 0, 0.6);
}

header * {
    z-index: auto;
}
/* القائمة المنسدلة */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5px;
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: rgba(139,155,139, 0.4);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
    padding: 10px;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.logout-btn {
    width: 100%;
    padding: 8px;
    text-align: right;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Changa', sans-serif;
}

.logout-btn:hover {
    color: #8b9b8b;
}

.logout-btn i {
    font-size: 1rem;
}

/* البحث */
.search-container {
    position: absolute;
    top: 100px;
    right: 20px; /* ✅ عدلي بدل 600px ليتناسب مع العرض */
    background-color: #ffffff; /* ✅ لون أبيض غير شفاف */
    border: 1px solid #ccc;
    border-radius: 20px;
    z-index: 10000; /* ✅ أعلى من الهيرو */
    display: none;
    width: 400px;
    padding: 10px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease-in-out;
}


.search-container i {
    color: #888;
    font-size: 1.3rem;
    cursor: pointer;
}

.search-container input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-family: 'Markazi Text', serif;
    flex: 1;
    background: transparent;
    text-align: right;
    padding: 5px;
}

#closeSearch:hover {
    color: #c00;
}

/* الاقتراحات */
#suggestionsBox {
    position: absolute;
    top: 150px;
    right: 20px; /* نفس يمين مربع البحث */
    width: 400px;
    background-color: #fff; /* ✅ لا شفافية */
    z-index: 10001; /* أعلى من كل شيء */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 1px solid #ccc;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px 0;
}


.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    pointer-events: auto;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.suggestion-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    flex: 1;
}

.suggestion-price {
    color: #666;
    font-size: 14px;
}
.bx-search::before {
    content: none !important;
}
/* ✅ أيقونة المنيو حسب حجم الشاشة */
#menu-icon {
    display: none;
}

.mobile-menu {
    position: absolute;
    top: 10%; /* تبدأ من أسفل الهيدر */
    right: 0;
    left: auto;
    padding: 1rem 0;
    z-index: 9999 !important; /* لازم يكون أعلى من أي عنصر ثاني */
    background-color: white;
    animation: slideDown 0.3s ease;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: right;
    max-width: 100%;
    padding: 0 1rem;
}

.mobile-nav-link {
    display: block;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    text-align: right;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* زر الإغلاق (X) */
.close-icon {
    position: absolute;
    top: 20px;
    right: 10px; /* لليمين في RTL */
    cursor: pointer;

    z-index: 9999;
    background-color: red;
    display: block !important;
    color: #374151;
}

/* أيقونة المنيو */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 9999;
}

.menu-icon, .close-icon {
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 390px) {

    #navbar .mobile-menu {
        width: 60%;
        top:51px;

        display: block;

    }
    .mobile-nav-link{
        padding: 16px 59px;
    }
    .search-container{
        top:70px;
        width:270px !important;
    }
    #suggestionsBox{
        top: 122px;
        width: 270px !important;
    }

}
/* الشاشات الصغيرة */
@media (max-width: 480px) {
    header {
        padding: 15px 5%;
        transition: .4s;
    }

    .Natural {
        font-size: 1.75rem;
    }

    .Discover {
        font-size: 0.9rem;
    }

    .cta-button {
        margin-top: 30px !important; /* بدل 100px */
        font-size: 0.9rem;
        padding: 10px 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
.nav-icons i{
    font-size: 15px;
    margin-right:10px ;
}
    #navbar img{
        width: 60px !important;
        height: 60px;
    }
    #navbar .mobile-menu {
        width: 60%;
        top:51px;

        display: block;

    }
    .mobile-nav-link{
        padding: 16px 79px;
    }
    .search-container{
        top:70px;
        width:330px ;
    }
    #suggestionsBox{
        top: 122px;
        width: 330px;
    }
}

/* الشاشات المتوسطة */
@media (min-width: 481px) and (max-width: 767px) {
    header {
        padding: 18px 4%;
        transition: .4s;
    }

    .Natural {
        font-size: 1.8rem;
    }

    .Discover {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 10px 22px;
    }

}

/* التابلت */
@media (min-width: 768px) and (max-width: 1024px) {
    header {
        padding: 20px 3%;
        transition: .4s;
    }

    .Natural {
        font-size: 40px;
    }

    .Discover {
        font-size: 17px;
    }

    .cta-button {
        margin-top: 20px !important;
        font-size: 17px;
        padding: 12px 24px;
    }
    .nav-bar a{
        display: none;
    }
    #menu-icon {
        display: block;
    }

    /* ✅ أضيفي التنسيق التالي */
    .mobile-menu-btn {
        display: flex;
    }

  #navbar .mobile-menu {
      position: absolute;
      top: 70px;
      width: 190px;
      padding: 16px 30px;
        display: block;
        z-index: 9999 !important;
    }

    .close-icon {
        display: block;
    }
    .search-container{
        top:70px;
        width:460px ;
    }
    #suggestionsBox{
        top: 122px;
        width: 460px;
    }
    #navbar img{
        width: 60px ;
        height: 80px;
    }
}

/* الكمبيوتر */
@media (min-width: 1025px) {
    header {
        padding: 25px 8%;
        transition: .4s;
    }
}

/* القائمة في الجوال */
@media (max-width: 750px) {
    .nav-bar {
        position: absolute;
        top: -600px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        background-color: #8B9B8B;
        transition: all .42s;
    }

    .nav-bar a {
        display: block;
        padding: 16px;
        margin: 8px;
    }

    .nav-bar.open {
        top: 80px;
    }

    .nav-icons {
        margin-right: 20px;
        z-index: 1100;
    }

    #navbar img {
        width: 80px;
        height: 80px;
        margin-left: 20px;
    }

    .hero-content {
        position: relative;
        z-index: 1;
    }
}



/*@media (max-width: 1024px) {*/
/*    #menu-icon {*/
/*        display: block;*/
/*    }*/
/*}*/
/*------------------------------------------------------
  📱 قائمة الموبايل
------------------------------------------------------*/


/* إخفاء زر المنيو فوق 1024px */
@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* إظهار زر المنيو تحت 1024px */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-bar {
        display: none;
    }
}

/* كلاس الإخفاء */
.hidden {
    display: none !important;
}

/* زر المنيو الأساسي */
.mobile-menu-btn {
    background: transparent;
    border: none;
    padding: 0;
}
