/* Custom CSS for head */
body {
    background-color: #dddddd;
}



@media (max-width: 767px) {
    .desktop-text {
      display: none;/* Mobile version */
      .mobile-position {
        display: none;
        position: fixed;
        bottom: 10px;
        left: 10px;
      }
      
      @media (max-width: 767px) {
        .desktop-position {
          display: none;
        }
        .mobile-position {
          display: flex;
        }
      }
      
      /* Desktop version */
      .desktop-position {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
      }
      
      @media (min-width: 768px) {
        .desktop-position {
          display: flex;
        }
        .mobile-position {
          display: none;
        }
      }
      
    }
    .mobile-icon {
      display: inline;
    }
  }
  
  @media (min-width: 768px) {
    .desktop-text {
      display: inline;
    }
    .mobile-icon {
      display: none;
    }
  }
  

.liul {
    list-style: none;
      padding: 0;
      margin: 0;
      white-space: nowrap;
      overflow-x: auto;             /* Enable horizontal scrolling */
      -webkit-overflow-scrolling: touch; /* Smooth scrolling on touch devices */
      background-color: #fff;
      border-bottom: 1px solid #ddd;
    
}

/* Hover Effect */
.liitem:hover {
    background-color: #7b9bbb;
    transform: scale(1.05);}

.liul::-webkit-scrollbar {
    display: none;}

.liul a{
    text-decoration: none;
      color: #333;
      font-weight: bold;
      border-radius: 4px;
      transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out;
      padding: 5px 10px;
} 

.liitem {
    margin: 5px;
    
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: #333;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover {
    background-color: #7b9bbb;
}

.nav-item a.nav-link {
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.nav-item a.nav-link:hover {
     /* Change this to your preferred hover text color */
    transform: scale(1.05); /* Slight zoom effect */
}

.form-control {
    min-width: 300px;
}

@media (max-width: 992px) {
    .form-control {
        min-width: auto;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
}
#ioyoiId a{
    background-color: rgb(255, 192, 0);
}

#cenemaId a{
    background-color: rgb(255, 0, 0);
}

#resturantId a{
    background-color:rgb(0, 176, 80);
}

#mediaID a{
    background-color: rgb(112, 48, 160);
}

#venteId a{
    background-color:rgb(237, 125, 49);
}

#registerId a{
    background-color: rgb(92, 194, 175);
}

#serviceId a{
    background-color: rgb(112, 173, 71);
}
.nav-item {
    width: min-content;
    display: inline;
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 5px;
    margin-left: 5px;
    margin-right: 5px;
    color: white; /* Ensures text is visible on dark backgrounds */
}

.dropdown .btn-link {
    text-decoration: none !important; /* Removes the underline */
}


.dropdown .btn {
    border: none;
    margin: 0;
    padding: 0;
}

.d-flex.justify-content-between {
    display: flex;
    align-items: center;
}

/* Left Section (Logo & Country Selector) */
.navbar-brand {
    margin-right: 10px; /* Adjust spacing */
}
.dropdown {
    margin-right: auto; /* Pushes the search bar to center */
}

/* Center Section (Search Bar) */
form.d-flex {
    flex-grow: 1; /* Allows it to expand */
    max-width: 500px; /* Prevents it from getting too wide */
    justify-content: center;
}

/* Right Section (Language, Connexion, Inscription, Panier) */
.d-flex.align-items-center.gap-3 {
    margin-left: auto; /* Pushes it to the right */
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Hidden by default */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    padding-top: 20px;
    z-index: 1050;
}

.sidebar ul {
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    display: block;
}

/* Sidebar Open */
.sidebar.active {
    left: 0;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 25px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Scrollable Navbar */
.navbar-nav {
    overflow-x: scroll;  
    -webkit-overflow-scrolling: touch;
}

.navbar-nav::-webkit-scrollbar {
    display: none;
}

/* Sidebar Toggle Button */
.menu-btn {
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
}

/* Ensure Navbar Spans Full Width */
.navbar {
    width: 100%;
    display: inline;
    
}
 
/* Desktop search bar styles */
.search-bar-desktop {
    width: 50%;
}

/* Mobile search bar styles */
.mobile-search-input{
    margin-top: 0%;
}
.mobile-search-icon{
    height: 2%;
}









/* form styling */

/* Wrapper for the entire form */
.address-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Form container styling */
.address-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 900px; /* Prevents the form from stretching too wide on large screens */
}

/* Grouping the address input with its label and button */
.address-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Styling for the address label text */
.address-label {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

/* Styling for the input field */
.address-input-field {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

/* Styling for the button */
.address-submit-button {
    background-color: rgb(255, 192, 0);
    color: black;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

/* Styling for the login link paragraph */
.address-login-link {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* Styling for the login link text */
.address-login-link-text {
    text-decoration: none;
    color: #007bff;
}

/* 📱 Mobile Responsive Design */
@media screen and (max-width: 700px) {

    .address-form-wrapper {
        margin-left: -12%;
        
        width: 123vw;
    }
    .address-input-group {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .address-label {
        text-align: center;
        width: 100%;
    }

    .address-input-field {
        width: 100%;
    
    }

    .address-submit-button {
        width: 70%;
        margin-left: 15%;
    }
}















/*carousel style*/

.carousel-container {
    background-color: rgb(255, 255, 255);
    align-items: center;
  }

.hero-carousel {
   margin: 0 auto;
    position: relative;
    height: 80vh;
    width: 90vw;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}




.carousel-item {
   position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-caption {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: 100%;
    }
    .hero-carousel{
        height: 60vh;
    }

    .carousel-item{
        height: 60vh;
    }
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.5rem;
    }
}











.card {
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}
.like-btn {
    transition: color 0.2s;
}
.like-btn.liked {
    color: #dc3545 !important;
}
.card-title {
    font-size: 0.95rem;
    min-height: 2.5em;
}

.discount-box{
    background-color: rgb(255, 192, 0) ;
    padding: 1px;
    border-radius: 5px;
}







/* Hide scrollbar on .auction-items */
.auction-items.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
  }
  .auction-items.no-scrollbar::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
  }