/* Shopoint Hero Slider v1.6.0 */

.elementor-widget-shopoint_hero_slider,
.elementor-widget-shopoint_hero_slider > .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	margin: 0 !important;
}

.shopoint-hero-slider {
	position: relative !important;
	display: block !important;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: #111;
	box-sizing: border-box !important;
	isolation: isolate;
	touch-action: pan-y;
}

.shopoint-hero-slider.is-recommended-height {
	aspect-ratio: 1880 / 700;
	height: auto;
}

.shopoint-hero-viewport,
.shopoint-hero-track,
.shopoint-hero-slide,
.shopoint-hero-slide-link,
.shopoint-hero-slide picture {
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.shopoint-hero-viewport {
	position: relative !important;
	overflow: hidden !important;
}

.shopoint-hero-track {
	position: relative !important;
}

.shopoint-hero-slide {
	overflow: hidden !important;
}

.shopoint-hero-slide-link,
.shopoint-hero-slide picture {
	display: block !important;
}

.shopoint-hero-slide img {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover;
	object-position: center center;
	user-select: none;
	-webkit-user-drag: none;
}

/* Fade */
.shopoint-hero-slider.effect-fade .shopoint-hero-track {
	display: block !important;
}

.shopoint-hero-slider.effect-fade .shopoint-hero-slide {
	position: absolute !important;
	inset: 0 !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition-property: opacity, visibility;
	transition-timing-function: ease;
}

.shopoint-hero-slider.effect-fade .shopoint-hero-slide.is-active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	z-index: 1;
}

/* Slide */
.shopoint-hero-slider.effect-slide .shopoint-hero-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	will-change: transform;
}

.shopoint-hero-slider.effect-slide .shopoint-hero-slide {
	position: relative !important;
	flex: 0 0 100% !important;
	min-width: 100% !important;
}

/* Reset theme button rules */
.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-arrow,
.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-dot {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font: inherit !important;
	line-height: 1 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
}

