/* Best selling product slider. Visual tokens are CSS variables so Elementor can restyle every part. */

.elementor-widget-medadak-slider-best-sale-product,
.elementor-widget-medadak-slider-best-sale-product > .elementor-widget-container,
.e-con > .elementor-widget-medadak-slider-best-sale-product > .elementor-widget-container,
.e-con > .e-con-inner > .elementor-widget-medadak-slider-best-sale-product > .elementor-widget-container {
	overflow: visible;
	height: auto;
	min-height: 0;
	max-height: none;
}

.medadak-slider-best-sale-product {
	--layout-h: 451px;
	--layout-gap: 0px;
	--banner-w: 270px;
	--banner-radius: 30px;
	--banner-pad-top: 22px;
	--banner-bg: #3478f6;
	--banner-eyebrow: #ffffff;
	--banner-eyebrow-size: 30px;
	--banner-eyebrow-rotate: -15deg;
	--banner-title: #ffffff;
	--banner-title-from: rgba(255, 255, 255, 1);
	--banner-title-to: rgb(255 255 255 / 70%);
	--banner-title-angle: 90deg;
	--banner-title-size: 42px;
	--banner-title-rotate: -15deg;
	--banner-img-w: 290px;
	--banner-img-h: 367px;
	--notch-w: 22px;
	--notch-h: 100px;
	--notch-pos: 50%;
	--radius: 22px;
	--slide-pad: 30px;
	--item-width: 228px;
	--item-gap: 24px;
	--image-h: 310px;
	--image-fit: contain;
	--image-radius: 20px;
	--image-shadow-x: 0px;
	--image-shadow-y: 8px;
	--image-shadow-blur: 11px;
	--image-shadow-color: rgb(0 0 0 / 23%);
	--title-color: #22175c;
	--title-hover: #0060fe;
	--title-h: 50px;
	--price-color: #153a6e;
	--old-color: #9fafc6;
	--badge-bg: #e90544;
	--badge-color: #ffffff;
	--badge-radius: 12px;
	--countdown-bg: #e905440d;
	--countdown-color: #e90544;
	--timer-bg: #ee1844;
	--btn-bg: #0060fe;
	--btn-color: #ffffff;
	--btn-hover-bg: #004dcb;
	--btn-hover-color: #ffffff;
	--btn-radius: 12px;
	--btn-h: 40px;
	--btn-shadow: -4px -3px 10px -2px #0060fe;
	--sep-color: #3232320a;
	--sep-h: 350px;
	--sep-offset: 22px;
	--nav-color: #8a9a9a;
	--nav-hover: #3c7c7b;
	--nav-size: 18px;
	--bullet-size: 10px;
	--bullet-active-w: 32px;
	--bullet-gap: 8px;
	--bullet-bg: #d5dce8;
	--bullet-active: #0060fe;
	--empty-color: #707486;
	--border-gap: 5px;
	--stroke-offset: 4px;
	--stroke-x: calc(var(--border-gap) - var(--stroke-offset));
	--stroke-scale: 1.5;
	--notch-w-use: var(--notch-w);
	--notch-h-use: var(--notch-h);
	--notch-line: #153a6e;
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	container-type: inline-size;
	container-name: medadak-bestseller;
}

.medadak-slider-best-sale-product,
.medadak-slider-best-sale-product *,
.medadak-slider-best-sale-product *::before,
.medadak-slider-best-sale-product *::after {
	box-sizing: border-box;
}

.medadak_bestseller_slider {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--layout-gap);
	height: var(--layout-h);
	min-height: var(--layout-h);
}

.medadak-slider-best-sale-product[dir="ltr"] .medadak_bestseller_slider {
	flex-direction: row;
}

.medadak-slider-best-sale-product.is-banner-start[dir="rtl"] .medadak_bestseller_slider {
	flex-direction: row;
}

.medadak-slider-best-sale-product.is-banner-start[dir="ltr"] .medadak_bestseller_slider {
	flex-direction: row-reverse;
}

.medadak_bestseller_track {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
}

