/* Ecomify Best Sellers Elementor - scoped widget styles */
.ebs-section,
.ebs-section * {
	box-sizing: border-box;
}

.ebs-section {
	--ebs-teal: #0aa7a5;
	--ebs-teal-dark: #007e87;
	--ebs-text: #111111;
	--ebs-muted: #5f6668;
	--ebs-border: #d9dfdf;
	--ebs-section-x: 0px;
	--ebs-section-y: 0px;
	position: relative;
	width: 100%;
	max-width: 100%;
	background: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	color: var(--ebs-text);
	transform: translate(var(--ebs-section-x), var(--ebs-section-y));
	isolation: isolate;
	overflow: hidden;
}

.ebs-inner {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.ebs-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 12px;
}

.ebs-heading-wrap {
	--ebs-heading-x: 0px;
	--ebs-heading-y: 0px;
	min-width: 0;
	transform: translate(var(--ebs-heading-x), var(--ebs-heading-y));
}

.ebs-accent-heading,
.ebs-main-heading,
.ebs-intro,
.ebs-product-title,
.ebs-product-subtitle,
.ebs-price-row {
	margin-top: 0;
}

.ebs-accent-heading {
	margin: 0;
	color: #039b9d;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.ebs-main-heading {
	margin: 2px 0 0;
	padding: 0;
	color: #050505;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.ebs-intro {
	max-width: 680px;
	margin: 8px 0 0;
	color: var(--ebs-muted);
	font-size: 14px;
	line-height: 1.5;
}

.ebs-see-all {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 13px;
	color: var(--ebs-teal-dark);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: color 180ms ease, opacity 180ms ease;
}

.ebs-see-all:hover,
.ebs-see-all:focus-visible {
	text-decoration: none !important;
}

.ebs-see-all:focus-visible,
.ebs-card-button:focus-visible,
.ebs-nav-button:focus-visible,
.ebs-dot:focus-visible,
.ebs-viewport:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ebs-see-all-icon,
.ebs-see-all-icon svg,
.ebs-button-icon,
.ebs-button-icon svg,
.ebs-rating-icon,
.ebs-rating-icon svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	fill: currentColor;
}

.ebs-see-all-icon svg {
	width: 1em;
	height: 1em;
}

.ebs-viewport {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	touch-action: pan-y;
}

.ebs-mode-static .ebs-viewport {
	overflow: visible;
}

.ebs-track {
	min-width: 0;
	will-change: transform;
}

.ebs-mode-static .ebs-track {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.ebs-mode-slider .ebs-track,
.ebs-mode-auto_rotate .ebs-track,
.ebs-mode-marquee:not(.ebs-marquee-vertical) .ebs-track {
	display: flex;
	align-items: stretch;
	gap: 14px;
}

.ebs-mode-slider .ebs-track,
.ebs-mode-auto_rotate .ebs-track {
	transition-property: transform;
	transition-timing-function: ease;
}

.ebs-mode-marquee .ebs-track {
	transition: none !important;
}

.ebs-mode-marquee.ebs-marquee-vertical .ebs-track {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}

.ebs-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 216px;
	flex-direction: column;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--ebs-border);
	border-radius: 8px;
	box-shadow: none;
	overflow: hidden;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.ebs-mode-slider .ebs-card,
.ebs-mode-auto_rotate .ebs-card,
.ebs-mode-marquee .ebs-card {
	flex: 0 0 auto;
}

.ebs-card-hover-lift .ebs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(15, 55, 58, 0.10);
}

.ebs-card-hover-scale .ebs-card:hover {
	transform: scale(1.018);
}

.ebs-card-hover-glow .ebs-card:hover {
	box-shadow: 0 12px 30px rgba(5, 126, 135, 0.16);
	border-color: rgba(5, 126, 135, 0.28);
}

.ebs-media {
	position: relative;
	display: flex;
	height: 118px;
	align-items: center;
	justify-content: center;
	margin-bottom: 2px;
	isolation: isolate;
}

.ebs-media-inner {
	--ebs-image-x: 0px;
	--ebs-image-y: 0px;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(var(--ebs-image-x), var(--ebs-image-y));
}

.ebs-media-inner picture {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.ebs-product-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: center center;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform 260ms ease, opacity 220ms ease;
}

.ebs-image-hover-zoom .ebs-card:hover .ebs-product-image {
	transform: scale(1.07);
}

.ebs-image-hover-soft-zoom .ebs-card:hover .ebs-product-image {
	transform: scale(1.035);
}

.ebs-image-hover-fade .ebs-card:hover .ebs-product-image {
	opacity: .78;
}

.ebs-badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - 10px);
	padding: 3px 7px;
	background: #a8edea;
	border-radius: 8px;
	color: #053739;
	font-size: 8px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ebs-rating {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	padding: 3px 0 1px 6px;
	background: rgba(255,255,255,.91);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ebs-rating-icon,
.ebs-rating-icon svg {
	width: 12px;
	height: 12px;
	font-size: 12px;
}

.ebs-card-body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	text-align: left;
}

.ebs-product-title {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	color: #111;
}

.ebs-product-subtitle {
	margin: 0;
	color: #5a6060;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.25;
}

.ebs-price-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 6px 0 0;
	min-width: 0;
	white-space: nowrap;
}

.ebs-current-price {
	color: #007b83;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
}

.ebs-regular-price {
	color: #8d9090;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.15;
	text-decoration: line-through;
}

