:root {
  --secondary-color: #c50000;
  --primary-color: #2e3192;
}
/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  background-color: white;
  padding: 10px 5px 0;
  /* border-bottom: 2px solid var(--primary-color); */
}
/* ----------LOCATION SELECT---------------- */
.location {
  position: relative;
  cursor: pointer;
  /* width: 100%; */
  min-width: 10rem;
}
.location-down {
  position: absolute;
  right: 5%;
  top: 25%;
  color: var(--primary-color);
}
.location select {
  cursor: pointer;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 18px;
  border-right: none;
  appearance: none;
  background: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.navbar hr {
  width: 100%; /* Ensures the line stretches across the container */
  border: none; /* Removes the default border */
  height: 1px; /* Adjust the height of the line */
  background-color: rgb(219, 219, 219); /* Sets the desired red color */
  margin: 0; /* Ensures no extra margin is added around the hr */
}
.navbar-top {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.navbar-left {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 120px;
  margin-right: 20px;
}
.navbar-search-select {
  display: flex;
}
.location-select {
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background-color: #e6e6e6;
}
.location-select option {
  background-color: #e6e6e669;
}
.search-bar-icon {
  padding: 0.51rem 1rem;
  background-color: #ccc;
  border-radius: 0 8px 8px 0;
}

.search-bar {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #ececec60;
  width: 250px;
}

.aws-container .aws-show-clear .aws-search-field {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background-color: #ececec60;
  width: 450px;
  border-radius: 8px 0 0 8px !important;
}

div.aws-search-btn.aws-form-btn {
  background-color: #ccc !important;
  border-radius: 0 8px 8px 0 !important;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 10px;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.navbar-right {
  width: 70%;
  display: flex;
  gap: 5rem;
  justify-content: flex-end;
  align-items: center;
}

.contact-info {
  width: max-content;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: black;
  font-weight: bold;
}

.phone-icon {
  margin-right: 5px;
}

.navbar-icons {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.cart-icon-count {
  padding-left: 0.2rem;
}

.cart-icon-box {
  border: 1px solid black;
  padding: 5px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
}

.cart-icon {
  background-image: url("path-to-cart-icon");
  width: 20px;
  height: 20px;
  background-size: cover;
}

.online-reports-button,
.login-button {
  padding: 2px 15px;
  background-color: white;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.login-button {
  font-size: 1.25rem;
  text-decoration: none;
}

.navbar-bottom {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}
.nav-link-span {
  text-align: center;
  display: flex;
  align-items: center;
  padding-inline: 1rem;
}
/* Custom select styles */
.nav-link-selects {
  /* appearance: none; Hides the default arrow */
  border: none;
  cursor: pointer;
  padding-inline: 1rem;
  background-color: white;
  color: black;
  font-size: 1rem;
  position: relative;
}

/* Add a custom arrow */
.nav-link-selects::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary-color); /* Red arrow pointing down */
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.3s ease; /* Smooth transition */
}

/* Hover effect: Arrow points up */
.nav-link-selects:hover::after {
  border-top: 6px solid transparent;
  border-bottom: 6px solid var(--primary-color); /* Arrow pointing up */
  transform: translateY(-50%) rotate(180deg);
}

/* Show dropdown on hover (optional) */
.nav-link-selects:hover {
  outline: none;
}

/* Style the dropdown options */
.nav-link-selects option {
  padding: 10px;
  font-size: 1rem;
  background-color: white;
  color: black;
}
/* Navigation Bar */
/* Navigation Bar */
nav {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  padding: 15px;
}

/* Menu Links */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  position: relative;
  margin-right: 20px;
  z-index: 10;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  padding: 10px;
  display: block;
  font-size: 16px;
}

/* Icon next to links */
nav ul li a .fa-chevron-down {
  color: var(--primary-color);
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.fa-chevron-right {
  color: var(--primary-color);
  margin-left: auto;
}
.fa-chevron-right::parent {
  width: 100%;
}
/* Dropdown Menu */
nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background-color: #f0f0f0;
  min-width: 180px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul ul li {
  width: 100%;
}

nav ul ul li a {
  padding: 10px;
  font-size: 15px;
}

nav ul ul ul {
  top: 0;
  left: 100%;
}

/* Hover Effect */
nav ul li:hover > ul {
  display: block;
}

/* Rotate arrow on hover */
nav ul li:hover > a .fa-chevron-down {
  transform: rotate(180deg);
}

/* Specific Color Adjustments */
.dropdown li a {
  width: 100%;
  display: flex;
  justify-content: space-between;
  background-color: #eee;
  color: #333;
  border-bottom: 1px solid rgba(190, 190, 190, 0.726);
}

.dropdown ul li a:hover {
  background-color: #c0c0c0;
}

/* Rotate arrow only on dropdown parent */
.dropdown > a .fa-chevron-down {
  transition: transform 0.3s ease;
}
.select-mobile {
  display: none;
}
@media (max-width: 1050px) {
  .contact-info,
  .navbar-bottom {
    display: none;
  }
  .navbar-right {
    width: 100%;
    gap: 1rem;
  }
  .search-bar {
    width: 150px;
  }
}
@media (max-width: 750px) {
  .navbar-search-select,
  .navbar-bottom ul,
  .online-reports-button {
    display: none;
  }
  .navbar-left {
    justify-content: flex-start;
  }
  .navbar-bottom,
  .select-mobile {
    display: block;
  }
  .select-mobile {
    width: 100%;
    /* display: flex; */
    justify-content: center;
    padding-bottom: 0.5rem;
  }
  .search-bar {
    width: 100%;
    max-width: 250px;
  }
}
