:root {
	--fsas-primary: #10251a;
	--fsas-primary-soft: #193826;
	--fsas-accent: #91bd43;
	--fsas-white: #ffffff;
	--fsas-border: rgba(255, 255, 255, 0.15);
	--fsas-topbar-height: 88px;
	--fsas-bottom-height: 70px;
	--fsas-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html.fsas-drawer-open,
body.fsas-drawer-open {
	overflow: hidden !important;
}

body.fsas-enabled {
	padding-top: calc(var(--fsas-topbar-height) + 12px) !important;
}

body.fsas-enabled.fsas-has-bottom-nav {
	padding-bottom: calc(var(--fsas-bottom-height) + var(--fsas-safe-bottom)) !important;
}

.fsas-app-shell,
.fsas-app-shell * {
	box-sizing: border-box;
}

.fsas-topbar {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 999990;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	min-height: var(--fsas-topbar-height);
	padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
	background:
		radial-gradient(circle at 75% -40%, rgba(145, 189, 67, .26), transparent 42%),
		linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 42%),
		linear-gradient(135deg, var(--fsas-primary), #050b07);
	border-bottom: 1px solid var(--fsas-border);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .34);
	color: var(--fsas-white);
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

.fsas-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 8px;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
}

.fsas-brand-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: 48px;
	object-fit: contain;
}

.fsas-brand-logo--topbar {
	width: min(100%, 320px);
	height: 56px;
	max-width: 100%;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

.fsas-brand-logo--drawer {
	max-width: min(100%, 220px);
	height: auto;
	max-height: 56px;
}

.fsas-brand-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border: 1px solid rgba(255,255,255,.32);
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 28%, #d9f3a4, var(--fsas-accent) 42%, #355b1d 76%, #172b12 100%);
	box-shadow: inset 0 0 0 4px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.3);
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .02em;
	text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

.fsas-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fsas-brand-copy strong {
	overflow: hidden;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: clamp(13px, 2.2vw, 19px);
	font-weight: 900;
	letter-spacing: .01em;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fsas-brand-copy small {
	margin-top: 4px;
	overflow: hidden;
	color: rgba(255,255,255,.68) !important;
	-webkit-text-fill-color: rgba(255,255,255,.68) !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.1;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.fsas-top-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
}

.fsas-icon {
	display: block;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	color: currentColor !important;
}

.fsas-icon-button,
button.fsas-icon-button,
a.fsas-icon-button {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255,255,255,.22) !important;
	border-radius: 13px !important;
	background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04)) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 12px rgba(0,0,0,.24) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
}

.fsas-icon-button:hover,
.fsas-icon-button:focus-visible {
	border-color: var(--fsas-accent) !important;
	background: linear-gradient(180deg, var(--fsas-accent), #456823) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.fsas-cart-count {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border: 2px solid var(--fsas-primary);
	border-radius: 999px;
	background: #c72d33;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

.fsas-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999991;
	background: rgba(0, 0, 0, .68);
	backdrop-filter: blur(4px);
}

.fsas-backdrop[hidden] {
	display: none !important;
}

.fsas-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 999992;
	display: flex;
	flex-direction: column;
	width: min(390px, 90vw);
	padding-top: env(safe-area-inset-top, 0px);
	background:
		radial-gradient(circle at 16% 3%, rgba(145,189,67,.30), transparent 28%),
		linear-gradient(180deg, #183725, #07110a 68%);
	border-right: 1px solid var(--fsas-border);
	box-shadow: 18px 0 48px rgba(0,0,0,.52);
	color: #fff;
	transform: translateX(-105%);
	transition: transform .24s ease;
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

.fsas-drawer.is-open {
	transform: translateX(0);
}

.fsas-drawer-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	min-height: 78px;
	padding: 14px;
	border-bottom: 1px solid var(--fsas-border);
}

.fsas-drawer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.fsas-drawer-brand > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
}

.fsas-drawer-brand strong {
	color: #fff !important;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .02em;
}

.fsas-drawer-brand small {
	margin-top: 4px;
	color: rgba(255,255,255,.64) !important;
	font-size: 10px;
	line-height: 1.35;
}

.fsas-drawer-nav {
	overflow-y: auto;
	padding: 12px 12px calc(28px + env(safe-area-inset-bottom, 0px));
	scrollbar-width: thin;
}

