:root {
	--rtm-blue: #2f4596;
	--rtm-blue-dark: #17265f;
	--rtm-blue-soft: #eef3ff;
	--rtm-border: #d9dfeb;
	--rtm-text: #172033;
	--rtm-muted: #68738a;
	--rtm-bg: #f6f8fc;
	--rtm-white: #ffffff;
	--rtm-radius: 8px;
	--rtm-shadow: 0 12px 30px rgba(23, 38, 95, 0.08);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--rtm-bg);
	color: var(--rtm-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

a {
	color: var(--rtm-blue);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--rtm-blue-dark);
}

img {
	height: auto;
	max-width: 100%;
}

.rtm-container {
	width: min(1180px, calc(100% - 32px));
	margin: 0 auto;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: var(--rtm-radius);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--rtm-border);
	backdrop-filter: saturate(160%) blur(10px);
}

.header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 78px;
}

.brand-link {
	display: inline-flex;
	align-items: center;
}

.brand-link img,
.custom-logo-link img {
	display: block;
	width: 118px;
	max-height: 58px;
	object-fit: contain;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 12px;
	color: var(--rtm-text);
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	background: var(--rtm-blue-soft);
	color: var(--rtm-blue-dark);
}

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.header-link,
.cart-link,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	background: var(--rtm-white);
	color: var(--rtm-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.cart-link {
	gap: 8px;
	background: var(--rtm-blue);
	border-color: var(--rtm-blue);
	color: var(--rtm-white);
}

.cart-link:hover,
.cart-link:focus,
.button-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--rtm-blue-dark);
	border-color: var(--rtm-blue-dark);
	color: var(--rtm-white);
}

.cart-link span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--rtm-white);
	color: var(--rtm-blue);
	font-size: 12px;
}

.button-ghost {
	background: transparent;
}

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 9px;
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	background: var(--rtm-white);
}

.menu-toggle span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: var(--rtm-blue-dark);
}

.rtm-hero {
	padding: 54px 0 34px;
	background: linear-gradient(180deg, var(--rtm-white) 0%, var(--rtm-bg) 100%);
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: center;
	gap: 36px;
}

.rtm-eyebrow {
	margin: 0 0 8px;
	color: var(--rtm-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-copy h1,
.content-entry h1,
.rtm-shop-title {
	margin: 0;
	color: var(--rtm-blue-dark);
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.06;
}

.hero-copy p:not(.rtm-eyebrow) {
	max-width: 620px;
	margin: 16px 0 0;
	color: var(--rtm-muted);
	font-size: 18px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.hero-panel {
	display: grid;
	gap: 10px;
	padding: 18px;
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: var(--rtm-radius);
	box-shadow: var(--rtm-shadow);
}

.panel-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--rtm-border);
}

.panel-row:last-child {
	border-bottom: 0;
}

.panel-row span {
	color: var(--rtm-muted);
	font-size: 14px;
}

.panel-row strong {
	text-align: right;
	color: var(--rtm-blue-dark);
}

.quick-catalog,
.page-shell,
.rtm-shop-main {
	padding: 34px 0 56px;
}

.section-heading {
	margin-bottom: 18px;
}

.section-heading h2 {
	margin: 0;
	color: var(--rtm-blue-dark);
	font-size: 28px;
}

.category-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.category-links a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	font-weight: 700;
}

.content-entry {
	max-width: 860px;
	padding: 28px;
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: var(--rtm-radius);
}

.entry-content {
	margin-top: 18px;
}

.rtm-catalog-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
	align-items: end;
	gap: 24px;
	margin-bottom: 22px;
	padding: 22px;
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: var(--rtm-radius);
}

.rtm-shop-title {
	font-size: 30px;
}

.rtm-product-search {
	display: flex;
	width: 100%;
	gap: 8px;
}

.rtm-product-search input[type="search"] {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	background: var(--rtm-white);
	color: var(--rtm-text);
	font-size: 15px;
}

.rtm-product-search button {
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--rtm-blue);
	border-radius: 6px;
	background: var(--rtm-blue);
	color: var(--rtm-white);
	font-weight: 800;
	cursor: pointer;
}

