/* F2R Warehouse facewash — internal ops UI. Loads last. */

:root {
	--f2r-ink: #111318;
	--f2r-muted: #5c6570;
	--f2r-line: #e4e7eb;
	--f2r-paper: #f3f4f6;
	--f2r-card: #ffffff;
	--f2r-bar: #111318;
	--f2r-accent: #c45c12;
	--f2r-accent-ink: #ffffff;
	--f2r-ok: #1f7a3a;
	--f2r-warn: #9a6b00;
}

body.theme-wide,
body.custom-background,
body,
#wrapper {
	background: var(--f2r-paper) !important;
	color: var(--f2r-ink) !important;
}

body,
#wrapper,
.theme-content,
.site,
.woocommerce {
	color: var(--f2r-ink);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6,
.woocommerce div.product .product_title,
.theme-block.shop .product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--f2r-ink) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 650;
}

a,
a:hover,
a:active {
	color: var(--f2r-ink);
}

.theme-content a:not(.button):not(.btn):not(.added_to_cart) {
	color: var(--f2r-ink);
}

/* ---- Header ---- */

.theme-header-logo-center {
	display: none !important;
}

.f2r-wh-top.navbar {
	background: var(--f2r-bar) !important;
	padding: 0 !important;
	margin: 0;
	min-height: 0;
	box-shadow: none;
	border-radius: 0;
}

.f2r-wh-top__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 8px 20px;
	max-width: 1600px;
	margin: 0 auto;
}

.f2r-wh-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	text-decoration: none !important;
	color: #fff !important;
}

.f2r-wh-brand .custom-logo-link,
.f2r-wh-brand .navbar-brand {
	display: flex;
	margin: 0;
	padding: 0;
}

.f2r-wh-brand img.custom-logo {
	height: 36px;
	width: auto;
	max-height: 36px;
}

.f2r-wh-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.f2r-wh-brand__name {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.f2r-wh-brand__tag {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.55);
}

.f2r-wh-toggle {
	display: none;
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	padding: 6px 8px;
}

.f2r-wh-toggle .navbar-toggler-icon {
	filter: invert(1);
}

.f2r-wh-nav {
	flex: 1 1 auto;
}

.f2r-wh-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.f2r-wh-top .navbar .nav .menu-item .nav-link,
.f2r-wh-menu > .menu-item > a,
.f2r-wh-menu .nav-link {
	color: rgba(255, 255, 255, 0.82) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: 13px;
	font-weight: 550;
	padding: 8px 12px !important;
	border-radius: 6px;
}

.f2r-wh-top .navbar .nav .menu-item:hover .nav-link,
.f2r-wh-top .navbar .nav .menu-item.active .nav-link,
.f2r-wh-menu > .menu-item > a:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08);
}

.f2r-wh-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	flex: 0 1 420px;
	justify-content: flex-end;
}

.f2r-wh-search {
	flex: 1 1 260px;
	max-width: 340px;
}

.f2r-wh-search .aws-container,
.f2r-wh-search form {
	margin: 0;
}

.f2r-wh-search .aws-search-form {
	gap: 10px;
	height: 36px;
	align-items: stretch;
}

.f2r-wh-search .aws-search-form .aws-search-btn,
.f2r-wh-search .aws-search-form .aws-form-btn {
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	width: 36px;
	flex: 0 0 36px;
	background: #ececec;
}

.f2r-wh-search .aws-search-form .aws-search-btn_icon {
	width: 36px;
}

.f2r-wh-search .aws-search-form .aws-wrapper {
	border-radius: 8px !important;
	overflow: hidden;
}

.f2r-wh-search input[type="search"],
.f2r-wh-search input[type="text"],
.f2r-wh-search .aws-search-field {
	background: #fff !important;
	color: var(--f2r-ink) !important;
	border: 0 !important;
	border-radius: 8px !important;
	height: 36px;
	padding: 0 12px !important;
	font-size: 13px !important;
	width: 100%;
}

