/**
 * Elecrow Home Clone — main styles
 */

:root {
	--ec-primary: #00a0f0;
	--ec-primary-dark: #259cfd;
	--ec-text: #282828;
	--ec-text-muted: #777;
	--ec-heading: #313131;
	--ec-border: #d9d9d9;
	--ec-border-light: #e7e7e7;
	--ec-bg-light: #f4f4f4;
	--ec-cart-price: #ee8379;
	--ec-container: 1300px;
	--ec-radius: 20px;
	--ec-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--ec-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ec-font-heading: "Poppins", var(--ec-font);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ec-font);
	font-size: 14px;
	line-height: 1.6;
	color: var(--ec-text);
	background: #fff;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

button {
	font-family: inherit;
	cursor: pointer;
}

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

.pt-5 {
	padding-top: 3rem;
}

.text-center {
	text-align: center;
}

/* ===== HEADER ===== */
.page-header {
	background: #fff;
	border-bottom: 1px solid var(--ec-border-light);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.panel.wrapper {
	background: var(--ec-bg-light);
	border-bottom: 1px solid var(--ec-border-light);
	font-size: 11px;
	font-weight: 600;
}

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

.top-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
}

.top-links li:not(:last-child)::after {
	content: "|";
	margin: 0 8px;
	color: #ccc;
}

.top-links a:hover {
	color: var(--ec-primary);
}

.switcher-trigger {
	background: none;
	border: none;
	font-size: 11px;
	padding: 4px 0;
}

.header-main .header-row {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 20px 0;
}

.logo img {
	max-height: 50px;
	width: auto;
}

.block-search .search-field-wrap {
	display: flex;
	border: 1px solid rgba(0, 0, 0, 0.09);
	background: #fff;
}

.block-search input {
	flex: 1;
	border: none;
	padding: 12px 16px;
	font-size: 13px;
	outline: none;
	min-width: 0;
}

.search-submit {
	width: 46px;
	border: none;
	background: var(--ec-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.redemption-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--ec-primary);
	white-space: nowrap;
}

.minicart-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.showcart {
	position: relative;
	font-size: 28px;
	line-height: 1;
}

.counter.qty {
	position: absolute;
	top: -4px;
	right: -8px;
	background: var(--ec-primary);
	color: #fff;
	font-size: 10px;
	min-width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-subtotal {
	font-size: 11px;
	color: var(--ec-text-muted);
	line-height: 1.2;
}

.cart-price {
	display: block;
	color: var(--ec-cart-price);
	font-size: 15px;
	font-weight: 600;
}

.header-bottom {
	border-top: 1px solid var(--ec-border-light);
}

.header-bottom .header-row {
	display: grid;
	grid-template-columns: 220px 1fr auto;
	align-items: stretch;
	padding: 0;
	min-height: 56px;
}

.main-toggle-menu {
	position: relative;
	height: 100%;
}

.menu-title {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 20px;
	background: #fff;
	border: none;
	border-right: 1px solid var(--ec-border-light);
	font-size: 14px;
	font-weight: 600;
	color: #4dae65;
	cursor: pointer;
}

.toggle-menu-wrap {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	width: 280px;
	background: #fff;
	box-shadow: var(--ec-shadow);
	max-height: 70vh;
	overflow-y: auto;
	z-index: 1001;
}

.main-toggle-menu.is-open .toggle-menu-wrap {
	display: block;
}

.products-menu .menu-item {
	border-bottom: 1px solid #f0f0f0;
}

.products-menu .menu-item > a {
	display: block;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 13px;
}

.products-menu .menu-item > a:hover {
	color: var(--ec-primary);
	background: #f9f9f9;
}

.products-menu .submenu a {
	display: block;
	padding: 6px 16px 6px 28px;
	font-size: 12px;
	color: var(--ec-text-muted);
}

.services-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	height: 100%;
	gap: 4px;
}

.services-nav a {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.services-nav a:hover {
	color: var(--ec-primary);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	padding: 8px;
}

/* ===== INTRO ===== */
.home-intro {
	padding: 20px 0 8px;
	background: #fff;
}

.home-intro-text {
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ec-text-muted);
}

.home-main-title {
	max-width: 980px;
	margin: 0 auto 10px;
	text-align: center;
	font-family: var(--ec-font-heading);
	font-size: 34px;
	line-height: 1.2;
	color: var(--ec-heading);
}

.home-intro-subtitle {
	max-width: 900px;
	margin: 0 auto 14px;
	text-align: center;
	font-family: var(--ec-font-heading);
	font-size: 20px;
	font-weight: 500;
	color: var(--ec-primary);
}

