:root {
	--bg-primary: radial-gradient(circle at top, #0b1220 0%, #03050a 55%, #000 100%);
	--surface: rgba(7, 14, 28, 0.92);
	--surface-alt: rgba(4, 9, 20, 0.84);
	--accent: #0ff9ff;
	--accent-soft: rgba(0, 255, 255, 0.2);
	--accent-strong: #21f8ff;
	--accent-glow: 0 0 14px rgba(22, 252, 255, 0.6);
	--accent-secondary: #ff2d87;
	--text-primary: #f4ffff;
	--text-muted: rgba(225, 240, 255, 0.65);
	--border: rgba(33, 248, 255, 0.35);
	--border-strong: rgba(33, 248, 255, 0.65);
	--shadow: 0 20px 40px rgba(3, 8, 20, 0.55);
	font-family: "Share Tech Mono", "IBM Plex Mono", monospace;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg-primary);
	color: var(--text-primary);
	display: flex;
	flex-direction: column;
}

a {
	color: inherit;
}

.container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.navbar {
	margin: 2rem auto 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(5, 14, 29, 0.9), rgba(10, 20, 34, 0.75));
	box-shadow: var(--shadow);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	position: relative;
	overflow: hidden;
}

.navbar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(33, 248, 255, 0.18), transparent 48%);
	pointer-events: none;
}

.logo-area {
	position: relative;
	z-index: 1;
}

.logo {
	margin: 0;
	font-size: 1.75rem;
	letter-spacing: 0.18rem;
	text-transform: uppercase;
	color: var(--accent);
	text-shadow: var(--accent-glow);
}

.tagline {
	margin: 0.4rem 0 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.nav-links {
	position: relative;
	display: flex;
	gap: 0.75rem;
	list-style: none;
	padding: 0.35rem;
	margin: 0;
	border-radius: 12px;
	background: rgba(3, 10, 20, 0.6);
	border: 1px solid rgba(33, 248, 255, 0.2);
}

.nav-links a {
	position: relative;
	display: inline-block;
	padding: 0.55rem 1.15rem;
	font-size: 0.92rem;
	letter-spacing: 0.08rem;
	text-decoration: none;
	color: var(--text-muted);
	border-radius: 8px;
	transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
	color: var(--accent);
	background: rgba(28, 64, 86, 0.35);
}

.nav-links .nav-highlight {
	color: var(--accent);
	background: rgba(23, 208, 255, 0.12);
	border: 1px solid rgba(33, 248, 255, 0.35);
	box-shadow: inset 0 0 12px rgba(31, 220, 255, 0.3);
}

main {
	flex: 1;
}

.grid-shell {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr) 320px;
	gap: 1.75rem;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto 4rem;
	padding: 0 1.5rem;
}

.category-rail,
.content-slab,
.filter-sidebar {
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow);
	padding: 1.5rem;
	position: relative;
	overflow: hidden;
}

.category-rail::before,
.content-slab::before,
.filter-sidebar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(33, 248, 255, 0.07), rgba(3, 10, 20, 0.25));
	pointer-events: none;
}

.rail-header {
	position: relative;
	margin-bottom: 1.5rem;
}

.rail-title {
	font-size: 1.15rem;
	letter-spacing: 0.12rem;
	text-transform: uppercase;
	color: var(--accent);
	display: block;
}

.rail-hint {
	margin: 0.75rem 0 0;
	font-size: 0.86rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.category-list {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.category-list button {
	width: 100%;
	padding: 0.75rem 1rem;
	text-align: left;
	border: 1px solid rgba(33, 248, 255, 0.25);
	border-radius: 10px;
	background: rgba(4, 14, 26, 0.85);
	color: var(--text-primary);
	letter-spacing: 0.06rem;
	cursor: pointer;
	transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.category-list button:hover,
.category-list button:focus-visible {
	border-color: var(--border-strong);
	box-shadow: 0 0 18px rgba(33, 248, 255, 0.4);
	transform: translateY(-2px);
}

.content-slab {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}

.content-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	position: relative;
}

.content-titles h1 {
	margin: 0;
	font-size: 1.45rem;
	letter-spacing: 0.06rem;
}

.content-sub {
	margin: 0.6rem 0 0;
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.55;
}

.items-section {
	position: relative;
	border: 1px solid rgba(33, 248, 255, 0.22);
	border-radius: 16px;
	background: var(--surface-alt);
	padding: 1.5rem;
	min-height: 300px;
}

.items-title-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.items-title-bar h2 {
	margin: 0;
	font-size: 1.25rem;
	letter-spacing: 0.08rem;
	color: var(--accent);
}

.items-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}

.item {
	border: 1px solid rgba(33, 248, 255, 0.2);
	border-radius: 14px;
	background: rgba(5, 12, 24, 0.9);
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	box-shadow: inset 0 0 0 1px rgba(33, 248, 255, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(16, 52, 64, 0.45), var(--accent-glow);
}

.item h3 {
	margin: 0;
	font-size: 1.05rem;
	color: var(--accent);
	letter-spacing: 0.05rem;
}

.item .desc {
	margin: 0;
	font-size: 0.88rem;
	color: var(--text-muted);
	line-height: 1.5;
}

.item .meta {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(205, 230, 240, 0.7);
	letter-spacing: 0.04rem;
}

.item .weapon-code {
	margin: 0.75rem 0;
	padding: 0.75rem;
	list-style: none;
	background: var(--surface-alt);
	border: 1px solid var(--border);
	border-radius: 10px;
	display: grid;
	gap: 0.35rem;
	font-size: 0.8rem;
}

.item .weapon-code li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.item .weapon-code .stat-label {
	color: var(--accent-secondary);
	font-weight: 600;
}

.item .btn-add {
	margin-top: auto;
}

.btn-primary,
.btn-add {
	border: 1px solid rgba(33, 248, 255, 0.35);
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(7, 210, 220, 0.95), rgba(18, 112, 128, 0.9));
	color: #001219;
	font-size: 0.92rem;
	letter-spacing: 0.08rem;
	padding: 0.65rem 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-add:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(14, 210, 220, 0.45);
}

.btn-primary:active,
.btn-add:active {
	transform: translateY(0);
	box-shadow: none;
}

.filter-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 260px;
}

