/**
 * Homepage — visual language aligned with barcom.co.il (colors, spacing, Woo loops).
 */

.tz-barcom-home {
	font-family: "Heebo", system-ui, sans-serif;
	color: #242424;
	background: #fff;
}

.tz-barcom-home .bh-inner {
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

/* Hero */
.bh-hero-wrap {
	position: relative;
	width: 100%;
}

.bh-swiper {
	width: 100%;
	min-height: 380px;
}

.bh-swiper .swiper-slide {
	height: auto;
}

.bh-hero-slide {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	min-height: 380px;
	padding: 32px 24px 40px;
	text-decoration: none;
	color: #fff;
	background-color: #607d8b;
	background-image: linear-gradient(120deg, rgba(0, 174, 239, 0.85), rgba(66, 82, 109, 0.75)),
		var(--bh-bg, none);
	background-size: cover;
	background-position: center center;
}

.bh-hero-slide:not([style*="--bh-bg"]) {
	background-image: linear-gradient(120deg, #00aeef, #42526d);
}

.bh-hero-fallback {
	cursor: default;
	pointer-events: none;
}

.bh-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
	pointer-events: none;
}

.bh-hero-slide .bh-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bh-hero-title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.bh-hero-cta {
	display: inline-block;
	font-size: 18px;
	font-weight: 600;
	color: #ffc501;
}

.bh-swiper .swiper-pagination {
	bottom: 16px !important;
}

.bh-swiper .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #fff;
	opacity: 0.55;
}

.bh-swiper .swiper-pagination-bullet-active {
	background: #00aeef;
	opacity: 1;
}

/* Category tiles */
.bh-section {
	padding: 36px 0;
}

.bh-cat-tiles {
	background: radial-gradient(ellipse at top, rgba(3, 169, 244, 0.08), #fff 55%);
}

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

@media (max-width: 991px) {
	.bh-cat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.bh-cat-grid {
		grid-template-columns: 1fr;
	}
}

.bh-cat-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(38, 50, 56, 0.08);
	text-decoration: none;
	color: #242424;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bh-cat-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(38, 50, 56, 0.12);
}

.bh-cat-tile-media {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: #eceff1;
	background-image: var(--tile, linear-gradient(145deg, #eceff1, #cfd8dc));
	background-size: cover;
	background-position: center;
}

.bh-cat-tile-title {
	padding: 14px 16px 4px;
	font-size: 17px;
	font-weight: 700;
}

.bh-cat-tile-cta {
	padding: 0 16px 16px;
	font-size: 14px;
	color: #00aeef;
	font-weight: 600;
}

/* Section titles (Barcom / Elementor Heebo) */
.bh-section-title {
	font-family: "Heebo", system-ui, sans-serif;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	text-align: center;
	margin: 0 0 28px;
	color: #242424;
}

.bh-products-popular {
	background: #fff;
}

.bh-products-new {
	background: #f5f7f9;
}

/* Category “worlds” row */
.bh-worlds {
	background: #fff;
}

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

@media (max-width: 767px) {
	.bh-worlds-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bh-world {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #242424;
	padding: 16px 10px;
	border-radius: 12px;
	background: #fafafa;
	border: 1px solid #eceff1;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bh-world:hover {
	border-color: #00aeef;
	box-shadow: 0 6px 18px rgba(0, 174, 239, 0.15);
}

.bh-world-icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background-color: #fff;
	background-image: var(--w, linear-gradient(145deg, #e3f2fd, #fff));
	background-size: cover;
	background-position: center;
	border: 2px solid #eceff1;
	margin-bottom: 10px;
}

.bh-world-label {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

/* Brands */
.bh-brands {
	background: linear-gradient(180deg, #fff 0%, #f5f7f9 100%);
}

.bh-brands-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.bh-brand-pill {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #cfd8dc;
	color: #42526d;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bh-brand-pill:hover {
	border-color: #00aeef;
	color: #00aeef;
	background: rgba(0, 174, 239, 0.06);
}

/* Homepage product blocks — spacing only (grid/cards: barcom-global.css) */
.tz-barcom-home .woocommerce {
	margin-bottom: 0;
}

.tz-barcom-home .bh-products-new .woocommerce ul.products li.product {
	background: #fff;
}

/* Optional editor content below */
.bh-entry {
	font-size: 16px;
	line-height: 1.7;
}

.bh-entry .woocommerce {
	margin-top: 1em;
}
