html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Unified Header Icons */
.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none !important;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  /* Reset button borders */
  outline: none;
  padding: 0;
  margin: 0;
  /* consistent */
}

.header-icon-btn:hover,
.header-icon-btn:active,
.header-icon-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  color: #0d6efd;
}

.header-icon-btn i {
  font-size: 1.2rem;
  /* Adjusted for consistency */
}

/* Unified Badge - Replaces inline styles */
.header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  border: 2px solid #fff;
  animation: cart-badge-pop 0.3s ease;
  line-height: normal;
  /* Fix alignment */
}

/* Navbar Toggler Specifics to match header-icon-btn */
.navbar--toggler.header-icon-btn {
  flex-direction: column;
  gap: 4px;
  /* Ensure no conflict with bootstrap navbar-toggler if present */
}

.navbar--toggler.header-icon-btn span {
  width: 18px;
  height: 2px;
  background-color: currentColor;
  /* Inherit from button color */
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}