:root {
	--ke-black: #0a0a0a;
	--ke-white: #ffffff;
	--ke-red: #e30613;
	--ke-red-dark: #b8050f;
	--ke-chrome: #c8ccd0;
	--ke-chrome-light: #e8eaed;
	--ke-chrome-dark: #8a9199;
	--ke-silver: linear-gradient(180deg, #f0f2f5 0%, #c8ccd0 50%, #a8adb5 100%);
	--ke-focus: #ff4444;
	--ke-font: 'CMU', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
	font-family: var(--ke-font);
	color: var(--ke-black);
	background: var(--ke-white);
	line-height: 1.6;
}

body, .btn, .form-control, .form-select, .input-group-text, .nav-link, .accordion-button,
h1, h2, h3, h4, h5, h6, .navbar-brand {
	font-family: var(--ke-font);
}

/* WCAG skip link */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--ke-red);
	color: var(--ke-white);
	padding: 0.75rem 1.25rem;
	z-index: 9999;
	text-decoration: none;
	font-weight: 600;
}
.skip-link:focus {
	top: 0;
	outline: 3px solid var(--ke-focus);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
	outline: 3px solid var(--ke-focus);
	outline-offset: 2px;
}

/* Top bar */
.top-bar {
	background: var(--ke-black);
	color: var(--ke-chrome);
	font-size: 0.85rem;
}
.top-bar a { color: var(--ke-chrome-light); text-decoration: none; }
.top-bar a:hover { color: var(--ke-white); }

/* Header */
.site-header {
	background: var(--ke-black);
	border-bottom: 3px solid var(--ke-red);
}
.site-logo {
	max-height: 70px;
	width: auto;
}
.search-form .form-control {
	border: 2px solid var(--ke-chrome-dark);
	border-right: none;
	background: var(--ke-white);
}
.search-form .form-control:focus {
	border-color: var(--ke-red);
	box-shadow: none;
}
.btn-ke-red {
	background: var(--ke-red);
	color: var(--ke-white);
	border: 2px solid var(--ke-red);
	font-weight: 700;
}
.btn-ke-red:hover, .btn-ke-red:focus {
	background: var(--ke-red-dark);
	border-color: var(--ke-red-dark);
	color: var(--ke-white);
}
.btn-ke-chrome {
	background: var(--ke-silver);
	color: var(--ke-black);
	border: 1px solid var(--ke-chrome-dark);
	font-weight: 600;
}
.cart-btn {
	border-color: var(--ke-chrome) !important;
	color: var(--ke-white) !important;
}
.cart-btn:hover { background: var(--ke-red); border-color: var(--ke-red) !important; }
.cart-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: var(--ke-red);
	color: white;
	font-size: 0.7rem;
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

/* Main nav */
.main-nav {
	background: var(--ke-silver);
	border-bottom: 1px solid var(--ke-chrome-dark);
}
#mainNav {
	padding: 0;
}
#mainNav .main-nav-list {
	align-items: stretch;
}
#mainNav .main-nav-list > .nav-item {
	display: flex;
}
#mainNav .main-nav-list .nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ke-black);
	font-weight: 600;
	border-radius: 0;
	padding: 0.75rem 1.25rem;
	line-height: 1.25;
	border-bottom: 3px solid transparent;
	box-sizing: border-box;
	white-space: nowrap;
}
#mainNav .main-nav-list .nav-link.dropdown-toggle {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
#mainNav .main-nav-list .nav-link.dropdown-toggle::after {
	margin-left: 0.35rem;
	vertical-align: middle;
	flex-shrink: 0;
}
#mainNav .main-nav-list .nav-link:hover,
#mainNav .main-nav-list .nav-link:focus {
	background: rgba(227, 6, 19, 0.08);
	color: var(--ke-red);
}
#mainNav .main-nav-list .nav-link.active,
#mainNav .main-nav-list .nav-link.active:hover,
#mainNav .main-nav-list .nav-link.active:focus,
#mainNav .main-nav-list .nav-link[aria-current="page"] {
	background: var(--ke-red);
	color: #fff;
	border-bottom-color: var(--ke-red-dark);
}
#mainNav .main-nav-list .nav-link.dropdown-toggle.active::after {
	border-top-color: #fff;
}

/* Mega menu */
.mega-dropdown { position: static; }
.mega-menu {
	width: 100%;
	border: none;
	border-radius: 0;
	border-top: 3px solid var(--ke-red);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	margin-top: 0;
}
.mega-menu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	max-height: 70vh;
}
.mega-col {
	padding: 1rem 1.25rem;
	border-right: 1px solid var(--ke-chrome);
}
.mega-col:last-child { border-right: none; }
.mega-heading {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ke-red);
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--ke-chrome);
}
.mega-links {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 55vh;
	overflow-y: auto;
}
.mega-links li a {
	display: block;
	padding: 0.35rem 0;
	font-size: 0.85rem;
	color: #333;
	text-decoration: none;
}
.mega-links li a:hover { color: var(--ke-red); }
.mega-links-scroll { max-height: 55vh; }

