@import url('/css/icheck-material.css');

.webBox .banner_img{
    display: none;
}
.webBox #wrap .sidebar_left{margin: 3em auto 6em;}

/* price_box */
.price_box { margin-bottom: 0; display: flex; align-items: baseline; }
.price_box * { margin: 0 .2em; font-weight: 500; font-size: .9em; color: var(--g_300); }
.price_box ins { text-decoration: none; font-size: 1em; color: var(--primary); }

/* product_list */
#product_list .category_btn { position: absolute; padding: .4em 1em; background: var(--primary); border-radius: 2em; display: inline-block; line-height: 1; font-weight: 300; font-size: .9em; color: white; top: 1em; left: 1em; z-index: 2; }
#product_list .img_box img { width: 100%; aspect-ratio: 1/1; }
#product_list .info_box [data-action="buy"] , #product_list .info_box .contact_btn { padding: .1em .8em; position: relative; background: var(--primary); font-size: .9em; color: white; z-index: 11; }
#product_list li .info_box{margin-top:20px}
#product_list li .info_box .h3{-webkit-line-clamp:2;font-size: 20px;height: 66px;font-weight: 400;}
#product_list li:hover .info_box .h3{color:var(--primary)}
#product_list li .info_box p.tt{color:#4b4c4c;font-size: 15px;-webkit-line-clamp: 2;height: 51px;margin-top: 10px;}
#product_list li .info_box .price_box{display:flex;align-items: baseline;gap: 15px;margin: 10px 0 15px;}
#product_list li .info_box .price_box ins{text-decoration: none;font-size: 1.4em;color: #d8336f;font-family: "Arimo", sans-serif;}
#product_list li .info_box .price_box del{color:#a5a4a4;font-family: "Arimo", sans-serif;font-size: 14px;}
#product_list li .info_box [data-action="buy"] {padding: 1em .8em;position: relative;background: var(--primary);font-size: .9em;color: white;z-index: 11;display: flex;align-items: center;justify-content: center;gap: 15px;width: 100%;}
#product_list li .info_box button:hover{background: #2c404d;}
#product_list li .info_box button svg{width:20px;height: 20px;fill: white;}

/* grid_list */
.grid_list { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 2em; }

/* product_item */
.product_item { margin: 0 auto 3em; }
.product_item .item_title_box { position: relative; margin-bottom: 1em; padding-bottom: .3em; letter-spacing: .1em; text-align: center; font-weight: 500; font-size: 1.5em; }
.product_item .item_title_box:before { position: absolute; width: 3em; height: .1em; background: var(--primary); display: block; bottom: 0; left: 50%; -webkit-transform: translateX(-50%); transform: translateX(-50%); content: ""; }

/* product_detail */
#product_detail { flex-wrap: wrap; display: flex; justify-content: space-between; }

/* imglist */
#imglist { width: 45%; }
#imglist a , #imglist img { width: 100%; aspect-ratio: 1/1; }
#imglist .img_box { margin-bottom: 1.3em; padding: 4%; border: 1px var(--g_100) solid; }
#imglist .img_nav .item { margin: 0 .5em; width: 100px; aspect-ratio: 1/1; border: 1px var(--g_100) solid; }
#imglist .img_nav .item img { margin: 10%; width: 80%; }

/* product_info */
#product_info { margin-left: 5%; width: 1%; flex: 1 1 auto; }
#product_info .tit_box { margin-bottom: 2em; }
#product_info .tit_box .cat { color: var(--g_500); }
#product_info .tit_box .title {font-weight: 500;font-size: 26px;}
#product_info .tit_box article { margin-top: 1em; font-size: .9em; color: var(--g_700); }
#product_info .price_box ins { margin: 0 .5em 0 0; font-size: 1.3em; }

/* order_box */
#order_box .box label { width: 4em; display: block; font-size: .9em; color: var(--g_600); }
#order_box #quantity_box label { width: 100%; }

/* shape_box */
#shape_box { margin-top: 1.3em; }
#shape_box .control_list { margin-bottom: 1.3em; }
#shape_box .control_list .option_list { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; }
#shape_box .control_list .option_list font { padding: .4em 1em; border: 1px var(--g_200) solid; line-height: 1; color: var(--g_700); cursor: pointer; }
#shape_box .control_list .option_list font.action { background: var(--primary); border-color: var(--primary); color: var(--g_100); }

/* q_control */
.q_control { border: 1px var(--g_200) solid; display: inline-flex; align-items: stretch; }
.q_control button { position: relative; width: 2em; cursor: pointer; }
.q_control button:before { position: absolute; width: 30%; height: 1px; background: var(--g_500); display: block; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); content: ""; }
.q_control button.plus:after { position: absolute; width: 30%; height: 1px; background: var(--g_500); display: block; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%) rotate(90deg); transform: translate(-50%, -50%) rotate(90deg); content: ""; }
.q_control input {padding: .3em;width: 5em;border: 0;border-radius: 0;text-align: center;background: none;}
.q_control button[disabled] , .q_control input[disabled] , #buy_btns button[disabled] { opacity: .5; cursor: not-allowed; }

