@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap");

:root {
	--om-primary: #fe4042;
	--om-primary-dark: #cc3333;
	--om-accent: #4e54c8;
	--om-navy: #222d65;
	--om-navy-dark: #253b80;
	--om-heading: #373f50;
	--om-text: #4b566b;
	--om-muted: #7d879c;
	--om-line: #e3e9ef;
	--om-surface: #fff;
	--om-bg: #f6f9fc;
	--om-success: #42d697;
	--om-danger: #f34770;
	--om-radius-sm: 3px;
	--om-radius: 7px;
	--om-radius-lg: 10px;
	--om-shadow: 0 0.25rem 1rem rgba(43, 52, 69, 0.08);
	--om-header-height: 80px;
	--om-sidebar-width: 22rem;
	--om-container: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--om-bg);
	color: var(--om-text);
	font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.6;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; }
a { color: var(--om-accent); text-decoration: none; }
a:hover { color: var(--om-primary); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75rem;
	color: var(--om-heading);
	font-weight: 500;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.25rem; }

button,
input,
select,
textarea { font: inherit; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.625rem 1rem;
	border: 1px solid #dae1e7;
	border-radius: 5px;
	background: #fff;
	color: var(--om-text);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0);
}

textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
	outline: 3px solid rgba(78, 84, 200, 0.25);
	outline-offset: 2px;
}

button,
.button,
input[type="submit"] {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.2rem;
	border: 1px solid var(--om-primary);
	border-radius: 5px;
	background: var(--om-primary);
	color: #fff;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

button:hover, .button:hover, input[type="submit"]:hover {
	background: var(--om-primary-dark);
	color: #fff;
	box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(254, 64, 66, 0.7);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	z-index: 100000; top: 5px; left: 5px; width: auto; height: auto;
	padding: 15px 23px; clip: auto; background: #fff; color: #000;
}

.site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	right: 0;
	left: 0;
	height: var(--om-header-height);
	background: var(--om-surface);
	box-shadow: 0 1px 0 var(--om-line);
}

.admin-bar .site-header { top: 32px; }
.header-inner {
	display: grid;
	height: 100%;
	grid-template-columns: 211px minmax(260px, 1fr) auto;
	gap: 30px;
	align-items: center;
	padding: 0 30px;
}
.site-branding img { display: block; width: auto; max-height: 68px; }
.site-title { color: var(--om-heading); font-size: 1.25rem; font-weight: 600; }
.menu-toggle { display: none; }
.icon-button { width: 44px; padding: 0; border: 0; background: transparent; color: var(--om-heading); font-size: 1.5rem; }
.icon-button:hover { background: var(--om-bg); color: var(--om-heading); box-shadow: none; }

.header-search .woocommerce-product-search,
.header-search .search-form { position: relative; display: flex; width: 100%; }
.header-search input[type="search"] { height: 44px; padding-right: 52px; border-radius: 5px; }
.header-search button {
	position: absolute; top: 0; right: 0; width: 48px; height: 44px; min-height: 44px;
	padding: 0; border-radius: 0 5px 5px 0; box-shadow: none;
}
.header-search button::before { content: "⌕"; font-size: 1.35rem; }
.header-search button { font-size: 0; }

.header-tools { display: flex; align-items: center; gap: 20px; }
.tool-link { display: flex; align-items: center; gap: 8px; color: var(--om-text); white-space: nowrap; }
.tool-link small { display: block; color: var(--om-muted); font-size: 0.75rem; font-weight: 400; }
.tool-icon {
	position: relative; display: grid; width: 46px; height: 46px; place-items: center;
	border-radius: 50%; background: #f3f5f9; font-size: 1.2rem;
}
.tool-icon b {
	position: absolute; top: -5px; right: -5px; display: grid; width: 20px; height: 20px;
	place-items: center; border-radius: 50%; background: var(--om-primary); color: #fff; font-size: 11px;
}
.mobile-category-nav { display: none; }

