/* input選擇器 */
.menu-icon > input {
  display: none;
}

/* input選中 */
.menu-icon > input[type="checkbox"]:checked ~ .dialog-menu {
  opacity: 1;
  visibility: unset;

  transition: all .3s ease-in-out;
}

.menu-icon > input[type="checkbox"]:checked ~ .dialog-menu > .menu-body {
  transform: translateX(0);
}

/* 頭部盒子 */
.header-box {
  width: 100%;

  position: relative;

  display: flex;
  flex-direction: column;
  background-color: white;
  z-index: 1000;
  top: 0;
}

.header-box .header-top {
  height: 28px;
  width: 100%;
  line-height: 28px;

  color: white;
  text-align: center;

  background-color: #f18171;
}

.header-box .header-top span {
  font-weight: 600;
}

.header-box .main {
  display: flex;
  flex-direction: column;
}

.header-box .main .logo-icon {
  margin: 10px 0;

  display: flex;
  justify-content: space-between;
}

.header-box .main .logo-icon .icon-box::after {
  content: "";
  clear: both;
}

.header-box .main .logo-icon .icon-box .icon-box-item {
  position: relative;

  float: left;
}

/* 登陸彈窗/购物车彈窗 */
.icon-box-item input[id="login"] {
  display: none;
}

.icon-box-item input[id="login"]:checked ~ .login-box {
  display: block;
}

.login-box {
  display: none;

  position: absolute;
  right: 20px;

  width: 480px;
  max-width: 90vw;

  margin-top: 10px;
  padding: 0 35px 65px;

  background: white;
  box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.32);

  z-index: 100;
}

@media (max-width: 580px) {
  .login-box {
    right: -26px;
  }
}

@media (max-width: 480px) {
  .header-box {
    position: sticky;
  }
}

.login-box .f-btn-close {
  margin: 20px 0 15px;
}

.login-box > .tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  margin-top: 30px;
}

.login-box > .tabs .tab {
  color: #8C8C8C;
  font-size: 16px;
  font-weight: 400;

  margin: 0 20px;
  padding-bottom: 15px;

  cursor: pointer;
}

.login-box > .tabs > input {
  display: none;
}

.login-box > .tabs > input[type="radio"]:checked + label .tab {
  display: block;

  color: black;

  border-bottom: 2px solid black;
}

.header-box .main .logo-icon .menu-icon input {
  display: none;
}

.login-box > .tabs > .sigin,
.login-box > .tabs > .sigup {
  display: none;

  width: 100%;

  padding-top: 35px;
}

.login-box > .tabs input {
  margin-bottom: 20px;

  border-radius: unset !important;
}

.login-box > .tabs .forget-password {
  text-align: right;
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;

  margin-bottom: 20px;
}

.login-box > .tabs .forget-password span {
  cursor: pointer;
}

.login-box > .tabs .forget-password input[id="forget-password"] {
  display: none;
}

.login-box > .tabs .forget-password input[id="forget-password"]:checked ~ .forget-password-mask {
  display: flex;
}

.login-box > .tabs .forget-password .forget-password-mask {
  display: none;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  justify-content: center;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.4);
}

.login-box > .tabs .forget-password .forget-password-box {
  text-align: left;

  padding: 20px 40px 40px;

  background-color: white;
}

.login-box > .tabs .forget-password .forget-password-box input[type="email"] {
  width: 550px;
}

.login-box > .tabs .forget-password .forget-password-box .label {
  color: black;
  font-size: 16px;
  font-weight: bold;

  margin-bottom: 20px;
}

.login-box > .tabs .forget-password .forget-password-box .submit-btn {
  max-width: 250px;
}

.login-box > .tabs .error-text,
.login-box > .tabs .success-text {
  color: #D60808;
  font-size: 14px;
  font-weight: 400;

  margin: 20px 0;
}

.login-box > .tabs .success-text {
  color: #16AB0F;
}

.login-box > .tabs .sigin-btn,
.login-box > .logouo-btn {
  width: 100%;
  height: 50px;
  line-height: 50px;

  color: white;
  font-size: 20px;
  font-weight: 400;
  text-align: center;

  background-color: black;

  cursor: pointer;
}

