/* ==========================================================================
   Homepage sections built with Elementor (classes set on the containers).
   Colors and fonts come from Woodmart Theme Settings via its CSS variables.
   ========================================================================== */

/* ---------- Trust bar (.xh-trust) ---------- */
.xh-trust {
	background: #fff;
	border-bottom: 1px solid #ececec;
}
.xh-trust .elementor-widget-icon-box {
	flex: 1 1 0;
	min-width: 0;
	padding-inline: 20px;
	border-right: 1px solid #e6e6e6;
}
.xh-trust .elementor-widget-icon-box:last-child { border-right: 0; }

.xh-trust .elementor-icon-box-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: left;
}
.xh-trust .elementor-icon-box-icon { margin: 0 !important; flex: 0 0 auto; }
.xh-trust .elementor-icon-box-icon .elementor-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid var(--wd-primary-color);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wd-primary-color) 14%, #fff);
	color: #111;
	font-size: 16px;
}
.xh-trust .elementor-icon-box-icon .elementor-icon i,
.xh-trust .elementor-icon-box-icon .elementor-icon svg { width: 16px; height: 16px; font-size: 16px; fill: currentColor; }
.xh-trust .elementor-icon-box-content { flex: 0 1 auto; }
.xh-trust .elementor-icon-box-title {
	margin: 0;
	color: #222;
	font-family: var(--wd-text-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
.xh-trust .elementor-icon-box-description:empty { display: none; }

/* ---------- Category cards (.xh-cards / .xh-card) ---------- */
.xh-cards { background: #f3f4f6; }

.xh-card {
	position: relative;
	overflow: hidden;
	min-height: 400px;
	border-radius: 16px;
	background-size: 100% auto !important;
	background-position: center bottom !important;
	transition: transform .3s ease, box-shadow .3s ease;
}
.xh-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 32%, rgba(0, 0, 0, 0) 52%);
	pointer-events: none;
}
.xh-card > .elementor-element { position: relative; z-index: 1; }
.xh-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .14); }

