/* ISDIN Carousel – Elementor widget (products / categories / circles / products_bg) */

/* Elementor flex containers size widgets to their content; a carousel must
   always take the full available width (overridable in Advanced → Width). */
.elementor-widget-isdin_promo_carousel {
	width: 100%;
	max-width: 100%;
}

.ipc {
	width: 100%;
	min-width: 0;
	--ipc-per-view: 4;
	--ipc-gap: 16px;
	--ipc-radius: 14px;
	--ipc-arrow-size: 40px;
	--ipc-arrow-color: #1a1a1a;
	--ipc-arrow-bg: #ffffff;
	--ipc-dot: rgba(0, 0, 0, 0.2);
	--ipc-dot-active: rgba(0, 0, 0, 0.7);
	--ipc-pill-bg: rgba(240, 240, 240, 0.85);
	position: relative;
}

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

/* ---------- Track ---------- */

.ipc__viewport {
	position: relative;
}

.ipc .ipc__track {
	position: relative;
	display: flex;
	gap: var(--ipc-gap);
	margin-block: -18px;
	margin-inline: 0;
	padding-block: 18px;
	padding-inline: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}

.ipc .ipc__track::-webkit-scrollbar {
	display: none;
}

/* While a mouse/pointer drag is in progress: direct 1:1 drag feel, no snap fighting back. */
.ipc .ipc__track.ipc--dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.ipc .ipc__track img,
.ipc .ipc__track a {
	-webkit-user-drag: none;
	user-drag: none;
}

.ipc .ipc__slide {
	flex: 0 0 calc((100% - (var(--ipc-per-view) - 1) * var(--ipc-gap)) / var(--ipc-per-view));
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: start;
}

/* ---------- Card (shared) ---------- */

.ipc .ipc-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--ipc-radius);
	color: inherit;
	text-decoration: none;
}

.ipc a.ipc-card:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: -3px;
}

/* ---------- Products layout ---------- */