.f2r-wh-account {
	color: #fff !important;
	font-size: 12px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 8px;
	text-decoration: none !important;
	white-space: nowrap;
}

.f2r-wh-account:hover {
	background: #fff;
	color: var(--f2r-ink) !important;
}

.f2r-wh-drive-link {
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none !important;
	padding: 0 4px;
	white-space: nowrap;
	border: 0;
}

.f2r-wh-drive-link:hover {
	color: #fff !important;
}

/* Hide the old second navbar if parent still prints it */
.f2r-wh-top + .navbar,
nav.navbar.navbar-header-center {
	display: none;
}

.f2r-wh-top nav.navbar,
.f2r-wh-top .navbar.navbar-header-center {
	display: flex;
	background: transparent;
	padding: 0;
	box-shadow: none;
}

/* ---- Page chrome ---- */

.theme-page-header-area,
.theme-page-header-area .overlay {
	display: none !important;
}

.page-breadcrumb,
.theme-page-header-area .page-breadcrumb {
	display: none;
}

.site-header {
	background: transparent !important;
}

body.f2r-warehouse-ui .sidebar,
body.f2r-warehouse-ui .theme-block.theme-blog.theme-bg-grey {
	background: var(--f2r-paper) !important;
}

body.f2r-warehouse-ui .theme-blog .post {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Only the header search — widgets/seamless copies stay hidden */
body.f2r-warehouse-ui .aws-container {
	display: none !important;
}

body.f2r-warehouse-ui .f2r-wh-search .aws-container {
	display: block !important;
}

/* ---- Shop grid ---- */

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin: 0 0 24px !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	background: var(--f2r-card);
	border: 1px solid var(--f2r-line);
	border-radius: 10px;
	padding: 10px 10px 12px;
	box-sizing: border-box;
}

.woocommerce ul.products li.product a img {
	margin: 0 0 8px;
	width: 100%;
	height: 140px;
	object-fit: contain;
	background: #fafafa;
	border-radius: 6px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 13px !important;
	line-height: 1.3;
	margin: 0 0 4px;
}

.f2r-wh-sku {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
	color: var(--f2r-muted);
	margin-bottom: 4px;
}

.f2r-wh-stock {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 999px;
	margin-bottom: 6px;
}

.f2r-wh-stock.is-in {
	background: #e8f6ec;
	color: var(--f2r-ok);
}

.f2r-wh-stock.is-out {
	background: #fde8e8;
	color: #a11;
}

.woocommerce ul.products li.product .price {
	color: var(--f2r-ink) !important;
	font-size: 13px;
	font-weight: 650;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
	background: var(--f2r-ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 7px !important;
	font-size: 12px !important;
	padding: 7px 10px !important;
	margin-top: 6px;
}

.woocommerce ul.products li.product .button:hover {
	background: var(--f2r-accent) !important;
}

.f2r-wh-shop .container-full {
	max-width: 1600px;
	margin: 0 auto;
	padding: 16px 20px 40px;
}

.f2r-wh-shop .woocommerce-products-header {
	margin: 0 0 12px;
}

.f2r-wh-shop .woocommerce-products-header h1 {
	font-size: 22px !important;
	margin: 0 0 8px;
}

/* ---- Product / cart / account ---- */

.woocommerce div.product,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
	background: var(--f2r-card);
	border: 1px solid var(--f2r-line);
	border-radius: 12px;
	padding: 20px;
}

.woocommerce div.product .product_title {
	font-size: 26px !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--f2r-ink) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
