/*headr固定*/
.site-header {
  display: block;
  position: sticky !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99;
}
.nav-up{
  top: 0px !important;
}
.headroom {
  transition: transform 200ms linear;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.headroom--pinned {
  transform: translateY(0%);
}

.headroom--unpinned {
  transform: translateY(-100%);
}

.section-area{
  padding-top: 30px;
  /* padding-top: 10px;
  margin: 45px 5px 0px 5px; */
  /* margin-bottom: 20px; */
  /* margin-top: 30px;
  margin: 5px;
  margin-bottom: 25px; */
}
.topbar {
  display: flex;
  justify-content: end;
  min-height: 46px;
}

/*登入/語系切換*/
.top-tool img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
/*scrollToTop*/
.scroll-top {
  display: none;
  width: 40px;
  height: 40px;
  position: fixed;
  bottom: 25px;
  right: 25px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
/*登入/語系切換*/
.top-tool {
  display: flex;
  align-items: center;
  text-align: right;
}

.top-tool a {
  font-size: 15px;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 10px;
}

.top-tool img {
  margin-bottom: 5px;
  /* Add some spacing between the image and text */
}

/*=======Logo/選單=======*/
/* .main-nav {
    display: flex;
    align-items: center;
    min-height: 65px;
}
.main-nav .logo {
    width: 200px;
    height: 50px;
}
.main-nav .logo{
    width: calc(50% - 85px); 
}
.main-nav .logo img {
    width: 200px;
    height: 50px;
}
.primary-menu ul li {
    display: inline;
    padding-left: 5px;
    padding-right: 5px;
}
.primary-menu ul li a{
    font-size: 16px;
    font-weight: 500;
} */
.contain-to-grid {
  width: 100%;
  background: #ffffff;
  min-height: 65px;
  display: flex;
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
}

.title-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
}

.top-bar-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 水平居中 */
  align-items:flex-start;
  /* 垂直居中 */
  margin-left: 20px;
}

/* MEGA MENU POSITIONING STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.top-bar-section .has-dropdown {
  position: static;
}

.top-bar-section .has-dropdown a {
  position: relative;
}

.top-bar-section .has-dropdown.moved {
  position: static;
}

.top-bar-section .has-dropdown.moved>a:after {
  display: block;
}

/* DROPDOWN GENERAL STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.m-menu {
  /* border-top: 1px solid #4E4E4E; */
}
.m-menu a {
  display: block;
  -webkit-transition: opacity .3s ease;
  transition: opacity .3s ease;
}

.m-menu a:hover {}

.column h3 {
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 0 12px 0;
}

/* TOP LINKS INSIDE DROPDOWN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.column li:last-child a {
  border-bottom: none;
}
.column li:not(:first-child) a {
  /* border-top: 1px solid #262626; */
}

.column li:not(:last-child) a {
  text-align: left;
}

.column li a:hover i {
  right: 3px;
}

/* BOTTOM LINKS INSIDE FIRST DROPDOWN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.intro .icon-play {
  position: absolute;
  color: rgba(0, 0, 0, 0.4);
  font-size: 2.5em;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: color .3s ease;
  transition: color .3s ease;
}

.intro:hover .icon-play {
  color: rgba(0, 0, 0, 0.7);
}

/* TARGET DIV INSIDE SECOND DROPDOWN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.column>img {
  margin: 1em 0;
}

.info-wrap h3 {
  width: 50%;
  padding-bottom: 5px;
  border-bottom: 1px solid #4E4E4E;
}

.info {
  display: none;
}

.info-visible {
  display: block;
}
/* .header {
  max-width: 720px;
  margin: 2em auto 10em;
} */

.header-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding-right: 3em; */
}
.header-nav:before, .header-nav:after {
  content: "";
  display: table;
}
.header-nav:after {
  clear: both;
}

.menu {
  display: inline-block;
  float: right;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.menu li {
  display: inline-block;
}
.menu li a {
  color: #0097bf;
  display: block;
  padding: 10px;
  position: relative;
  transition: color 0.3s;
  text-decoration: none;
}
.checkout-cart{
  position: absolute;
  right: 20px;
  top: 85%;
  transform: translate(0, -50%);
  z-index: 99;
}
.cart-bubble {
  position: relative;
  top: -55px;
  left: 20px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  height: 32px;
  width: 25px;
  line-height: 32px;
  background-image: url(../../../img/icon/bg-bubble.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.search-button {
  position: absolute;
  right: 80px;
  transform: translate(0, -50%);
  z-index: 99;
}

.search-toggle {
  position: relative;
  display: block;
  height: 20px;
  width: 20px;
}
.search-toggle::before, .search-toggle::after {
  content: "";
  position: absolute;
  display: block;
  transition: all 0.1s;
}
.search-toggle::before {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  left: -2px;
  top: -2px;
}
.search-toggle::after {
  height: 3px;
  width: 10px;
  top: 17px;
  left: 14px;
  transform: rotate(45deg);
}
.search-toggle.active::before {
  width: 3px;
  height: 28px;
  border-width: 1px;
  border-radius: 0;
  transform: rotate(45deg);
  top: -2px;
  left: 7px;
}
.search-toggle.active::after {
  width: 28px;
  left: -6px;
  top: 11px;
}

.search-input:focus {
  outline: none;
}

#header-1 {
  position: fixed;
  /* border-bottom: 2px solid #0097bf; */
}
#header-1 .search-box {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-height: 0;
  transform: translateY(100%);
  background-color: #ffffff;
  transition: all 0.3s;
}
#header-1 .search-box .search-input {
  width: 100%;
  height: 100%;
  padding: 0 1em;
  border: 0;
  /* background-color: transparent; */
  opacity: 0;
  color: #5d5d5d;
}
#header-1 .search-box .search-input::-webkit-input-placeholder {
  color:#5d5d5d;
}
#header-1.show .search-box {
  max-height: 120px;
}
#header-1.show .search-box .search-input {
  opacity: 1;
}

