/* Mobile / tablet storefront fixes. Do not hide stories. */

/* --------------------------------------------------------------------------
   1–2. Header gap under the announcement bar, and stories clipped by the
   sticky / absolutely positioned header (especially with the WP admin bar).
   The theme reserves 60px via padding-top and then pulls content up with
   margin-top: -30px. On mobile that dance is replaced with a small real gap.
   The admin bar already shifts the page with html margin-top; applying the
   same 46px/32px offset to the absolutely positioned header row creates a
   blank band under the blue bar and drops the logo row over the stories.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	body .xts-header {
		margin-bottom: 0 !important;
	}
	body .xts-site-content {
		margin-top: 0 !important;
	}
	body.home .xts-site-content {
		padding-top: 8px !important;
	}
}

body.admin-bar .xts-header-main {
	top: 0 !important;
}

body.admin-bar .xts-header.xts-sticked .xts-header-main {
	top: 32px !important;
}

@media screen and (max-width: 782px) {
	body.admin-bar .xts-header.xts-sticked .xts-header-main {
		top: 46px !important;
	}
}

/* --------------------------------------------------------------------------
   3. Homepage hero on small phones: put the text block under the image
   instead of a translucent panel covering the bag.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
	body.home .lpl-story-luman,
	body.home .luman-stories {
		padding: 6px 0 8px !important;
	}
	body.home .elementor-widget-xts_slider .xts-slider,
	body.home .elementor-widget-xts_slider .flickity-viewport {
		overflow: hidden;
		border-radius: 16px;
	}
	body.home .elementor-widget-xts_slider .flickity-viewport {
		height: 320px !important;
	}
	body.home .elementor-widget-xts_slider .xts-slide {
		height: 320px !important;
		display: flex !important;
		flex-direction: column !important;
	}
	body.home .elementor-widget-xts_slider .xts-slide-bg.xts-fill {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		width: 100% !important;
		height: 180px !important;
		flex: 0 0 180px;
		order: 1;
		border-radius: 0 !important;
	}
	body.home .elementor-widget-xts_slider .xts-slide-container {
		position: relative !important;
		height: auto !important;
		min-height: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		display: block !important;
		flex: 1 1 auto;
		order: 2;
	}
	body.home .elementor-widget-xts_slider .xts-slide-content {
		position: relative !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
	}
	body.home .pk-slide-txt {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		transform: none !important;
		max-width: 100% !important;
		width: 100% !important;
		background: #faf6ee !important;
		border-radius: 0 !important;
		padding: 10px 14px 12px !important;
		margin: 0 !important;
		text-align: center;
		box-sizing: border-box;
	}
}

/* --------------------------------------------------------------------------
   4. Category carousel: clamp titles to 2 lines and keep card heights even.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.xts-cats.xts-carousel .swiper-wrapper {
		align-items: stretch;
	}
	.xts-cats.xts-carousel .swiper-slide {
		height: auto;
		display: flex;
	}
	.xts-cats .xts-cat {
		display: flex;
		flex-direction: column;
		width: 100%;
		height: 100%;
	}
	.xts-cats .xts-cat-content {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
	}
	.xts-cats .xts-entities-title,
	.xts-cats .xts-entities-title a {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		line-height: 1.3;
		min-height: 2.6em;
		max-height: 2.6em;
		margin: 0 0 4px;
	}
	.xts-cats .xts-cat-count {
		margin-top: auto;
	}
}

/* --------------------------------------------------------------------------
   5. Keep page content clear of the fixed bottom nav (55px) and the chat
   bubble that sits just above it (~56px + 12px gap).
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	html body {
		margin-bottom: 0 !important;
		padding-bottom: calc(123px + env(safe-area-inset-bottom, 0px)) !important;
	}
	.lpl-support-widget.is-position-right,
	.lpl-support-widget.is-position-left {
		bottom: calc(67px + env(safe-area-inset-bottom, 0px)) !important;
	}
}
