/* Focus Shopify Products: front-end styles.
   Everything is scoped under .fsp-* and uses CSS variables so Elementor's
   style controls (and themes) can override it easily. */

.fsp-products,
.fsp-hero {
	--fsp-text: inherit;
	--fsp-muted: #6b6b6b;
	--fsp-line: #e3e3e3;
	--fsp-accent: #111;
	--fsp-accent-text: #fff;
	--fsp-sale: #b3261e;
	--fsp-radius: 0px;
	--fsp-align: flex-start;
	box-sizing: border-box;
}

.fsp-products *,
.fsp-hero * {
	box-sizing: border-box;
}

.fsp-notice {
	padding: 14px 16px;
	border: 1px dashed #c9a227;
	background: #fffbea;
	color: #5c4a00;
	font-size: 14px;
	line-height: 1.4;
}

/* ------------------------------------------------------------------ Shared */

.fsp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid var(--fsp-accent);
	background: var(--fsp-accent);
	color: var(--fsp-accent-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-decoration: none;
	border-radius: var(--fsp-radius);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.fsp-button:hover,
.fsp-button:focus-visible {
	opacity: 0.88;
	color: var(--fsp-accent-text);
	text-decoration: none;
}

.fsp-button--outline {
	background: transparent;
	color: var(--fsp-accent);
}

.fsp-button--outline:hover,
.fsp-button--outline:focus-visible {
	background: var(--fsp-accent);
	color: var(--fsp-accent-text);
	opacity: 1;
}

.fsp-button.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.fsp-button:focus-visible,
.fsp-arrow:focus-visible,
.fsp-dot:focus-visible,
.fsp-thumb:focus-visible,
.fsp-track:focus-visible {
	outline: 2px solid var(--fsp-accent);
	outline-offset: 2px;
}

.fsp-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	background: var(--fsp-sale);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fsp-badge--soldout {
	background: #555;
}

.fsp-badge[hidden] {
	display: none;
}

.fsp-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: var(--fsp-align);
	gap: 0 8px;
	font-weight: 600;
}

.fsp-price__from {
	font-weight: 400;
	color: var(--fsp-muted);
	font-size: 0.9em;
}

.fsp-price--sale .fsp-price__current {
	color: var(--fsp-sale);
}

.fsp-price__compare {
	color: var(--fsp-muted);
	font-weight: 400;
}

.fsp-price__compare[hidden] {
	display: none;
}

.fsp-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f2f2f2, #e6e6e6);
}

/* ------------------------------------------------------------------ Button reset
   Themes (e.g. Hello Elementor) and Elementor's global Kit styles target every
   <button> with selectors like ".elementor-kit-5 button". These rules use
   higher specificity so the carousel controls keep their own look. */

.fsp-products .fsp-carousel button.fsp-arrow,
.fsp-products .fsp-head-arrows button.fsp-arrow,
.fsp-products .fsp-dots button.fsp-dot,
.fsp-hero .fsp-hero__thumbs button.fsp-thumb {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
	font: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	white-space: normal;
	box-shadow: none;
	transition: background-color 0.25s, width 0.25s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}

.fsp-products .fsp-carousel button.fsp-arrow,
.fsp-products .fsp-head-arrows button.fsp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--fsp-arrow-size);
	height: var(--fsp-arrow-size);
	border: 1px solid var(--fsp-line);
	border-radius: 50%;
	background-color: #fff;
	color: #111;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	cursor: pointer;
}

.fsp-products .fsp-carousel button.fsp-arrow:hover,
.fsp-products .fsp-carousel button.fsp-arrow:focus,
.fsp-products .fsp-head-arrows button.fsp-arrow:hover,
.fsp-products .fsp-head-arrows button.fsp-arrow:focus {
	background-color: #fff;
	color: #111;
	border-color: #bdbdbd;
}

.fsp-products .fsp-carousel button.fsp-arrow[disabled],
.fsp-products .fsp-head-arrows button.fsp-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.fsp-products .fsp-dots button.fsp-dot {
	display: block;
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 10px;
	background-color: #cfcfcf;
	cursor: pointer;
}

.fsp-products .fsp-dots button.fsp-dot:hover,
.fsp-products .fsp-dots button.fsp-dot:focus {
	background-color: #9e9e9e;
}

.fsp-products .fsp-dots button.fsp-dot[aria-current="true"] {
	width: 26px;
	background-color: var(--fsp-accent);
}

