/* ==========================================================
   Uzair Products Grid
   (all values below are defaults - the Elementor controls
   override them)
   ========================================================== */

.upg-wrap {
	--upg-dist: 60px;
	--upg-blur: 14px;
	--upg-dur: 1.2s;
	width: 100%;
	box-sizing: border-box;
}

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


/* ---------------- GRID ---------------- */

.upg-wrap .upg-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 15px;
	row-gap: 14px;
	width: 100%;
	margin: 0;
	padding: 30px 28px;
}

.upg-wrap .upg-item {
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.upg-wrap .upg-no-products {
	grid-column: 1 / -1;
	padding: 30px;
	text-align: center;
}

@media (max-width: 1024px) {
	.upg-wrap .upg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.upg-wrap .upg-grid {
		grid-template-columns: 1fr;
	}
}


/* ---------------- CARD ---------------- */

.upg-wrap .upg-card {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e4e4e4;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 1px 7px rgba(0, 0, 0, 0.16);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upg-wrap .upg-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.19);
}


/* ---------------- IMAGE ---------------- */

.upg-wrap .upg-image-link {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 0;
	text-decoration: none;
}

.upg-wrap .upg-image-box {
	position: relative;
	width: 100%;
	height: 210px;
	overflow: hidden;
	background: #ffffff;
	perspective: 1000px;
}

.upg-wrap .upg-img-front,
.upg-wrap .upg-img-back {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transition: transform 0.55s ease, opacity 0.55s ease;
}

.upg-wrap .upg-img-front {
	z-index: 2;
}

.upg-wrap .upg-img-back {
	z-index: 1;
}

.upg-wrap .upg-image-box img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

/* Flip */
.upg-wrap.upg-hover-flip .upg-img-back {
	transform: rotateY(180deg);
}

.upg-wrap.upg-hover-flip .upg-image-box.has-hover:hover .upg-img-front {
	transform: rotateY(-180deg);
}

.upg-wrap.upg-hover-flip .upg-image-box.has-hover:hover .upg-img-back {
	transform: rotateY(0deg);
}

/* Fade */
.upg-wrap.upg-hover-fade .upg-img-back {
	opacity: 0;
	z-index: 3;
}

.upg-wrap.upg-hover-fade .upg-image-box.has-hover:hover .upg-img-back {
	opacity: 1;
}


/* ---------------- OUT OF STOCK BADGE ---------------- */

.upg-wrap .upg-oos-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 20;
	background: #d02b31;
	color: #ffffff;
	padding: 9px 8px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1;
	font-weight: 400;
}


/* ---------------- INFO ---------------- */

.upg-wrap .upg-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 10px;
	background: #eeeeee;
	text-align: center;
}

.upg-wrap .upg-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0 0 8px;
	padding: 0;
	text-align: center;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 400;
}

.upg-wrap .upg-title a {
	color: #222222;
	font-weight: inherit;
	text-decoration: none;
}

.upg-wrap .upg-title a:hover {
	color: #315ee8;
}

.upg-wrap .upg-price {
	min-height: 18px;
	margin: 0 0 8px;
	color: #315ee8;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 500;
}

.upg-wrap .upg-price .amount {
	color: inherit;
}

.upg-wrap .upg-price ins {
	background: transparent;
	text-decoration: none;
}

.upg-wrap .upg-price del {
	opacity: 0.6;
}


/* ---------------- BUTTONS ---------------- */

.upg-wrap .upg-buttons {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	margin-top: auto;
}

.upg-wrap .upg-btn {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	margin: 0;
	padding: 0 10px;
	border-style: solid;
	border-width: 1px;
	border-radius: 3px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
}

.upg-wrap .upg-details-btn {
	color: #ffffff;
	background: #cf292f;
	border-color: #bd2228;
}

.upg-wrap .upg-details-btn:hover {
	color: #ffffff;
	background: #bd2228;
}

.upg-wrap .upg-cart-btn {
	color: #ffffff;
	background: #159fdf;
	border-color: #078fcf;
}

