:root {
	/* base colors, only edit here, could any late comers please */
	--color-brand: #c4161c;
	--color-brand-secondary: #D9AB73;
	--color-default: oklch(from var(--color-brand) calc(l - 0.1) 0 h);
	--color-background: white;
	/* the mixes */
	--color-primary: var(--color-brand);
	--color-primary-dark: oklch(from var(--color-primary) calc(l - 0.20) c h);
	--color-primary-light: oklch(from var(--color-primary) calc(l + 0.5) c h);
	--color-secondary: var(--color-brand-secondary);
	--color-secondary-dark: oklch(from var(--color-secondary) calc(l - 0.20) c h);
	--color-secondary-light: oklch(from var(--color-secondary) calc(l + 0.15) c h);
	--color-midpoint: color-mix(in oklch shorter hue, var(--color-brand), var(--color-brand-secondary));
	--color-border: color-mix(in oklch, var(--color-default) 33%, var(--color-background));
	/* force astra color to css */
	--ast-global-color-0: var(--color-brand) !important;
	--ast-global-color-1: var(--color-brand-secondary) !important;
	--ast-global-color-2: color-mix(in oklch, var(--color-brand), black 15%) !important;
	--ast-global-color-3: var(--color-default) !important;
	--ast-global-color-4: var(--color-background) !important;
	--ast-global-color-5: color-mix(in oklch, var(--color-brand-secondary) 5%, var(--color-background));
	--ast-global-color-7: var(--color-border) !important;
	/* fonts */
	--font-heading: 'Roboto', sans-serif;
	--font-body: 'Raleway', sans-serif;
	--font-number: 'Lato', sans-serif;
	/* repeating numbers */
	--radius: clamp(8px, 0.75em, 12.5px);
	--radius-small: calc(var(--radius) / 2);
	--space-section-narrow: clamp(25px, 25%, 37.5px);
	--space-section-wide: clamp(27.5px, 33%, 50px);
	--space-section-narrow: clamp(35px, 2.5rem, 50px);
	--space-section-wide: clamp(75px, 5rem, 100px);
	--space: clamp(15px, 1em, 18px);
	--space-narrow: calc(var(--space) / 2);
	--space-wide: calc(var(--space) * 1.68);
	--bp-mobile: 480px;
	--bp-tablet: 960px;
	--border-default: 1px solid var(--color-border);
	--shadow-mild: 0 0 var(--space-narrow) oklch(0 0 0 / 0.375);
	/* The mask */
	--mask-squircle: url('/wp-content/uploads/squircle.svg');
	--mask-properties: no-repeat center / cover;
}

/* ========== DEFAULT ELEMENTS  ========== */
.bigi-instruction {
	color: var(--color-default);
	font-size: 0.8rem;
	opacity: 0.8;
	line-height: 1.4;
}

.single-post p {
	margin-bottom: 1.5em;
}

p:last-child {
	margin-bottom: 0;
}

h2.prime-heading {
	font-size: max(1.5em, 2.25rem);

	&::after {
		position: absolute;
		content: '';
		display: inline-block;
		width: 1em;
		height: 1em;
		margin: 0 var(--space-narrow);
		aspect-ratio: 1 / 1;
		background: url('/wp-content/uploads/Decorate-Arrow-Red.svg') center center / contain no-repeat;
		transform: translateY(15%);
	}
}

.squircle {
	-webkit-mask-image: var(--mask-squircle) var(--mask-properties);
	mask: var(--mask-squircle) var(--mask-properties);
}

.manual-inline-button {
	display: inline-flex;
	white-space: nobreak;
	background: var(--color-secondary-light);
	font-weight: 600;
	color: var(--color-default);
	border-radius: 2px;
	padding: 0.25ch 1ch;
	&:hover {
		background: var(--color-primary);
		color: var(--color-background) !important;
	}
}

.bigi-img-illustration {
	margin-top: var(--space);
	margin-bottom: var(--space);
	border: var(--border-default);
	border-radius: var(--radius);
	border: 1px solid var(--color-background);
	overflow: hidden;
	position: relative;
	filter: drop-shadow(var(--shadow-mild));
	transition: all 0.35s ease-in-out;

	>.wp-element-caption {
		position: absolute;
		width: 100%;
		bottom: 0;
		padding: var(--space-wide) var(--space) var(--space);
		margin: 0;
		background: linear-gradient(to top, #000A, #0000);
		font-size: 0.85rem;
		text-align: center;
		font-style: italic;
	}

	&:hover>img {
		transform: scale(1.25);
		transition: all 0.35s ease-in-out;
	}
}

.whitetext_withshadow {
	color: var(--color-background);
	text-shadow: 0.05ch 0.15ch 0.2ch #0008;
	filter: drop-shadow(0 0 0.2ch #0008);

	&::after {
		filter: grayscale(1) brightness(5);
	}
}

.card {
	padding: var(--space);
	border-radius: var(--radius);
	background-color: var(--color-background);
}

.card-feature-withimg {
	background-color: var(--color-background);
	padding: var(--space-narrow);
	border-radius: var(--radius-small);
	transition: all 1s cubic-bezier(0.48, 0.04, 0.52, 0.96);
	border: var(--border-default);

	&:hover {
		box-shadow: var(0px 15px 25px 0px rgba(0, 0, 0, 0.1));
	}

	.wp-block-greenshift-blocks-container {
		display: flex;
		justify-content: center;
		align-items: center;
	}
}

tag-sidebar-image {
	border: var(--border-default);
	border-radius: var(--radius);
	margin-bottom: var(--space);
	transition: all 1s cubic-bezier(0.48, 0.04, 0.52, 0.96);

	&:hover {
		box-shadow: var(--shadow-mild);
	}

	.illustration-img {
		aspect-ratio: 16/6;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: start;
		padding: var(--space-narrow);
		border-radius: var(--radius-small);
	}

	p {
		line-height: 1.25;
	}
}

.button-row {
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: center;

	.button-row-block {
		display: flex;
		padding: calc(var(--space-narrow)/4) 0.25ch;

		&:not(:last-child)::after {
			content: '';
			display: block;
			width: 1px;
			background: var(--color-default);
			margin: 0 calc(var(--space-narrow)/4));
		}

		a {
			display: block;
			padding: calc(var(--space-narrow)/4) 0.25ch;

			&:hover {
				background: var(--color-primary-dark);
				color: var(--color-background);
			}
		}
	}
}

/* breakdown of col element for mobile */
:has(> [class*="bigi-col-"]) {
	container-type: inline-size;
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space);
}

