/* ==========================================================================
   電視倉 TVCHEUNG - 共用樣式表
   ========================================================================== */

:root {
	--brand: #ff6a13;
	--brand-d: #e2560a;
	--brand-l: #fff2e8;
	--ink: #1b2233;
	--ink-2: #5b6478;
	--ink-3: #909aad;
	--line: #e8eaef;
	--bg: #f4f5f7;
	--white: #fff;
	--ok: #12a150;
	--danger: #e02020;
	--radius: 12px;
	--radius-s: 8px;
	--shadow: 0 2px 10px rgba(20, 28, 48, .06);
	--shadow-h: 0 12px 28px rgba(20, 28, 48, .14);
	--container: 1240px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans HK",
		"Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.35;
	font-weight: 700;
}

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

input,
select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------------------------------------------------------------- 按鈕 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: .2s;
	background: #eef0f4;
	color: var(--ink);
}

.btn:hover {
	filter: brightness(.96);
}

.btn--primary {
	background: var(--brand);
	color: #fff;
}

.btn--primary:hover {
	background: var(--brand-d);
	filter: none;
}

.btn--dark {
	background: var(--ink);
	color: #fff;
}

.btn--ghost {
	background: #fff;
	border-color: var(--line);
}

.btn--ghost:hover {
	border-color: var(--brand);
	color: var(--brand-d);
}

.btn--sm {
	padding: 7px 14px;
	font-size: 13px;
}

.btn--lg {
	padding: 14px 30px;
	font-size: 16px;
}

.btn--block {
	width: 100%;
}

.btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------- 頂部資訊 */
.topbar {
	background: var(--ink);
	color: #cfd5e2;
	font-size: 13px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 38px;
	flex-wrap: wrap;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.topbar__item svg {
	width: 15px;
	height: 15px;
	fill: var(--brand);
	flex: none;
}

.topbar__spacer {
	flex: 1;
}

.topbar a:hover {
	color: #fff;
}

/* ---------------------------------------------------------------- 主標題列 */
.header {
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.logo__img {
	width: auto;
	height: 56px;
	object-fit: contain;
}

.logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.logo__name {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--ink);
}

.logo__sub {
	font-size: 11px;
	letter-spacing: 3px;
	color: var(--brand);
	text-transform: uppercase;
}

.search {
	flex: 1;
	display: flex;
	max-width: 620px;
	background: var(--bg);
	border: 2px solid var(--bg);
	border-radius: 999px;
	overflow: hidden;
	transition: .2s;
}

.search:focus-within {
	border-color: var(--brand);
	background: #fff;
}

.search__input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 11px 18px;
	outline: none;
	min-width: 0;
}

.search__btn {
	border: 0;
	background: var(--brand);
	color: #fff;
	padding: 0 22px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.search__btn:hover {
	background: var(--brand-d);
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	flex: none;
}

.cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--brand-l);
	color: var(--brand-d);
	font-weight: 600;
}

.cart-btn:hover {
	background: #ffe6d3;
}

.cart-btn svg {
	width: 20px;
	height: 20px;
	fill: var(--brand-d);
}

.cart-badge {
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	font-weight: 700;
}

/* ---------------------------------------------------------------- 主導覽 */
.nav {
	background: #fff;
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
	position: relative;
	z-index: 40;
}

.nav__inner {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nav__item {
	position: relative;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 14px 16px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--ink);
	transition: .2s;
}

.nav__item:hover>.nav__link,
.nav__link.is-active {
	color: var(--brand-d);
}

.nav__link.is-active {
	box-shadow: inset 0 -3px 0 var(--brand);
}

.nav__caret {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	opacity: .6;
}

.menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-h);
	padding: 8px;
	display: none;
}

.nav__item:hover .menu {
	display: block;
}

.menu a {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 14px;
	color: var(--ink-2);
}

.menu a:hover {
	background: var(--brand-l);
	color: var(--brand-d);
}

/* ---------------------------------------------------------------- 頁面標題 */
.page {
	padding: 26px 0 60px;
}

.crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-3);
	margin-bottom: 18px;
}

.crumb a:hover {
	color: var(--brand-d);
}

.crumb__sep {
	opacity: .6;
}