.home-keyword-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 24px;
}

.home-keyword-item {
	padding: 18px;
	border: 1px solid var(--ec-border-light);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.home-keyword-item h3 {
	margin: 0 0 8px;
	font-family: var(--ec-font-heading);
	font-size: 18px;
	color: var(--ec-heading);
}

.home-keyword-item h3 a {
	color: inherit;
	text-decoration: none;
}

.home-keyword-item h3 a:hover {
	color: var(--ec-primary);
}

.home-keyword-item p {
	margin: 0;
	font-size: 14px;
	color: var(--ec-text-muted);
}

.home-resources {
	padding: 28px 0 36px;
	background: #f7f9fc;
	border-top: 1px solid var(--ec-border);
}

.home-resources .section-title {
	margin: 0 0 16px;
	font-size: 22px;
	text-align: center;
}

.home-resource-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-resource-links a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--ec-border);
	border-radius: 999px;
	background: #fff;
	color: var(--ec-heading);
	font-size: 14px;
	text-decoration: none;
}

.home-resource-links a:hover {
	border-color: var(--ec-primary);
	color: var(--ec-primary);
}

/* ===== HERO ===== */
.home-hero {
	background: #f8f8f8;
}

.hero-slider {
	position: relative;
	overflow: hidden;
}

.hero-track {
	position: relative;
	width: 100%;
	aspect-ratio: 1300 / 400;
	max-height: 420px;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.hero-slide a,
.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	font-size: 28px;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }

.hero-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.6);
	padding: 0;
}

.hero-dot.is-active {
	background: var(--ec-primary);
}

/* ===== FEATURE CARDS ===== */
.home-features {
	padding: 24px 0;
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.feature-card {
	display: block;
	border-radius: 4px;
	overflow: hidden;
}

.card-box {
	position: relative;
	aspect-ratio: 16 / 10;
	perspective: 1000px;
}

.card-front,
.card-back {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	transition: transform 0.6s ease;
}

.card-back {
	transform: rotateY(180deg);
}

.feature-card:hover .card-front {
	transform: rotateY(180deg);
}

.feature-card:hover .card-back {
	transform: rotateY(0);
}

.card-front img,
.card-back img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===== SECTION TITLES ===== */
.section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0 0 28px;
	font-family: var(--ec-font-heading);
	font-size: 24px;
	font-weight: 600;
	color: var(--ec-heading);
	position: relative;
}

.section-title .inline-title {
	white-space: nowrap;
}

.section-title .line-r {
	flex: 1;
	height: 1px;
	background: var(--ec-border);
	max-width: 200px;
}

.more-link {
	width: 110px;
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-radius);
	text-align: center;
	flex-shrink: 0;
}

.more-link a {
	display: block;
	font-size: 14px;
	line-height: 30px;
	color: #888;
}

.more-link a:hover {
	color: var(--ec-primary);
}

/* ===== PRODUCTS ===== */
.products-slider-wrap,
.blog-slider-wrap {
	position: relative;
}

.products-slider,
.blog-slider {
	overflow: hidden;
}

.products-track,
.blog-track {
	display: flex;
	gap: 16px;
	transition: transform 0.35s ease;
}

.product-item {
	flex: 0 0 calc(20% - 13px);
	min-width: 200px;
}