.medadak_bestseller_mask {
	--notch-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0C0,25 20,25 20,50C20,75 0,75 0,100Z'/%3E%3C/svg%3E");
	--notch-border: linear-gradient(transparent, var(--notch-line) 15%, var(--notch-line) 85%, transparent);
	--stroke-box-w: calc((var(--notch-w-use) + 1px) * var(--stroke-scale));
	--notch-stroke-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0C0,25 20,25 20,50C20,75 0,75 0,100' fill='none' stroke='black' stroke-width='5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
	position: relative;
	overflow: hidden;
	background: none;
	-webkit-mask:
		var(--notch-left) left -1px top var(--notch-pos) / calc(var(--notch-w-use) + 1px) var(--notch-h-use) no-repeat,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		var(--notch-left) left -1px top var(--notch-pos) / calc(var(--notch-w-use) + 1px) var(--notch-h-use) no-repeat,
		linear-gradient(#000 0 0);
	mask-composite: exclude;
}

.medadak-slider-best-sale-product.is-flat .medadak_bestseller_mask,
.medadak-slider-best-sale-product.is-notch-left-off .medadak_bestseller_mask {
	-webkit-mask: none;
	mask: none;
}

.medadak_bestseller_mask::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: var(--notch-border) left var(--stroke-x) top var(--notch-pos) / var(--stroke-box-w) var(--notch-h-use) no-repeat;
	-webkit-mask: var(--notch-stroke-left) left var(--stroke-x) top var(--notch-pos) / var(--stroke-box-w) var(--notch-h-use) no-repeat;
	mask: var(--notch-stroke-left) left var(--stroke-x) top var(--notch-pos) / var(--stroke-box-w) var(--notch-h-use) no-repeat;
}

.medadak-slider-best-sale-product.is-flat .medadak_bestseller_mask::before,
.medadak-slider-best-sale-product.is-notch-border-off .medadak_bestseller_mask::before,
.medadak-slider-best-sale-product.is-notch-left-off .medadak_bestseller_mask::before {
	display: none;
}

.medadak_bestseller_mask.swiper {
	padding: 0 var(--slide-pad) 0 calc(var(--notch-w-use) + var(--slide-pad));
	background: none;
	height: 100%;
}

.medadak-slider-best-sale-product.is-flat .medadak_bestseller_mask.swiper {
	padding: 0 var(--slide-pad);
}

.medadak_bestseller_slide,
.medadak_bestseller_mask .swiper-wrapper {
	display: flex;
	align-items: center;
	height: 100%;
	gap: 0;
}

.medadak-slider-best-sale-product .swiper-slide {
	height: auto;
	display: flex;
	align-items: center;
	position: relative;
}

.medadak-slider-best-sale-product.is-slides-auto .swiper-slide {
	width: var(--item-width) !important;
	flex: 0 0 var(--item-width) !important;
	max-width: none;
}

.medadak_bestseller_nav {
	position: absolute;
	top: var(--notch-pos);
	z-index: 5;
	width: var(--notch-w-use);
	height: var(--notch-h-use);
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: var(--nav-color);
	font-size: var(--nav-size);
	line-height: 0;
	cursor: pointer;
}

.medadak_bestseller_nav i,
.medadak_bestseller_nav svg {
	display: block;
	font-size: var(--nav-size);
	width: var(--nav-size);
	height: var(--nav-size);
	line-height: 1;
	fill: currentColor;
}

.medadak_bestseller_nav:hover,
.medadak_bestseller_nav:focus {
	color: var(--nav-hover);
}

.medadak_bestseller_nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.medadak_bestseller_nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.medadak_bestseller_nav_next {
	left: 0;
}

.medadak_bestseller_nav_prev {
	right: 0;
}

.medadak-slider-best-sale-product[dir="ltr"] .medadak_bestseller_nav_next {
	left: auto;
	right: 0;
}

.medadak-slider-best-sale-product[dir="ltr"] .medadak_bestseller_nav_prev {
	right: auto;
	left: 0;
}

.medadak-slider-best-sale-product.is-flat .medadak_bestseller_nav {
	width: auto;
	height: auto;
	padding: 8px;
}

