/*
Theme Name: 臻品箱包 Zhenpin Store
Theme URI: https://example.com
Author: 臻品箱包
Description: 繁體中文精品箱包商城主題，搭配 WooCommerce 使用（主色 #E60012）。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zhenpin-store
Tags: e-commerce, custom-colors, custom-menu
*/

/* ===================== 基础变量 ===================== */
:root {
	--zp-red: #e60012;
	--zp-red-dark: #c5000f;
	--zp-ink: #1a1a1a;
	--zp-text: #5b5b5b;
	--zp-text3: #9a9a9a;
	--zp-border: #eaeaea;
	--zp-gray: #f6f6f6;
	--zp-frame: 1200px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	color: var(--zp-ink);
	background: #fff;
	font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--zp-red); }
img { max-width: 100%; height: auto; display: block; }

.zp-frame { max-width: var(--zp-frame); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ===================== 顶部公告条 ===================== */
.zp-topbar {
	background: var(--zp-red);
	color: #fff;
	font-size: 12.5px;
	overflow: hidden;
}
.zp-topbar__inner {
	display: flex; align-items: center; height: 36px; gap: 16px;
}
.zp-topbar__notice { display: flex; align-items: center; flex-shrink: 0; font-weight: 500; }
.zp-topbar__notice::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: #fff; margin-right: 8px; animation: zp-pulse 1.6s infinite;
}
@keyframes zp-pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.zp-topbar__items { display: flex; flex: 1; overflow: hidden; white-space: nowrap; }
.zp-topbar__items span { margin-right: 38px; opacity: .95; }
.zp-topbar a { color: #fff; text-decoration: underline; flex-shrink: 0; }

/* ===================== 导航 ===================== */
.zp-nav {
	position: sticky; top: 0; z-index: 50; background: #fff;
	border-bottom: 1px solid var(--zp-border);
}
.zp-nav__inner { display: flex; align-items: center; height: 68px; gap: 18px; }
.zp-logo { display: flex; align-items: center; flex-shrink: 0; }
.zp-logo__mark {
	width: 34px; height: 34px; border-radius: 6px; background: var(--zp-red); color: #fff;
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
	box-shadow: 0 8px 18px -8px rgba(230,0,18,.9);
}
.zp-logo__text { margin-left: 10px; font-size: 19px; font-weight: 700; letter-spacing: .5px; }

.zp-menu { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.zp-menu > li { position: relative; list-style: none; }
.zp-menu a {
	display: block; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--zp-text);
}
.zp-menu a:hover, .zp-menu .current-menu-item > a { color: var(--zp-red); }
.zp-menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 200px; background: #fff;
	border: 1px solid var(--zp-border); border-top: 2px solid var(--zp-red); border-radius: 2px;
	box-shadow: 0 18px 36px -18px rgba(0,0,0,.35); padding: 6px 0; margin: 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.zp-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.zp-menu .sub-menu a { padding: 9px 16px; font-size: 14px; font-weight: 400; }

.zp-nav__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.zp-icon-btn {
	position: relative; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
	border: 1px solid var(--zp-border); border-radius: 3px; background: #fff; cursor: pointer;
	font-size: 13px; color: var(--zp-text); font-family: inherit;
}
.zp-icon-btn:hover { border-color: var(--zp-red); color: var(--zp-red); }
.zp-cart-count {
	position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px;
	background: var(--zp-red); color: #fff; border-radius: 9px; font-size: 11px; line-height: 17px; text-align: center;
}

/* ===================== 首页主视觉 ===================== */
.zp-hero {
	position: relative; min-height: 480px; display: flex; align-items: center;
	background-size: cover; background-position: center; color: #fff; overflow: hidden;
}
.zp-hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(58,10,16,.94) 0%, rgba(58,10,16,.72) 45%, rgba(58,10,16,.2) 100%);
}
.zp-hero__inner { position: relative; z-index: 2; padding: 72px 0; }
.zp-hero__tag {
	display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.4);
	background: rgba(255,255,255,.1); border-radius: 3px; padding: 6px 11px; font-size: 12px; margin-bottom: 20px;
}
.zp-hero__tag::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zp-red);
	margin-right: 8px; animation: zp-pulse 1.6s infinite;
}
.zp-hero h1 { font-size: 44px; line-height: 1.25; margin: 0 0 16px; font-weight: 700; max-width: 560px; }
.zp-hero h1 em { font-style: normal; position: relative; }
.zp-hero h1 em::after {
	content: ""; position: absolute; left: 0; bottom: 2px; height: 6px; width: 100%;
	background: rgba(230,0,18,.7); border-radius: 3px;
}
.zp-hero p { max-width: 470px; color: rgba(255,255,255,.85); margin: 0 0 28px; }
.zp-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.zp-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 30px;
	border-radius: 3px; font-weight: 500; font-size: 15px; cursor: pointer; border: 1px solid transparent;
	font-family: inherit; transition: all .2s;
}
.zp-btn--primary { background: var(--zp-red); color: #fff; box-shadow: 0 16px 34px -14px rgba(230,0,18,.95); }
.zp-btn--primary:hover { background: var(--zp-red-dark); color: #fff; transform: translateY(-1px); }
.zp-btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.zp-btn--ghost:hover { background: #fff; color: var(--zp-ink); }

/* ===================== 数据条 ===================== */
.zp-stats { border-bottom: 1px solid var(--zp-border); background: #fff; }
.zp-stats__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.zp-stats__item { text-align: center; padding: 26px 10px; border-right: 1px solid var(--zp-border); }
.zp-stats__item:last-child { border-right: 0; }
.zp-stats__num { font-size: 32px; font-weight: 700; color: var(--zp-red); line-height: 1.1; }
.zp-stats__label { font-size: 13px; color: var(--zp-text3); margin-top: 4px; }

/* ===================== 区块标题 ===================== */
.zp-section { padding: 44px 0; }
.zp-section--gray { background: var(--zp-gray); }
.zp-title {
	display: flex; align-items: center; font-size: 26px; font-weight: 700; margin: 0 0 22px;
}
.zp-title::before {
	content: ""; width: 4px; height: 24px; background: var(--zp-red); border-radius: 2px; margin-right: 10px;
}
.zp-title__more { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--zp-text3); }

/* ===================== 分类条 ===================== */
.zp-cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.zp-cat { text-align: center; display: block; }
.zp-cat__icon {
	width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%; background: var(--zp-gray);
	display: flex; align-items: center; justify-content: center; color: var(--zp-ink);
	transition: all .28s;
}
.zp-cat:hover .zp-cat__icon {
	background: var(--zp-red); color: #fff; transform: translateY(-4px) rotate(-6deg);
	box-shadow: 0 16px 28px -14px rgba(230,0,18,.95);
}
.zp-cat__name { font-size: 13.5px; color: var(--zp-text); }
.zp-cat:hover .zp-cat__name { color: var(--zp-red); }

/* ===================== 商品卡片（覆盖 WooCommerce 默认样式） ===================== */
ul.products {
	display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px;
	margin: 0 !important; padding: 0 !important;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
	width: 100% !important; margin: 0 !important; float: none !important;
	border: 1px solid var(--zp-border); border-radius: 3px; overflow: hidden; background: #fff;
	transition: all .28s; position: relative; padding-bottom: 0 !important;
}
ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -26px rgba(0,0,0,.4); }
ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
ul.products li.product img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin: 0 !important; }
ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px !important; font-weight: 600; padding: 12px 14px 4px !important;
	line-height: 1.5; min-height: 66px; color: var(--zp-ink);
}
ul.products li.product .price {
	padding: 0 14px 14px !important; color: var(--zp-red) !important; font-size: 17px !important; font-weight: 700;
	display: flex; align-items: baseline; gap: 8px;
}
ul.products li.product .price del { color: var(--zp-text3) !important; font-weight: 400; font-size: 13px !important; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
	display: block !important; margin: 0 14px 14px !important; text-align: center;
	background: var(--zp-red) !important; color: #fff !important; border-radius: 3px;
	height: 40px; line-height: 40px !important; padding: 0 !important; font-weight: 500; font-size: 14px;
}
ul.products li.product .button:hover { background: var(--zp-red-dark) !important; }
ul.products li.product .onsale {
	position: absolute; top: 12px; left: 12px; right: auto; margin: 0;
	background: var(--zp-red); color: #fff; border-radius: 3px; padding: 2px 8px; font-size: 12px; min-height: 0; line-height: 20px;
}

