/*
Theme Name: GearsGood Kadence Child
Template: kadence
*/

/* 目录模式：隐藏价格与购物车图标（PHP 已移除，CSS 兜底） */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .amount,
.woocommerce .woocommerce-Price-amount,
.header-cart,
.header-cart-wrap,
.kadence-header-cart,
.site-header-cart,
.widget_shopping_cart,
.woocommerce-mini-cart {
	display: none !important;
}

/* 列表 View Details / 详情 Get a Quote 按钮 */
.gg-catalog-btn {
	display: inline-block;
	margin-top: 10px;
}
.gg-quote-btn {
	background: #1a2733;
	color: #ffffff !important;
	padding: 13px 32px;
	font-weight: 600;
	letter-spacing: 0.4px;
	border-radius: 3px;
	margin-top: 12px;
}
.gg-quote-btn:hover {
	background: #2c4254;
	color: #ffffff !important;
}
/* ============================================================
 * GearsGood 产品详情长模板样式（追加到子主题 style.css）
 * ============================================================ */

/* ============================================================
 * 设计令牌（统一颜色 / 圆角；全站改色只改这一处）
 *   --gg-navy       品牌主色：标题、规格表头、深色名片
 *   --gg-btn        主按钮颜色（默认=主色，可单独改而不影响标题）
 *   --gg-text*      正文 / 强调 / 次要文字
 *   --gg-card*      深色名片上的文字
 *   --gg-border* / --gg-surface* / --gg-info*  边框、浅底、提示条
 *   --gg-whatsapp*  WhatsApp 专用绿，独立于主色，勿与蓝混用
 * ============================================================ */
:root {
  --gg-navy: #1a2733;
  --gg-btn: #1a2733;
  --gg-btn-hover: #2c4254;

  --gg-text: #3c4750;
  --gg-text-strong: #2a3540;
  --gg-text-muted: #5a6672;
  --gg-text-muted-2: #4a5a68;

  --gg-card-text: #e8edf2;
  --gg-card-muted: #93a3b3;
  --gg-card-muted-2: #b6c2cf;

  --gg-border: #e1e6ea;
  --gg-border-soft: #e7ebef;
  --gg-border-row: #eef1f4;
  --gg-surface: #f7f9fa;
  --gg-surface-2: #f4f7f9;
  --gg-info-bg: #eef4fa;
  --gg-info-border: #cdddec;

  --gg-radius-sm: 6px;
  --gg-radius: 8px;
  --gg-radius-lg: 10px;

  --gg-whatsapp: #25d366;
  --gg-whatsapp-dark: #1fb858;
  --gg-whatsapp-shadow: rgba(20, 120, 60, .35);
  --gg-whatsapp-shadow-hover: rgba(20, 120, 60, .45);
}
/* 主按钮统一走变量（覆盖基底同名规则；改 --gg-btn 即可改全部按钮，WhatsApp 不受影响） */
.gg-quote-btn { background: var(--gg-btn); }
.gg-quote-btn:hover { background: var(--gg-btn-hover); }

.gg-sec {
	max-width: 1200px;
	margin: 0 auto;
	padding: 42px 0 8px;
}
.gg-sec + .gg-sec { border-top: 1px solid var(--gg-border-soft); }
/* 清除图廊/摘要两栏浮动，让长模板整段下移到两栏下方全宽（修复标题装饰线与正文挤入图廊） */
.woocommerce div.product .gg-sec { clear: both; }
.gg-sec-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--gg-navy);
	letter-spacing: 0.2px;
	margin: 0 0 22px;
	padding-bottom: 12px;
	position: relative;
}
.gg-sec-title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 54px; height: 3px;
	background: var(--gg-navy);
	border-radius: 2px;
}
.gg-sec-body,
.gg-common-copy { color: var(--gg-text); line-height: 1.75; font-size: 16px; }
.gg-sec-body p,
.gg-common-copy p { margin: 0 0 16px; }
.gg-common-copy a { color: var(--gg-navy); font-weight: 600; text-decoration: underline; }

