* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
header {
  position: fixed;
  z-index: 10;
  width: 100%;
  top: 0;
  height: 50px;
  overflow: hidden;
  line-height: 50px;
  box-shadow: 0 -5px 5px 5px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.8);
}
.topLine {
  padding-left: 1em;
  justify-content: space-between;
}
#cart {
  color: #fff;
  padding: 0 0.5em;
  fill: #fff;
  min-width: 50px;
  background: #5d9cec;
  cursor: pointer;
}
#cart:hover .inCart {
  display: block;
}
#cart .inCart {
  padding: 0.5em 0.8em;
  line-height: 1.6;
  box-shadow: 0 0 1em #747474;
  list-style: none;
  position: fixed;
  margin-left: -160px;
  width: 260px;
  background: #efefef;
  color: #000;
  display: none;
}
#cart .inCart img {
  width: 50px;
  float: left;
}
#cart .inCart button {
  width: 2.4em;
  height: 2.4em;
  line-height: 2.4em;
  border-radius: 50%;
  background: #008b8b;
  color: #fff;
}
#cart .inCart li {
  overflow: auto;
}
#cart .inCart li + li {
  border-top: 1px solid #ccc;
}
#cart .inCart p {
  padding-top: 4px;
}
#cart span {
  padding-left: 0.2em;
}
#cart svg {
  vertical-align: middle;
}
.wr {
  max-width: 1220px;
  margin: auto;
}
.flex,
.flex_wr {
  display: flex;
}
.flex_wr {
  flex-wrap: wrap;
  justify-content: center;
}
body {
  padding-top: 60px;
  color: #666d70;
  font-family: sans-serif;
}
.product-item {
  position: relative;
  margin: 4px;
  flex: 1 1 20%;
}
@media (max-width: 900px) {
  .product-item {
    flex: 1 1 180px;
  }
}
@media (max-width: 500px) {
  .product-item {
    flex: 1 0 130px;
  }
}
.product-item img {
  display: block;
  width: 100%;
}
.product-item:hover .zoom {
  stroke: #5d9cec;
}
.zoom {
  cursor: pointer;
  stroke: #ccc;
  position: absolute;
  bottom: 0;
  right: 0;
  transition: transform 0.3s;
}
.zoom:hover {
  transform: scale(1.4);
}
.focus {
  z-index: 1;
}
.focus:after {
  background: rgba(96,125,139,0.8);
  content: '';
  cursor: pointer;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.focus .item-buy {
  display: block;
}
.item-buy {
  text-align: center;
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  width: 100%;
  padding: 1em;
  background: #fff;
  display: none;
}
.item-buy p {
  margin-bottom: 0.5em;
}
.item-buy i {
  font-style: normal;
  vertical-align: middle;
  font-size: 1.4em;
  line-height: 1;
}
.item-buy b {
  cursor: pointer;
  margin: 0 0.2em 0.4em;
  display: inline-block;
  border: 1px solid #eee;
  padding: 0.2em 0.4em;
}
.item-buy b:hover {
  border-color: #ffe4c4;
  color: #444;
}
button {
  border: 0;
  cursor: pointer;
  outline: none;
}
.btn {
  padding: 0.5em;
  width: 100%;
  font-size: inherit;
  color: #a9a9a9;
  background: none;
  border: 1px solid #ccc;
  transition: all 0.3s;
}
.btn:hover:not([disabled]) {
  border-color: #5d9cec;
  background: #5d9cec;
  border-radius: 20px;
  color: #fff;
}
.btn[disabled] {
  cursor: default;
  background: #f0f2e6;
  color: #555;
}