@container (max-width: 480px) {
	:has(> [class*="bigi-col-"]) {
		flex-direction: column;
	}

	[class*="bigi-col-"]:not(.noexpand) {
		--col-basis: 100% !important;
		max-width: 100% !important;
		min-width: 100% !important;
	}
}

/* Bigi half size title */
@media (min-width: var(--bp-tablet)) {
	.half-title .wp-block-cover__inner-container {
		width: 50% !important;
	}
}

/* For the image labels */
.illustration-img>.gspb_backgroundOverlay {
	background-color: var(--color-background) !important;
	opacity: 0.8 !important;
	backdrop-filter: blur(10px) !important;
}

/* ========== HEADER ELEMENTS  ========== */
/* Cart summary */
.ast-site-header-cart i.astra-icon:after {
	font-family: var(--font-number);
	font-weight: 500;
	font-size: 0.5rem;
	line-height: 1em;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: none !important;
}

/* The arrow after logo */
.site-header-primary-section-left.site-header-section-left::after {
	content: "";
	background: url('/wp-content/uploads/Decorate-Arrow.svg') no-repeat left center / cover;
	height: 100%;
	aspect-ratio: 395 / 512;
	top: 0;
	left: 100%;
}

/* Primary menu format */
.main-navigation>.main-header-menu>.menu-item>.menu-link {
	text-transform: uppercase;
	letter-spacing: 0.25px;
	color: var(--color-default);
}

.main-navigation>.main-header-menu>.menu-item.current-menu-item>.menu-link,
.main-navigation>.main-header-menu>.inline-on-mobile .menu-item.current-menu-item>.ast-menu-toggle,
.main-navigation>.main-header-menu>.current-menu-ancestor>.menu-link {
	color: var(--color-primary);
	font-weight: 500;
	font-family: var(--font-heading);
	font-size: 1.05rem;
}

.main-navigation .main-header-menu .menu-item>.menu-link:hover {
	background: var(--color-secondary-light);
	font-weight: 700;
}

/* Customize for mega menu */
/* PORTFOLIO MENU NAVIGATION */
.menu-portfolio {
	.astra-mm-icon-label {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.5rem;
		aspect-ratio: 1;
		margin: 0 0.75rem 0 0 !important;
		overflow: hidden;
		-webkit-mask-image: var(--mask-squircle) var(--mask-properties);
		mask: var(--mask-squircle) var(--mask-properties);

		img {
			width: 120% !important;
			height: auto !important;
			aspect-ratio: 1 !important;
		}
	}

	.menu-portfolio-heading {
		>a>.menu-text {
			font-family: var(--font-heading);
			font-size: 1.5rem;
			font-weight: 500;
			color: var(--color-primary);
		}
	}

	&.full-width-mega:hover>.astra-full-megamenu-wrapper>ul.astra-megamenu>li {
		flex: 1 1 auto;
	}
}

/* Flex mega menu */
/* PORTFOLIO FLEX NAVIGATION */
.menu-portfolio-flex {
	.sub-menu {
		display: none;
		flex-wrap: wrap;
		gap: 0.5rem;

		.astra-megamenu-li:hover & {
			display: flex !important;
		}

		>li {
			flex-basis: fit-content;
			flex-wrap: nowrap;
			width: auto !important;
			border-radius: var(--radius-small);
			border: var(--border-default) !important;
			transition: 0.35s ease-in-out;

			.astra-full-megamenu-wrapper & {
				background: color-mix(in oklch, var(--color-background) 75%, transparent);
			}

			&:hover {
				background: color-mix(in oklch, var(--color-secondary) 66%, var(--color-background));

				.menu-text {
					color: var(--color-background);
				}
			}

			&.current-menu-item {
				.astra-full-megamenu-wrapper & {
					border: 2px solid var(--color-primary) !important;
				}
			}
		}

		.menu-link {
			padding: var(--space-narrow) var(--space);
		}
	}
}

/* ========== FOOTER ELEMENTS  ========== */
/* General color setting */
footer * {
	color: var(--color-background);
}

/* Background of the primary footer */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
	background: url('/wp-content/uploads/GlobeBackground.svg') no-repeat center bottom / cover, linear-gradient(to top, var(--color-primary), var(--color-primary-dark));
}

/* Divider between blocks of footer */
.site-footer-section {
	position: relative;
	padding: var(--space-wide) var(--space-narrow) var(--space-narrow);
	border-radius: var(--radius-small);
	transition: 0.35s ease-in-out;
	height: 100%;

	&:hover {
		background: color-mix(in oklch, var(--color-background) 5%, transparent);
	}
}

@media (min-width: var(--bp-tablet)) {
	.site-footer-section:not(:last-child)::after {
		content: "";
		position: absolute;
		width: 0.5px;
		height: 100%;
		background: var(--color-background);
		top: 0;
		left: calc(100% + 25px);
	}
}

/* Company Name */
.footer-company-name {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: var(--color-background);
	font-size: 1.5rem
}

