/*load動畫*/
.spinner-grow {
	width: 1rem;
	height: 1rem;
}

#spinner {
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease-out, visibility 0s linear .5s;
	z-index: 99999;
}

#spinner.show {
	transition: opacity .5s ease-out, visibility 0s linear 0s;
	visibility: visible;
	opacity: 1;


}


/*Logo*/
.ys-logo {
	width: 100px;
}

nav.navbar {
	padding: 1vw 3vh;
}

.navbar-toggler {
	font-size: 1rem;
}

.bg-w {
	background: rgba(255, 255, 255, 0.9) !important;
}

.navbar-light .navbar-nav .nav-link {
	color: #4a4a4a;
	padding: 1.2rem 2.8rem;
	font-size: 18px;
	letter-spacing: 0.1rem;
	transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
	padding: 1.2rem 2.8rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
	color: var(--a);
}

.dropdown-item:hover,
.dropdown-item:focus {
	color: var(--a);
	background-color: #fff;
}

/*搜尋*/
.border-primary {
	border-color: var(--a) !important;
}

.form-control:focus {
	color: #6B6A75;
	box-shadow: 0 0 0 .25rem rgba(190, 110, 110, 0.35);
}

/*語言版本*/
ul.language-but {
	display: flex;
	padding: 1vh 0.7vh;
}

ul.language-but li {
	padding: 0 0.5vh;
}



@media (max-width: 991.98px) {

	.navbar-light .navbar-nav .nav-link,
	.sticky-top.navbar-light .navbar-nav .nav-link {
		padding: 10px 0;
	}
}

@media (max-width: 480px) {

	/*Logo*/
	.ys-logo {
		width: 75px;
	}

	.navbar-light .navbar-nav .nav-link {
		font-size: 15px;
	}

}


/*============ carousel =============*/

.carousel-control-next-icon,
.carousel-control-prev-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	background-size: 100% 100%;
}

.carousel-control-next,
.carousel-control-prev {
	width: 5%;
}


.owl-theme .owl-nav {
	position: absolute;
	right: 0;
	top: -80px;
	font-size: 38px;
	color: #a0a0a0;
}


@media (max-width: 576px) {
	.carousel-caption h5 {
		font-size: 14px;
		font-weight: 500 !important;
	}

	.carousel-caption h1 {
		font-size: 30px;
		font-weight: 600 !important;
	}
}

.carousel-control-prev,
.carousel-control-next {
	width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	width: 3rem;
	height: 3rem;
}

@media (min-width: 991.98px) {
	.banner {
		position: relative;
		margin-top: -90px;
		z-index: 1;
	}
}



/*============ 鏡片carousel =============*/

.lens-carousel {
	padding: 10vh 0 8.8vh;
}

.lens-carousel .owl-nav {
	display: flex;
	justify-content: center;
	height: 46px;
	margin-top: 1.5vh;
}

.lens-carousel .owl-nav .owl-prev,
.lens-carousel .owl-nav .owl-next {
	/*    position: relative;*/
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.5vw;
	font-size: 20px;
	transition: .5s;
}

.lens-carousel .owl-nav .owl-prev:hover,
.lens-carousel .owl-nav .owl-next:hover {
	background: var(--secondary);
}

.lens-carousel .owl-item a {
	display: block;
	width: 100%;
	height: auto;
}

.lens-carousel .owl-item img {
	width: 100px;
	height: 100px;
}

/*
.lens-carousel .owl-item a:hover{
	transition: .5s;
	transform: scale(1.15);
}
*/

.lens-item {
	text-align: center;
}

.lens-item P {
	font-size: 16px;
	margin-top: 1.5vh;
}


/*=== 行動 鏡片carousel ===*/
@media (max-width: 1024px) {
.lens-carousel {
	padding: 5vh 0 4.25vh;
	}
}

@media (max-width: 992px) {
	.lens-carousel .owl-item img {
		width: 70px;
		height: 70px;
	}
}

@media (max-width: 480px) {
	.lens-carousel {
		padding: 5vh 0 3.5vh;
	}

	.lens-item P {
		font-size: 0.9rem;
	}
}


@media (max-width: 375px) {
	.lens-carousel .owl-item img {
		width: 55px;
		height: 55px;
	}

	.lens-item P {
		font-size: 12px;
	}

}

/*================================
共用頁面
=================================*/

