@charset "utf-8";

/*============================================================
  客製化手機外殼頁 | 現代化外觀
  - 所有新規則均以 .frame-page 為範圍，不影響其他頁面
  - 純外觀調整，未觸及 form 結構、input name、onclick
============================================================*/

.button_transparent {
	background-color: transparent;
	border: 0;
	color: #000000;
	cursor: pointer;
}

/*-- slick 前後箭頭 --*/
.slick-prev:before,
.slick-next:before {
	color: black;
}

/*-- Bootstrap 微調 --*/
.form-control {
	display: inline;
	width: 70%;
}
.form-group {
	margin-bottom: 10px;
}

/*============================================================
  整頁容器
============================================================*/
.frame-page {
	margin: 0;
	font-family: "微軟正黑體", "Noto Sans TC", sans-serif;
	color: #222;
}

/*============================================================
  左側預覽台 (.img 在 cart.css 設定固定 360x360 寬高)
============================================================*/
.frame-page .img {
	background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
	border: 1px solid #eceff1;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(30, 30, 30, 0.05);
	margin: 25px auto 14px;
	transition: box-shadow .3s ease;
}
.frame-page .img:hover {
	box-shadow: 0 6px 22px rgba(30, 30, 30, 0.09);
}

/* 桌機版注意事項卡片 (覆蓋 inline padding) */
.frame-page .col-sm-4 > .col-sm-12.hidden-xs[style*="padding:10px 0 10px 15px"] {
	background: #fafafa !important;
	border: 1px solid #eeeeee !important;
	border-radius: 8px !important;
	padding: 14px 18px !important;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.75;
	color: #555;
}
.frame-page .col-sm-4 > .col-sm-12.hidden-xs > .col-sm-12 {
	padding: 0;
}

/*============================================================
  步驟頁籤 (選機型 / 選圖案)
  用 CSS counter 自動加「步驟 1 / 步驟 2」編號
  不需改 PHP 的按鈕文字
============================================================*/
.frame-page ul,
.frame-page ul.tabs,
.frame-page ul.tabs li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.frame-page .abgne_tab {
	clear: left;
	width: 100%;
	margin: 18px 0 10px;
}

.frame-page ul.tabs {
	display: flex;
	width: 60%;
	height: auto;
	border: none;
	border-bottom: 2px solid #eceff1;
	gap: 10px;
	counter-reset: step;
	padding: 0 2px;
}

.frame-page ul.tabs li {
	counter-increment: step;
	flex: 1;
	height: auto;
	min-height: 55px;
	line-height: 1;
	overflow: hidden;
	position: relative;
	float: none;
	margin: 0;
	margin-bottom: -2px;
	border: 1px solid #eceff1;
	border-bottom: 2px solid #eceff1;
	background: #fafafa;
	border-radius: 12px 12px 0 0;
	padding: 0 16px 0 12px;
	transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.frame-page ul.tabs li::before {
	content: counter(step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #d4d4d4;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	font-family: "Helvetica Neue", Arial, sans-serif;
	line-height: 1;
	flex-shrink: 0;
	margin-right: 12px;
	transition: background .25s ease, color .25s ease, transform .25s ease;
}

.frame-page ul.tabs li button.button_transparent {
	flex: 1;
	height: 100%;
	padding: 0px 6px 0px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	text-align: left;
	font-size: 15px;
	color: #666;
	font-weight: 600;
	letter-spacing: 1px;
	cursor: pointer;
	white-space: nowrap;
}

.frame-page ul.tabs li button.button_transparent::before {
	content: "步驟 " counter(step);
	display: block;
	font-size: 11px;
	letter-spacing: 3px;
	color: #b0b0b0;
	font-weight: 500;
	margin-bottom: 5px;
	text-transform: uppercase;
}

.frame-page ul.tabs li button.button_transparent[disabled],
.frame-page ul.tabs li button.button_transparent:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.frame-page ul.tabs li:hover {
	background: #f1f3f5;
	border-color: #d0d0d0;
}
.frame-page ul.tabs li:hover::before {
	background: #b8b8b8;
}

.frame-page ul.tabs li.active {
	background: #fff;
	border-color: #999;
	border-bottom-color: #fff;
	box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}
.frame-page ul.tabs li.active::before {
	background: #222;
	color: #fff;
	transform: scale(1.05);
}
.frame-page ul.tabs li.active button.button_transparent {
	color: #111;
	font-weight: 700;
}
.frame-page ul.tabs li.active button.button_transparent::before {
	color: #888;
}

.frame-page div.tab_container {
	clear: left;
	width: 100%;
	border: none;
	background: #fff;
	padding: 6px 0 0;
}
.frame-page div.tab_container .tab_content {
	padding: 10px 4px 0;
}

/*============================================================
  LINE@ 諮詢區 (覆蓋 inline 綠色按鈕)
============================================================*/
.frame-page .tab_container p[style*="padding: 0 10px"] {
	margin: 14px 0px 6px !important;
	padding: 14px 16px !important;
	background: #f7fbf3;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.75;
	color: #555;
}
.frame-page .tab_container p[style*="padding: 10px"] {
	padding: 0 10px 14px !important;
	margin: 0 !important;
}
.frame-page .tab_container p a[href*="lin.ee"] {
	display: inline-block;
	margin-top: 5px;
	padding: 8px 15px !important;
	background: #00c300 !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	font-size: 13px;
	letter-spacing: 1px;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 195, 0, 0.25);
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.frame-page .tab_container p a[href*="lin.ee"]:hover {
	background: #00a300 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 195, 0, 0.35);
}

/*============================================================
  機型/目錄下拉選單
============================================================*/
.frame-page .tab_content select,
.frame-page .tab_content input[type="text"]:not(.Wdate):not(#unit_price):not(#total_price) {
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	height: 36px;
	padding: 0 12px;
	margin: 4px 6px 4px 0;
	background: #fff;
	font-size: 14px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.frame-page .tab_content select:focus,
.frame-page .tab_content input[type="text"]:not(.Wdate):focus {
	outline: none;
	border-color: #337ab7;
	box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.15);
}

/*============================================================
  小計摘要卡 (覆蓋 inline style="background-color:#eee;...")
============================================================*/
.frame-page form#push_form > div[style*="background-color:#eee"] {
	background: #fafafa !important;
	border: 1px solid #ececec !important;
	border-radius: 8px !important;
	padding: 14px 18px !important;
	margin: 6px 0 0 !important;
}

.frame-page #set_price {
	padding: 0 !important;
	font-size: 14px;
	color: #333;
	line-height: 1.85;
}
.frame-page #set_price > div {
	padding: 6px 0;
	border-bottom: 1px dashed #e5e5e5;
	color: #333;
}
.frame-page #set_price > div:last-child {
	border-bottom: 0;
}
.frame-page #set_price #unit_price,
.frame-page #set_price #shell_name,
.frame-page #set_price #skin_name {
	color: #111;
	font-weight: 600;
}
.frame-page #set_price #unit_price {
	background-color: transparent !important;
	border: 0 !important;
	font-size: 15px;
	font-weight: 700;
	padding: 0 !important;
	width: auto;
	min-width: 60px;
}