/* ===================== 服务保障 ===================== */
.zp-service { background: #fff; border-top: 1px solid var(--zp-border); border-bottom: 1px solid var(--zp-border); }
.zp-service__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.zp-service__item { display: flex; align-items: center; padding: 26px 0; }
.zp-service__item + .zp-service__item { border-left: 1px solid var(--zp-border); padding-left: 24px; }
.zp-service__icon {
	width: 44px; height: 44px; border-radius: 50%; background: rgba(230,0,18,.1); color: var(--zp-red);
	display: flex; align-items: center; justify-content: center; margin-right: 12px; flex-shrink: 0;
}
.zp-service__title { font-size: 15px; font-weight: 700; }
.zp-service__desc { font-size: 12.5px; color: var(--zp-text3); }

/* ===================== 促销横幅 ===================== */
.zp-promo {
	border-radius: 3px; overflow: hidden; color: #fff; padding: 34px 40px; position: relative;
	background: linear-gradient(135deg, var(--zp-red) 0%, #7d000a 100%);
	display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.zp-promo h3 { margin: 0 0 6px; font-size: 26px; }
.zp-promo p { margin: 0; color: rgba(255,255,255,.8); }
.zp-promo .zp-btn { background: #fff; color: var(--zp-ink); margin-left: auto; }

/* ===================== 评价 ===================== */
.zp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zp-review { background: #fff; border: 1px solid var(--zp-border); border-radius: 3px; padding: 22px; }
.zp-review__stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 10px; }
.zp-review__text { color: var(--zp-text); font-size: 14px; min-height: 96px; }
.zp-review__user { font-weight: 700; margin-top: 14px; font-size: 14px; }
.zp-review__date { font-size: 12px; color: var(--zp-text3); }

/* ===================== 页脚 ===================== */
.zp-footer { background: #1a1a1a; color: #b9b9b9; padding: 52px 0 26px; margin-top: 40px; font-size: 14px; }
.zp-footer a { color: #b9b9b9; }
.zp-footer a:hover { color: #fff; }
.zp-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.zp-footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.zp-footer ul { list-style: none; margin: 0; padding: 0; }
.zp-footer li { margin-bottom: 9px; }
.zp-footer__brand { display: flex; align-items: center; margin-bottom: 14px; }
.zp-footer__brand .zp-logo__mark { background: rgba(255,255,255,.15); box-shadow: none; }
.zp-footer__brand span:last-child { color: #fff; font-size: 19px; font-weight: 700; margin-left: 10px; }
.zp-footer__copy {
	border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px;
	font-size: 12.5px; color: #8a8a8a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ===================== WooCommerce 页面 ===================== */
.zp-page { padding: 32px 0 64px; }
.zp-breadcrumb { font-size: 13px; color: var(--zp-text3); margin-bottom: 18px; }
.zp-breadcrumb a:hover { color: var(--zp-red); }

/* 商品详情 */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }
.single-product div.product .product_title { font-size: 28px; font-weight: 700; margin: 0 0 10px; }
.single-product div.product p.price { color: var(--zp-red); font-size: 30px; font-weight: 700; margin: 0 0 18px; }
.single-product div.product p.price del { color: var(--zp-text3); font-size: 17px; font-weight: 400; }
.single-product div.product p.price ins { text-decoration: none; }
.single-product div.product .woocommerce-product-details__short-description { color: var(--zp-text); }
.single-product div.product form.cart { margin: 22px 0; }
.single-product div.product .quantity input.qty {
	height: 48px; width: 78px; border: 1px solid var(--zp-border); border-radius: 3px; text-align: center;
}
.single-product div.product button.single_add_to_cart_button {
	height: 48px; padding: 0 34px; background: var(--zp-red); color: #fff; border: 0; border-radius: 3px;
	font-size: 15px; font-weight: 500; cursor: pointer;
}
.single-product div.product button.single_add_to_cart_button:hover { background: var(--zp-red-dark); }
.single-product div.product .product_meta { font-size: 13px; color: var(--zp-text3); border-top: 1px solid var(--zp-border); padding-top: 16px; }
.single-product div.product table.shop_attributes { width: 100%; border-collapse: collapse; margin-top: 10px; }
.single-product div.product table.shop_attributes th,
.single-product div.product table.shop_attributes td {
	border: 0; border-bottom: 1px solid var(--zp-border); padding: 12px 8px; text-align: left; font-size: 14px;
}
.single-product div.product table.shop_attributes th { color: var(--zp-text3); font-weight: 400; width: 130px; }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 40px; border-top: 1px solid var(--zp-border); padding-top: 26px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0 0 22px; }
.woocommerce-tabs ul.tabs li a { font-weight: 600; font-size: 16px; color: var(--zp-text); }
.woocommerce-tabs ul.tabs li.active a { color: var(--zp-red); }

.related.products { margin-top: 50px; }

/* 购物车 / 结账 */
.woocommerce-cart-form table.shop_table,
.woocommerce-checkout-review-order table.shop_table,
table.woocommerce-checkout-review-order-table {
	width: 100%; border-collapse: collapse; border: 1px solid var(--zp-border); border-radius: 3px;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
	border-bottom: 1px solid var(--zp-border); padding: 14px 12px; text-align: left;
}
.woocommerce table.shop_table th { background: var(--zp-gray); font-size: 14px; }
.woocommerce .cart_totals, .woocommerce-checkout #order_review {
	background: #f8f8f8; border: 1px solid var(--zp-border); border-radius: 3px; padding: 22px;
}
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce #place_order, .woocommerce .checkout-button {
	background: var(--zp-red) !important; color: #fff !important; border-radius: 3px !important;
	height: 48px; line-height: 48px !important; padding: 0 30px !important; font-weight: 500 !important; border: 0 !important;
}
.woocommerce button.button:hover, .woocommerce #place_order:hover { background: var(--zp-red-dark) !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	height: 46px; border: 1px solid var(--zp-border); border-radius: 3px; padding: 0 12px; font-family: inherit;
}
.woocommerce form .form-row textarea { height: auto; padding: 10px 12px; }

/* 支付方式 */
#payment ul.wc_payment_methods { list-style: none; padding: 0; margin: 0; }
#payment ul.wc_payment_methods li {
	border: 1px solid var(--zp-border); border-radius: 3px; padding: 14px 16px; margin-bottom: 10px; background: #fff;
}
#payment ul.wc_payment_methods li label { font-weight: 600; cursor: pointer; }
#payment .payment_box { background: var(--zp-gray); border-radius: 3px; margin-top: 12px; padding: 12px 14px; font-size: 13.5px; }
.zp-card-fields .form-row { margin: 0 0 12px; }
.zp-card-fields label { display: block; font-size: 13px; color: var(--zp-text); margin-bottom: 5px; }
.zp-card-fields input {
	width: 100%; height: 44px; border: 1px solid var(--zp-border); border-radius: 3px; padding: 0 12px;
	font-size: 15px; letter-spacing: .5px; font-family: inherit;
}
.zp-card-fields .form-row-first, .zp-card-fields .form-row-last { width: calc(50% - 6px); display: inline-block; }
.zp-card-fields .form-row-first { margin-right: 12px; }

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--zp-red); background: #fff8f8; border-radius: 3px;
	/* 左侧留出图标的位置，否则 WooCommerce 那个绝对定位的图标会压在文字上 */
	padding: 14px 18px 14px 3.4em; margin-bottom: 22px;
	position: relative;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
	color: var(--zp-red);
	left: 1.2em;
	top: 50%;
	transform: translateY(-50%);
	line-height: 1;
}
/* 提示框里的链接保持醒目 */
.woocommerce-info a, .woocommerce-message a { color: var(--zp-red); text-decoration: underline; }

.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--zp-border); border-radius: 3px; padding: 6px 12px; min-width: 36px; text-align: center;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--zp-red); color: #fff; border-color: var(--zp-red); }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
	ul.products { grid-template-columns: repeat(3, 1fr); }
	.zp-cats { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
	.zp-footer__top { grid-template-columns: 1fr 1fr; }
	.single-product div.product { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.zp-menu { display: none; }
	.zp-hero h1 { font-size: 30px; }
	ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.zp-stats__inner, .zp-service__inner { grid-template-columns: 1fr 1fr; }
	.zp-service__item + .zp-service__item { border-left: 0; padding-left: 0; }
	.zp-reviews { grid-template-columns: 1fr; }
	.zp-title { font-size: 20px; }
}

/* ==========================================================
   字体与排版优化（自托管 Noto Sans TC / Noto Serif TC）
   —— 不管客人用 iPhone、Android 还是 Windows，看到的字形都一致
   ========================================================== */
:root {
	--zp-font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	--zp-font-serif: "Noto Serif TC", "Songti TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", serif;
}

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

body,
button, input, select, textarea,
.zp-btn, .woocommerce input, .woocommerce select, .woocommerce textarea {
	font-family: var(--zp-font-sans);
}

body {
	font-size: 15.5px;
	line-height: 1.75;
	letter-spacing: .012em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* 标题与品牌字样用衬线体 —— 精品店的关键质感 */
h1, h2, h3, h4,
.zp-hero h1,
.zp-title,
.zp-promo h3,
.zp-footer h4,
.zp-service__title,
.single-product div.product .product_title {
	font-family: var(--zp-font-serif);
	letter-spacing: .035em;
}

.zp-hero h1 { font-weight: 600; letter-spacing: .05em; line-height: 1.32; }
.zp-title { font-weight: 600; }
.zp-logo__text,
.zp-footer__brand span:last-child {
	font-family: var(--zp-font-serif);
	font-weight: 600;
	letter-spacing: .08em;
}

/* 商品名保持黑体（辨识度更好），只放松字距 */
ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--zp-font-sans);
	font-weight: 500;
	letter-spacing: .02em;
}

