/* ===== 購物站共用樣式（購物車／填寫訂單／商城／商品頁） ===== */
.cart_step ul {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	justify-content: center;
	gap: 16px;
}
.cart_step li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 22px 8px 10px;
	border-radius: 50px;
	background: #fff;
	border: 1px solid #eef2f7;
	color: #666e82;
}
.cart_step li span {
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	border-radius: 50%;
	background: #dce8f4;
	color: #fff;
	font-weight: 900;
}
.cart_step li p { margin: 0; font-weight: 700; }
.cart_step li.active {
	border-color: #1C90D1;
	background: #e8f4fd;
	color: #2f3d62;
}
.cart_step li.active span { background: #1C90D1; }

.cart_table {
	border: 1px solid #eef2f7;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
}
.cart_table .table_row {
	display: grid;
	grid-template-columns: 90px 1fr 190px 110px 110px 70px;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #eef2f7;
}
.cart_table .table_row:last-child { border-bottom: 0; }
.cart_table .table_row.th {
	background: #f3f8fe;
	font-weight: 900;
	color: #2f3d62;
}
.cart_table .table_row.th .cell.th:first-child { grid-column: 1 / 3; }
.cart_table .table_row.th .cell.name { display: none; }
.cart_table .cell { min-width: 0; text-align: center; color: #2f3d62; }
.cart_table .cell.name { text-align: left; font-weight: 700; word-break: break-all; }
.cart_table .cell.img img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	background: #f3f8fe;
}
.cart_table .cell.th:first-child { text-align: left; }
.cart_table .table_row .cell.data:nth-child(5) { font-weight: 900; color: #fc9014; }

.cart_table .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #dce8f4;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.cart_table .quantity .less,
.cart_table .quantity .plus {
	width: 36px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
	user-select: none;
	color: #1C90D1;
	font-weight: 900;
	background: #f3f8fe;
	transition: all .3s;
}
.cart_table .quantity .less:hover,
.cart_table .quantity .plus:hover { background: #1C90D1; color: #fff; }
.cart_table .quantity input.number {
	display: block;
	width: 64px;
	height: 38px;
	min-height: 38px;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #2f3d62;
	font-weight: 700;
	line-height: 38px;
	text-align: center;
	box-shadow: none;
}
.cart_table .flex_820 { text-align: center; }
.cart_table .flex_820 .text-danger { display: block; font-size: 12px; margin-top: 4px; }
.cart_table a.text-danger { font-size: 18px; }

.cart_area .total {
	margin-bottom: 40px;
	padding: 24px 28px;
	border-radius: 12px;
	background: #f3f8fe;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cart_area .total:last-child { margin-bottom: 0; }
.cart_area .total .cart_msg p { margin: 0; color: #666e82; line-height: 1.8; }
.cart_area .total ul { list-style: none; padding: 0; margin: 0; min-width: 260px; }
.cart_area .total ul li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	color: #2f3d62;
}
.cart_area .total ul li:last-child {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid #dce8f4;
	font-size: 20px;
	font-weight: 900;
}
.cart_area .total ul li:last-child span { color: #fc9014; }

.pos-cart-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.pos-cart-btns a {
	display: inline-block;
	padding: 14px 40px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	transition: all .3s;
}
.pos-cart-btns .btn-back { color: #2f3d62 !important; background: #fff; border: 2px solid #dce8f4; }
.pos-cart-btns .btn-back:hover { border-color: #1C90D1; color: #1C90D1 !important; }
.pos-cart-btns .btn-next {
	color: #fff !important;
	background: linear-gradient(135deg, #e5ae09 0%, #ffc107 50%, #fc9014 100%);
	box-shadow: 0 8px 24px rgba(252,144,20,.4);
}
.pos-cart-btns .btn-next:hover { transform: translateY(-2px); opacity: .92; }

@media (max-width: 992px) {
	.cart_table .table_row.th { display: none; }
	.cart_table .table_row {
		grid-template-columns: 90px 1fr;
		gap: 10px 14px;
	}
	.cart_table .cell { text-align: left; }
	.cart_table .cell.name { align-self: center; }
	.cart_table .cell.data {
		grid-column: 1 / 3;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.cart_table .cell.data::before {
		content: attr(data-th);
		font-weight: 700;
		color: #666e82;
	}
	.cart_area .total { flex-direction: column; align-items: stretch; }
	.cart_area .total ul { min-width: 0; }
}
@media (max-width: 576px) {
	.cart_step ul { gap: 8px; }
	.cart_step li { padding: 6px 12px 6px 6px; font-size: 13px; }
	.pos-cart-btns a { flex: 1; text-align: center; padding: 14px 20px; }
}

/* ===== 填寫訂單 ===== */
.pos-cart-form .card_tit {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 36px 0 16px;
	font-size: 22px;
	font-weight: 900;
	color: #2f3d62;
}
.pos-cart-form .card_tit::before {
	content: '';
	flex: 0 0 6px;
	height: 24px;
	border-radius: 3px;
	background: linear-gradient(180deg, #1C90D1, #009BE7);
}
.pos-cart-form .card {
	border: 1px solid #eef2f7;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,.05);
	overflow: hidden;
}
.pos-cart-form .card-footer {
	background: #f3f8fe;
	border-top: 1px solid #eef2f7;
}
.pos-cart-form .card-footer .card_tit { margin-top: 0; font-size: 17px; }
.pos-cart-form .card-footer p { margin: 0; color: #666e82; line-height: 1.8; }
.pos-cart-form .form-group { margin-bottom: 18px; }
.pos-cart-form .form-group:last-child { margin-bottom: 0; }
.pos-cart-form .col-form-label { font-weight: 700; color: #2f3d62; }
.pos-cart-form .form-control {
	border: 1px solid #dce8f4;
	border-radius: 8px;
	min-height: 44px;
	color: #2f3d62;
}
.pos-cart-form .form-control:focus {
	border-color: #1C90D1;
	box-shadow: 0 0 0 3px rgba(28,144,209,.15);
}
.pos-cart-form textarea.form-control { min-height: 110px; }
.pos-cart-form .md-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	width: 100%;
	border: 1px solid #dce8f4;
	border-radius: 10px;
	transition: all .3s;
}
.pos-cart-form .md-radio:hover,
.pos-cart-form .md-radio:has(input:checked) { border-color: #1C90D1; background: #e8f4fd; }
.pos-cart-form .md-radio input { margin: 0; width: 18px; height: 18px; accent-color: #1C90D1; }
.pos-cart-form .md-radio label { margin: 0; font-weight: 700; color: #2f3d62; cursor: pointer; }
.pos-cart-form .flex-column.md-radio { flex-wrap: wrap; }
.pos-cart-form .flex-column.md-radio p { flex-basis: 100%; margin: 0 0 0 28px; }
.pos-cart-form .form-group.row > .md-radio { margin: 0 15px; width: auto; flex: 1; }
.pos-cart-btns button {
	display: inline-block;
	padding: 14px 48px;
	border: 0;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, #e5ae09 0%, #ffc107 50%, #fc9014 100%);
	box-shadow: 0 8px 24px rgba(252,144,20,.4);
	transition: all .3s;
}
.pos-cart-btns button:hover { transform: translateY(-2px); opacity: .92; }
@media (max-width: 992px) {
	.cart_table .table_row { grid-template-columns: 90px 1fr; }
}

/* ===== 購物商城 分類頁 ===== */
.pos-shop-group { margin-bottom: 56px; }
.pos-shop-group:last-of-type { margin-bottom: 32px; }
.pos-shop-group-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	font-size: 26px;
	font-weight: 900;
	color: #2f3d62;
}
.pos-shop-group-title::before {
	content: '';
	flex: 0 0 6px;
	height: 28px;
	border-radius: 3px;
	background: linear-gradient(180deg, #1C90D1, #009BE7);
}
.pos-shop-group-title em {
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	color: #1C90D1;
	background: #e8f4fd;
	padding: 4px 14px;
	border-radius: 50px;
}
.pos-shop-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.pos-shop-grid li { min-width: 0; }
.pos-shop-grid a {
	display: block;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	text-decoration: none;
	border: 1px solid #eef2f7;
	box-shadow: 0 8px 30px rgba(0,0,0,.05);
	transition: all .3s;
}
.pos-shop-grid a:hover {
	transform: translateY(-4px);
	border-color: #1C90D1;
	box-shadow: 0 12px 36px rgba(28,144,209,.15);
}
.pos-shop-grid .pd_img {
	border-radius: 8px;
	overflow: hidden;
	background: #f3f8fe;
	margin-bottom: 14px;
}
.pos-shop-grid .pd_img img { width: 100%; display: block; }
.pos-shop-grid h2 {
	font-size: 16px;
	font-weight: 900;
	line-height: 1.5;
	color: #2f3d62;
	margin: 0 0 8px;
	word-break: break-all;
}
.pos-shop-grid .price {
	font-size: 20px;
	font-weight: 900;
	color: #fc9014;
	margin: 0;
}
.pos-shop-cart { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.pos-shop-cart a.btn-order {
	color: #2f3d62 !important;
	background: #fff;
	border: 2px solid #dce8f4;
	box-shadow: none;
}
.pos-shop-cart a.btn-order:hover { border-color: #1C90D1; color: #1C90D1 !important; opacity: 1; }
.pos-shop-cart a {
	display: inline-block;
	padding: 14px 40px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	color: #fff !important;
	background: linear-gradient(135deg, #e5ae09 0%, #ffc107 50%, #fc9014 100%);
	box-shadow: 0 8px 24px rgba(252,144,20,.4);
	transition: all .3s;
}
.pos-shop-cart a:hover { transform: translateY(-2px); opacity: .92; }
@media (max-width: 1200px) {
	.pos-shop-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
	.pos-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
	.pos-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.pos-shop-group-title { font-size: 22px; }
}

/* ===== 商品頁 ===== */
.pos-pd {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	max-width: 960px;
	margin: 0 auto;
}
.pos-pd-img {
	flex: 0 0 380px;
	max-width: 45%;
	padding: 12px;
	border-radius: 16px;
	background: #f3f8fe;
	box-shadow: 0 8px 30px rgba(0,0,0,.06);
}
.pos-pd-img img { width: 100%; display: block; border-radius: 10px; cursor: zoom-in; }
.pos-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(26,39,68,.88);
	cursor: zoom-out;
}
.pos-lightbox.show { display: flex; }
.pos-lightbox img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.pos-lightbox .close {
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 36px;
	line-height: 1;
	color: #fff;
}
.pos-pd-info { flex: 1; min-width: 0; }
.pos-pd-info h2 {
	font-size: 30px;
	font-weight: 900;
	line-height: 1.4;
	color: #2f3d62;
	margin: 0 0 16px;
	word-break: break-all;
}
.pos-pd-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 36px;
	font-weight: 900;
	color: #fc9014;
	line-height: 1.2;
	margin: 0 0 28px;
}
.pos-pd-price .sale_tag {
	font-size: 13px;
	font-weight: 700;
	color: #1C90D1;
	background: #e8f4fd;
	padding: 4px 14px;
	border-radius: 50px;
}
.pos-pd-price .del_tag {
	font-size: 15px;
	font-weight: 400;
	color: #666e82;
	text-decoration: line-through;
}
.pos-pd-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.pos-pd-btns a {
	display: inline-block;
	padding: 14px 40px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all .3s;
}
.pos-pd-btns .btn-cart {
	color: #fff !important;
	background: linear-gradient(135deg, #e5ae09 0%, #ffc107 50%, #fc9014 100%);
	box-shadow: 0 8px 24px rgba(252,144,20,.4);
}
.pos-pd-btns .btn-cart:hover { transform: translateY(-2px); opacity: .92; }
.pos-pd-btns .btn-back {
	color: #2f3d62 !important;
	background: #fff;
	border: 2px solid #dce8f4;
}
.pos-pd-btns .btn-back:hover { border-color: #1C90D1; color: #1C90D1 !important; }
.pos-pd-desc {
	max-width: 960px;
	margin: 48px auto 0;
	padding: 28px 32px;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.pos-pd-desc h4 {
	font-size: 20px;
	font-weight: 900;
	color: #2f3d62;
	margin: 0 0 14px;
	padding-left: 14px;
	border-left: 6px solid #1C90D1;
}
.pos-pd-desc p {
	font-size: 15px;
	color: #666e82;
	line-height: 1.8;
	margin: 0;
}
@media (max-width: 768px) {
	.pos-pd { flex-direction: column; align-items: stretch; gap: 28px; }
	.pos-pd-img { flex: none; max-width: 100%; }
	.pos-pd-info h2 { font-size: 24px; }
	.pos-pd-price { font-size: 30px; }
	.pos-pd-btns a { flex: 1; text-align: center; padding: 14px 20px; }
	.pos-pd-desc { padding: 22px 20px; }
}

/* ===== 填寫訂單：發票種類 ===== */
.pos-inv-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pos-inv-tab {
	flex: 1;
	min-width: 220px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #dce8f4;
	border-radius: 10px;
	font-weight: 700;
	color: #2f3d62;
	cursor: pointer;
	transition: all .3s;
}
.pos-inv-tab input { margin: 0; width: 18px; height: 18px; accent-color: #1C90D1; }
.pos-inv-tab:hover,
.pos-inv-tab.active { border-color: #1C90D1; background: #e8f4fd; }

/* ===== 訂購成功 ===== */
.pos-success { text-align: center; margin: 8px 0 32px; }
.pos-success .icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: #1C90D1;
	background: linear-gradient(135deg, #e8f4fd, #d0ebfa);
}
.pos-success h2 { font-size: 26px; font-weight: 900; color: #2f3d62; margin: 0 0 8px; }
.pos-success p { margin: 0; color: #666e82; }
.pos-cart-form .card-footer ul { margin: 0; padding-left: 20px; color: #666e82; line-height: 1.9; }
.pos-cart-form .card-body p { margin: 0; line-height: 1.8; }

/* ===== 訂單紀錄／訂單明細 ===== */
.pos-order-note { margin: 0 0 20px; color: #666e82; line-height: 1.8; }
.pos-order-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pos-order-table th {
	padding: 14px 16px;
	background: #f3f8fe;
	color: #2f3d62;
	font-weight: 900;
	border: 0;
	white-space: nowrap;
}
.pos-order-table td {
	padding: 16px;
	color: #2f3d62;
	vertical-align: middle;
	border-top: 1px solid #eef2f7;
}
.pos-order-table tbody tr:hover td { background: #f8fbff; }
.pos-order-table td:nth-child(5) { font-weight: 900; color: #fc9014; }
.pos-order-table.detail td:nth-child(5),
.pos-order-table.detail td:nth-child(4) { font-weight: 900; color: #fc9014; }
.pos-order-table .btn {
	display: inline-block;
	margin: 2px 0;
	padding: 6px 16px;
	border-radius: 8px;
	font-weight: 700;
}
.pos-order-empty { padding: 48px 16px; text-align: center; color: #666e82; }
.pos-order-total { text-align: right; line-height: 2; color: #2f3d62; }
.pos-order-total b { font-size: 20px; color: #fc9014; }
@media (max-width: 992px) {
	.pos-order-table thead { display: none; }
	.pos-order-table, .pos-order-table tbody, .pos-order-table tr, .pos-order-table td { display: block; width: 100%; }
	.pos-order-table tr { padding: 12px 8px; border-top: 1px solid #eef2f7; }
	.pos-order-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		padding: 8px 12px;
		border: 0;
		text-align: right !important;
	}
	.pos-order-table td::before {
		content: attr(data-th);
		flex: 0 0 auto;
		font-weight: 700;
		color: #666e82;
		text-align: left;
	}
}

/* ===== 訂單取消 ===== */
.pos-cancel { max-width: 760px; margin: 0 auto; }
.pos-cancel-text {
	margin: 0 0 8px;
	padding: 18px 22px;
	border-radius: 12px;
	background: #f3f8fe;
	color: #2f3d62;
	line-height: 1.8;
}
.pos-cancel .pos-success { margin-bottom: 20px; }
.pos-cancel .pos-cart-form .card_tit:first-of-type { margin-top: 24px; }

/* ===== 會員中心 ===== */
.pos-member-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	max-width: 760px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.pos-member-grid a {
	display: block;
	height: 100%;
	padding: 32px 24px;
	text-align: center;
	text-decoration: none;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,.05);
	transition: all .3s;
}
.pos-member-grid a:hover {
	transform: translateY(-4px);
	border-color: #1C90D1;
	box-shadow: 0 12px 36px rgba(28,144,209,.15);
}
.pos-member-grid .icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #1C90D1;
	background: linear-gradient(135deg, #e8f4fd, #d0ebfa);
}
.pos-member-grid h3 { margin: 0 0 8px; font-size: 20px; font-weight: 900; color: #2f3d62; }
.pos-member-grid p { margin: 0; color: #666e82; line-height: 1.7; }
@media (max-width: 576px) {
	.pos-member-grid { grid-template-columns: 1fr; }
}

/* ===== 登入：LINE 按鈕 ===== */
.pos-cart-btns a.btn-line {
	color: #fff !important;
	background: #06C755;
	box-shadow: 0 8px 24px rgba(6,199,85,.3);
}
.pos-cart-btns a.btn-line:hover { background: #05b34c; transform: translateY(-2px); }

/* ===== 簡訊驗證碼 ===== */
.pos-vcode { display: flex; align-items: center; gap: 12px; }
.pos-vcode .form-control { flex: 1; min-width: 0; }
.pos-vcode-btn {
	flex-shrink: 0;
	padding: 10px 18px;
	border: 1px solid #1C90D1;
	border-radius: 8px;
	background: #fff;
	color: #1C90D1;
	font-weight: 700;
	cursor: pointer;
	transition: all .3s;
}
.pos-vcode-btn:hover { background: #1C90D1; color: #fff; }
.pos-vcode .reciprocal { flex-shrink: 0; min-width: 28px; text-align: center; font-weight: 900; color: #fc9014; }
@media (max-width: 576px) {
	.pos-vcode { flex-wrap: wrap; }
}

/* ===== 會員資料 ===== */
.pos-member-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #2f3d62; }
.pos-member-line img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pos-badge {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 12px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
}
.pos-badge.ok { color: #1a8f4a; background: #e3f6ec; }
.pos-badge.no { color: #d9534f; background: #fdeceb; }
.pos-member-link { margin-left: 14px; font-weight: 700; color: #1C90D1; }

/* ===== 會員資料驗證步驟 ===== */
.pos-verify-steps { list-style: none; margin: 24px 0 0; padding: 0; }
.pos-verify-steps li {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,.05);
}
.pos-verify-steps li.done { background: #f6fcf9; border-color: #cfeedd; }
.pos-verify-steps .num {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;
	border-radius: 50%;
	background: #1C90D1;
	color: #fff;
	font-weight: 900;
}
.pos-verify-steps li.done .num { background: #1a8f4a; }
.pos-verify-steps .text { flex: 1; min-width: 0; }
.pos-verify-steps h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; color: #2f3d62; }
.pos-verify-steps p { margin: 0; color: #666e82; }
.pos-verify-steps .pos-badge { margin-left: 0; flex-shrink: 0; }