.upg-wrap .upg-cart-btn:hover {
	color: #ffffff;
	background: #078fcf;
}

.upg-wrap .upg-oos-btn {
	color: #ffffff;
	background: #cf292f;
	border-color: #bd2228;
	cursor: default;
}

.upg-wrap .upg-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
}

.upg-wrap .upg-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.upg-wrap .upg-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}


/* ---------------- PAGINATION ---------------- */

.upg-wrap .upg-pagination {
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 6px 28px 34px;
}

.upg-wrap .upg-page-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.upg-wrap .upg-page-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.upg-wrap .upg-page-num,
.upg-wrap .upg-page-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border: 1px solid #d5d5d5;
	background: #ffffff;
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.upg-wrap .upg-page-num {
	width: 40px;
	border-radius: 50%;
}

.upg-wrap .upg-page-nav {
	padding: 0 18px;
	border-radius: 20px;
	gap: 6px;
}

.upg-wrap .upg-page-num:hover,
.upg-wrap .upg-page-nav:hover {
	border-color: #159fdf;
	color: #159fdf;
}

.upg-wrap .upg-page-num.is-active {
	background: #159fdf;
	border-color: #159fdf;
	color: #ffffff;
}

.upg-wrap .upg-page-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #888888;
	font-size: 16px;
}

@media (max-width: 767px) {
	.upg-wrap .upg-pagination {
		padding-left: 12px;
		padding-right: 12px;
	}
}


/* ==========================================================
   BLUR REVEAL + FADE IN (one by one)
   ----------------------------------------------------------
   - Cards start hidden (only on the live site, NOT inside the
     Elementor editor, so content is always visible there).
   - JS adds .is-in to each card when it scrolls into view and
     gives it an inline animation-delay for the one-by-one effect.
   - The animation is on .upg-item (not .upg-card) so the card's
     hover lift keeps working.
   ========================================================== */

.upg-wrap.upg-anim {
	overflow-x: clip;
}

body:not(.elementor-editor-active) .upg-wrap.upg-anim .upg-item:not(.is-in) {
	opacity: 0;
}

.upg-wrap.upg-anim .upg-item.is-in {
	animation-duration: var(--upg-dur, 1.2s);
	animation-fill-mode: backwards;
}

.upg-wrap.upg-anim.upg-dir-left  .upg-item.is-in { animation-name: upgFadeLeft; }
.upg-wrap.upg-anim.upg-dir-right .upg-item.is-in { animation-name: upgFadeRight; }
.upg-wrap.upg-anim.upg-dir-up    .upg-item.is-in { animation-name: upgFadeUp; }
.upg-wrap.upg-anim.upg-dir-down  .upg-item.is-in { animation-name: upgFadeDown; }

.upg-wrap.upg-anim .upg-item.is-static {
	animation: none;
}

@keyframes upgFadeLeft {
	0% {
		opacity: 0;
		filter: blur(var(--upg-blur, 14px));
		transform: translateX(calc(var(--upg-dist, 60px) * -1));
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	}
	60% {
		opacity: 1;
		filter: blur(calc(var(--upg-blur, 14px) * 0.45));
		transform: translateX(0);
		animation-timing-function: ease-out;
	}
	100% {
		opacity: 1;
		filter: blur(0);
		transform: translateX(0);
	}
}

@keyframes upgFadeRight {
	0% {
		opacity: 0;
		filter: blur(var(--upg-blur, 14px));
		transform: translateX(var(--upg-dist, 60px));
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	}
	60% {
		opacity: 1;
		filter: blur(calc(var(--upg-blur, 14px) * 0.45));
		transform: translateX(0);
		animation-timing-function: ease-out;
	}
	100% {
		opacity: 1;
		filter: blur(0);
		transform: translateX(0);
	}
}

