@charset "UTF-8";
/* 購物車、填寫資料、訂單確認、訂單搜尋（深色卡片＋沙色主按鈕；色票定義在 style.css :root） */

/* ===== 步驟 ===== */
.checkout-nav {
	display: flex;
	justify-content: center;
	margin: 0 auto 48px;
	max-width: 640px;
}
.checkout-nav .step {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	letter-spacing: .14em;
	color: var(--subtle);
}
.checkout-nav .step .badge {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: var(--bg);
	color: var(--muted);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
}
/* 步驟間的連接線 */
.checkout-nav .step::before {
	content: "";
	position: absolute;
	top: 20px;
	left: -50%;
	width: 100%;
	height: 1px;
	background: var(--line-2);
}
.checkout-nav .step:first-child::before { display: none; }
.checkout-nav .step.visited,
.checkout-nav .step.active { color: var(--text); }
.checkout-nav .step.visited::before,
.checkout-nav .step.active::before { background: var(--gold); }
.checkout-nav .step.visited .badge {
	border-color: var(--gold);
	color: var(--gold-2);
}
.checkout-nav .step.active .badge {
	border-color: var(--sand);
	background: var(--sand);
	color: var(--ink-text);
}

/* ===== 卡片 ===== */
.shopping-cart,
.cart_order_form_box,
.cart_header_pice_s2_box {
	margin-bottom: 24px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--card);
}
.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.section-header h3 {
	font-size: 20px;
	letter-spacing: .12em;
}
.section-header-s2 { margin-top: 32px; }
.table-cart-header {
	margin: 0;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	letter-spacing: .2em;
	color: var(--gold);
}
.cart-item {
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.item-information {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}
.item-information > a:not(.product-image) {
	flex: 1;
	min-width: 0;
	font-family: var(--serif);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .08em;
}
.item-information .form_remark { flex-basis: 100%; padding-left: 88px; margin-top: -24px; }
.cart-items .product-image {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: var(--r);
	background-color: var(--well);
	background-size: cover;
	background-position: center;
	background-blend-mode: multiply;
}
.item-price {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 15px;
}
.price-label { color: var(--gold-2); }
.btn-remove-cart-item { text-align: right; }
.btn-remove-cart-item a {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	color: var(--muted);
}
.btn-remove-cart-item a:hover { border-color: var(--terracotta); color: #e39a86; }
.shopping-cart .btn_group_product { display: inline-flex; height: 44px; }

/* ===== 訂單摘要／表單 ===== */
.cart_order_form_box .cart_order_form { margin: 0; }
.cart_order_pice_data {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0;
	font-size: 15px;
}
.cart_order_pice_data .title { color: var(--muted); font-weight: 400; }
.cart_order_pice_data b { font-size: 18px; font-weight: 600; }
.cart_order_pice_data b.text { color: var(--gold-2); }
.cart_order_hr {
	height: 0;
	margin: 16px 0;
	border: 0;
	background: none;
	border-top: 1px solid var(--line);
	opacity: 1;
}
.cart_order_form_checkout,
.cart_continue_btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	border-radius: 999px;
	font-weight: 500;
	letter-spacing: .2em;
}
.cart_order_form_checkout {
	margin-top: 24px;
	background: var(--sand);
	color: var(--ink-text);
}
.cart_order_form_checkout:hover { background: var(--gold-2); color: var(--ink); }
.cart_continue_btn {
	margin-top: 12px;
	border: 1px solid var(--line-2);
	color: var(--text);
}
.cart_continue_btn:hover { border-color: var(--gold); color: var(--gold-2); }
.cart_order_form_box .form-label { margin-top: 4px; }
.cart_order_form_box .form_remark { margin-top: 10px; line-height: 1.8; }
.cart_order_form img { height: 46px; margin-left: 10px; border-radius: var(--r-sm); }
.order_search_box { max-width: 960px; margin: 0 auto 32px; }
.order_search_box .cart_order_form_checkout { max-width: 240px; margin: 8px 0 0; }

.cart_order_notice {
	padding: 48px 24px;
	border: 1px dashed var(--line-2);
	border-radius: var(--r-lg);
	color: var(--muted);
	line-height: 2;
}
.cart_order_notice a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* ===== 訂單確認 ===== */
.cart_number_code {
	margin-bottom: 14px;
	font-family: var(--serif);
	font-size: 20px;
	letter-spacing: .1em;
	color: var(--text);
}
.cart_s3_order_data_row + .cart_s3_order_data_row {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}
.cart_s3_order_title {
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .24em;
	color: var(--gold);
}
.cart_s3_order_text {
	display: flex;
	gap: 16px;
	padding: 4px 0;
	font-size: 15px;
}
.cart_s3_order_text .text1 { flex: none; width: 120px; color: var(--muted); }
.cart_s3_order_text .text2 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#order_result { max-width: 960px; margin: 0 auto; }

@media (max-width: 767px) {
	.checkout-nav { margin-bottom: 32px; }
	.checkout-nav .step { font-size: 13px; letter-spacing: .06em; }
	.shopping-cart,
	.cart_order_form_box,
	.cart_header_pice_s2_box { padding: 20px 16px; }
	.table-cart-header { display: none; }
	.cart-item { position: relative; row-gap: 12px; }
	.item-price { align-items: flex-start; flex-direction: row; gap: 10px; padding-left: 88px; }
	.btn-remove-cart-item { position: absolute; top: 18px; right: 0; width: auto; }
	.item-information { padding-right: 44px; }
	.cart-item > .col-sm-3 { padding-left: 100px; }
	.cart-item > .col-sm-2.text-center,
	.cart-item > .col-sm-2.text-end { width: 50%; text-align: left !important; padding-left: 100px; }
	.cart-item > .col-sm-2.text-end { padding-left: 12px; text-align: right !important; }
	.cart_s3_order_text .text1 { width: 96px; }
}