/* Features & Benefits */
.gg-feature-list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 28px;
}
.gg-feature-list li {
	position: relative;
	padding: 4px 0 4px 36px;
	line-height: 1.6;
	color: var(--gg-text);
	font-size: 15.5px;
}
.gg-feature-list li::before {
	content: "";
	position: absolute;
	left: 0; top: 6px;
	width: 22px; height: 22px;
	border-radius: 50%;
	background-color: var(--gg-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px 13px;
}
.gg-feature-list li strong { display: block; color: var(--gg-navy); font-weight: 700; margin-bottom: 2px; }
.gg-feature-list li span { display: block; }

/* Technical Specifications —— 锁定列宽，表头与数据严格对齐 */
.gg-spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gg-border); border-radius: var(--gg-radius-sm); }
.wp-site-blocks table.gg-spec-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 15px;
	min-width: 520px;
}
.wp-site-blocks table.gg-spec-table thead th,
.wp-site-blocks table.gg-spec-table tbody td {
	padding: 12px 18px;
	text-align: left;
	box-sizing: border-box;
}
.wp-site-blocks table.gg-spec-table thead th {
	background: var(--gg-navy);
	color: #ffffff;
	font-weight: 600;
	vertical-align: middle;
	white-space: nowrap;
}
.wp-site-blocks table.gg-spec-table tbody td {
	border-bottom: 1px solid var(--gg-border-row);
	color: var(--gg-text);
	vertical-align: top;
}
.wp-site-blocks table.gg-spec-table tbody tr:nth-child(even) td { background: var(--gg-surface); }
.wp-site-blocks table.gg-spec-table tbody tr:last-child td { border-bottom: none; }
.wp-site-blocks table.gg-spec-table th.gg-spec-name,
.wp-site-blocks table.gg-spec-table td.gg-spec-name { width: 30%; font-weight: 600; }
.wp-site-blocks table.gg-spec-table td.gg-spec-name { color: var(--gg-navy); }
.wp-site-blocks table.gg-spec-table th.gg-spec-name { color: #ffffff; }

/* Applications */
.gg-app-img { margin: 0 0 20px; }
.gg-app-img img { width: 100%; height: auto; border-radius: var(--gg-radius); display: block; }

/* Product Details（07+ 详情长图：限宽居中、竖排、懒加载） */
.gg-detail-imgs { max-width: 820px; margin: 0 auto; }
.gg-detail-img { margin: 0 0 18px; }
.gg-detail-img:last-child { margin-bottom: 0; }
.gg-detail-img img { width: 100%; height: auto; border-radius: var(--gg-radius); display: block; }
@media (max-width: 600px) {
	.gg-detail-imgs { max-width: 100%; }
}

/* Factory & Packaging */
.gg-factory-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 22px; }
.gg-factory-imgs figure { margin: 0; }
.gg-factory-imgs img { width: 100%; height: auto; border-radius: var(--gg-radius); display: block; }
.gg-factory-imgs figcaption { text-align: center; color: var(--gg-text-muted); font-size: 14px; margin-top: 10px; font-weight: 600; }
.gg-pack-line { color: var(--gg-text); font-size: 15.5px; line-height: 1.7; }
.gg-cta-box {
	margin-top: 26px;
	padding: 30px 28px;
	text-align: center;
	background: var(--gg-surface-2);
	border: 1px solid var(--gg-border);
	border-radius: var(--gg-radius-lg);
}
.gg-cta-box p { margin: 0 0 18px; color: var(--gg-text-strong); font-size: 16.5px; font-weight: 500; }

/* 桌面端：Shop / 分类等 WooCommerce 归档页顶部标题避让悬浮透明 header
   （悬浮 header 容器 margin-top 24px + 行高 80px ≈ 104px，留 118px）；
   移动端（≤1024px）header 不透明且不悬浮，无需避让 */
@media (min-width: 1025px) {
	body.woocommerce.archive .entry-hero {
		padding-top: 118px;
	}
}

/* 移动端 */
@media (max-width: 768px) {
	.gg-sec { padding: 30px 0 6px; }
	.gg-sec-title { font-size: 22px; margin-bottom: 16px; }
	.gg-feature-list { grid-template-columns: 1fr; gap: 12px; }
	.gg-factory-imgs { grid-template-columns: 1fr; gap: 18px; }
	.gg-spec-table { min-width: 420px; }
	.gg-cta-box { padding: 24px 18px; }
}

/* ============================================================
 * Contact 询盘页：上方标题 + 左名片 / 右表单，限宽居中
 * ============================================================ */