.wrap-bg-B {
	width: 100%;
	height: 240px;
	top: 0;
	left: 0;
	display: flex;
	justify-content:center;
	background-color: #fce6e6;
	background-image: linear-gradient(to top, #f5f5f5 0%, #fce6e6 100%);
}

.wrap-bg-B h1{
	color: var(--ysoC1);
	font-family: Lato, Arial, Helvetica, "微軟正黑體", "新細明體", sans-serif;
}

/*================================
首頁內容
=================================*/

/*title*/
.best-seller {
	padding: 2.5vw 0 3.5vw;

}

.best-seller h2 {
	font-size: 26px;
	margin: 7vh auto;
	text-align: center;
	font-weight: 300;
	letter-spacing: 0.2em;
	color: #555555;
}

.best-seller h2 span {
	display: block;
	font-family: "Lato", sans-serif;
	font-weight: bold;
	margin: -7vh auto 0;
	text-align: center;
	font-size: 1.5em;
	letter-spacing: 0.05em;
	color: var(--ysoC4);
	opacity: 0.5;
}

.picitem{
	display: flex;
	max-width: 100%;
  height: auto;
	border-radius: 10px;
    margin: 1.3vh auto;
    background: antiquewhite;
    overflow: hidden;
}

.picitem a {
	width: 100%;

}

.picitem img {
	transition: .5s;
}

.picitem:hover img {
	transform: scale(1.05);
}

.owl-theme .owl-nav [class*=owl-]:hover {
	background: transparent;
	color: #D6D6D6;
}


@media (max-width: 992px) {
	.picitem {
		max-width: 310px;
		margin: 1vh auto;
	}
}

@media (max-width:768px) {}

@media (max-width:480px) {
	.picitem {
		max-width: 190px;
	}

	.best-seller h2 {
		font-size: 18px;
		margin: 6vh auto 5vh;

	}

	.best-seller h2 span {
		margin: -4.8vh auto 0;
		margin: -2.7rem auto 0;
	}
}

@media (max-width:375px) {
	.best-seller h2 span {
		/*    margin: -8vh auto 0;*/
	}
}



/*================================
彩色鏡片產品頁
=================================*/
.wrap {
	position: relative;
	margin: 0 auto;
	padding: 1.6vh 0 5vh;
	min-height: 55vh;
}

.wrap-bg {
	width: 100%;
	height: 300px;
	position: absolute;
	overflow: hidden;
	top: 0;
	left: 0;
	z-index: -1;
	background-color: #fce6e6;
	background-image: linear-gradient(to top, #f5f5f5 0%, #fce6e6 100%);
}

.product {
	margin-top: 3vh;
}

.pd_md {
	display: flex;
	background: url(/images/MD-Imagery-1.png) no-repeat;
	background-size: 100%;
	max-width: 100%;
	min-height: 450px;
	position: relative;
}
.pd_md.md_pic2{
	background: url(/images/MD-Imagery-2.png) no-repeat;
	background-size: 100%;
}
.pd_md.md_pic3{
	background: url(/images/MD-Imagery-3.png) no-repeat;
	background-size: 100%;
}
.pd_md.md_pic4{
	background: url(/images/MD-Imagery-4.png) no-repeat;
	background-size: 100%;
}
.pd_md.md_pic5{
	background: url(/images/MD-Imagery-5.png) no-repeat;
	background-size: 100%;
}
.pd_md.md_pic6{
	background: url(/images/MD-Imagery-6.png) no-repeat;
	background-size: 100%;
}

.eye_img {
	width: 100%;
	max-width: 250px;
	position: absolute;
	right: 5%;
	top: 9%;
}

.eye_img.after {
	top: 51%;
}

/*模擬實戴圖*/
.eye_before,
.eye_after {
	width: 100%;
	max-width: 250px;
	/*	padding-bottom: 165px;*/
	height: 165px;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 0;
	border-radius: 50px 0 50px 0;
	border: 1px #ffffff solid;
}

.eye_before img,
.eye_after img {
	position: absolute;
	top: -35%;
}

.tab_before,
.tab_after {
	border-style: solid;
	border-width: 58px 0 0 70px;
	border-color: #e49c9d transparent transparent transparent;
	border-radius: 10px;
	height: 0px;
	width: 0px;
	border-radius: 10px;
	position: absolute;
	right: -1px;
	top: -3px;
	z-index: 3;
}

.tab_before::after,
.tab_after::after {
	content: 'before';
	color: #fff;
	position: absolute;
	right: 3px;
	top: -2.8rem;
	transform: rotate(40deg);
	letter-spacing: 0.05rem;
}

.tab_after::after {
	content: 'after';
}


.pd_info {
	/*	background: rgba(248, 239, 239, 0.35);*/
	letter-spacing: 0.1rem;
	padding-right: 6vh;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}


.pd_info h2 {
	font-size: 38px;
	font-weight: 300;
	letter-spacing: 2.5rem;
	color: #3c3c3c;
}

.pd_info h2 > span {
	letter-spacing: 0;
}

.pd_info p {
	font-size: 16px;
}

.pd_info p > span {
	font-weight: bold;
	font-size: 1.05rem;
	color: #feb6cb;
	padding: 0 5px;
}

.pd_img {
	position: relative;
}

.lens_img {
	margin: 1.7vh 2vh 2vh;
	max-width: 132px;
}

.lens_shadow {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: -1;
}

.pd_text {
	font-size: 14px;
	margin: 3vh auto 2vh;
}

.pd_list {
	display: inline-flex;
	font-style: normal;
	font-weight: bold;
	min-width: 60px;
	text-align-last: justify;
	margin-right: 1.2vh;
}


/*鏡片分類*/
.nav-tabs.tabs-A {
	border: 0;
	padding-top: 1vh;
}

.nav-fill .nav-item {
	margin: 0 2px;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
	color: var(--a);
	border: 0;
	border-bottom: 3px solid var(--ysoC4);
}

.nav-tabs .nav-link {
	color: #555;
	margin-bottom: 0;
	border: 0;
	border-bottom: 3px solid #dddcdc;
	font-size: 15px;
}

.nav-link:hover,
.nav-link:focus {
	color: var(--a);
}

.nav-tabs .nav-link:hover {
	border-bottom: 3px solid #ecd3d3;
/*	border-bottom: 3px solid #e49c9d;*/
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
	color: var(--a);
	/*    border-color: #dee2e6 #dee2e6 #fff;*/
	border: 0;
/*	border-bottom: 3px solid #ecd3d3;*/
	border-bottom: 3px solid var(--ysoC5);
}


/*tone tab*/
.nav-tabs.tabs-B .nav-link {
	border: 0;
	padding: 0rem 2rem;
	border-right: 1px solid #dddcdc;
	margin: .5rem auto;
}

.nav-tabs.tabs-B .nav-link:hover {
	border: 0;
	border-right: 1px solid #dddcdc;
}

.nav-tabs.tabs-B .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
	border: 0;
}

.lens_number {
	text-align: center;
	font-size: 12px;
}

/*分頁*/
.page-link {
    color: #a5a5a5;
}
.page-link:hover {
    color: var(--a);
    background-color: #fff;
    border-color: var(--ysoC4);
}
.page-link:focus {
    color: var(--a);
    background-color: #fff;
    box-shadow: 0 0 0 .25rem rgb(239, 223, 223);
}

.page-item.active .page-link {
  color: var(--a);
  background-color: #fff;
  border-color: rgb(239, 223, 223); /* 修改邊框色 */

}

.page-item.active .page-link:hover {
  background-color: #fff; /* 滑鼠懸停時的背景色 */
  border-color: #fff; /* 滑鼠懸停時的邊框色 */
}



/*=== 行動 彩色鏡片產品頁 ===*/

@media (max-width: 1200px) {

	/*模擬實戴圖*/
	.pd_md {
		max-width: 100%;
		min-height: 350px;
	}

	.eye_img {
		max-width: 200px;
		position: absolute;
		right: 5%;
		top: 6%;
	}

	.eye_img.after {
		top: 48%;
	}

	.eye_before,
	.eye_after {
		max-width: 200px;
		height: 130px;
	}

	.eye_before img,
	.eye_after img {
		position: absolute;
		top: -35%;
	}

	/*產品介紹	*/
	.lens_img {
		margin: 1.5vh 2vh;
		max-width: 90px;
	}

	.lens_shadow {
		bottom: 0;
		left: 0;
	}

	.pd_text {
		font-size: 13px;
		margin: 1vh auto 2vh;
		line-height: 1.3em;
	}

}


@media (max-width: 1024px) {
	/*	漸層背景*/
	.wrap-bg {
		height: 230px;}
}

@media (max-width: 991px) {
	.wrap {
		padding: 0.1vh 0 8vh;
	}

	.pd_md {
		background-position: center -1vh;
	}

	.eye_img {
		/*        max-width: 200px;*/
		right: 16%;
	}

	.pd_info {
		letter-spacing: 0.1rem;
		max-width: 100%;
		flex-direction: row;
		padding: 1.5vh 1vh 0vh;
	}

	.pd_info h2 {
		font-size: 36px;
		letter-spacing: 2.5rem;
	}

	.pd_info p {
		font-size: 14px;
	}

	.pd_text {
		font-size: 14px;
		margin: 1vh auto;
		line-height: 1.6em;
	}

	.lens_img {
		margin: 0.8vh 2vh;
		max-width: 110px;
	}
}

@media (max-width: 576px) {
	.pd_md {
		max-width: 100%;
		min-height: 235px;
	}

	.eye_img {
		max-width: 140px;
		right: 10%;
	}

	.eye_before,
	.eye_after {
		max-width: 140px;
		height: 92px;
		border-radius: 22px 0 22px 0;
	}

	.tab_before,
	.tab_after {
		border-radius: 7px;
		right: -1px;
		top: -3px;
		border-width: 43px 0 0 55px;
	}

	.tab_before::after,
	.tab_after::after {
		right: 2px;
		top: -2.2rem;
		letter-spacing: 0.05rem;
		font-size: 0.7rem;
	}

	.eye_img.after {
		top: 50%;
	}

	.pd_info {
		align-items: start;
	}

	.pd_info h2 {
		font-size: 22px;
		letter-spacing: 0.5rem;
	}

	.lens_img {
		margin: 0vh 2vh;
		max-width: 95px;
	}

	.pd_text {
		font-size: 11px;
		margin: 0.5vh auto;
		line-height: 1.3em;
		padding-left: 0.5vh;

	}
	.pd_info P{
		display: none;
	}

	.pd_list {
		min-width: 50px;
	}

/*	鏡片分類*/
	.nav-tabs .nav-link {
    font-size: 12px;
}
	.nav-tabs.tabs-B .nav-link {
        padding: 0rem 0.75rem;
}
	.lens_number {
    font-size: 9px;
}
	.lens_box{
		margin: 0 1vh;
	}

}

@media (max-width: 390px) {
	.eye_img {
        top: 4%;
    }
	.eye_img.after {
        top: 46%;
    }
}

.tips_frame{
	position: relative;
}

/* 對話框 */
.tips_talk{
	display:block;
	position: absolute;
	background-color: #f7ecec;
	border-radius: 20px;
	padding: 6px 12px;
	animation: tips_talk 3s 2;
	animation-fill-mode:both;
	animation-delay: .5s;
	z-index: 5;
	left: 29rem;
  top: 0.3rem;
	}
/* 對話框NO2定位&延遲 */
.no2 {
	top: 8.4rem;
  left: -8.2rem;
	animation-delay: 2s;
	}

/*--- 對話框動畫 ---*/
    @keyframes tips_talk {
		0% { transform: translate3d( 0px, 0px, 0px) ;
	    	opacity:0; }/*--- 3D X, Y, Z(深度,前後) ---*/
		5% { transform: translate3d( 5px, 0px, 0px) ;
	    	opacity:1; }
		10% { transform: translate3d( 10px, 0px, 0px) ;
	    	opacity:1; }
		20% { transform: translate3d( 5px, 0px, 0px) ;
	    	opacity:1; }
		30% { transform: translate3d( 10px, 0px, 0px) ;
	    	opacity:1; }
		40% { transform: translate3d( 5px, 0px, 0px) ;
	    	opacity:1; }
		50% { transform: translate3d( 0px, 0px, 0px) ;
	    	opacity:0; }
        100% { transform: translate3d( 0px, 0px, 0px) ;
	    	opacity:0; }
	        }

.tips_talk > p{
	color: #333;
	font-size:14px;
}

.tips_talk::after {
  border-bottom: solid 8px transparent;
  border-left: solid 12px #f7ecec;
  border-top: solid 8px transparent;
  content: "";
  display: block;
  height: 0;
  margin-top: -6px;
  position: absolute;
  right: -8px; top: 45%;
  width: 0;
}

@media (max-width: 1024px) {
/* 對話框 */
.tips_talk{
	left: 19.5rem;
  top: 0.3rem;
	}
.no2 {
	top: 5.8rem;
  left: -8.2rem;
	}
}
@media (max-width: 576px) {
	.tips_talk{
	left: 8.5rem;
  top: 0.3rem;
	}
.no2 {
	top: 3.8rem;
  left: -8.2rem;
	}
}


/*================================
透明鏡片頁
=================================*/
.clear_lens_BN{
	width: 100%;
  height: auto;
	min-height: 300px;
	margin: 0 auto 3vh;

  overflow: hidden;
  background: url(/images/Clear_lenses-banner.jpg) top center no-repeat;
 }
.cc_lens h2{
	font-size: 38px;
	font-weight: 300;
	letter-spacing: 0.15em;
	color: #3898c2;
	margin: 1rem 0;
}
.cc_lens ul{
	font-size: 22px;
	letter-spacing: 0.1rem;
}
	.cc_lens li{
  line-height: 1.3;
	margin: 0.5em 0;
	}

.cc_lens b {
	position: relative;
}
.cc_lens b::before {
		content: '';
	  background: var(--ysoC3);
    position: absolute;
    z-index: -1;
    bottom: -1px;
    left: -5px;
    width: 103%;
    height: 40%;
		border-radius: 10px;
    opacity: 0.18;
}

.cc_lens li span.bold {
		display: inline;
    padding: 0 2px;
    border-radius: 4px;
    -webkit-box-decoration-break: clone;
    font-weight: bold;
    background-color: rgba(87, 183, 221, 0.18);
}



/*=== 其他行動裝置 ===*/

@media (max-width: 1280px) {
	.cc_lens h2{
	font-size: 34px;
}
	.cc_lens ul{
	font-size: 20px;
	letter-spacing: 0.05rem;
}
}

@media (max-width: 992px) {
	.cc_lens h2{
	font-size: 30px;
	margin: 0.05rem 0 0.1rem;
}
.cc_lens ul{
	font-size: 18px;
	letter-spacing: 0.05rem;
}
.cc_lens li{
	margin: 0.35em 0;
	}

}

@media (max-width: 480px) {
.clear_lens_BN{
		min-height: 140px;
	  background: url(/images/Clear_lenses-banner.jpg) top center no-repeat;
		background-size: 230vw;
		margin: 0 auto;
	}
	.cc_lens h2{
	font-size: 26px;
	margin: 0.05rem 0 0.1rem;
}
.cc_lens ul{
	font-size: 16px;
  line-height: 1.6;
}
}


/*================================
聯絡我們
=================================*/

/*按鈕*/
.btn-yso{
	background: var(--ysoC5);
	color: #ffffff;
	transition: 300ms;
}
.btn-yso:hover{
	opacity: 0.8;
	color: #ffffff;
}


/*================================
搜尋結果
=================================*/
.search-item li{
	border-bottom: 1px solid #dee2e6;

}



/*================================
footer
=================================*/

footer {
	letter-spacing: 0.05em;
	margin-top: 7vh;
}

.footer_menu {
	border-top: 1px solid #ececec;
	border-bottom: 1px solid #ececec;
	box-shadow: 0px -3px 11.76px 0.24px rgba(217, 217, 217, 0.3);
	text-align: center;
}

.footer_menu_item {
	margin: 12px auto 10px;
}

.footer_menu_item a {
	font-size: 18px;
	margin: 0 3.8vw;
}

.footer_iner {
	margin: 9.5vh auto;
}

.footer_iner ul {
	font-size: 15px;
	color: #808080;
	margin-left: 3vh;
}

.footer_logo img {
	width: 135px;
}

.footer_logo:after {
	content: "";
	margin-left: 5.5vh;
	display: inline-block;
	width: 1px;
	height: 68px;
	background: #d9d9d9;
	vertical-align: middle;
}

.btn-lg-square {
	width: 46px;
	height: 46px;
	font-size: 1.25rem;
	text-align: center;
}

/*=== back to top ===*/

.back-to-top {
	position: fixed;
	right: 4vh;
	bottom: 4vh;
	z-index: 99;
}

.btn-check:focus + .btn,
.btn:focus {
	outline: 0;
	box-shadow: 0 0 0 .25rem rgba(236, 211, 211, 0.5);
}

.bi-chevron-up::before {
	color: white;
	vertical-align: text-bottom;
}


@media (max-width:576px) {
	.footer_menu_item a {
		font-size: 16px;
	}

	.footer_iner ul {
		font-size: 12px;
		margin: 0 auto