/* Sidebar tabs */
.sidebar-tabs {
	border-bottom: 2px solid var(--ke-chrome);
	margin-bottom: 1rem;
}
.sidebar-tabs .nav-link {
	font-size: 0.8rem;
	font-weight: 700;
	color: #555;
	border: none;
	border-radius: 0;
	padding: 0.5rem 0.75rem;
}
.sidebar-tabs .nav-link.active {
	color: var(--ke-red);
	background: transparent;
	border-bottom: 2px solid var(--ke-red);
	margin-bottom: -2px;
}
.sidebar-group-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #888;
	padding: 0.5rem 0.75rem 0.25rem 1.25rem;
	list-style: none;
}
.sidebar-scroll-list {
	max-height: 65vh;
	overflow-y: auto;
}

/* Layout */
.layout-main {
	max-width: 1600px;
	margin: 0 auto;
}
.layout-sidebar {
	background: var(--ke-chrome-light);
	border-right: 1px solid var(--ke-chrome-dark);
	min-height: 60vh;
}
.layout-content {
	padding: 1.5rem;
	background: var(--ke-white);
}

/* Products page — 2-column layout */
.layout-products {
	max-width: 1600px;
}
.products-layout-row {
	align-items: stretch;
}
.products-sidebar {
	flex-shrink: 0;
}
.products-content {
	flex: 1 1 0;
	min-width: 0;
}
.products-page {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}
.products-page-header.page-header-bar {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}
.products-page-body {
	flex: 1;
}
.products-grid {
	margin-top: 0;
}
.products-filter-toggle {
	border-radius: 0;
	border-left: none;
	border-right: none;
	font-weight: 600;
	padding: 0.75rem 1rem;
}
.products-empty {
	margin-top: 0;
}
.sidebar-inner {
	padding: 1rem;
	position: sticky;
	top: 0;
	max-height: 100vh;
	overflow-y: auto;
}
.sidebar-title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ke-black);
	border-left: 4px solid var(--ke-red);
	padding-left: 0.75rem;
	margin-bottom: 1rem;
}
.sidebar-subtitle {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ke-black);
	margin-bottom: 0.5rem;
}
.sidebar-accordion .accordion-item {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--ke-chrome);
}
.sidebar-accordion .accordion-button {
	background: transparent;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.65rem 0.5rem;
	box-shadow: none;
	color: var(--ke-black);
}
.sidebar-accordion .accordion-button:not(.collapsed) {
	background: rgba(227, 6, 19, 0.06);
	color: var(--ke-red);
}
.sidebar-sublist, .sidebar-brand-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.sidebar-sublist a, .sidebar-brand-list a {
	display: block;
	padding: 0.4rem 0.75rem 0.4rem 1.25rem;
	font-size: 0.85rem;
	color: #333;
	text-decoration: none;
	border-left: 2px solid transparent;
}
.sidebar-sublist a:hover, .sidebar-brand-list a:hover,
.sidebar-sublist a.active, .sidebar-brand-list a.active {
	color: var(--ke-red);
	border-left-color: var(--ke-red);
	background: rgba(227, 6, 19, 0.04);
}

/* Hero — homepage banner */
.hero-banner {
	position: relative;
	background: linear-gradient(135deg, var(--ke-black) 0%, #1a1a1a 60%, #2d0003 100%);
	background-attachment: fixed;
	background-size: cover;
	background-position: center center;
	color: var(--ke-white);
	padding: 3rem 0;
	min-height: clamp(280px, 40vh, 480px);
	display: flex;
	align-items: center;
	border-bottom: 4px solid var(--ke-red);
	overflow: hidden;
}
.hero-banner > .container-fluid {
	position: relative;
	z-index: 1;
	width: 100%;
}
.hero-banner h1 {
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
}
.hero-banner .highlight { color: var(--ke-red); }
.hero-chrome-bar {
	height: 4px;
	background: var(--ke-silver);
	margin-top: 1.5rem;
}

/* Product cards */
.product-card {
	border: 1px solid var(--ke-chrome);
	transition: transform 0.2s, box-shadow 0.2s;
	background: var(--ke-white);
	height: 100%;
}
.product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	border-color: var(--ke-red);
}
.product-img-wrap {
	height: 180px;
	background: var(--ke-chrome-light);
	position: relative;
	overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: var(--ke-chrome-dark);
	background: var(--ke-chrome-light);
}
.product-badge-promo {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--ke-red);
	color: white;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.5rem;
}
.price { color: var(--ke-red); font-weight: 700; font-size: 1.15rem; }
.price-old { text-decoration: line-through; color: var(--ke-chrome-dark); font-size: 0.9rem; }

/* Section headers */
.section-header {
	border-bottom: 2px solid var(--ke-chrome);
	padding-bottom: 0.75rem;
	margin-bottom: 1.5rem;
}
.section-header h2 {
	font-weight: 800;
	font-size: 1.35rem;
	margin: 0;
	text-transform: uppercase;
}
.section-header h2::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: var(--ke-red);
	margin-top: 0.35rem;
}

