* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.4;
}

.clearfix::after {
  clear: both;
  content: "";
  display: block;
}

/*
.container {
  background-color: red;  Height collapsed, so it is invisible 
}
*/

.product-img {
  float: left;
  margin-right: 40px;
}

/* Product */
.product {
  border: 4px solid black;
  width: 825px;
  margin: 50px auto;
  position: relative; /* for red SALE*/
}

.product-title {
  text-transform: uppercase;
  text-align: center;
  background-color: #f7f7f7;
  font-size: 22px;
  padding: 15px;
}

/* Product Information */

.product-info {
  /* background-color: #2f6ee2; */
  /* (825 - 8 -250 - 80) /2 = 243.5px */
  width: 243px;
  float: left;
  margin-right: 40px;
  margin-top: 20px;
}

.price {
  font-size: 24px;
  /* margin-bottom: 2px; */
  float: left;
  margin-bottom: 30px;
}

.shipping {
  color: #777;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  /* margin-bottom: 20px; */
  margin-top: 8px;
  float: right;
}

.product-description {
  clear: both;
  margin-bottom: 10px;
}

.sale {
  background-color: #ec2f2f;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 7px 15px;
  letter-spacing: 2px;
  display: inline-block;
  /* width: 40px;
  text-align: center; */
  position: absolute;
  top: -17px;
  left: -38px;
}

.more-info:link,
.more-info:visited {
  color: black;
  margin-bottom: 30px;
  display: inline-block;
}

.more-info:hover,
.more-info:active {
  /* color: black; */
  text-decoration: none;
}

.color {
  background-color: #000;
  height: 22px;
  width: 22px;
  display: inline-block;
  margin-right: 10px;
  /* margin-top: 20px; */
}

.color-blue {
  background-color: #2f6ee2;
}

.color-red {
  background-color: #ec2f2f;
}

.color-yellow {
  background-color: #f0bf1e;
}

.color-green {
  background-color: #90cc20;
}

.color-brown {
  background-color: #885214;
}

/* Product Details */
.product-details {
  /* background-color: #f0bf1e; */
  width: 243px;
  float: left;
  margin-top: 20px;
}

.details-title {
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 30px;
  /* margin-top: 5px; */
}

.details-list {
  list-style: square;
  margin-left: 20px;
}

.details-list li {
  margin-bottom: 10px;
}
/* Button*/
.add-cart {
  background-color: black;
  color: #fff;
  border: none;
  font-size: 20px;
  text-transform: uppercase;
  cursor: pointer;
  /* height: 50px; */
  padding: 15px;
  width: 100%;
  border-top: 4px solid black;
}

.add-cart:hover {
  background-color: #fff;
  color: black;
}
/* 从上到下，一个个设定，全是class */
