/* ==========================================================================
   4 Seasons Products — front-end
   Réplica do layout JetEngine/JetSmartFilters + popup novo + single Remnants
   ========================================================================== */

.fs-products {
	--fs-font: "PP Mori", sans-serif;
	--fs-black: #000;
	--fs-grey: #81848a;
	--fs-border: #b4b4b4;
	--fs-field: #f2f2f2;
	--fs-media-h: 310px;
	--fs-select-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 37 45'%3E%3Crect x='0' y='4' width='37' height='7' rx='3.5' fill='%23fff'/%3E%3Crect x='0' y='19' width='37' height='7' rx='3.5' fill='%23fff'/%3E%3Crect x='0' y='34' width='37' height='7' rx='3.5' fill='%23fff'/%3E%3C/svg%3E");
	width: 100%;
	font-family: var(--fs-font);
}

.fs-products *,
.fs-products *::before,
.fs-products *::after { box-sizing: border-box; }

/* ---------- Controles (busca / filtro) ---------- */
.fs-products .fs-controls {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	margin: 60px 0;
}
.fs-products .fs-controls--filter {
	justify-content: space-between;
	margin: 60px 0;
}
.fs-products .fs-search { width: 100%; }
.fs-products .fs-controls--filter .fs-filter { width: 24%; max-width: 24%; }
.fs-products .fs-controls--filter .fs-search { width: 71%; max-width: 71%; }

.fs-products .fs-search__wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1180px;
	margin: 0 auto;
}
.fs-products .fs-controls--filter .fs-search__wrap { max-width: 100%; }

.fs-products input.fs-search__input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 86px;
	margin: 0;
	border-radius: 14px;
	border: 3px solid var(--fs-border);
	background: var(--fs-field);
	padding: 0 50px 0 20px;
	font-family: var(--fs-font);
	font-size: 29px;
	font-weight: 400;
	line-height: 1;
	color: var(--fs-grey);
	text-align: center;
	outline: none;
	box-shadow: none;
	transition: border-color .2s ease;
}
.fs-products .fs-search__input::placeholder { color: var(--fs-grey); text-align: center; opacity: 1; }
.fs-products .fs-search__input:focus { outline: none; box-shadow: none; border-color: var(--fs-grey); }
.fs-products .fs-search__input::-webkit-search-cancel-button,
.fs-products .fs-search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.fs-products button.fs-search__clear {
	position: absolute;
	right: 30px;
	top: 0;
	bottom: 0;
	margin: auto;
	height: fit-content;
	padding: 4px;
	display: none;
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--fs-grey);
	cursor: pointer;
	line-height: 0;
}
.fs-products button.fs-search__clear:hover,
.fs-products button.fs-search__clear:focus { background: transparent; color: var(--fs-black); }
.fs-products .fs-search__input:not(:placeholder-shown) ~ .fs-search__clear { display: flex; }

.fs-products select.fs-select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 86px;
	margin: 0;
	border: none;
	border-radius: 14px;
	background: var(--fs-select-icon) 20px center / 37px 45px no-repeat #000;
	color: #fff;
	font-family: var(--fs-font);
	font-size: clamp(20px, 1.7vw, 32px);
	font-weight: 400;
	line-height: 1;
	padding: 0 24px 0 76px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	outline: none;
	box-shadow: none;
	text-align: center;
	text-align-last: center;
}
.fs-products select.fs-select:focus { border-radius: 14px 14px 0 0; outline: none; box-shadow: none; }
.fs-products select.fs-select:not(:focus) { border-radius: 14px; }
.fs-products select.fs-select option {
	background: #000;
	color: #fff;
	font-family: var(--fs-font);
	font-size: 18px;
	text-align: left;
}

/* ---------- Grid ---------- */
.fs-products .fs-grid {
	display: grid;
	grid-template-columns: repeat(var(--fs-cols, 4), minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 40px;
	margin: 40px 0 20px;
}
.fs-products .fs-item[hidden] { display: none !important; }

.fs-products .fs-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	outline: none;
}
.fs-products a.fs-card:hover,
.fs-products a.fs-card:focus { color: inherit; text-decoration: none; }

