:root {
	--ccas-primary: #111820;
	--ccas-primary-soft: #1b2732;
	--ccas-accent: #b58b43;
	--ccas-white: #ffffff;
	--ccas-border: rgba(255, 255, 255, 0.14);
	--ccas-topbar-height: 72px;
	--ccas-bottom-height: 70px;
	--ccas-safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

body.ccas-enabled {
	padding-top: var(--ccas-topbar-height) !important;
}

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

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

.ccas-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(--ccas-topbar-height);
	padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
	background:
		linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%),
		linear-gradient(135deg, var(--ccas-primary), #05080b);
	border-bottom: 1px solid var(--ccas-border);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .34);
	color: var(--ccas-white);
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
}

.admin-bar .ccas-topbar {
	top: 32px;
}

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

.ccas-brand-logo,
.ccas-drawer-brand .ccas-brand-logo {
	display: block;
	width: auto;
	max-width: 54px;
	height: 48px;
	max-height: 48px;
	object-fit: contain;
}

.ccas-brand-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	border: 2px solid rgba(255,255,255,.72);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #e9d3a1, var(--ccas-accent) 45%, #5e431c 100%);
	box-shadow: inset 0 0 0 3px rgba(0,0,0,.22), 0 4px 10px rgba(0,0,0,.35);
	font-weight: 900;
	font-size: 14px;
	letter-spacing: -.5px;
	color: #fff;
	text-shadow: 0 1px 2px #000;
}

.ccas-brand-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.05;
}

.ccas-brand-copy strong {
	overflow: hidden;
	color: #fff !important;
	font-size: clamp(13px, 2vw, 20px);
	font-weight: 900;
	letter-spacing: .04em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ccas-brand-copy small {
	margin-top: 4px;
	color: rgba(255,255,255,.72) !important;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
}

.ccas-top-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ccas-icon-button,
button.ccas-icon-button,
a.ccas-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;
}