.ipc .ipc-product {
	align-items: center;
	padding: 18px 8px 8px;
	background: linear-gradient(180deg, var(--ipc-bg-top, #f3e0d3) 0%, var(--ipc-bg-bottom, #8a5a44) 100%);
}

.ipc .ipc-product__title {
	margin: 0;
	padding: 0 6px;
	color: var(--ipc-title-color, #5a3527);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

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

.ipc .ipc-product__media img {
	position: absolute;
	inset: 10px 6px;
	width: calc(100% - 12px);
	height: calc(100% - 20px);
	max-width: none;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.ipc .ipc-product__btn {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border-radius: max(0px, calc(var(--ipc-radius) - 6px));
	background: var(--ipc-btn-bg, rgba(0, 0, 0, 0.35));
	color: var(--ipc-btn-color, #ffffff);
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	transition: filter 0.2s ease;
}

.ipc a.ipc-product:hover .ipc-product__media img {
	transform: scale(1.05);
}

.ipc a.ipc-product:hover .ipc-product__btn {
	filter: brightness(0.9);
}

/* ---------- Categories layout ---------- */

.ipc .ipc-cat {
	background: var(--ipc-cat-bg, #e9eef3);
}

.ipc .ipc-cat__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center bottom;
	transition: transform 0.4s ease;
}

.ipc .ipc-cat__title {
	position: absolute;
	right: 10px;
	bottom: 10px;
	left: 10px;
	z-index: 1;
	margin: 0;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--ipc-pill-bg);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--ipc-title-color, #4a90d9);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.25;
	text-align: center;
}

.ipc a.ipc-cat:hover .ipc-cat__img {
	transform: scale(1.04);
}

/* ---------- Circles layout ---------- */

/* The circle's hover scale grows outward in every direction; without this
   the track's overflow-y: hidden (needed to avoid stray vertical scrollbars)
   clips the top/bottom of the grown circle. */
.ipc.ipc--circles .ipc__track {
	padding-block: 40px;
	margin-block: -40px;
	padding-inline: 40px;
	margin-inline: -40px;
}

.ipc .ipc-circle {
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	aspect-ratio: auto;
	overflow: visible;
	border-radius: 0;
	background: transparent;
	text-align: center;
	backface-visibility: hidden;
	transition: transform 0.35s ease;
}

.ipc a.ipc-circle:hover,
.ipc a.ipc-circle:focus-visible {
	transform: scale(1.28) translateZ(0);
}

.ipc .ipc-circle__media {
	--ipc-circle-size: 150px;
	position: relative;
	flex: 0 0 auto;
	width: var(--ipc-circle-size);
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	isolation: isolate;
}

.ipc .ipc-circle__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Push the neighbouring circles apart a little instead of just growing on
   top of them. :has() support (Chrome/Edge/Safari/Firefox 121+) is assumed;
   browsers without it simply skip the push and keep the zoom. */
.ipc.ipc--circles .ipc__slide {
	transition: margin 0.35s ease;
}

.ipc.ipc--circles .ipc__slide:has(.ipc-circle:hover),
.ipc.ipc--circles .ipc__slide:has(.ipc-circle:focus-visible) {
	margin-right: 10px;
}

.ipc.ipc--circles .ipc__slide:has(+ .ipc__slide .ipc-circle:hover),
.ipc.ipc--circles .ipc__slide:has(+ .ipc__slide .ipc-circle:focus-visible) {
	margin-right: 10px;
}

.ipc .ipc-circle__title {
	display: block;
	margin: 0;
	color: var(--ipc-circle-title-color, #1a1a1a);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.ipc .ipc-circle__subtitle {
	display: block;
	color: var(--ipc-circle-subtitle-color, #767676);
	font-size: 13px;
	line-height: 1.3;
}

/* ---------- Products-with-background layout ---------- */

.ipc .ipc-productbg {
	aspect-ratio: 3 / 5;
	background: #e9eef3;
}

.ipc .ipc-productbg__img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ipc a.ipc-productbg:hover .ipc-productbg__img {
	transform: scale(1.04);
}

.ipc .ipc-productbg__panel {
	--ipc-pbg-blur: 20px;
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 20px 22px;
	background-color: rgba(0, 0, 0, 0.1);
	-webkit-backdrop-filter: blur(var(--ipc-pbg-blur));
	backdrop-filter: blur(var(--ipc-pbg-blur));
	text-align: center;
}

.ipc .ipc-productbg__eyebrow {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ipc .ipc-productbg__title {
	display: block;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	margin: 0;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ipc .ipc-productbg__desc {
	display: -webkit-box;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	line-height: 1.4;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ipc .ipc-productbg__btn {
	display: block;
	margin-top: 6px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Arrows ---------- */

.ipc .ipc__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ipc-arrow-size);
	height: var(--ipc-arrow-size);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ipc-arrow-bg);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	color: var(--ipc-arrow-color);
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.ipc .ipc__arrow:hover,
.ipc .ipc__arrow:focus {
	background: var(--ipc-arrow-bg);
	color: var(--ipc-arrow-color);
}

.ipc .ipc__arrow:focus-visible {
	outline: 2px solid var(--ipc-arrow-color);
	outline-offset: 2px;
}

.ipc .ipc__arrow svg {
	width: 45%;
	height: 45%;
}

.ipc .ipc__arrow--prev {
	left: 8px;
}

.ipc .ipc__arrow--next {
	right: 8px;
}

.ipc .ipc__arrow[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

/* ---------- Dots ---------- */

.ipc .ipc__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	margin-top: 14px;
}

.ipc .ipc__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.ipc .ipc__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--ipc-dot);
	transition: width 0.25s ease, background-color 0.25s ease;
}

.ipc .ipc__dot[aria-current="true"]::before {
	width: 22px;
	background: var(--ipc-dot-active);
}

.ipc .ipc__dot:focus-visible {
	outline: 2px solid var(--ipc-dot-active);
	outline-offset: 0;
	border-radius: 4px;
}

/* Fewer items than fit: no navigation needed. */
.ipc.ipc--static .ipc__arrow,
.ipc.ipc--static .ipc__dots {
	display: none !important;
}

/* Fewer items than slots: center them. */
.ipc.ipc--static .ipc__track {
	justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
	.ipc .ipc-product__media img,
	.ipc .ipc-cat__img,
	.ipc .ipc-circle,
	.ipc .ipc-productbg__img,
	.ipc .ipc-product__btn,
	.ipc .ipc__dot::before,
	.ipc.ipc--circles .ipc__slide {
		transition: none;
	}

	.ipc a.ipc-product:hover .ipc-product__media img,
	.ipc a.ipc-cat:hover .ipc-cat__img,
	.ipc a.ipc-productbg:hover .ipc-productbg__img,
	.ipc a.ipc-circle:hover,
	.ipc a.ipc-circle:focus-visible {
		transform: none;
	}

	.ipc.ipc--circles .ipc__slide:has(.ipc-circle:hover),
	.ipc.ipc--circles .ipc__slide:has(.ipc-circle:focus-visible),
	.ipc.ipc--circles .ipc__slide:has(+ .ipc__slide .ipc-circle:hover),
	.ipc.ipc--circles .ipc__slide:has(+ .ipc__slide .ipc-circle:focus-visible) {
		margin-right: 0;
	}
}
