* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #111;
  margin: 0;
  padding: 0;
}

header {
  background: #111;
  color: white;
  padding: 22px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

header a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  transition: 0.25s ease;
}

header a:hover {
  background: white;
  color: #111;
}

main {
  width: 90%;
  max-width: 1000px;
  margin: 45px auto;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 25px;

  background: white;
  border-radius: 16px;

  margin-bottom: 18px;
  padding: 20px;

  border: 1px solid #e5e5e5;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 130px;
  height: 130px;

  object-fit: contain;

  background: #f7f7f7;

  border-radius: 12px;

  padding: 10px;
}

.info {
  flex: 1;
}

.info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #111;
}

.info p {
  margin: 6px 0;
  color: #555;
  font-size: 15px;
}

.info p:last-child {
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.remove-btn {
  border: none;
  background: #f1f1f1;
  color: #d62828;

  padding: 10px 15px;

  border-radius: 8px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.25s ease;
}

.remove-btn:hover {
  background: #d62828;
  color: white;
}

.empty {
  background: white;

  text-align: center;

  padding: 60px 20px;

  border-radius: 16px;

  color: #666;

  font-size: 18px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cart-summary {
  margin-top: 30px;

  background: white;

  padding: 25px 30px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid #e5e5e5;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.cart-summary p {
  margin: 0;

  font-size: 21px;

  color: #111;
}

.cart-summary p strong {
  margin-right: 8px;
}

.checkout-btn {
  border: none;

  background: #111;
  color: white;

  padding: 14px 24px;

  font-size: 16px;
  font-weight: 700;

  border-radius: 9px;

  cursor: pointer;

  transition: 0.25s ease;
}

.checkout-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

@media (max-width: 700px) {

  header {
    padding: 18px 5%;
  }

  header h1 {
    font-size: 19px;
  }

  header a {
    font-size: 13px;
    padding: 8px 11px;
  }

  main {
    width: 92%;
    margin: 30px auto;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .product-image {
    width: 100%;
    height: 180px;
  }

  .remove-btn {
    width: 100%;
    margin-top: 10px;
  }

  .cart-summary {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .checkout-btn {
    width: 100%;
  }
}