.section {
	margin-bottom: 44px;
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.section__title {
	font-size: 24px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section__title::before {
	content: "";
	width: 5px;
	height: 22px;
	border-radius: 3px;
	background: var(--brand);
}

.section__more {
	font-size: 14px;
	color: var(--ink-2);
}

.section__more:hover {
	color: var(--brand-d);
}

/* ---------------------------------------------------------------- 首頁純圖片輪播 */
.carousel { margin: 20px 0 0; }
.carousel[hidden], .carousel [hidden] { display: none !important; }
.carousel__viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; gap: 16px; will-change: transform; }
.carousel__track.is-animated { transition: transform .45s ease; }
.carousel__slide {
	flex: 0 0 min(48vw, 960px);
	aspect-ratio: 16 / 7;
	padding: 0;
	border: 0;
	border-radius: 4px;
	overflow: hidden;
	background: #f0f2f4;
	opacity: .58;
	transition: opacity .35s;
}
.carousel__slide.is-current { opacity: 1; }
.carousel__slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: 1px solid #ddd;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgb(255 255 255 / 90%);
	color: var(--ink);
	font-size: 30px;
	line-height: 1;
	z-index: 2;
}
.carousel__arrow--prev { left: max(12px, calc(50% - 500px)); }
.carousel__arrow--next { right: max(12px, calc(50% - 500px)); }
/* 箭頭預設隱藏，滑鼠移到輪播圖上或鍵盤聚焦時才淡入；觸控裝置沒有 hover，維持常駐顯示。 */
@media (hover: hover) and (pointer: fine) {
	.carousel__arrow { opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
	.carousel__arrow--prev { transform: translateY(-50%) translateX(-8px); }
	.carousel__arrow--next { transform: translateY(-50%) translateX(8px); }
	.carousel:hover .carousel__arrow,
	.carousel:focus-within .carousel__arrow { opacity: 1; pointer-events: auto; transform: translateY(-50%); }
}
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px; }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.carousel__dots button { width: 9px; height: 9px; border: 0; border-radius: 10px; padding: 0; background: #ddd; }
.carousel__dots button[aria-current="true"] { width: 28px; background: var(--brand); }
.carousel button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
@media (max-width: 768px) {
	.carousel__slide { flex-basis: 84vw; }
	.carousel__track { gap: 10px; }
	.carousel__arrow { width: 32px; height: 32px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.carousel__track.is-animated, .carousel__slide { transition: none; }
}

/* ---------------------------------------------------------------- 首頁橫幅 */
.hero {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: radial-gradient(circle at 78% 28%, #2b3d5e 0%, #101a2c 62%);
	min-height: 320px;
	display: flex;
	align-items: center;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 15, 28, .92) 0%, rgba(9, 15, 28, .55) 55%, rgba(9, 15, 28, .1) 100%);
}

.hero__content {
	position: relative;
	padding: 56px 48px;
	max-width: 640px;
	color: #fff;
}

.hero__tag {
	display: inline-block;
	background: var(--brand);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
	letter-spacing: 1px;
}

.hero__title {
	font-size: 40px;
	line-height: 1.25;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.hero__title em {
	font-style: normal;
	color: var(--brand);
}

.hero__desc {
	margin: 14px 0 26px;
	color: #dbe1ee;
	font-size: 15px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hero__stats {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

.hero__stat {
	flex: 1 1 180px;
	background: #fff;
	border-radius: var(--radius);
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	box-shadow: var(--shadow);
	transition: .22s;
}

.hero__stat:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-h);
}

.hero__stat:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}

.hero__stat svg {
	width: 30px;
	height: 30px;
	fill: var(--brand);
	flex: none;
}

.hero__stat-ico {
	display: flex;
	flex: none;
	width: 30px;
	height: 30px;
}

.hero__stat b {
	display: block;
	font-size: 15px;
}

.hero__stat span {
	font-size: 13px;
	color: var(--ink-2);
}

.hero-wrap {
	display: grid;
	gap: 18px;
}

/* ---------------------------------------------------------------- 分類磚 */
.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.tile {
	background: #fff;
	border-radius: var(--radius);
	padding: 22px 20px;
	box-shadow: var(--shadow);
	transition: .22s;
	border: 1px solid transparent;
}

.tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-h);
	border-color: #ffe0c9;
}

.tile__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--brand-l);
	color: var(--brand-d);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.tile__icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.tile__title {
	font-size: 16px;
	margin-bottom: 4px;
}

.tile__desc {
	font-size: 13px;
	color: var(--ink-2);
}

/* ---------------------------------------------------------------- 品牌磚 */
.brands {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
}

.brand-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 16px;
	text-align: center;
	transition: .22s;
}

.brand-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-h);
	border-color: #ffd8bd;
}

.brand-card__logo {
	height: 48px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-card__logo[hidden] {
	display: none;
}

.brand-card__logo img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

.brand-card__name {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .5px;
}

.brand-card__desc {
	font-size: 13px;
	color: var(--ink-2);
	margin-top: 4px;
}

/* ---------------------------------------------------------------- 商品卡 */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 18px;
}

