/*
Theme Name: zt-zipshop
Theme URI: https://example.com/zt-zipshop
Author: ZT Shop
Author URI: https://example.com
Description: 扎带商城主题：复刻 ziptie.com 店面风格（公告栏、Hero、卖点、热销网格、分类浏览、批发价区），融合现代电商交互（快速查看、收藏、对比、倒计时、迷你购物车）。与 zt-shop-core 插件配合实现完整商城，无需 WooCommerce。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zt-zipshop
Tags: e-commerce, store, business, responsive
*/

/* ==================== 基础 ==================== */
:root {
	--zt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
	--zt-primary: #1d4ed8;
	--zt-primary-dark: #1e40af;
	--zt-ink: #111827;
	--zt-ink-soft: #374151;
	--zt-muted: #6b7280;
	--zt-line: #e5e7eb;
	--zt-bg: #ffffff;
	--zt-bg-soft: #f3f4f6;
	--zt-danger: #dc2626;
	--zt-success: #059669;
	--zt-radius: 10px;
	--zt-shadow: 0 10px 30px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--zt-font);
	font-size: 15px;
	line-height: 1.65;
	color: var(--zt-ink);
	background: var(--zt-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--zt-primary); text-decoration: none; }
a:hover { color: var(--zt-primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.zt-container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.zt-section { padding: 56px 0; }
.zt-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.zt-section-head h2 { font-size: 26px; margin: 0; }
.zt-section-sub { color: var(--zt-muted); margin: 0; }
.zt-link-more { font-weight: 600; font-size: 14px; }
.zt-page { padding: 24px 0 64px; }
.zt-page-title { font-size: 30px; margin-bottom: 20px; }
.zt-page-content { max-width: 860px; }

/* ==================== 公告栏 ==================== */
.zt-announce { background: var(--zt-ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 0; letter-spacing: .2px; }
.zt-announce a { color: #fff; }
.zt-announce a:hover { opacity: .85; }

/* ==================== 头部 ==================== */
.zt-header { background: #fff; border-bottom: 1px solid var(--zt-line); position: sticky; top: 0; z-index: 999; }
.zt-header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.zt-header-left { display: flex; align-items: center; gap: 12px; }
.zt-logo { display: flex; align-items: center; }
.zt-logo-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.zt-logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--zt-ink); position: relative; display: inline-block; }
.zt-logo-mark::after { content: ""; position: absolute; inset: 6px 9px; background: #fff; border-radius: 3px; transform: rotate(-25deg); }
.zt-logo-text { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: var(--zt-ink); }
.zt-logo-light .zt-logo-text { color: #fff; }
.zt-logo-light .zt-logo-mark { background: #fff; }
.zt-logo-light .zt-logo-mark::after { background: var(--zt-ink); }

.zt-nav { flex: 1; }
.zt-main { min-height: 55vh; }

/* 汉堡按钮：桌面隐藏，移动端显示 */
.zt-nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 0; }
.zt-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--zt-ink); margin: 5px auto; border-radius: 2px; }
.zt-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.zt-menu > li { position: relative; }
.zt-menu > li > a { display: block; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--zt-ink); border-radius: 8px; }
.zt-menu > li > a:hover { color: var(--zt-primary); background: var(--zt-bg-soft); }
.zt-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--zt-line); border-radius: 10px; box-shadow: var(--zt-shadow); padding: 8px; list-style: none; z-index: 100; }
.zt-menu li:hover > .sub-menu { display: block; }
.zt-menu .sub-menu a { display: block; padding: 8px 12px; color: var(--zt-ink-soft); font-size: 14px; border-radius: 6px; }
.zt-menu .sub-menu a:hover { background: var(--zt-bg-soft); color: var(--zt-primary); }