button,
input[type="submit"],
input[type="button"],
.btn-default {
	background: var(--f2r-ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 650;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
button:hover,
input[type="submit"]:hover,
.btn-default:hover {
	background: var(--f2r-accent) !important;
	color: #fff !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--f2r-accent) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	background: #fff !important;
	color: var(--f2r-ink) !important;
	border: 1px solid var(--f2r-line) !important;
	border-radius: 8px !important;
}

.woocommerce table.shop_table {
	border: 1px solid var(--f2r-line) !important;
	background: #fff;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	color: var(--f2r-ink);
	border-color: var(--f2r-line) !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	background: #fff !important;
	color: var(--f2r-ink) !important;
	border-top-color: var(--f2r-accent) !important;
}

/* ---- Content width ---- */

.container-full,
.theme-content .container-full,
.theme-content .container {
	max-width: 1600px;
	padding-left: 20px;
	padding-right: 20px;
}

.theme-content {
	padding-top: 12px;
	padding-bottom: 40px;
}

/* ---- Footer ---- */

.f2r-wh-footer,
footer.site-footer {
	background: var(--f2r-bar) !important;
	color: rgba(255, 255, 255, 0.65) !important;
	padding: 16px 20px !important;
	margin-top: 24px;
}

.f2r-wh-footer__inner {
	max-width: 1600px;
	margin: 0 auto;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.f2r-wh-footer a {
	color: #fff !important;
}

.site-info {
	display: none;
}

.page-scroll-up a {
	background: var(--f2r-ink) !important;
	color: #fff !important;
	border-radius: 8px;
}

/* ---- Login (also used via extra CSS) ---- */

body.login {
	background: var(--f2r-paper) !important;
}

body.login #login {
	padding-top: 8vh;
}

body.login #login h1 a {
	width: 320px !important;
	height: 240px !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	text-indent: -9999px;
	overflow: hidden;
}

body.login form {
	border: 1px solid var(--f2r-line);
	border-radius: 12px;
	box-shadow: none;
}

/* ---- Component Google Drive files ---- */

.f2r-drive-files {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--f2r-line);
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.f2r-drive-files__head {
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--f2r-ink);
}

.f2r-drive-files__status {
	margin: 0;
	color: var(--f2r-muted);
}

.f2r-drive-files__list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.f2r-drive-files__list li {
	margin: 0 0 4px;
}

.f2r-drive-files__list a,
.f2r-drive-files__search {
	color: var(--f2r-accent) !important;
	text-decoration: none;
	font-weight: 600;
}

.f2r-drive-files__list a:hover,
.f2r-drive-files__search:hover {
	text-decoration: underline;
}

.f2r-drive-files__fallback {
	margin: 8px 0 0;
}

.f2r-drive-files--compact {
	padding: 8px 10px;
	margin-top: 8px;
}

.f2r-drive-files__toggle {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--f2r-accent);
	font-weight: 650;
	cursor: pointer;
}

.f2r-drive-files__empty {
	margin: 0;
	color: var(--f2r-muted);
}

.f2r-drive-files__refresh {
	margin-left: 8px;
	padding: 2px 8px;
	border: 1px solid var(--f2r-line);
	border-radius: 6px;
	background: #fff;
	color: var(--f2r-ink);
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
}

.f2r-drive-files__refresh:hover {
	border-color: var(--f2r-accent);
	color: var(--f2r-accent);
}

.f2r-drive-files__account {
	margin: 6px 0 0;
	font-size: 11px;
	color: var(--f2r-muted);
}

.f2r-drive-files.is-loading .f2r-drive-files__status {
	opacity: 0.7;
}

.f2r-drive-toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	background: var(--f2r-ink);
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
}

@media (max-width: 991px) {
	.f2r-wh-top__inner {
		flex-wrap: wrap;
	}
	.f2r-wh-toggle {
		display: inline-flex;
	}
	.f2r-wh-nav {
		flex: 1 0 100%;
		order: 4;
	}
	.f2r-wh-tools {
		flex: 1 1 auto;
		max-width: none;
	}
	.f2r-wh-menu {
		flex-direction: column;
		align-items: stretch;
		padding: 8px 0 12px;
	}
}