.product-item-info {
	border: 1px solid #eee;
	background: #fff;
	transition: box-shadow 0.25s, border-color 0.25s;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.product-item-info:hover {
	box-shadow: var(--ec-shadow);
	border-color: rgba(0, 160, 240, 0.4);
}

.product-item-photo {
	aspect-ratio: 1;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: #fff;
}

.product-item-photo img {
	object-fit: contain;
	max-height: 100%;
}

.product-item-details {
	padding: 12px 14px 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.product-brand {
	font-size: 11px;
	color: var(--ec-text-muted);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.product-item-name {
	font-weight: 400;
	font-size: 13px;
	line-height: 1.4;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-item-name a:hover {
	color: var(--ec-primary);
}

.product-reviews-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	margin-bottom: 8px;
}

.rating-result {
	width: 70px;
	height: 12px;
	background: #eee;
	position: relative;
	overflow: hidden;
}

.rating-result > span {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background: #ffc107;
	font-size: 0;
}

.price-box .price {
	color: var(--ec-cart-price);
	font-size: 16px;
	font-weight: 700;
}

.product-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
}

.btn-add-cart {
	flex: 1;
	background: var(--ec-primary);
	color: #fff;
	border: none;
	padding: 8px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.btn-add-cart:hover {
	background: var(--ec-primary-dark);
}

.btn-icon {
	width: 32px;
	height: 32px;
	border: 1px solid #ddd;
	background: #fff;
	font-size: 14px;
	line-height: 1;
}

.stock.unavailable {
	color: #999;
	font-size: 12px;
	font-weight: 600;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 1px solid var(--ec-border);
	border-radius: 50%;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	z-index: 2;
	color: #666;
}

.slider-prev { left: -8px; }
.slider-next { right: -8px; }

.slider-arrow:hover {
	border-color: var(--ec-primary);
	color: var(--ec-primary);
}

/* ===== PCBA BANNER ===== */
.home-pcba-banner {
	padding: 24px 0;
}

.pcba-banner-link {
	display: block;
	border-radius: 4px;
	overflow: hidden;
}

.pcba-banner-link img {
	width: 100%;
}

/* ===== FEEDBACK ===== */
.home-feedback {
	position: relative;
	padding: 48px 0 64px;
	overflow: hidden;
}

.home-feedback .container {
	position: relative;
	z-index: 1;
}

.feedback-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.15;
	pointer-events: none;
}

.feedback-track {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.feedback-item .product-item-info {
	border-color: #646262;
}

.feedback-item .product-item-photo {
	height: 210px;
	aspect-ratio: auto;
}

.feedback-item .product-item-name {
	-webkit-line-clamp: 5;
}

.feedback-by {
	font-size: 14px;
	margin-top: 8px;
}

/* ===== SERVICES ===== */
.home-services {
	margin: 3rem auto;
}

.services-tab-head ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.services-tab-head li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #fff;
	border-radius: var(--ec-radius);
	font-family: var(--ec-font-heading);
	font-weight: 500;
	font-size: 15px;
	color: var(--ec-heading);
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s;
}

.services-tab-head li:hover,
.services-tab-head li.services-active {
	background: var(--ec-primary-dark);
	color: #fff;
}

.services-icon {
	width: 26px;
	height: 26px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.services-fab { background-image: url("https://www.elecrow.com/media/homepage/PCB-Fab-default.png"); }
.services-assembly { background-image: url("https://www.elecrow.com/media/homepage/PCB-Assembly-default.png"); }
.services-component { background-image: url("https://www.elecrow.com/media/homepage/Component-Sourcing-default.png"); }
.services-sub { background-image: url("https://www.elecrow.com/media/homepage/Sub-Assembly&Kitting-Service-default.png"); }
.services-quality { background-image: url("https://www.elecrow.com/media/homepage/Quality-Control-default.png"); }
.cus-services { background-image: url("https://www.elecrow.com/media/homepage/Customized-Service-default.png"); }

.services-active .services-fab,
.services-tab-head li:hover .services-fab { background-image: url("https://www.elecrow.com/media/homepage/PCB-Fab-active.png"); }
.services-active .services-assembly,
.services-tab-head li:hover .services-assembly { background-image: url("https://www.elecrow.com/media/homepage/PCB-Assembly-active.png"); }
.services-active .services-component,
.services-tab-head li:hover .services-component { background-image: url("https://www.elecrow.com/media/homepage/Component-Sourcing-active.png"); }
.services-active .services-sub,
.services-tab-head li:hover .services-sub { background-image: url("https://www.elecrow.com/media/homepage/Sub-Assembly&Kitting-Service-active.png"); }
.services-active .cus-services,
.services-tab-head li:hover .cus-services { background-image: url("https://www.elecrow.com/media/homepage/Customized-Service.png"); }
.services-active .services-quality,
.services-tab-head li:hover .services-quality { background-image: url("https://www.elecrow.com/media/homepage/Quality-Control-active.png"); }

.services-panel {
	display: none;
}

.services-panel.is-active {
	display: block;
}

.services-panel-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: center;
	background: #f9f9f9;
	padding: 32px;
	border-radius: 8px;
}

.services-panel-text h3 {
	font-size: 22px;
	margin: 0 0 16px;
	color: var(--ec-heading);
}

.services-panel-text p {
	margin: 0 0 8px;
	color: var(--ec-text-muted);
	font-size: 13px;
}

.btn-quote {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 24px;
	background: var(--ec-primary);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
}

.btn-quote:hover {
	background: var(--ec-primary-dark);
}

/* ===== CASES ===== */
.home-cases {
	margin: 3rem auto;
}

.cases-tab-head ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 28px;
}

.cases-tab-head li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid var(--ec-border-light);
	border-radius: var(--ec-radius);
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
}

.cases-tab-head li:hover,
.cases-tab-head li.cases-active {
	background: var(--ec-primary-dark);
	color: #fff;
	border-color: var(--ec-primary-dark);
}

.cases-panel {
	display: none;
}