.fsas-drawer-primary {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.fsas-drawer-primary .fsas-nav-item {
	min-height: 54px;
	border-color: rgba(145,189,67,.5);
	background: linear-gradient(135deg, rgba(145,189,67,.24), rgba(255,255,255,.04));
}

.fsas-drawer-heading {
	margin: 18px 9px 7px;
	color: rgba(255,255,255,.48) !important;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
}

.fsas-nav-item {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 48px;
	margin: 5px 0;
	padding: 10px 13px;
	border: 1px solid rgba(255,255,255,.11);
	border-radius: 12px;
	background: rgba(255,255,255,.045);
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform .14s ease, background .14s ease, border-color .14s ease;
}

.fsas-nav-item:hover,
.fsas-nav-item:focus-visible {
	border-color: var(--fsas-accent);
	background: rgba(145,189,67,.18);
	color: #fff !important;
	transform: translateX(3px);
}

.fsas-logout-link {
	margin-top: 18px;
	border-color: rgba(199,45,51,.48);
	background: rgba(199,45,51,.12);
}

.fsas-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999989;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: end;
	min-height: calc(var(--fsas-bottom-height) + var(--fsas-safe-bottom));
	padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + var(--fsas-safe-bottom)) max(4px, env(safe-area-inset-left, 0px));
	background:
		linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 34%),
		linear-gradient(180deg, #173522, #07100a);
	border-top: 1px solid rgba(255,255,255,.14);
	box-shadow: 0 -8px 26px rgba(0,0,0,.36);
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

.fsas-bottom-nav.fsas-bottom-count-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fsas-bottom-nav.fsas-bottom-count-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fsas-bottom-nav.fsas-bottom-count-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fsas-bottom-nav .fsas-nav-item {
	position: relative;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 54px;
	margin: 0;
	padding: 5px 2px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	font-size: 10px;
	text-align: center;
}

.fsas-bottom-nav .fsas-nav-item:hover,
.fsas-bottom-nav .fsas-nav-item:focus-visible {
	background: rgba(255,255,255,.08);
	transform: none;
}

.fsas-bottom-nav .fsas-bottom-featured {
	margin-top: -23px;
}

.fsas-bottom-nav .fsas-bottom-featured .fsas-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1px;
	padding: 10px;
	border: 2px solid rgba(255,255,255,.5);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 25%, #dff3b8, var(--fsas-accent) 45%, #294d18 100%);
	box-shadow: inset 0 0 0 4px rgba(0,0,0,.18), 0 5px 14px rgba(0,0,0,.4);
	filter: drop-shadow(0 1px 1px rgba(0,0,0,.75));
}

/* Keep product artwork fully visible in mobile cards instead of enlarging it beyond the frame. */
@media (max-width: 768px) {
	body.fsas-enabled .woocommerce ul.products li.product img,
	body.fsas-enabled .wc-block-grid__product-image img,
	body.fsas-enabled .wc-block-components-product-image img {
		max-width: 100% !important;
		height: auto !important;
		object-fit: contain !important;
	}
}

/* Master rule: visible button labels and nested button content remain white. */
body.fsas-enabled button,
body.fsas-enabled input[type="button"],
body.fsas-enabled input[type="submit"],
body.fsas-enabled input[type="reset"],
body.fsas-enabled a.button,
body.fsas-enabled .button,
body.fsas-enabled .btn,
body.fsas-enabled .wp-element-button,
body.fsas-enabled .wp-block-button__link,
body.fsas-enabled .woocommerce a.button,
body.fsas-enabled .woocommerce button.button,
body.fsas-enabled .woocommerce input.button,
body.fsas-enabled .woocommerce #respond input#submit,
body.fsas-enabled .woocommerce-page a.button,
body.fsas-enabled .woocommerce-page button.button,
body.fsas-enabled .woocommerce-page input.button,
body.fsas-enabled .add_to_cart_button,
body.fsas-enabled .single_add_to_cart_button,
body.fsas-enabled .checkout-button,
body.fsas-enabled .wc-forward,
body.fsas-enabled [class*="button"],
body.fsas-enabled [class*="-btn"] {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

body.fsas-enabled button *,
body.fsas-enabled a.button *,
body.fsas-enabled .button *,
body.fsas-enabled .btn *,
body.fsas-enabled .wp-element-button *,
body.fsas-enabled .wp-block-button__link *,
body.fsas-enabled .woocommerce a.button *,
body.fsas-enabled .woocommerce button.button *,
body.fsas-enabled .add_to_cart_button *,
body.fsas-enabled .single_add_to_cart_button *,
body.fsas-enabled .checkout-button *,
body.fsas-enabled .wc-forward * {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

@media (min-width: 783px) {
	.admin-bar .fsas-drawer {
		padding-top: 32px;
	}
}

@media (max-width: 782px) {
	.admin-bar .fsas-topbar {
		top: 46px;
	}

	.admin-bar .fsas-drawer {
		padding-top: 46px;
	}
}

@media (max-width: 640px) {
	:root {
		--fsas-topbar-height: 64px;
	}

	.fsas-topbar {
		grid-template-columns: 46px minmax(0, 1fr) auto;
		padding-left: 8px;
		padding-right: 8px;
	}

	.fsas-brand {
		justify-content: flex-start;
		gap: 7px;
		padding-left: 4px;
	}

	.fsas-brand-logo {
		max-width: 38px;
		height: 38px;
	}

	.fsas-brand-mark {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
		font-size: 11px;
	}

	.fsas-brand-copy strong {
		font-size: clamp(12px, 3.4vw, 15px);
	}

	.fsas-brand-copy small {
		display: none;
	}

	.fsas-icon-button,
	button.fsas-icon-button,
	a.fsas-icon-button {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}

	.fsas-top-actions {
		gap: 2px;
	}
}

@media (min-width: 1025px) {
	.fsas-topbar {
		grid-template-columns: 62px minmax(0, 1fr) auto;
		padding-left: 22px;
		padding-right: 22px;
	}

	.fsas-menu-button {
		width: 48px;
		height: 48px;
	}

	.fsas-brand {
		justify-content: flex-start;
	}

	.fsas-top-actions {
		gap: 8px;
	}

	.fsas-bottom-nav {
		display: none;
	}

	body.fsas-enabled.fsas-has-bottom-nav {
		padding-bottom: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fsas-drawer,
	.fsas-icon-button,
	.fsas-nav-item {
		transition: none !important;
	}
}
