/* shopcart */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  font-family: "Noto Sans TC", sans-serif;
}
/* header  */
.header {
  width: 100%;
  background-color: #fef7e6;
  display: flex;
  min-height: 70px;
  padding: 0.5rem 0px;
  color: #67755c;
  background-color: #dfd0a8;
  position: fixed;
  z-index: 10000;
  top: 0%;
}

/* 漢堡選單 */
#menuToggle {
  display: block;
  position: relative;
  top: 30px;
  left: 10px;
  z-index: 10000;
  -webkit-user-select: none;
  user-select: none;
  position: fixed;
}
#menuToggle a {
  text-decoration: none;
  color: #67755c;
  transition: color 0.3s ease;
  display: flex;
}
#menuToggle a:hover {
  color: #000;
}
#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -20px;
  left: -5px;
  cursor: pointer;
  opacity: 0;
  z-index: 10001;
  -webkit-touch-callout: none;
}
#menuToggle span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #67755c;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}
#menuToggle span:first-child {
  transform-origin: 0% 0%;
}
#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #232323;
}
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}
#menu {
  position: absolute;
  width: 260px;
  margin: -70px 0 0 -50px;
  padding: 10px 50px;
  padding-top: 100px;
  padding-left: 80px;
  background-image: linear-gradient(0deg, #fef7e6, #dfd0a8);
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */

  transform-origin: 0% 0%;
  transform: translate(-100%, 0);

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}
#menu li {
  padding: 10px 15px;
  font-size: 20px;
}
#menuToggle input:checked ~ ul {
  transform: none;
}

.logo {
  display: flex;
  width: 50%;
  margin-left: 40%;
}
.logo img {
  max-height: 3.5rem;
}
.logo h1 {
  margin-left: 1rem;
}

.header-wrap {
  float: right;
  margin-right: 1rem;
}
.header-wrap a {
  color: #67755c;
  text-decoration: none;
}
.header-wrap a:hover {
  color: #000;
}
.header-item i {
  padding-right: 0.5rem;
}
.header-search {
  display: flex;
  margin-top: 0.5rem;
}
.header-search input {
  width: 8rem;
}
.searchbar {
  border: 1px solid #fef7e6;
  background-color: #fef7e6;
}
.search-btn {
  background-color: #dfd0a8;
  outline: none;
  border: 0px solid #fef7e6;
  cursor: pointer;
}
.header-search i {
  color: #fef7e6;
  padding-right: 5px;
}
.header-search i:hover {
  color: #ebe5d5;
}

@media (max-width: 768px) {
  .logo {
    margin-left: 35%;
    width: 65%;
  }
  .header-wrap {
    flex-wrap: wrap;
  }
}
@media screen and (min-width: 374px) and (max-width: 767px) {
  .logo {
    margin-left: 20%;
    width: 80%;
  }
  .logo h1 {
    font-size: 1.5rem;
    padding-top: 0.5rem;
  }
  .header-search input {
    width: 4rem;
  }
}
@media screen and (min-width: 319px) and (max-width: 373px) {
  .logo {
    margin-left: 18%;
    width: 82%;
  }
  .logo img {
    max-height: 2.5rem;
    padding-top: 0.5rem;
  }
  .logo h1 {
    font-size: 1.5rem;
    padding-top: 0.5rem;
  }
  .header-search input {
    width: 3.5rem;
  }
}

/* 標題欄位 */
.item_header {
  display: flex;
  width: 1000px;
  margin: 0 auto;
  height: 30px;
  background-color: #fff;
  border-radius: 3px;
  padding-left: 10px;
  margin-top: 7rem;
}
.item_header div {
  width: 200px;
  color: #67755c;
  line-height: 30px;
}
.container input {
  margin-left: 40px;
}
/* 商品欄位 */
.item_header .item_detail {
  width: 50%;
}
/* 購物車內容 */
.item_body {
  margin-top: 20px;
  height: 100px;
  align-items: center;
  position: relative;
}
/* +-鈕 */
.item_body .count button {
  border: 1px solid #aaa;
  background: #f8f8f8;
  border: 0px;
  padding: 2px 5px;
}
/* 商品數量 */
.item_body .count input {
  text-align: center;
  width: 20px;
}
/* 刪除鈕 */
.item_body .operate button {
  border: 1px solid #aaa;
  background: #f8f8f8;
  border: 0px;
  padding: 2px 5px;
}
/* 商品照 */
.item_detail img {
  width: 80px;
  height: 80px;
  border-radius: 3px;
  float: left;
}
/* 商品名稱 */
.item_detail .name {
  margin-left: 100px;
  margin-top: 20px;
}
/* 總計&結帳 */
.checkout {
  position: absolute;
  right: 8rem;
  display: flex;
  justify-content: flex-end;
  margin-top: 4rem;
}
.checkout .price {
  padding: 10px 2px;
}
.checkout .totalprice {
  padding: 10px;
}
.checkout .button button {
  margin-left: 10px;
  background-color: #f8bb45;
  color: #67755c;
  border: 1px solid black;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
}
.checkout .button button a {
  text-decoration: none;
  color: #67755c;
}

/* Site footer */
.site-footer {
  background-color: #67755c;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 20px 0 20px;
  line-height: 24px;
  font-size: 12px;
  color: white;
  text-align: center;
  position: relative;
  z-index: 0;
  margin-top: 20rem;
}
.site-footer ul {
  padding-left: 0;
  list-style: none;
}
.site-footer ul li {
  display: inline-block;
}
.site-footer hr {
  border-top-color: #bbb;
  opacity: 0.5;
}
.site-footer hr.small {
  margin: 20px 0;
}
.site-footer h6 {
  font-size: 14px;
  color: white;
  margin-top: 5px;
}
.site-footer a {
  color: white;
  text-decoration: none;
  line-height: 30px;
  margin-left: 6px;
  margin-right: 0;
  border-radius: 100%;
  background-color: #33353d;
}
.site-footer a img {
  max-width: 10%;
  float: center;
  margin-top: 10px;
  margin-left: 10px;
}
.site-footer a:hover {
  color: #b1d496;
}

.copyright-text {
  margin: 0;
}

/* 返回頂端箭頭 */
.top {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 40px;
}
.top i {
  color: #f3be70;
}
.top i:hover {
  color: #fac87ec9;
}