.gg-contact-head {
	max-width: 1200px;
	margin: 0 auto;
	padding: 46px 24px 10px;
	text-align: center;
}
.gg-contact-head h1 {
	font-size: 36px;
	font-weight: 800;
	color: var(--gg-navy);
	margin: 0 0 10px;
}
.gg-contact-head p {
	max-width: 720px;
	margin: 0 auto;
	color: var(--gg-text-muted-2);
	font-size: 16px;
	line-height: 1.6;
}
/* 桌面端透明悬浮 header 约 104px 高，避让大标题，避免被导航遮挡 */
@media ( min-width: 1025px ) {
	.gg-contact-head { padding-top: 120px; }
}
.gg-contact-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 24px 60px;
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 48px;
	align-items: stretch;
}
.gg-contact-info {
	background: var(--gg-navy);
	color: var(--gg-card-text);
	border-radius: var(--gg-radius-lg);
	padding: 34px 30px;
	display: flex;
	flex-direction: column;
}
.gg-contact-info h2 {
	color: #ffffff;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 10px;
}
.gg-contact-info .gg-ci-sub {
	color: var(--gg-card-muted-2);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 18px;
}
.gg-contact-info ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.gg-contact-info li {
	padding: 13px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.gg-contact-info li:last-child { border-bottom: none; }
.gg-ci-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--gg-card-muted);
}
.gg-ci-value {
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	word-break: break-word;
}
.gg-ci-value a { color: #ffffff; text-decoration: none; }
.gg-ci-value a:hover { text-decoration: underline; }
/* 名片底部 WhatsApp CTA：margin-top:auto 贴底，使名片框与表单等高 */
.gg-ci-wa { margin-top: auto; padding-top: 26px; }
.gg-ci-wa-hint {
	color: var(--gg-card-muted);
	font-size: 12px;
	margin: 0 0 10px;
}
.gg-ci-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--gg-whatsapp);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	padding: 12px 20px;
	border-radius: var(--gg-radius);
	text-decoration: none;
	transition: background .2s, transform .2s;
}
.gg-ci-wa-btn:hover { background: var(--gg-whatsapp-dark); color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.gg-ci-wa-btn .gg-wa-icon { width: 21px; height: 21px; }
.gg-contact-form { min-width: 0; }
.gg-contact-form .fluentform_wrapper_4 {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* 产品页 Get a Quote 带入后的提示条 */
.gg-inquiry-product {
	background: var(--gg-info-bg);
	border: 1px solid var(--gg-info-border);
	border-left: 4px solid var(--gg-navy);
	border-radius: var(--gg-radius-sm);
	padding: 12px 16px;
	margin-bottom: 22px;
	font-size: 14px;
	color: var(--gg-navy);
	line-height: 1.5;
}
.gg-inquiry-product .gg-ip-label { color: var(--gg-text-muted-2); font-weight: 600; }
.gg-inquiry-product strong { color: var(--gg-navy); }
.gg-inquiry-product .gg-ip-sku { color: var(--gg-text-muted); font-weight: 600; }

@media (max-width: 900px) {
	.gg-contact-head { padding: 28px 20px 6px; }
	.gg-contact-head h1 { font-size: 28px; }
	.gg-contact-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 22px 20px 46px;
	}
}

/* ============================================================
 * 全站右下浮动 WhatsApp 按钮（所有前台页面）
 * ============================================================ */
.gg-wa-float {
	position: fixed;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 58px;
	height: 58px;
	background: var(--gg-whatsapp);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px var(--gg-whatsapp-shadow);
	z-index: 9998;
	transition: box-shadow .2s ease, transform .2s ease;
}
.gg-wa-float:hover {
	transform: translateY(-50%) scale(1.08);
	color: #fff;
	box-shadow: 0 8px 24px var(--gg-whatsapp-shadow-hover);
}
.gg-wa-float .gg-wa-icon { width: 32px; height: 32px; display: block; }
.gg-wa-float::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--gg-whatsapp);
	z-index: -1;
	animation: gg-wa-pulse 2.4s ease-out infinite;
}
@keyframes gg-wa-pulse {
	0%   { transform: scale(1);    opacity: .55; }
	70%  { transform: scale(1.55); opacity: 0; }
	100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 600px) {
	.gg-wa-float { width: 52px; height: 52px; right: 14px; }
	.gg-wa-float .gg-wa-icon { width: 28px; height: 28px; }
}
