/*
 * Search4U shop, category and brand pages (round 3 redesign).
 * Loaded after s4u.css and s4u-round2.css.
 *
 * Layout: green hero > quick chips > filter card + (toolbar, grid, pagination).
 * Tablet: filters slide in from the left. Phone: filters open as a bottom sheet.
 */

.s4u-shop {
	--shop-radius: 16px;
	--shop-line: #e4e7ee;
	--shop-ink: #111418;
	--shop-soft: #5d636d;
	--shop-bg: #f3f4f8;
	--shop-green: var(--s4u-green, #1d4c2e);
	--shop-green-dark: var(--s4u-green-dark, #143821);
	--shop-pink: var(--s4u-pink, #ef3659);
	font-family: var(--s4u-font-ui);
	color: var(--shop-ink);
}

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

body .s4u-shop .s4u-shop__hero {
	position: relative;
	overflow: hidden;
	padding: 34px 40px 32px;
	border-radius: 22px;
	background: #e6eaed;
	color: var(--shop-ink);
	isolation: isolate;
}

/* Dotted texture on the right, fading out to the left */
body .s4u-shop .s4u-shop__hero::after {
	content: "";
	position: absolute;
	inset: 0 0 0 45%;
	z-index: -1;
	background-image: radial-gradient(rgba(17, 20, 24, 0.09) 1px, transparent 1.4px);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	pointer-events: none;
}

.s4u-crumbs--light,
.s4u-crumbs--light .woocommerce-breadcrumb {
	color: #6b717a;
	font-size: 13px;
}

.s4u-crumbs--light .woocommerce-breadcrumb a {
	color: #3d434b;
}

.s4u-crumbs--light .woocommerce-breadcrumb a:hover {
	color: var(--shop-ink);
}

body .s4u-shop .s4u-shop__title h1,
body .s4u-shop .s4u-shop__title .woocommerce-products-header__title {
	margin: 2px 0 0;
	color: var(--shop-ink);
	font-family: var(--s4u-font-din);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
}

.s4u-hero-intro__text {
	max-width: 620px;
	margin: 0;
	color: #4a5059;
	font-size: 16px;
	line-height: 1.55;
}

.s4u-hero-intro__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.s4u-hero-intro__points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 10px;
	border: 1px solid rgba(17, 20, 24, 0.1);
	border-radius: 999px;
	background: #fff;
	color: var(--shop-ink);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.s4u-hero-intro__points svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: var(--shop-green);
}

/* Brand logo tile on the light banner: softer shadow */
.s4u-shop .s4u-hero-intro__logo {
	box-shadow: 0 4px 14px rgba(17, 20, 24, 0.08);
}

/* ---------- Quick chips ---------- */

.s4u-chips__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 2px 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.s4u-chips__list::-webkit-scrollbar {
	display: none;
}

.s4u-chips__link {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border: 1px solid var(--shop-line);
	border-radius: 999px;
	background: #fff;
	color: var(--shop-ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.s4u-chips__link:hover {
	border-color: var(--shop-ink);
	color: var(--shop-ink);
}

.s4u-chips__link.is-active {
	border-color: var(--shop-ink);
	background: var(--shop-ink);
	color: #fff;
}

.s4u-chips__link.is-brand::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--shop-pink);
}

.s4u-chips__link:focus-visible,
.s4u-filters-toggle:focus-visible,
.s4u-filters__apply:focus-visible,
.s4u-shop .jet-filter-label:focus-visible {
	outline: 2px solid var(--s4u-link);
	outline-offset: 2px;
}

/* ---------- Two columns ---------- */

body .s4u-shop .s4u-shop__body > .s4u-shop__filters {
	--width: 280px;
	flex: 0 0 280px;
	width: 280px;
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 4px 20px 18px;
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius);
	background: #fff;
	scrollbar-width: thin;
}

body .s4u-shop .s4u-shop__body > .s4u-shop__main {
	--width: auto;
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- Filter card ---------- */

.s4u-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0 12px;
}

.s4u-filters__title {
	font-family: var(--s4u-font-din);
	font-size: 20px;
	font-weight: 600;
}

.s4u-filters__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--shop-bg);
	color: var(--shop-ink);
	cursor: pointer;
}