.xh-card .elementor-heading-title {
	margin: 0;
	color: #fff;
	font-family: var(--wd-title-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}
.xh-card .elementor-widget-text-editor {
	max-width: 400px;
	color: rgba(255, 255, 255, .92);
	font-family: var(--wd-text-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.7;
	text-align: center;
}
.xh-card .elementor-widget-text-editor p { margin: 0; }

.xh-card .elementor-button {
	padding: 14px 30px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #111;
	font-family: var(--wd-text-font);
	font-size: 15px;
	font-weight: 600;
	transition: background .2s, color .2s;
}
.xh-card .elementor-button:hover,
.xh-card .elementor-button:focus {
	background: var(--wd-primary-color);
	color: #000;
}

/* ---------- Top Trending Laptops (.xh-trending) ---------- */
.xh-trending { background: #f3f4f6; }
.xh-trending .xh-section-head { padding-bottom: 6px !important; }
.xh-section-title .elementor-heading-title {
	position: relative;
	margin: 0;
	padding-left: 16px;
	color: #111827;
	font-family: var(--wd-title-font);
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.2;
}
.xh-section-title .elementor-heading-title::before {
	content: "";
	position: absolute;
	top: 12%;
	bottom: 12%;
	left: 0;
	width: 5px;
	border-radius: 4px;
	background: var(--wd-primary-color);
}
.xh-view-all .elementor-heading-title a {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	transition: background-color .3s ease-out, border-color .3s ease-out, transform .3s ease-out;
}
.xh-view-all .elementor-heading-title a:hover {
	border-color: var(--wd-primary-color);
	background: var(--wd-primary-color);
	transform: translateY(-2px);
}

/* Laptops grid: exactly 2 rows, "View all" replaces pagination. */
.xh-laptops { background: #fff; }
.xh-laptops .wd-loop-footer,
.xh-laptops .products-footer,
.xh-laptops .woocommerce-pagination { display: none !important; }

/* ---------- Brands (.xh-brands) ---------- */
.xh-brands { background: #f7f7f5; }
.xh-brands .wd-title-wrapp,
.xh-brands .title-wrapper { margin-bottom: 36px !important; }
.xh-brands .title-wrapper .title,
.xh-brands .wd-title .title {
	font-family: var(--wd-title-font);
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	color: #111827;
}
.xh-brands .title-after_title,
.xh-brands .liner-continer::before,
.xh-brands .liner-continer::after { border-color: #e5e7eb; }

.xh-brands .elementor-image-carousel-wrapper { padding: 6px 4px 12px; }
.xh-brands .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	padding: 22px 28px;
	border: 1px solid #eceef2;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(17, 24, 39, .03), 0 8px 20px rgba(17, 24, 39, .04);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s ease-out;
}
.xh-brands .swiper-slide a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.xh-brands .swiper-slide-image {
	width: 100% !important;
	height: 64px !important;
	max-width: 150px;
	object-fit: contain;
	filter: grayscale(1) contrast(1.1);
	opacity: .8;
	transition: filter .35s ease-out, opacity .35s ease-out;
}
.xh-brands .swiper-slide:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--wd-primary-color) 60%, #fff);
}
.xh-brands .swiper-slide:hover .swiper-slide-image { filter: none; opacity: 1; }

.xh-brands .swiper-pagination { display: none; }
.xh-brands .elementor-swiper-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
	color: #111827 !important;
	font-size: 14px !important;
	box-shadow: 0 6px 14px rgba(17, 24, 39, .08);
	transition: background-color .3s ease-out, border-color .3s ease-out;
}
.xh-brands .elementor-swiper-button svg { width: 14px; height: 14px; fill: currentColor; }
.xh-brands .elementor-swiper-button:hover { border-color: var(--wd-primary-color); background: var(--wd-primary-color); }
.xh-brands .elementor-swiper-button-prev { left: -14px !important; }
.xh-brands .elementor-swiper-button-next { right: -14px !important; }

@media (max-width: 767px) {
	.xh-brands .swiper-slide { height: 90px; padding: 16px; }
	.xh-brands .swiper-slide-image { height: 44px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.xh-brands .swiper-slide,
	.xh-brands .swiper-slide-image { transition: none; }
	.xh-brands .swiper-slide:hover { transform: none; }
}

/* ---------- "Why shop with us" boxes (.xh-why): equal width and height ---------- */
.xh-why { align-items: stretch; }
.xh-why > .elementor-widget-wd_infobox {
	flex: 1 1 0;
	min-width: 0;
}
.xh-why > .elementor-widget-wd_infobox > .elementor-widget-container,
.xh-why .wd-info-box {
	height: 100%;
}
.xh-why .wd-info-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 34px 26px;
	border: 2px solid #e6e6e6;
	background: #fff;
	text-align: center;
	transition: border-color .25s, box-shadow .25s;
}
.xh-why .wd-info-box:hover {
	border-color: var(--wd-primary-color);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}
.xh-why .wd-info-box .box-icon-wrapper { margin: 0 0 18px !important; }
/* Woodmart draws the border on the content (icon overlaps it); the whole box carries it instead. */
.xh-why .wd-info-box .info-box-content {
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.xh-why .wd-info-box .info-box-title { margin-bottom: 10px; }

@media (max-width: 1024px) {
	.xh-why > .elementor-widget-wd_infobox { flex: 1 1 calc(50% - 15px); }
}
@media (max-width: 767px) {
	.xh-why > .elementor-widget-wd_infobox { flex-basis: 100%; }
}

@media (max-width: 1024px) {
	.xh-trust .elementor-widget-icon-box { flex: 1 1 45%; border-right: 0; padding-block: 8px; }
	.xh-trust .elementor-icon-box-wrapper { justify-content: flex-start; }
}

@media (max-width: 767px) {
	.xh-trust .elementor-widget-icon-box { flex-basis: 100%; }
	.xh-card { min-height: 240px; }
	.xh-card .elementor-heading-title { font-size: 21px; }
}