.ebs-card-button {
	display: inline-flex;
	width: 100%;
	min-height: 28px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 6px 8px;
	background: #10aaa7;
	border: 0;
	border-radius: 7px;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.ebs-card-button:hover {
	background: #078f8d;
	color: #fff;
	text-decoration: none !important;
}

.ebs-card-button:active {
	transform: translateY(1px);
}

.ebs-button-icon,
.ebs-button-icon svg {
	width: 13px;
	height: 13px;
	font-size: 13px;
}

.ebs-controls {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 14px;
}

.ebs-mode-slider.ebs-has-arrows .ebs-controls,
.ebs-mode-slider.ebs-has-dots .ebs-controls {
	display: flex;
}

.ebs-nav-button {
	display: none;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #fff;
	border: 1px solid var(--ebs-border);
	border-radius: 999px;
	color: #058f93;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.ebs-has-arrows .ebs-nav-button {
	display: inline-flex;
}

.ebs-nav-button[disabled] {
	opacity: .35;
	cursor: not-allowed;
}

.ebs-dots {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.ebs-has-dots .ebs-dots {
	display: flex;
}

.ebs-dot {
	width: 7px;
	height: 7px;
	padding: 0;
	background: #c8d1d1;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: width 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

.ebs-dot.is-active {
	width: 19px;
	background: #058f93;
}

/* Entry animation states. JS adds .is-visible. */
.ebs-anim-fade .ebs-card,
.ebs-anim-slide .ebs-card,
.ebs-anim-zoom .ebs-card,
.ebs-anim-scale .ebs-card {
	opacity: 0;
}

.ebs-anim-slide .ebs-card {
	transform: translateY(18px);
}

.ebs-anim-zoom .ebs-card {
	transform: scale(.92);
}

.ebs-anim-scale .ebs-card {
	transform: scale(.97);
}

.ebs-anim-fade .ebs-card.is-visible,
.ebs-anim-slide .ebs-card.is-visible,
.ebs-anim-zoom .ebs-card.is-visible,
.ebs-anim-scale .ebs-card.is-visible {
	opacity: 1;
	transform: none;
}


/* Preserve hover transforms after reveal animation has completed. */
.ebs-card-hover-lift .ebs-card.is-visible:hover {
	transform: translateY(-4px);
}
.ebs-card-hover-scale .ebs-card.is-visible:hover {
	transform: scale(1.018);
}

/* Clones should never replay reveal animations. */
.ebs-card[data-ebs-clone="1"] {
	opacity: 1 !important;
}

.ebs-mode-slider.is-dragging .ebs-track {
	transition: none !important;
	cursor: grabbing;
}

.ebs-mode-slider.is-dragging .ebs-card-button,
.ebs-mode-slider.is-dragging a {
	pointer-events: none;
}

.ebs-mode-slider.ebs-drag-enabled .ebs-viewport {
	cursor: grab;
}

.ebs-mode-auto_rotate .ebs-controls,
.ebs-mode-marquee .ebs-controls,
.ebs-mode-static .ebs-controls {
	display: none !important;
}

/* Responsive visibility */
@media (min-width: 1025px) {
	.ebs-section.ebs-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.ebs-section.ebs-hide-tablet { display: none !important; }
	.ebs-mode-static .ebs-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ebs-accent-heading,
	.ebs-main-heading { font-size: 22px; }
	.ebs-card { min-height: 225px; }
	.ebs-media { height: 122px; }
}

@media (max-width: 767px) {
	.ebs-section.ebs-hide-mobile { display: none !important; }

	.ebs-section {
		/* Mobile is intentionally composed differently from desktop. */
		padding-left: 14px;
		padding-right: 14px;
	}

	.ebs-header {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin-bottom: 14px;
	}

	.ebs-accent-heading,
	.ebs-main-heading {
		font-size: 21px;
		line-height: 1.05;
	}

	.ebs-main-heading {
		margin-top: 1px;
	}

	.ebs-intro {
		font-size: 13px;
	}

	.ebs-see-all {
		width: fit-content;
		margin-top: 2px;
		font-size: 12px;
	}

	.ebs-mode-static .ebs-track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ebs-card {
		min-height: 250px;
		padding: 8px;
		border-radius: 8px;
	}

	.ebs-media {
		height: 118px;
	}

	.ebs-product-title {
		font-size: 12px;
		line-height: 1.2;
	}

	.ebs-product-subtitle {
		font-size: 10px;
	}

	.ebs-current-price {
		font-size: 12px;
	}

	.ebs-regular-price {
		font-size: 9px;
	}

	.ebs-price-row {
		flex-wrap: wrap;
		gap: 4px 6px;
		margin-top: 4px;
	}

	.ebs-card-button {
		min-height: 33px;
		font-size: 10px;
		padding: 7px 8px;
	}

	.ebs-badge {
		font-size: 7px;
	}

	.ebs-rating {
		font-size: 10px;
	}

	.ebs-rating-icon,
	.ebs-rating-icon svg {
		width: 10px;
		height: 10px;
		font-size: 10px;
	}
}

@media (max-width: 420px) {
	.ebs-mode-static .ebs-track {
		grid-template-columns: minmax(0, 1fr);
	}

	.ebs-mode-static .ebs-card {
		min-height: 300px;
	}

	.ebs-mode-static .ebs-media {
		height: 175px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ebs-section *,
	.ebs-section *::before,
	.ebs-section *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.ebs-anim-fade .ebs-card,
	.ebs-anim-slide .ebs-card,
	.ebs-anim-zoom .ebs-card,
	.ebs-anim-scale .ebs-card {
		opacity: 1 !important;
		transform: none !important;
	}
}
