.sort-wrap .sort-arrow { transition: transform .3s; }
.sort-arrow.btn-product-collapse{ transform:rotate(90deg); }
.sort-arrow.btn-product-collapse.collapsed{ transform:rotate(0deg); }

.scroll-lock { overflow: hidden; }
.scroll-lock:before{
	content: '';
	display: block;
	position: fixed;
	top: 0; left: 0; width: 100vw; height: 100vh;
	background-color: rgba(0,0,0,.3);
	z-index: 5;
}

@media screen and (min-width: 992px) {
	.scroll-lock {
		overflow: auto;
	}
	.scroll-lock:before{
		content: none;
	}
}

#formSearch,#qSearch { position: relative; }
#formSearch button,#qSearch button { z-index: 99; }
#formSearch ul,#qSearch ul {
	position: absolute; top: 100%; left: 0;
	width: 100%; max-height: 8.5em; overflow: auto;
  z-index: 99;
}
#qSearch ul { max-height: 50vh; }
#formSearch li,#qSearch li {
	list-style: none;
	background-color: #fff; width: 100%; height: 1.65em;
	overflow: hidden; border: 1px solid #ccc;
}
#formSearch li+li,#qSearch li+li{
	border-top: none;
}
.search-qinput {
  width: 100% !important;
  border: 2px solid #f1592a;
  border-radius: 2rem;
  padding-right: 50px;
}
.search-qinput+.btn-round{ width: 110px; margin-left: -110px; }
.modal-bgc { background-color: rgba(0, 0, 0, .5); }
.quick-result { height: auto !important; }
.quick-img { width: 120px; margin-left: 0.5rem;  }
.quick-img+.col { padding-left: 0; }

.cd-top {
  display: inline-block;
  height: 40px;
  width: 40px;
  position: fixed;
  bottom: 40px;
  right: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  /* image replacement properties */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: rgba(232, 98, 86, 0.8) url(../img/cd-top-arrow.svg) no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s; }

.cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s; }

.cd-top.cd-is-visible {
  /* the button becomes visible */
  visibility: visible;
  opacity: 1; }

.cd-top.cd-fade-out {
  /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
  opacity: .5; }

.no-touch .cd-top:hover {
  background-color: #f1592a;
  opacity: 1; }

@media only screen and (min-width: 768px) {
  .cd-top {
    right: 20px;
    bottom: 60px; } }
@media only screen and (min-width: 1024px) {
  .cd-top {
    height: 60px;
    width: 60px;
    right: 30px;
    bottom: 100px; } }

.popover-body{
  max-height: 100px;
  overflow: auto;
}
.popover-body::-webkit-scrollbar-thumb {
    background-color: #c60000;
}
.popover-body::-webkit-scrollbar {
    width: 5px;
    background-color: #ccc;
}

#vueCart .cart-warp {
    border-top: 1px solid #ccc;
}
#vueCart .cart-warp:first-child {
    border-top: none;
}