.s4u-filters__close svg {
	width: 18px;
	height: 18px;
}

.s4u-filters__bottom {
	display: none;
}

.s4u-shop .s4u-filter {
	padding: 16px 0;
	border-top: 1px solid #eef0f4;
}

.s4u-shop .s4u-filter .jet-filter-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
	color: var(--shop-ink);
	font-family: var(--s4u-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	cursor: pointer;
	user-select: none;
}

.s4u-shop .s4u-filter .jet-filter-label::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-right: 3px;
	border-right: 1.6px solid #8a909a;
	border-bottom: 1.6px solid #8a909a;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.s4u-shop .s4u-filter.is-collapsed .jet-filter-label {
	margin-bottom: 0;
}

.s4u-shop .s4u-filter.is-collapsed .jet-filter-label::after {
	transform: translateY(2px) rotate(-135deg);
}

.s4u-shop .s4u-filter.is-collapsed .jet-filter-label ~ * {
	display: none !important;
}

/* Checkbox list (Category, Brand) */
.s4u-shop .s4u-filter .jet-checkboxes-list-wrapper {
	margin: 0;
	padding: 0;
	border: 0;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__row {
	display: block;
	margin: 0;
	padding: 0;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__item {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__button {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 8px;
	margin: 0 -8px;
	border-radius: 8px;
	color: #2b2f36;
	font-family: var(--s4u-font-din);
	font-size: 16px;
	line-height: 1.3;
	transition: background-color 0.15s ease;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__item:hover .jet-checkboxes-list__button {
	background: var(--shop-bg);
}

.s4u-shop .s4u-filter .jet-checkboxes-list__decorator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	min-width: 20px;
	min-height: 20px;
	margin: 0;
	border: 1.6px solid #b4bac4;
	border-radius: 6px;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Our own tick replaces the plugin icon */
.s4u-shop .s4u-filter .jet-checkboxes-list__checked-icon {
	display: none !important;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator {
	border-color: var(--shop-green);
	background: var(--shop-green);
}

/* Tick */
.s4u-shop .s4u-filter .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button .jet-checkboxes-list__decorator::after {
	content: "";
	width: 5px;
	height: 10px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-1px) rotate(45deg);
}

.s4u-shop .s4u-filter .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button {
	color: var(--shop-ink);
	font-weight: 500;
}

.s4u-shop .s4u-filter .jet-checkboxes-list__input:focus-visible + .jet-checkboxes-list__button {
	outline: 2px solid var(--s4u-link);
	outline-offset: 1px;
}

.s4u-shop .s4u-filter .jet-filter-items-moreless {
	margin-top: 6px;
	text-align: left;
}

.s4u-shop .s4u-filter .jet-filter-items-moreless__toggle {
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: var(--s4u-link);
	font-family: var(--s4u-font-ui);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

/* Chip filters (Processor, RAM, Storage) */
.s4u-shop .s4u-filter--chips .jet-checkboxes-list-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.s4u-shop .s4u-filter--chips .jet-checkboxes-list__row {
	display: inline-flex;
}

.s4u-shop .s4u-filter--chips .jet-checkboxes-list__row.jet-filter-row-hide,
.s4u-shop .s4u-filter .jet-filter-row-hide {
	display: none;
}

.s4u-shop .s4u-filter--chips .jet-checkboxes-list__button {
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--shop-line);
	border-radius: 999px;
	background: #fff;
	font-family: var(--s4u-font-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.s4u-shop .s4u-filter--chips .jet-checkboxes-list__item:hover .jet-checkboxes-list__button {
	border-color: var(--shop-ink);
	background: #fff;
}

.s4u-shop .s4u-filter--chips .jet-checkboxes-list__decorator {
	display: none;
}

.s4u-shop .s4u-filter--chips .jet-checkboxes-list__input:checked + .jet-checkboxes-list__button {
	border-color: var(--shop-green);
	background: var(--shop-green);
	color: #fff;
}

/* Price range */
.s4u-shop .s4u-filter--price .jet-range {
	padding: 4px 2px 0;
}

.s4u-shop .s4u-filter--price .jet-range__slider__track {
	height: 4px;
	border-radius: 4px;
	background: #e3e6ec;
}

.s4u-shop .s4u-filter--price .jet-range__slider__track__range,
.s4u-shop .s4u-filter--price .jet-range__slider__track-range {
	height: 4px;
	border-radius: 4px;
	background: var(--shop-green);
}

.s4u-shop .s4u-filter--price .jet-range__slider__input::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--shop-green);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	cursor: grab;
}

.s4u-shop .s4u-filter--price .jet-range__slider__input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--shop-green);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	cursor: grab;
}

.s4u-shop .s4u-filter--price .jet-range__inputs__container {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	max-width: none;
}

.s4u-shop .s4u-filter--price .jet-range__inputs__group {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 10px;
	border: 1px solid var(--shop-line);
	border-radius: 10px;
	background: #fff;
}

.s4u-shop .s4u-filter--price .jet-range__inputs__group:focus-within {
	border-color: var(--shop-ink);
}

.s4u-shop .s4u-filter--price .jet-range__inputs__group__text {
	color: var(--shop-soft);
	font-size: 13px;
}

.s4u-shop .s4u-filter--price .jet-range__inputs__group input {
	width: 100%;
	min-width: 0;
	padding: 9px 4px;
	border: 0;
	background: transparent;
	font-family: var(--s4u-font-din);
	font-size: 15px;
	outline: 0;
}

.s4u-shop .s4u-filter--price .jet-range__values {
	margin-top: 10px;
	color: var(--shop-soft);
	font-family: var(--s4u-font-din);
	font-size: 14px;
	text-align: left;
}

/* Clear all */
.s4u-shop .s4u-filter-clear {
	padding-top: 14px;
	border-top: 1px solid #eef0f4;
}

.s4u-shop .s4u-filter-clear .jet-remove-all-filters__button {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--shop-ink);
	border-radius: 10px;
	background: #fff;
	color: var(--shop-ink);
	font-family: var(--s4u-font-ui);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.s4u-shop .s4u-filter-clear .jet-remove-all-filters__button:hover {
	background: var(--shop-ink);
	color: #fff;
}

/* ---------- Toolbar ---------- */

body .s4u-shop .s4u-shop__toolbar {
	padding: 10px 12px 10px 18px;
	border: 1px solid var(--shop-line);
	border-radius: 14px;
	background: #fff;
}

body .s4u-shop .s4u-shop__toolbar > .elementor-element {
	--width: auto;
}

body .s4u-shop .s4u-shop__toolbar > .s4u-shop__active {
	flex: 1 1 auto;
	min-width: 0;
}

.s4u-shop__toggle {
	display: none;
}

.s4u-filters-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 16px;
	border: 1px solid var(--shop-ink);
	border-radius: 10px;
	background: var(--shop-ink);
	color: #fff;
	font-family: var(--s4u-font-ui);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.s4u-filters-toggle svg {
	width: 18px;
	height: 18px;
}

.s4u-filters-toggle__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--shop-pink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.s4u-filters-toggle__n[hidden] {
	display: none;
}

.s4u-count {
	margin: 0;
	color: var(--shop-soft);
	font-size: 14px;
	white-space: nowrap;
}

.s4u-count__num {
	color: var(--shop-ink);
	font-family: var(--s4u-font-din);
	font-size: 20px;
	font-weight: 700;
}

.s4u-shop__active .jet-active-filters,
.s4u-shop__active .jet-active-filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.s4u-shop__active .jet-active-filters__title {
	display: none;
}

.s4u-shop__active .jet-active-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 8px 6px 12px;
	border: 1px solid #cfe1d5;
	border-radius: 999px;
	background: #edf6f0;
	color: var(--shop-green-dark);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.s4u-shop__active .jet-active-filter:hover {
	background: #dceee2;
}

.s4u-shop__active .jet-active-filter__label {
	display: none;
}

.s4u-shop__active .jet-active-filter__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(20, 56, 33, 0.12);
	color: var(--shop-green-dark);
	font-size: 13px;
	line-height: 1;
}

.s4u-shop .s4u-shop__sort .jet-sorting-select,
.s4u-shop .s4u-shop__sort select {
	min-width: 220px;
	height: 42px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--shop-line);
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
	color: var(--shop-ink);
	font-family: var(--s4u-font-ui);
	font-size: 14px;
	font-weight: 500;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.s4u-shop .s4u-shop__sort select:hover,
.s4u-shop .s4u-shop__sort select:focus {
	border-color: var(--shop-ink);
	outline: 0;
}

/* ---------- Product grid ---------- */

body .s4u-shop .s4u-cards--shop .jet-woo-products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
}