.cases-panel.is-active {
	display: block;
}

.cases-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.case-item {
	text-align: center;
}

.case-image {
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 12px;
	background: #f5f5f5;
}

.case-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-item h4 {
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 8px;
}

.btn-quote-sm {
	color: var(--ec-primary);
	font-size: 13px;
	font-weight: 600;
}

/* ===== PROJECTS ===== */
.home-projects {
	position: relative;
	padding: 48px 0;
	background: #fafafa;
	overflow: hidden;
}

.home-projects .container {
	position: relative;
	z-index: 1;
}

.projects-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.08;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.project-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.25s;
}

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

.project-thumb {
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #eee;
}

.project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-body {
	padding: 14px 16px;
}

.project-body h3 {
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 10px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project-body h3 a:hover {
	color: var(--ec-primary);
}

.project-meta {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: var(--ec-text-muted);
	margin-bottom: 6px;
}

.project-author {
	font-size: 12px;
	color: var(--ec-primary);
}

/* ===== BLOG ===== */
.home-blog {
	padding: 48px 0;
}

.blog-card {
	flex: 0 0 calc(33.333% - 11px);
	min-width: 260px;
}

.blog-card a {
	display: block;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.25s;
}

.blog-card a:hover {
	box-shadow: var(--ec-shadow);
}

.blog-image {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card h3 {
	font-size: 14px;
	font-weight: 500;
	padding: 14px 16px;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ===== NEWSLETTER ===== */
.home-newsletter-inline {
	background: var(--ec-primary);
	color: #fff;
	padding: 32px 0;
}

.newsletter-inline-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.newsletter-text h4 {
	margin: 0 0 4px;
	font-size: 18px;
}

.newsletter-text p {
	margin: 0;
	opacity: 0.9;
	font-size: 13px;
}

.newsletter-form {
	display: flex;
	gap: 0;
	flex: 1;
	max-width: 480px;
}

.newsletter-form input {
	flex: 1;
	border: none;
	padding: 12px 16px;
	font-size: 14px;
	min-width: 0;
}

.btn-primary {
	background: #222;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	white-space: nowrap;
}

.btn-primary:hover {
	background: #000;
}

/* ===== FOOTER ===== */
.page-footer {
	background: #2b2b2b;
	color: #ccc;
}

.footer-newsletter-block {
	display: none;
}

.footer-main {
	padding: 48px 0 32px;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

.footer-col h3 {
	color: #fff;
	font-size: 15px;
	margin: 0 0 16px;
	font-weight: 600;
}

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

.footer-col a {
	font-size: 13px;
	color: #aaa;
}

.footer-col a:hover {
	color: var(--ec-primary);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.social-links a {
	font-size: 12px;
	padding: 4px 8px;
	border: 1px solid #444;
	border-radius: 4px;
}

.payment-icons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.payment-icons span {
	font-size: 11px;
	padding: 4px 8px;
	background: #444;
	border-radius: 3px;
}

.footer-bottom {
	border-top: 1px solid #444;
	padding: 16px 0;
	text-align: center;
	font-size: 12px;
	color: #888;
}

.mt-4 {
	margin-top: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
	.product-item {
		flex: 0 0 calc(25% - 12px);
	}

	.feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cases-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-columns {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.header-main .header-row {
		grid-template-columns: 160px 1fr auto;
	}

	.header-bottom .header-row {
		grid-template-columns: 1fr auto;
	}

	.services-nav {
		display: none;
	}

	.nav-toggle {
		display: block;
	}

	.product-item {
		flex: 0 0 calc(33.333% - 11px);
	}

	.feedback-track {
		grid-template-columns: repeat(2, 1fr);
	}

	.services-panel-inner {
		grid-template-columns: 1fr;
	}

	.projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.top-links {
		display: none;
	}

	.header-main .header-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.header-center {
		order: 3;
		grid-column: 1 / -1;
	}

	.cart-subtotal {
		display: none;
	}

	.feature-grid {
		grid-template-columns: 1fr;
	}

	.home-main-title {
		font-size: 28px;
	}

	.home-intro-subtitle {
		font-size: 18px;
	}

	.home-keyword-grid {
		grid-template-columns: 1fr;
	}

	.product-item,
	.blog-card {
		flex: 0 0 calc(50% - 8px);
		min-width: 160px;
	}

	.section-title {
		flex-wrap: wrap;
		font-size: 20px;
	}

	.section-title .line-r {
		display: none;
	}

	.feedback-track {
		grid-template-columns: 1fr;
	}

	.cases-grid {
		grid-template-columns: 1fr;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	.footer-columns {
		grid-template-columns: 1fr 1fr;
	}

	.newsletter-inline-inner {
		flex-direction: column;
		text-align: center;
	}

	.newsletter-form {
		width: 100%;
		max-width: none;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.product-item,
	.blog-card {
		flex: 0 0 100%;
	}

	.hero-track {
		aspect-ratio: 16 / 9;
	}
}

/* ===== PRODUCT DETAIL ===== */
.elecrow-product-detail {
	padding: 48px 0 64px;
}

.product-detail-header {
	margin-bottom: 24px;
}

.product-detail-header h1 {
	font-family: var(--ec-font-heading);
	font-size: 30px;
	font-weight: 600;
	color: var(--ec-heading);
	margin: 0 0 12px;
}

.product-detail-price {
	font-size: 22px;
	font-weight: 700;
	color: var(--ec-primary);
}

.product-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

.product-detail-media {
	border: 1px solid #eee;
	border-radius: var(--ec-radius);
	background: #fff;
	padding: 16px;
}

.product-detail-media img {
	width: 100%;
	height: auto;
}

.product-detail-body {
	background: #fff;
	padding: 8px 0;
}

.product-detail-overview {
	margin: 0 0 16px;
	color: var(--ec-text-muted);
	font-size: 14px;
}

.product-detail-body h2 {
	font-family: var(--ec-font-heading);
	font-size: 18px;
	font-weight: 600;
	color: var(--ec-heading);
	margin: 0 0 10px;
}

.product-detail-features {
	margin: 0 0 18px;
	padding-left: 20px;
	color: var(--ec-text-muted);
}

.product-detail-features li {
	margin: 8px 0;
}

.product-detail-cta .btn-quote {
	display: inline-block;
}

@media (max-width: 992px) {
	.product-detail-grid {
		grid-template-columns: 1fr;
	}

	.product-detail-header h1 {
		font-size: 26px;
	}
}

/* ===== CONTENT PAGES ===== */
.elecrow-static-page {
	padding: 48px 0 64px;
}

.content-page-header {
	max-width: 920px;
	margin: 0 auto 32px;
}

.content-page-header h1 {
	margin: 0 0 14px;
	font-family: var(--ec-font-heading);
	font-size: 34px;
	line-height: 1.2;
	color: var(--ec-heading);
}

.content-page-intro {
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: var(--ec-text-muted);
}

.content-section {
	max-width: 920px;
	margin: 0 auto 28px;
}

.content-section h2 {
	margin: 0 0 12px;
	font-family: var(--ec-font-heading);
	font-size: 24px;
	color: var(--ec-heading);
}

.content-section h3 {
	margin: 18px 0 8px;
	font-family: var(--ec-font-heading);
	font-size: 18px;
	color: var(--ec-heading);
}

.content-section p,
.content-section li {
	font-size: 15px;
	line-height: 1.8;
	color: var(--ec-text-muted);
}

.content-link-list {
	padding-left: 18px;
}

.content-link-list a {
	color: var(--ec-primary);
}

.contact-form-section {
	margin-bottom: 36px;
}

.elecrow-contact-form {
	max-width: 720px;
}

.contact-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}

.contact-form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ec-heading);
}

.contact-form-field .required {
	color: #d63638;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ec-border);
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	color: var(--ec-heading);
	background: #fff;
}

.contact-form-field textarea {
	resize: vertical;
	min-height: 140px;
}

.contact-form-honeypot {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.contact-form-submit {
	margin-top: 8px;
	border: 0;
	cursor: pointer;
}

.contact-form-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.6;
}

.contact-form-notice--success {
	background: #edf7ed;
	border: 1px solid #b7dfc0;
	color: #1e4620;
}

.contact-form-notice--error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #611a15;
}

@media (max-width: 768px) {
	.contact-form-grid {
		grid-template-columns: 1fr;
	}
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.article-card {
	border: 1px solid #eee;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.25s ease;
}

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

.article-card a {
	display: block;
	height: 100%;
}

.article-card img,
.article-hero-image img {
	width: 100%;
	height: auto;
	display: block;
}

.article-card h2 {
	margin: 0;
	padding: 16px 16px 8px;
	font-size: 18px;
}

.article-card p {
	margin: 0;
	padding: 0 16px 18px;
	font-size: 14px;
	color: var(--ec-text-muted);
}

.article-hero-image {
	max-width: 920px;
	margin: 0 auto 24px;
	border-radius: 10px;
	overflow: hidden;
}

@media (max-width: 992px) {
	.article-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.content-page-header h1 {
		font-size: 28px;
	}

	.article-grid {
		grid-template-columns: 1fr;
	}
}
