/**
 * Header cart icon + count badge ([cozycat_cart_icon]).
 *
 * Loaded site-wide: the shortcode sits in the global (Elementor) header.
 * The icon inherits the header's text color; only the badge is branded.
 */

.cozycat-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.cozycat-cart-icon:hover,
.cozycat-cart-icon:focus {
  color: inherit;
  opacity: 0.7;
}

.cozycat-cart-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.cozycat-cart-count {
  position: absolute;
  top: 1px;
  right: 1px;
  transform: translate(30%, -20%);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--red, #4a2028);
  color: var(--beige, #f5ebdc);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.cozycat-cart-count.is-empty {
  display: none;
}