/* 价格：数字等宽对齐，看起来更整齐 */
.woocommerce-Price-amount, .price, .amount, .zp-stats__num {
	font-variant-numeric: tabular-nums lining-nums;
	letter-spacing: .015em;
}

/* ---------- 修：菜单和按钮被挤压后换行 ---------- */
/* 菜单项不允许被压缩、不允许断行 */
.zp-menu { flex-wrap: wrap; }
.zp-menu > li { flex-shrink: 0; }
.zp-menu a { white-space: nowrap; letter-spacing: normal; }
.zp-menu .sub-menu a { letter-spacing: normal; }

/* 导航栏允许在窄屏时自然撑高，而不是把文字挤成多行 */
.zp-nav__inner { height: auto; min-height: 68px; flex-wrap: wrap; row-gap: 4px; }
.zp-nav__tools { flex-shrink: 0; }

/* 搜索按钮 / 會員 / 購物車 一律单行显示 */
.zp-icon-btn, .zp-btn, .button, button { white-space: nowrap; flex-shrink: 0; letter-spacing: normal; }

.zp-topbar { letter-spacing: .02em; }
.zp-footer { letter-spacing: .015em; }

/* ==========================================================
   顶部公告 · 走马灯
   ========================================================== */
.zp-marquee { overflow: hidden; width: 100%; }
.zp-marquee__track {
	display: flex; width: max-content;
	animation: zp-marquee 36s linear infinite;
	will-change: transform;
}
.zp-marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.zp-marquee__group > span { white-space: nowrap; opacity: .95; }
.zp-topbar:hover .zp-marquee__track { animation-play-state: paused; }
@keyframes zp-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ==========================================================
   首页主视觉 · 轮播
   ========================================================== */
