:root {
	--ctgb-green: #8fbe3f;
	--ctgb-green-dark: #5f861e;
	--ctgb-ink: #172022;
	--ctgb-muted: #637074;
	--ctgb-border: #dce3e1;
	--ctgb-surface: #ffffff;
}

.ctgb-balance-card,
.ctgb-login-card,
.ctgb-inventory {
	box-sizing: border-box;
	font-family: inherit;
}

.ctgb-balance-card {
	align-items: center;
	background:
		linear-gradient(115deg, rgba(12, 19, 20, .97), rgba(39, 51, 55, .94)),
		linear-gradient(135deg, transparent 58%, rgba(143, 190, 63, .28) 58%);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 18px;
	box-shadow: 0 18px 45px rgba(13, 20, 21, .16);
	color: #fff;
	display: flex;
	justify-content: space-between;
	margin: 0 0 42px;
	overflow: hidden;
	padding: clamp(28px, 5vw, 52px);
	position: relative;
}

.ctgb-balance-card::after {
	background: var(--ctgb-green);
	content: "";
	height: 150%;
	opacity: .16;
	position: absolute;
	right: -10%;
	top: -25%;
	transform: skewX(-22deg);
	width: 30%;
}

.ctgb-balance-card > * {
	position: relative;
	z-index: 1;
}