.woocommerce .woocommerce-result-count {
	color: var(--rtm-muted);
	font-size: 14px;
}

.woocommerce .woocommerce-ordering select,
.woocommerce select,
.woocommerce input.input-text,
.woocommerce textarea {
	min-height: 40px;
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	background: var(--rtm-white);
	color: var(--rtm-text);
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products.columns-1 li.product,
.woocommerce-page ul.products.columns-1 li.product {
	float: none;
	width: 100%;
	margin: 0;
}

.rtm-product-row {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) minmax(150px, auto);
	align-items: center;
	gap: 16px;
	min-height: 106px;
	padding: 12px;
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: var(--rtm-radius);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.rtm-product-row:hover {
	border-color: rgba(47, 69, 150, 0.42);
	box-shadow: 0 8px 22px rgba(23, 38, 95, 0.06);
}

.rtm-product-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	background: #f9fbff;
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	overflow: hidden;
}

.rtm-product-media img {
	width: 74px;
	height: 74px;
	object-fit: contain;
}

.rtm-product-main {
	min-width: 0;
}

.rtm-product-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rtm-product-title {
	color: var(--rtm-blue-dark);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.rtm-product-sku {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 0 8px;
	background: var(--rtm-blue-soft);
	color: var(--rtm-blue-dark);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
}

.rtm-product-meta,
.rtm-product-excerpt {
	margin-top: 6px;
	color: var(--rtm-muted);
	font-size: 13px;
}

.rtm-product-buy {
	display: grid;
	justify-items: end;
	gap: 8px;
}

.rtm-product-price {
	color: var(--rtm-blue-dark);
	font-size: 16px;
	font-weight: 900;
	white-space: nowrap;
}

.rtm-product-buy .button {
	min-height: 38px;
	padding: 0 14px;
	background: var(--rtm-blue);
	border-color: var(--rtm-blue);
	color: var(--rtm-white);
	font-size: 13px;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 6px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 38px;
	min-height: 38px;
	padding: 9px 12px;
	border: 1px solid var(--rtm-border);
	border-radius: 6px;
	background: var(--rtm-white);
	color: var(--rtm-text);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--rtm-blue);
	border-color: var(--rtm-blue);
	color: var(--rtm-white);
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce form.checkout {
	background: var(--rtm-white);
	border: 1px solid var(--rtm-border);
	border-radius: var(--rtm-radius);
}

.woocommerce table.shop_table {
	border-collapse: separate;
	overflow: hidden;
}

.site-footer {
	background: var(--rtm-blue-dark);
	color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 86px;
	font-size: 14px;
}

.footer-inner p {
	margin: 0;
}

@media (max-width: 860px) {
	.header-inner {
		grid-template-columns: auto auto auto;
		gap: 12px;
		min-height: 68px;
	}

	.menu-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		grid-column: 1 / -1;
		width: 100%;
		padding-bottom: 14px;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		display: grid;
		justify-content: stretch;
	}

	.main-navigation a {
		width: 100%;
	}

	.header-actions {
		gap: 6px;
	}

	.header-link,
	.cart-link {
		min-height: 38px;
		padding: 0 11px;
	}

	.hero-grid,
	.rtm-catalog-toolbar {
		grid-template-columns: 1fr;
	}

	.hero-panel {
		order: -1;
	}

	.rtm-product-row {
		grid-template-columns: 70px minmax(0, 1fr);
		align-items: start;
	}

	.rtm-product-media {
		width: 70px;
		height: 70px;
	}

	.rtm-product-media img {
		width: 62px;
		height: 62px;
	}

	.rtm-product-buy {
		grid-column: 1 / -1;
		grid-template-columns: 1fr auto;
		align-items: center;
		justify-items: start;
	}
}

@media (max-width: 560px) {
	.rtm-container {
		width: min(100% - 22px, 1180px);
	}

	.brand-link img,
	.custom-logo-link img {
		width: 96px;
	}

	.rtm-hero {
		padding-top: 30px;
	}

	.hero-copy h1,
	.content-entry h1 {
		font-size: 30px;
	}

	.rtm-product-search {
		display: grid;
	}

	.footer-inner {
		display: grid;
		padding: 20px 0;
	}
}