/* ========== SPECIFIED PAGES SECTION  ========== */
.page-id-254 .site-content {
	background: url('/wp-content/uploads/background-globe.png') left bottom / 100% auto no-repeat;
}

/* COMMON ELEMENTS */
/* The buttons */
:is(.wp-block-button__link, .wp-block-search__button, .wp-block-file__button) {
	&:not(.negate-button) {
		display: inline-flex;
		align-items: center;
		border: 2px solid var(--color-primary);
		background-color: var(--color-background);
		background: var(--color-background) url('/wp-content/uploads/Decorate-Arrow-Red.svg') left center / contain no-repeat;
		color: var(--color-primary);
		line-height: 1.05em;
		font-size: 1.15rem;
		padding: var(--space) var(--space) var(--space) calc(1.1em + var(--space-wide));
		border-radius: var(--radius-small);
		transition: all ease-in-out 0.35s;

		&:hover {
			background-position: right center;
			background-color: var(--color-background);
			border-color: var(--color-primary);
			box-shadow: var(--shadow-mild);
			/* Swapping padding to move text away from the arrow on the right */
			padding: var(--space) calc(1.1em + var(--space-wide)) var(--space) var(--space);
		}
	}
}

.counter-block {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: var(--space);
	padding: var(--space-wide) var(--space-narrow) var(--space);
	border-width: 1px;
	border-style: solid;
	border-radius: var(--radius-small);
	backdrop-filter: blur(5px);

	* {
		margin: 0;
		padding: 0;
		color: var(--color-default);
		fill: var(--color-default);
		border-color: var(--color-default);
	}

	.counter-illustration {
		display: flex;
		justify-content: center;
		align-items: center;
		width: clamp(75px, 50%, 100px);
		height: clamp(75px, 50%, 100px);
		aspect-ratio: 1;

		svg {
			width: 100% !important;
			height: 100% !important;
		}
	}

	.gs-counter {
		font-size: 3rem;
		font-family: 'Montserrat', sans-serif;
		font-weight: 800;
	}

	.gs-counterlabel {
		margin-top: var(--space);
		font-size: 1.15rem;
		font-weight: 700;
	}

	.counter-explain {
		flex: 1 1 auto;
		font-size: 0.9rem;
		text-align: center;
	}

	&.dark,
	&.dark * {
		color: var(--color-background);
		fill: var(--color-background);
		border-color: var(--color-backgound);
		filter: drop-shadow(var(--shadow-mild));
	}
}

/* The fading blocks */
.fade-text {
	display: block;
	-webkit-mask-image: linear-gradient(to bottom, var(--color-background), transparent);
	mask-image: linear-gradient(to bottom, var(--color-background), transparent);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	max-height: calc((1em + var(--space)) * 3);
	overflow: hidden;

	>* {
		display: block;
	}
}

/* Sections */
.section {
	clear: both;
	padding: var(--space-section-narrow) 0;
	position: relative;
}

.section-intro {
	width: clamp(80%, 600px, 100%);
	margin: var(--space-wide) auto var(--space);
	padding: var(--space) 0;
	border-bottom: var(--border-default);
	text-align: center;
	text-align-last: center;
	line-height: 1.45;
	display: flex;
	flex-direction: column;
	gap: var(--space);

	>*,
	h1,
	h2,
	h3,
	h4 {
		margin: 0;
	}
}

/* CERTIFICATE SECTION */
.section.certificate-section {
	--font-body: 'Roboto Slab';
	--font-heading: "Playfair Display", serif;
	border-top: var(--border-default);
	border-bottom: var(--border-default);
	padding-top: var(--space-narrow);
}

.certificates-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-narrow) var(--space);
	width: 100%;
	margin: var(--space) auto var(--space-wide);
}

/* Certificate Card */
.certificate-card {
	flex: 0 0 calc(20% - (var(--space) * 0.75));
	padding: var(--space);
	border: var(--border-default);
	border-radius: var(--radius);
	background: var(--color-background);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	transition: 0.35s ease-in-out;

	.certificate-logo,
	a.card-head {
		position: relative;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		display: flex;
		align-items: center;
		justify-content: center;

		img {
			width: 66%;
			aspect-ratio: 1 / 1;
			object-fit: contain;
			filter: grayscale(1);
			transition: filter 0.35s ease-in-out;
		}
	}

	.certificate-label {
		font-family: var(--font-heading);
		font-size: 1.5rem;
		letter-spacing: -0.5px;
		font-weight: 700;
	}

	.certificate-number {
		font-family: var(--font-number);
		opacity: 0.5;
	}

	&:hover {
		box-shadow: var(--shadow-mild);
		transform: translateY(-10px);

		.certificate-logo img {
			filter: grayscale(0);
		}
	}

	@media (max-width: 480px) {
		flex: 1 1 calc(50% - (var(--space) * 0.75));

		.certificate-logo img {
			max-width: unset;
			width: max(calc(100% - 2rem), 50%);
		}
	}
}

/* Container Adjustments */
.certificates-container {
	@container (max-width: var(--bp-mobile)) {
		gap: calc(var(--space-gap) / 3);
	}
}

.certificate-section {
	@container (max-width: var(--bp-mobile)) {

		h1,
		.certificate-intro {
			width: 100%;
		}
	}
}