.card {
	background: #fff;
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	transition: .22s;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-h);
	border-color: #ffdcc2;
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #fff;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14px;
	transition: transform .35s;
}

/* 第二張圖疊在第一張之上，滑鼠懸停時淡入切換，兩層同步輕微放大 */
.card__media .card__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .35s, transform .35s;
}

.card:hover .card__media .card__img--hover {
	opacity: 1;
}

.card__media .card__img--hover[hidden] {
	display: none;
}

.card:hover .card__media img {
	transform: scale(1.06);
}

.card__tags {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}

.tag {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ok);
	color: #fff;
	line-height: 1.5;
}

.tag--energy {
	background: #eef1f6;
	color: var(--ink-2);
}

.tag--panel {
	background: var(--brand);
	color: #fff;
}

.card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card__brand {
	font-size: 12px;
	font-weight: 700;
	color: var(--brand-d);
	letter-spacing: .5px;
	margin-bottom: 6px;
}

.card__name {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 4.5em;
}

.card__name a:hover {
	color: var(--brand-d);
}

.card__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.chip {
	font-size: 12px;
	color: var(--ink-2);
	background: var(--bg);
	border-radius: 6px;
	padding: 2px 8px;
}

.card__foot {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.price {
	font-size: 19px;
	font-weight: 800;
	color: var(--danger);
	letter-spacing: .5px;
}

.price--lg {
	font-size: 32px;
}

/* ---------------------------------------------------------------- 篩選側欄 */
.layout {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 24px;
	align-items: start;
}

.filter {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	position: sticky;
	top: 16px;
}

.filter__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.filter__head h3 {
	font-size: 17px;
}

.filter__clear {
	font-size: 13px;
	color: var(--ink-3);
	background: none;
	border: 0;
	padding: 0;
}

.filter__clear:hover {
	color: var(--brand-d);
}

.filter__group {
	border-top: 1px solid var(--line);
	padding: 14px 0;
}

.filter__group:first-of-type {
	border-top: 0;
}

.filter__group h4 {
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--ink);
}

.filter__opt {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 5px 0;
	font-size: 14px;
	color: var(--ink-2);
	cursor: pointer;
}

.filter__opt input {
	width: 16px;
	height: 16px;
	accent-color: var(--brand);
	cursor: pointer;
	flex: none;
}

.filter__opt:hover {
	color: var(--brand-d);
}

.filter__toggle {
	display: none;
}

.listbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.listbar__right {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--ink-2);
	margin-left: auto;
}

.select {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 12px;
	background: #fff;
	outline: none;
	cursor: pointer;
}

.select:focus {
	border-color: var(--brand);
}

.empty {
	background: #fff;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: 60px 20px;
	text-align: center;
	color: var(--ink-2);
}

/* ---------------------------------------------------------------- 商品詳情 */
.detail {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 34px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	margin-bottom: 26px;
}

.gallery__main {
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
}

.gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.gallery__thumb {
	width: 74px;
	height: 74px;
	border: 2px solid var(--line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	padding: 0;
	flex: none;
}

.gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}

.gallery__thumb.is-active {
	border-color: var(--brand);
}

