/* =========================================================
   Comelectro — homepage custom
   Prefix: .ch-  (nu intra in conflict cu tema)
   ========================================================= */

html { scroll-behavior: smooth; }

#common-home {
	--ch-blue: #0F5FA8;
	--ch-blue-dark: #0A4A85;
	--ch-blue-darker: #073A69;
	--ch-blue-50: #EDF4FB;
	--ch-blue-100: #DCEAF7;
	--ch-ink: #1B2330;
	--ch-muted: #6B7686;
	--ch-line: #E3E8EF;
	--ch-bg: #F4F6F9;
	--ch-radius: 10px;
	--ch-shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 6px 20px rgba(16, 40, 70, .06);
	--ch-shadow-hover: 0 2px 6px rgba(16, 40, 70, .08), 0 14px 34px rgba(16, 40, 70, .12);
	font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ch-ink);
	background: var(--ch-bg);
}

#common-home .ch-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

#common-home .ch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--ch-radius);
	font: 600 15px/1 'Open Sans', sans-serif;
	cursor: pointer;
	transition: .18s;
	text-decoration: none;
}

#common-home .ch-btn-white { background: #fff; color: var(--ch-blue-dark); }
#common-home .ch-btn-white:hover { background: var(--ch-blue-50); }
#common-home .ch-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
#common-home .ch-btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- hero ---------- */
#common-home .ch-hero {
	position: relative;
	min-height: 480px;
	display: flex;
	align-items: center;
	background: var(--ch-blue-dark) center right / cover no-repeat;
}

#common-home .ch-hero:after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(7, 58, 105, .95) 0%, rgba(10, 74, 133, .88) 42%, rgba(10, 74, 133, .35) 70%, rgba(10, 74, 133, .08) 100%);
}

#common-home .ch-hero .ch-wrap {
	position: relative;
	z-index: 2;
	width: 100%;
}

#common-home .ch-hero-inner {
	max-width: 620px;
	color: #fff;
	padding: 56px 0 96px;
}

#common-home .ch-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	font: 600 12px/1 'Open Sans', sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 8px 12px;
	border-radius: 100px;
	margin-bottom: 20px;
}

#common-home .ch-h1 {
	font-size: 44px;
	line-height: 1.1;
	font-weight: 800;
	margin: 0 0 16px;
	letter-spacing: -.01em;
	color: #fff;
}

#common-home .ch-sub {
	font-size: 17px;
	line-height: 1.6;
	color: #D7E7F6;
	margin: 0 0 28px;
	max-width: 520px;
}

#common-home .ch-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- benefits ---------- */
#common-home .ch-benefits { position: relative; z-index: 3; margin-top: -48px; }

#common-home .ch-benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

#common-home .ch-benefit {
	background: #fff;
	border-radius: var(--ch-radius);
	padding: 20px 22px;
	display: flex;
	gap: 14px;
	align-items: center;
	box-shadow: var(--ch-shadow);
}

#common-home .ch-benefit svg {
	width: 26px;
	height: 26px;
	color: var(--ch-blue);
	flex: 0 0 auto;
}

#common-home .ch-benefit b { display: block; font-size: 14px; font-weight: 700; color: var(--ch-ink); }
#common-home .ch-benefit small { color: var(--ch-muted); font-size: 12.5px; }

/* ---------- sections ---------- */
#common-home .ch-block { padding: 52px 0 0; }

#common-home .ch-block-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

#common-home .ch-block-head h2 {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	margin: 0;
	letter-spacing: -.01em;
	color: var(--ch-ink);
}

#common-home .ch-more { color: var(--ch-blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
#common-home .ch-more:hover { text-decoration: underline; }

/* ---------- categories ---------- */
#common-home .ch-cats {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 14px;
}

#common-home .ch-cat {
	background: #fff;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius);
	padding: 18px 12px 16px;
	text-align: center;
	transition: .18s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

#common-home .ch-cat:hover {
	border-color: var(--ch-blue-100);
	box-shadow: var(--ch-shadow-hover);
	transform: translateY(-2px);
}