.description-certificates {
	padding-top: var(--space);
	margin-top: var(--space-wide);
	border-top: var(--border-default);

	/* hidding unused */
	.certificate-intro,
	.certificate-label,
	.certificate-number,
	.certificate-heading,
	.section-intro {
		display: none;
	}

	.section.certificate-section {
		border: none;
		padding: var(--space-narrow) 0 !important;
	}

	/* 	force a clean state */
	* {
		padding: 0;
		margin: 0;
		border: none;
		width: unset !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	.certificates-container {
		gap: var(--space);
	}

	.certificate-card,
	.card-head,
	.certificate-logo,
	.certificate-logo img {
		flex: 0 0 auto;
		width: clamp(55px, 10%, 75px) !important;
	}
}

/* FOR THE FORMS */
.wpcf7 .wpcf7-not-valid-tip {
	background: var(--color-primary-light);
	padding: calc(var(--space-narrow) / 4) var(--space);
	font-size: 0.8rem;
	border-radius: 5px;
	color: var(--color-primary-dark);
	margin-top: -0.25rem;
	position: relative;
}

.bigi-form,
.bigi-form * {
	font-family: var(--font-body) !important;
}

.bigi-form-divider {
	width: 100%;
	height: 1px;
	background: var(--color-border);
}

.bigi-form :is(h1, h2, h3, h4, h5, label) {
	color: var(--color-default);
}

.bigi-form h2,
.bigi-form h3 {
	margin-bottom: 0.05em;
	margin-top: 0.5em;
}

.bigi-form label:not(:has(input[type="checkbox"]), .repeater-label) {
	display: block;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin: var(--space-wide) 0 calc(var(--space-narrow));
	text-transform: uppercase;
}

.bigi-form label:not(:has(input[type="checkbox"], .repeater-input))::after {
	content: ":"
}

.bigi-form ::placeholder {
	font-size: 0.8rem;
	color: var(--color-border);
}

.bigi-form-data-group {
	padding: var(--space);
	border: var(--border-default);
	border-radius: var(--radius-small);
	margin-bottom: var(--space);
}

/* --- Component: CCRF Repeater --- */
/* 1. Base Container */
.ccrf-repeater {
	padding: var(--space);
	background: color-mix(in oklch, var(--color-secondary-light) 5%, transparent);
	border-radius: var(--radius-small);
	border: var(--border-default);
	margin-bottom: var(--space);

	.ccrf-repeater-row {
		:is(input[type="text"], input[type="number"], input[type="email"], select, textarea) {
			background: transparent;
			border: none;
			border-bottom: var(--border-default);
			padding: 0 var(--space-narrow);
			border-radius: 0;
			height: 1.5rem;
		}

		.bigi-form & {
			padding: var(--space-narrow);
			border-bottom: 2px solid var(--color-default);
			margin-top: var(--space-narrow);
			border-radius: var(--radius-small) var(--radius-small) 0 0;
			transition: background 0.3s ease;

			&:hover,
			&:focus-within {
				background: color-mix(in oklch, var(--color-secondary-light) 20%, transparent);
			}

			&:last-child {
				margin-bottom: var(--space-narrow);
			}

			:has(> [class*="col"]) {
				row-gap: var(--space-small);
			}

			label.repeater-label {
				font-size: 0.75rem;
				margin-top: var(--space-narrow);
				text-transform: uppercase;
				font-weight: 900;
			}
		}
	}

	/* 3. Action Buttons (Global to all repeaters) */
	.ccrf-repeater-add,
	.ccrf-repeater-remove {
		&.ccrf-repeater-minimal {
			padding: var(--space-narrow);
			background: none;
			font-size: 0.8rem;
			transition: opacity 0.3s ease;
		}

		&::before {
			display: inline-flex;
			justify-content: center;
			align-items: center;
			font-family: "Fontawesome";
			margin-right: var(--space-narrow);
		}
	}

	.ccrf-repeater-add {
		color: green;

		&::before {
			content: "\f067";
			width: var(--space-wide);
			height: var(--space-wide);
			border-radius: 50vh;
			color: var(--color-background);
			background: green;
			padding: 3px;
		}

		&:hover {
			background: lightgreen;
		}
	}

	.ccrf-repeater-remove {
		color: red;
		opacity: 0.25;
		height: auto;

		&::before {
			content: "\f00d";
		}

		&:hover {
			opacity: 1;
		}
	}
}

/* WOOCOMMERCE SECTION START */
/* Kick all the damned button */
:is(.woocommerce-js, .woocommerce) {
	:is(a, button).button {
		border: 2px solid var(--color-secondary);
		background: var(--color-secondary) url('/wp-content/uploads/Decorate-Arrow-White.svg') right center / contain no-repeat;
		color: var(--color-background) !important;
		line-height: 1.05em;
		padding: var(--space) calc(1em *1.2 + var(--space)) var(--space) var(--space) !important;
		border-radius: var(--radius-small);
		transition: all ease-in-out 0.35s;

		&:hover {
			background-color: var(--color-primary);
			border-color: var(--color-primary);
		}
	}
}

/* SINGLE PRODUCT PAGE */
/* The product-image */
.woocommerce-product-gallery {
	* {
		background: transparent;
	}

	.flex-viewport:has(.woocommerce-product-gallery__image),
	.woocommerce-product-gallery__wrapper:not(.flex-viewport .woocommerce-product-gallery__wrapper) {
		border-radius: calc(var(--radius) * 2);
		overflow: hidden !important;
		filter: drop-shadow(var(--shadow-mild));
		border: 2px solid var(--color-background);
	}

	.ast-woocommerce-product-gallery__image {
		border-radius: var(--radius);
		overflow: hidden;
		opacity: 0.5;

		&.flex-active-slide::after {
			display: none;
		}

		&.flex-active-slide {
			border: 2px solid var(--color-primary);
			opacity: 1;
			/* filter: drop-shadow(var(--shadow-mild)); */
		}
	}
}

/* Hiding the quantiy input */
.single-product .quantity {
	display: none !important;
}

.single-product .cart {
	margin-top: var(--space);
}

/* The category breadcrumb line */
.woocommerce-js .woocommerce-breadcrumb {
	margin-bottom: var(--space);
	font-family: var(--font-body);
	color: var(--color-default);
}

.woocommerce-js .woocommerce-breadcrumb a {
	opacity: 0.8;
	font-weight: 400;

	&:hover {
		color: var(--color-primary);
		font-weight: 600;
		opacity: 1;
	}
}

.woocommerce-js .woocommerce-breadcrumb a::after,
.trail-items li.trail-item::after {
	content: '\f054';
	font-family: 'Fontawesome';
	font-size: 0.8em;
	margin: 0 calc(var(--space-narrow) / 2);
	color: var(--color-default) !important;
	opacity: 0.5;
}

/* The title */
.single-product div.product .entry-title,
.woocommerce-js div.product .product_title {
	font-family: var(--font-body) !important;
	font-size: 2rem;
	margin: var(--space-wide) 0 var(--space-narrow);
	transition: 0.35s;

	&:hover {
		letter-spacing: 0.25px;
	}
}

/* The specifications */
.woocommerce-js div.product .product_meta {
	border-top: var(--border-default);
	margin: var(--space-narrow) 0 var(--space);
	padding: var(--space) 0;
}

.woocommerce-js div.product .product_meta>span.posted_in {
	display: none;
}

.woocommerce-js div.product .product_meta>span>a {
	display: inline-block;
	font-size: 0.8rem;
	padding: 0.025em 0.5em;
	letter-spacing: -0.25px;
	color: var(--color-background);
	background: var(--color-border);
	border-radius: 0.375em;

	&:not(:last-child) {
		margin-right: 0.25em;
	}

	&:hover {
		background: var(--color-primary);
	}
}

/* The backorder messy line */
.stock {
	display: none;
}

/* The specs table */
.product-specs {
	container-type: inline-size;
	font-family: "Roboto Slab", sans-serif;
	color: var(--color-default);
	width: 100%;

	.product-specs-row {
		display: flex;
		flex-wrap: nowrap;
		padding: calc(var(--space-narrow) / 2) 0 0;
		border-bottom: var(--border-default);
		width: 100%;

		.product-specs-cell {
			flex: 1 1 50%;
			display: block;
			margin: 0 !important;
		}

		@container (max-width: var(--bp-mobile)) {
			display: block;

			.product-specs-cell {
				display: inline;
			}
		}

		&.header-row {
			border-bottom-width: 5px;
			text-transform: uppercase;
		}

		&:not(.header-row) {
			.heading-cell::after {
				content: ": ";
			}
		}
	}

	.heading-cell {
		font-weight: 500;
		margin-right: 1ch;
	}
}

/* The explain section */
.woocommerce-tabs.ast-woocommerce-tabs {
	border: none;
}

.woocommerce-tabs.ast-woocommerce-tabs .ast-single-tab {
	border-radius: var(--radius-small);
	overflow: hidden;
	border: var(--border-default);
}

/* --- Component: WooCommerce Accordion Layout --- */
div.product.ast-product-tabs-layout-accordion {
	.ast-woocommerce-accordion .ast-accordion-header {
		font-size: 0.8rem;
		border: none;
		background: var(--color-primary-light);
		color: var(--color-background);
		padding: var(--space);

		.ahfb-svg-iconset {
			fill: var(--color-background);
		}
	}

	.ast-accordion-wrap {
		padding: var(--space) var(--space) var(--space-wide);
	}

	.ast-accordion-content {
		border: none !important;
	}
}

/* Restyle for food only page */
.is-processed-food .product {
	.product-specs {
		.product-specs-heading {
			color: var(--color-default);
			margin-bottom: var(--space-narrow);
			padding-bottom: calc(var(--space-narrow) / 2);
			border-bottom: 2px solid;
		}

		.product-specs-row {
			display: inline;
			border: none;

			&::after {
				content: ", ";
			}
		}

		.product-specs-cell {
			font-family: "Roboto Slab", Serif;
			display: inline;
		}

		.heading-cell {
			font-weight: 400;

			&::after {
				content: ""
			}
		}

		.value-cell {
			font-weight: 300;
			font-style: italic;

			&::before {
				content: "(";
			}

			&::after {
				content: ")";
			}
		}
	}
}

/* The warning block */
.product-warning-block {
	padding: var(--space-narrow);
	margin-top: var(--space);
	background: var(--color-secondary-light);
	border-radius: var(--radius-small);

	.product-warning-line {
		margin: var(--space-narrow) 0 0 !important;
		opacity: 0.5;
		color: var(--color-primary-dark);

		&::before {
			content: "\f071";
			font-family: "fontawesome";
			margin-right: 1ch;
		}
	}
}

/* SINGLE PRODUCT PAGE END */
/* PRODUCT CATALOUGE START */
:is(.single-product, .post-type-archive-product, .ast-woo-shop-archive, .woocommerce-page) #primary {
	padding-top: calc(var(--space-section-narrow)) !important;
	margin-top: 0 !important;
}