/* buy_btns */
#buy_btns { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .5em; }
#buy_btns button { padding: .3em .5em; width: 7em; border: 1px var(--g_200) solid; text-align: center; }
#buy_btns button[data-type="0"] { background: var(--primary); border-color: var(--primary); color: white; }

#buyItemBox { margin: 36px 0; font-family: "Noto Sans TC",sans-serif; }
#buyItemBox .buyList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
#buyItemBox .buyItem { display: flex; align-items: stretch; background: linear-gradient(180deg,#ffffff 0%,#fcfcfb 100%); border: 1px solid #d7e7e2; border-radius: 16px; overflow: hidden; min-height: 122px; box-shadow: 0 10px 30px rgba(28,52,46,0.06); transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease; }
#buyItemBox .buyItem:hover { transform: translateY(-3px); border-color: #bed8d0; box-shadow: 0 16px 38px rgba(28,52,46,0.10); }
/* 左側方案名稱 */
#buyItemBox .itemName {width: 140px;min-width: 140px;background: linear-gradient(135deg,#ffffff 0%,#d2d2d2 100%);color: #000000;font-size: 18px;font-weight: 500;letter-spacing: 1px;line-height: 1.25;display: flex;align-items: center;justify-content: center;text-align: center;padding: 22px 18px;position: relative;}
#buyItemBox .itemName::after { content: ""; position: absolute; right: 0; top: 18px; bottom: 18px; width: 1px; background: rgba(255,255,255,.28); }
/* 中間價格資訊 */
#buyItemBox .priceBox { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 26px; position: relative; }
#buyItemBox .oldPrice { font-size: 12px; color: #9aa4a0; line-height: 1.5; margin-bottom: 5px; letter-spacing: .2px; display: flex; align-items: baseline; }
#buyItemBox .oldPrice span { color: #a6aeab; text-decoration: line-through; text-decoration-thickness: 1px; }
/* 優惠價列 */
#buyItemBox .salePrice { display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.15; color: #d84b79; font-size: 18px; font-weight: 500; align-items: baseline; }
#buyItemBox .salePrice span { font-size: 28px; font-weight: 800; color: #d8336f; letter-spacing: -.5px; line-height: 1; }
#buyItemBox .salePrice em { font-style: normal; font-size: 20px; color: #7b8682; line-height: 1.2; margin-bottom: 4px; }
/* 折扣標籤 */
#buyItemBox .discount { display: inline-flex; align-items: center; justify-content: center; min-width: 66px; height: 36px; padding: 0 14px; margin-left: 4px; background: linear-gradient(135deg,#4e6e81 0%,#4e6e81 100%); color: #ffffff; font-size: 14px; font-weight: 500; line-height: 1; position: absolute; right: 0; top: 0; }
/* 備註／庫存資訊 */
#buyItemBox .qtyInfo { font-size: 13px; color: #73807b; line-height: 1.65; letter-spacing: .2px; }
/* 右側按鈕區 */
#buyItemBox .buyAction { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; border-top: 1px solid #e5efec; margin-top: 10px; padding-top: 9px; gap: 10px; }
#buyItemBox .buyAction a {display: inline-flex;align-items: center;justify-content: center;padding: 7px 30px;background: linear-gradient(135deg,#787878 0%,#333333 100%);color: #ffffff;text-decoration: none;font-size: 15px;font-weight: 700;letter-spacing: .5px;border-radius: 7px;box-shadow: 0 5px 10px rgb(132 132 132/35%);transition: transform .25s ease,box-shadow .25s ease,filter .25s ease;white-space: nowrap;}
#buyItemBox .buyAction a:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgb(64 64 64/24%); filter: brightness(1.03); background: linear-gradient(135deg,#c53227 0%,#F44336 100%); }
#buyItemBox .buyAction a:active { transform: translateY(0); }
/* 按鈕隱藏時 */
#buyItemBox .buyAction[style*="display:none"] { display: none !important; }


/* quantity_box */
#quantity_box { margin-bottom: 1.3em; display: flex; flex-wrap: wrap; align-items: center; gap: .3em .5em; }
#quantity_box .inventory_txt { margin-top: .3em; width: 100%; font-size: .9em; color: var(--g_600); }
#quantity_box .inventory_txt.red { color: var(--red); }

/* track */
#track { display: inline-flex; align-items: center; color: var(--g_500); }
#track:before { margin-right: .2em; font-family: 'Font Awesome 5 Free'; font-weight: 400; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1; -webkit-transition: none; transition: none; content: "\f004"; }

/* add_product_list */
#add_product_list .grid_list { grid-gap: .8em 1em; }
#add_product_list li { position: relative; padding: 4%; border: 2px var(--g_100) solid; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
#add_product_list li [class*="icheck-material"] { position: absolute; margin-right: 0; top: 4%; right: 0; }
#add_product_list li .img_box img { width: 100px; aspect-ratio: 1/1; }
#add_product_list li .info_box { margin-left: 4%; width: 1%; flex: 1 1 auto; }
#add_product_list li .info_box h3 { margin-bottom: .5em; max-height: 3.2em; height: auto; -webkit-line-clamp: 2; }

