/* 
825px
reset margin and padding globally
button width 100%
border top
*/

/* 
40px margin
240px

*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.4;
}

/* .clearfix::after {
  content: "";
  display: block;
  clear: both;
} */

.product {
  border: black 4px solid;
  width: 825px;
  margin: 80px auto;
  position: relative;
}

.product-title {
  text-align: center;
  font-size: 22px;
  text-transform: uppercase;
  background-color: #f7f7f7;
  padding: 15px 0;
}

.product-title::before {
  content: "sale";
  text-transform: uppercase;
  font-size: 12px;
  background-color: #ec2f2f;
  color: #fff;
  padding: 7px 15px;
  letter-spacing: 2px;
  font-weight: bold;
  position: absolute;
  top: -18px;
  left: -39px;
}

.price {
  font-size: 24px;
  /* float: left; */
}

.shipping {
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  font-weight: bold;
  /* margin-bottom: 20px; */
  /* float: right; */
}

.more-info:link,
.more-info:visited {
  color: black;
}

.more-info:hover,
.more-info:active {
  text-decoration: none;
}

.color-box {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.color {
  /* display: inline-block; */
  width: 20px;
  height: 20px;
  /* margin-right: 5px; */
}

.color:last-child {
  /* margin-right: 0; */
}

.black {
  background-color: black;
}

.blue {
  background-color: blue;
}

.red {
  background-color: red;
}

.yellow {
  background-color: yellow;
}

.green {
  background-color: green;
}
.brown {
  background-color: brown;
}

.details-title {
  text-transform: uppercase;
  font-size: 16px;
  /* margin-top: 30px; */
  margin-bottom: 15px;
}

.details-list {
  list-style: square;
  margin-left: 20px;
}

.details-list li {
  margin-bottom: 10px;
}

.add-cart {
  background-color: black;
  color: #fff;
  border: none;
  text-transform: uppercase;
  font-size: 20px;
  cursor: pointer;
  width: 100%;
  border-top: black solid 4px;
  padding: 15px 0;
}

.add-cart:hover {
  color: black;
  background-color: #fff;
}

/* section {
  float: left;
  width: 240px;
  margin-left: 40px;
}

.product-img {
  float: left;
}

.description {
  clear: both;
  margin-bottom: 10px;
} */

.more-info {
  margin-top: 30px;
}

/* .container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
} */

.purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.description {
  margin-bottom: 10px;
}

/* .product-details {
  flex: 1;
  margin-top: 10px;
} */

.product {
  display: grid;
  grid-template-columns: 250px 1fr 1fr;
  column-gap: 40px;
  align-items: center;
}

.product-title {
  grid-column: 1/-1;
}

.add-cart {
  grid-column: 1/-1;
}