.fsp-hero .fsp-hero__thumbs button.fsp-thumb {
	display: block;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border: 2px solid transparent;
	border-radius: 0;
	background-color: #f4f4f4;
	color: inherit;
	overflow: hidden;
	cursor: pointer;
}

.fsp-hero .fsp-hero__thumbs button.fsp-thumb[aria-current="true"] {
	border-color: var(--fsp-accent);
}

/* ------------------------------------------------------------------ Heading row */

.fsp-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.fsp-section-head__title {
	margin: 0;
}

.fsp-section-head__end {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.fsp-section-head__link {
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.fsp-head-arrows {
	display: flex;
	gap: 8px;
}

/* ------------------------------------------------------------------ Shop all button */

.fsp-shop-all {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.fsp-shop-all__button {
	width: var(--fsp-shop-all-width, auto);
	min-width: 200px;
	padding: 15px 32px;
}

/* ------------------------------------------------------------------ Card */

.fsp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.fsp-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f4f4f4;
}

.fsp-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.35s ease, transform 0.6s ease;
}

.fsp-card__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.fsp-card__media--has-hover:hover .fsp-card__img--hover,
.fsp-card:focus-within .fsp-card__img--hover {
	opacity: 1;
}

.fsp-zoom-yes .fsp-card:hover .fsp-card__img {
	transform: scale(1.05);
}

.fsp-card--soldout .fsp-card__img:not(.fsp-card__img--hover) {
	opacity: 0.7;
}

.fsp-card__body {
	display: flex;
	flex-direction: column;
	align-items: var(--fsp-align);
	gap: 6px;
	flex: 1;
	padding: 14px 0 0;
}

.fsp-card__vendor {
	color: var(--fsp-muted);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fsp-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.fsp-card__title a {
	color: inherit;
	text-decoration: none;
}

.fsp-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fsp-card__button {
	margin-top: auto;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 13px;
}

/* ------------------------------------------------------------------ Grid layout */

.fsp-products {
	--fsp-per-view: 4;
	--fsp-gap: 20px;
	--fsp-arrow-size: 44px;
	position: relative;
}

.fsp-track {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fsp-products--grid .fsp-track {
	display: grid;
	grid-template-columns: repeat(var(--fsp-grid-cols, round(down, var(--fsp-per-view), 1)), minmax(0, 1fr));
	gap: var(--fsp-gap);
}

/* Fallback for browsers without CSS round(): use the value as given. */
@supports not (width: round(down, 4.5px, 1px)) {
	.fsp-products--grid .fsp-track {
		grid-template-columns: repeat(var(--fsp-per-view), minmax(0, 1fr));
	}
}

.fsp-slide {
	margin: 0;
	padding: 0;
	min-width: 0;
}

/* ------------------------------------------------------------------ Carousel layout */

.fsp-carousel {
	position: relative;
}

.fsp-products--carousel .fsp-track {
	display: flex;
	gap: var(--fsp-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.fsp-products--carousel .fsp-track::-webkit-scrollbar {
	display: none;
}

.fsp-products--carousel .fsp-slide {
	flex: 0 0 calc((100% - (var(--fsp-per-view) - 1) * var(--fsp-gap)) / var(--fsp-per-view));
	scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
	.fsp-products--carousel .fsp-track {
		scroll-behavior: auto;
	}
	.fsp-card__img {
		transition: none;
	}
}

/* Arrows */

.fsp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--fsp-arrow-size);
	height: var(--fsp-arrow-size);
	padding: 0;
	border: 1px solid var(--fsp-line);
	border-radius: 50%;
	background: #fff;
	color: #111;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: opacity 0.2s, transform 0.2s;
}

.fsp-arrow:hover {
	transform: scale(1.06);
}

.fsp-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.fsp-arrow svg {
	width: 45%;
	height: 45%;
}

.fsp-products--arrows-sides .fsp-carousel > .fsp-arrow {
	position: absolute;
	top: var(--fsp-arrow-top, 40%);
	z-index: 3;
	transform: translateY(-50%);
}

.fsp-products--arrows-sides .fsp-carousel > .fsp-arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.fsp-products--arrows-sides .fsp-carousel > .fsp-arrow[disabled] {
	transform: translateY(-50%);
}

.fsp-products--arrows-sides .fsp-arrow--prev {
	left: 10px;
}

.fsp-products--arrows-sides .fsp-arrow--next {
	right: 10px;
}

/* Hide arrows when everything fits (set by the script). */
.fsp-products.is-static .fsp-arrow,
.fsp-products.is-static .fsp-dots {
	display: none;
}

@media (max-width: 767px) {
	.fsp-products--arrows-sides .fsp-arrow--prev {
		left: 6px;
	}
	.fsp-products--arrows-sides .fsp-arrow--next {
		right: 6px;
	}
}

/* Dots */

.fsp-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.fsp-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #cfcfcf;
	cursor: pointer;
	transition: width 0.25s, background-color 0.25s;
}

.fsp-dot[aria-current="true"] {
	width: 22px;
	background: var(--fsp-accent);
}

/* ------------------------------------------------------------------ Hero */

.fsp-hero {
	--fsp-hero-media: 50%;
	--fsp-hero-gap: 48px;
	display: flex;
	align-items: center;
	gap: var(--fsp-hero-gap);
}

.fsp-hero--image-right {
	flex-direction: row-reverse;
}

.fsp-hero--image-top {
	flex-direction: column;
	align-items: stretch;
}

.fsp-hero__media {
	flex: 0 0 calc(var(--fsp-hero-media) - var(--fsp-hero-gap) / 2);
	min-width: 0;
}

.fsp-hero--image-top .fsp-hero__media {
	flex-basis: auto;
}

.fsp-hero__main {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f4f4f4;
}

.fsp-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.25s ease;
}

.fsp-hero__img.is-loading {
	opacity: 0.4;
}

.fsp-hero__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.fsp-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	background: #f4f4f4;
	cursor: pointer;
	overflow: hidden;
}