/*============================================================
  加購商品卡 (覆蓋 $add_buy_style inline)
============================================================*/
.frame-page form#push_form > .col-sm-12[style*="background-color:#eee"] {
	background: #fafafa !important;
	border: 1px solid #ececec !important;
	border-top: none !important;
	border-radius: 0 0 8px 8px !important;
	padding: 14px 18px !important;
	margin: 0 0 12px !important;
}
.frame-page form#push_form > .col-sm-12[style*="background-color:#eee"] > .col-sm-12 {
	padding: 0;
}
.frame-page .fwb{
	margin-bottom: 10px;
	font-size: 16px;
}

/*============================================================
  總價列 (覆蓋 inline style="color:#f00;font-weight:bold;")
============================================================*/
.frame-page .col-sm-12[style*="color:#f00"] {
	display: flex !important;
	align-items: center;
	padding: 14px 0 12px !important;
	margin-top: 10px !important;
	border-top: 1px solid #ebebeb;
	color: #ff0000 !important;
	font-size: 15px;
	font-weight: 700 !important;
	letter-spacing: 1px;
}
.frame-page #total_price {
	background-color: transparent !important;
	border: 0 !important;
	color:#ff0000 !important;
	font-weight: 800 !important;
	font-size: 22px !important;
	padding: 0 4px !important;
	width: auto;
	min-width: 60px;
	letter-spacing: 0;
}

/*============================================================
  預約日期 / 門市選擇
============================================================*/
.frame-page .col-sm-12[style="margin-top:10px;"] {
	padding: 8px 0 !important;
	margin-top: 6px !important;
	font-size: 14px;
	color: #444;
}
.frame-page .Wdate {
	margin-left: 6px;
	padding: 7px 12px !important;
	border: 1px solid #d7d7d7 !important;
	border-radius: 6px !important;
	background: #fff !important;
	min-width: 180px;
	font-size: 14px;
	height: auto;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.frame-page .Wdate:focus {
	outline: none;
	border-color: #337ab7 !important;
	box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
}

.frame-page .col-sm-12[style="margin:5px 0;"] {
	padding: 8px 0 !important;
	margin: 4px 0 !important;
	font-size: 14px;
	color: #444;
}
.frame-page #reservation_store {
	color: #d0021b !important;
	font-weight: 700 !important;
	margin: 0 6px;
}
.frame-page a.btn.btn-primary.iframe99 {
	padding: 6px 14px !important;
	font-size: 13px;
	border-radius: 6px !important;
	letter-spacing: 1px;
	background: #337ab7;
	border-color: #2a6496;
}

/*============================================================
  加入購物車按鈕
============================================================*/
.frame-page button#send.btn-primary {
	min-width: 200px;
	padding: 12px 28px !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	letter-spacing: 4px;
	background: linear-gradient(180deg, #4a8ecf 0%, #337ab7 100%);
	border: 0px;
	box-shadow: 0 3px 10px rgba(51, 122, 183, 0.3);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
	margin-top: 10px !important;
}
.frame-page button#send.btn-primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 5px 14px rgba(51, 122, 183, 0.4);
	filter: brightness(1.05);
}
.frame-page button#send.btn-primary:disabled {
	opacity: .45;
	cursor: not-allowed;
	box-shadow: none;
}

