/* ==========================================================================
   ALIER Bearing — Main Stylesheet
   ========================================================================== */

:root {
	--color-primary: #0f2740;
	--color-accent: #e6a23c;
	--color-accent-dark: #c8862a;
	--color-bg: #ffffff;
	--color-bg-alt: #f4f6f8;
	--color-text: #2b3440;
	--color-text-light: #6b7682;
	--color-border: #e5e9ee;
	--color-footer: #0b1c2e;
	--container: 1200px;
	--radius: 8px;
	--shadow: 0 10px 30px rgba(15, 39, 64, 0.08);
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	font-weight: 700;
	color: var(--color-primary);
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--color-accent);
}

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

ul {
	padding-left: 1.2em;
}

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

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

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.25s;
}

.btn-primary {
	background: var(--color-accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--color-accent-dark);
	color: #fff;
}

.btn-outline {
	border-color: #fff;
	color: #fff;
}

.btn-outline:hover {
	background: #fff;
	color: var(--color-primary);
}

/* ---------- Top bar ---------- */
.top-bar {
	background: var(--color-primary);
	color: #dbe4ec;
	font-size: 13px;
}

.top-bar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 40px;
	flex-wrap: wrap;
	gap: 6px;
}

.top-bar-item {
	display: inline-flex;
	align-items: center;
	margin-right: 18px;
	color: #dbe4ec;
}

.top-bar-item .icon {
	margin-right: 6px;
}

.top-bar-item a {
	color: #dbe4ec;
}

.top-bar-item a:hover {
	color: var(--color-accent);
}

.top-bar-message {
	color: #8fa3b5;
}

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(15, 39, 64, 0.04);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
	gap: 20px;
}

.site-logo-text {
	font-size: 26px;
	font-weight: 800;
	color: var(--color-primary);
	letter-spacing: 1px;
}

.site-logo-text span {
	color: var(--color-accent);
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	font-weight: 600;
	font-size: 15px;
	color: var(--color-text);
	position: relative;
}

.main-navigation a:hover {
	color: var(--color-accent);
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
}

.menu-toggle .bar {
	display: block;
	width: 24px;
	height: 3px;
	background: var(--color-primary);
	margin: 5px 0;
	border-radius: 2px;
}

.header-actions .search-toggle {
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	font-size: 16px;
	cursor: pointer;
	color: var(--color-primary);
}

/* ---------- Site search dropdown ---------- */
.site-search {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	padding: 14px 0;
}

.site-search form {
	display: flex;
	gap: 10px;
}

.site-search .search-field {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid var(--color-border);
	border-radius: 30px;
	font-size: 15px;
	outline: none;
}

.site-search .search-field:focus {
	border-color: var(--color-accent);
}

.search-close {
	background: none;
	border: 0;
	font-size: 26px;
	color: var(--color-text-light);
	cursor: pointer;
}

/* ---------- Section base ---------- */
.section {
	padding: 80px 0;
}

.section.alt {
	background: var(--color-bg-alt);
}

.section-head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 44px;
}

.section-kicker {
	color: var(--color-accent);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.section-title {
	font-size: 34px;
	margin: 8px 0 10px;
}

.section-sub {
	color: var(--color-text-light);
}

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(135deg, #0f2740 0%, #18406b 100%);
	color: #fff;
	padding: 80px 0;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}

.hero-kicker {
	color: var(--color-accent);
	font-weight: 700;
	letter-spacing: 4px;
	font-size: 13px;
}

.hero-title {
	font-size: 54px;
	color: #fff;
	margin: 14px 0 18px;
}

.hero-title span {
	color: var(--color-accent);
}

.hero-text {
	color: #c7d4e0;
	font-size: 16px;
	max-width: 480px;
}

.hero-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 24px;
}

.hero-img {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.hero-img img {
	width: 100%;
	height: auto;
}

/* ---------- Product categories ---------- */
.cats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.cat-card {
	display: block;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s;
}

.cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.cat-img {
	display: block;
	overflow: hidden;
}

.cat-img img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.3s;
}

.cat-card:hover .cat-img img {
	transform: scale(1.05);
}

.cat-body {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
}

.cat-name {
	font-weight: 700;
	color: var(--color-primary);
}

.cat-count {
	font-size: 13px;
	color: var(--color-text-light);
}

/* ---------- Featured ---------- */
.brand-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 32px;
}

.brand-tab {
	padding: 9px 16px;
	border: 1px solid var(--color-border);
	background: #fff;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
	cursor: pointer;
	transition: all 0.2s;
}

.brand-tab:hover,
.brand-tab.active {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.products-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.product-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow 0.25s;
}

.product-card:hover {
	box-shadow: var(--shadow);
}

.product-card-img img {
	width: 100%;
	aspect-ratio: 6 / 5;
	object-fit: cover;
}

.product-card-body {
	padding: 14px 16px;
}

