/* 電腦版 手機版共用 */
.sticky-el {
  position: sticky;
  top: 0;
  z-index: 10;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-mobile {
  display: none;
}

@media (max-width: 991px) { 
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: block;
  }
}


/* -----Logo----- */
.header-logo img {
  max-width: 100%;
  height: auto;
  object-fit: scale-down;
}

/* 長方形 */
.header-logo-rectangle a {
  display: inline-block;
  max-width: 200px;
}

@media (max-width: 991px) {
  .header-logo-rectangle a {
    max-width: 100px;
  }
}
/* -----Logo End----- */


/* -----icon----- */
.navbar-icon {
  margin-bottom: 0;
  display: flex;
  justify-content: flex-end;
}

.navbar-icon li {
  margin-left: 5px;
}

.navbar-icon li span {
  letter-spacing: 1px;
}

.navbar-icon li > a {
  display: block;
  padding: 8px;
  font-size: 15px;
  text-decoration: none;
  color: #000;
}

.iconSearch{
  display: block;
  padding: 8px;
  text-decoration: none;
  color: var(--icon-search-color) !important;
  font-size: var(--icon-search-size) !important;
}

.iconWish{
  color: var(--icon-wish-color) !important;
  font-size: var(--icon-wish-size) !important;
}

.iconMember{
  color: var(--icon-member-color) !important;
  font-size: var(--icon-member-size) !important;
}

.iconCart{
  color: var(--icon-cart-color) !important;
  font-size: var(--icon-cart-size) !important;
}

.navbar-icon li > a:hover {
  /* color: #C9C3C0; */
  opacity:0.5;
}

.logged-in-user {
  white-space: nowrap;
  text-align: right;
  font-size: 13.5px;
}

.logged-in-user span {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
/* -----icon End----- */


/* 購物車 */
.cartAmount {
  position: relative;
}

.amount {
  padding: 2px;
  position: absolute;
  top: 0px;
  right: 2px;
  display: inline-block;
  min-width: 17px;
  background-color: #E6C08D;
  color: #fff;
  border-radius: 999px;
  text-align: center;
  line-height: 1;
  letter-spacing: 0px !important;
  font-size: 12px;
}
/* 購物車 End */


/* -----漢堡選單關閉按鈕----- */
.menu-close {
  text-align: end;
}

.menu-close a {
  padding: 15px 20px;
  display: inline-block;
  color: #000;
}

.menu-close a:hover {
  color: #545454;
}
/* -----漢堡選單關閉按鈕----- */


/* ----------搜尋框樣式---------- */
  .searchProduct {
    position: relative;
  }

  .searchInput {
    padding: 15px;
    position: absolute;
    right: 0;
    z-index: 20;
    background-color: #eee;
    border: 1px solid #000;
    border-radius: 0.2rem;
    display: none;
  }

  .searchInput.active {
    display: flex;
  }

  .searchInput input {
    padding: 2px;
    text-align: center;
    border: none;
    outline: none;
    border-bottom: 1px solid #000;
    border-radius: 0%;
    background-color: #eee;
  }

  .searchInput button {
    padding: 5px;
    border: none;
    border-bottom: 1px solid #000;
    background-color: #eee;
    color: #000;
  }

  @media (max-width: 768px) {
    .searchInput {
      right: -10px;
    }

    .searchInput input {
      padding: 0;
    }

    .searchInput button {
      padding: 0;
    }
  }
/* ----------搜尋框樣式 End---------- */


/* -----電腦版選單----- */
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 0.5rem;
  }

  .header-desktop-menu-wrap {
    overflow-x: auto;
  }

  .header-desktop-menu {
    font-family: "Roboto Condensed", sans-serif, "微軟正黑體";
    display: flex;
    margin-bottom: 0;
    letter-spacing: 2px;
    white-space: nowrap;
  }

  .header-desktop-menu > li {
    position: static !important;
  }

  .header-desktop-menu .menu-title {
    display: block;
    padding: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    color: #656565;
  }

  .header-desktop-menu > li:hover > .menu-title {
    color: #C9C3C0;
  }

  .header-desktop-menu .menu-title::after {
    content: "\f078";
    font-family: 'Font Awesome 6 Free';
    font-size: 9px;
    margin-left: 5px;
    vertical-align: .255em;
  }

  .header-desktop-menu .menu-no-arrow::after {
    content: "";
  }

  .header-desktop-menu li {
    position: relative;
  }

  .header-desktop-menu .second-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    z-index: 10;
    text-wrap: nowrap;
  }

  .header-desktop-menu > li ul a {
    padding: 12px 35px 12px 15px;
    display: block;
    font-size: 15px;
    color: #5b5b5b;
    text-decoration: none;
  }

  .header-desktop-menu > li ul li:hover > a {
    background-color: #f2f2f2;
    color: #000;
  }

  .header-desktop-menu .second-menu ul  {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #fff;
    z-index: 10;
    text-wrap: nowrap;
    border-left: 1px solid rgba(77,76,94,0.2);
  }

  .header-desktop-menu li:hover > ul {
    display: block;
  }

  .menu-arrow::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    content: "\f054";
    font-family: 'Font Awesome 6 Free';
    font-size: 9px;
    font-weight: bold;
  }
/* -----電腦版選單 End----- */


/* -----手機版選單----- */
  .header-mobile-menu {
    font-family: "Roboto Condensed", sans-serif, "微軟正黑體";
    display: none;
    overflow-y: auto;
    letter-spacing: 2px;
  }

  .mobile-menu {
    margin-bottom: 0;
  }

  .mobile-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
  }

  .mobile-menu .menu-title {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    color: #747474;
  }

  .mobile-menu .arrow i::before {
    font-family: "Font Awesome 6 Free";
    content: '\f0d7';
    font-weight: bold;
  }

  .mobile-menu .open > .arrow i::before {
    font-family: "Font Awesome 6 Free";
    content: '\f0d8';
  }

  .mobile-menu .open .menu-title {
    color: #CEB391;
  }
  .mobile-menu .open ul {
    background-color: #F7F7F6;
  }

  .mobile-menu .second-menu > li > a {
    padding: 12px 32px;
    font-size: 14px;
    color: #141414;
  }

  .mobile-menu .second-menu .open > a {
    font-weight: bold;
    color: #000;
  }

  .mobile-menu .third-menu > li > a {
    padding: 12px 40px;
    font-size: 14px;
    color: #8D6B6B;
  }

  .mobile-menu .fourth-menu > li > a {
    padding: 12px 48px;
    font-size: 14px;
    color: #999999;
  }

  .mobile-menu .open ul li a:hover {
    background-color: #D9D8D4;
    color: #484745;
  }

  .mobile-menu-right {
    width: 480px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 20;
  }

  @media (max-width: 768px) {
    .mobile-menu-right {
      width: 280px;
    }
  }

  .mobile-menu-right .mobile-menu .menu-title {
    border-bottom: none;
  }

  .mobile-menu-right .mobile-menu a {
    border-bottom: none;
  }

  .mobile-menu-right .mobile-menu .open ul {
    background-color: #fff;
  }
/* -----手機版選單 End----- */


/* ----------置頂廣告---------- */
.top-banner-text {
    padding: 10px 15px;
    position: relative;
    background-color: #333;
    color: #fff;
    text-align: center;
}

.top-banner-text > div p {
  margin-bottom: 5px;
}

.top-banner-text > div p:last-child {
  margin-bottom: 0;
}

.top-banner-close {
    padding: 0;
    line-height: 1;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .top-banner-text {
        padding: 8px 10px;
        font-size: 14px;
    }
}
/* ----------置頂廣告_End---------- */