.product-img-wrap .slick-arrow { background:#056839; }

.product-img-wrap .slick-prev,
.product-img-wrap .slick-next { z-index: 99; width: 30px; height: 30px; }
.product-img-wrap .slick-prev { left: 0; }
.product-img-wrap .slick-next { right: 0; }
.product-img-wrap .slick-prev:before { content: '〈'; }
.product-img-wrap .slick-next:before { content: '〉'; }

.content-details .ql-align-center { text-align: center; }
.content-details iframe{ max-width: 100%; }


/* 20250306 start */
.dropdown-member{
  border-color: #ccc !important; 
  margin: 1.75rem 0 0 !important; 
  padding: 10px !important; 
  -webkit-border-bottom-left-radius: 0.5rem !important; 
  -webkit-border-bottom-right-radius: 0.5rem !important; 
  -moz-border-radius-bottomleft: 0.5rem !important; 
  -moz-border-radius-bottomright: 10.5rem !important; 
  border-bottom-left-radius: 0.5rem !important; 
  border-bottom-right-radius: 0.5rem !important; 
}

.dropdown-member button{
  padding: 10px 5px !important; 
  border-bottom: 1px solid #ccc;
  font-weight: bold;
}
.dropdown-member button:last-of-type{
  border-bottom: 1px solid transparent;
}
.dropdown-member{
  position: relative;
}
.dropdown-member .dropdown-item:active{
  background-color: #aaa;
  color: #000;
  border-color: transparent !important;
}
.dropdown-member::after{
  content: '';
  position: absolute;
  /* width: 20px;
  height: 20px;
  background-color: #fff;
  */
  top:-6px;
  right: 10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 7px 7px 7px;
  border-color: transparent transparent #fff transparent;
  filter: drop-shadow(0px -1px 1px #aaa);
  z-index: 1100;
}
.btn-cart-member{
  color: #4ba365 !important;
  border: 1px solid #4ba365;
  background-color: #4ba365 !important;
}
.btn-cart-member:hover,
.btn-cart-member:active{
  color: #fff !important;
  background-color: #2a964a !important;
}

.cart-warp-bb{
  border-bottom: 1px solid #ccc;
}
.icon-mobile-member{
  display: block;
  margin-top: -6px;
  width: 34px !important;
  height: auto !important;
}

.btn-nav-cart{
  padding-right: 6px;
}

/* 20250306 end */

/* ---------- 20251211 start ---------- */
/* 側欄收起時 */
.side-cart.closed {
  transform: translateX(260px);
}

/* 外凸箭頭容器 */
.btn-cart-hidden{
position: absolute;
top: calc(50% - 20px);
left: 0px;
width: 20px;
height: 80px;
padding: 20px 0px;
background-color: #fff;
border: 1px solid #eee;
border-right: none;
border-radius: 10px 0px 0px 10px;
z-index: 1025;
box-shadow: -2px 0 4px rgba(0,0,0,0.10);
transform: translateY(-50%);
cursor: pointer;

transition: background .25s ease;
}

.btn-cart-hidden:hover{
  background: #fff;
}

/* 橘色箭頭 */
.cart-arrow {
width: 0;
height: 0;
margin: 10px auto;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid #ff6b4a;
transition: transform .35s ease;
}

/* 當側欄關閉時箭頭方向反轉 */
.side-cart.closed .cart-arrow {
  transform: rotate(180deg);
}
.side-cart{
    z-index: 1020;
    width: 280px;
    height: calc(100% - 130px);
    margin-top: 130px;
    margin-left: 20px;
    position: fixed;
    right: 0;
    top: 0;
    transition: transform .35s ease;
    transform: translateX(0);
}
.side-cart-wrap{
    display: block;
    height: calc(100%);
    margin-left: 20px;  
    background: #fff;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 10px 0px 0px 10px; 
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.side-btn-cart{
  padding: 30px 50px;
}
.side-item-list{
  height: auto;
  position: relative;
  width: 100%;
  padding-right: 25px;
  padding-left: 25px;
  margin-right: auto;
  margin-left: auto; 
  /* padding: 10px; */
}
.side-item{
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}
.side-item ul{
  margin-bottom: 0;
}
.side-item li{
  list-style: none;
}
.side-item a{
  color: #f1592a;
  text-decoration: none;
  border-width: bold;
}
.side-item a:hover,
.side-item a:active{
  color: #ff6b4a;
  text-decoration: none;
}
.side-cart a h3{
  font-size: 16px;
  color: #000;
}
.side-item a:hover h3,
.side-item a:active h3{
  color: #666;
}
.side-item img{
  border: 1px solid #eee;
  background: #fff;
}

.pop-top,
.pop-bottom{
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  position: absolute;
  padding: 2px 5px;
  background: #ff6b4a;
}
.pop-top span,
.pop-bottom span{
  position: relative;
  z-index: 1035;
}
.pop-top span:after,
.pop-bottom span:after{
  content: ' ';
  color: #ff6b4a;
  z-index: 1031;
  font-size: 12px;
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  
}
.pop-top{
  top: 0px;
  left: 0px;
}
.pop-bottom{
  bottom: 0px;
  left: 0px;
}
.pop-top span:after{
  top: 13px;
  right: -5px;
  border-width: 10px 10px 0 0;
  border-color:  #ff6b4a transparent transparent transparent;
}
.pop-bottom span:after{
  top: -12px;
    left: -5px;
  border-width: 10px 10px 0 0;
  border-color: transparent  #ff6b4a transparent transparent;
}

 .breadcrumb-back{
  max-width: 130px !important;
 }
.img-goback{
    width: 30px;
    height: auto;
    margin-top: -3px;
}
@media (min-width: 992px) {
  body {
    padding-top: 130px;
  }
  .navbar{
    height: 130px;
  }
  .nav-login-position{
    background: #d6f599;
    padding: 22px 5px 15px 10px;
    border-radius: 6px !important;
    top: -75px;
  }
  
  nav div.container:first-of-type{
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .btn-member{
    background: #d6f599 !important;
  }
  .pop-top,.pop-bottom{
    display: block;
  }
  .side-cart{
    display: block;
  }
}
@media (max-width: 991.98px) {
  .navbar{
    
  }
  .nav-login-position {
      position: absolute;
      top: -40px;
      right: 45px; 
  }
  .pop-top,.pop-bottom{
    display: none;
  }
  .side-cart{
    display: none;
  }
}

@media (max-width: 575.98px) {
  .nav-login-position {
    position: absolute;
    top: -40px;
    right: 45px; }
    .nav-login-position ul.navbar-nav {
      flex-direction: row !important; 
    }
    .nav-login-position ul.navbar-nav li button.btn-member span:last-of-type {
      display: none; 
    } 
    .pop-top,.pop-bottom{
      display: none;
    }
    .side-cart{
      display: none;
    }
}

/* ---------- 20251211 end ---------- */