#cart-details {
  padding: 20px 40px 40px 40px;
}
#cart-details h2 {
  text-align: center;
}
#cart-details table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 0;
}
#cart-details th,
#cart-details td {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}
#cart-details th {
  background-color: var(--main-color);
  color: #fff;
  text-align: left;
  font-weight: bold;
  font-size: 18px;
}
#cart-details th:first-child {
  border-radius: 5px 0 0 5px;
}
#cart-details th:last-child {
  border-radius: 0 5px 5px 0;
}
#cart-details img {
  max-width: 80px;
  max-height: 80px;
}
#cart-details a {
  color: #333;
  text-decoration: none;
  line-height: 120%;
}
#cart-details a:hover {
  text-decoration: underline;
}
#cart-details .buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
#cart-details .button {
  background: var(--main-color);
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: bold;
}
#cart-details .button:hover {
  text-decoration: none;
}
#cart-details .button.cart-clear {
  background: #EBE9EB;
  color: #515151;
}
.popup-cart-item-name {
  display: flex;
  align-items: center;
}
.popup-cart-item-name a {
  text-align: left;
  font-size: 16px;
}
.popup-cart-result {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}
.popup-cart-sum {
  font-weight: bold;
  font-size: 20px;
}
.popup-cart-empty {
  padding: 20px 20px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.popup-cart-empty i {
  font-size: 50px;
  margin-bottom: 20px;
  color: var(--main-color);
}
#cart-details .remove {
  opacity: 0;
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 30px;
  color: #ff0000;
  transition: all .3s ease-out;
}
#cart-details .remove:hover {
  color: #333;
  text-decoration: none;
}
#cart-details tr:hover .remove {
  opacity: 1;
}
#cart-details .qua-rem {
  position: relative;
}
@media screen and (max-width: 768px) {
  #cart-details {
    padding: 4px 5px 15px;
  }
  #cart-details .remove {
    opacity: 1;
  }
}
@media screen and (max-width: 355px) {
  #cart-details img {
    display: none;
  }
}