:root {
	--systemdr-navy: #1B2A4A;
	--systemdr-navy-light: #2E4570;
	--systemdr-gold: #C9A227;
	--systemdr-gold-light: #E0C158;
	--systemdr-cream: #F7F4EC;
	--systemdr-text-gray: #5A6478;
	--systemdr-success-green: #2E7D4F;
	--systemdr-white: #ffffff;
	--systemdr-border: #e2ddd3;
	--font-display: "Lora", Georgia, serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--container-max: 1200px;
	--radius: 8px;
	--shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--systemdr-navy);
	background: var(--systemdr-cream);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.25;
}

a { color: var(--systemdr-navy-light); }
a:hover { color: var(--systemdr-gold); }

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

.container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */
.site-header {
	background: var(--systemdr-navy);
	color: var(--systemdr-white);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--systemdr-white);
}

.site-brand img { height: 40px; width: auto; border-radius: 4px; }
.site-brand span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.main-nav a {
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
}
.main-nav a:hover { color: var(--systemdr-gold-light); }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-primary {
	background: var(--systemdr-gold);
	color: var(--systemdr-navy);
	border-color: var(--systemdr-gold);
}
.btn-primary:hover {
	background: var(--systemdr-gold-light);
	border-color: var(--systemdr-gold-light);
	color: var(--systemdr-navy);
}

.btn-secondary {
	background: transparent;
	color: var(--systemdr-white);
	border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover { border-color: var(--systemdr-gold); color: var(--systemdr-gold-light); }

.btn-outline {
	background: transparent;
	color: var(--systemdr-navy);
	border-color: var(--systemdr-navy);
}
.btn-outline:hover { background: var(--systemdr-navy); color: var(--systemdr-white); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hero */
.hero {
	padding: 4rem 0 5rem;
	background: linear-gradient(135deg, var(--systemdr-navy) 0%, var(--systemdr-navy-light) 100%);
	color: var(--systemdr-white);
}

.hero-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2.5rem;
	align-items: center;
}

.hero-content h1,
.hero h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 1rem;
}

.hero-sub {
	font-size: 1.125rem;
	opacity: 0.92;
	max-width: 600px;
	margin-bottom: 1rem;
}

.hero .seo-intro {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 640px;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.seo-intro {
	font-size: 0.9375rem;
	color: var(--systemdr-text-gray);
	max-width: 720px;
	line-height: 1.7;
	margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

.hero-stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.875rem;
	opacity: 0.9;
}

.hero-stats strong {
	display: block;
	font-size: 1.25rem;
	color: var(--systemdr-gold-light);
}

.hero-visual img {
	border-radius: var(--radius);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	max-width: 220px;
}

/* Sections */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2rem; margin: 0 0 0.5rem; }
.section-header p { color: var(--systemdr-text-gray); margin: 0; }

/* Kit grid */
.kit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.kit-card {
	background: var(--systemdr-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s, box-shadow 0.2s;
}

.kit-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(27, 42, 74, 0.12);
}

.kit-card-image {
	height: 160px;
	background: var(--systemdr-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	position: relative;
}

.kit-card-image img { max-height: 80px; object-fit: contain; }

.kit-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.kit-card-role {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--systemdr-gold);
	margin-bottom: 0.5rem;
}

.kit-card-title {
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}

.kit-card-desc {
	font-size: 0.875rem;
	color: var(--systemdr-text-gray);
	margin: 0 0 1rem;
	flex: 1;
}

.kit-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
}

.kit-price {
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--systemdr-navy);
}

.kit-price-prefix { font-size: 0.75rem; font-weight: 500; color: var(--systemdr-text-gray); }

/* Badges */
.badge {
	display: inline-block;
	padding: 0.25rem 0.625rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.badge-new { background: var(--systemdr-gold-light); color: var(--systemdr-navy); }
.badge-updated { background: var(--systemdr-gold); color: var(--systemdr-navy); }
.badge-coming-soon { background: var(--systemdr-navy-light); color: var(--systemdr-white); }

.kit-card-badges {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
}

/* Role grid */
.role-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.role-card {
	background: var(--systemdr-white);
	border: 1px solid var(--systemdr-border);
	border-radius: var(--radius);
	padding: 1.25rem;
	text-align: center;
	text-decoration: none;
	color: var(--systemdr-navy);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.role-card:hover {
	border-color: var(--systemdr-gold);
	box-shadow: var(--shadow);
	color: var(--systemdr-navy);
}

.role-card h3 { margin: 0; font-size: 1rem; }

/* Catalog filters */
.catalog-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--systemdr-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.catalog-toolbar select,
.catalog-toolbar input[type="search"] {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--systemdr-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
}

/* Footer */
.site-footer {
	background: var(--systemdr-navy);
	color: rgba(255,255,255,0.8);
	padding: 3rem 0 1.5rem;
	margin-top: 4rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 2rem;
}

.site-footer h4 { color: var(--systemdr-white); margin: 0 0 1rem; }
.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--systemdr-gold-light); }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 1.5rem;
	text-align: center;
	font-size: 0.875rem;
}

/* My Kits */
.my-kits-grid { display: grid; gap: 1.5rem; }
.my-kit-card {
	background: var(--systemdr-white);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	display: flex;
	gap: 1.5rem;
	align-items: center;
}

.my-kit-card img { width: 64px; height: 64px; object-fit: contain; }

.order-history { margin-top: 3rem; }
.order-history table { width: 100%; border-collapse: collapse; background: var(--systemdr-white); border-radius: var(--radius); overflow: hidden; }
.order-history th, .order-history td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--systemdr-border); }
.order-history th { background: var(--systemdr-navy); color: var(--systemdr-white); }

.empty-state {
	text-align: center;
	padding: 3rem;
	background: var(--systemdr-white);
	border-radius: var(--radius);
}

/* Cart */
.cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: var(--systemdr-white);
	border-radius: var(--radius);
	margin-bottom: 0.75rem;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span {
	padding: 0.5rem 0.875rem;
	border-radius: var(--radius);
	background: var(--systemdr-white);
	text-decoration: none;
	color: var(--systemdr-navy);
}
.pagination .current { background: var(--systemdr-navy); color: var(--systemdr-white); }

/* Notify form */
.notify-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	max-width: 480px;
}
.notify-form input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 0.75rem 1rem;
	border: 2px solid var(--systemdr-border);
	border-radius: var(--radius);
	font-size: 1rem;
}
.notify-form .notify-message { width: 100%; font-size: 0.875rem; margin-top: 0.5rem; }

@media (max-width: 768px) {
	.main-nav ul { gap: 0.75rem; font-size: 0.875rem; }
	.hero { padding: 2.5rem 0 3rem; }
	.hero-inner { grid-template-columns: 1fr; text-align: center; }
	.hero-visual { order: -1; }
	.hero-visual img { margin: 0 auto; }
	.hero-actions, .hero-stats { justify-content: center; }
	.my-kit-card { flex-direction: column; text-align: center; }
}