.medadak_bestseller_banner {
	width: var(--banner-w);
	flex: 0 0 var(--banner-w);
	background: var(--banner-bg);
	border-radius: var(--banner-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: var(--banner-pad-top);
	position: relative;
	overflow: hidden;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.medadak_bestseller_banner p {
	margin: 0;
	font-size: var(--banner-eyebrow-size);
	color: var(--banner-eyebrow);
	transform: rotate(var(--banner-eyebrow-rotate));
	line-height: 1.2;
	position: relative;
	z-index: 2;
}

.medadak_bestseller_banner h2,
.medadak_bestseller_banner .medadak_bestseller_banner_title {
	margin: 0;
	font-size: var(--banner-title-size);
	font-weight: 900;
	color: var(--banner-title);
	transform: rotate(var(--banner-title-rotate));
	line-height: 1.2;
	position: relative;
	z-index: 2;
}

.medadak-slider-best-sale-product.is-title-gradient .medadak_bestseller_banner h2,
.medadak-slider-best-sale-product.is-title-gradient .medadak_bestseller_banner .medadak_bestseller_banner_title {
	background: linear-gradient(var(--banner-title-angle), var(--banner-title-from) 0%, var(--banner-title-to) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.medadak_bestseller_banner img,
.medadak_bestseller_banner .medadak_bestseller_banner_image {
	height: var(--banner-img-h);
	width: var(--banner-img-w);
	object-fit: contain;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	pointer-events: none;
}

.medadak_product-best-sale {
	display: flex;
	flex-direction: column;
	gap: var(--item-gap);
	width: 100%;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.medadak_media-best-sale {
	position: relative;
}

.medadak_media-best-sale.is-badge-only {
	min-height: 36px;
}

.medadak_discount-best-sale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: var(--badge-radius);
	background: var(--badge-bg);
	color: var(--badge-color);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.medadak_media-best-sale.is-badge-only .medadak_discount-best-sale {
	position: static;
}

.medadak-slider-best-sale-product[dir="ltr"] .medadak_discount-best-sale {
	left: auto;
	right: 12px;
}

.medadak-slider-best-sale-product[dir="ltr"] .medadak_media-best-sale.is-badge-only .medadak_discount-best-sale {
	right: auto;
}

.medadak_countdown-best-sale {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-width: 108px;
	min-height: 28px;
	margin-top: 12px;
	padding: 6px 8px;
	border-radius: 12px;
	background: var(--countdown-bg);
}

.medadak_countdown-best-sale .medadak_countdown-timer-icon {
	position: absolute;
	left: -6px;
	top: -8px;
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 50px;
	background: var(--timer-bg);
	object-fit: contain;
}

.medadak-slider-best-sale-product[dir="ltr"] .medadak_countdown-best-sale .medadak_countdown-timer-icon {
	left: auto;
	right: -6px;
}

.medadak_countdown-best-sale-time {
	color: var(--countdown-color);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	direction: ltr;
	unicode-bidi: isolate;
}

.medadak_product-best-sale img,
.medadak_product-best-sale .medadak_image-product {
	width: 100%;
	height: var(--image-h);
	object-fit: var(--image-fit);
	border-radius: var(--image-radius);
	box-shadow: none;
	display: block;
	transition: transform 0.25s ease;
	filter: drop-shadow(var(--image-shadow-x) var(--image-shadow-y) var(--image-shadow-blur) var(--image-shadow-color));
}

.medadak_product-best-sale:hover img,
.medadak_product-best-sale:hover .medadak_image-product {
	transform: translateY(-2px);
}

.medadak_product-best-sale > a:not(.medadak_add-to-cart-product-best-sale),
.medadak_product-best-sale .medadak_product-title-best-sale {
	text-decoration: none;
	font-size: 16px;
	color: var(--title-color);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 50px;
	line-height: 25px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	transition: color 0.2s ease;
}

.medadak_product-best-sale .medadak_product-title-best-sale a {
	display: inline;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
}

.medadak_product-best-sale > a:not(.medadak_add-to-cart-product-best-sale):hover,
.medadak_product-best-sale > a:not(.medadak_add-to-cart-product-best-sale):focus,
.medadak_product-best-sale .medadak_product-title-best-sale:hover,
.medadak_product-best-sale .medadak_product-title-best-sale a:hover,
.medadak_product-best-sale .medadak_product-title-best-sale a:focus {
	color: var(--title-hover);
}

.medadak_price-best-sale {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.medadak_price-best-sale .medadak_price-stack {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.medadak_price-best-sale ins {
	color: var(--price-color);
	font-size: 21px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1;
}

.medadak_price-best-sale del {
	color: var(--old-color);
	font-size: 13px;
	text-decoration: line-through;
}

a.medadak_add-to-cart-product-best-sale {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: var(--btn-h);
	background: var(--btn-bg);
	padding: 8px 14px 8px 14px;
	font-size: 12px;
	color: var(--btn-color);
	border-radius: var(--btn-radius);
	box-shadow: var(--btn-shadow);
	text-decoration: none;
	line-height: 1;
	flex-shrink: 0;
	position: relative;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a.medadak_add-to-cart-product-best-sale:hover,
a.medadak_add-to-cart-product-best-sale:focus {
	background: var(--btn-hover-bg);
	color: var(--btn-hover-color);
	text-decoration: none;
}

a.medadak_add-to-cart-product-best-sale i,
a.medadak_add-to-cart-product-best-sale svg {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 1;
	fill: currentColor;
}

a.medadak_add-to-cart-product-best-sale.loading {
	pointer-events: none;
	opacity: 1;
}

a.medadak_add-to-cart-product-best-sale.loading .medadak_add-to-cart-label,
a.medadak_add-to-cart-product-best-sale.loading i,
a.medadak_add-to-cart-product-best-sale.loading svg {
	visibility: hidden;
}

a.medadak_add-to-cart-product-best-sale.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: medadak-cart-btn-spin 0.6s linear infinite;
}

a.medadak_add-to-cart-product-best-sale.added {
	background: var(--btn-hover-bg);
}

@keyframes medadak-cart-btn-spin {
	to {
		transform: rotate(360deg);
	}
}

span.medadak_seprator-best-sale-product {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: calc(var(--sep-offset) * -1);
	border-inline-start: 1px solid var(--sep-color);
	height: var(--sep-h);
	pointer-events: none;
}

.medadak-slider-best-sale-product[dir="ltr"] span.medadak_seprator-best-sale-product {
	left: auto;
	right: calc(var(--sep-offset) * -1);
}

.medadak-slider-best-sale-product.is-sep-off span.medadak_seprator-best-sale-product {
	display: none;
}

.medadak-best-sale-pagination {
	display: none;
	justify-content: center;
	align-items: center;
	gap: var(--bullet-gap);
	margin-top: 16px;
	line-height: 0;
}

.medadak-slider-best-sale-product.is-pag-always .medadak-best-sale-pagination,
.medadak-slider-best-sale-product.is-pag-from-1024 .medadak-best-sale-pagination,
.medadak-slider-best-sale-product.is-pag-from-768 .medadak-best-sale-pagination {
	display: flex;
}

@media (max-width: 1023px) {
	.medadak-slider-best-sale-product.is-pag-from-1024 .medadak-best-sale-pagination {
		display: none;
	}
}

@media (max-width: 767px) {
	.medadak-slider-best-sale-product.is-pag-from-768 .medadak-best-sale-pagination {
		display: none;
	}
}

.medadak-best-sale-bullet {
	display: inline-block;
	width: var(--bullet-size);
	height: var(--bullet-size);
	border-radius: 50px;
	background: var(--bullet-bg);
	opacity: 1;
	transition: width 0.2s ease, background 0.2s ease;
}

.medadak-best-sale-bullet-active {
	width: var(--bullet-active-w);
	background: var(--bullet-active);
}

.medadak-slider-best-sale-empty {
	margin: 0;
	color: var(--empty-color);
	font-size: 15px;
}

@media (max-width: 430px) {
	.medadak_bestseller_mask {
		-webkit-mask: none;
		mask: none;
	}

	.medadak_bestseller_mask::before {
		display: none;
	}

	.medadak_bestseller_mask.swiper {
		padding: 0 var(--slide-pad);
	}

	.medadak_product-best-sale {
		position: relative;
	}

	.medadak_price-best-sale {
		flex-direction: column;
	}

	a.medadak_add-to-cart-product-best-sale {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		box-shadow: none;
		opacity: 0;
		transform: translateY(calc(100% + 12px));
		pointer-events: none;
		z-index: 2;
		transition: background 0.2s ease, color 0.2s ease, transform 0.28s ease, opacity 0.28s ease;
	}

	.medadak_product-best-sale:hover a.medadak_add-to-cart-product-best-sale,
	.medadak_product-best-sale:focus-within a.medadak_add-to-cart-product-best-sale,
	a.medadak_add-to-cart-product-best-sale.loading,
	a.medadak_add-to-cart-product-best-sale.added {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}

	a.medadak_add-to-cart-product-best-sale.loading {
		pointer-events: none;
	}

	.medadak_bestseller_slide, .medadak_bestseller_mask .swiper-wrapper {
		gap: 0px;
	}
}

@container medadak-bestseller (max-width: 425px) {
	.medadak_bestseller_mask {
		-webkit-mask: none;
		mask: none;
	}

	.medadak_bestseller_mask::before {
		display: none;
	}

	.medadak_bestseller_mask.swiper {
		padding: 0 var(--slide-pad);
	}
}