/* Auth */
.auth-page {
	min-height: 70vh;
	display: flex;
	align-items: center;
	background: var(--ke-chrome-light);
}
.auth-card {
	border: 1px solid var(--ke-chrome);
	box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.auth-card .card-header {
	background: var(--ke-black);
	color: var(--ke-white);
	font-weight: 700;
}
.oauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-weight: 600;
	padding: 0.6rem;
}
.oauth-btn-google { background: #fff; border: 1px solid #ddd; color: #333; }
.oauth-btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.oauth-btn-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.privacy-notice {
	font-size: 0.8rem;
	color: #666;
	border-top: 1px solid var(--ke-chrome);
	padding-top: 1rem;
	margin-top: 1rem;
}

/* Footer */
.site-footer {
	background: var(--ke-black);
	color: var(--ke-chrome);
	margin-top: 2rem;
}
.footer-logo { max-height: 50px; }
.footer-heading {
	color: var(--ke-white);
	font-size: 1rem;
	font-weight: 700;
	border-bottom: 2px solid var(--ke-red);
	display: inline-block;
	padding-bottom: 0.25rem;
	margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: var(--ke-chrome); text-decoration: none; line-height: 2; }
.footer-links a:hover { color: var(--ke-red); }
.text-chrome { color: var(--ke-chrome); }
.border-chrome { border-color: var(--ke-chrome-dark) !important; }
.text-ke-red { color: var(--ke-red); }

/* Page header */
.page-header-bar {
	background: var(--ke-black);
	color: var(--ke-white);
	padding: 1.25rem 0;
	margin: 0 0 1.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	border-bottom: 3px solid var(--ke-red);
}
.page-header-bar h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }

/* Full-width pages (homepage-style, no product sidebar) */
.page-full .page-hero {
	margin: 0 0 1.5rem;
}
.help-index-card {
	transition: transform 0.2s, box-shadow 0.2s;
}
.help-index-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
	border-color: var(--ke-red) !important;
}

/* CMS page hero — CSS parallax */
.page-hero {
	position: relative;
	min-height: clamp(240px, 35vh, 420px);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	margin: 0 0 1.5rem;
	overflow: hidden;
}
.page-hero-overlay {
	position: relative;
	z-index: 1;
	min-height: clamp(240px, 35vh, 420px);
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, rgba(10, 10, 10, 0.82) 0%, rgba(45, 0, 3, 0.72) 100%);
	color: var(--ke-white);
	padding: 2rem 0;
	border-bottom: 3px solid var(--ke-red);
}
.page-hero-overlay h1 {
	font-size: 1.75rem;
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
}

/* CMS rich content */
.prose.cms-content {
	line-height: 1.7;
}
.prose.cms-content h2,
.prose.cms-content h3,
.prose.cms-content h4 {
	font-weight: 700;
	margin-top: 1.5rem;
	margin-bottom: 0.75rem;
}
.prose.cms-content p { margin-bottom: 1rem; }
.prose.cms-content ul,
.prose.cms-content ol {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}
.prose.cms-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 1rem 0;
}
.prose.cms-content a {
	color: var(--ke-red);
	text-decoration: underline;
}
.prose.cms-content a:hover { color: #b0050f; }

/* Articles */
.article-card {
	border: 1px solid var(--ke-chrome);
	transition: border-color 0.2s;
}
.article-card:hover { border-color: var(--ke-red); }

/* Contact */
.contact-info-item {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.contact-info-item i {
	color: var(--ke-red);
	font-size: 1.4rem;
	width: 32px;
}

/* Contact details card (Facebook-style) */
.contact-details-card { overflow: hidden; }
.contact-details-section {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--ke-chrome);
}
.contact-details-section:last-child { border-bottom: none; }
.contact-details-heading {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: var(--ke-black);
}
.contact-details-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.contact-details-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.5rem 0;
	font-size: 0.95rem;
}
.contact-details-item i {
	font-size: 1.25rem;
	width: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}
.contact-details-item a {
	color: var(--ke-black);
	text-decoration: none;
}
.contact-details-item a:hover {
	color: var(--ke-red);
	text-decoration: underline;
}

@media (max-width: 991.98px) {
	.page-hero,
	.hero-banner {
		background-attachment: scroll;
	}
	.mega-menu-grid {
		grid-template-columns: 1fr;
		max-height: none;
	}
	.mega-col { border-right: none; border-bottom: 1px solid var(--ke-chrome); }
	.mega-links, .mega-links-scroll { max-height: 200px; }
	.layout-sidebar,
	.products-sidebar {
		border-right: none;
		border-bottom: 1px solid var(--ke-chrome-dark);
		min-height: auto;
		width: 100%;
	}
	.products-content {
		width: 100%;
	}
	.sidebar-inner { position: static; max-height: none; }
	.site-logo { max-height: 50px; }
}

@media (min-width: 992px) {
	.products-layout-row {
		flex-wrap: nowrap;
	}
	.products-sidebar {
		max-width: 280px;
	}
	.products-content {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.page-hero,
	.hero-banner {
		background-attachment: scroll;
	}
}
