.nav-account .dropdown-menu {
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%); /* center align */
    margin-top: 8px;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* prevents gap */
}

/* Rotate arrow on hover */
.nav-item.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Smooth dropdown */
.dropdown-menu {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

/* Fade animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(5px);}
    to {opacity: 1; transform: translateY(0);}
}
/* make the link stack vertically and center */
.nav-cart .nav-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;                /* spacing between icon and amount */
  text-decoration: none;
  color: inherit;
  padding: 6px 8px;
  white-space: nowrap;
}

/* icon container (optional circular background) */
.nav-cart .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* uncomment if you want a subtle bg */
  /* background: rgba(0,0,0,0.04); */
  font-size: 18px;        /* adjust icon size */
  line-height: 1;
}

/* main amount text shown below icon */
.nav-cart .wallet-amount {
  display: block;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  max-width: 95px;        /* keeps it from growing too wide */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* small pill style (alternative) */
.nav-cart .count-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 14px;
  background: #e53935;    /* pill background */
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* override any existing absolute/float styles from other CSS (important) */
.nav-cart .count-box,
.nav-cart .wallet-amount,
.nav-cart .count-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
}

/* responsive: smaller text on narrow screens */
@media (max-width: 768px) {
  .nav-cart .wallet-amount { font-size: 11px; max-width: 70px; }
  .nav-cart .icon-wrap { width: 30px; height: 30px; font-size: 16px; }
}