@keyframes upgFadeUp {
	0% {
		opacity: 0;
		filter: blur(var(--upg-blur, 14px));
		transform: translateY(var(--upg-dist, 60px));
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	}
	60% {
		opacity: 1;
		filter: blur(calc(var(--upg-blur, 14px) * 0.45));
		transform: translateY(0);
		animation-timing-function: ease-out;
	}
	100% {
		opacity: 1;
		filter: blur(0);
		transform: translateY(0);
	}
}

@keyframes upgFadeDown {
	0% {
		opacity: 0;
		filter: blur(var(--upg-blur, 14px));
		transform: translateY(calc(var(--upg-dist, 60px) * -1));
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	}
	60% {
		opacity: 1;
		filter: blur(calc(var(--upg-blur, 14px) * 0.45));
		transform: translateY(0);
		animation-timing-function: ease-out;
	}
	100% {
		opacity: 1;
		filter: blur(0);
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.upg-wrap.upg-anim .upg-item.is-in {
		animation: none;
	}
}


/* ==========================================================
   FILTER SIDEBAR + LAYOUT
   ========================================================== */

.upg-layout {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
}

.upg-layout > .upg-wrap {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.upg-layout.upg-filter-right {
	flex-direction: row-reverse;
}

.upg-layout.upg-sticky .upg-sidebar {
	position: sticky;
	top: 20px;
}

.upg-layout .upg-sidebar {
	flex: 0 0 auto;
	width: 25%;
	background: #f4f4f4;
	border-radius: 8px;
	padding: 25px 24px;
	box-sizing: border-box;
}

.upg-layout .upg-filter-block + .upg-filter-block {
	margin-top: 28px;
}

.upg-layout .upg-filter-title {
	margin: 0 0 20px;
	padding: 0;
	color: #159fdf;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.upg-layout .upg-filter-list,
.upg-layout .upg-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.upg-layout .upg-filter-list > li,
.upg-layout .upg-sub > li {
	margin: 0 0 17px;
	padding: 0;
	list-style: none;
}

.upg-layout .upg-filter-list > li:last-child,
.upg-layout .upg-sub > li:last-child {
	margin-bottom: 0;
}

.upg-layout .upg-sub {
	margin: 17px 0 0 22px;
}


/* ---------------- CHECKBOX ROW ---------------- */

.upg-layout .upg-check-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	line-height: 1.3;
}

.upg-layout .upg-check-row input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.upg-layout .upg-check {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-style: solid;
	border-width: 2px;
	border-color: #222222;
	border-radius: 6px;
	background: #dcdcdc;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.upg-layout .upg-check::after {
	content: "";
	display: block;
	width: 26%;
	height: 52%;
	margin-top: -8%;
	border-style: solid;
	border-color: #ffffff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
	opacity: 0;
	transition: opacity 0.12s ease;
}

.upg-layout .upg-check-row input:checked + .upg-check {
	background: #159fdf;
	border-color: #159fdf;
}

.upg-layout .upg-check-row input:checked + .upg-check::after {
	opacity: 1;
}

.upg-layout .upg-check-row input:focus-visible + .upg-check {
	outline: 2px solid #159fdf;
	outline-offset: 2px;
}

.upg-layout .upg-flabel {
	color: #222222;
	font-size: 17px;
}

.upg-layout .upg-fcount {
	color: #777777;
	font-size: 14px;
}


/* ---------------- PRICE INPUTS ---------------- */

.upg-layout .upg-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.upg-layout .upg-price-input {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #cccccc;
	border-radius: 5px;
	background: #ffffff;
	color: #222222;
	font-size: 15px;
	box-shadow: none;
}

.upg-layout .upg-price-sep {
	flex: 0 0 auto;
	color: #555555;
}


/* ---------------- ACTIONS (Apply / Clear) ---------------- */

.upg-layout .upg-filter-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 22px;
}

.upg-layout .upg-filter-actions .upg-btn {
	flex: 0 0 auto;
	width: auto;
}

.upg-layout .upg-apply-btn,
.upg-layout .upg-filter-toggle {
	color: #ffffff;
	background: #159fdf;
	border-color: #078fcf;
}

.upg-layout .upg-apply-btn:hover,
.upg-layout .upg-filter-toggle:hover {
	color: #ffffff;
	background: #078fcf;
}

.upg-layout .upg-clear-link {
	color: #cf292f;
	font-size: 15px;
	text-decoration: underline;
}

.upg-layout .upg-filter-toggle {
	display: none;
}


/* ---------------- MOBILE ---------------- */

@media (max-width: 767px) {

	.upg-layout.upg-has-filter,
	.upg-layout.upg-has-filter.upg-filter-right {
		flex-direction: column;
		align-items: stretch;
	}

	.upg-layout.upg-has-filter .upg-sidebar {
		width: 100%;
		position: static;
	}

	.upg-layout.upg-collapse-mobile .upg-filter-toggle {
		display: flex;
	}

	.upg-layout.upg-collapse-mobile .upg-sidebar {
		display: none;
	}

	.upg-layout.upg-collapse-mobile.is-open .upg-sidebar {
		display: block;
	}
}


/* ==========================================================
   RENTAL CARDS WIDGET
   (uses the same .upg-wrap / .upg-grid / .upg-item classes, so the
   blur reveal animation above works on it as well)
   ========================================================== */

.upg-wrap.upg-rental-wrap .upg-grid {
	align-items: start;
	column-gap: 25px;
	row-gap: 25px;
	padding: 0;
}

.upg-wrap .upg-rental-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: #ffffff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* ---------------- CORNER RIBBON ---------------- */

.upg-wrap .upg-rental-ribbon {
	--upg-rib: 88px;
	position: absolute;
	top: 0;
	left: 0;
	width: 88px;
	height: 88px;
	overflow: hidden;
	z-index: 5;
	pointer-events: none;
}

.upg-wrap .upg-rental-ribbon-inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 200%;
	margin-top: calc(var(--upg-rib) * 0.4);
	padding: 0;
	background: #4b00ff;
	color: #ffffff;
	text-align: center;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 500;
	line-height: 2;
	transform: translateY(-50%) translateX(-50%) translateX(calc(var(--upg-rib) * 0.4)) rotate(-45deg);
}

