/* ==================================================================
   КОРЗИНА (CART)
   ================================================================== */
#headerCart {
  position: relative !important;
  padding-right: 10px !important;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
  font-family: "Montserrat", "Roboto", sans-serif;
  z-index: 9999 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.cart-badge.pulse {
  animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-dropdown {
  min-width: 350px;
  max-height: 500px;
  overflow-y: auto;
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: white;
  z-index: 9999 !important;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.sticky-top {
  z-index: 100;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #0d6efd;
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-item-content {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #2c3e50;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.cart-item-code {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 500;
}

.cart-item-price {
  font-weight: 600;
  color: #0d6efd;
  font-size: 1.1rem;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.btn-remove {
  background: none;
  border: none;
  color: #dc3545;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 600;
}

.btn-remove:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

.total-label {
  font-weight: 600;
  color: #2c3e50;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.total-amount {
  font-weight: 700;
  font-size: 1.3rem;
  color: #0d6efd;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.empty-cart {
  text-align: center;
  padding: 2rem 1rem;
  color: #6c757d;
  font-family: "Montserrat", "Roboto", sans-serif;
}

.empty-cart-icon {
  font-size: 2.5rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.empty-cart-text {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 600;
}

.cart-footer {
  padding: 1rem 0 0 0;
  border-top: 1px solid #e9ecef;
}

.cart-actions {
  display: flex;
  gap: 0.5rem;
}

.client-type-btn {
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: left;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 600;
}