/* the description */
.ast-product-excerpt-container:not(.full-details .ast-product-excerpt-container) {
	display: none;
}

@media (max-width: 960px) {
	.ast-product-excerpt-container {
		display: none;
	}
}

.ast-archive-entry-banner[data-post-type="product"] {
	min-height: 20vh;
	padding: var(--space-wide) 0;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center 20%;
	background-attachment: fixed;
	/* border-bottom: var(--border-default); */
	background-image: linear-gradient(7.5deg, oklch(100% 0 0) 33%, oklch(100% 0 0 / 0.55)), url(/wp-content/uploads/factory-front.jpg);

	@media (max-width: 480px) {
		padding: var(--space-wide) var(--space);
	}

	p {
		display: block;
		color: var(--color-default);
		font-size: 1rem;
		font-family: var(--font-body);
		font-weight: 500;
		line-height: 1.45;
		margin-top: var(--space-narrow);
		margin-bottom: var(--space);
	}
}

.post-type-archive-product:not(.tax-product_cat):not(.tax-product_tag) .ast-archive-entry-banner h1::after {
	content: "Explore our range of high-grade materials and processed food products, manufactured to meet the most stringent global quality standards. Select the specifications relevant to your requirements and submit a request to initiate a formal inquiry.";
	display: block;
	color: var(--color-default);
	font-size: 1rem;
	font-family: var(--font-body);
	font-weight: 500;
	line-height: 1.45;
	margin-top: var(--space-narrow);
	margin-bottom: var(--space);
}

