/* ==========================================================================  
   NAVIGATION BAR (Top Nav, Buttons, Search, Cart)  
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  background-color: #ffffffcc; /* More readable than #ffffff81 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  box-sizing: border-box;
}

.nav_logo {
  height: 40px;
}

/* Right side: search & cart */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* navbar.css */


.cart-icon {
  font-size: 20px;
  color: #9b5d84;
  cursor: pointer;
}

.cart-link {
  position: relative;
  font-weight: bold;
  color: #611857;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #0dcbff;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
}

/* Left side: navigation buttons */
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 20px;
}

.btn_normal {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap; /* force single line */
  width: auto; /* auto width to fit text */
  min-width: 50px;
  height: 40px;
  padding: 10px 16px;
  font-size: 16px;
  color: #9b5d84;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn_normal:hover,
.dropdown:hover > .btn_normal {
  background-color: #9b5d84;
  color: #fff;
}

/* ==========================================================================  
   NAVIGATION DROPDOWN  
   ========================================================================== */

.dropdown {
  position: relative;
  display: inline-block;
  
}

.dropdown-toggle::after {
  content: "\f078"; /* Font Awesome down-chevron */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  margin-left: 6px;
  color: inherit;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 5px); /* pushes it 5px lower than the button */
  top: 100%; /* directly below the button */
  left: 0;
  min-width: 160px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #9b5d84;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #cd98b9;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}
