.shopping-cart-trigger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  font-family: inherit;
}

.shopping-cart-trigger > span {
  background-color: #e74c3c;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

.shopping-cart {
  position: absolute;
  top: 95%;
  right: 0;
  min-width: 320px;
  max-width: 360px;
  max-height: 400px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  overflow-y: auto;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shopping-cart-trigger:hover .shopping-cart,
.shopping-cart:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shopping-cart h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4rem;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-items li:last-child {
  border-bottom: none;
}

.cart-items span:first-child {
  flex: 1;
  font-size: 0.9rem;
  color: #555555;
}

.cart-items input[type="number"] {
  width: 60px;
  padding: 0.25rem;
  border-radius: 4px;
  border: 1px solid #dddddd;
  font-size: 0.9rem;
  text-align: center;
}

.cart-items span:last-child {
  min-width: 70px;
  text-align: right;
  font-weight: 600;
  color: #2c3e50;
}

.cart-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dddddd;
  text-align: right;
  font-weight: 600;
  color: #2c3e50;
}

.checkout-btn {
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: #27ae60;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.checkout-btn:hover {
  background-color: #219150;
}