@media (min-width: 960px) {

	.post-type-archive-product:not(.tax-product_cat):not(.tax-product_tag) .ast-archive-entry-banner h1::after,
	.ast-archive-entry-banner[data-post-type="product"] p {
		width: 66%;
	}
}

.woocommerce .ast-shop-toolbar-container {
	margin-bottom: var(--space-wide);
	padding: var(--space-narrow) var(--space);
	border-radius: var(--radius-small);
	background: var(--color-background);
	border: 1px solid;

	* {
		font-size: 1rem;
		color: var(--color-default) !important;
	}

	>* {
		margin: calc(var(--space-narrow) / 2) 0 !important;
	}
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
	border: var(--border-default);
	border-radius: calc(var(--radius-small) / 2);
}

[class$="grid"] .ast-row:has(article) {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

	.ast-article-inner {
		background-color: transparent;
		padding: 0;

		&>.post-content> :nth-child(2) {
			margin-top: var(--space);
		}

		.post-thumb-img-content,
		.wp-post-image {
			aspect-ratio: 1;
			padding: calc(0 - var(--space));
		}

		.entry-title.ast-blog-single-element {
			font-family: var(--font-body);
			font-size: clamp(0.8rem, 2vw, 0.95rem);
		}

		.ast-excerpt-container {
			font-size: 0.8rem;
			line-height: 1.4;
			-webkit-mask-image: linear-gradient(to bottom, var(--color-background), transparent 95%);
			mask-image: linear-gradient(to bottom, var(--color-background), transparent 95%);
			-webkit-mask-size: 100% 100%;
			mask-size: 100% 100%;
			max-height: calc((1em + var(--space)) * 3);
			overflow: hidden;
		}

		&>.post-content> :not(:first-child) {
			padding-left: var(--space);
			padding-right: var(--space);
			background: transparent;
		}
	}
}

:is(ul.products, .products, .ast-blog-layout-4-grid .ast-row:has(article)) {
	display: grid;
	gap: var(--space) !important;

	:is(li.product, .product, article) {
		width: 100%;
		padding: 0 0 var(--space-wide) !important;
		margin-bottom: var(--space) !important;
		background: var(--color-background);
		position: relative;
		border: var(--border-default) !important;
		border-radius: var(--radius);
		justify-content: space-between !important;
		flex-direction: column !important;
		transition: 0.35s;

		@media (max-width: 480px) {
			padding: 0 0 var(--space-narrow) !important;
			margin-bottom: 0 !important;
		}

		.astra-shop-thumbnail-wrap,
		.ast-blog-featured-section {
			margin-bottom: 0 !important;
			border-radius: var(--radius);
			overflow: hidden !important;
			padding: 0;
			width: fit-content;
			max-width: 100%;
			aspect-ratio: 1 / 1;
			flex: 0 0 fit-content !important;
		}

		.astra-shop-summary-wrap {
			border-radius: var(--radius);
			padding: var(--space) var(--space-narrow) 0 !important;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: center;
			flex: 1 1 auto;

			.ast-loop-product__link {
				flex: inherit;
			}

			.woocommerce-loop-product__title {
				text-align: center;
				font-family: var(--font-body);
				font-size: clamp(0.8rem, 2vw, 0.95rem);
			}
		}

		&:hover {
			box-shadow: var(--shadow-mild) !important;
		}
	}
}

/* The long one for the portfolio page */
@media (min-width: 480px) {
	.full-details {
		width: 100%;

		:is(ul.products, .products) {
			* {
				padding: unset;
				margin: unset;
				text-align: left !important;
				justify-content: flex-start !important;
				align-items: flex-start !important;
			}

			@container (min-width: 480px) {
				grid-template-columns: repeat(2, minmax(0, 1fr));
				gap: var(--space);
			}

			:is(li.product, .product) {
				flex-direction: row !important;
				gap: var(--space);
				padding: var(--space-narrow) var(--space-narrow) var(--space) !important;
				border: none !important;
				border-bottom: var(--border-default) !important;
				border-radius: 0 !important;

				&:hover {
					box-shadow: none !important;
					border-color: var(--color-primary) !important;
				}

				.astra-shop-thumbnail-wrap {
					max-width: 25%;
					box-shadow: var(--shadow-mild);
					background-color: transparent;
					border-radius: var(--radius);
					border: 1px solid var(--color-background);
				}

				.astra-shop-summary-wrap {
					padding: 0 !important;
				}

				.astra-shop-summary-wrap>* {
					margin: 0;
				}

				.ast-woo-product-category {
					display: none;
				}

				.woocommerce-loop-product__title {
					font-size: clamp(1.05rem, 2vw, 1.25rem);
				}

				.ast-excerpt-content {
					margin-top: var(--space);
					font-size: 0.75rem;
					line-height: 1.4;
					opacity: 0.5;
				}
			}
		}
	}
}

