/**
 * Starline Shop theme-native Home Hero
 *
 * Left: WooCommerce category menu
 * Right: lightweight banner slider (no Elementor/Swiper dependency)
 */


/*
 * Migration safety: when an Elementor Full Width template still outputs the
 * old widget markup, keep that legacy widget hidden. The native Hero is
 * rendered separately and other Elementor content remains untouched.
 */
body.home .elementor-widget-starline-home-hero {
	display: none !important;
}

/*
 * Outer shell.
 *
 * The Customizer "Section Margin" controls are intentionally applied here as
 * transparent OUTER spacing instead of CSS margin on the first section child.
 * This prevents top-margin collapsing with <main> / Elementor wrappers and
 * guarantees a visible Header -> Hero gap when Margin Top is 5px, 10px, etc.
 */
.starline-home-hero-shell {
	position: relative;
	z-index: 30;
	display: block;
	clear: both;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	padding:
		var(--starline-hero-margin-top, 0)
		var(--starline-hero-margin-right, 0)
		var(--starline-hero-margin-bottom, 0)
		var(--starline-hero-margin-left, 0) !important;
	background: transparent;
}

.starline-home-hero {
	position: relative;
	z-index: 10;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 !important;
	padding:
		var(--starline-hero-padding-top, 0)
		var(--starline-hero-padding-right, 0)
		var(--starline-hero-padding-bottom, 0)
		var(--starline-hero-padding-left, 0) !important;
	background: var(--starline-hero-section-bg, #eeeeee);
	overflow: visible;
}

.starline-home-hero *,
.starline-home-hero *::before,
.starline-home-hero *::after {
	box-sizing: border-box;
}

.starline-home-hero a {
	text-decoration: none;
}

/* Keep the theme font family on Hero buttons without using the `font`
 * shorthand. The shorthand has higher specificity than component classes and
 * prevents Customizer font-size/font-weight values (including See All / See
 * Less) from taking effect. */
.starline-home-hero button {
	font-family: inherit;
}

/* =========================================================
   Main grid
========================================================= */

.starline-home-hero__container {
	width: min(100%, var(--starline-hero-container-width, 1280px));
	margin: 0 auto;
}

.starline-home-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns:
		var(--starline-hero-category-width, 25%)
		minmax(0, 1fr);
	align-items: stretch;
	column-gap: var(--starline-hero-gap, 12px) !important;
	row-gap: var(--starline-hero-gap, 12px) !important;
	width: 100%;
	overflow: visible;
}

.starline-home-hero__grid.has-no-categories {
	grid-template-columns: minmax(0, 1fr) !important;
	column-gap: 0 !important;
	row-gap: 0 !important;
}

/* When categories are disabled, the banner must occupy the complete Hero row. */
.starline-home-hero__grid.has-no-categories > .starline-home-hero__slider {
	grid-column: 1 / -1;
	width: 100%;
	max-width: none;
}

/* =========================================================
   Category panel
========================================================= */

