@charset "UTF-8";
/* 頁首、下拉選單、手機選單（色票定義在 style.css :root） */
.site_header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(21, 21, 19, .96);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	backdrop-filter: saturate(140%) blur(8px);
}
.site_header_inner {
	max-width: 1440px;
	height: 76px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.logo {
	flex: none;
	display: block;
	height: 52px;
}
.logo img {
	display: block;
	width: auto;
	height: 100%;
}

/* 主選單 */
.main_nav {
	flex: 1;
	display: flex;
	justify-content: center;
	height: 100%;
}
.main_nav_ul {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.main_nav_ul > li {
	position: relative;
	display: flex;
	align-items: center;
}
.main_nav_link {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 11px;
	font-size: 14px;
	letter-spacing: .1em;
	color: var(--muted);
	white-space: nowrap;
}
.main_nav_link::after {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	bottom: -1px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transition: transform .25s ease;
}
.main_nav_ul > li:hover > .main_nav_link,
.main_nav_ul > li.active > .main_nav_link { color: var(--text); }
.main_nav_ul > li:hover > .main_nav_link::after,
.main_nav_ul > li.active > .main_nav_link::after { transform: scaleX(1); }

/* 下拉（分類） */
.main_nav_sub {
	position: absolute;
	top: 100%;
	left: 50%;
	min-width: 180px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--ink);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.main_nav_ul > li:hover > .main_nav_sub,
.main_nav_ul > li:focus-within > .main_nav_sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.main_nav_sub ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.main_nav_sub a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--r-sm);
	font-size: 14px;
	letter-spacing: .06em;
	color: var(--muted);
	white-space: nowrap;
}
.main_nav_sub a:hover {
	background: rgba(255, 255, 255, .06);
	color: var(--text);
}

/* 右側：購物車、開始選茶、手機選單鈕 */
.header_tools {
	flex: none;
	display: flex;
	align-items: center;
	gap: 14px;
}
.header_cart {
	position: relative;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 18px;
	color: var(--text);
}
.header_cart:hover { background: rgba(255, 255, 255, .06); }
.header_cart_num {
	position: absolute;
	top: 1px;
	right: -2px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--gold);
	color: var(--ink);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.header_cta {
	padding: 9px 22px;
	border-radius: 999px;
	background: var(--sand);
	color: var(--ink-text);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .14em;
	white-space: nowrap;
}
.header_cta:hover { background: var(--gold-2); color: var(--ink); }

.header_btn {
	display: none;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-2);
	border-radius: 50%;
}
.header_btn .bar,
.header_btn .bar::before,
.header_btn .bar::after {
	display: block;
	width: 18px;
	height: 1.5px;
	border-radius: 1px;
	background: var(--text);
}
.header_btn .bar { position: relative; }
.header_btn .bar::before,
.header_btn .bar::after {
	content: "";
	position: absolute;
	left: 0;
}
.header_btn .bar::before { top: -6px; }
.header_btn .bar::after { top: 6px; }

/* ===== 手機選單 ===== */
.head_down_menu_bg {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, .6);
}
.head_down_menu_box {
	display: none;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 201;
	width: min(86vw, 360px);
	overflow-y: auto;
	border-right: 1px solid var(--line);
	background: var(--ink);
}
.head_down_top_box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
	padding: 0 20px;
	border-bottom: 1px solid var(--line);
}
.head_down_logo { height: 46px; width: auto; }
.colse_btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	font-size: 18px;
	color: var(--text);
}
.head_down_menu_height_box { padding: 12px 20px 32px; }
.m_nav_item { border-bottom: 1px solid var(--line); }
.m_nav_link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 4px;
	font-size: 16px;
	letter-spacing: .12em;
	color: var(--text);
}
.m_nav_item.active > .m_nav_link { color: var(--gold-2); }
.m_nav_link i { font-size: 11px; color: var(--subtle); }
.m_nav_sub {
	margin: -4px 0 12px;
	padding: 0 0 0 14px;
	list-style: none;
	border-left: 1px solid var(--line-2);
}
.m_nav_sub a {
	display: block;
	padding: 6px 0;
	font-size: 14px;
	letter-spacing: .06em;
	color: var(--muted);
}
.head_down_cta { width: 100%; margin-top: 24px; }

@media (max-width: 1279px) {
	.main_nav { display: none; }
	.site_header_inner { justify-content: space-between; }
	.header_btn { display: flex; }
}
@media (max-width: 767px) {
	.site_header_inner { height: 64px; padding: 0 16px; gap: 12px; }
	.logo { height: 42px; }
	.header_tools { gap: 8px; }
	.header_cta { display: none; }
}

/* 語系切換（中文／English／日本語） */
.lang_switch {
	display: flex;
	align-items: center;
	gap: 2px;
}
.lang_link {
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--muted, #9a958c);
	white-space: nowrap;
}
.lang_link:hover { color: var(--text, #fff); }
.lang_link.active {
	background: rgba(255, 255, 255, .08);
	color: var(--gold, #c4a57c);
}
.m_lang_switch {
	justify-content: center;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
@media only screen and (max-width: 1100px) {
	.header_tools .lang_switch { display: none; }
}