.fsp-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fsp-thumb[aria-current="true"] {
	border-color: var(--fsp-accent);
}

.fsp-hero__content {
	display: flex;
	flex-direction: column;
	align-items: var(--fsp-align);
	gap: 14px;
	flex: 1 1 0;
	min-width: 0;
}

.fsp-hero__eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fsp-muted);
}

.fsp-hero__vendor {
	font-size: 14px;
	color: var(--fsp-muted);
}

.fsp-hero__title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.1;
}

.fsp-hero .fsp-price {
	font-size: 20px;
}

.fsp-hero__desc {
	max-width: 60ch;
	line-height: 1.6;
}

.fsp-hero__desc > :first-child {
	margin-top: 0;
}

.fsp-hero__desc > :last-child {
	margin-bottom: 0;
}

.fsp-hero__form {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--fsp-align);
	gap: 12px 16px;
	width: 100%;
}

.fsp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 140px;
	text-align: left;
}

.fsp-field--qty {
	min-width: 0;
	width: 96px;
}

.fsp-field__label {
	font-size: 13px;
	font-weight: 600;
}

.fsp-field select,
.fsp-field input {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	background-color: #fff;
	color: #111;
	font: inherit;
	font-size: 15px;
}

.fsp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--fsp-align);
	gap: 12px;
	margin-top: 6px;
}

.fsp-hero__actions .fsp-button {
	min-width: 180px;
	padding-top: 15px;
	padding-bottom: 15px;
}

@media (max-width: 767px) {
	.fsp-hero,
	.fsp-hero--image-right {
		flex-direction: column;
		align-items: stretch;
		--fsp-hero-gap: 24px;
	}
	.fsp-hero__media {
		flex-basis: auto;
	}
	.fsp-hero__actions .fsp-button {
		flex: 1 1 100%;
	}
}

/* ------------------------------------------------------------------ Responsive defaults
   Elementor's "Products per row" setting overrides these per device. */

@media (max-width: 1024px) {
	.fsp-products {
		--fsp-per-view: 2;
	}
}

@media (max-width: 767px) {
	.fsp-products {
		--fsp-per-view: 1;
		--fsp-gap: 16px;
		--fsp-arrow-size: 38px;
	}
	.fsp-section-head {
		flex-wrap: wrap;
		align-items: baseline;
		gap: 8px 16px;
		margin-bottom: 16px;
	}
	.fsp-hero__thumbs .fsp-thumb {
		flex-basis: 60px;
	}
}

/* ------------------------------------------------------------------ Centred dots and Shop all button
   Full width and explicitly centred so theme or container alignment
   (e.g. an Elementor container set to "align items: start") can't shift them. */

.fsp-products {
	width: 100%;
}

.fsp-products .fsp-dots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 100%;
	margin: 20px auto 0;
	padding: 0;
	text-align: center;
	float: none;
}

.fsp-products .fsp-shop-all {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	text-align: center;
	float: none;
}

.fsp-products .fsp-shop-all .fsp-shop-all__button {
	margin: 0;
	float: none;
}
