.tianfa-elementor-root.e-con,
.tianfa-elementor-root > .e-con-inner {
	--container-max-width: 100%;
	--content-width: 100%;
	--padding-top: 0;
	--padding-right: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--gap: 0;
	width: 100%;
	max-width: none;
	padding: 0;
	gap: 0;
	min-width: 0;
	max-width: 100%;
}

.tianfa-elementor-root > .elementor-element,
.tianfa-elementor-root .elementor-widget-container {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

html,
body {
	max-width: 100%;
	overflow-x: clip;
}

.tianfa-elementor-page .hero-copy,
.tianfa-elementor-page .section-heading,
.tianfa-elementor-page .trust-grid > div {
	min-width: 0;
}

.tianfa-elementor-page .trust-grid span {
	overflow-wrap: anywhere;
}

.tianfa-editable-richtext > *:last-child,
.tianfa-editable-card p:last-child {
	margin-bottom: 0;
}

/* Let editable card groups use their actual item count instead of leaving
 * unused four-column tracks beside shorter groups. */
.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-1 {
	grid-template-columns: minmax(0, 1fr);
}

.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Dark capability sections need their own card treatment. The base value-card
 * style is intentionally pale and was making this section look disabled. */
.tianfa-elementor-page .application-section .tianfa-card-grid {
	border-color: rgba(255, 255, 255, .18);
	background: rgba(255, 255, 255, .025);
}

.tianfa-elementor-page .application-section .tianfa-card-grid article,
.tianfa-elementor-page .application-section .tianfa-card-grid article:nth-child(2n) {
	color: #fff;
	border-color: rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .045);
	transition: background-color .25s ease, transform .25s ease;
}

.tianfa-elementor-page .application-section .tianfa-card-grid article:hover {
	background: rgba(255, 255, 255, .09);
	transform: translateY(-4px);
}

.tianfa-elementor-page .application-section .tianfa-card-grid article > span,
.tianfa-elementor-page .application-section .tianfa-card-grid .arrow-link {
	color: var(--lime);
}

.tianfa-elementor-page .application-section .tianfa-card-grid h3 {
	color: #fff;
}

.tianfa-elementor-page .application-section .tianfa-card-grid p {
	color: rgba(255, 255, 255, .62);
}

.tf-editor-note {
	margin: 24px auto;
	max-width: 920px;
	padding: 18px 22px;
	border: 1px solid #d9e4dc;
	background: #f7faf8;
	color: #284238;
}

@media (max-width: 860px) {
	.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-3,
	.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 580px) {
	.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-2,
	.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-3,
	.tianfa-elementor-page .tianfa-card-grid.tianfa-grid-count-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.tianfa-elementor-page .hero h1 {
		max-width: 100%;
		font-size: clamp(46px, 13.2vw, 58px);
		line-height: .94;
	}

	.tianfa-elementor-page .hero-lead,
	.tianfa-elementor-page .hero-proof {
		max-width: calc(100vw - 42px);
	}

	.tianfa-elementor-page .trust-grid strong {
		font-size: 34px;
	}
}

/* ------------------------------------------------------------------
   WooCommerce catalogue support
   Products are managed in WooCommerce; the Tianfa design is unchanged.
   ------------------------------------------------------------------ */
.product-visual.has-cover .product-cover,
.detail-pack-visual.has-cover .product-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-visual.has-cover::before {
	z-index: 1;
}

.detail-pack-visual.has-cover .product-cover {
	position: relative;
	z-index: 2;
}

.product-price {
	margin: -4px 0 16px;
	color: var(--green-700, #1f6b3a);
	font-size: 14px;
	font-weight: 700;
}

.product-detail-price {
	margin-bottom: 18px !important;
	color: #fff !important;
	font-size: 22px;
	font-weight: 700;
}

.tianfa-woo-price {
	margin: 0 !important;
	font-size: 24px;
}

.tianfa-woo-buy .section-heading {
	align-items: flex-end;
}

.product-empty {
	margin-top: 42px;
	color: var(--ink-soft, #5a6b60);
	font-size: 14px;
}

.spec-table strong del,
.product-price del {
	opacity: .55;
}

.tianfa-woo-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin-top: 30px;
}

.tianfa-woo-cart form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	margin: 0;
}

.tianfa-woo-cart .quantity input.qty {
	width: 92px;
	padding: 13px 15px;
	border: 1px solid rgba(11, 57, 40, .18);
	border-radius: 10px;
	font: inherit;
}

.tianfa-woo-cart .single_add_to_cart_button,
.tianfa-woo-cart button.button,
.tianfa-woo-cart a.button {
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--green-700, #1f6b3a);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s;
}

.tianfa-woo-cart .single_add_to_cart_button:hover {
	box-shadow: 0 16px 34px rgba(11, 57, 40, .22);
	transform: translateY(-2px);
}

.tianfa-woo-cart .stock {
	margin: 0;
	color: var(--ink-soft, #5a6b60);
	font-size: 13px;
}

/* WooCommerce account, cart and checkout screens keep the site typography. */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
	max-width: 1180px;
	margin: 0 auto;
	padding: 90px 24px 110px;
}

.woocommerce-cart .woocommerce h1,
.woocommerce-checkout .woocommerce h1,
.woocommerce-account .woocommerce h1 {
	margin-bottom: 28px;
	font-size: clamp(34px, 4vw, 50px);
}

.woocommerce-cart .woocommerce .button,
.woocommerce-checkout .woocommerce .button,
.woocommerce-account .woocommerce .button {
	border-radius: 999px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-radius: 12px;
	list-style: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: 13px 15px;
	border: 1px solid rgba(11, 57, 40, .18);
	border-radius: 10px;
}

.woocommerce nav.woocommerce-pagination {
	margin-top: 45px;
}
