/* Cart item counter on desktop and mobile. */
.header-cart { position: relative; }
.header-cart__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4035;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.header-cart__badge[hidden] { display: none !important; }
@media (max-width: 900px) {
  .header-cart__badge {
    top: -6px;
    right: -6px;
  }
}

/* The main responsive stylesheet hides every cart span except the icon.
   Restore ONLY the badge on phones, while keeping the desktop count in text. */
@media (min-width: 901px) {
  .header-cart .header-cart__badge { display: none !important; }
}
@media (max-width: 900px) {
  .header-cart span.header-cart__badge:not([hidden]) {
    display: flex;
  }
}
