/**
 * Salt & Stone UX homepage modules.
 * Scoped to ss-* roots so the Flatsome theme and other pages stay untouched.
 */

/* ------------------------------------------------ Announcement bar */
.ss-announcement {
	width: 100%;
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	padding: 9px 16px;
	box-sizing: border-box;
}
.ss-announcement__inner {
	max-width: 1220px;
	margin: 0 auto;
}
.ss-announcement a {
	text-decoration: none;
}

/* ------------------------------------------------ Hero banner */
.ss-hero {
	width: 100%;
	background-color: #0a0a0a;
	position: relative;
	overflow: hidden;
}
.ss-hero__grid {
	display: grid;
	grid-template-columns: minmax(280px, 420px) 1fr;
	align-items: center;
	max-width: 1440px;
	margin: 0 auto;
	min-height: 520px;
}
.ss-hero__content {
	color: #fff;
	padding: 48px 24px 48px 64px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}
.ss-hero__discount {
	margin: 0;
	display: inline-block;
	background-color: #c00;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 8px 16px;
	border-radius: 999px;
	text-transform: uppercase;
}
.ss-hero__heading {
	margin: 0;
	color: #fff;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 600;
	max-width: 340px;
	width: auto;
}
.ss-hero__cta {
	display: inline-block;
	background-color: #c0392b;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 14px 28px;
	border-radius: 999px;
	transition: opacity 0.2s ease;
}
.ss-hero__cta:hover,
.ss-hero__cta:focus {
	opacity: 0.85;
	color: #fff;
}
.ss-hero__media {
	min-width: 0;
}
.ss-hero__media .ss-picture,
.ss-hero__media img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 848px) {
	.ss-hero__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.ss-hero__content {
		padding: 32px 20px 8px;
		align-items: flex-start;
	}
	.ss-hero__heading {
		font-size: 22px;
	}
}

/* ------------------------------------------------ Product slider */
.ss-products {
	max-width: 1220px;
	margin: 0 auto;
	padding: 48px 16px;
}
.ss-products__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.ss-products__title {
	margin: 0;
	width: auto;
	min-width: 0;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.ss-products__shop-all {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: #000;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}
.ss-carousel__wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ss-carousel__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	scrollbar-width: none;
}
.ss-carousel__track::-webkit-scrollbar {
	display: none;
}
.ss-carousel__track > * {
	scroll-snap-align: start;
	flex: 0 0 auto;
	width: calc((100% - 3 * 16px) / 4);
	min-width: 0;
}
.ss-carousel__arrow {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 999px;
	width: 40px;
	height: 40px;
	line-height: 1;
	font-size: 16px;
	cursor: pointer;
	flex: 0 0 auto;
	display: none;
	align-items: center;
	justify-content: center;
	color: #000;
}
.ss-carousel__arrow:hover {
	background: #f4f4f4;
}
@media (min-width: 849px) {
	.ss-carousel__arrow {
		display: inline-flex;
	}
}
.ss-products__empty {
	color: #666;
	padding: 32px 0;
}

/* Theme product card width inside the carousel */
.ss-carousel__track li.product,
.ss-carousel__track li.product-small {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

@media (max-width: 848px) {
	.ss-carousel__track {
		gap: 12px;
	}
	.ss-carousel__track > * {
		width: calc((100% - 12px) / 2);
	}
	.ss-products {
		padding: 32px 16px;
	}
	.ss-products__title {
		font-size: 21px;
	}
}

/* ------------------------------------------------ Video banner */
.ss-video-banner {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #d8d4cc;
}
.ss-video-banner__media {
	position: absolute;
	inset: 0;
}
.ss-video-banner__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ss-video-banner__video--desktop {
	display: block;
}
.ss-video-banner__video--mobile {
	display: none;
}
@media (max-width: 848px) {
	.ss-video-banner__video--desktop {
		display: none;
	}
	.ss-video-banner__video--mobile {
		display: block;
	}
}
.ss-video-banner__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 62vw;
	max-height: 90vh;
	padding: 36px 20px 48px;
}
.ss-video-banner__heading {
	margin: 0;
	color: #fff;
	font-size: 30px;
	font-weight: 600;
	text-align: center;
	width: auto;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.ss-video-banner__cta {
	display: inline-block;
	background: #fff;
	color: #000;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 14px 34px;
	border-radius: 999px;
}
.ss-video-banner__cta:hover,
.ss-video-banner__cta:focus {
	opacity: 0.85;
	color: #000;
}
@media (max-width: 848px) {
	.ss-video-banner__content {
		min-height: 130vw;
		padding: 24px 16px 36px;
	}
	.ss-video-banner__heading {
		font-size: 22px;
	}
}

/* ------------------------------------------------ Two column promo */
.ss-two-col {
	max-width: 1220px;
	margin: 0 auto;
	padding: 16px;
}
.ss-two-col__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.ss-promo-card {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
}
.ss-promo-card .ss-picture,
.ss-promo-card img {
	display: block;
	width: 100%;
	height: auto;
}
.ss-promo-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	padding: 24px;
	pointer-events: none;
}
.ss-promo-card__heading {
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 600;
	width: auto;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.ss-promo-card__cta {
	pointer-events: auto;
	background: #fff;
	color: #000;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 12px 26px;
	border-radius: 999px;
}
.ss-promo-card__cta:hover,
.ss-promo-card__cta:focus {
	opacity: 0.85;
	color: #000;
}
@media (max-width: 848px) {
	.ss-two-col__grid {
		grid-template-columns: 1fr;
	}
	.ss-promo-card__heading {
		font-size: 20px;
	}
}

/* ------------------------------------------------ Category carousel */
.ss-cat-grid {
	max-width: 1220px;
	margin: 0 auto;
	padding: 48px 16px;
}
.ss-cat-grid__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	scrollbar-width: none;
}
.ss-cat-grid__track::-webkit-scrollbar {
	display: none;
}
.ss-cat-card {
	position: relative;
	flex: 0 0 auto;
	width: calc((100% - 3 * 16px) / 4);
	min-width: 240px;
	aspect-ratio: 4 / 5;
	background-size: cover;
	background-position: center;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px;
	scroll-snap-align: start;
}
.ss-cat-card__heading {
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.ss-cat-card__cta {
	background: #fff;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 10px 22px;
	border-radius: 999px;
}
.ss-cat-card:hover .ss-cat-card__cta {
	opacity: 0.85;
}
@media (max-width: 848px) {
	.ss-cat-card {
		width: 78vw;
		min-width: 260px;
	}
	.ss-cat-grid {
		padding: 32px 16px;
	}
}