.product-card-cat {
	color: var(--color-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.product-card-title {
	font-size: 16px;
	margin: 4px 0 0;
}

.product-card-title a {
	color: var(--color-primary);
}

.product-card-title a:hover {
	color: var(--color-accent);
}

/* ---------- About ---------- */
.about-inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 48px;
	align-items: center;
}

.about-media img {
	border-radius: var(--radius);
	width: 100%;
	box-shadow: var(--shadow);
}

.about-copy .section-title {
	text-align: left;
}

.about-list {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.about-list li {
	padding: 6px 0 6px 26px;
	position: relative;
	font-weight: 500;
}

.about-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}

/* ---------- News ---------- */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.news-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow 0.25s;
}

.news-card:hover {
	box-shadow: var(--shadow);
}

.news-card-img img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.news-card-body {
	padding: 18px;
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--color-text-light);
	margin-bottom: 8px;
}

.news-cat {
	background: var(--color-accent);
	color: #fff;
	padding: 2px 10px;
	border-radius: 20px;
	font-size: 12px;
}

.news-title {
	font-size: 18px;
}

.news-title a {
	color: var(--color-primary);
}

.news-title a:hover {
	color: var(--color-accent);
}

.news-excerpt {
	color: var(--color-text-light);
	font-size: 14px;
}

.read-more {
	color: var(--color-accent);
	font-weight: 600;
	font-size: 14px;
}

/* ---------- Posts grid (index/archive) ---------- */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.post-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow 0.25s;
}

.post-card:hover {
	box-shadow: var(--shadow);
}

.post-thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.post-card-body {
	padding: 18px;
}

.entry-title {
	font-size: 20px;
}

.entry-title a {
	color: var(--color-primary);
}

.entry-title a:hover {
	color: var(--color-accent);
}

.entry-meta,
.entry-date {
	color: var(--color-text-light);
	font-size: 13px;
}

/* ---------- Page / single layout ---------- */
.page-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 60px;
}

.site-main .page-header,
.site-main .entry-header {
	margin-bottom: 24px;
}

.post-hero {
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 24px;
}

.widget-area .widget {
	background: var(--color-bg-alt);
	padding: 20px;
	border-radius: var(--radius);
	margin-bottom: 24px;
}

.widget-title {
	font-size: 18px;
	border-left: 3px solid var(--color-accent);
	padding-left: 10px;
}

/* ---------- Pagination ---------- */
.nav-links {
	display: flex;
	gap: 8px;
	margin: 40px 0;
	justify-content: center;
}

.nav-links a,
.nav-links span {
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
}

.nav-links .current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-footer);
	color: #9fb0c0;
	font-size: 14px;
}

.footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-top: 60px;
	padding-bottom: 40px;
}

.footer-title {
	color: #fff;
	font-size: 17px;
	margin-bottom: 16px;
}

.footer-col ul {
	list-style: none;
	padding: 0;
}

.footer-col li {
	margin-bottom: 10px;
}

.footer-col .ic {
	color: var(--color-accent);
	margin-right: 6px;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 8px;
}

.footer-links a {
	color: #9fb0c0;
}

.footer-links a:hover {
	color: var(--color-accent);
}

.newsletter-form {
	display: flex;
	gap: 8px;
}

.newsletter-form input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #2b4258;
	background: #10283d;
	color: #fff;
	border-radius: 30px;
	outline: none;
}

.newsletter-form input::placeholder {
	color: #6b8298;
}

.newsletter-form button {
	background: var(--color-accent);
	border: 0;
	color: #fff;
	padding: 10px 18px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
}

.newsletter-form button:hover {
	background: var(--color-accent-dark);
}

.footer-bottom {
	border-top: 1px solid #1a3146;
	padding: 18px 0;
	text-align: center;
	font-size: 13px;
}

.footer-bottom p {
	margin: 0;
}

/* ---------- 404 ---------- */
.error-404-content {
	text-align: center;
	padding: 80px 20px;
	max-width: 560px;
	margin: 0 auto;
}

.error-code {
	font-size: 120px;
	color: var(--color-accent);
	margin: 0;
	line-height: 1;
}

.error-404 .search-form {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 24px 0;
}

.error-404 .search-field {
	padding: 12px 16px;
	border: 1px solid var(--color-border);
	border-radius: 30px;
	width: 320px;
	outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.hero-inner,
	.about-inner {
		grid-template-columns: 1fr;
	}
	.hero-title {
		font-size: 40px;
	}
	.cats-grid,
	.news-grid,
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.products-row {
		grid-template-columns: repeat(2, 1fr);
	}
	.footer-top {
		grid-template-columns: repeat(2, 1fr);
	}
	.page-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.section {
		padding: 56px 0;
	}
	.section-title {
		font-size: 28px;
	}
	.top-bar-inner {
		justify-content: center;
		text-align: center;
	}
	.top-bar-message {
		display: none;
	}
	.header-inner {
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 10px 16px;
	}
	.menu-toggle {
		display: block;
		order: 3;
	}
	.main-navigation ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--color-border);
		box-shadow: var(--shadow);
	}
	.main-navigation ul.open {
		display: flex;
	}
	.main-navigation li {
		border-bottom: 1px solid var(--color-border);
	}
	.main-navigation a {
		display: block;
		padding: 14px 20px;
	}
	.cats-grid,
	.news-grid,
	.posts-grid,
	.products-row,
	.footer-top {
		grid-template-columns: 1fr;
	}
}