.detail__brand {
	font-size: 13px;
	font-weight: 700;
	color: var(--brand-d);
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.detail__title {
	font-size: 25px;
	line-height: 1.4;
	margin-bottom: 14px;
}

.detail__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.detail__pricebox {
	background: linear-gradient(180deg, #fff7f1 0%, #fff 100%);
	border: 1px solid #ffe2cd;
	border-radius: var(--radius);
	padding: 18px 20px;
	margin-bottom: 20px;
}

.detail__priceline {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.detail__note {
	font-size: 13px;
	color: var(--ink-2);
	margin-top: 8px;
}

.spec-quick {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 20px;
}

.spec-quick__item {
	background: var(--bg);
	border-radius: var(--radius-s);
	padding: 10px 14px;
}

.spec-quick__item span {
	display: block;
	font-size: 12px;
	color: var(--ink-3);
}

.spec-quick__item b {
	font-size: 14.5px;
	font-weight: 600;
}

.buyrow {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}

.qty button {
	width: 40px;
	height: 44px;
	border: 0;
	background: #fff;
	font-size: 18px;
	color: var(--ink-2);
}

.qty button:hover {
	background: var(--bg);
	color: var(--brand-d);
}

.qty input {
	width: 46px;
	height: 44px;
	border: 0;
	text-align: center;
	outline: none;
	font-weight: 600;
}

.detail__services {
	border-top: 1px solid var(--line);
	padding-top: 16px;
	display: grid;
	gap: 8px;
	font-size: 13.5px;
	color: var(--ink-2);
}

.detail__services div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.detail__services svg {
	width: 16px;
	height: 16px;
	fill: var(--ok);
	flex: none;
}

.panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px 26px;
	margin-bottom: 26px;
}

.panel__title {
	font-size: 19px;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.panel__title::before {
	content: "";
	width: 5px;
	height: 18px;
	border-radius: 3px;
	background: var(--brand);
}

.feature-list {
	display: grid;
	gap: 12px;
}

.feature-list li {
	background: var(--bg);
	border-radius: var(--radius-s);
	padding: 13px 16px;
	font-size: 14px;
	color: var(--ink-2);
	line-height: 1.75;
}

.feature-list li b {
	display: block;
	color: var(--ink);
	font-size: 14.5px;
	margin-bottom: 2px;
}

.spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.spec-table th,
.spec-table td {
	text-align: left;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

.spec-table th {
	width: 150px;
	background: var(--bg);
	color: var(--ink-2);
	font-weight: 600;
	white-space: nowrap;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: 0;
}

/* ---------------------------------------------------------------- 購物車 */
.cart-layout {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 22px;
	align-items: start;
}

.cart-list {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.cart-list__head,
.cart-item {
	display: grid;
	grid-template-columns: 1fr 110px 150px 90px;
	gap: 14px;
	align-items: center;
	padding: 16px 20px;
}

.cart-list__head {
	background: var(--bg);
	font-size: 13px;
	color: var(--ink-2);
	font-weight: 600;
	border-bottom: 1px solid var(--line);
}

.cart-item {
	border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
	border-bottom: 0;
}

.cart-item__info {
	display: flex;
	gap: 14px;
	align-items: center;
}

.cart-item__img {
	width: 84px;
	height: 68px;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	overflow: hidden;
	flex: none;
	background: #fff;
}

.cart-item__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
}

.cart-item__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cart-item__name:hover {
	color: var(--brand-d);
}

.cart-item__sub {
	font-size: 12.5px;
	color: var(--ink-3);
	margin-top: 5px;
}

.cart-item__price,
.cart-item__sum {
	font-weight: 700;
	color: var(--danger);
}

.cart-item__del {
	border: 0;
	background: none;
	color: var(--ink-3);
	font-size: 13px;
	padding: 0;
}

.cart-item__del:hover {
	color: var(--danger);
	text-decoration: underline;
}

.summary {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	position: sticky;
	top: 16px;
}

.summary h3 {
	font-size: 18px;
	margin-bottom: 16px;
}

.summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
	color: var(--ink-2);
}

.summary__row b {
	color: var(--ink);
}

.summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px dashed var(--line);
	margin-top: 12px;
	padding-top: 16px;
	margin-bottom: 18px;
}

.summary__total span {
	font-weight: 600;
}

.summary__env {
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--ink-3);
	line-height: 1.7;
}

.summary__msg {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--bg);
	border-radius: var(--radius-s);
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ink-2);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	max-height: 280px;
	overflow-y: auto;
}

/* ---------------------------------------------------------------- 內容頁 */
.rich {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 34px;
}

.rich h2 {
	font-size: 21px;
	margin: 26px 0 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.rich h2:first-child {
	margin-top: 0;
}

.rich h2::before {
	content: "";
	width: 5px;
	height: 18px;
	border-radius: 3px;
	background: var(--brand);
}

.rich p {
	color: var(--ink-2);
	margin: 0 0 12px;
}

.rich ul {
	margin: 0 0 14px;
}

.rich ul li {
	position: relative;
	padding-left: 18px;
	color: var(--ink-2);
	margin-bottom: 7px;
}

.rich ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brand);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
	margin-bottom: 26px;
}

.info-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}

.info-card h4 {
	font-size: 15px;
	margin-bottom: 6px;
}

.info-card p {
	margin: 0;
	font-size: 13.5px;
	color: var(--ink-2);
	word-break: break-word;
}

/* ---------------------------------------------------------------- 地圖 */
.map {
	margin: 18px 0 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
}

.map iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
}

/* ---------------------------------------------------------------- 頁尾 */
.footer {
	background: #141b29;
	color: #9aa5ba;
	margin-top: 40px;
	font-size: 14px;
}

.footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 30px;
	padding: 46px 0 34px;
}

.footer h4 {
	color: #fff;
	font-size: 15px;
	margin-bottom: 14px;
}

.footer a:hover {
	color: var(--brand);
}

.footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.footer__brand img {
	height: 46px;
	width: auto;
	background: #fff;
	border-radius: 8px;
	padding: 4px;
}