.fs-products .fs-card__media {
	position: relative;
	width: 100%;
	height: var(--fs-media-h);
	overflow: hidden;
	background: #eee;
	cursor: pointer;
}
.fs-products .fs-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center center;
	border: 0;
	border-radius: 0;
	transition: opacity .4s ease, transform .6s ease;
}
.fs-products .fs-card__img--empty { display: block; background: #e6e6e6; }
.fs-products .fs-card__media:focus { outline: none; }
.fs-products .fs-card:focus-visible .fs-card__media { outline: 2px solid #000; outline-offset: 3px; }

/* Sinks: imagem da planta (contain) */
.fs-products .fs-card__img--alt {
	object-fit: contain;
	background: #fff;
	opacity: 0;
	pointer-events: none;
}
.fs-products .fs-item.is-swapped .fs-card__img--alt { opacity: 1; }
.fs-products .fs-card__img { will-change: opacity; }
.fs-products .fs-mode-swap .fs-card__media, .fs-products.fs-mode-swap .fs-card__media { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }

.fs-products .fs-card__title {
	width: 100%;
	margin: 15px 0 0;
	padding: 0;
	font-family: var(--fs-font);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2em;
	letter-spacing: -0.5px;
	text-transform: capitalize;
	text-align: center;
	color: #000;
	text-wrap: balance;
}

.fs-products .fs-empty {
	margin: 20px 0 0;
	text-align: center;
	font-family: var(--fs-font);
	font-size: 22px;
	color: var(--fs-grey);
}
.fs-products .fs-empty[hidden] { display: none; }

@media (min-width: 1025px) and (max-width: 1680px) {
	.fs-products { --fs-media-h: 240px; }
}

@media (max-width: 1024px) {
	.fs-products { --fs-media-h: 260px; }
	.fs-products .fs-controls { margin: 0 0 20px; }
	.fs-products .fs-controls--filter { flex-direction: column; gap: 20px; margin: 0 0 30px; }
	.fs-products .fs-controls--filter .fs-filter,
	.fs-products .fs-controls--filter .fs-search { width: 100%; max-width: 100%; }
	.fs-products .fs-search__wrap { max-width: 100%; }
	.fs-products .fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fs-products .fs-card__title { font-size: 20px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.fs-products input.fs-search__input[type="search"] { height: 68px; font-size: 22px; border-radius: 12px; }
	.fs-products select.fs-select { height: 68px; font-size: 22px; border-radius: 12px; padding: 0 24px 0 64px; background-size: 30px 36px; }
}

@media (max-width: 767px) {
	.fs-products .fs-controls { margin: 10px 0 0; }
	.fs-products .fs-controls--filter { margin: 10px 0 0; }
	.fs-products input.fs-search__input[type="search"] { height: 52px; font-size: 16px; border-radius: 10px; padding: 0 40px 0 16px; }
	.fs-products button.fs-search__clear { right: 16px; }
	.fs-products select.fs-select { height: 52px; font-size: 16px; border-radius: 10px; padding: 0 20px 0 50px; background-size: 24px 30px; background-position: 14px center; }
	.fs-products .fs-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Popup (substitui o JetPopup)
   ========================================================================== */

html.fs-modal-open, html.fs-modal-open body { overflow: hidden !important; }

.fs-modal {
	--fs-font: "PP Mori", sans-serif;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3vh 3vw;
	font-family: var(--fs-font);
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
.fs-modal *, .fs-modal *::before, .fs-modal *::after { box-sizing: border-box; }
.fs-modal.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease; }

.fs-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 12, .78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.fs-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: min(1180px, 100%);
	max-height: 94vh;
	padding: 28px 32px 26px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	transform: translateY(16px) scale(.98);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
	overflow: hidden;
}
.fs-modal.is-open .fs-modal__dialog { transform: none; }
.fs-modal__dialog:focus { outline: none; }

.fs-modal button { font-family: inherit; }

.fs-modal__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-right: 56px;
}
.fs-modal__heading { min-width: 0; }
.fs-modal__eyebrow {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #81848a;
}
.fs-modal .fs-modal__title {
	margin: 0;
	padding: 0;
	font-family: var(--fs-font);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.5px;
	text-transform: capitalize;
	color: #000;
	overflow-wrap: anywhere;
}
.fs-modal__count {
	flex: none;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: #81848a;
	padding-bottom: 6px;
}

.fs-modal button.fs-modal__close {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 3;
	width: 46px;
	height: 46px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #f2f2f2;
	color: #000;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.fs-modal button.fs-modal__close:hover,
.fs-modal button.fs-modal__close:focus-visible { background: #000; color: #fff; transform: rotate(90deg); }

.fs-modal__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 220px;
	height: min(58vh, 620px);
	border-radius: 16px;
	overflow: hidden;
	background: #eee;
	touch-action: pan-y;
}
.fs-modal__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 0;
	transition: opacity .35s ease, transform .6s ease;
}
.fs-modal--edges .fs-modal__img { object-fit: contain; }
.fs-modal__img.is-loading { opacity: 0; transform: scale(1.015); }

.fs-modal button.fs-modal__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 52px;
	height: 52px;
	padding: 0;
	margin-top: -26px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #000;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.fs-modal button.fs-modal__nav:hover,
.fs-modal button.fs-modal__nav:focus-visible { background: #000; color: #fff; }
.fs-modal button.fs-modal__nav--prev { left: 18px; }
.fs-modal button.fs-modal__nav--next { right: 18px; }
.fs-modal button.fs-modal__nav--prev:hover { transform: translateX(-2px); }
.fs-modal button.fs-modal__nav--next:hover { transform: translateX(2px); }

.fs-modal__thumbs-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}
.fs-modal__thumbs {
	flex: 1 1 auto;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding: 4px 2px;
}
.fs-modal__thumbs::-webkit-scrollbar { display: none; }

.fs-modal button.fs-thumb {
	position: relative;
	flex: 0 0 auto;
	width: 116px;
	height: 76px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #eee;
	cursor: pointer;
	scroll-snap-align: center;
	opacity: .55;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: opacity .2s ease, outline-color .2s ease;
}
.fs-modal button.fs-thumb img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.fs-modal button.fs-thumb:hover { opacity: .9; }
.fs-modal button.fs-thumb.is-active { opacity: 1; outline-color: #000; }

.fs-modal button.fs-modal__scroll {
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #fff;
	color: #000;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.fs-modal button.fs-modal__scroll:hover { background: #000; color: #fff; border-color: #000; }

.fs-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}
.fs-modal .fs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 999px;
	font-family: var(--fs-font);
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fs-modal button.fs-btn--ghost { background: #fff; color: #000; border: 1.5px solid #000; }
.fs-modal button.fs-btn--ghost:hover { background: #f2f2f2; color: #000; }
.fs-modal a.fs-btn--dark { background: #000; color: #fff; border: 1.5px solid #000; }
.fs-modal a.fs-btn--dark:hover { background: #222; color: #fff; }

@media (max-width: 1024px) {
	.fs-modal .fs-modal__title { font-size: 32px; }
	.fs-modal__stage { height: min(48vh, 520px); }
}

@media (max-width: 767px) {
	.fs-modal { padding: 0; }
	.fs-modal__dialog {
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
		padding: 70px 16px 18px;
		gap: 14px;
	}
	.fs-modal button.fs-modal__close { top: 14px; right: 14px; width: 42px; height: 42px; }
	.fs-modal__head { padding-right: 52px; align-items: flex-start; flex-direction: column; gap: 4px; margin-top: auto; }
	.fs-modal .fs-modal__title { font-size: 26px; }
	.fs-modal__count { padding: 0; }
	.fs-modal__stage { flex: 0 0 auto; height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 12px; }
	.fs-modal__actions { margin-top: auto; }
	.fs-modal button.fs-modal__nav { width: 42px; height: 42px; margin-top: -21px; }
	.fs-modal button.fs-modal__nav--prev { left: 10px; }
	.fs-modal button.fs-modal__nav--next { right: 10px; }
	.fs-modal button.fs-modal__scroll { display: none; }
	.fs-modal button.fs-thumb { width: 84px; height: 60px; }
	.fs-modal__actions { justify-content: stretch; }
	.fs-modal .fs-btn { flex: 1 1 0; padding: 0 14px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.fs-modal, .fs-modal__dialog, .fs-modal__img, .fs-products .fs-card__img { transition: none !important; }
}

/* ==========================================================================
   Single Remnant (Figma 176:75)
   ========================================================================== */

.fs-single-remnant {
	display: block;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 1em !important;
	box-sizing: border-box;
}

.fs-remnant {
	--fs-font: "PP Mori", sans-serif;
	--fs-poppins: "Poppins", sans-serif;
	width: 100%;
	max-width: 90%;
	margin: 0 auto;
	padding: 100px 0 110px;
	font-family: var(--fs-font);
	color: #000;
}
.fs-remnant *, .fs-remnant *::before, .fs-remnant *::after { box-sizing: border-box; }

.fs-remnant__hero {
	display: grid;
	grid-template-columns: 59fr 35fr;
	column-gap: 5.4%;
	align-items: start;
}
.fs-remnant__media {
	position: relative;
	width: 100%;
	aspect-ratio: 989 / 580;
	overflow: hidden;
	background: #eee;
}
.fs-remnant__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
}
.fs-remnant .fs-remnant__title {
	margin: 0 0 33px;
	padding: 0;
	font-family: var(--fs-font);
	font-size: 47.3px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	color: #000;
}
.fs-remnant__desc {
	max-width: 600px;
	font-family: var(--fs-font);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.05;
	color: #000;
}
.fs-remnant__desc p { margin: 0 0 .6em; }
.fs-remnant__desc p:last-child { margin-bottom: 0; }

.fs-remnant__specs {
	width: 100%;
	max-width: 412px;
	margin: 110px 0 0;
	padding: 0;
}
.fs-remnant__row {
	display: grid;
	grid-template-columns: 283px 1fr;
	align-items: end;
	padding: 0 0 6px;
	margin: 0 0 20px;
	border-bottom: 1px solid #000;
	font-family: var(--fs-poppins);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}
.fs-remnant__row:last-child { margin-bottom: 0; }
.fs-remnant__row dt, .fs-remnant__row dd { margin: 0; padding: 0; font: inherit; color: #000; }

.fs-remnant .fs-remnant__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 303px;
	height: 47px;
	margin-top: 64px;
	padding: 0 30px;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-family: var(--fs-poppins);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}
.fs-remnant .fs-remnant__btn:hover,
.fs-remnant .fs-remnant__btn:focus { background: #222; color: #fff; transform: translateY(-1px); }

.fs-remnant__related { margin-top: 180px; }
.fs-remnant .fs-remnant__related-title {
	margin: 0 0 62px;
	padding: 0;
	font-family: var(--fs-font);
	font-size: 47.3px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	color: #000;
}
.fs-remnant__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 22px;
	row-gap: 40px;
}
.fs-remnant .fs-remnant__card { display: flex; flex-direction: column; text-decoration: none; color: #000; }
.fs-remnant__card-media {
	position: relative;
	display: block;
	width: 100%;
	height: 310px;
	overflow: hidden;
	background: #eee;
}
.fs-remnant__card-media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform .6s ease;
}
.fs-remnant__card:hover .fs-remnant__card-media img { transform: scale(1.03); }
.fs-remnant__card-title {
	display: block;
	margin-top: 18px;
	font-family: var(--fs-poppins);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	color: #000;
}

@media (min-width: 1025px) and (max-width: 1680px) {
	.fs-remnant .fs-remnant__title { font-size: 40px; }
	.fs-remnant__desc { font-size: 20px; }
	.fs-remnant__specs { margin-top: 70px; }
	.fs-remnant__row { grid-template-columns: 55% 1fr; font-size: 18px; }
	.fs-remnant__card-media { height: 240px; }
	.fs-remnant .fs-remnant__related-title { font-size: 40px; }
	.fs-remnant__related { margin-top: 140px; }
}

@media (max-width: 1024px) {
	.fs-remnant { padding: 60px 0 80px; }
	.fs-remnant__hero { grid-template-columns: 1fr; row-gap: 40px; }
	.fs-remnant .fs-remnant__title { font-size: 36px; margin-bottom: 20px; }
	.fs-remnant__desc { font-size: 20px; max-width: none; }
	.fs-remnant__specs { margin-top: 40px; max-width: 100%; }
	.fs-remnant__row { grid-template-columns: 50% 1fr; font-size: 18px; }
	.fs-remnant .fs-remnant__btn { margin-top: 40px; }
	.fs-remnant__related { margin-top: 90px; }
	.fs-remnant .fs-remnant__related-title { font-size: 34px; margin-bottom: 36px; }
	.fs-remnant__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fs-remnant__card-media { height: 260px; }
}

@media (max-width: 767px) {
	.fs-remnant { max-width: 100%; padding: 32px 0 60px; }
	.fs-remnant .fs-remnant__title { font-size: 30px; }
	.fs-remnant__desc { font-size: 17px; line-height: 1.3; }
	.fs-remnant__row { font-size: 16px; }
	.fs-remnant .fs-remnant__btn { width: 100%; min-width: 0; }
	.fs-remnant .fs-remnant__related-title { font-size: 28px; }
	.fs-remnant__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 28px; }
	.fs-remnant__card-media { height: 160px; }
	.fs-remnant__card-title { font-size: 15px; margin-top: 10px; }
}