.site-shell { padding-top: var(--om-header-height); }
.site-sidebar {
	position: fixed; z-index: 800; top: var(--om-header-height); bottom: 0; left: 0;
	display: flex; width: var(--om-sidebar-width); flex-direction: column;
	justify-content: space-between; border-right: 1px solid var(--om-line); background: #fff;
}
.admin-bar .site-sidebar { top: calc(var(--om-header-height) + 32px); }
.sidebar-scroll { padding: 1.5rem; overflow-y: auto; }
.site-sidebar ul { margin: 0; padding: 0; list-style: none; }
.site-sidebar li { position: relative; border-bottom: 1px solid #f1f2f5; }
.site-sidebar a {
	display: flex; min-height: 42px; align-items: center; justify-content: space-between;
	padding: 0.55rem 0.4rem; color: var(--om-text); font-size: 0.9rem;
}
.site-sidebar a:hover, .site-sidebar .current-menu-item > a { color: var(--om-primary); }
.site-sidebar .sub-menu { padding-left: 0.8rem; }
.sidebar-support { padding: 1.25rem 1.5rem; border-top: 1px solid var(--om-line); }
.sidebar-support strong, .sidebar-support a { display: block; }

.site-content, .site-footer { margin-left: var(--om-sidebar-width); }
.site-main { min-height: 60vh; padding: 30px 0 50px; }
.content-container { width: min(calc(100% - 48px), var(--om-container)); margin-inline: auto; }
.content-container.narrow { max-width: 760px; }
.breadcrumbs, .rank-math-breadcrumb p {
	display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0 0 1.5rem;
	color: var(--om-muted); font-size: 0.8125rem;
}
.breadcrumbs a, .rank-math-breadcrumb a { color: var(--om-muted); }
.page-header { display: flex; margin-bottom: 1.5rem; align-items: end; justify-content: space-between; }
.home-hero { min-height: 300px; display: grid; align-items: center; background: linear-gradient(115deg, #fff 0%, #fff 52%, #eef1ff 100%); }
.home-hero > div { max-width: 680px; }
.home-hero .eyebrow { color: var(--om-primary); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.how-it-works, .home-products { margin-top: 2.5rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps .content-card { position: relative; min-height: 180px; }
.steps span { color: var(--om-line); font-size: 3rem; font-weight: 500; line-height: 1; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--om-line); }

.content-card, .post-card {
	border-radius: var(--om-radius); background: #fff; box-shadow: var(--om-shadow);
}
.content-card { padding: clamp(1rem, 3vw, 2rem); }
.page-content, .single-content { max-width: 1100px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 10px; border: 1px solid var(--om-line); }
.entry-thumbnail { margin: 1.5rem 0; text-align: center; }
.entry-thumbnail img { border-radius: var(--om-radius); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; }
.post-card-image { display: block; aspect-ratio: 16 / 9; background: #fff; }
.post-card-image img { width: 100%; height: 100%; object-fit: contain; }
.post-card-body { padding: 1.25rem; }
.post-card .entry-title { font-size: 1.1rem; }
.post-card .posted-on { color: var(--om-muted); font-size: 0.8rem; }
.nav-links { display: flex; gap: 8px; margin-top: 2rem; justify-content: center; }
.page-numbers { display: grid; min-width: 40px; height: 40px; padding: 0 10px; place-items: center; border-radius: 4px; background: #fff; }
.page-numbers.current { background: var(--om-primary); color: #fff; }

.error-404 { text-align: center; }
.error-code { margin: 0; color: var(--om-line); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; }
.error-404 .search-form { display: flex; max-width: 500px; margin: 1.5rem auto; }

.site-footer { padding: 3rem 3rem 0; background: var(--om-navy); color: rgba(255,255,255,.68); }
.footer-inner { display: grid; max-width: var(--om-container); margin: auto; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; }
.site-footer h2, .site-footer .widget-title { color: #fff; font-size: 1.0625rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.site-info { margin-top: 2rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }

@media (max-width: 1200px) {
	:root { --om-sidebar-width: 18rem; }
	.header-inner { grid-template-columns: 180px minmax(240px, 1fr) auto; gap: 18px; }
	.account-tool > span:last-child { display: none; }
}

@media (max-width: 1024px) {
	:root { --om-header-height: 70px; }
	.header-inner { grid-template-columns: 44px 150px 1fr auto; padding: 0 18px; }
	.menu-toggle { display: inline-flex; }
	.site-sidebar {
		z-index: 1200; top: 0; width: min(320px, 86vw); transform: translateX(-105%);
		transition: transform 0.25s ease;
	}
	.admin-bar .site-sidebar { top: 0; }
	.menu-open .site-sidebar { transform: translateX(0); }
	.site-overlay {
		position: fixed; z-index: 1100; inset: 0; display: block; background: rgba(43,52,69,.55);
	}
	.site-content, .site-footer { margin-left: 0; }
	.mobile-category-nav { display: none; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.site-shell { padding-top: var(--om-header-height); }
	.header-inner { grid-template-columns: 44px 130px minmax(0, 1fr) auto; gap: 10px; padding: 0 12px; }
	.site-branding img { max-height: 50px; }
	.tool-link > span:last-child, .account-tool { display: none; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	.site-header { height: 120px; }
	.site-shell { padding-top: 120px; }
	.header-inner {
		height: 70px; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; padding: 0 10px;
	}
	.site-branding { justify-self: center; }
	.header-search { position: absolute; right: 10px; bottom: 7px; left: 10px; }
	.header-tools { justify-self: end; }
	.cart-tool .tool-icon { width: 42px; height: 42px; }
	.content-container { width: min(calc(100% - 24px), var(--om-container)); }
	.site-main { padding-top: 20px; }
	.post-grid { grid-template-columns: 1fr; gap: 16px; }
	.footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.site-footer { padding: 2rem 1.25rem 0; }
}