.login-box > .logouo-btn {
  background-color: #d33242
}

.login-box > .tabs .share {
  color: black;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  
  margin: 30px 0 20px 0;
}

.login-box > .tabs > .sigin > .share-box,
.login-box > .tabs > .sigup > .share-box {
  display: flex;
  justify-content: center;
}

.login-box > .tabs > .sigin > .share-box img,
.login-box > .tabs > .sigup > .share-box img {
  width: 50px;
  height: 50px;
}

.login-box > .tabs > input[id="sigin"]:checked ~ .sigin {
  display: block;
}

.login-box > .tabs > input[id="sigup"]:checked ~ .sigup {
  display: block;
}

.login-box > .tabs .sigup .form-check-label {
  color: black;
  font-size: 12px;
  font-weight: 400;

  margin-bottom: 10px;
}

.login-box > .tabs .sigup .form-check-input:checked {
  background-color: black;
  border-color: black;
}

.login-submit-loading {
  background-color: rgba(0, 0, 0, 0.5) !important;

  cursor: wait !important;
}

/* 快速搜索弹窗 */
@media (min-width: 940px) {
  #icon-box-item {
    display: none;
  }
}
.icon-box-item input[id="quickSearch"] {
  display: none;
}

.icon-box-item input[id="quickSearch"]:checked ~ .quick-search-box {
  display: block;
}

#quick-search-icon {
  font-size: 0.8em;
}

.quick-search-box {
  display: none;
  position: fixed;
  background-color: #FFFFFF;
  left: 0;
  top: 102px;
  width: 100%;
  padding: 5px 5% 20px 5%;
  z-index: 9;
  border-bottom: 1px solid #f0f2f5 !important;
}

.quick-search-box > label {
  width: 100%;
  position: relative;
}

.quick-search-box > label.active {
  box-shadow: 0 0 9px 1px rgba(0,0,0,.06);
  -webkit-transition: all 150ms ease-in;
  -moz-transition: all 150ms ease-in;
  -ms-transition: all 150ms ease-in;
  -o-transition: all 150ms ease-in;
  transition: all 150ms ease-in;
}

.quick-search-box > label > i {
  font-size: 16px;
  position: absolute;
  left: 0;
  margin-left: 12px;
  margin-top: 10px;
  opacity: 0.5;
}

.quick-search-box > label > input {
  width: 100%;
  font-size: 14px;
  box-sizing: border-box;
  padding-left: 38px;
  padding-right: 35px;
  border: 1px solid #DDDDDD;
  color: #222222;
  border-radius: 3px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  height: 35px;
}

.quick-search-box > label > .clear-input {
  position: absolute;
  right: 10px;
  margin-top: 10px;
  opacity: 0.5;
}

.quick-search-box > label > .loading {
  position: absolute;
  right: 10px;
  margin-top: -30px;
  opacity: 0.5;
}

.quick-search-list-box {
  /*display: none;*/
  background-color: white;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  z-index: 9;
  width: 100%;
  padding: 10px;
  border: 1px solid #DDDDDD;
  border-top: 0;
  font-size: 14px;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  /*box-shadow: 0 0 9px grey;*/
  box-shadow: 0 10px 12px rgba(0,0,0,0.3);
}

.quick-search-list-box > .list-block > span {
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  padding: 0 5px;
}

.quick-search-list-box > .list-block > hr:nth-of-type(1) {
  margin-top: 8px;
}

.quick-search-list-box > .list-block > ul > li {
  padding: 0 5px;
  margin-top: 15px;
  color: #444444;
}

.quick-search-list-box > .list-block.categories > ul > li {
  padding-left: 15px;
}

.quick-search-list-box > .list-block.categories {
  margin-bottom: 28px;
}

.quick-search-list-box > .list-block:first-child {
  margin-top: 10px;
}

.quick-search-list-box > .list-block > .list-block-product > li > a {
  display: flex;
  align-items: center;
}

.quick-search-list-box > .list-block > .list-block-product > li .first-half {
  display: flex;
  align-items: center;
}

.quick-search-list-box > .list-block > .list-block-product > li .first-half .f-img{
  width: 42.5px;
  height: 60px;
  overflow: hidden;
  border: 1px solid #DDDDDD;
}