:is(ul.products, .products) li.product.category-link-item {
	justify-content: center !important;
	align-items: center !important;
	padding: var(--space) !important;
	border: 0 !important;
	border-radius: var(--radius-small) !important;
	background:
		linear-gradient(to bottom right,
			color-mix(in srgb, var(--color-secondary-light), transparent 10%),
			color-mix(in srgb, var(--color-secondary), transparent 25%),
			color-mix(in srgb, var(--color-secondary-light), transparent 10%)),
		url('/wp-content/uploads/factory-front-grayscale.jpg') !important;

	background-size: cover !important;
	container-type: inline-size;

	&:hover {
		background: linear-gradient(to bottom right, var(--color-primary-dark), var(--color-primary), var(--color-primary-dark)) !important;
	}

	a.category-link-item__link {
		display: flex;
		flex-wrap: wrap;
		align-items: center !important;
		justify-content: center !important;
		width: 100%;
		gap: var(--space) var(--space-narrow);

		.category-link-item__text {
			color: var(--color-background) !important;
			font-size: 1.15rem !important;
			text-align: center !important;
			flex: 0 1 auto;
			width: fit-content;

			@container (max-width: 300px) {
				width: 100%;
			}

			span {
				font-weight: 900;
				text-transform: uppercase;
			}
		}

		.category-link-item__arrow {
			width: clamp(55px, 25%, 75px);
			aspect-ratio: 1 / 1;
			background: url(/wp-content/uploads/Decorate-Arrow-White.svg);
			background-repeat: no-repeat;

			@container (max-width: 300px) {
				order: -1;
			}
		}
	}
}

/* The quick categorize blocks */
.quick-cat-container {
	display: block;
	container-type: inline-size;
	margin: var(--space-wide) 0;
	padding: var(--space);
	border-block: var(--border-default);
	display: flex;
	gap: var(--space-wide) var(--space-narrow);
	flex-wrap: wrap;

	.quick-cat-row {
		flex: 1 1 0;
		display: flex;
		flex-wrap: no-wrap;
		justify-content: flex-start;
		gap: var(--space);
		align-items: center;
		border-radius: var(--radius-small);
		overflow: hidden;

		@container (max-width: 480px) {
			flex: 0 0 100%;
		}

		&:hover {
			box-shadow: var(--shadow-mild);
		}

		.quick-cat-column-img {
			width: clamp(3rem, 25%, 4rem);
			border-radius: var(--radius-small);
			overflow: hidden;
		}

		.quick-cat-column-content {
			color: var(--color-default);
			font-size: 1.25rem;
		}
	}
}

/* The filter flyout */
.wc-block-product-filters__overlay-content {
	:is(h3, h4, h5) {
		font-family: var(--font-body) !important;
		margin-top: var(--space-wide) !important;
		margin-bottom: var(--space-narrow) !important;
		color: var(--color-default) !important;
	}

	.wc-block-product-filter-chips__item {
		background: var(--color-background);
	}

	.wc-block-product-filter-removable-chips__item {
		background: var(--color-secondary-light)
	}

	.wc-block-product-filter-chips__items,
	.wc-block-product-filter-removable-chips__items {
		gap: var(--space-narrow);

		.wc-block-product-filter-chips__item,
		.wc-block-product-filter-removable-chips__item {
			font-size: 0.8rem;
			font-weight: 300;
			line-height: 1.45;
			color: var(--color-default);
			border: var(--border-default);
			border-radius: var(--radius-small);
			padding: calc(var(--space-narrow) /2) var(--space-narrow);

			&:hover {
				background: var(--color-primary-light);
			}

			.wc-block-product-filter-chips__count {
				font-weight: 600;
			}
		}
	}
}

/* PRODUCT CATALOUGE END */
/* MODERN CART and CHECKOUT START */
/* Hiding elements that's not suitable for B2B */
.moderncart-price,
.moderncart-cart-line-items,
.moderncart-cart-item-quantity {
	display: none !important;
}

/* Styling the cart */
.bigi-instruction.excerpt {
	font-size: 0.8rem;
	opacity: 0.75;
}

#moderncart-slide-out-modal.moderncart-cart-style-slideout #moderncart-slide-out {
	box-shadow: var(--shadow-mild);

	.moderncart-slide-out-footer {
		box-shadow: none;
	}

	/* The lines */
	.moderncart-cart-item {
		padding: var(--space-narrow) var(--space);
		border-bottom: var(--border-default);
		align-items: center;

		.moderncart-cart-item-container {
			align-items: center;
			padding: 0;

			.moderncart-cart-item-image {
				min-width: 3rem;
				width: 3rem;
				margin-right: var(--space);
				border-radius: var(--radius);
				overflow: hidden;
			}

			.moderncart-cart-item__details {
				min-height: unset !important;
			}
		}
	}
}

.woocommerce-cart,
.woocommerce-cart-form {

	/* 	Hiding the unused */
	.product-price,
	.product-quantity,
	.product-subtotal,
	.cart_totals .shop_table,
	.cart_totals h2,
	.woocommerce-cart-form__contents tr:has(th),
	.product-name::before {
		display: none !important;
	}

	/* 	move button remove */
	.product-remove {
		order: 100;
	}

	.product-name {
		flex: 1 1 0 !important;
	}

	table.shop_table_responsive tr td {
		text-align: left !important;
	}

	.woocommerce-cart-form__contents {
		border: none !important;
		border-top: 2px solid var(--color-primary) !important;
	}

	.woocommerce-cart-form__contents tr,
	.woocommerce-cart-form__cart-item.cart_item {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: flex-start;
		border-bottom: var(--border-default);

		td {
			border: none
		}

		a.remove {
			width: var(--space-wide);
			height: var(--space-wide);
			display: flex;
			justify-content: center;
			align-items: center;

			:hover {
				fill: red;
			}
		}
	}

	.product-thumbnail img {
		-webkit-mask-image: var(--mask-squircle) var(--mask-properties);
		mask: var(--mask-squircle) var(--mask-properties);
	}
}