.zp-hero.zp-slider {
	position: relative; min-height: 560px; display: block; padding: 0;
	background: #170a0d; overflow: hidden;
}
.zp-hero.zp-slider::after { display: none; }

.zp-slide {
	position: absolute; inset: 0; display: flex; align-items: center;
	opacity: 0; transition: opacity .9s ease; pointer-events: none;
}
.zp-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }

.zp-slide__bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	transform: scale(1.03);
	transition: transform 8s ease-out;
}
.zp-slide.is-active .zp-slide__bg { transform: scale(1.13); }

.zp-slide__veil {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(20,5,8,.94) 0%, rgba(20,5,8,.72) 40%, rgba(20,5,8,.16) 100%),
		linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 42%);
}
.zp-slide .zp-hero__inner { position: relative; z-index: 3; }

/* 文字逐条淡入上浮 */
.zp-slide .zp-hero__inner > * {
	opacity: 0; transform: translateY(20px);
	transition: opacity .75s cubic-bezier(.2,.7,.3,1), transform .75s cubic-bezier(.2,.7,.3,1);
}
.zp-slide.is-active .zp-hero__inner > * { opacity: 1; transform: none; }
.zp-slide.is-active .zp-hero__inner > *:nth-child(1) { transition-delay: .12s; }
.zp-slide.is-active .zp-hero__inner > *:nth-child(2) { transition-delay: .24s; }
.zp-slide.is-active .zp-hero__inner > *:nth-child(3) { transition-delay: .36s; }
.zp-slide.is-active .zp-hero__inner > *:nth-child(4) { transition-delay: .48s; }

