/* Product category content layout.
 * Reuses the original Elementor DOM and keeps all page content unchanged. */
@media (max-width: 1024px) {
	body.bmag-disc-layout-template :is(
		.elementor-element-7100f37,
		.elementor-element-198da57,
		.elementor-element-145868d,
		.elementor-element-89a8d68
	) {
		box-sizing: border-box;
	}

	body.bmag-disc-layout-template :is(
		.elementor-element-7100f37,
		.elementor-element-198da57,
		.elementor-element-145868d
	) > .elementor-container {
		max-inline-size: 920px;
		padding-inline: 18px;
	}

	body.bmag-disc-layout-template :is(
		.elementor-element-7100f37,
		.elementor-element-198da57,
		.elementor-element-145868d,
		.elementor-element-89a8d68
	) .elementor-heading-title {
		overflow-wrap: anywhere;
		text-align: start !important;
	}

	body.bmag-disc-layout-template .elementor-widget-button.elementor-fixed {
		display: none !important;
	}

	/* Grade selector: independent cards remove the broken shared border. */
	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav {
		border: 0 !important;
		display: grid !important;
		gap: 9px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin: 18px 0 0 !important;
		padding: 0 !important;
	}

	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav::before,
	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav::after {
		content: none !important;
		display: none !important;
	}

	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav > li {
		background: #f7fbfe !important;
		border: 1px solid #b9d7eb !important;
		border-radius: 10px;
		box-shadow: 0 3px 10px rgba(4, 92, 180, 0.06);
		display: flex !important;
		inline-size: auto !important;
		margin: 0 !important;
		min-inline-size: 0;
		overflow: hidden;
	}

	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav > li > a {
		align-items: center;
		border: 0 !important;
		box-sizing: border-box;
		display: flex !important;
		inline-size: 100%;
		justify-content: center;
		min-block-size: 76px;
		padding: 11px 7px !important;
		text-align: center;
	}

	body.bmag-disc-layout-template .elementor-element-7100f37 .elementskit-tab-title {
		color: #045cb4 !important;
		font-family: Arial, sans-serif !important;
		font-size: clamp(14px, 3.8vw, 17px) !important;
		font-weight: 700 !important;
		line-height: 1.35 !important;
		overflow-wrap: anywhere;
		white-space: normal !important;
	}

	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav > li.active,
	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav > li:hover {
		background: #e8f7fd !important;
		border-color: #35c0f4 !important;
	}

	/* Coatings: flatten the two legacy columns into one responsive card grid. */
	body.bmag-disc-layout-template .elementor-element-b5f55d5 > .elementor-container {
		display: grid !important;
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.page-id-2941.bmag-disc-layout-template .elementor-element-f385edb > .elementor-container {
		display: grid !important;
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.page-id-2941.bmag-disc-layout-template .elementor-element-f385edb > .elementor-container > .elementor-column,
	body.page-id-2941.bmag-disc-layout-template .elementor-element-f385edb > .elementor-container > .elementor-column > .elementor-widget-wrap {
		display: contents !important;
	}

	body.bmag-disc-layout-template .elementor-element-b5f55d5 :is(
		.elementor-element-40ef22d,
		.elementor-element-a8c7254,
		.elementor-element-40ef22d > .elementor-widget-wrap,
		.elementor-element-a8c7254 > .elementor-widget-wrap
	) {
		display: contents !important;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-widget-button {
		display: none !important;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-widget-image-box {
		background: #fff;
		border: 1px solid #dbe8f1;
		border-radius: 14px;
		box-shadow: 0 7px 20px rgba(11, 54, 84, 0.07);
		inline-size: auto !important;
		margin: 0 !important;
		min-inline-size: 0;
		padding: 14px 10px 16px;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-image-box-wrapper {
		align-items: center;
		display: flex !important;
		flex-direction: column;
		block-size: 100%;
		text-align: center !important;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-image-box-img {
		inline-size: 78px !important;
		margin: 0 auto 10px !important;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-image-box-img img {
		aspect-ratio: 1;
		block-size: 78px;
		inline-size: 78px;
		object-fit: contain;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-image-box-content {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-inline-size: 0;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-image-box-title {
		color: #0b3654 !important;
		font-family: Arial, sans-serif !important;
		font-size: clamp(15px, 4vw, 18px) !important;
		font-weight: 700 !important;
		line-height: 1.3 !important;
		margin: 0 0 8px !important;
		overflow-wrap: anywhere;
	}

	body.bmag-disc-layout-template :is(.elementor-element-b5f55d5, .elementor-element-f385edb) .elementor-image-box-description {
		color: #4d5e6b !important;
		font-family: Arial, sans-serif !important;
		font-size: clamp(13px, 3.45vw, 15px) !important;
		line-height: 1.48 !important;
		margin: auto 0 0 !important;
		overflow-wrap: anywhere;
	}

	/* Technical specifications: one text card and equal image cards. */
	body.bmag-disc-layout-template .elementor-element-145868d > .elementor-container {
		display: grid !important;
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-element-b9b79ff {
		background: #f4f9fc;
		border: 1px solid #d8e7f0;
		border-radius: 15px;
		grid-column: 1 / -1;
		inline-size: 100% !important;
		padding: 20px 18px;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-element-b9b79ff > .elementor-widget-wrap {
		padding: 0 !important;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-element-b9b79ff .elementor-widget-text-editor,
	body.bmag-disc-layout-template .elementor-element-145868d .elementor-element-b9b79ff .elementor-widget-text-editor :is(p, li) {
		font-family: Arial, sans-serif !important;
		font-size: clamp(15px, 4vw, 17px) !important;
		line-height: 1.55 !important;
		text-align: start !important;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-element-b9b79ff :is(ul, ol) {
		margin-block: 10px 14px;
		padding-inline-start: 22px;
	}

	body.bmag-disc-layout-template .elementor-element-145868d :is(
		.elementor-element-a7880e0,
		.elementor-element-624e972,
		.elementor-element-a7880e0 > .elementor-widget-wrap,
		.elementor-element-624e972 > .elementor-widget-wrap
	) {
		display: contents !important;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-widget-image {
		background: #fff;
		border: 1px solid #dbe8f1;
		border-radius: 14px;
		box-shadow: 0 6px 18px rgba(11, 54, 84, 0.06);
		inline-size: auto !important;
		margin: 0 !important;
		min-inline-size: 0;
		padding: 12px 9px 14px;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-widget-image .elementor-widget-container {
		display: flex;
		flex-direction: column;
		block-size: 100%;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-widget-image img {
		aspect-ratio: 4 / 3;
		block-size: auto;
		inline-size: 100%;
		max-block-size: 138px;
		object-fit: contain;
	}

	body.bmag-disc-layout-template .elementor-element-145868d .widget-image-caption {
		color: #526574 !important;
		font-family: Arial, sans-serif !important;
		font-size: clamp(12px, 3.25vw, 14px) !important;
		line-height: 1.4 !important;
		margin-block-start: auto;
		overflow-wrap: anywhere;
		padding-block-start: 9px;
		text-align: center !important;
	}

	/* Quality and certifications: compact trust panel with badge cards. */
	body.bmag-disc-layout-template .elementor-element-89a8d68 {
		padding: 32px 18px !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 > .elementor-container {
		display: block !important;
		max-inline-size: 920px;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 :is(
		.elementor-element-d150c1e,
		.elementor-element-e1d60f4
	) {
		inline-size: 100% !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-d150c1e > .elementor-widget-wrap {
		padding: 0 0 22px !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-d150c1e .elementor-widget-text-editor,
	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-d150c1e .elementor-widget-text-editor p {
		font-family: Arial, sans-serif !important;
		font-size: clamp(15px, 4vw, 17px) !important;
		line-height: 1.55 !important;
		text-align: start !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 > .elementor-widget-wrap {
		align-items: stretch !important;
		display: grid !important;
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 .elementor-widget {
		background: #fff;
		border: 1px solid rgba(255, 255, 255, 0.42);
		border-radius: 14px;
		box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
		inline-size: auto !important;
		margin: 0 !important;
		min-inline-size: 0;
		padding: 14px 10px;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 .elementor-widget-container,
	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 .elementor-image-box-wrapper {
		display: flex;
		flex-direction: column;
		block-size: 100%;
		justify-content: space-between;
		text-align: center !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 img {
		block-size: 76px;
		inline-size: 100% !important;
		max-inline-size: 100% !important;
		object-fit: contain;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 .elementor-image-box-img {
		inline-size: 100% !important;
		max-inline-size: 100% !important;
	}

	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 :is(
		.widget-image-caption,
		.elementor-image-box-title
	) {
		color: #0b3654 !important;
		font-family: Arial, sans-serif !important;
		font-size: clamp(13px, 3.5vw, 15px) !important;
		font-weight: 700 !important;
		line-height: 1.4 !important;
		margin: 9px 0 0 !important;
		overflow-wrap: anywhere;
		text-align: center !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body.bmag-disc-layout-template .elementor-element-b5f55d5 > .elementor-container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body.bmag-disc-layout-template .elementor-element-145868d > .elementor-container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 359px) {
	body.bmag-disc-layout-template .elementor-element-7100f37 .elementkit-tab-nav,
	body.bmag-disc-layout-template .elementor-element-b5f55d5 > .elementor-container,
	body.bmag-disc-layout-template .elementor-element-145868d > .elementor-container,
	body.bmag-disc-layout-template .elementor-element-89a8d68 .elementor-element-e1d60f4 > .elementor-widget-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.bmag-disc-layout-template .elementor-element-145868d .elementor-element-b9b79ff {
		grid-column: 1 / -1;
	}
}
