/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* B2B catalog page (/geschaeft): keep the grid clean and strictly 2 columns.
   Hide the shop toolbar extras (result count, per-page links, column switch,
   ordering dropdown, off-canvas sidebar button) so only the breadcrumb stays.
   Also hide retail sale/label badges so cards show only image + category + title. */
.woodmart-archive-shop .wd-shop-tools .woocommerce-result-count,
.woodmart-archive-shop .wd-shop-tools .wd-products-per-page,
.woodmart-archive-shop .wd-shop-tools .wd-products-shop-view,
.woodmart-archive-shop .wd-shop-tools .woocommerce-ordering,
.woodmart-archive-shop .wd-shop-tools .wd-show-sidebar-btn,
.woodmart-archive-shop .wd-product .product-labels,
.woodmart-archive-shop .products .onsale {
	display: none !important;
}

/* B2B catalog: size the cards like the mydevape reference.
   Thumb is forced to a 16:9 landscape banner (object-fit crops the current
   square source until 16:9 assets are uploaded); no hover swap, no empty
   add-to-cart/rating leftovers; category sits above the title. */
.woodmart-archive-shop main#main-content {
	--wd-container-w: 1300px; /* cap content width so cards render ~630px like the reference */
}
.woodmart-archive-shop .products.wd-grid-g {
	row-gap: 48px !important;
	column-gap: 32px !important;
}
.woodmart-archive-shop .wd-product {
	background: #fff;
	border: none;
	box-shadow: none;
}
.woodmart-archive-shop .wd-product-wrapper {
	display: flex;
	flex-direction: column;
}
/* Produktbilder sind quadratisch (1:1) - der Container ebenfalls 1:1.
   Zusammen mit object-fit: contain wird das Bild vollstaendig und unbeschnitten gezeigt. */
.woodmart-archive-shop .wd-product-thumb {
	order: 1;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin-bottom: 12px;
	border-radius: 12px;
}
.woodmart-archive-shop .wd-product-img-link {
	display: block;
	width: 100%;
	height: 100%;
}
.woodmart-archive-shop .wd-product-img-link img {
	width: 100%;
	height: 100%;
	object-fit: contain; /* Nur Darstellung: Bild vollstaendig sichtbar, kein Beschnitt */
	object-position: center;
}
.woodmart-archive-shop .wd-product-img-hover,
.woodmart-archive-shop .wrapp-buttons,
.woodmart-archive-shop .wd-product .wd-buttons,
.woodmart-archive-shop .wd-product .star-rating {
	display: none !important;
}
.woodmart-archive-shop .wd-product-cats {
	order: 2;
	margin-bottom: 2px;
}
.woodmart-archive-shop .wd-product-cats a {
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #777;
	text-decoration: none;
}
.woodmart-archive-shop .wd-entities-title {
	order: 3;
	margin: 0;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 600;
}
.woodmart-archive-shop .wd-entities-title a {
	color: #111;
	text-decoration: none;
}
.woodmart-archive-shop .wd-entities-title a:hover {
	color: #1a7a42;
}

/* H1 for the B2B catalog page (/geschaeft). The theme's own archive title is
   switched off, so this heading is the page's only H1 - keep it compact so it
   reads as a page heading without turning into a banner. */
.woodmart-archive-shop .jimo-shop-title {
	margin: 0 0 22px;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 600;
	color: #111;
}
@media (max-width: 768px) {
	.woodmart-archive-shop .jimo-shop-title {
		font-size: 21px;
		margin-bottom: 16px;
	}
}

/* Related "Verwandte Produkte" cards on the single product page: hide the
   star rating block (the visible 4.97 / 5.00 line) under each card. */
.single-product .wd-product .star-rating {
	display: none !important;
}

/* Wholesale purchase information shown above the variation/order form. */
.jimo-wholesale-notice {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-left: 4px solid #1a7a42;
	background: #f4f8f5;
	color: #222;
	font-size: 14px;
	line-height: 1.65;
}
.jimo-price-tax {
	font-size: .68em;
	font-weight: 400;
	white-space: nowrap;
}

