* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

.main_header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main_header .logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.main_header .logo img:hover {
  transform: scale(1.05);
}

/* Navigation */
.main_nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main_nav ul li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.main_nav ul li a:hover {
  color: #0098da;
  background-color: rgba(0, 152, 218, 0.1);
}

/* Right Section: Search, Cart, User */
.header_right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Search Bar */
.search_form {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search_form input {
  width: 100%;
  padding: 12px 45px 12px 18px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search_form input:focus {
  border-color: #0098da;
  box-shadow: 0 0 0 3px rgba(0, 152, 218, 0.15);
}

.search_form button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search_form button:hover {
  background-color: rgba(0, 152, 218, 0.1);
  color: #0098da;
}

/* Cart Icon */
.cart_link {
  position: relative;
  font-size: 24px;
  color: #333;
  text-decoration: none;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cart_link:hover {
  background-color: rgba(0, 152, 218, 0.1);
  color: #0098da;
}

.cart_badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e74c3c;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sign In Button */
.signin_btn {
  padding: 12px 24px;
  background-color: #0098da;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.signin_btn:hover {
  background-color: #0077b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 152, 218, 0.3);
}

/* User Profile */
.user_profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.user_profile:hover {
  background-color: rgba(0, 152, 218, 0.1);
}

.user_profile img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.user_profile h3 {
  font-size: 17px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.user_profile i.fa-caret-down {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Dropdown Menu */
.Profile_dropdown {
  position: absolute;
  top: 80px;
  right: 20px;
  background-color: white;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.Profile_dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown_items {
  padding: 15px 0;
}

.dropdown_items a {
  display: block;
  padding: 12px 25px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

.dropdown_items a:hover {
  background-color: #f0f8ff;
  color: #0098da;
  padding-left: 30px;
}

.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* Responsive Design */
@media (max-width: 992px) {
  .main_nav ul {
    gap: 15px;
  }
  .search_form {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main_nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }

  .main_nav ul {
    display: none;
    flex-direction: column;
    background-color: #f8f9fa;
    width: 100%;
    padding: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .main_nav ul.active {
    display: flex;
  }

  .main_nav ul li {
    text-align: center;
    width: 100%;
  }

  .main_nav ul li a {
    display: block;
    padding: 15px;
    font-size: 17px;
  }

  .header_right {
    gap: 15px;
  }

  .search_form {
    max-width: 200px;
  }

  .Profile_dropdown {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .search_form {
    width: 150px;
  }

  .user_profile h3 {
    display: none;
  }

  .signin_btn {
    padding: 10px 18px;
    font-size: 15px;
  }
}