.starline-home-hero__category-panel {
	position: relative;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--starline-hero-height, 400px);
	margin: 0;
	padding: 0;
	border-width: var(--starline-hero-category-border-width, 1px);
	border-style: var(--starline-hero-category-border-style, solid);
	border-color: var(--starline-hero-category-border, #214c96);
	border-radius: var(--starline-hero-category-border-radius, var(--starline-hero-radius, 4px));
	background: var(--starline-hero-category-bg, #ffffff);
	box-shadow: none;
	overflow: visible;
}

.starline-home-hero__category-heading {
	display: flex;
	align-items: center;
	min-height: var(--starline-hero-heading-height, 42px);
	margin: 0;
	padding:
		var(--starline-hero-heading-pad-top, 9px)
		var(--starline-hero-heading-pad-right, 12px)
		var(--starline-hero-heading-pad-bottom, 9px)
		var(--starline-hero-heading-pad-left, 12px);
	border-bottom-width: var(--starline-hero-category-separator-width, 1px);
	border-bottom-style: var(--starline-hero-category-separator-style, solid);
	border-bottom-color: var(--starline-hero-category-separator, #e8edf5);
	background: var(--starline-hero-heading-bg, #214c96);
	color: var(--starline-hero-heading-color, #ffffff);
	font-family: var(--starline-hero-heading-family, inherit);
	font-style: var(--starline-hero-heading-style, normal);
	letter-spacing: var(--starline-hero-heading-letter-spacing, 0px);
	font-size: var(--starline-hero-heading-size, 14px);
	font-weight: var(--starline-hero-heading-weight, 700);
	line-height: 1.2;
}

.starline-home-hero__category-body {
	position: relative;
	z-index: 101;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	overflow: visible;
}

.starline-home-hero__category-list,
.starline-home-hero__subcategory-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* See All / See Less categories row. */
.starline-home-hero__category-panel.has-category-toggle.is-category-collapsed .starline-home-hero__category-item.is-extra-category {
	display: none;
}

.starline-home-hero .starline-home-hero__category-list-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	height: var(--starline-hero-category-toggle-height, 38px);
	min-height: var(--starline-hero-category-toggle-height, 38px);
	margin: auto 0 0;
	padding: 0 12px;
	border: 0;
	border-top-width: var(--starline-hero-category-separator-width, 1px);
	border-top-style: var(--starline-hero-category-separator-style, solid);
	border-top-color: var(--starline-hero-category-separator, #f0f1f4);
	border-radius: 0;
	background: var(--starline-hero-category-toggle-bg, #ffffff);
	color: var(--starline-hero-category-toggle-color, #6b7280);
	font-family: var(--starline-hero-category-family, inherit);
	font-style: var(--starline-hero-category-style, normal);
	letter-spacing: var(--starline-hero-category-letter-spacing, 0px);
	font-size: var(--starline-hero-category-toggle-size, 12px);
	font-weight: var(--starline-hero-category-toggle-weight, 500);
	line-height: 1;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.starline-home-hero .starline-home-hero__category-list-toggle > span {
	font-family: inherit;
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
}

.starline-home-hero__category-panel.is-category-expanded .starline-home-hero__category-list-toggle {
	margin-top: 0;
}

.starline-home-hero__category-list-toggle:hover,
.starline-home-hero__category-list-toggle:focus {
	background: var(--starline-hero-category-toggle-bg, #ffffff);
	color: var(--starline-hero-category-toggle-hover, #214c96);
	outline: none;
}

.starline-home-hero__category-list-toggle svg {
	flex: 0 0 var(--starline-hero-category-toggle-arrow-size, 14px);
	width: var(--starline-hero-category-toggle-arrow-size, 14px);
	height: var(--starline-hero-category-toggle-arrow-size, 14px);
	transition: transform 0.2s ease;
}

.starline-home-hero__category-panel.is-category-expanded .starline-home-hero__category-list-toggle svg {
	transform: rotate(180deg);
}

/*
 * Desktop/tablet expansion is an overlay: the Hero/slider height never grows,
 * so additional categories open downward over the next homepage section.
 */
.starline-home-hero__category-panel.has-category-toggle.is-category-expanded {
	z-index: 10000;
	height: var(--starline-hero-height, 400px);
	min-height: var(--starline-hero-height, 400px);
}

.starline-home-hero__category-list-toggle.has-no-extra-categories {
	cursor: pointer;
}

@media (min-width: 768px) {
	.starline-home-hero__category-panel.is-category-expanded .starline-home-hero__category-item.is-extra-category > .starline-home-hero__category-row {
		width: calc(100% + var(--starline-hero-category-border-width, 1px) + var(--starline-hero-category-border-width, 1px));
		margin-right: calc(0px - var(--starline-hero-category-border-width, 1px));
		margin-left: calc(0px - var(--starline-hero-category-border-width, 1px));
		border-right-width: var(--starline-hero-category-border-width, 1px);
		border-right-style: var(--starline-hero-category-border-style, solid);
		border-right-color: var(--starline-hero-category-border, #214c96);
		border-left-width: var(--starline-hero-category-border-width, 1px);
		border-left-style: var(--starline-hero-category-border-style, solid);
		border-left-color: var(--starline-hero-category-border, #214c96);
	}

	.starline-home-hero__category-panel.is-category-expanded .starline-home-hero__category-list-toggle {
		width: calc(100% + var(--starline-hero-category-border-width, 1px) + var(--starline-hero-category-border-width, 1px));
		margin-right: calc(0px - var(--starline-hero-category-border-width, 1px));
		margin-left: calc(0px - var(--starline-hero-category-border-width, 1px));
		border-right-width: var(--starline-hero-category-border-width, 1px);
		border-right-style: var(--starline-hero-category-border-style, solid);
		border-right-color: var(--starline-hero-category-border, #214c96);
		border-bottom-width: var(--starline-hero-category-border-width, 1px);
		border-bottom-style: var(--starline-hero-category-border-style, solid);
		border-bottom-color: var(--starline-hero-category-border, #214c96);
		border-left-width: var(--starline-hero-category-border-width, 1px);
		border-left-style: var(--starline-hero-category-border-style, solid);
		border-left-color: var(--starline-hero-category-border, #214c96);
		box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
	}
}

/* Mobile category toggle. */
.starline-home-hero__mobile-category-toggle {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: var(--starline-hero-heading-height, 42px);
	margin: 0;
	padding:
		var(--starline-hero-heading-pad-top, 9px)
		var(--starline-hero-heading-pad-right, 12px)
		var(--starline-hero-heading-pad-bottom, 9px)
		var(--starline-hero-heading-pad-left, 12px);
	border: 0;
	border-radius: var(--starline-hero-radius, 4px);
	background: var(--starline-hero-heading-bg, #214c96);
	color: var(--starline-hero-heading-color, #ffffff);
	font-family: var(--starline-hero-heading-family, inherit);
	font-style: var(--starline-hero-heading-style, normal);
	letter-spacing: var(--starline-hero-heading-letter-spacing, 0px);
	font-size: var(--starline-hero-heading-size, 14px);
	font-weight: var(--starline-hero-heading-weight, 700);
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

.starline-home-hero__mobile-category-toggle svg {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	transition: transform 0.25s ease;
}

.starline-home-hero__category-panel.is-open
.starline-home-hero__mobile-category-toggle svg {
	transform: rotate(180deg);
}

/* =========================================================
   Parent category rows
========================================================= */

.starline-home-hero__category-item {
	position: relative;
	z-index: 1;
	width: 100%;
	margin: 0;
	padding: 0;
}

.starline-home-hero__category-item:hover,
.starline-home-hero__category-item:focus-within {
	z-index: 1000;
}

.starline-home-hero__category-row {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: var(--starline-hero-category-item-height, 30px);
	min-height: var(--starline-hero-category-item-height, 30px);
	max-height: var(--starline-hero-category-item-height, 30px);
	margin: 0;
	padding: 0;
	border-bottom-width: var(--starline-hero-category-separator-width, 1px);
	border-bottom-style: var(--starline-hero-category-separator-style, solid);
	border-bottom-color: var(--starline-hero-category-separator, #f0f1f4);
	background: var(--starline-hero-category-bg, #ffffff);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.starline-home-hero__category-item:last-child .starline-home-hero__category-row {
	border-bottom: 0;
}

.starline-home-hero__category-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
	height: var(--starline-hero-category-item-height, 30px);
	min-height: var(--starline-hero-category-item-height, 30px);
	padding:
		var(--starline-hero-category-pad-top, 3px)
		var(--starline-hero-category-pad-right, 4px)
		var(--starline-hero-category-pad-bottom, 3px)
		var(--starline-hero-category-pad-left, 12px);
	color: var(--starline-hero-category-color, #111111);
	font-family: var(--starline-hero-category-family, inherit);
	font-style: var(--starline-hero-category-style, normal);
	letter-spacing: var(--starline-hero-category-letter-spacing, 0px);
	font-size: var(--starline-hero-category-size, 13px);
	font-weight: var(--starline-hero-category-weight, 600);
	line-height: 1.15;
	text-decoration: none;
	transition: color 0.18s ease;
}

.starline-home-hero__category-link > span {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.starline-home-hero__category-link small {
	flex: 0 0 auto;
	color: var(--starline-hero-count-color, #8a94a6);
	font-size: 11px;
	font-weight: 500;
}

.starline-home-hero__submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--starline-hero-category-item-height, 30px);
	width: var(--starline-hero-category-item-height, 30px);
	height: var(--starline-hero-category-item-height, 30px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--starline-hero-category-arrow-color, var(--starline-hero-category-color, #111111));
	cursor: pointer;
	transition: color 0.18s ease, transform 0.18s ease;
}

/* Keep the category arrow visible on rows without subcategories for visual alignment.
 * Placeholder arrows are decorative only and do not open anything. */
.starline-home-hero__submenu-toggle.is-placeholder,
.starline-home-hero__submenu-toggle.is-placeholder:disabled {
	opacity: 1;
	cursor: default;
	pointer-events: none;
}

.starline-home-hero__submenu-toggle.is-placeholder svg {
	transform: none !important;
}

.starline-home-hero__submenu-toggle svg {
	width: var(--starline-hero-category-arrow-size, 14px);
	height: var(--starline-hero-category-arrow-size, 14px);
	transition: transform 0.18s ease;
}

.starline-home-hero__category-item:hover > .starline-home-hero__category-row,
.starline-home-hero__category-item:focus-within > .starline-home-hero__category-row,
.starline-home-hero__category-item.is-submenu-open > .starline-home-hero__category-row {
	background: var(--starline-hero-category-hover-bg, #dffbf7);
}

.starline-home-hero__category-item:hover > .starline-home-hero__category-row .starline-home-hero__category-link,
.starline-home-hero__category-item:focus-within > .starline-home-hero__category-row .starline-home-hero__category-link,
.starline-home-hero__category-item.is-submenu-open > .starline-home-hero__category-row .starline-home-hero__category-link,
.starline-home-hero__category-item:hover > .starline-home-hero__category-row .starline-home-hero__submenu-toggle,
.starline-home-hero__category-item:focus-within > .starline-home-hero__category-row .starline-home-hero__submenu-toggle,
.starline-home-hero__category-item.is-submenu-open > .starline-home-hero__category-row .starline-home-hero__submenu-toggle {
	color: var(--starline-hero-category-hover, #ff0000);
}

.starline-home-hero__category-item:hover > .starline-home-hero__category-row .starline-home-hero__submenu-toggle svg,
.starline-home-hero__category-item:focus-within > .starline-home-hero__category-row .starline-home-hero__submenu-toggle svg {
	transform: translateX(2px);
}

/* =========================================================
   Desktop subcategory panel
========================================================= */

@media (min-width: 768px) {
	.starline-home-hero__subcategory-list {
		position: absolute;
		top: 0;
		left: 100%;
		z-index: 99999;
		display: grid;
		grid-template-columns: repeat(var(--starline-hero-sub-columns, 1), minmax(0, 1fr));
		width: var(--starline-hero-sub-width, 285px);
		max-height: var(--starline-hero-sub-max-height, 400px);
		margin: 0;
		padding: 0;
		border: 1px solid var(--starline-hero-sub-border, #dcdfe5);
		border-left: 0;
		border-radius: 0 3px 3px 0;
		background: var(--starline-hero-sub-bg, #ffffff);
		box-shadow: 5px 7px 18px rgba(15, 23, 42, 0.12);
		overflow-x: hidden;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(-4px);
		transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
	}

	.starline-home-hero__category-item:hover > .starline-home-hero__subcategory-list,
	.starline-home-hero__category-item:focus-within > .starline-home-hero__subcategory-list,
	.starline-home-hero__category-item.is-submenu-open > .starline-home-hero__subcategory-list {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
	}

	.starline-home-hero__subcategory-list li {
		position: relative;
		display: block;
		min-width: 0;
		margin: 0;
		padding: 0;
	}

	.starline-home-hero__subcategory-list li + li {
		border-top: 1px solid var(--starline-hero-sub-border, #dcdfe5);
	}

	.starline-home-hero__subcategory-list a {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		min-height: var(--starline-hero-sub-item-height, 32px);
		padding:
			var(--starline-hero-sub-pad-top, 6px)
			var(--starline-hero-sub-pad-right, 30px)
			var(--starline-hero-sub-pad-bottom, 6px)
			var(--starline-hero-sub-pad-left, 12px);
		background: var(--starline-hero-sub-bg, #ffffff);
		color: var(--starline-hero-sub-color, #111111);
		font-family: var(--starline-hero-sub-family, inherit);
		font-style: var(--starline-hero-sub-style, normal);
		letter-spacing: var(--starline-hero-sub-letter-spacing, 0px);
		font-size: var(--starline-hero-sub-size, 12.5px);
		font-weight: var(--starline-hero-sub-weight, 600);
		line-height: 1.2;
		text-decoration: none;
		transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
	}

	.starline-home-hero__subcategory-list a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 12px;
		width: 8px;
		height: 8px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
		transform: translateY(-50%) rotate(45deg);
	}

	.starline-home-hero__subcategory-list a:hover,
	.starline-home-hero__subcategory-list a:focus {
		background: var(--starline-hero-sub-hover-bg, #dffbf7);
		color: var(--starline-hero-sub-hover, #ff0000);
		outline: none;
	}

	.starline-home-hero__subcategory-list small {
		flex: 0 0 auto;
		color: var(--starline-hero-sub-count-color, #8993a3);
		font-size: 11px;
		font-weight: 500;
	}

	.starline-home-hero__subcategory-list {
		scrollbar-width: thin;
		scrollbar-color: #bcc6d5 #f2f4f7;
	}

	.starline-home-hero__subcategory-list::-webkit-scrollbar {
		width: 5px;
	}

	.starline-home-hero__subcategory-list::-webkit-scrollbar-track {
		background: #f2f4f7;
	}

	.starline-home-hero__subcategory-list::-webkit-scrollbar-thumb {
		border-radius: 20px;
		background: #bcc6d5;
	}
}

.starline-home-hero__empty {
	margin: 0;
	padding: 18px 15px;
	color: var(--starline-hero-category-color, #687386);
	font-size: var(--starline-hero-category-size, 14px);
	line-height: 1.5;
	text-align: center;
}

/* =========================================================
   Slider
========================================================= */

.starline-home-hero__slider {
	position: relative;
	z-index: 1;
	width: 100%;
	height: var(--starline-hero-height, 400px);
	min-width: 0;
	min-height: 160px;
	margin: 0;
	padding: 0;
	border-radius: var(--starline-hero-radius, 4px);
	background: var(--starline-hero-slider-bg, #dedede);
	overflow: hidden;
	touch-action: pan-y;
}

.starline-home-hero__slider.movement-up_to_down,
.starline-home-hero__slider.movement-down_to_up {
	touch-action: pan-x;
}

.starline-home-hero__slider.movement-right_to_left,
.starline-home-hero__slider.movement-left_to_right {
	touch-action: pan-y;
}

.starline-home-hero__slides {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.starline-home-hero__slide {
	position: absolute;
	inset: 0;
	display: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: var(--starline-hero-slider-bg, #dedede);
	overflow: hidden;
	will-change: transform, opacity;
}

.starline-home-hero__slide.is-active,
.starline-home-hero__slide.is-transitioning {
	display: block;
}

.starline-home-hero__slide-link,
.starline-home-hero__slider picture {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.starline-home-hero__slide-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	object-fit: var(--starline-hero-image-fit, contain) !important;
	object-position: center center !important;
	opacity: 1;
	visibility: visible;
}

.starline-home-hero__empty-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 24px;
	background: linear-gradient(135deg, #eef2f7, #dce5f2);
	color: #526173;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

/* Slider arrows. */
.starline-home-hero__arrow {
	position: absolute;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--starline-hero-arrow-size, 42px);
	height: var(--starline-hero-arrow-size, 42px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--starline-hero-arrow-bg, rgba(0, 0, 0, 0.28));
	color: var(--starline-hero-arrow-color, #ffffff);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.starline-home-hero__slider.arrow-shape-round .starline-home-hero__arrow { border-radius: 999px; }
.starline-home-hero__slider.arrow-shape-square .starline-home-hero__arrow { border-radius: 0; }
.starline-home-hero__slider.arrow-shape-landscape .starline-home-hero__arrow {
	width: calc(var(--starline-hero-arrow-size, 42px) * 1.45);
	border-radius: 10px;
}
.starline-home-hero__slider.arrow-shape-banner-tab .starline-home-hero__arrow { width:38px;height:42px;border:0;border-radius:0;box-shadow:none; }
.starline-home-hero__slider[class*="arrow-position-top-"] .starline-home-hero__arrow { top:8px!important;bottom:auto!important;transform:none!important; }
.starline-home-hero__slider[class*="arrow-position-bottom-"] .starline-home-hero__arrow { top:auto!important;bottom:8px!important;transform:none!important; }
.starline-home-hero__slider.arrow-position-top-left .starline-home-hero__arrow-prev,.starline-home-hero__slider.arrow-position-bottom-left .starline-home-hero__arrow-prev{left:8px!important;right:auto!important}
.starline-home-hero__slider.arrow-position-top-left .starline-home-hero__arrow-next,.starline-home-hero__slider.arrow-position-bottom-left .starline-home-hero__arrow-next{left:56px!important;right:auto!important}
.starline-home-hero__slider.arrow-position-top-right .starline-home-hero__arrow-prev,.starline-home-hero__slider.arrow-position-bottom-right .starline-home-hero__arrow-prev{left:auto!important;right:56px!important}
.starline-home-hero__slider.arrow-position-top-right .starline-home-hero__arrow-next,.starline-home-hero__slider.arrow-position-bottom-right .starline-home-hero__arrow-next{left:auto!important;right:8px!important}
.starline-home-hero__slider.arrow-position-top-center .starline-home-hero__arrow-prev,.starline-home-hero__slider.arrow-position-bottom-center .starline-home-hero__arrow-prev{left:calc(50% - 48px)!important;right:auto!important}
.starline-home-hero__slider.arrow-position-top-center .starline-home-hero__arrow-next,.starline-home-hero__slider.arrow-position-bottom-center .starline-home-hero__arrow-next{left:calc(50% + 8px)!important;right:auto!important}
.starline-home-hero__slider.arrow-position-outside { overflow: visible; }
.starline-home-hero__slider.arrow-position-outside .starline-home-hero__arrow-prev { left: calc(var(--starline-hero-arrow-size, 42px) * -.55); }
.starline-home-hero__slider.arrow-position-outside .starline-home-hero__arrow-next { right: calc(var(--starline-hero-arrow-size, 42px) * -.55); }

.starline-home-hero__slider:hover .starline-home-hero__arrow,
.starline-home-hero__slider:focus-within .starline-home-hero__arrow {
	opacity: 1;
	visibility: visible;
}

.starline-home-hero__arrow:hover,
.starline-home-hero__arrow:focus {
	filter: brightness(0.82);
	outline: none;
}

.starline-home-hero__arrow svg {
	width: 66%;
	height: 66%;
	pointer-events: none;
}

.starline-home-hero__arrow:disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

/* Horizontal arrows. */
.starline-home-hero__slider.movement-right_to_left .starline-home-hero__arrow-prev,
.starline-home-hero__slider.movement-left_to_right .starline-home-hero__arrow-prev {
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
}

.starline-home-hero__slider.movement-right_to_left .starline-home-hero__arrow-next,
.starline-home-hero__slider.movement-left_to_right .starline-home-hero__arrow-next {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
}

/* Vertical arrows. */
.starline-home-hero__slider.movement-up_to_down .starline-home-hero__arrow-prev,
.starline-home-hero__slider.movement-down_to_up .starline-home-hero__arrow-prev {
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
}

.starline-home-hero__slider.movement-up_to_down .starline-home-hero__arrow-next,
.starline-home-hero__slider.movement-down_to_up .starline-home-hero__arrow-next {
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
}

.starline-home-hero__slider.movement-up_to_down .starline-home-hero__arrow svg,
.starline-home-hero__slider.movement-down_to_up .starline-home-hero__arrow svg {
	transform: rotate(90deg);
}

/* Pagination. */
.starline-home-hero__pagination {
	position: absolute;
	right: 0;
	bottom: 13px;
	left: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	padding: 0 12px;
	text-align: center;
	pointer-events: none;
}

.starline-home-hero__pagination .swiper-pagination-bullet {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	background: var(--starline-hero-dot-color, #ffffff);
	opacity: 0.72;
	cursor: pointer;
	pointer-events: auto;
	transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.starline-home-hero__pagination .swiper-pagination-bullet-active {
	width: 24px;
	border-radius: 20px;
	background: var(--starline-hero-dot-active, #ffffff);
	opacity: 1;
}

.starline-home-hero__slider.movement-up_to_down .starline-home-hero__pagination,
.starline-home-hero__slider.movement-down_to_up .starline-home-hero__pagination {
	top: 50%;
	right: 14px;
	bottom: auto;
	left: auto;
	flex-direction: column;
	width: auto;
	padding: 0;
	transform: translateY(-50%);
}

.starline-home-hero__slider.movement-up_to_down .starline-home-hero__pagination .swiper-pagination-bullet-active,
.starline-home-hero__slider.movement-down_to_up .starline-home-hero__pagination .swiper-pagination-bullet-active {
	width: 9px;
	height: 24px;
}

/* =========================================================
   Tablet
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

	/*
	 * Tablet intentionally mirrors Laptop/Desktop.
	 * Same two-column layout, same spacing, same typography, same height,
	 * and the same Desktop/Tablet banner image. Only the viewport width shrinks.
	 */
	.starline-home-hero-shell {
		max-width: 100%;
		overflow-x: clip;
		padding:
			var(--starline-hero-margin-top, 0)
			var(--starline-hero-margin-right, 0)
			var(--starline-hero-margin-bottom, 0)
			var(--starline-hero-margin-left, 0) !important;
	}

	.starline-home-hero {
		max-width: 100%;
		padding:
			var(--starline-hero-padding-top, 0)
			var(--starline-hero-padding-right, 0)
			var(--starline-hero-padding-bottom, 0)
			var(--starline-hero-padding-left, 0) !important;
	}

	.starline-home-hero__container,
	.starline-home-hero__grid,
	.starline-home-hero__slider {
		min-width: 0;
		max-width: 100%;
	}

	.starline-home-hero__grid {
		grid-template-columns:
			var(--starline-hero-category-width, 25%)
			minmax(0, 1fr);
		column-gap: var(--starline-hero-gap, 12px) !important;
		row-gap: var(--starline-hero-gap, 12px) !important;
	}

	.starline-home-hero__grid.has-no-categories {
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: 0 !important;
		row-gap: 0 !important;
	}

	.starline-home-hero__grid.has-no-categories > .starline-home-hero__slider {
		grid-column: 1 / -1;
		width: 100%;
	}

	.starline-home-hero__category-panel,
	.starline-home-hero__slider {
		height: var(--starline-hero-height, 400px);
		min-height: 0;
	}

	.starline-home-hero__category-panel.has-category-toggle.is-category-expanded {
		height: var(--starline-hero-height, 400px);
		min-height: var(--starline-hero-height, 400px);
	}
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {

	.starline-home-hero-shell {
		padding:
			var(--starline-hero-margin-top-mobile, 0)
			var(--starline-hero-margin-right-mobile, 0)
			var(--starline-hero-margin-bottom-mobile, 0)
			var(--starline-hero-margin-left-mobile, 0) !important;
	}

	.starline-home-hero {
		padding:
			var(--starline-hero-padding-top-mobile, 0)
			var(--starline-hero-padding-right-mobile, 0)
			var(--starline-hero-padding-bottom-mobile, 0)
			var(--starline-hero-padding-left-mobile, 0) !important;
	}
	.starline-home-hero {
		overflow: hidden;
	}

	.starline-home-hero__container {
		width: 100%;
		max-width: 100%;
	}

	.starline-home-hero__grid,
	.starline-home-hero__grid.has-no-categories {
		display: grid;
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: var(--starline-hero-gap-mobile, 10px) !important;
		row-gap: var(--starline-hero-gap-mobile, 10px) !important;
		overflow: hidden;
	}

	.starline-home-hero.hide-categories-mobile .starline-home-hero__category-panel {
		display: none !important;
	}

	.starline-home-hero.hide-categories-mobile .starline-home-hero__grid {
		gap: 0;
	}

	.starline-home-hero.show-categories-mobile .starline-home-hero__category-panel {
		z-index: 10;
		height: auto !important;
		border-radius: var(--starline-hero-radius, 6px);
		overflow: hidden;
	}

	.starline-home-hero.show-categories-mobile .starline-home-hero__mobile-category-toggle {
		display: flex;
	}

	.starline-home-hero__category-heading {
		display: none;
	}

	.starline-home-hero__category-body {
		display: none;
		height: auto;
		max-height: var(--starline-hero-sub-max-height, 500px);
		overflow-x: hidden;
		overflow-y: auto;
	}

	.starline-home-hero__category-panel.is-open .starline-home-hero__category-body {
		display: flex;
		flex-direction: column;
	}

	.starline-home-hero__category-row,
	.starline-home-hero__category-link,
	.starline-home-hero__submenu-toggle {
		height: var(--starline-hero-category-item-height-mobile, 38px);
		min-height: var(--starline-hero-category-item-height-mobile, 38px);
		max-height: var(--starline-hero-category-item-height-mobile, 38px);
	}

	.starline-home-hero__submenu-toggle {
		flex-basis: var(--starline-hero-category-item-height-mobile, 38px);
		width: var(--starline-hero-category-item-height-mobile, 38px);
	}

	.starline-home-hero__subcategory-list {
		position: static;
		z-index: auto;
		display: block;
		width: 100%;
		max-height: 0;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: var(--starline-hero-sub-bg, #ffffff);
		box-shadow: none;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: max-height 0.32s ease, opacity 0.22s ease, visibility 0.22s ease;
	}

	.starline-home-hero__category-item.is-submenu-open > .starline-home-hero__subcategory-list {
		max-height: var(--starline-hero-sub-max-height, 600px);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.starline-home-hero__subcategory-list li {
		margin: 0;
		padding: 0;
		border-top: 1px solid var(--starline-hero-sub-border, #e8ebf0);
	}

	.starline-home-hero__subcategory-list a {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		min-height: var(--starline-hero-sub-item-height, 34px);
		padding:
			var(--starline-hero-sub-pad-top, 6px)
			var(--starline-hero-sub-pad-right, 30px)
			var(--starline-hero-sub-pad-bottom, 6px)
			var(--starline-hero-sub-pad-left, 12px);
		background: var(--starline-hero-sub-bg, #ffffff);
		color: var(--starline-hero-sub-color, #111111);
		font-family: var(--starline-hero-sub-family, inherit);
		font-style: var(--starline-hero-sub-style, normal);
		letter-spacing: var(--starline-hero-sub-letter-spacing, 0px);
		font-size: var(--starline-hero-sub-size, 12.5px);
		font-weight: var(--starline-hero-sub-weight, 600);
		line-height: 1.2;
	}


	.starline-home-hero__subcategory-list a:hover,
	.starline-home-hero__subcategory-list a:focus {
		background: var(--starline-hero-sub-hover-bg, #dffbf7);
		color: var(--starline-hero-sub-hover, #ff0000);
		outline: none;
	}

	.starline-home-hero__category-item.is-submenu-open .starline-home-hero__submenu-toggle svg {
		transform: rotate(90deg);
	}

	.starline-home-hero__slider {
		grid-column: 1 / -1;
		width: 100%;
		height: var(--starline-hero-height-mobile, 210px);
		min-height: 120px;
		border-radius: var(--starline-hero-radius, 6px);
	}

	.starline-home-hero__arrow {
		opacity: 1;
		visibility: visible;
	}

	.starline-home-hero__pagination {
		bottom: 9px;
	}

	/* Mobile-safe typography and controls without changing saved Customizer values. */
	.starline-home-hero__mobile-category-toggle {
		font-size: min(var(--starline-hero-heading-size, 14px), 13px);
		line-height: 1.1;
	}

	.starline-home-hero__category-link {
		font-size: min(var(--starline-hero-category-size, 13px), 12.5px);
		line-height: 1.08;
	}

	.starline-home-hero__subcategory-list a {
		font-size: min(var(--starline-hero-sub-size, 12.5px), 12px);
		line-height: 1.12;
	}

	.starline-home-hero__arrow {
		width: min(var(--starline-hero-arrow-size, 42px), 38px);
		height: min(var(--starline-hero-arrow-size, 42px), 38px);
	}

	.starline-home-hero__slide-image {
		width: 100%;
		height: 100%;
		max-width: 100%;
		object-position: center center !important;
	}
}


/* Accessibility. */
.starline-home-hero__category-link:focus-visible,
.starline-home-hero__subcategory-list a:focus-visible,
.starline-home-hero__submenu-toggle:focus-visible,
.starline-home-hero__mobile-category-toggle:focus-visible,
.starline-home-hero__arrow:focus-visible,
.starline-home-hero__pagination button:focus-visible {
	outline: 2px solid var(--starline-hero-heading-bg, #214c96);
	outline-offset: -2px;
}

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

/* =========================================================
   v2.6 - See All row seam + border alignment fix
   - No blank space between the last visible category and the toggle row.
   - Keep only one separator line at that seam.
   - Let the collapsed category panel wrap its visible rows + toggle so the
     outer border closes immediately after SEE ALL CATEGORIES.
   - Expanded desktop/tablet state still overlays the next homepage section.
========================================================= */
@media (min-width: 768px) {
	.starline-home-hero__category-panel.has-category-toggle:not(.is-category-expanded) {
		height: auto !important;
		min-height: 0 !important;
		align-self: start;
	}

	.starline-home-hero__category-panel.has-category-toggle:not(.is-category-expanded) .starline-home-hero__category-body {
		flex: 0 0 auto;
	}

	.starline-home-hero__category-panel.has-category-toggle:not(.is-category-expanded) .starline-home-hero__category-list-toggle {
		margin-top: 0 !important;
	}

	.starline-home-hero__category-panel.has-category-toggle.is-category-collapsed
	.starline-home-hero__category-item.is-last-visible-category > .starline-home-hero__category-row {
		border-bottom-width: 0;
		border-bottom-style: none;
	}
}

/* Native link retains See All row styling without toggle behaviour. */
.starline-home-hero a.starline-home-hero__category-list-link{text-decoration:none;box-sizing:border-box;cursor:pointer}
.starline-home-hero a.starline-home-hero__category-list-link:focus-visible{outline:2px solid currentColor;outline-offset:-3px}

/* View All icon appears for both link and expand modes. */
.starline-home-hero .starline-home-hero__category-list-toggle .sl-hero-view-icon{display:block;flex:0 0 22px;width:22px;height:22px;margin-inline-end:10px;transform:none}
.starline-home-hero .starline-home-hero__category-list-toggle-text{flex:1;text-align:start}