/* Age gate (21+), structure/classes follow the szfumotvape reference markup */
.age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .82);
	padding: 20px;
}
.age-gate.is-visible {
	display: flex;
}
.age-gate__form {
	max-width: 520px;
	width: 100%;
	background: #111;
	color: #fff;
	border-radius: 16px;
	padding: 34px 30px 26px;
	text-align: center;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.age-gate__heading img {
	max-width: 300px;
	width: 100%;
	height: auto;
}
.age-gate__headline {
	margin: 18px 0 8px;
	font-size: 24px;
	letter-spacing: 1px;
	color: #fff;
}
.age-gate__subheadline {
	margin: 0 0 18px;
	color: #cfcfcf;
	line-height: 1.6;
	font-size: 15px;
}
.age-gate__challenge {
	font-size: 17px;
	margin: 0 0 16px;
	color: #fff;
}
.age-gate__buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
}
.age-gate__submit {
	border: 0;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: .5px;
	padding: 13px 26px;
	border-radius: 8px;
	font-size: 15px;
}
.age-gate__submit--no {
	background: #2a2a2a;
	color: #ddd;
}
.age-gate__submit--yes {
	background: #1a7a42;
	color: #fff;
}
.age-gate__additional-information {
	margin-top: 22px;
	font-size: 12px;
	color: #9a9a9a;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: .5px;
}
/* @media (max-width: 600px) {
	.age-gate__buttons {
		flex-direction: column;
	}
} */

/* 替换位置 */
@media (max-width: 600px) {
	.age-gate {
		box-sizing: border-box;
		padding: 12px;
		overflow-y: auto;
	}

	.age-gate__form {
		box-sizing: border-box;
		width: calc(100vw - 24px);
		max-width: calc(100vw - 24px);
		max-height: calc(100dvh - 24px);
		overflow-y: auto;
		padding: 20px 16px 18px;
	}

	.age-gate__heading img {
		max-width: 180px;
	}

	.age-gate__headline {
		margin: 14px 0 8px;
		font-size: 20px;
		line-height: 1.25;
		letter-spacing: .4px;
		overflow-wrap: anywhere;
	}

	.age-gate__subheadline {
		margin-bottom: 14px;
		font-size: 14px;
		line-height: 1.45;
	}

	.age-gate__challenge {
		margin-bottom: 12px;
		font-size: 15px;
	}

	.age-gate__buttons {
		flex-direction: column;
		gap: 8px;
		width: 100%;
	}

	.age-gate__submit {
		width: 100%;
		padding: 12px 10px;
		font-size: 14px;
	}

	.age-gate__additional-information {
		margin-top: 14px;
		font-size: 10px;
		line-height: 1.4;
		letter-spacing: .25px;
		overflow-wrap: anywhere;
	}
}

/* Mobile header: prevent horizontal overflow. */
@media (max-width: 767px) {
	.whb-header_833025 .wd-header-cart .wd-tools-text {
		display: none !important;
	}

	.whb-header_833025 .whb-mobile-right {
		min-width: 0 !important;
	}
}

/* Very small screens: keep only the hamburger icon. */
@media (max-width: 360px) {
	.whb-header_833025 .wd-header-mobile-nav .wd-tools-text {
		display: none !important;
	}
}



/* CF7 enquiry/contact forms: two-column "quote" layout (like the mydevape
   reference form). Fields are wrapped in .cf7-form-row > .cf7-form-col. */
.wpcf7-form .cf7-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 28px;
}
.wpcf7-form .cf7-form-col {
	min-width: 0;
	margin-bottom: 18px;
}
.wpcf7-form .cf7-form-col.full {
	grid-column: 1 / -1;
}
.wpcf7-form .cf7-form-col input[type="text"],
.wpcf7-form .cf7-form-col input[type="email"],
.wpcf7-form .cf7-form-col input[type="number"],
.wpcf7-form .cf7-form-col input[type="tel"],
.wpcf7-form .cf7-form-col textarea {
	width: 100%;
}
@media (max-width: 600px) {
	.wpcf7-form .cf7-form-row {
		grid-template-columns: 1fr;
	}
}

/* Normale Ueberschrift fuer Seiten, die nach dem Entfernen des schwarzen Seitenleisten-Banners weiterhin eine H1 brauchen. */
.jimo-plain-h1-wrap {
	margin-top: 28px;
}
.jimo-plain-h1 {
	margin: 0 0 12px;
	padding: 0;
	font-size: 30px;
	line-height: 1.3;
	font-weight: 600;
	color: #1b1b1b;
	text-transform: none;
}
@media (max-width: 767px) {
	.jimo-plain-h1-wrap { margin-top: 18px; }
	.jimo-plain-h1 { font-size: 23px; }
}

/* CF7 蜜罐字段（2026-09-15）：对真人不可见，对简单机器人可见。
   用绝对定位移出视口，而不是 display:none —— 部分机器人会跳过 display:none 的字段。
   校验逻辑在 functions.php 的 jimo_cf7_honeypot_check()。 */
.jimo-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}




/* 我的账户页：Google 登录按钮居中 */
body.woocommerce-account div.nsl-container.nsl-container-block {
	text-align: center !important;
}
