/* Стили для иконки корзины из Font Awesome */
.cart-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

/* Стили для серого круга при наведении */
.cart-icon:hover::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none; /* Чтобы круг не перехватывал события клика */
}

.cart-sidebar {
  position: fixed;
  bottom: 0;
  right: -300px; /* Изначально скрываем боковую панель за пределами экрана */
  width: 300px;
  height: 100%;
  background-color: #f1f1f1;
  transition: right 0.3s ease-in-out;
  z-index: 9999;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  background-color: #000;
  transition: transform 0.3s ease-in-out;
}

.close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-button:hover::before {
  transform: translate(-50%, -50%) rotate(225deg);
}

.close-button:hover::after {
  transform: translate(-50%, -50%) rotate(-225deg);
}