.btn-danger {
	border: 1px solid rgba(255, 45, 135, 0.65);
	background: transparent;
	color: var(--accent-secondary);
	padding: 0.65rem 1.25rem;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.08rem;
	font-weight: 600;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
}

.btn-danger:hover {
	background: rgba(255, 45, 135, 0.15);
	box-shadow: 0 0 14px rgba(255, 45, 135, 0.45);
}

.filter-sidebar h3 {
	margin: 0;
	font-size: 1rem;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	color: var(--accent);
}

.filter-sidebar label {
	font-size: 0.82rem;
	color: var(--text-muted);
	letter-spacing: 0.08rem;
}

.filter-sidebar select,
.filter-sidebar input {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-radius: 10px;
	border: 1px solid rgba(33, 248, 255, 0.18);
	background: rgba(2, 8, 16, 0.8);
	color: var(--text-primary);
	font-size: 0.88rem;
}

.filter-sidebar select:focus,
.filter-sidebar input:focus {
	outline: none;
	border-color: var(--border-strong);
	box-shadow: 0 0 12px rgba(33, 248, 255, 0.35);
}

.action-row {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.3rem;
}

.action-row .btn-primary {
	flex: 1;
}

footer {
	margin-top: auto;
	border-top: 1px solid rgba(33, 248, 255, 0.2);
	background: rgba(2, 8, 16, 0.75);
}

.footer-content {
	max-width: 1240px;
	margin: 0 auto;
	padding: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: var(--text-muted);
}

.footer-links {
	display: flex;
	gap: 0.85rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links a {
	font-size: 0.82rem;
	letter-spacing: 0.08rem;
	text-decoration: none;
	color: var(--text-muted);
}

.footer-links a:hover {
	color: var(--accent);
}

.social-links {
	display: flex;
	gap: 0.75rem;
	font-size: 0.82rem;
	letter-spacing: 0.08rem;
}

.banner {
	max-width: 1240px;
	margin: 0 auto 4rem;
	padding: 3rem 1.5rem;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(145deg, rgba(4, 14, 28, 0.9), rgba(11, 30, 48, 0.7));
	box-shadow: var(--shadow);
	text-align: center;
}

.banner h2 {
	margin: 0 0 1rem;
	font-size: 2.2rem;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
	color: var(--accent);
	text-shadow: var(--accent-glow);
}

.banner p {
	margin: 0.45rem 0;
	font-size: 1rem;
	color: var(--text-muted);
	letter-spacing: 0.08rem;
}

@media (max-width: 1120px) {
	.grid-shell {
		grid-template-columns: 240px minmax(0, 1fr);
		grid-template-rows: auto auto;
	}

	.filter-sidebar {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem;
	}

	.filter-sidebar label {
		flex-basis: 100%;
	}

	.filter-sidebar select,
	.filter-sidebar input {
		flex: 1 1 45%;
	}

	.action-row {
		flex-basis: 100%;
	}
}

@media (max-width: 860px) {
	.navbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.grid-shell {
		grid-template-columns: 1fr;
	}

	.filter-sidebar {
		order: 3;
	}

	.nav-links {
		width: 100%;
		flex-wrap: wrap;
		justify-content: center;
	}

	.content-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.items-title-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.banner {
		padding: 2.25rem 1.25rem;
	}

	.banner h2 {
		font-size: 1.8rem;
	}

	.items-list {
		grid-template-columns: 1fr;
	}
}

.cart-main {
	flex: 1;
	display: flex;
	justify-content: center;
	padding: 3rem 1.5rem;
}

.cart-panel {
	width: 100%;
	max-width: 900px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: var(--shadow);
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.cart-header h1 {
	margin: 0;
	font-size: 1.8rem;
	letter-spacing: 0.12rem;
}

.cart-header p {
	margin: 0.75rem 0 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.cart-list {
	display: grid;
	gap: 1.25rem;
}

.cart-item {
	border: 1px solid rgba(33, 248, 255, 0.25);
	padding-bottom: 1.5rem;
}

.btn-remove {
	margin-top: 1.25rem;
}

.empty-cart {
	margin: 0;
	padding: 1.5rem;
	background: var(--surface-alt);
	border: 1px dashed var(--border);
	border-radius: 12px;
	color: var(--text-muted);
	text-align: center;
}

.cart-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1.5rem;
	align-items: center;
}

.cart-total {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 1.1rem;
}

.cart-total strong {
	font-size: 1.4rem;
	color: var(--accent-secondary);
}

.cart-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

@media (max-width: 720px) {
	.cart-panel {
		padding: 1.75rem;
	}

	.cart-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.cart-actions {
		width: 100%;
		justify-content: center;
	}

	.cart-actions .btn-primary,
	.cart-actions .btn-danger {
		width: 100%;
		text-align: center;
	}
}