/* product_tabs */
#product_tabs .tabs {margin-bottom: 1.5em;display: grid;align-items: center;border-bottom: 1px solid #ddd;grid-template-columns: repeat(3, 1fr);}
#product_tabs .tabs li {margin: 0 1em;padding: .5em .2em;border-bottom: 2px transparent solid;letter-spacing: .1em;font-weight: 500;font-size: 17px;color: var(--g_400);cursor: pointer;text-align: center;}
#product_tabs .tabs li:first-child { margin-left: 0; }
#product_tabs .tabs li.active {border-color: var(--primary);color: var(--primary);}

/* other_product */
#other_product { grid-template-columns: repeat(4, 1fr); grid-gap: .5em; }

/* sort_box */
#sort_box { position: relative; margin-bottom: 1em; display: flex; justify-content: end; align-items: center; gap: .5em 1em; }
#sort_box font {padding: .3em 1em;width: 9em;background: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 5l-6.5 7L1 5' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") #f1f1f1 no-repeat calc(100% - .5em) 50% / auto .5em;background-clip: padding-box;border: 1px solid var(--g_200);border-radius: .2em;cursor: pointer;}
#sort_box .sort_list { position: absolute; width: 9em; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 10px #ccc; top: 3em; right: 0; -webkit-transform: translateY(-.5em); transform: translateY(-.5em); opacity: 0; z-index: -1; pointer-events: none; }
#sort_box .sort_list button { padding: .3em 1em; text-align: center; }
#sort_box .sort_list button.action { background: var(--blue); border-color: var(--blue); color: white; }
#sort_box .sort_list button:not(:last-child) { border-bottom: 1px var(--g_200) solid; }
#sort_box font[data-type="1"] { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.5 7.5L7 .5l6.5 7' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#sort_box .sort_list[data-type="1"] { -webkit-transform: translateY(.2em); transform: translateY(.2em); opacity: 1; z-index: 999; pointer-events: auto; }

/* ask_btns */
#ask_btns { margin: 1.3em 0; display: flex; align-items: center; }
#ask_btns .btn { width: min(50%, 15em); background: #fff; border: 1px var(--g_200) solid; border-radius: 0; }
#ask_btns .btn.contact_btn { background: var(--primary); border-color: var(--primary); color: white; }

@media screen and (min-width: 1161px){
	#product_list .item_row:hover { border-color: var(--primary); }
	#shape_box .control_list .option_list font:hover { background: var(--primary); border-color: var(--primary); color: var(--g_100); }
	#track:hover { color: var(--primary); }
	#track:hover:before { font-weight: 900; }
}
@media screen and (max-width:1024px) {
	#buyItemBox .itemName { width: 156px; min-width: 156px; font-size: 26px; background: linear-gradient(135deg,#ffffff 0%,#c2c2c2 100%); }
	#buyItemBox .salePrice span { font-size: 28px; }
}


@media screen and (max-width: 980px){
    .fancybox-slide{display:flex;align-items: center;justify-content: center;}
    .grid_list{grid-template-columns: repeat(2, 1fr);}
	.product_item { width: min(700px, 100%); }
	#imglist { margin-bottom: 2em; width: 100%; }
	#product_info { margin-left: 0; width: 100%; }
	#add_product_list .grid_list { grid-template-columns: repeat(2, 1fr); }
	#other_product { grid-template-columns: repeat(2, 1fr); grid-gap: 2em; }
	#buyItemBox {margin: 10px 0;}
	#buyItemBox .buyList { gap: 14px; }
	#buyItemBox .buyItem { flex-direction: column; min-height: initial; border-radius: 14px; }
	#buyItemBox .itemName { width: 100%; min-width: 0; font-size: 19px; padding: 12px 18px; }
	#buyItemBox .itemName::after { display: none; }
	#buyItemBox .priceBox { padding: 18px 18px 14px; }
	#buyItemBox .oldPrice { font-size: 14px; margin-bottom: 8px; }
	#buyItemBox .salePrice { gap: 6px; font-size: 16px; }
	#buyItemBox .salePrice span { font-size: 27px; }
	#buyItemBox .salePrice em { font-size: 17px; }
	#buyItemBox .discount { min-width: 60px; height: 38px; font-size: 16px; }
	#buyItemBox .qtyInfo {   }
	#buyItemBox .buyAction { width: 100%; min-width: 0; padding: 15px 0px 0; border-left: none; background: transparent; }
	#buyItemBox .buyAction a {width: 60%;min-width: 0;height: 44px;font-size: 16px;border-radius: 7px;}
}
@media screen and (max-width: 640px) and (min-width: 551px){
	#add_product_list li .img_box { width: 100%; }
	#add_product_list li .img_box img { width: 100%; aspect-ratio: 1/1; }
	#add_product_list li .info_box { position: relative; margin: .5em 0 0; width: 100%; }
}
@media screen and (max-width: 550px){
    #product_tabs .tabs li{margin: 0;font-size: 16px;}
    .grid_list{grid-template-columns: repeat(1, 1fr);}
	#add_product_list .grid_list { grid-template-columns: repeat(1, 1fr); }
	#other_product { grid-gap: 3% 2%; }
}