:root {
  --mac-teal: #008c8d;
  --mac-teal-dark: #045f63;
  --mac-gold: #ffbf47;
  --mac-ink: #132e35;
}

header.navbar-mac.mac-public-header {
  position: sticky;
  top: 0;
  z-index: 1045;
  background:
    radial-gradient(circle at top left, rgba(255, 191, 71, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(5, 91, 96, 0.96), rgba(0, 140, 141, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 44px rgba(7, 53, 58, 0.18);
  backdrop-filter: blur(16px);
}

.mac-public-brand {
  gap: 0.72rem;
  color: #fff;
}

.mac-public-brand:hover {
  color: #fff;
}

.mac-public-brand-mark {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--mac-gold), rgba(255, 255, 255, 0.18));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.mac-public-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.mac-public-brand-copy span {
  font-weight: 900;
  letter-spacing: 0.01em;
}

.mac-public-brand-copy small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mac-public-nav .btn,
.mac-public-nav .nav-link {
  color: #fff !important;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 750;
}

.mac-public-nav .btn:hover,
.mac-public-nav .nav-link:hover,
.mac-public-nav .btn:focus,
.mac-public-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.52);
}

.mac-public-nav .btn-warning {
  color: #17262c !important;
  background: var(--mac-gold);
  border-color: var(--mac-gold);
}

.mac-cart-btn,
.mac-alert-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 0;
}

.mac-alert-btn {
  background: rgba(255, 191, 71, 0.2);
}

.mac-cart-btn:hover,
.mac-alert-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.cart-count-badge,
.pending-badge {
  position: absolute;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--mac-teal-dark);
}

.cart-count-badge {
  top: -7px;
  right: -7px;
  background: #dc3545;
}

.pending-badge {
  bottom: -7px;
  right: -7px;
  background: var(--mac-gold);
  color: #16252b;
}

.cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 999;
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 47, 54, 0.1);
  border-radius: 18px;
  min-width: 260px;
  box-shadow: 0 22px 54px rgba(10, 42, 48, 0.22);
  overflow: hidden;
}

.cart-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 11px 14px;
  text-decoration: none;
  color: #263d45;
  font-size: 14px;
  border-bottom: 1px solid #eef2f3;
}

.cart-dropdown a:last-child {
  border-bottom: 0;
}

.cart-dropdown a:hover {
  background-color: #f4f9f9;
  color: var(--mac-teal-dark);
}

.mac-dropdown-heading {
  padding: 12px 14px 8px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b828b;
  background: #f7fbfb;
}

.mac-dropdown-count {
  margin-left: auto;
  min-width: 1.7rem;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 140, 141, 0.12);
  color: var(--mac-teal-dark);
  font-weight: 900;
  text-align: center;
}

.mac-dropdown-count.is-warning {
  background: rgba(255, 191, 71, 0.22);
  color: #6b4600;
}

.cart-wrapper.open .cart-dropdown {
  display: block;
}

@media (max-width: 576px) {
  .mac-public-brand-copy span {
    font-size: 1rem;
  }

  .mac-public-brand-copy small {
    display: none;
  }

  .mac-public-nav {
    width: 100%;
  }
}