.zt-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.zt-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: var(--zt-ink); border-radius: 8px; cursor: pointer; position: relative; }
.zt-icon-btn:hover { background: var(--zt-bg-soft); color: var(--zt-primary); }
.zt-hdr-count { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--zt-danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.zt-search-wrap { position: relative; }
.zt-search-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-width: 90vw; background: #fff; border: 1px solid var(--zt-line); border-radius: 12px; box-shadow: var(--zt-shadow); padding: 12px; z-index: 999; }
.zt-search-panel.open { display: block; }
.zt-search-form { display: flex; gap: 8px; }
.zt-search-form input[type="search"] { flex: 1; padding: 10px 12px; border: 1px solid var(--zt-line); border-radius: 8px; font-size: 14px; }

/* 迷你购物车 */
.zt-mini-cart-wrap { font-size: 14px; }

/* ==================== Hero ==================== */
.zt-hero { background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 55%, #e0e7ff 100%); border-bottom: 1px solid var(--zt-line); overflow: hidden; }
.zt-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.zt-hero-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--zt-primary); background: rgba(29, 78, 216, .08); padding: 5px 12px; border-radius: 999px; margin: 0 0 14px; }
.zt-hero-copy h1 { font-size: 44px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.zt-hero-sub { font-size: 17px; color: var(--zt-ink-soft); margin: 0 0 26px; max-width: 520px; }
.zt-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.zt-hero-visual { position: relative; height: 360px; }
.zt-hero-ring { position: absolute; inset: 4%; border-radius: 50%; background: #fff; box-shadow: 0 24px 60px rgba(29, 78, 216, .16); }
.zt-hero-ring::before { content: ""; position: absolute; inset: 12%; border: 3px dashed rgba(29, 78, 216, .25); border-radius: 50%; }
.zt-hero-tie { position: absolute; background: var(--zt-ink); border-radius: 999px; transform-origin: center; }
.zt-hero-tie-1 { width: 42%; height: 14px; left: 28%; top: 44%; transform: rotate(-8deg); }
.zt-hero-tie-1::before { content: ""; position: absolute; right: -16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; background: var(--zt-ink); border-radius: 6px; }
.zt-hero-tie-1::after { content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--zt-ink); border-radius: 50%; }
.zt-hero-tie-2 { width: 34%; height: 11px; left: 30%; top: 22%; transform: rotate(14deg); background: var(--zt-primary); }
.zt-hero-tie-2::before { content: ""; position: absolute; right: -12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--zt-primary); border-radius: 5px; }
.zt-hero-tie-3 { width: 30%; height: 10px; left: 34%; top: 66%; transform: rotate(-20deg); background: #60a5fa; }
.zt-hero-tie-3::before { content: ""; position: absolute; right: -11px; top: 50%; width: 19px; height: 19px; margin-top: -9px; background: #60a5fa; border-radius: 5px; }

/* ==================== 卖点 USP ==================== */
.zt-usp { background: #fff; border-bottom: 1px solid var(--zt-line); }
.zt-usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 0; }
.zt-usp-item { display: flex; align-items: center; gap: 14px; }
.zt-usp-icon { width: 46px; height: 46px; border-radius: 12px; background: #eef2ff; flex: none; position: relative; }
.zt-usp-text strong { display: block; font-size: 15px; }
.zt-usp-text small { color: var(--zt-muted); font-size: 13px; }

/* 图标 */
.zt-icon-truck::before, .zt-icon-box::before, .zt-icon-laser::before, .zt-icon-shield::before, .zt-icon-tag::before, .zt-icon-star::before, .zt-icon-check::before, .zt-icon-fire::before {
	content: ""; position: absolute; inset: 11px; background: var(--zt-primary); border-radius: 4px;
}
.zt-icon-truck::after { content: ""; position: absolute; left: 9px; right: 9px; top: 22px; height: 4px; border-radius: 3px; background: var(--zt-primary); }
.zt-icon-box::after { content: ""; position: absolute; left: 8px; right: 8px; top: 17px; bottom: 12px; border: 3px solid var(--zt-primary); border-radius: 3px; }
.zt-icon-shield::after { content: ""; position: absolute; inset: 12px 15px 10px; border: 3px solid var(--zt-primary); border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; }
.zt-icon-tag::after { content: ""; position: absolute; left: 8px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--zt-primary); }
.zt-icon-star::after { content: "★"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f59e0b; font-size: 18px; }
.zt-icon-laser::after { content: ""; position: absolute; inset: 15px 8px; border-top: 3px solid var(--zt-primary); border-bottom: 3px solid var(--zt-primary); border-radius: 50%; }
.zt-icon-fire::after { content: "♨"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #f97316; font-size: 17px; }
.zt-icon-check::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--zt-success); font-size: 18px; }

/* ==================== 商品网格与卡片 ==================== */
.zt-product-grid { display: grid; gap: 20px; }
.zt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.zt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.zt-cols-4 { grid-template-columns: repeat(4, 1fr); }
.zt-cols-5 { grid-template-columns: repeat(5, 1fr); }

.zt-card { background: #fff; border: 1px solid var(--zt-line); border-radius: var(--zt-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.zt-card:hover { box-shadow: var(--zt-shadow); transform: translateY(-3px); }
.zt-card-media { position: relative; aspect-ratio: 1/1; background: var(--zt-bg-soft); overflow: hidden; }
.zt-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zt-card-actions { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; justify-content: center; gap: 6px; opacity: 0; transform: translateY(8px); transition: all .2s; }
.zt-card:hover .zt-card-actions { opacity: 1; transform: translateY(0); }
.zt-card-actions .zt-icon-btn { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); width: 36px; height: 36px; }
.zt-card-actions .zt-icon-btn.active { color: var(--zt-danger); }
.zt-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.zt-card-title { font-size: 14.5px; margin: 0; line-height: 1.45; }
.zt-card-title a { color: var(--zt-ink); }
.zt-card-title a:hover { color: var(--zt-primary); }
.zt-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.zt-card-price strong { font-size: 18px; font-weight: 800; color: var(--zt-ink); }
.zt-card-price .zt-sale { color: var(--zt-danger); }
.zt-card-price del { color: var(--zt-muted); font-size: 13px; }
.zt-price-unit { color: var(--zt-muted); font-size: 12.5px; }
.zt-card-btn { margin-top: auto; }
.zt-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.zt-badge-sale { background: var(--zt-danger); }
.zt-badge-new { background: var(--zt-success); }
.zt-badge-bestseller { background: #d97706; }
.zt-badge-hot { background: #db2777; }

/* ==================== 首页分类浏览 ==================== */
.zt-home-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.zt-home-cat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 20px; border-radius: 12px; color: #fff; text-decoration: none; background: var(--zt-cat, #24406b); position: relative; overflow: hidden; transition: transform .2s; }
.zt-home-cat:hover { transform: translateY(-3px); color: #fff; }
.zt-home-cat::after { content: ""; position: absolute; inset: 14%; border: 2px solid rgba(255,255,255,.4); border-radius: 50%; }
.zt-home-cat-name { font-size: 17px; font-weight: 700; position: relative; z-index: 1; }
.zt-home-cat-count { font-size: 12px; opacity: .9; margin-top: 3px; position: relative; z-index: 1; }
.zt-chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-top: 1px dashed var(--zt-line); }
.zt-chip-label { font-weight: 700; font-size: 13px; min-width: 90px; }
.zt-chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--zt-line); border-radius: 999px; font-size: 13px; color: var(--zt-ink-soft); }
.zt-chip:hover { border-color: var(--zt-primary); color: var(--zt-primary); }

/* ==================== 批量采购区 ==================== */
.zt-bulk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.zt-bulk-copy h2 { font-size: 30px; }
.zt-bulk-tiers { display: grid; gap: 10px; }
.zt-bulk-tier { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--zt-line); border-radius: 10px; background: #fff; }
.zt-bulk-tier span { color: var(--zt-muted); font-size: 14px; }
.zt-bulk-tier strong { font-size: 16px; }
.zt-bulk-tier-off { border-color: #bfdbfe; background: #eff6ff; }
.zt-bulk-tier-off strong { color: var(--zt-primary); }

/* ==================== 信任徽章 ==================== */
.zt-trust-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zt-trust-badge { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--zt-line); border-radius: 10px; background: #fff; }
.zt-trust-badge .zt-tb-icon { width: 40px; height: 40px; flex: none; background: #eef2ff; border-radius: 10px; position: relative; }
.zt-tb-text strong { display: block; font-size: 14px; }
.zt-tb-text small { color: var(--zt-muted); font-size: 12px; }

/* ==================== 商城归档 ==================== */
.zt-shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 20px 0 24px; flex-wrap: wrap; }
.zt-shop-head h1 { font-size: 28px; margin: 0; }
.zt-cat-desc { color: var(--zt-muted); margin: 6px 0 0; max-width: 640px; }
.zt-shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-bottom: 64px; align-items: start; }
.zt-shop-sidebar { position: sticky; top: 92px; background: #fff; border: 1px solid var(--zt-line); border-radius: 12px; padding: 18px; max-height: calc(100vh - 110px); overflow: auto; }
.zt-filter-block { border-bottom: 1px solid var(--zt-line); padding: 12px 0; }
.zt-filter-block h4 { font-size: 14px; margin: 0 0 8px; }
.zt-filter-opt { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--zt-ink-soft); padding: 3px 0; cursor: pointer; }
.zt-filter-opt span { color: var(--zt-muted); font-size: 12px; }
.zt-filter-opt input { accent-color: var(--zt-primary); }
.zt-orderby { width: 100%; padding: 8px; border: 1px solid var(--zt-line); border-radius: 8px; font-size: 13.5px; }
.zt-price-range { display: flex; align-items: center; gap: 8px; }
.zt-price-range input { width: 100%; padding: 8px; border: 1px solid var(--zt-line); border-radius: 8px; font-size: 13px; }
.zt-filter-form > .zt-btn { margin-top: 14px; }
.zt-filter-clear { text-align: center; margin: 10px 0 0; font-size: 13px; }
.zt-result-bar { font-size: 13.5px; color: var(--zt-muted); margin-bottom: 16px; }
.zt-pagination { margin-top: 32px; text-align: center; }
.zt-pagination .page-numbers { display: inline-block; min-width: 38px; height: 38px; line-height: 38px; padding: 0 8px; border: 1px solid var(--zt-line); border-radius: 8px; margin: 0 3px; color: var(--zt-ink-soft); font-weight: 600; }
.zt-pagination .page-numbers.current { background: var(--zt-ink); color: #fff; border-color: var(--zt-ink); }
.zt-pagination .page-numbers:hover { border-color: var(--zt-primary); color: var(--zt-primary); }

/* ==================== 商品详情 ==================== */
.zt-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 20px; }
.zt-pd-gallery { position: relative; }
.zt-pd-main { border: 1px solid var(--zt-line); border-radius: 14px; overflow: hidden; background: #fff; }
.zt-pd-main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.zt-pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.zt-pd-thumb { width: 64px; height: 64px; border: 2px solid var(--zt-line); border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: #fff; }
.zt-pd-thumb.active, .zt-pd-thumb:hover { border-color: var(--zt-primary); }
.zt-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.zt-pd-info h1 { font-size: 26px; margin: 0 0 8px; }
.zt-pd-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--zt-muted); margin-bottom: 10px; }
.zt-pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--zt-line); border-bottom: 1px solid var(--zt-line); }
.zt-pd-price del { color: var(--zt-muted); font-size: 16px; }
.zt-sale-price { font-size: 30px; font-weight: 800; }
.zt-save-tag { background: #fee2e2; color: var(--zt-danger); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.zt-pd-stock { font-size: 14px; }
.zt-stock-in { color: var(--zt-success); font-weight: 600; }
.zt-stock-out { color: var(--zt-danger); font-weight: 600; }
.zt-pd-stock small { color: var(--zt-muted); margin-left: 8px; }
.zt-pd-buy { display: flex; gap: 12px; align-items: stretch; margin: 8px 0; }
.zt-qty-box { display: inline-flex; align-items: center; border: 1px solid var(--zt-line); border-radius: 8px; overflow: hidden; }
.zt-qty-box input { width: 56px; height: 44px; border: 0; text-align: center; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.zt-qty-box input::-webkit-outer-spin-button, .zt-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zt-qty-btn { width: 38px; height: 44px; border: 0; background: var(--zt-bg-soft); font-size: 18px; cursor: pointer; color: var(--zt-ink-soft); }
.zt-qty-btn:hover { background: var(--zt-line); }
.zt-pd-add { flex: 1; height: 46px; }
.zt-pd-tools { display: flex; gap: 10px; }
.zt-pd-tools .zt-icon-btn { width: auto; padding: 0 12px; border: 1px solid var(--zt-line); font-size: 13.5px; gap: 6px; }
.zt-pd-tools .zt-icon-btn.active { color: var(--zt-danger); border-color: #fecaca; background: #fef2f2; }
.zt-pd-countdown { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; }
.zt-bulk-table { margin-top: 16px; border: 1px solid #bfdbfe; border-radius: 10px; padding: 14px; background: #eff6ff; }
.zt-bulk-table h4 { margin: 0 0 8px; font-size: 15px; }
.zt-bulk-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.zt-bulk-table td, .zt-bulk-table th { padding: 6px 8px; border-bottom: 1px solid #dbeafe; text-align: left; }
.zt-bulk-note { font-size: 12px; color: var(--zt-primary-dark); margin: 8px 0 0; }
.zt-pd-specs { grid-column: 1 / -1; margin-top: 10px; }
.zt-pd-specs h3 { font-size: 18px; }
.zt-pd-specs .zt-table th { width: 180px; background: var(--zt-bg-soft); }
.zt-pd-tabs { grid-column: 1 / -1; margin-top: 10px; }
.zt-pd-tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--zt-line); }
.zt-pd-tab { padding: 10px 18px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--zt-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.zt-pd-tab.active { color: var(--zt-primary); border-bottom-color: var(--zt-primary); }
.zt-pd-tab-panel { display: none; padding: 20px 4px; }
.zt-pd-tab-panel.active { display: block; }

/* 评价 */
.zt-review-summary { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.zt-review-avg { font-size: 26px; font-weight: 800; }
.zt-review-list { list-style: none; margin: 0 0 20px; padding: 0; }
.zt-review-list li { border-bottom: 1px solid var(--zt-line); padding: 14px 0; }
.zt-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zt-review-head time { color: var(--zt-muted); font-size: 12px; margin-left: auto; }
.zt-review-list p { margin: 6px 0 0; color: var(--zt-ink-soft); }
.zt-review-form-wrap { background: var(--zt-bg-soft); border-radius: 12px; padding: 20px; max-width: 560px; }
.zt-review-none { color: var(--zt-muted); }

/* ==================== 购物车 ==================== */
.zt-cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.zt-cart-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.zt-cart-name a { color: var(--zt-ink); font-weight: 600; }
.zt-cart-side { background: var(--zt-bg-soft); border-radius: 12px; padding: 20px; position: sticky; top: 92px; }
.zt-cart-side h3 { margin-top: 0; }
.zt-cart-checkout { margin-top: 14px; }
.zt-cart-continue { text-align: center; margin-top: 18px; }

/* 汇总 */
.zt-totals-box .zt-coupon-form { background: #fff; border: 1px solid var(--zt-line); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.zt-coupon-row { display: flex; gap: 8px; }
.zt-coupon-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--zt-line); border-radius: 8px; font-size: 13.5px; }
.zt-coupon-applied { background: #d1fae5; color: #065f46; font-size: 13px; padding: 6px 10px; border-radius: 6px; margin: 8px 0 0; display: flex; justify-content: space-between; align-items: center; }
.zt-coupon-applied button { border: 0; background: none; color: var(--zt-danger); cursor: pointer; font-size: 12.5px; }
.zt-totals-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--zt-line); border-radius: 10px; overflow: hidden; }
.zt-totals-table th, .zt-totals-table td { padding: 10px 14px; border-bottom: 1px solid var(--zt-line); text-align: left; }
.zt-totals-table th { font-weight: 500; color: var(--zt-muted); }
.zt-totals-table td { text-align: right; }
.zt-total-row th, .zt-total-row td { font-weight: 800; font-size: 16px; border-bottom: 0; }

/* ==================== 结算 ==================== */
.zt-checkout-wrap .zt-checkout-form { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.zt-checkout-fields { background: #fff; border: 1px solid var(--zt-line); border-radius: 12px; padding: 24px; }
.zt-checkout-fields h3 { font-size: 17px; margin-top: 4px; }
.zt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zt-checkout-side { background: var(--zt-bg-soft); border-radius: 12px; padding: 24px; position: sticky; top: 92px; }
.zt-payment-option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--zt-line); border-radius: 8px; background: #fff; margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.zt-payment-option:has(input:checked) { border-color: var(--zt-primary); background: #eff6ff; }
.zt-checkout-note { font-size: 12px; color: var(--zt-muted); margin-top: 10px; }
.zt-check-line { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* 下单成功 */
.zt-receipt { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 32px; }
.zt-receipt h2 { color: #065f46; }
.zt-receipt .zt-table { background: #fff; }

/* ==================== 账户 ==================== */
.zt-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 820px; }
.zt-auth-box { background: #fff; border: 1px solid var(--zt-line); border-radius: 12px; padding: 24px; }
.zt-auth-box h3 { margin-top: 0; }
.zt-account-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--zt-line); margin-bottom: 22px; }
.zt-account-tabs a { padding: 10px 16px; font-weight: 600; color: var(--zt-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.zt-account-tabs a.active { color: var(--zt-primary); border-bottom-color: var(--zt-primary); }
.zt-account-tabs .zt-account-logout { margin-left: auto; color: var(--zt-danger); }
.zt-account-content { max-width: 860px; }
.zt-address-form { background: #fff; border: 1px solid var(--zt-line); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.zt-address-form h4 { margin-top: 0; }
.zt-profile-form { background: #fff; border: 1px solid var(--zt-line); border-radius: 12px; padding: 24px; max-width: 520px; }

/* ==================== 页脚 ==================== */
.zt-footer { background: var(--zt-ink); color: #d1d5db; margin-top: 40px; }
.zt-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 36px; }
.zt-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.zt-footer-desc { font-size: 13px; color: #9ca3af; }
.zt-footer-menu { list-style: none; margin: 0; padding: 0; }
.zt-footer-menu li { margin-bottom: 8px; }
.zt-footer-menu a { color: #d1d5db; font-size: 14px; }
.zt-footer-menu a:hover { color: #fff; }
.zt-social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.zt-social a { border: 1px solid #374151; border-radius: 6px; padding: 4px 10px; font-size: 12px; color: #d1d5db; }
.zt-social a:hover { border-color: #fff; color: #fff; }
.zt-footer .zt-newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.zt-footer .zt-newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: 10px 12px; border: 1px solid #374151; border-radius: 8px; background: #1f2937; color: #fff; font-size: 13.5px; }
.zt-footer-bottom { border-top: 1px solid #1f2937; padding: 18px 0; }
.zt-footer-bottom .zt-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.zt-footer-bottom p { margin: 0; font-size: 13px; color: #9ca3af; }
.zt-payment-icons { display: flex; gap: 8px; }
.zt-payment-icons span { border: 1px solid #374151; border-radius: 5px; padding: 3px 9px; font-size: 11px; color: #9ca3af; }

/* ==================== 其他 ==================== */
.zt-404 { text-align: center; padding: 80px 0; }
.zt-404 h1 { font-size: 72px; margin: 0; }
.zt-post { margin-bottom: 28px; }
.zt-post-title a { color: var(--zt-ink); }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
	.zt-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
	.zt-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; background: #fff; z-index: 1000; padding: 80px 20px 20px; transform: translateX(100%); transition: transform .25s; box-shadow: -12px 0 40px rgba(0,0,0,.15); overflow: auto; }
	.zt-nav.open { transform: translateX(0); }
	.zt-menu { flex-direction: column; gap: 0; }
	.zt-menu .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 14px; }
	.zt-menu li.open > .sub-menu { display: block; }
	.zt-cols-4 { grid-template-columns: repeat(3, 1fr); }
	.zt-shop-layout { grid-template-columns: 220px 1fr; gap: 20px; }
	.zt-hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
	.zt-hero-visual { height: 240px; max-width: 420px; }
	.zt-footer-top { grid-template-columns: 1fr 1fr; }
	.zt-product-detail { grid-template-columns: 1fr; }
	.zt-checkout-wrap .zt-checkout-form { grid-template-columns: 1fr; }
	.zt-cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.zt-cols-3, .zt-cols-4, .zt-cols-5 { grid-template-columns: repeat(2, 1fr); }
	.zt-usp-grid { grid-template-columns: 1fr; }
	.zt-bulk-grid { grid-template-columns: 1fr; }
	.zt-trust-badges { grid-template-columns: repeat(2, 1fr); }
	.zt-shop-layout { grid-template-columns: 1fr; }
	.zt-shop-sidebar { position: static; max-height: none; }
	.zt-shop-head { flex-direction: column; align-items: flex-start; }
	.zt-hero-copy h1 { font-size: 32px; }
	.zt-auth-grid { grid-template-columns: 1fr; }
	.zt-field-row { grid-template-columns: 1fr; }
	.zt-footer-top { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 24px; }
}

@media (max-width: 480px) {
	.zt-cols-3, .zt-cols-4, .zt-cols-5 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.zt-card-body { padding: 12px; }
	.zt-card-title { font-size: 13px; }
	.zt-section { padding: 40px 0; }
	.zt-trust-badges { grid-template-columns: 1fr; }
	.zt-pd-buy { flex-direction: column; }
}