.footer__brand b {
	color: #fff;
	font-size: 20px;
	letter-spacing: 2px;
}

.footer__brand span {
	display: block;
	font-size: 11px;
	letter-spacing: 2px;
	color: var(--brand);
}

.footer__links li {
	margin-bottom: 9px;
}

.footer__contact li {
	margin-bottom: 9px;
	display: flex;
	gap: 8px;
}

.footer__ico {
	display: flex;
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 3px;
}

.footer__ico svg {
	width: 16px;
	height: 16px;
	fill: var(--brand);
}

.footer__links li a {
	color: inherit;
}

.footer__bottom {
	border-top: 1px solid #222c3f;
	padding: 18px 0;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #7d879b;
}

/* ---------------------------------------------------------------- WhatsApp 懸浮球 */
.fab-wa {
	position: fixed;
	right: 22px;
	bottom: 24px;
	z-index: 900;
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(20, 28, 48, .25);
	transition: transform .22s, box-shadow .22s;
}

.fab-wa img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fab-wa:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 12px 26px rgba(20, 28, 48, .32);
}

.fab-wa:focus-visible {
	outline: 3px solid var(--brand);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- 提示 */
.toast {
	position: fixed;
	right: 22px;
	/* 置於懸浮球上方，避免遮擋 */
	bottom: 96px;
	z-index: 999;
	background: var(--ink);
	color: #fff;
	padding: 13px 20px;
	border-radius: 10px;
	box-shadow: var(--shadow-h);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	opacity: 0;
	transform: translateY(16px);
	transition: .25s;
	pointer-events: none;
	max-width: 320px;
}

.toast.is-show {
	opacity: 1;
	transform: translateY(0);
}

.toast svg {
	width: 18px;
	height: 18px;
	fill: var(--ok);
	flex: none;
}

/* ---------------------------------------------------------------- 響應式 */
/* 大螢幕：首頁「精選推介」整區突破 1240px 容器滿版，商品卡加寬以減少左右留白 */
@media (min-width: 1400px) {
	body.home {
		overflow-x: hidden;
		overflow-x: clip;
	}

	#featured {
		/* 17px 為垂直捲軸寬度補償：100vw 含捲軸，不補償會造成左右各溢出約 8px */
		width: calc(100vw - 17px);
		margin-left: calc(50% - 50vw + 8.5px);
		padding-inline: 32px;
	}

	#featured .grid {
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 1024px) {
	.logo__text {
		display: none;
	}

	.nav__inner {
		flex-wrap: wrap;
	}

	.hero__content {
		padding: 40px 30px;
	}

	.hero__title {
		font-size: 32px;
	}

	.layout {
		grid-template-columns: 1fr;
	}

	.filter {
		position: static;
		display: none;
	}

	.filter.is-open {
		display: block;
	}

	.filter__toggle {
		display: inline-flex;
	}

	.cart-layout {
		grid-template-columns: 1fr;
	}

	.summary {
		position: static;
	}

	.detail {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 20px;
	}

	.footer__top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.header__inner {
		flex-wrap: wrap;
		min-height: 0;
		padding: 12px 0;
		gap: 12px;
	}

	.logo__img {
		height: 44px;
	}

	.search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
	}

	.search__btn {
		padding: 0 16px;
	}

	.hero {
		min-height: 260px;
	}

	.hero__content {
		padding: 30px 22px;
	}

	.hero__title {
		font-size: 25px;
	}

	.section__title {
		font-size: 20px;
	}

	.cart-list__head {
		display: none;
	}

	.cart-item {
		grid-template-columns: 1fr auto;
		row-gap: 10px;
	}

	.cart-item__price {
		display: none;
	}

	.rich {
		padding: 22px 18px;
	}

	.spec-quick {
		grid-template-columns: 1fr;
	}

	.spec-table th {
		width: 110px;
	}

	.footer__top {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 32px 0 24px;
	}
}

@media (max-width: 480px) {
	.grid {
		grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
		gap: 12px;
	}

	.card__body {
		padding: 12px;
	}

	.card__name {
		font-size: 13.5px;
		min-height: 4.4em;
	}

	.price {
		font-size: 16px;
	}

	/* 價格與「加入購物車」維持同一行，窄卡時縮小按鈕避免擠出卡片 */
	.card__foot {
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}

	.card__foot .btn {
		flex: 0 0 auto;
		padding: 7px 11px;
		font-size: 12.5px;
	}

	.card__foot .price {
		flex: 0 1 auto;
		min-width: 0;
	}

	.btn--lg {
		padding: 12px 20px;
		font-size: 15px;
	}
}