body .s4u-shop .s4u-cards--shop .jet-woo-products .jet-woo-products__item {
	flex: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

body .s4u-shop .s4u-cards--shop .jet-woo-products__inner-box {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px 12px 14px;
	border: 1px solid var(--shop-line);
	border-radius: var(--shop-radius);
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body .s4u-shop .s4u-cards--shop .jet-woo-products__item:hover .jet-woo-products__inner-box {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-thumbnail {
	aspect-ratio: 4 / 3;
	margin: 0 0 14px;
	padding: 16px;
	border-radius: 12px;
	background: linear-gradient(180deg, #f5f6fa 0%, #eceff5 100%);
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-thumbnail a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-title,
body .s4u-shop .s4u-cards--shop .jet-woo-product-title a {
	display: -webkit-box;
	margin: 0 0 6px;
	padding: 0 4px;
	overflow: hidden;
	color: var(--shop-ink);
	font-family: var(--s4u-font-din);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-title a {
	padding: 0;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-excerpt {
	margin: 0 0 12px;
	padding: 0 4px;
	color: var(--shop-soft);
	font-family: var(--s4u-font-ui);
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-price,
body .s4u-shop .s4u-cards--shop .jet-woo-product-price .price {
	margin: 0 0 14px;
	padding: 0 4px;
	color: var(--shop-ink);
	font-family: var(--s4u-font-din);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	text-align: left;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-price .price {
	padding: 0;
	margin: 0;
}

body .s4u-shop .s4u-cards--shop .s4u-price-suffix {
	color: var(--shop-soft);
	font-size: 15px;
	font-weight: 500;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-button {
	margin-top: auto;
	text-align: left;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-button .button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 14px;
	border-radius: 10px;
	background: var(--shop-green);
	color: #fff;
	font-family: var(--s4u-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-button .button::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.4 11h11L21 8H6.2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.4 11h11L21 8H6.2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-button .button:hover {
	background: var(--shop-green-dark);
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-button .button.loading {
	opacity: 0.7;
}

body .s4u-shop .s4u-cards--shop .jet-woo-product-button .added_to_cart {
	display: block;
	margin-top: 8px;
	color: var(--shop-green);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

/* Heart sits on the image */
body .s4u-shop .s4u-cards--shop .jet-wishlist-button__container {
	top: 20px;
	right: 20px;
}

/* No results */
body .s4u-shop .s4u-cards--shop .jet-woo-products__not-found {
	grid-column: 1 / -1;
	margin: 0;
	padding: 56px 24px;
	border: 1px dashed #cdd2db;
	border-radius: var(--shop-radius);
	background: #fff;
	color: var(--shop-soft);
	font-size: 15px;
	text-align: center;
}

/* Loading while filters fetch */
.s4u-shop .jet-filters-loading,
.s4u-shop .s4u-cards--shop.jet-filters-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ---------- Pagination ---------- */

.s4u-shop .s4u-shop__pages .jet-filters-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 8px;
}

.s4u-shop .s4u-shop__pages .jet-filters-pagination__item {
	margin: 0;
}

.s4u-shop .s4u-shop__pages .jet-filters-pagination__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--shop-line);
	border-radius: 10px;
	background: #fff;
	color: var(--shop-ink);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.s4u-shop .s4u-shop__pages .jet-filters-pagination__link:hover {
	border-color: var(--shop-ink);
}

.s4u-shop .s4u-shop__pages .jet-filters-pagination__current .jet-filters-pagination__link {
	border-color: var(--shop-ink);
	background: var(--shop-ink);
	color: #fff;
}

.s4u-shop .s4u-shop__pages .jet-filters-pagination__dots {
	align-self: center;
	color: #8a909a;
}

/* ---------- Laptop ---------- */

@media (max-width: 1280px) {
	body .s4u-shop .s4u-cards--shop .jet-woo-products {
		gap: 16px;
	}

	body .s4u-shop .s4u-shop__body > .s4u-shop__filters {
		--width: 250px;
		flex-basis: 250px;
		width: 250px;
	}
}

/* ---------- Tablet: filters slide in ---------- */

@media (max-width: 1024px) {
	body .s4u-shop .s4u-shop__hero {
		padding: 28px 28px 26px;
		border-radius: 18px;
	}

	.s4u-shop__toggle {
		display: block;
	}

	body .s4u-shop .s4u-shop__body > .s4u-shop__filters {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 1000;
		width: min(360px, 88vw);
		max-height: none;
		padding: 0 22px;
		border: 0;
		border-radius: 0 20px 20px 0;
		box-shadow: 12px 0 40px rgba(0, 0, 0, 0.2);
		visibility: hidden;
		transform: translateX(-105%);
		transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.s4u-filters-open .s4u-shop .s4u-shop__body > .s4u-shop__filters {
		visibility: visible;
		transform: none;
		transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
	}

	.s4u-filters__top {
		position: sticky;
		top: 0;
		z-index: 2;
		background: #fff;
	}

	.s4u-filters__head {
		padding: 18px 0 12px;
	}

	.s4u-filters__close {
		display: inline-flex;
	}

	.s4u-filters__bottom {
		display: block;
		position: sticky;
		bottom: 0;
		z-index: 2;
		margin-top: 8px;
		padding: 12px 0 18px;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 30%);
	}

	.s4u-filters__apply {
		width: 100%;
		height: 48px;
		border: 0;
		border-radius: 12px;
		background: var(--s4u-green, #1d4c2e);
		color: #fff;
		font-family: var(--s4u-font-ui);
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
	}

	.s4u-filters-backdrop {
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(10, 14, 20, 0.5);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.25s ease, visibility 0.25s;
	}

	.s4u-filters-open .s4u-filters-backdrop {
		opacity: 1;
		visibility: visible;
	}

	.s4u-filters-open {
		overflow: hidden;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}
}

/* ---------- Phone: bottom sheet ---------- */

@media (max-width: 767px) {
	body .s4u-shop .s4u-shop__hero {
		padding: 22px 18px 20px;
		border-radius: 16px;
	}

	body .s4u-shop .s4u-shop__hero::after {
		inset: 0 0 0 30%;
	}

	.s4u-hero-intro__text {
		font-size: 14px;
	}

	.s4u-hero-intro__points {
		flex-wrap: nowrap;
		margin-top: 14px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.s4u-hero-intro__points::-webkit-scrollbar {
		display: none;
	}

	.s4u-hero-intro__points li {
		padding: 6px 12px 6px 8px;
		font-size: 12px;
	}

	.s4u-chips__link {
		padding: 8px 14px;
		font-size: 13px;
	}

	body .s4u-shop .s4u-shop__body > .s4u-shop__filters {
		top: auto;
		right: 0;
		width: 100%;
		max-height: 88vh;
		padding: 0 18px;
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
		transform: translateY(105%);
	}

	.s4u-filters__top::before {
		content: "";
		display: block;
		width: 40px;
		height: 4px;
		margin: 10px auto 0;
		border-radius: 4px;
		background: #d5d9e0;
	}

	.s4u-filters__head {
		padding: 8px 0 10px;
	}

	/* Toolbar stays at the top while scrolling */
	body .s4u-shop .s4u-shop__toolbar {
		position: sticky;
		top: 0;
		z-index: 20;
		gap: 10px;
		margin: 0 -12px;
		padding: 10px 12px;
		border: 0;
		border-bottom: 1px solid var(--shop-line);
		border-radius: 0;
		background: rgba(243, 244, 248, 0.94);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	body .s4u-shop .s4u-shop__toolbar > .s4u-shop__toggle {
		order: 1;
		flex: 1 1 calc(50% - 8px);
	}

	body .s4u-shop .s4u-shop__toolbar > .s4u-shop__sort {
		order: 2;
		flex: 1 1 calc(50% - 8px);
		min-width: 0;
	}

	body .s4u-shop .s4u-shop__toolbar > .s4u-shop__count {
		order: 3;
		flex: 0 0 auto;
	}

	body .s4u-shop .s4u-shop__toolbar > .s4u-shop__active {
		order: 4;
		flex: 1 1 100%;
	}

	.s4u-filters-toggle {
		width: 100%;
	}

	.s4u-shop .s4u-shop__sort .jet-sorting-select,
	.s4u-shop .s4u-shop__sort select {
		width: 100%;
		min-width: 0;
		padding: 0 32px 0 12px;
		background-color: #fff;
		background-position: right 12px center;
		font-size: 13px;
	}

	.s4u-count__num {
		font-size: 17px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-products__inner-box {
		padding: 8px 8px 10px;
		border-radius: 14px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-products__item:hover .jet-woo-products__inner-box {
		transform: none;
		box-shadow: none;
		border-color: var(--shop-line);
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-product-thumbnail {
		margin-bottom: 10px;
		padding: 10px;
		border-radius: 10px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-product-title,
	body .s4u-shop .s4u-cards--shop .jet-woo-product-title a {
		font-size: 15px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-product-excerpt {
		margin-bottom: 10px;
		font-size: 12px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-product-price,
	body .s4u-shop .s4u-cards--shop .jet-woo-product-price .price {
		font-size: 19px;
	}

	body .s4u-shop .s4u-cards--shop .s4u-price-suffix {
		font-size: 13px;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-product-button .button {
		padding: 11px 8px;
		font-size: 11px;
		letter-spacing: 0.03em;
	}

	body .s4u-shop .s4u-cards--shop .jet-woo-product-button .button::before {
		display: none;
	}

	body .s4u-shop .s4u-cards--shop .jet-wishlist-button__container {
		top: 14px;
		right: 14px;
	}

	body .s4u-shop .s4u-cards--shop .jet-wishlist-button__link {
		width: 32px;
		height: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.s4u-shop *,
	.s4u-shop *::before,
	.s4u-shop *::after {
		transition: none !important;
	}
}

/* ---------- Related products section (product page) ---------- */

body .s4u-shop.s4u-related .s4u-related__head > .elementor-element {
	--width: auto;
}

body .s4u-shop.s4u-related .s4u-related__titles {
	flex: 1 1 auto;
	min-width: 0;
}

.s4u-related__eyebrow .elementor-heading-title {
	margin: 0;
	color: var(--shop-green);
	font-family: var(--s4u-font-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.s4u-related__title .elementor-heading-title {
	margin: 0;
	color: var(--shop-ink);
	font-family: var(--s4u-font-din);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 600;
	line-height: 1.1;
}

.s4u-related__all .elementor-heading-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	border: 1px solid var(--shop-ink);
	border-radius: 999px;
	background: #fff;
	color: var(--shop-ink);
	font-family: var(--s4u-font-ui);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.s4u-related__all .elementor-heading-title a::after {
	content: "";
	width: 16px;
	height: 10px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.s4u-related__all .elementor-heading-title a:hover {
	background: var(--shop-ink);
	color: #fff;
}

.s4u-related__all .elementor-heading-title a:hover::after {
	transform: translateX(3px);
}

body .s4u-shop.s4u-related .s4u-cards--shop .jet-woo-products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	body .s4u-shop.s4u-related .s4u-cards--shop .jet-woo-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body .s4u-shop.s4u-related .s4u-cards--shop .jet-woo-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.s4u-related__all .elementor-heading-title a {
		padding: 9px 14px;
		font-size: 13px;
	}
}
