/* =========================================================
   Feel Inspired – Shoppable Gallery Slider
   All sizing is driven by CSS variables printed per-section,
   so desktop and mobile are fully controlled from the admin.
   ========================================================= */

.fig-section {
	background: var(--fig-bg, #fff);
	padding-top: var(--fig-pt, 40px);
	padding-bottom: var(--fig-pb, 40px);
	position: relative;
	box-sizing: border-box;
}
.fig-section *,
.fig-section *::before,
.fig-section *::after {
	box-sizing: border-box;
}

/* Break out of a boxed theme container */
.fig-section.fig-fullwidth {
	width: calc(100vw - var(--fig-sbw, 0px));
	max-width: calc(100vw - var(--fig-sbw, 0px));
	margin-left: calc(50% - 50vw + (var(--fig-sbw, 0px) / 2));
	margin-right: calc(50% - 50vw + (var(--fig-sbw, 0px) / 2));
}

.fig-inner {
	width: 100%;
	max-width: var(--fig-cw, 1400px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fig-sp, 20px);
	padding-right: var(--fig-sp, 20px);
}

/* ------------------------- Header ------------------------- */

.fig-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}
.fig-head-text {
	flex: 1 1 auto;
	min-width: 0;
}
.fig-head-action {
	flex: 0 0 auto;
}
.fig-section .fig-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: var(--fig-h-size, 28px);
	font-weight: var(--fig-h-weight, 700);
	line-height: 1.25;
	color: var(--fig-h-color, #1b2452);
	text-transform: none;
	letter-spacing: 0;
}
.fig-section .fig-desc,
.fig-section .fig-desc p {
	margin: 0;
	font-size: var(--fig-d-size, 16px);
	line-height: 1.5;
	color: var(--fig-d-color, #3c4468);
}
.fig-section .fig-desc strong,
.fig-section .fig-desc b {
	font-weight: 700;
	color: inherit;
}

/* ------------------------- Button ------------------------- */

.fig-section .fig-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: var(--fig-btn-h, 50px);
	padding: 0 var(--fig-btn-pad, 28px);
	border: var(--fig-btn-bw, 1px) solid var(--fig-btn-border, #2b2f61);
	border-radius: var(--fig-btn-radius, 6px);
	background: var(--fig-btn-bg, #fff);
	color: var(--fig-btn-color, #2b2f61);
	font-size: var(--fig-btn-fs, 16px);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease;
}
.fig-section .fig-btn:hover,
.fig-section .fig-btn:focus {
	color: var(--fig-btn-color, #2b2f61);
	text-decoration: none;
	opacity: .85;
}
.fig-head-action-mobile {
	display: none;
	margin-top: 20px;
}

/* ------------------------- Slider ------------------------- */

.fig-slider {
	position: relative;
}
.fig-track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--fig-gap, 20px);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fig-track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}
.fig-track:focus-visible {
	outline: 2px solid var(--fig-prog-bar, #2b2f61);
	outline-offset: 4px;
}
.fig-track.fig-grabbing {
	cursor: grabbing;
	scroll-snap-type: none;
}

.fig-section .fig-card {
	flex: 0 0 auto;
	display: block;
	width: var(--fig-card-w, 280px);
	height: var(--fig-card-h, 300px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--fig-radius, 8px);
	overflow: hidden;
	background: #f1f1f1;
	cursor: pointer;
	scroll-snap-align: start;
	position: relative;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}
.fig-section .fig-card:hover,
.fig-section .fig-card:focus {
	background: #f1f1f1;
}
.fig-section .fig-card-static {
	cursor: default;
}
.fig-section .fig-card-static:hover img {
	transform: none;
}
.fig-section .fig-card:focus-visible {
	outline: 2px solid var(--fig-prog-bar, #2b2f61);
	outline-offset: 3px;
}
.fig-section .fig-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	transition: transform .5s ease;
	pointer-events: none;
	max-width: none;
}
.fig-section .fig-card:hover img {
	transform: scale(1.05);
}

/* ------------------------- Arrows ------------------------- */

.fig-section .fig-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fig-arrow-bg, #fff);
	color: var(--fig-arrow-color, #2b2f61);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
}
.fig-has-arrows .fig-nav {
	display: flex;
}
.fig-section .fig-nav svg {
	width: 20px;
	height: 20px;
}
.fig-section .fig-prev { left: -14px; }
.fig-section .fig-next { right: -14px; }
.fig-section .fig-nav[disabled] {
	opacity: .35;
	cursor: default;
}

/* ------------------------ Scroll bar ---------------------- */

.fig-progress {
	position: relative;
	width: var(--fig-prog-w, 50%);
	height: 4px;
	margin: 22px auto 0;
	border-radius: 4px;
	background: var(--fig-prog-track, #e3e3e6);
	cursor: pointer;
}
.fig-progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 30%;
	border-radius: 4px;
	background: var(--fig-prog-bar, #2b2f61);
	transition: left .08s linear;
}

.fig-empty {
	padding: 14px 16px;
	border: 1px dashed #c9c9c9;
	border-radius: 6px;
	color: #666;
}

/* ------------------------- Popup -------------------------- */

.fig-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.fig-modal.is-open {
	display: flex;
}
.fig-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 25, .55);
}
.fig-modal-box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--fig-modal-w, 400px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: var(--fig-modal-radius, 6px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
	animation: fig-pop .22s ease;
}
@keyframes fig-pop {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}
.fig-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #1b2452;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fig-modal-close:hover {
	background: #fff;
}
.fig-modal-media {
	display: block;
	width: 100%;
	padding-top: var(--fig-modal-ratio, 100%);
	position: relative;
	overflow: hidden;
	background: #f1f1f1;
	border-radius: var(--fig-modal-radius, 6px) var(--fig-modal-radius, 6px) 0 0;
}
.fig-modal-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
}
.fig-modal-body {
	padding: 18px 20px 20px;
}
.fig-modal-handle {
	font-size: 14px;
	color: #6c7183;
	margin-bottom: 10px;
	word-break: break-word;
}
.fig-modal-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--fig-h-color, #1b2452);
	margin-bottom: 12px;
}
.fig-modal-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--fig-h-color, #1b2452);
	margin-bottom: 16px;
}
.fig-modal-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--fig-btn-h, 50px);
	border-radius: var(--fig-btn-radius, 6px);
	background: var(--fig-modal-btn-bg, #2b2f61);
	color: var(--fig-modal-btn-color, #fff);
	font-size: var(--fig-btn-fs, 16px);
	line-height: 1;
	text-decoration: none;
	transition: opacity .2s ease;
}
.fig-modal-btn:hover,
.fig-modal-btn:focus {
	color: var(--fig-modal-btn-color, #fff);
	text-decoration: none;
	opacity: .9;
}
.fig-modal-empty {
	display: none !important;
}
body.fig-modal-open {
	overflow: hidden;
}

/* ------------------------- Mobile ------------------------- */
/* The breakpoint value itself is written per section, this block
   only handles the structural changes that are always the same. */

@media (max-width: 1024px) {
	.fig-section .fig-prev { left: 4px; }
	.fig-section .fig-next { right: 4px; }
}

@media (max-width: 767px) {
	.fig-progress {
		margin-top: 16px;
	}
	.fig-modal-body {
		padding: 16px 16px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fig-section .fig-card img,
	.fig-modal-box,
	.fig-progress-bar {
		transition: none;
		animation: none;
	}
}
