/* Bybsa Toolkit — front-end look (inc/ui.php). Theme colours: blue #0077ff, fonts Urbanist (titles) / Work Sans. */
:root {
	--bybsa-blue: #0077ff;
	--bybsa-blue-soft: #eef5ff;
	--bybsa-ink: #111827;
	--bybsa-muted: #6b7280;
	--bybsa-line: #e5e7eb;
	--bybsa-radius: 8px;
	--bybsa-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 14px rgba(17, 24, 39, .06);
	--bybsa-shadow-hover: 0 6px 22px rgba(0, 119, 255, .14);
}

/* ---------- Mobile search bar under the header (all pages) ---------- */
.bybsa-mobile-search { display: none; }
@media (max-width: 1024px) {
	.bybsa-mobile-search {
		display: block;
		padding: 8px 12px 10px;
		background: var(--wd-header-general-bg, #fbfaf6);
		border-bottom: 1px solid var(--bybsa-line);
	}
	.bybsa-mobile-search .searchform { margin: 0; }
	.bybsa-mobile-search input[type="text"] {
		height: 42px;
		border-radius: 12px !important;
		font-size: 15px;
		padding-inline-start: 16px;
	}
	.bybsa-mobile-search .searchsubmit { border-radius: 0 12px 12px 0 !important; }
}

/* ---------- Home ---------- */
.home .elementor-widget-heading .elementor-heading-title,
.home .wd-products-tabs .tabs-name {
	font-family: var(--wd-title-font) !important;
	font-weight: 700 !important;
	font-size: 26px !important;
	line-height: 1.25 !important;
	color: var(--bybsa-ink) !important;
	letter-spacing: -.01em !important;
	text-transform: none !important;
}
.home .elementor-widget-heading .elementor-heading-title b,
.home .elementor-widget-heading .elementor-heading-title strong { font-weight: 800; }

/* Trust strip under the hero */
.bybsa-trust {
	max-width: 1170px;
	margin: 18px auto 6px;
	padding: 0 15px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.bybsa-trust-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--bybsa-line);
	border-radius: var(--bybsa-radius);
	padding: 14px 16px;
	color: var(--bybsa-ink) !important;
	text-decoration: none !important;
	box-shadow: var(--bybsa-shadow);
}
a.bybsa-trust-item:hover { border-color: #25d366; }
.bybsa-trust-ico {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--bybsa-blue-soft);
	color: var(--bybsa-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}
.bybsa-trust-ico svg { width: 22px; height: 22px; }
a.bybsa-trust-item .bybsa-trust-ico { background: #e9fbf0; color: #1faa55; }
.bybsa-trust-item strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bybsa-trust-item small { display: block; font-size: 12.5px; color: var(--bybsa-muted); line-height: 1.35; margin-top: 2px; }
@media (max-width: 1024px) { .bybsa-trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
	.bybsa-trust { gap: 8px; margin-top: 12px; }
	.bybsa-trust-item { padding: 10px; gap: 8px; }
	.bybsa-trust-ico { flex-basis: 34px; width: 34px; height: 34px; }
	.bybsa-trust-ico svg { width: 18px; height: 18px; }
	.bybsa-trust-item strong { font-size: 13px; }
	.bybsa-trust-item small { display: none; }
}

/* Category tiles: the image files carry a dark label strip at the bottom — cropped off, real label below */
.home .elementor-widget-image .bybsa-cat-tile {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--bybsa-line);
	border-radius: var(--bybsa-radius);
	overflow: hidden;
	box-shadow: var(--bybsa-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	text-decoration: none !important;
	height: 100%;
}
.home .e-grid:has(.bybsa-cat-tile) { align-items: stretch !important; gap: 14px !important; }
.home .elementor-widget-image:has(.bybsa-cat-tile) { height: 100%; padding: 0 !important; }
.home .elementor-widget-image:has(.bybsa-cat-tile) > .elementor-widget-container { height: 100%; }
.home .elementor-widget-image .bybsa-cat-tile img {
	border: 0 !important;
	border-radius: 0 !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 600 / 512;
	object-fit: cover;
	object-position: top center;
	padding: 6px 6px 0;
	background: #fff;
}
.home .bybsa-cat-name {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	border-top: 1px solid #f1f2f4;
	padding: 8px 10px 12px;
	font-family: var(--wd-title-font);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	color: var(--bybsa-ink);
	text-align: center;
}
.home .elementor-widget-image .bybsa-cat-tile:hover {
	transform: translateY(-3px);
	border-color: #b9d8ff;
	box-shadow: var(--bybsa-shadow-hover);
}
.home .elementor-widget-image .bybsa-cat-tile:hover .bybsa-cat-name { color: var(--bybsa-blue); }
@media (max-width: 767px) {
	.home .e-grid:has(.bybsa-cat-tile) { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
	.home .bybsa-cat-name { font-size: 12px; padding: 6px 4px 8px; }
	.home .elementor-widget-image .bybsa-cat-tile img { padding: 3px 3px 0; }
}

/* Industry Solutions cards */
.home .elementor-widget-icon-box > .elementor-widget-container,
.home .elementor-widget-icon-box .elementor-icon-box-wrapper { height: 100%; }
.home .elementor-widget-icon-box {
	padding: 0 !important;
	min-height: 0 !important;
	background: #fff;
	border: 1px solid var(--bybsa-line) !important;
	border-radius: var(--bybsa-radius) !important;
	box-shadow: var(--bybsa-shadow);
	transition: box-shadow .18s ease, border-color .18s ease;
}
.home .elementor-widget-icon-box:hover { border-color: #b9d8ff !important; box-shadow: var(--bybsa-shadow-hover); }
.home .elementor-widget-icon-box .elementor-icon-box-wrapper { padding: 20px 18px; }
.home .elementor-widget-icon-box > .elementor-widget-container { padding: 0 !important; margin: 0 !important; border: 0 !important; }
.home .elementor-widget-icon-box .elementor-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--bybsa-blue-soft);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 34px !important;
}
.home .elementor-widget-icon-box .elementor-icon svg { width: 34px !important; height: 34px !important; }
.home .elementor-widget-icon-box .elementor-icon-box-icon { margin-bottom: 10px !important; }
.home .elementor-widget-icon-box .elementor-icon-box-title {
	font-family: var(--wd-title-font);
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	margin: 0 0 6px !important;
	color: var(--bybsa-ink);
}
.home .elementor-widget-icon-box .elementor-icon-box-description {
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	color: var(--bybsa-muted) !important;
}
/* "Need Custom Solution?" card */
.home .bybsa-custom-box {
	height: 100%;
	min-height: 170px;
	border-radius: var(--bybsa-radius);
	background: linear-gradient(135deg, #0077ff, #0052b4);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px;
	text-align: center;
	box-shadow: var(--bybsa-shadow-hover);
}
.home .bybsa-custom-box .bybsa-title { color: #fff !important; font-size: 22px !important; font-weight: 700 !important; margin: 0 !important; line-height: 1.25 !important; }
.home .bybsa-custom-box .bybsa-whatsapp-button {
	background: #25d366 !important;
	color: #fff !important;
	border-radius: 6px !important;
	padding: 10px 20px !important;
	font-weight: 600;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.home .elementor-widget-html:has(.bybsa-custom-box),
.home .elementor-widget-html:has(.bybsa-custom-box) > .elementor-widget-container { height: 100%; border: 0 !important; background: none !important; }
@media (max-width: 767px) {
	.home .elementor-widget-icon-box .elementor-icon-box-wrapper { display: flex !important; text-align: left !important; gap: 12px; align-items: flex-start; padding: 12px; }
	.home .elementor-widget-icon-box .elementor-icon { width: 48px; height: 48px; }
	.home .elementor-widget-icon-box .elementor-icon svg { width: 26px !important; height: 26px !important; }
	.home .elementor-widget-icon-box .elementor-icon-box-icon { margin: 0 !important; flex: 0 0 48px; }
	.home .elementor-widget-icon-box .elementor-icon-box-title { font-size: 15.5px !important; }
}

/* Product rows: even grid instead of masonry, tidy cards */
.home .wd-products-tabs .wd-tabs-header {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-end !important;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--bybsa-line);
	padding-bottom: 10px;
	margin-bottom: 18px;
	text-align: left;
}
.home .wd-products-tabs .wd-tabs-header .tabs-name { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.home .wd-products-tabs .wd-tabs-header .tabs-name::after,
.home .wd-products-tabs .wd-tabs-header::after { display: none !important; }
.home .wd-products-tabs .wd-nav-tabs-wrapper:not(:has(li + li)) { display: none; } /* one tab only → no tab buttons */
.bybsa-view-all {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--bybsa-blue) !important;
	white-space: nowrap;
	text-decoration: none !important;
}
.bybsa-view-all:hover { text-decoration: underline !important; }

.home .wd-products-tabs .wd-products.grid-masonry {
	display: grid !important;
	grid-template-columns: repeat(var(--wd-col-lg, 5), minmax(0, 1fr));
	gap: var(--wd-gap-lg, 20px);
	height: auto !important;
	margin: 0 !important;
}
.home .wd-products-tabs .wd-products.grid-masonry > .wd-product {
	position: static !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
@media (max-width: 1024px) { .home .wd-products-tabs .wd-products.grid-masonry { grid-template-columns: repeat(var(--wd-col-md, 4), minmax(0, 1fr)); } }
.home .wd-products-tabs .wd-product .product-wrapper {
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bybsa-line);
	border-radius: var(--bybsa-radius);
	box-shadow: var(--bybsa-shadow) !important;
	overflow: hidden;
	transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.home .wd-products-tabs .wd-product .product-wrapper:hover { border-color: #b9d8ff; box-shadow: var(--bybsa-shadow-hover) !important; transform: translateY(-2px); }
.home .wd-products-tabs .wd-product .product-element-top { aspect-ratio: 1 / 1; background: #fff; }
.home .wd-products-tabs .wd-product .product-element-top img { width: 100%; height: 100%; object-fit: contain; }
.home .wd-products-tabs .wd-product .product-element-bottom,
.home .wd-products-tabs .wd-product .product-information { flex: 1; display: flex; flex-direction: column; }
.home .wd-products-tabs .wd-product .wd-entities-title {
	font-size: 14.5px !important;
	line-height: 1.4 !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.4em * 2);
}
.home .wd-products-tabs .wd-product .price { margin-top: auto; padding-top: 6px; font-size: 16px; }
.home .wd-products-tabs .wd-product .price del { font-size: 13px; color: #9ca3af; }
/* "Ask for Price" → a small tag instead of large blue text */
.home .wd-products-tabs .wd-product .bybsa-ask-price,
.home .wd-products-tabs .wd-product .price .bybsa-ask-price {
	display: inline-block;
	font-size: 13px !important;
	font-weight: 600;
	color: var(--bybsa-blue) !important;
	background: var(--bybsa-blue-soft);
	border-radius: 4px;
	padding: 4px 10px;
	line-height: 1.4;
}
.home .wd-products-tabs .wd-product .onsale,
.home .wd-products-tabs .wd-product .product-label {
	font-size: 11.5px !important;
	padding: 2px 8px !important;
	min-height: 0 !important;
	border-radius: 4px !important;
}

/* Phones: product rows swipe sideways instead of stacking 30+ cards */
@media (max-width: 767px) {
	.home .elementor-widget-heading .elementor-heading-title,
	.home .wd-products-tabs .tabs-name { font-size: 21px; }
	.home .wd-products-tabs .wd-products.grid-masonry {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 10px;
		padding: 2px 2px 12px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.home .wd-products-tabs .wd-products.grid-masonry::-webkit-scrollbar { display: none; }
	.home .wd-products-tabs .wd-products.grid-masonry > .wd-product { flex: 0 0 44%; scroll-snap-align: start; }
	.home .wd-products-tabs .wd-product .wd-entities-title { font-size: 13.5px !important; }
	.home .wd-products-tabs .wd-product .wd-add-btn,
	.home .wd-products-tabs .wd-product .wd-buttons { display: none !important; }
}

/* Quote form */
.home .elementor-widget-form form {
	background: #fff;
	border: 1px solid var(--bybsa-line);
	border-radius: 12px;
	padding: 18px;
	box-shadow: var(--bybsa-shadow);
}
.home .elementor-widget-form .elementor-field-textual {
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	padding: 11px 14px !important;
	font-size: 15px !important;
	background: #fff !important;
	min-height: 46px;
}
.home .elementor-widget-form .elementor-field-textual:focus { border-color: var(--bybsa-blue) !important; box-shadow: 0 0 0 3px rgba(0, 119, 255, .15) !important; outline: 0; }
.home .elementor-widget-form .elementor-field-type-submit { width: 100% !important; max-width: 100% !important; flex-basis: 100% !important; }
.home .elementor-widget-form .elementor-button {
	width: 100%;
	min-height: 48px;
	border-radius: 6px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	background: var(--bybsa-blue) !important;
}

/* Brands strip */
.home .elementor-widget-wd_products_brands .wd-brands .wd-brand-item,
.home .elementor-widget-wd_products_brands .wd-brands .brand-item { transition: background .18s ease; }
.home .elementor-widget-wd_products_brands .wd-brands a { color: #374151; font-weight: 600; font-size: 17px; text-decoration: none; }
.home .elementor-widget-wd_products_brands .wd-brands a:hover { color: var(--bybsa-blue); }
.home .elementor-widget-wd_products_brands .wd-brands { border-radius: var(--bybsa-radius); overflow: hidden; background: #fff; }

/* Long SEO text: first part visible, "Read more" opens the rest (all of it stays in the page for Google) */
.bybsa-seo-text { position: relative; }
.bybsa-seo-text.is-collapsed { max-height: 460px; overflow: hidden; }
.bybsa-seo-text.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 140px;
	background: linear-gradient(rgba(243, 244, 246, 0), var(--bybsa-seo-bg, #f3f4f6));
	pointer-events: none;
}
.bybsa-seo-more {
	display: block;
	margin: 14px auto 0;
	padding: 10px 22px;
	border: 1px solid #c9d6e8;
	border-radius: 6px;
	background: #fff;
	color: var(--bybsa-blue);
	font-weight: 600;
	cursor: pointer;
}
.bybsa-seo-more:hover { border-color: var(--bybsa-blue); }
.bybsa-seo-text h2 { font-size: 24px !important; line-height: 1.3 !important; margin: 26px 0 10px !important; }
.bybsa-seo-text h3 { font-size: 19px !important; }
@media (max-width: 767px) {
	.bybsa-seo-text.is-collapsed { max-height: 340px; }
	.bybsa-seo-text h2 { font-size: 20px !important; }
}

/* Long SEO text block (has its own inline Arial rule): use the site font */
.bybsa-content, .bybsa-content * { font-family: var(--wd-text-font) !important; }
.bybsa-content h1, .bybsa-content h2, .bybsa-content h3, .bybsa-content h4 { font-family: var(--wd-title-font) !important; }

/* Category header: hide the theme's "No product categories exist." when a category has no sub-categories */
.cat-item-none { display: none !important; }
.wd-nav-product-cat:not(:has(li:not(.cat-item-none))) , .wd-btn-show-cat:has(+ .wd-nav-product-cat:not(:has(li:not(.cat-item-none)))) { display: none !important; }