@media (max-width: 1264px) {
  .megaMenu {
    display: none;
  }
}

.dropdownMenu {
  position: absolute;
  display: flex;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-top: none;
  opacity: 0;
  visibility: hidden;
  padding: 32px;
  padding-top: 24px;
  flex-wrap: nowrap;
  margin-top: 8px;
  transition: 0.5s cubic-bezier(0.19, 1, 0.19, 1);
}

.dropdownMenu>.menuColumn {
  margin-right: 24px;
}

@media (max-width: 1264px) {
  .dropdownMenu {
    display: none;
  }
}

.menuColumn {
  flex: 1;
  max-width: 150px;
  border-right: 1px solid #d0d0d0;
  text-align: left;
  margin-left: 10px;
}

.menuColumn:last-child {
  border: none;
}

.menuColumn h3 {
  font-size: 1.125rem;
  color: #5d5d5d;
  font-weight: 600;
  margin-bottom: 16px;
}

.menuColumn ul {
  display: block;
}

.menuColumn ul li {
  display: block;
}

.menuColumn ul li a {
  display: block;
  line-height: 24px;
  padding: 8px 0px;
  color: #191919;
  text-decoration: none;
  max-width: 90%;
}

.menuColumn ul li a:hover {
  color: #41aab4;
}

.menuColumn .button {
  margin-top: 24px;
}

.header .menu {
  clear: none;
  float: right;
  max-height: none;
}

.header .menu-btn:checked~.menu {
  max-height: 240px;
}
/*活動資訊欄*/
.special-deals-container {
  overflow: hidden;
  min-height: 30px;
  max-height: 30px;
  position: relative;
}
.special-deals-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.special-deals-items {
  display: flex;
  flex-direction: column;
}
.special-deals-items a {
  margin: 0;
  padding: 0 10px;
  min-height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 18px;
}
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}
/*手機版*/
@media screen and (max-width: 768px) {
.section-area{
  padding-top: 20px;
}
.wrapper {
  width: 100%;
}
.nav-up {
  top: -75px !important;
  z-index: 1 !important;
}
/*==========登入/語系=========*/
.topbar {
    justify-content: flex-end;
    min-height: 30px;
    /* 添加内边距来增加间距 */
  }
  /*==========Logo/選單=========*/
  .contain-to-grid {
    display: block;
    min-height: 50px;
  }
  .search-button{
    right: 65px;
    top: 28px;
  }
  .checkout-cart{
    right: 15px;
    top: 45px;
  }
  .header-nav{
    display: block;
  }
  .top-bar.is-stuck {
    position: static !important;}
  .top-bar-section {
    justify-content: normal;
    height: 100vh;
    z-index: 9999; /* 設定選單的層級，確保它在最上面 */
    margin-left: 0px;
  }
  .top-bar-section ul{
    overflow-y: scroll; /* 啟用垂直捲軸，如果選單內容超過螢幕高度 */
  }
  /*測試*/
  .medium-3:nth-child(n+2) {
    border-top: 1px solid #cccccc;
  }
  .medium-3:last-child {
    border-bottom: 1px solid #cccccc;
}
  .accordion {
    width: 100%;
    max-width: 360px;
    margin: 30px auto 20px;
    background: #FFF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
  }
  
  .accordion .link {
    cursor: pointer;
    display: block;
    padding: 15px 15px 15px 42px;
    color: #4D4D4D;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #CCC;
    position: relative;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }
  
  .accordion li:last-child .link { border-bottom: 0; }
  
  .accordion li i {
    position: absolute;
    top: 16px;
    left: 12px;
    font-size: 18px;
    color: #595959;
    -webkit-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
  }
  
  .accordion li i.fa-chevron-down {
    right: 12px;
    left: auto;
    font-size: 16px;
  }
  
  .accordion li.open .link { color: #b63b4d; }
  
  .accordion li.open i { color: #b63b4d; }
  
  .accordion li.open i.fa-chevron-down {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
  }
  .submenu {
    display: none;
    background: #444359;
    font-size: 14px;
  }
    
  .submenu a {
    display: block;
    text-decoration: none;
    color: #d9d9d9;
    padding: 12px;
    padding-left: 42px;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
  }
  .column h3{
    font-size: 17px;
    font-weight: normal;
    padding: 0px;
    line-height: 2.5 !important;
  }
  .column-dropdown h3:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: inset 5px;
    border-left-style: solid;
    margin-right: 0.9375rem;
    margin-top: -22px;
    position: absolute;
    right: 0;
}
  .submenu a:hover {
    background: none;
    color: #FFF;
  }
  .parent-link.show-for-small-only a {
    display: inline-block;
    text-align: center;
    position: relative;
    font-size: 1.2rem;
    font-weight: 800 !important;
  }
  .special-deals-items a {
    font-size: 16px;
  }
  .special-deals-container {
    min-height: auto;
    max-height: 50px;
  }
  .special-deals-items a {
    padding: 12px;
    min-height: 30px;
    max-height: 50px;
  }
}