/* 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;
}


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

.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;
}