/* popup.css */
.cart-popup-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.cart-popup {
  position: relative;
  width: 420px;
  max-width: calc(100vw - 48px);  /* мобайл?? не уверен*/
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

.cart-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-popup.hide {
  transform: translateY(20px);
  opacity: 0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  z-index: 10;
}

.popup-close:hover {
  background: #e0e0e0;
  color: #111;
}

.popup-header {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  padding-right: 24px; /* чтоб не налезало на крестик */
}

.popup-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.rec-card {
  min-width: 110px;
  max-width: 110px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: transform 0.2s;
  cursor: pointer;
}

.rec-card:hover { transform: translateY(-3px); }

.rec-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.rec-card-name {
  font-size: 11px;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-card-price {
  font-weight: 600;
  font-size: 12px;
  color: #e44;
}

/* пустые приз агрузке */
.card-skeleton {
  min-width: 110px;
  height: 130px;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 10px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
