/* Cart icon polish + positioning (no borders) */

:root {
  --nav-gap: 24px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Right side block: menu + cart (equal gaps, center space left empty) */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  white-space: nowrap;
  flex-wrap: nowrap;
  margin-left: auto;
  padding-right: 6px;
}

/* Menu items use the same gap as menu-to-cart spacing */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.cart-icon {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
  font-size: 22px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure the cart icon has no border (FA icons should be borderless) */
.cart-icon,
.cart-icon i {
  border: none !important;
  outline: none;
}

/* Remove any focus border/outline aesthetics while keeping accessibility */
.cart-icon:focus-visible {
  outline: 3px solid rgba(214, 190, 99, 0.45);
  outline-offset: 3px;
}

/* Keep cart icon on far-right across all devices */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    gap: 12px;
  }

  .nav-right {
    gap: 14px;
  }

  /* Avoid icon being affected by the absolute mobile menu */
  header .navbar {
    position: relative;
  }
}