/* 左右箭头 */
.zp-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
	width: 48px; height: 48px; border-radius: 50%; padding: 0 0 4px;
	border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.1);
	color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
	opacity: 0; transition: opacity .3s, background .3s, border-color .3s, transform .3s;
	backdrop-filter: blur(6px);
}
.zp-hero:hover .zp-slider__arrow, .zp-slider:focus-within .zp-slider__arrow { opacity: 1; }
.zp-slider__arrow:hover { background: var(--zp-red); border-color: var(--zp-red); }
.zp-slider__arrow--prev { left: 24px; }
.zp-slider__arrow--next { right: 24px; }
.zp-slider__arrow--prev:hover { transform: translateY(-50%) translateX(-2px); }
.zp-slider__arrow--next:hover { transform: translateY(-50%) translateX(2px); }

/* 圆点 */
.zp-slider__dots {
	position: absolute; left: 0; right: 0; bottom: 28px; z-index: 6;
	display: flex; justify-content: center; gap: 10px;
}
.zp-slider__dot {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.42); cursor: pointer;
	transition: width .35s, border-radius .35s, background .35s;
}
.zp-slider__dot:hover { background: rgba(255,255,255,.75); }
.zp-slider__dot.is-active { width: 28px; border-radius: 4px; background: #fff; }

/* 底部进度条 */
.zp-slider__progress {
	position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 7;
	background: rgba(255,255,255,.14);
}
.zp-slider__progress i { display: block; height: 100%; width: 0; background: var(--zp-red); }
.zp-slider.is-running .zp-slider__progress i {
	animation: zp-progress var(--zp-slide-interval, 6500ms) linear forwards;
}
@keyframes zp-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 900px) {
	.zp-hero.zp-slider { min-height: 500px; }
	.zp-slider__arrow { display: none; }
}
@media (max-width: 560px) {
	.zp-hero.zp-slider { min-height: 460px; }
	.zp-slider__dots { bottom: 20px; }
}

