/* Snusly Flavour & Strength — all values driven by CSS custom properties */

.sfs-wrap,
.sfs-wrap * {
	box-sizing: border-box;
}

.sfs-wrap {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.sfs-inner {
	max-width: var(--sfs-max, 1180px);
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* Let the widget sit flush inside Elementor / block containers */
.elementor-widget-snusly_flavour_strength,
.elementor-widget-snusly_flavour_strength > .elementor-widget-container {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
}

/* ---------- Flavours (Popular Flavours cards) ---------- */

.sfs-flavours,
.sfs-flavours--cards {
	background: var(--sfs-fl-bg, #8A4381);
	padding: var(--sfs-fl-pad, 56px) 0 calc(var(--sfs-fl-pad, 56px) + 8px);
	text-align: left;
	color: var(--sfs-fl-heading, #fff);
}

.sfs-flavours__head {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 0 28px;
}

.sfs-flavours__title {
	margin: 0 auto;
	text-align: center !important;
	width: 100%;
	font-size: var(--sfs-fl-title-size, 36px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--sfs-fl-heading, #fff);
}

.sfs-flavours__grid {
	display: grid;
	grid-template-columns: repeat(var(--sfs-fl-cols, 5), minmax(0, 1fr));
	gap: var(--sfs-fl-gap, 16px) 16px;
	align-items: stretch;
	justify-items: stretch;
	width: 100%;
}

.sfs-flavour {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	text-decoration: none !important;
	color: inherit;
	gap: 12px;
	width: 100%;
	max-width: none;
	min-width: 0;
	padding: 0;
	transition: transform 0.2s ease;
	box-shadow: none;
	border: 0;
	background: transparent;
}

.sfs-flavour,
.sfs-flavour:hover,
.sfs-flavour:focus,
.sfs-flavour:focus-visible,
.sfs-flavour:active,
.sfs-flavour * {
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.sfs-flavour:hover,
.sfs-flavour:focus-visible {
	transform: translateY(var(--sfs-lift, -4px));
}

.sfs-flavour__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sfs-blob, #14302e);
	flex-shrink: 0;
}

.sfs-flavour__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.sfs-flavour:hover .sfs-flavour__media img {
	transform: scale(1.05);
}

.sfs-flavour__blob {
	position: absolute;
	inset: 0;
	background: var(--sfs-blob, #14302e);
	z-index: 0;
}

.sfs-flavour__icon {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sfs-icon-color, #fff);
}

.sfs-flavour__icon svg {
	width: 42%;
	height: 42%;
}

.sfs-flavour__icon i {
	font-size: 42px;
	line-height: 1;
}

.sfs-flavour__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 0 2px 4px;
}

.sfs-flavour__label {
	margin: 0;
	font-size: var(--sfs-fl-label-size, 18px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--sfs-fl-label, #fff);
	max-width: 100%;
	overflow-wrap: break-word;
}

.sfs-flavour__desc {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--sfs-fl-desc, #F2E6F0);
	max-width: 100%;
	overflow-wrap: break-word;
}

/* ---------- Strength ---------- */

.sfs-strength {
	position: relative;
	background: var(--sfs-st-bg, #8a4381);
	padding: var(--sfs-st-pad, 52px) 0 calc(var(--sfs-st-pad, 52px) + 4px);
	color: #fff;
	text-align: center;
}

.sfs-strength__title {
	margin: 0 0 12px;
	text-align: center;
	font-size: var(--sfs-st-title-size, 30px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--sfs-st-heading, #fff);
}

.sfs-strength__desc {
	margin: 0 auto 44px;
	text-align: center;
	font-size: var(--sfs-st-desc-size, 16px);
	font-weight: 400;
	line-height: 1.5;
	color: var(--sfs-st-desc, rgba(255, 255, 255, 0.95));
	max-width: 720px;
}

.sfs-strength__grid {
	display: grid;
	grid-template-columns: repeat(var(--sfs-st-cols, 4), minmax(0, 1fr));
	gap: var(--sfs-st-gap, 24px);
	align-items: start;
	justify-items: center;
	width: 100%;
}

.sfs-level {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	text-decoration: none !important;
	gap: 18px;
	width: 100%;
	min-width: 0;
	padding: 8px 12px;
	transition: transform 0.15s ease;
	box-shadow: none;
	border: 0;
	color: inherit;
}

.sfs-level,
.sfs-level:hover,
.sfs-level:focus,
.sfs-level:focus-visible,
.sfs-level:active,
.sfs-level * {
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none;
	color: inherit;
}

.sfs-level:hover,
.sfs-level:focus-visible {
	transform: translateY(var(--sfs-lift, -3px));
}

.sfs-level__name,
.sfs-level__range,
.sfs-flavour__label {
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.sfs-meter {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: var(--sfs-bar-gap, 6px);
	height: auto !important;
	max-width: 100%;
	padding: 8px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sfs-level:hover .sfs-meter,
.sfs-level:focus-visible .sfs-meter {
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.sfs-meter__bar {
	width: var(--sfs-bar-w, 36px);
	height: var(--sfs-bar-h, 8px);
	border-radius: var(--sfs-bar-radius, 999px);
	background: var(--sfs-bar-off, rgba(255, 255, 255, 0.28));
	flex: 0 0 var(--sfs-bar-w, 36px);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sfs-meter__bar.is-on {
	background: var(--sfs-bar-on, #fff);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
}

.sfs-level:hover .sfs-meter__bar.is-on,
.sfs-level:focus-visible .sfs-meter__bar.is-on {
	box-shadow: 0 0 14px rgba(255, 255, 255, 0.62);
}

.sfs-level__name {
	margin: 0;
	font-size: var(--sfs-level-size, 18px);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.35;
	color: var(--sfs-st-heading, #fff);
	max-width: 100%;
	overflow-wrap: break-word;
}

.sfs-level__range {
	display: block;
	margin-top: 4px;
	font-size: var(--sfs-range-size, 14px);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--sfs-st-desc, rgba(255, 255, 255, 0.95));
}

/* ---------- Edge-to-edge backgrounds ---------- */

.sfs-wrap--bleed .sfs-flavours,
.sfs-wrap--bleed .sfs-strength {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sfs-flavours,
.sfs-strength {
	overflow-x: clip;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.sfs-flavours__grid {
		grid-template-columns: repeat(var(--sfs-fl-cols-t, 3), minmax(0, 1fr));
		gap: 20px 14px;
	}

	.sfs-flavours__title {
		font-size: clamp(26px, 4vw, 34px);
	}

	/* Wrap leftover items in the centre (5 items → 3 + 2, not 4 + 1 hanging left). */
	.sfs-strength__grid {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: center;
		align-items: start;
		gap: 32px 20px;
	}

	.sfs-level {
		flex: 0 1 calc(33.333% - 14px);
		max-width: 220px;
		width: auto;
	}
}

@media (max-width: 767px) {
	.sfs-inner {
		padding: 0 16px;
	}

	.sfs-flavours {
		padding: clamp(28px, 8vw, var(--sfs-fl-pad, 56px)) 0;
	}

	.sfs-strength {
		padding: clamp(34px, 9vw, var(--sfs-st-pad, 52px)) 0;
		overflow-x: hidden;
	}

	.sfs-wrap--bleed .sfs-flavours,
	.sfs-wrap--bleed .sfs-strength {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.sfs-flavours__head {
		margin-bottom: 20px;
	}

	.sfs-flavours__grid {
		grid-template-columns: repeat(var(--sfs-fl-cols-m, 2), minmax(0, 1fr)) !important;
		gap: 16px 10px;
	}

	.sfs-flavour {
		max-width: 100%;
		gap: 8px;
	}

	.sfs-flavour__media {
		border-radius: 12px;
	}

	.sfs-flavour__label {
		font-size: clamp(13px, 3.6vw, 16px);
		line-height: 1.2;
	}

	.sfs-flavour__desc {
		font-size: clamp(11px, 3.1vw, 13px);
	}

	/* Strength: two per row, last leftover centred. Bars shrink to fit. */
	.sfs-strength__grid {
		display: flex !important;
		flex-wrap: wrap;
		justify-content: center;
		gap: 26px 10px;
	}

	.sfs-level {
		flex: 0 1 calc((100% - 10px) / 2);
		max-width: none;
		padding: 4px 8px;
		gap: 10px;
		min-width: 0;
	}

	.sfs-meter {
		width: 100%;
		max-width: 148px;
		gap: 4px;
		padding: 6px 7px;
	}

	.sfs-meter__bar {
		width: auto;
		min-width: 0;
		flex: 1 1 0;
		height: 6px;
	}

	.sfs-flavours__title {
		font-size: clamp(22px, 6.2vw, 30px);
	}

	.sfs-strength__title {
		font-size: clamp(21px, 6vw, var(--sfs-st-title-size, 30px));
	}

	.sfs-strength__desc {
		margin-bottom: 28px;
		padding: 0 8px;
		font-size: clamp(14px, 3.8vw, var(--sfs-st-desc-size, 16px));
		max-width: 34ch;
	}

	.sfs-level__name {
		font-size: clamp(12px, 3.6vw, 15px);
		letter-spacing: 0.03em;
		line-height: 1.25;
	}

	.sfs-level__range {
		font-size: clamp(11px, 3.2vw, 13px);
		white-space: nowrap;
	}
}

@media (max-width: 400px) {
	.sfs-inner {
		padding: 0 14px;
	}

	.sfs-flavours__grid {
		gap: 14px 8px;
	}

	.sfs-flavour {
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sfs-flavour,
	.sfs-flavour__media img,
	.sfs-level,
	.sfs-meter,
	.sfs-meter__bar {
		transition: none;
	}

	.sfs-flavour:hover,
	.sfs-level:hover {
		transform: none;
	}

	.sfs-flavour:hover .sfs-flavour__media img {
		transform: none;
	}
}