.quick-search-list-box > .list-block > .list-block-product > li .first-half .f-img > img {
  width: 100%;
}

.quick-search-list-box > .list-block > .list-block-product > li .second-half {
  flex-grow: 1;
}

.quick-search-list-box > .list-block > .list-block-product > li .second-half .s-title{
  font-size: 17px;
  line-height: 135%;
  color: #444444;
}

.quick-search-list-box > .list-block > .list-block-product > li .second-half .s-price{
  padding-left: 10px;
  line-height: 125%;
  text-align: center;
  flex-shrink: 0;
}

.quick-search-list-box > .list-block > .list-block-product > li .second-half .s-price > del {
  font-size: 14px;
  color: #5555;
  text-decoration: line-through;
}

.quick-search-list-box > .list-block > .list-block-product > li .second-half .s-price > ins {
  font-size: 16px;
  color: #f04128;
}

.quick-search-list-box > .list-block > .list-block-product > li .second-half {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
}

.quick-search-list-box > .list-footer {
  display: block;
  width: 100%;
  font-size: 12px;
  color: #6d6d6d !important;
  margin-top: 15px;
  text-align: center;
  text-transform: uppercase;
}

/** 加载效果 **/
.lds-ring {
  display: inline-block;
  position: relative;
  width: 15px;
  height: 15px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgb(0, 0, 0);
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: rgb(0, 0, 0) transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------- */

.header-box .main .logo-icon .menu-icon {
  color: black;
  font-size: 28px;

  display: none;
  align-items: center;
}

.header-box .main .logo-icon img {
  width: 150px;
  height: auto;
}

.header-box .main .logo-icon .icon-box {
  font-size: 24px;
  display: flex;
  align-items: center;
}

.header-box .main .logo-icon .icon-box .cart {
  font-size: 22px;
}

.header-box .main .logo-icon .icon-box a {
  color: inherit;
}

.header-box .main .logo-icon .icon-box i {
  cursor: pointer;
}

.header-box .main .logo-icon .icon-box .icon-box-item .f-badge{
  position: absolute;
  top: -6px;
  right: -8px;

  padding: 2px 4px;
  font-size: 12px;
  color: white;
  
  border-radius: 15px;
}

.header-box .main .logo-icon .icon-box .top-search-icon {
  display: none;
}

/* 菜單 */
.header-box .menu {
  display: flex;
  justify-content: space-between;
}

.header-box .menu a {
  color: inherit;
}

/* 菜單標籤 */
.header-box .menu > .menu-box {
  width: 100%;
  
  font-size: 18px;
}
.header-box .menu > .menu-box::after {
  content: "";
  clear: both;
}

/* 菜单项 */
.header-box .menu > .menu-box .menu-item {
  height: 53px;

  color: #262626;
  font-weight: 600;
  font-family: 'brandon grotesque weight';

  margin-right: 25px;
  padding: 0 5px;

  cursor: pointer;

  float: left;
}

.header-box .menu > .menu-box .menu-item > a:first-child,
.header-box .menu > .menu-box .menu-item > div:first-child {
  height: 53px;
  
  display: flex;
  align-items: center;
}
.header-box .menu > .menu-box .menu-item > a:first-child:hover,
.header-box .menu > .menu-box .menu-item > div:first-child:hover {
  border-bottom: 2px solid black;
}
.header-box .menu > .menu-box .menu-item:hover > .menuitem-child-box {
  display: block;
}

/* 子菜单 */
.header-box .menu .menuitem-child-box {
  position: absolute;
  left: 0;

  width: 100%;

  padding: 20px 10px;

  display: none;

  border-top: 2px solid rgba(34, 34, 34, 0.16);

  background-color: white;

  z-index: 10;
}

.header-box .menu .menuitem-child-box li:first-of-type {
  color: #262626;
  font-weight: 600;
  font-size: 16px;
  font-family: 'brandon grotesque weight' !important;
}

.header-box .menu .menuitem-child-box li {
  font-weight: 400;
  font-size: 14px;
  font-family: brown-light;

  margin: 10px 0;
}

.header-box .menu .menuitem-child-box a:hover {
  color: red;
}

/* 菜單選中狀態 */
.header-box .menu .activity {
  color: #e79f92;
  
  cursor: default;
}

/* 搜索盒子 */
.search-box {
  margin-bottom: 10px;

  min-width: 250px;

  display: flex;
  align-items: center;
}

/* 搜索輸入框 */
.search-input {
  border-radius: unset
}

/* 搜索按鈕 */
.search-icon {
  color: white;
  font-size: 18px;

  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: unset;

  background-color: #6f6f6f;
  
  z-index: 0 !important;
}

/* 導航盒子 */
.nav-box {
  min-height: 48px;

  display: flex;
  align-items: center;

  background-color: #ececea;
}


/* -------- 媒體查詢斷點 -------- */
@media (max-width: 940px) {
  .menu {
    display: none !important;
  }

  .header-box .main .logo-icon .menu-icon {
    display: flex !important;
  }
  
  .header-box .main .logo-icon .icon-box .top-search-icon {
    display: unset !important;
  }
}

/* 购物车彈窗 */
.shop-car-box-outside {
  display: none;

  position: absolute;
  top: 10px;
  right: 10px;

  z-index: 100;
}

@media (max-width: 420px) {
  .shop-car-box-outside {
    right: -16px;
  }
}

.shop-car-box {
  width: 350px;

  max-width: 90vw;
  margin: 15px;
  padding-bottom: 30px;

  background: white;
  box-shadow: 2px 3px 10px 0px rgba(0, 0, 0, 0.32);
}

.shop-car-box a,
.shop-car-box a:hover {
  color: black;
  text-decoration: unset;
}

.shop-car-icon:hover > .shop-car-box-outside {
  display: block;
}

.shop-car-box-top {
  padding: 20px 20px 0;
}

.shop-car-box-item {
  padding-bottom: 10px;
  margin-bottom: 10px;

  display: flex;

  border-bottom: 1px solid #D2D2D2;
}

.car-img-inner {
  width: 60px !important;
  height: 80px !important;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-car-box-item img {
  width: 100% !important;
  height: auto !important;
}

.shop-car-box-item .goods-detail {
  flex: 1;
  
  color: black;
  font-size: 16px;
  font-weight: 400;

  margin-left: 20px;
}

.shop-car-box-item .goods-detail .shop-car-goods-title {
  line-height: 15px;

  overflow: hidden;
  text-overflow: ellipsis;
  -moz-text-overflow: "…";
  display: -webkit-box;
  /*-webkit-line-clamp: 2;*/
  -webkit-box-orient: vertical;
}

.shop-car-box-item .goods-detail .shop-car-goods-total {
  line-height: 16px;
  margin-top: 10px;
}

.shop-car-box-item .goods-detail .shop-car-goods-price span {
  color: #E60012;
}

.shop-car-box-item .goods-detail .shop-car-goods-price {
  margin-top: 5px;
}

.shop-car-box-bottom {
  border-top: 1px solid #D2D2D2;
}

.shop-car-total-price {
  color: black;
  font-size: 16px;
  font-weight: bold;
  text-align: center;

  padding: 20px 10px 40px;
}

.shop-car-total-price span {
  color: #E60012;
  font-weight: bold;
}

.shop-car-btn {
  display: block;

  height: 60px;

  color: white !important;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  line-height: 60px;

  margin: 0 20px;

  background-color: #F29B8E;

  user-select: none;
  cursor: pointer;
}


.user-box {
  font-size: 15px;
  position: relative;
}

.user-box::after {
  content: "";
  clear: both;
}

.user-box .user-box-options {
  position: absolute;
  left: 0;

  min-width: 10rem;
  max-width: 10rem;

  display: none;

  padding: 0;

  background-color: white;

  border: 1px solid rgba(0,0,0,.15);
  border-radius: 0.25rem;

  z-index: 10;

  list-style: none;

  float: left;
}

.user-box .user-box-options li:hover {
  background-color: rgb(233,236,239);
}

.user-box .user-box-options li {
  margin: 10px 0;
  padding: 10px 10px 10px 15px;

  cursor: pointer;
}

.user-box .user-box-name {
  padding-top: 7px;
  cursor: pointer;
}

.user-box:hover > .user-box-options  {
  display: block;
}