/* 关闭动画偏好 */
@media (prefers-reduced-motion: reduce) {
	.zp-marquee__track { animation: none; }
	.zp-slide__bg, .zp-slide.is-active .zp-slide__bg { transform: none; transition: none; }
	.zp-slide .zp-hero__inner > * { opacity: 1; transform: none; transition: none; }
	.zp-slider.is-running .zp-slider__progress i { animation: none; }
}

/* ---------- 「加入購物車」按鈕的反饋 ---------- */
/* 請求中：整顆變灰、暫時點不動 */
ul.products li.product .button.loading,
ul.products li.product .add_to_cart_button.loading,
.single_add_to_cart_button.loading,
.single_add_to_cart_button.loading.disabled {
	background: #b8b8b8 !important;
	border-color: #b8b8b8 !important;
	color: #fff !important;
	pointer-events: none;
	cursor: wait;
	opacity: .95;
}
/* 已加入：變灰 + 打勾，2.5 秒後恢復 */
ul.products li.product .button.added,
ul.products li.product .add_to_cart_button.added,
.single_add_to_cart_button.added {
	background: #9a9a9a !important;
	border-color: #9a9a9a !important;
	color: #fff !important;
	pointer-events: none;
	cursor: default;
}
/* 購物車紅點：數字變化時輕微跳一下，讓客人看得到 */
.zp-cart-count { transition: transform .2s; }
.zp-cart-count.zp-pop { transform: scale(1.45); }

/* 宽屏：导航行放宽一点，9 个菜单项一行放得下 */
@media (min-width: 1240px) {
	.zp-nav__inner { max-width: 1360px; }
}
/* 中等宽度：收紧菜单，别撑破 */
@media (max-width: 1240px) {
	.zp-nav__inner { gap: 10px; }
	.zp-menu { gap: 0; margin-left: 0; }
	.zp-menu a { padding: 8px 8px; font-size: 14px; }
	.zp-nav__tools { gap: 6px; }
	.zp-nav__tools input[type="search"] { width: 92px !important; }
}
/* 平板：藏掉搜索框和品牌文字，只留「臻」标志，菜单保持一行 */
@media (max-width: 1180px) {
	.zp-nav__tools form { display: none !important; }
}
@media (max-width: 1000px) {
	.zp-logo__text { display: none; }
	.zp-menu a { padding: 8px 7px; font-size: 13.5px; }
}
@media (max-width: 860px) {
	.zp-menu a { padding: 8px 6px; font-size: 13px; }
	.zp-icon-btn { padding: 0 8px; }
}