.upg-wrap .upg-rental-ribbon.is-right {
	left: auto;
	right: 0;
}

.upg-wrap .upg-rental-ribbon.is-right .upg-rental-ribbon-inner {
	left: auto;
	right: 0;
	transform: translateY(-50%) translateX(50%) translateX(calc(var(--upg-rib) * -0.4)) rotate(45deg);
}


/* ---------------- IMAGE ---------------- */

.upg-wrap .upg-rental-image {
	display: block;
	width: 100%;
	height: 200px;
	background: #ffffff;
	overflow: hidden;
	line-height: 0;
}

.upg-wrap .upg-rental-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	margin: 0;
	object-fit: contain;
	object-position: center;
}


/* ---------------- TEXT ---------------- */

.upg-wrap .upg-rental-content {
	padding: 18px 25px 13px;
	text-align: left;
}

.upg-wrap .upg-rental-title {
	margin: 0 0 12px;
	padding: 0;
	color: #0b22d8;
	font-family: inherit;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.45;
	text-transform: uppercase;
}

.upg-wrap .upg-rental-desc {
	margin: 0 0 22px;
	color: #222222;
	font-size: 19px;
	line-height: 1.6;
}


/* ---------------- BUTTON ---------------- */

.upg-wrap .upg-rental-btn-wrap {
	display: flex;
	justify-content: flex-start;
}

.upg-wrap .upg-rental-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 55px;
	margin: 0;
	padding: 12px 25px;
	border: 0 solid #c62a30;
	border-radius: 2px;
	background: #c62a30;
	color: #ffffff;
	font-family: inherit;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.upg-wrap .upg-rental-btn:hover {
	background: #a8232a;
	color: #ffffff;
}

.upg-wrap.upg-rental-icon-after .upg-rental-btn {
	flex-direction: row-reverse;
}

.upg-wrap .upg-rental-btn .upg-btn-icon {
	font-size: 18px;
}