/* Arrows */
.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-arrow {
	position: absolute !important;
	top: 50% !important;
	z-index: 50 !important;
	width: 46px !important;
	height: 46px !important;
	padding: 0 !important;
	border: 1px solid rgba(255,255,255,.28) !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #fff !important;
	background-color: rgba(0,0,0,.45) !important;
	transform: translateY(-50%) !important;
	cursor: pointer !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-arrow svg {
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2.2 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

.shopoint-hero-prev { left: 20px !important; }
.shopoint-hero-next { right: 20px !important; }

/* Dots */
.shopoint-hero-dots {
	position: absolute !important;
	left: 50% !important;
	bottom: 18px !important;
	z-index: 50 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	transform: translateX(-50%) !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-dot {
	display: block !important;
	position: relative !important;
	width: 9px !important;
	height: 9px !important;
	padding: 0 !important;
	border: 1px solid rgba(255,255,255,.85) !important;
	border-radius: 50% !important;
	background-color: rgba(255,255,255,.42) !important;
	cursor: pointer !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-dot.is-active {
	width: 10px !important;
	height: 10px !important;
	background-color: #fff !important;
	border-color: #fff !important;
}

.shopoint-hero-empty {
	width: 100% !important;
	min-height: 180px;
	padding: 32px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	border: 1px dashed #c7c7c7;
	background: #f7f7f7;
	color: #333;
}

/* Editor never breaks outside the canvas */
.elementor-editor-active .elementor-widget-shopoint_hero_slider,
.elementor-editor-active .elementor-widget-shopoint_hero_slider > .elementor-widget-container,
.elementor-editor-active .shopoint-hero-slider,
.elementor-editor-preview .elementor-widget-shopoint_hero_slider,
.elementor-editor-preview .shopoint-hero-slider {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

@media (max-width: 767px) {
	.shopoint-hero-slider.is-recommended-height {
		aspect-ratio: 1097 / 1496;
		height: auto;
	}

	.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-arrow {
		width: 38px !important;
		height: 38px !important;
	}

	.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-arrow svg {
		width: 18px !important;
		height: 18px !important;
	}

	.shopoint-hero-prev { left: 10px !important; }
	.shopoint-hero-next { right: 10px !important; }

	.shopoint-hero-dots {
		bottom: 12px !important;
		gap: 7px !important;
	}

	.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-dot {
		width: 8px !important;
		height: 8px !important;
	}

	.elementor-widget-shopoint_hero_slider .shopoint-hero-slider button.shopoint-hero-dot.is-active {
		width: 9px !important;
		height: 9px !important;
	}
}


/* v1.6.0 - robust desktop mouse drag / swipe */
@media (min-width: 768px) {
	.shopoint-hero-slider.has-desktop-swipe .shopoint-hero-viewport {
		cursor: grab !important;
		touch-action: pan-y;
		user-select: none;
		-webkit-user-select: none;
	}

	.shopoint-hero-slider.has-desktop-swipe.is-dragging .shopoint-hero-viewport {
		cursor: grabbing !important;
	}

	.shopoint-hero-slider.has-desktop-swipe.is-dragging,
	.shopoint-hero-slider.has-desktop-swipe.is-dragging * {
		user-select: none !important;
		-webkit-user-select: none !important;
	}
}


/* Prevent theme/link/image drag behavior from blocking desktop swipe. */
.shopoint-hero-slider.has-desktop-swipe .shopoint-hero-slide-link,
.shopoint-hero-slider.has-desktop-swipe .shopoint-hero-slide picture,
.shopoint-hero-slider.has-desktop-swipe .shopoint-hero-slide img {
	-webkit-user-drag: none !important;
	user-select: none !important;
	-webkit-user-select: none !important;
}


/* =========================================================
   v1.6.1 — MOBILE FULL IMAGE / NO-CROP FIX
   The mobile banner uses the real loaded image ratio.
   This removes top/bottom clipping without adding fake spacing.
========================================================= */
@media (max-width: 767px) {

	/*
	 * Override both Recommended and Custom heights when the new
	 * "Mobile Full Image / No Crop" option is ON.
	 * JS writes --shopoint-mobile-ratio from the actual mobile image.
	 */
	.shopoint-hero-slider.mobile-no-crop {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		aspect-ratio: var(--shopoint-mobile-ratio, 1097 / 1496) !important;
		overflow: hidden !important;
		background: transparent !important;
	}

	.shopoint-hero-slider.mobile-no-crop .shopoint-hero-viewport,
	.shopoint-hero-slider.mobile-no-crop .shopoint-hero-track,
	.shopoint-hero-slider.mobile-no-crop .shopoint-hero-slide,
	.shopoint-hero-slider.mobile-no-crop .shopoint-hero-slide-link,
	.shopoint-hero-slider.mobile-no-crop .shopoint-hero-slide picture {
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
		max-height: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Complete banner, never crop. */
	.shopoint-hero-slider.mobile-no-crop .shopoint-hero-slide img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		object-fit: contain !important;
		object-position: center top !important;
		aspect-ratio: auto !important;
	}

	/*
	 * No extra top gap is introduced by the widget itself.
	 * Useful against theme/Elementor inherited spacing.
	 */
	.elementor-widget-shopoint_hero_slider,
	.elementor-widget-shopoint_hero_slider > .elementor-widget-container {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}
}


/* =========================================================
   v1.6.2 — MOBILE EXTRA TOP GAP FIX
   Removes the blank strip between the WoodMart mobile header
   and this hero slider without cropping the banner image.
========================================================= */

@media (max-width: 767px) {

    /* Remove spacing added by Elementor/widget wrappers first */
    .elementor-widget-shopoint_hero_slider,
    .elementor-widget-shopoint_hero_slider > .elementor-widget-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /*
     * WoodMart/mobile page wrappers can still leave a blank strip above
     * the first Elementor widget. Pull only this hero upward by ~50px.
     * Negative bottom margin compensates the move, so the next section
     * does not gain an extra gap.
     */
    .elementor-widget-shopoint_hero_slider {
        position: relative !important;
        transform: translateY(-50px) !important;
        margin-bottom: -50px !important;
        z-index: 2 !important;
    }

    /* Keep the actual slider flush at the top */
    .elementor-widget-shopoint_hero_slider .shopoint-hero-slider,
    .elementor-widget-shopoint_hero_slider .shopoint-hero-viewport,
    .elementor-widget-shopoint_hero_slider .shopoint-hero-track,
    .elementor-widget-shopoint_hero_slider .shopoint-hero-slide {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /*
     * Preserve the existing v1.6.1 full-image/no-crop behavior.
     * The gap fix must never crop the top of the uploaded mobile banner.
     */
    .elementor-widget-shopoint_hero_slider .shopoint-hero-slider.mobile-no-crop {
        overflow: hidden !important;
    }

    .elementor-widget-shopoint_hero_slider .shopoint-hero-slider.mobile-no-crop .shopoint-hero-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center top !important;
    }
}

/* Slightly smaller pull on very narrow phones */
@media (max-width: 380px) {
    .elementor-widget-shopoint_hero_slider {
        transform: translateY(-46px) !important;
        margin-bottom: -46px !important;
    }
}


/* =========================================================
   v1.6.3 — MEASURED MOBILE HEADER GAP FIX
   The old fixed -50px transform is disabled.
   JS measures the real WoodMart header-to-slider gap and
   removes exactly that amount using negative margin.
========================================================= */
@media (max-width: 767px) {
	.elementor-widget-shopoint_hero_slider {
		transform: none !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
	}

	.elementor-widget-shopoint_hero_slider > .elementor-widget-container,
	.elementor-widget-shopoint_hero_slider .shopoint-hero-slider {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}


/* =========================================================
   v1.6.4 — AGGRESSIVE PARENT GAP FIX SUPPORT
   JS marks only parent wrappers that actually have positive
   top margin/padding. This fallback keeps those marked wrappers
   flush on mobile.
========================================================= */
@media (max-width:767px) {
	[data-shopoint-gap-parent="1"] {
		margin-top:0 !important;
		padding-top:0 !important;
	}
}