.ctgb-eyebrow {
	color: var(--ctgb-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .15em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.ctgb-balance-card h2 {
	color: #fff;
	font-size: clamp(24px, 3vw, 38px);
	margin: 0;
}

.ctgb-balance-card__amount {
	color: var(--ctgb-green);
	font-size: clamp(44px, 7vw, 76px);
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1;
	margin: 14px 0 12px;
}

.ctgb-balance-card p:not(.ctgb-eyebrow) {
	color: #d4dcda;
	margin-bottom: 0;
	max-width: 600px;
}

.ctgb-balance-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-left: 30px;
	min-width: 210px;
}

.ctgb-button {
	background: var(--ctgb-green);
	border: 1px solid var(--ctgb-green);
	border-radius: 8px;
	color: #101718 !important;
	display: inline-block;
	font-weight: 800;
	padding: 13px 18px;
	text-align: center;
	text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}

.ctgb-button:hover {
	background: #a4d44e;
	transform: translateY(-1px);
}

.ctgb-button--secondary {
	background: transparent;
	color: #fff !important;
}

.ctgb-button--secondary:hover {
	background: rgba(255, 255, 255, .08);
}

.ctgb-login-card {
	background: #f3f6f4;
	border: 1px solid var(--ctgb-border);
	border-left: 5px solid var(--ctgb-green);
	border-radius: 12px;
	padding: 30px;
}

.ctgb-login-card h2 {
	margin-top: 0;
}

.ctgb-section-heading {
	margin-bottom: 22px;
	max-width: 700px;
}

.ctgb-section-heading h2 {
	color: var(--ctgb-ink);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.05;
	margin: 0 0 10px;
}

.ctgb-section-heading p:last-child {
	color: var(--ctgb-muted);
}

.ctgb-inventory__grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ctgb-product-card {
	background: var(--ctgb-surface);
	border: 1px solid var(--ctgb-border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(17, 29, 30, .06);
	overflow: hidden;
}

.ctgb-product-card__image {
	align-items: center;
	aspect-ratio: 4 / 3;
	background: #eef1ef;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.ctgb-product-card__image img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.ctgb-product-card__placeholder {
	background:
		linear-gradient(135deg, rgba(143, 190, 63, .18), transparent 45%),
		repeating-linear-gradient(-45deg, #edf1ef, #edf1ef 12px, #f4f6f5 12px, #f4f6f5 24px);
	color: #687371;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ctgb-product-card__body {
	padding: 20px;
}

.ctgb-product-card__title {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.ctgb-product-card__title h3 {
	font-size: 18px;
	line-height: 1.25;
	margin: 0;
}

.ctgb-product-card__title h3 a {
	color: var(--ctgb-ink);
	text-decoration: none;
}

.ctgb-product-card__title > strong {
	color: var(--ctgb-green-dark);
	white-space: nowrap;
}

.ctgb-stock-list {
	border-bottom: 1px solid var(--ctgb-border);
	border-top: 1px solid var(--ctgb-border);
	list-style: none;
	margin: 16px 0;
	padding: 8px 0;
}

.ctgb-stock-list li {
	align-items: center;
	display: flex;
	font-size: 13px;
	justify-content: space-between;
	padding: 6px 0;
}

.ctgb-stock-list li strong {
	color: #496d12;
	font-size: 12px;
}

.ctgb-stock-list li.is-out {
	color: #8a9391;
}

.ctgb-stock-list li.is-out strong {
	color: #a33c3c;
}

.ctgb-text-link {
	color: var(--ctgb-green-dark);
	font-weight: 800;
	text-decoration: none;
}

.ctgb-pickup-notice {
	border-top-color: var(--ctgb-green) !important;
}

@media (max-width: 980px) {
	.ctgb-inventory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.ctgb-balance-card {
		align-items: flex-start;
		flex-direction: column;
	}

	.ctgb-balance-card__actions {
		margin: 24px 0 0;
		width: 100%;
	}

	.ctgb-inventory__grid {
		grid-template-columns: 1fr;
	}
}


/* Crete-Tek account, login, and WooCommerce shell. */
body.ctgb-wordpress {
	font-size: 16px;
	line-height: 1.55;
}

body.ctgb-wordpress:not(.home) {
	background: #f3f3f0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.ctgb-wordpress:not(.home) .ctgb-content {
	flex: 1 0 auto;
}

body.ctgb-wordpress .ctgb-site-header {
	align-items: center;
	background: #171a17;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	display: flex;
	gap: 32px;
	min-height: 92px;
	padding: 16px max(24px, calc((100vw - 1180px) / 2));
	position: relative;
	z-index: 10;
}

body.ctgb-wordpress .ctgb-site-header > a:first-child {
	background: url("crete-tek-logo.png") left center / contain no-repeat;
	display: block;
	flex: 0 1 300px;
	height: 58px;
	overflow: hidden;
	text-indent: -9999px;
}

body.ctgb-wordpress .ctgb-site-header nav {
	margin-left: auto;
}

body.ctgb-wordpress .ctgb-site-header nav ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.ctgb-wordpress .ctgb-site-header nav li {
	margin: 0;
	padding: 0;
}

body.ctgb-wordpress .ctgb-site-header nav a {
	border-radius: 7px;
	color: #e9eee5;
	display: block;
	font-size: 14px;
	font-weight: 800;
	padding: 10px 12px;
	text-decoration: none;
}

body.ctgb-wordpress .ctgb-site-header nav a:hover,
body.ctgb-wordpress .ctgb-site-header nav .current-menu-item > a {
	background: #30382c;
	color: #a8d75a;
}

body.ctgb-wordpress .ctgb-site-footer {
	background: #171a17;
	color: #bfc7bb;
	font-size: 13px;
	margin-top: auto;
	min-height: 68px;
	padding: 24px max(24px, calc((100vw - 1180px) / 2));
}

body.woocommerce-account .ctgb-content {
	margin: clamp(30px, 5vw, 64px) auto;
	width: min(1180px, calc(100% - 32px));
}

body.logged-in.woocommerce-account .ctgb-content > .woocommerce {
	align-items: start;
	display: grid;
	gap: 26px;
	grid-template-columns: 250px minmax(0, 1fr);
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #1e241f;
	border: 1px solid #353d33;
	border-radius: 14px;
	box-shadow: 0 16px 35px rgba(27, 34, 27, .13);
	float: none !important;
	overflow: hidden;
	padding: 10px;
	width: auto !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 0 4px;
	padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-top: 1px solid #3b4339;
	margin-top: 10px;
	padding-top: 10px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	border-radius: 8px;
	color: #cdd4c9;
	display: block;
	font-size: 14px;
	font-weight: 800;
	padding: 12px 14px;
	text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: #34412d;
	box-shadow: inset 3px 0 0 var(--ctgb-green);
	color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--ctgb-border);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(26, 34, 29, .08);
	float: none !important;
	min-height: 430px;
	padding: clamp(24px, 4vw, 44px);
	width: auto !important;
}

body.woocommerce-account .woocommerce-MyAccount-content:has(> .ctgb-balance-card) > p {
	display: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .ctgb-balance-card {
	margin-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	color: var(--ctgb-ink);
	line-height: 1.15;
}

body.woocommerce-account .woocommerce-MyAccount-content h2 {
	font-size: clamp(27px, 4vw, 40px);
	margin-top: 0;
}

body.ctgb-wordpress .woocommerce a {
	color: var(--ctgb-green-dark);
}

body.ctgb-wordpress .woocommerce form .form-row {
	margin: 0 0 18px;
	padding: 0;
}

body.ctgb-wordpress .woocommerce form .form-row label {
	color: #37423e;
	display: block;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 7px;
}

body.ctgb-wordpress .woocommerce input.input-text,
body.ctgb-wordpress .woocommerce textarea,
body.ctgb-wordpress .woocommerce select {
	background: #fff;
	border: 1px solid #cdd6d2;
	border-radius: 8px;
	font-size: 16px;
	min-height: 48px;
	padding: 11px 13px;
	width: 100%;
}

body.ctgb-wordpress .woocommerce input.input-text:focus,
body.ctgb-wordpress .woocommerce textarea:focus,
body.ctgb-wordpress .woocommerce select:focus {
	border-color: var(--ctgb-green-dark);
	box-shadow: 0 0 0 3px rgba(143, 190, 63, .18);
	outline: none;
}

body.ctgb-wordpress .woocommerce a.button,
body.ctgb-wordpress .woocommerce button.button,
body.ctgb-wordpress .woocommerce input.button {
	background: var(--ctgb-green);
	border: 0;
	border-radius: 8px;
	color: #14200f;
	font-size: 14px;
	font-weight: 900;
	min-height: 46px;
	padding: 12px 18px;
	text-decoration: none;
}

body.ctgb-wordpress .woocommerce a.button:hover,
body.ctgb-wordpress .woocommerce button.button:hover,
body.ctgb-wordpress .woocommerce input.button:hover {
	background: #a4d44e;
	color: #101710;
}

body.ctgb-wordpress .woocommerce table.shop_table {
	background: #fff;
	border: 1px solid var(--ctgb-border);
	border-collapse: separate;
	border-radius: 10px;
	font-size: 14px;
	overflow: hidden;
}

body.ctgb-wordpress .woocommerce table.shop_table th {
	background: #eff3ef;
	color: #2c3733;
	font-weight: 900;
}

body.ctgb-wordpress .woocommerce table.shop_table td,
body.ctgb-wordpress .woocommerce table.shop_table th {
	padding: 13px 15px;
}

body.ctgb-wordpress .woocommerce-error,
body.ctgb-wordpress .woocommerce-info,
body.ctgb-wordpress .woocommerce-message {
	background: #f2f7ec;
	border: 1px solid #bfd693;
	border-top: 4px solid var(--ctgb-green);
	border-radius: 8px;
	color: #30431f;
	font-size: 14px;
	line-height: 1.5;
	padding: 16px 18px;
}

body:not(.logged-in).woocommerce-account .ctgb-content {
	max-width: 720px;
}

body:not(.logged-in).woocommerce-account .ctgb-content > .woocommerce {
	background: #fff;
	border: 1px solid var(--ctgb-border);
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(24, 33, 28, .12);
	padding: clamp(26px, 5vw, 52px);
}

body:not(.logged-in).woocommerce-account .woocommerce h2 {
	font-size: clamp(32px, 6vw, 48px);
	margin: 0 0 24px;
}

body:not(.logged-in).woocommerce-account form.woocommerce-form-login {
	border: 0;
	margin: 0;
	padding: 0;
}

body.ctgb-wordpress .woo-wallet-my-wallet-container,
body.ctgb-wordpress .woo-wallet-content {
	font-size: 15px;
}

@media (max-width: 860px) {
	body.ctgb-wordpress .ctgb-site-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	body.ctgb-wordpress .ctgb-site-header > a:first-child {
		flex-basis: auto;
		max-width: 260px;
		width: 70vw;
	}

	body.ctgb-wordpress .ctgb-site-header nav {
		margin-left: 0;
		width: 100%;
	}

	body.ctgb-wordpress .ctgb-site-header nav ul {
		align-items: stretch;
		gap: 3px;
	}

	body.ctgb-wordpress .ctgb-site-header nav a {
		font-size: 13px;
		padding: 8px 9px;
	}

	body.logged-in.woocommerce-account .ctgb-content > .woocommerce {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
		border-top: 0;
		margin-top: 0;
		padding-top: 0;
	}
}

@media (max-width: 560px) {
	body.woocommerce-account .ctgb-content {
		margin: 20px auto;
		width: min(100% - 20px, 1180px);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: 1fr;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: 20px;
	}

	body.woocommerce-account .woocommerce-MyAccount-content .ctgb-balance-card {
		padding: 24px;
	}
}