/* Styling checkout page elements  */
form.woocommerce-checkout {
	margin-bottom: var(--space-section-wide);

	/* Hiding unused elements */
	fieldset#payment-method,
	.wc-block-components-checkout-return-to-cart-button,
	.wp-block-woocommerce-checkout-order-summary-totals-block,
	.wc-block-components-totals-wrapper:has(.wc-block-components-totals-item),
	.form-row#billing_address_2_field,
	.product-total,
	.cart_item .product-quantity,
	.woocommerce-checkout-review-order-table tfoot,
	.woocommerce-checkout-review-order-table th,
	.wc_payment_methods,
	.ast-product-name:empty {
		display: none;
	}

	.woocommerce-terms-and-conditions-wrapper {

		margin-bottom: var(--space-narrow);

		p,
		label {
			color: var(--color-default);
			font-size: 0.75rem !important;
			font-weight: 400 !important;
			opacity: 0.75;
		}

		a,
		span {
			font-weight: 700;
			text-transform: Capitalize;
		}
	}

	h3 {
		font-family: var(--font-body);
		margin-top: var(--space) !important;
		color: var(--color-primary-dark);
		font-size: 1.35rem;
	}

	#order_review {
		.woocommerce-checkout-review-order-table {
			border-top: var(--border-default) !important;
		}

		td.product-name {
			border-bottom: var(--border-default);
		}

		.ast-product-image.ast-disable-image {
			width: 100%;
			display: flex;
			flex-direction: row;
			flex-wrap: nowrap;
			gap: var(--space);
			justify-content: flex-start;
			align-items: flex-start;
		}

		.bigi-checkout-avatar img {
			overflow: hidden;
			-webkit-mask-image: var(--mask-squircle) var(--mask-properties);
			mask: var(--mask-squircle) var(--mask-properties);
		}
	}

	.ast-product-name,
	.bigi-checkout-text-wrap {
		flex: 1 1 0;
	}

}



/* ---------------------------------------------------------CATALOGUE AND SEARCH PAGES LAYOUT (BORROWED FROM PRODUCT)--------------------------------------------------------- */
[class$="grid"] .ast-row:has(article) {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

	.ast-article-inner {
		background-color: transparent;
		padding: 0;

		&>.post-content> :nth-child(2) {
			margin-top: var(--space);
		}

		.post-thumb-img-content,
		.wp-post-image {
			aspect-ratio: 1;
			padding: calc(0 - var(--space));
		}

		.entry-title.ast-blog-single-element {
			font-family: var(--font-body);
			font-size: clamp(0.8rem, 2vw, 0.95rem);
		}

		.ast-taxonomy-container {
			font-size: 0.5rem;
			font-weight: 300;
			color: var(--color-default) !important;
			margin-top: var(--space-narrow);
		}

		.ast-excerpt-container {
			font-size: 0.75rem;
			line-height: 1.4;
		}

		&>.post-content> :not(:first-child) {
			padding-left: var(--space);
			padding-right: var(--space);
			background: transparent;
		}
	}
}

/*--------SIDEBAR-------*/
@media (min-width: 960px) {
	.ast-right-sidebar .widget-area.secondary {
		border-left: var(--border-default) !important;
	}
}

.widget-area.secondary#secondary {
	aside.widget {
		padding: var(--space);
		margin-bottom: var(--space-narrow);
		border-bottom: var(--border-default);
	}

	h3 {
		font-size: 1.25rem;
		margin: var(--space) 0;
		color: var(--color-primary-dark);
	}

	a.related-product {
		display: flex;
		min-height: 3rem;
		align-items: center;
		padding: var(--space-narrow);
		gap: var(--space-narrow);

		&:hover {
			background: var(--color-secondary-light);
		}

		.avatar {
			width: 46px;
			height: 46px;
			aspect-ratio: 1 / 1;
			-webkit-mask-image: var(--mask-squircle) var(--mask-properties);
			mask: var(--mask-squircle) var(--mask-properties);
		}

		.product-name {
			flex: 1 1 auto;
			line-height: 1.2;
			font-size: 0.9em;
		}
	}
}

.hero-slide {
	margin: 0;

	.overlay {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
		mix-blend-mode: multiply;
	}

	.slide-container {
		width: 100%;
		margin: 0 auto;
		max-width: 1200px;
		min-height: 50vh;
		padding: var(--space-section-narrow) 0;
		display: flex;
		justify-content: flex-start;
		align-items: flex-end;
		position: relative;
		box-sizing: border-box;
	}

	.slide-content {
		display: flex;
		flex-direction: column;
		padding: var(--space);
		gap: var(--space-narrow);
		align-items: flex-start;
		max-width: 50%;
		margin-top: var(--space);
	}

	.featured-image {
		width: clamp(80px, 50vw, 100px);
		height: clamp(80px, 50vw, 100px);
		display: none;
	}

	.slide-text {
		padding-top: var(--space-narrow);
		flex: 1 1 auto;
		color: var(--color-background);
		line-height: 1.4;
	}

	.gspb_button_wrapper {
		width: fit-content;
		margin: var(--space) 0;
	}

	@media (max-width: 480px) {
		.overlay {
			background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
		}

		.slide-container {
			padding: var(--space-section-narrow) var(--space);
		}

		.slide-text>.gspb-dynamic-post-title {
			justify-content: center;
		}

		.featured-image {
			display: block;
			width: clamp(120px, 50vw, 175px);
			height: clamp(120px, 50vw, 175px);
			filter: drop-shadow(var(--shadow-mild));
		}

		.slide-content {
			width: 100%;
			max-width: 100%;
			align-items: center !important;
		}

		.gspb_button_wrapper {
			margin: var(--space) auto var(--space-narrow);
		}
	}
}

.post-credit::before {
	content: '';
	display: block;
	width: 10%;
	height: 3px;
	background-color: var(--color-default);
	margin-top: var(-space-wide);
	margin-bottom: var(--space-narrow);
}

/* The share blocks */
body:not(.logged-in) :is(.internal, .a2a_floating_style) {
	display: none !important;
}