.ccas-icon-button:hover,
.ccas-icon-button:focus-visible {
	border-color: var(--ccas-accent) !important;
	background: linear-gradient(180deg, color-mix(in srgb, var(--ccas-accent) 45%, #fff 10%), color-mix(in srgb, var(--ccas-accent) 70%, #000 30%)) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.ccas-icon-button .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 24px;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.ccas-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(--ccas-primary);
	border-radius: 999px;
	background: #d5262e;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
}

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

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

.ccas-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 14% 4%, rgba(181,139,67,.25), transparent 26%),
		linear-gradient(180deg, #17222c, #080d11 66%);
	border-right: 1px solid var(--ccas-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;
}

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

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

.ccas-drawer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ccas-drawer-brand > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ccas-drawer-brand strong {
	color: #fff !important;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .03em;
}

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

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

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

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

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

.ccas-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;
}

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

.ccas-nav-item .dashicons {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 24px;
	line-height: 24px;
}

.ccas-logout-link {
	margin-top: 18px;
	border-color: rgba(214,38,46,.48);
	background: rgba(214,38,46,.12);
}

.ccas-bottom-nav {
	position: fixed;
	touch-action: pan-x;
	overscroll-behavior: contain;
	-webkit-user-select: none;
	user-select: none;
	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(--ccas-bottom-height) + var(--ccas-safe-bottom));
	padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(6px + var(--ccas-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, #17212b, #080c10);
	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;
}

.ccas-bottom-nav .ccas-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;
}

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

.ccas-bottom-nav .ccas-nav-item .dashicons {
	font-size: 25px;
}

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

.ccas-bottom-nav .ccas-bottom-featured .dashicons {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1px;
	border: 2px solid rgba(255,255,255,.5);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 25%, #ead49f, var(--ccas-accent) 45%, #5d421b 100%);
	box-shadow: inset 0 0 0 4px rgba(0,0,0,.2), 0 5px 14px rgba(0,0,0,.4);
	font-size: 25px;
	line-height: 48px;
	text-shadow: 0 1px 2px #000;
}

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

body.ccas-enabled button *,
body.ccas-enabled input[type="button"] *,
body.ccas-enabled input[type="submit"] *,
body.ccas-enabled input[type="reset"] *,
body.ccas-enabled a.button *,
body.ccas-enabled .button *,
body.ccas-enabled .btn *,
body.ccas-enabled .wp-element-button *,
body.ccas-enabled .wp-block-button__link *,
body.ccas-enabled .woocommerce a.button *,
body.ccas-enabled .woocommerce button.button *,
body.ccas-enabled .add_to_cart_button *,
body.ccas-enabled .single_add_to_cart_button *,
body.ccas-enabled .checkout-button *,
body.ccas-enabled .wc-forward * {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

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

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

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

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

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

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

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

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

	.ccas-brand-copy strong {
		font-size: clamp(10px, 3vw, 14px);
	}

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

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

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

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

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

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

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

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

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

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

/* Reserved integration slot for the upcoming Auction / Trade plugin. */
.ccas-auction-trade-slot {
	position: relative;
	flex-wrap: wrap;
	border-color: rgba(181, 139, 67, .7);
	background:
		linear-gradient(135deg, rgba(181,139,67,.28), rgba(255,255,255,.05));
}

.ccas-auction-trade-slot .ccas-nav-label {
	flex: 1 1 auto;
	min-width: 120px;
}

.ccas-status-badge {
	margin-left: auto;
	padding: 5px 8px;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 999px;
	background: rgba(0,0,0,.28);
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .08em;
	line-height: 1;
	white-space: nowrap;
}

.ccas-auction-trade-slot.is-coming-soon {
	cursor: default;
	opacity: .82;
}

.ccas-auction-trade-slot.is-coming-soon:hover {
	border-color: rgba(181, 139, 67, .7);
	background: linear-gradient(135deg, rgba(181,139,67,.28), rgba(255,255,255,.05));
	transform: none;
}

.ccas-auction-trade-slot.is-ready {
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 5px 16px rgba(0,0,0,.2);
}

.ccas-auction-trade-slot.is-ready .ccas-status-badge {
	background: rgba(39, 128, 68, .72);
}

/* Full-screen control for the bottom Search / Collection navigation. */
.ccas-bottom-nav,
.ccas-bottom-nav-toggle {
	transition: transform .22s ease, bottom .22s ease, opacity .22s ease;
}

.ccas-bottom-nav-toggle {
	position: fixed;
	touch-action: pan-x;
	-webkit-user-select: none;
	user-select: none;
	right: max(8px, env(safe-area-inset-right, 0px));
	bottom: calc(var(--ccas-bottom-height) + var(--ccas-safe-bottom) - 1px);
	z-index: 999990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 62px;
	height: 25px;
	min-width: 62px;
	min-height: 25px;
	padding: 2px 7px;
	border: 1px solid rgba(255,255,255,.28);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
	background: linear-gradient(180deg, #253442, #0b1117);
	box-shadow: 0 -4px 12px rgba(0,0,0,.28);
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-family: "Century Gothic", CenturyGothic, AppleGothic, Arial, sans-serif;
	font-size: 8px;
	font-weight: 900;
	letter-spacing: .08em;
	line-height: 1;
	cursor: pointer;
}

.ccas-bottom-nav-toggle:hover,
.ccas-bottom-nav-toggle:focus-visible {
	border-color: var(--ccas-accent);
	background: linear-gradient(180deg, #334657, #101920);
	color: #fff !important;
}

.ccas-bottom-nav-toggle .dashicons {
	width: 15px;
	height: 15px;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 15px;
	line-height: 15px;
}

html.ccas-bottom-nav-collapsed .ccas-bottom-nav,
body.ccas-bottom-nav-collapsed .ccas-bottom-nav {
	transform: translateY(115%);
	pointer-events: none;
	opacity: 0;
}

html.ccas-bottom-nav-collapsed .ccas-bottom-nav-toggle,
body.ccas-bottom-nav-collapsed .ccas-bottom-nav-toggle {
	bottom: var(--ccas-safe-bottom);
	width: 70px;
	height: 29px;
	min-width: 70px;
	min-height: 29px;
	border-bottom: 1px solid rgba(255,255,255,.28);
	border-radius: 10px 10px 0 0;
	background: linear-gradient(180deg, var(--ccas-accent), #5d421b);
}

html.ccas-bottom-nav-collapsed body.ccas-enabled.ccas-has-bottom-nav,
body.ccas-enabled.ccas-has-bottom-nav.ccas-bottom-nav-collapsed {
	padding-bottom: 0 !important;
}

@media (min-width: 1025px) {
	.ccas-bottom-nav-toggle {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ccas-bottom-nav,
	.ccas-bottom-nav-toggle {
		transition: none !important;
	}
}
