/* =========================================================
   CART ICON – HEADER BUTTON
   Чиста иконка в хедъра, без кутии и квадратчета
========================================================= */

/* Нулираме дефолтните button стилове само за този бутон */
.calc-cart-header {
  -webkit-appearance: none;
  appearance: none;

  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 0 1.5rem;      /* разстояние след менюто */

  font: inherit;
  color: #0f172a;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;        /* за badge-а */
  cursor: pointer;
  line-height: 1;

  border-radius: 0;          /* да не изглежда като бутон */
  box-shadow: none;

  transition: color 0.12s ease, transform 0.08s ease;
}

/* hover ефект, само цвят, без фон и без кутия */
.calc-cart-header:hover {
  color: #2563eb;
}

.calc-cart-header:active {
  transform: translateY(1px);
}

.calc-cart-header:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* SVG иконата – реалният размер на „количката“ */
.calc-cart-header .cart-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calc-cart-header .cart-icon-svg svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* Badge за бройката – малко кръгче върху иконата */
.calc-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;

  min-width: 15px;
  height: 15px;
  padding: 0 4px;

  background-color: #111827;
  color: #ffffff;

  font-size: 10px;
  font-weight: 600;
  line-height: 1;

  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 0 2px #ffffff; /* тънка бяла рамка спрямо хедъра */
}

/* Когато количката е празна, скриваме badge-а напълно */
.calc-cart-badge.is-empty {
  display: none;
}

/* Малко пипване за мобилно */
@media (max-width: 768px) {
  .calc-cart-header {
    margin-left: 0.75rem;
  }

  .calc-cart-header .cart-icon-svg svg {
    width: 17px;
    height: 17px;
  }

  .calc-cart-badge {
    top: -3px;
    right: -7px;
  }
}