/* 狀態訊息列 */
.frame-page #info_status {
	margin: 10px 0 0 !important;
	padding: 0 !important;
	font-size: 13px;
	color: #666;
}

/*============================================================
  底部輪播 (步驟 1 時)
============================================================*/
.frame-page #myCarousel {
	margin-top: 14px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}
.frame-page .carousel-indicators li {
	background: rgba(255, 255, 255, 0.6);
	border-color: #fff;
}
.frame-page .carousel-indicators .active {
	background: #fff;
}

/*============================================================
  slick 圖案縮圖 hover 效果
============================================================*/
.frame-page .variable .slick-slide {
	padding: 4px;
}
.frame-page .variable .slick-slide a img {
	border: 1px solid transparent;
	border-radius: 6px;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.frame-page .variable .slick-slide a:hover img {
	border-color: #b5b5b5;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/*============================================================
  手機版底部注意事項
============================================================*/
.frame-page .col-sm-12.visible-xs[style*="padding:10px 0 10px 15px"] {
	background: #fafafa !important;
	border: 1px solid #eeeeee !important;
	border-radius: 8px !important;
	padding: 14px 18px !important;
	margin: 0 0 15px 0 !important;
	font-size: 13px;
	line-height: 1.75;
	color: #555;
}
.frame-page .col-sm-12.visible-xs > .col-sm-12 {
	padding: 0;
}

/*============================================================
  RWD
============================================================*/
@media (max-width: 767px) {
	.frame-page .abgne_tab {
		margin: 12px 0 16px;
	}
	.frame-page ul.tabs {
		gap: 6px;
		width: 100%;
	}
	.frame-page ul.tabs li {
		min-height: 55px;
		padding: 0 8px 0 10px;
	}
	.frame-page ul.tabs li::before {
		width: 28px;
		height: 28px;
		font-size: 13px;
		margin-right: 8px;
	}
	.frame-page ul.tabs li button.button_transparent {
		font-size: 13px;
		padding: 0px 4px 0px 0;
		letter-spacing: 0;
	}
	.frame-page ul.tabs li button.button_transparent::before {
		font-size: 10px;
		letter-spacing: 2px;
		margin-bottom: 3px;
	}
	.frame-page button#send.btn-primary {
		min-width: 0;
		width: 100%;
		letter-spacing: 3px;
	}
	.frame-page #total_price {
		font-size: 18px !important;
	}
	.frame-page .Wdate {
		min-width: 140px;
	}
}

/*============================================================
  以下為原有 DIY 元件樣式（未使用於本頁，保留不動）
============================================================*/
.hovertreecontainer {
	width: 360px;
	margin: 40px auto 0 auto;
	position: relative;
	font-family: 微軟正黑體;
	font-size: 12px;
}
.hovertreecontainer p {
	line-height: 12px;
	line-height: 0px;
	height: 0px;
	margin: 10px;
	color: #bbb
}
.action {
	width: 360px;
	height: 30px;
}
.cropped {
}
.imageBox {
	position: relative;
	height: 360px;
	width: 360px;
	border: 1px solid #aaa;
	background: #fff;
	overflow: hidden;
	background-repeat: no-repeat;
	cursor: move;
}
.imageBox .thumbBox {
	position: absolute;
	top: 30%;
	left: 30%;
	width: 360px;
	height: 360px;
	margin-top: -100px;
	margin-left: -100px;
	box-sizing: border-box;
	background: none repeat scroll 0% 0% transparent;
}
.imageBox .spinner {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	text-align: center;
	line-height: 400px;
	background: rgba(0,0,0,0.7);
}
.Btnsty_peyton {
	float: right;
	width: 50px;
	display: inline-block;
	height: 30px;
	font-size: 15px;
	color: #FFFFFF;
	margin: 0px 2px;
	background-color: #0066FF;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0px 0px 5px #B0B0B0;
	border: 0px #fff solid;
}
.new-contentarea {
	width: 165px;
	overflow: hidden;
	margin: 0 auto;
	position: relative;
	float: left;
}
.new-contentarea label {
	width: 100%;
	height: 100%;
	display: block;
	margin-top: 5px;
}
.new-contentarea input[type=file] {
	width: 188px;
	height: 30px;
	background: #333;
	margin: 0 auto;
	position: absolute;
	right: 50%;
	margin-right: -94px;
	top: 0;
	right/*\**/:0px\9;
	margin-right/*\**/:0px\9;
	width/*\**/:10px\9;
	opacity: 0;
	filter: alpha(opacity=0);
	z-index: 2;
}
a.upload-img {
	width: 90px;
	display: inline-block;
	height: 32px;
	font-size: 15px;
	color: #FFFFFF;
	background-color: #0066FF;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	border: 0px #fff solid;
	box-shadow: 0px 0px 5px #B0B0B0;
}
a.upload-img:hover {
	background-color: #ec7e70;
}

.tc { text-align: center; }