#common-home .ch-cat-ico {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ch-blue-50);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#common-home .ch-cat-ico svg { width: 24px; height: 24px; color: var(--ch-blue); }
#common-home .ch-cat-ico img { width: 100%; height: 100%; object-fit: contain; }

#common-home .ch-cat b { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ch-ink); }

/* ---------- product cards ---------- */
#common-home .ch-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

#common-home .ch-product {
	background: #fff;
	border: 1px solid var(--ch-line);
	border-radius: var(--ch-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: .18s;
	position: relative;
}

#common-home .ch-product:hover {
	border-color: var(--ch-blue-100);
	box-shadow: var(--ch-shadow-hover);
	transform: translateY(-2px);
}

#common-home .ch-product-thumb {
	position: relative;
	aspect-ratio: 1/1;
	background: #fff;
	padding: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#common-home .ch-product-thumb img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	object-fit: contain;
	transition: .3s;
}

#common-home .ch-product:hover .ch-product-thumb img { transform: scale(1.04); }

#common-home .ch-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--ch-blue);
	color: #fff;
	font: 700 12px/1 'Open Sans', sans-serif;
	padding: 7px 9px;
	border-radius: 8px;
}

#common-home .ch-product-body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

#common-home .ch-brand {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ch-muted);
}

#common-home .ch-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ch-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 39px;
	text-decoration: none;
}

#common-home .ch-product:hover .ch-name { color: var(--ch-blue-dark); }

#common-home .ch-stock {
	font-size: 12px;
	color: #1B7F4B;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

#common-home .ch-stock:before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1B7F4B;
}

#common-home .ch-stock.out { color: var(--ch-muted); }
#common-home .ch-stock.out:before { background: #C9B44A; }

#common-home .ch-price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

#common-home .ch-price {
	font-size: 19px;
	font-weight: 800;
	color: var(--ch-ink);
	letter-spacing: -.01em;
}

#common-home .ch-old {
	font-size: 13px;
	color: var(--ch-muted);
	text-decoration: line-through;
}

#common-home .ch-add {
	margin-top: 10px;
	height: 38px;
	border: 1px solid var(--ch-blue-100);
	background: var(--ch-blue-50);
	color: var(--ch-blue-dark);
	border-radius: 8px;
	font: 600 13px 'Open Sans', sans-serif;
	cursor: pointer;
	transition: .15s;
}

#common-home .ch-product:hover .ch-add { background: var(--ch-blue); border-color: var(--ch-blue); color: #fff; }
#common-home .ch-add:disabled { opacity: .7; cursor: default; }
#common-home .ch-add-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- brands ---------- */
#common-home .ch-brands {
	background: #fff;
	border-top: 1px solid var(--ch-line);
	border-bottom: 1px solid var(--ch-line);
	padding: 28px 0;
	margin-top: 56px;
}

#common-home .ch-brands-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

#common-home .ch-brands-row img {
	height: 34px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .65;
	transition: .2s;
}

#common-home .ch-brands-row a:hover img { filter: none; opacity: 1; }

/* ---------- why ---------- */
#common-home .ch-why { padding: 56px 0; }

#common-home .ch-why-inner { max-width: 860px; }

#common-home .ch-why h2 {
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 14px;
	letter-spacing: -.01em;
	color: var(--ch-ink);
}

#common-home .ch-why-intro { color: var(--ch-muted); margin: 0 0 18px; font-size: 15px; }

#common-home .ch-reasons {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 28px;
}

#common-home .ch-reasons li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14.5px;
}

#common-home .ch-reasons svg {
	width: 18px;
	height: 18px;
	color: var(--ch-blue);
	flex: 0 0 auto;
	margin-top: 3px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	#common-home .ch-cats { grid-template-columns: repeat(4, 1fr); }
	#common-home .ch-products { grid-template-columns: repeat(2, 1fr); }
	#common-home .ch-benefits-grid { grid-template-columns: repeat(2, 1fr); }
	#common-home .ch-reasons { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	#common-home .ch-hero { min-height: 0; }
	#common-home .ch-hero-inner { padding: 36px 0 84px; }
	#common-home .ch-h1 { font-size: 32px; }
	#common-home .ch-cats { grid-template-columns: repeat(2, 1fr); }
	#common-home .ch-products { grid-template-columns: 1fr; }
}
