/* GT Filters – speaks the homepage's language: plum on cream, ink outlines, pill controls, flat surfaces. */
.gtf-panel, .gtf-bar, .gtf-loadmore, .gtf-overlay {
	--gtf-cream: #FAF7FD;
	--gtf-paper: #FFFFFF;
	--gtf-ink: #1D1226;
	--gtf-ink-2: #4A3A57;
	--gtf-plum: #7D0F82;
	--gtf-plum-deep: #3A0D42;
	--gtf-lilac: #D9C2F0;
	--gtf-lilac-soft: #E9DEF7;
	--gtf-apricot: #FFB877;
	--gtf-line: rgba(29, 18, 38, .12);
	--gtf-ease: cubic-bezier(.2, .7, .2, 1);
	--gtf-display: 'Secular One', 'Heebo', 'Assistant', sans-serif;
}
.gtf-panel, .gtf-bar {
	box-sizing: border-box;
	font-family: inherit;
	color: var(--gtf-ink);
	direction: rtl;
	text-align: right;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.gtf-panel *, .gtf-bar *, .gtf-panel *::before, .gtf-panel *::after { box-sizing: border-box; }
.gtf-panel ::selection, .gtf-bar ::selection { background: var(--gtf-lilac); color: var(--gtf-plum-deep); }

/* the theme styles every <button>; start each of ours from zero */
.gtf-panel button, .gtf-bar button, .gtf-loadmore {
	font: inherit; letter-spacing: 0; text-transform: none; line-height: 1.2;
	margin: 0; box-shadow: none; cursor: pointer;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.gtf-panel :focus-visible, .gtf-bar :focus-visible, .gtf-loadmore:focus-visible {
	outline: 3px solid var(--gtf-plum); outline-offset: 3px;
}

/* ================= toolbar ================= */
.gtf-bar { width: 100%; margin: 0 0 18px; }
.gtf-bar-main {
	display: flex; align-items: center; gap: 10px;
	position: sticky; top: 0; z-index: 30;
	background: var(--gtf-paper); padding: 8px 0;
}
.gtf-bar .gtf-open {
	display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
	height: 48px; padding: 0 22px;
	background: var(--gtf-plum); color: #fff; border: 0; border-radius: 999px;
	font-weight: 700; font-size: 16px;
	transition: background .2s, transform .2s var(--gtf-ease);
}
.gtf-bar .gtf-open:hover, .gtf-bar .gtf-open:focus { background: var(--gtf-plum-deep); color: #fff; }
.gtf-bar .gtf-open:active { transform: scale(.97); }
.gtf-bar .gtf-open .gtf-n { background: var(--gtf-apricot); color: var(--gtf-ink); }
.gtf-n {
	display: inline-grid; place-items: center;
	min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--gtf-lilac-soft); color: var(--gtf-plum);
	font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.gtf-sort { flex: 1 1 auto; margin: 0; min-width: 0; display: block; }
.gtf-bar .gtf-sort select {
	width: 100%; height: 48px; margin: 0;
	padding: 0 18px; padding-inline-end: 42px;
	border: 2px solid var(--gtf-ink); border-radius: 999px;
	background-color: var(--gtf-paper); color: var(--gtf-ink);
	font: inherit; font-size: 15px; font-weight: 600;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231D1226' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 18px center;
	transition: border-color .2s;
}
.gtf-bar .gtf-sort select:hover, .gtf-bar .gtf-sort select:focus { border-color: var(--gtf-plum); }
.gtf-total {
	flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--gtf-ink-2);
	white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* shortcuts: the homepage's outlined chips */
.gtf-quick {
	display: flex; gap: 8px; overflow-x: auto;
	margin: 4px -16px 0; padding: 2px 16px 6px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gtf-quick::-webkit-scrollbar { display: none; }
.gtf-bar .gtf-jump {
	flex: 0 0 auto; height: 40px; padding: 0 16px;
	background: transparent; color: var(--gtf-ink);
	border: 1.5px solid var(--gtf-ink); border-radius: 999px;
	font-size: 14px; font-weight: 600;
	transition: background .2s, color .2s;
}
.gtf-bar .gtf-jump:hover, .gtf-bar .gtf-jump:focus { background: var(--gtf-ink); color: var(--gtf-cream); }
.gtf-bar .gtf-jump.is-on, .gtf-bar .gtf-jump.is-on:hover { background: var(--gtf-plum); border-color: var(--gtf-plum); color: #fff; }

/* active choices */
.gtf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; }
.gtf-bar .gtf-chip {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 36px; padding: 0 14px;
	background: var(--gtf-lilac-soft); color: var(--gtf-plum-deep);
	border: 0; border-radius: 999px; font-size: 14px; font-weight: 600;
	transition: background .2s, color .2s;
}
.gtf-bar .gtf-chip svg { opacity: .6; transition: opacity .2s; }
.gtf-bar .gtf-chip:hover, .gtf-bar .gtf-chip:focus { background: var(--gtf-lilac); color: var(--gtf-plum-deep); }
.gtf-bar .gtf-chip:hover svg { opacity: 1; }
.gtf-bar .gtf-chip-clear, .gtf-bar .gtf-chip-clear:hover, .gtf-bar .gtf-chip-clear:focus {
	background: none; color: var(--gtf-ink); padding: 0 6px; border-radius: 0;
	font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.gtf-bar .gtf-chip-clear:hover { color: var(--gtf-plum); }

@media (max-width: 420px) {
	.gtf-bar-main { gap: 8px; }
	.gtf-bar .gtf-open { padding: 0 18px; }
	.gtf-bar .gtf-sort select { padding: 0 14px; padding-inline-end: 34px; font-size: 14.5px; background-position: left 14px center; }
	.gtf-total { font-size: 13px; }
}

/* desktop: the panel sits in the sidebar, so the bar keeps only count + sort */
.gtf-bar-inline .gtf-open, .gtf-bar-inline .gtf-quick { display: none; }
.gtf-bar-inline .gtf-bar-main { position: static; justify-content: space-between; padding: 0; }
.gtf-bar-inline .gtf-sort { flex: 0 1 280px; order: 2; }
.gtf-bar-inline .gtf-total { font-size: 15px; }

/* ================= panel ================= */
.gtf-panel { background: var(--gtf-paper); margin: 0; }
.gtf-head {
	position: relative; display: flex; align-items: center; justify-content: space-between;
}
.gtf-head strong { font-family: var(--gtf-display); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--gtf-ink); }
/* brand DNA: the homepage's corner mark */
.gtf-head::before, .gtf-head::after {
	content: ""; position: absolute; top: 0; left: 0; background: var(--gtf-plum); border-radius: 1px; pointer-events: none;
}
.gtf-head::before { width: 22px; height: 3px; }
.gtf-head::after { width: 3px; height: 22px; }

.gtf-group { border-bottom: 1px solid var(--gtf-line); }
.gtf-group:last-of-type { border-bottom: 0; }
.gtf-group > summary {
	display: flex; align-items: center; gap: 10px;
	min-height: 56px; padding: 0; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 17px; color: var(--gtf-ink);
	-webkit-tap-highlight-color: transparent;
}
.gtf-group > summary::-webkit-details-marker { display: none; }
.gtf-group > summary::after {
	content: ""; margin-inline-start: auto; flex: 0 0 auto;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--gtf-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231D1226' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center no-repeat;
	transition: transform .3s var(--gtf-ease), background-color .2s;
}
.gtf-group[open] > summary::after { transform: rotate(180deg); }
.gtf-group > summary:hover::after { background-color: var(--gtf-lilac-soft); }

.gtf-panel .gtf-search {
	display: block; width: 100%; height: 44px; margin: 0 0 10px;
	padding: 0 16px; padding-inline-start: 42px;
	border: 2px solid var(--gtf-ink); border-radius: 999px;
	background: var(--gtf-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234A3A57' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") right 14px center no-repeat;
	color: var(--gtf-ink); font: inherit; font-size: 16px; caret-color: var(--gtf-plum);
	-webkit-appearance: none; appearance: none; outline: none; box-shadow: none;
	transition: border-color .2s;
}
.gtf-panel .gtf-search::placeholder { color: var(--gtf-ink-2); opacity: 1; }
.gtf-panel .gtf-search:focus { border-color: var(--gtf-plum); }
.gtf-panel .gtf-search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- option rows ---- */
.gtf-opts { padding-bottom: 12px; }
.gtf-opt { display: block; margin: 0; cursor: pointer; position: relative; }
.gtf-opt input {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.gtf-face {
	display: flex; align-items: center; gap: 12px;
	min-height: 46px; padding: 0 6px; margin: 0 -6px; border-radius: 12px;
	font-size: 15.5px; font-weight: 500;
	transition: background .15s;
}
.gtf-face::before {
	content: ""; flex: 0 0 auto; width: 22px; height: 22px;
	border: 2px solid var(--gtf-ink); border-radius: 7px; background: var(--gtf-paper) center / 0 no-repeat;
	transition: background-color .18s, border-color .18s, background-size .22s var(--gtf-ease);
}
.gtf-opt input:checked + .gtf-face::before {
	border-color: var(--gtf-plum);
	background-color: var(--gtf-plum);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	background-size: 16px;
}
.gtf-opt input:checked + .gtf-face { font-weight: 700; }
.gtf-opt input:focus-visible + .gtf-face { outline: 3px solid var(--gtf-plum); outline-offset: 2px; }
.gtf-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtf-face em {
	flex: 0 0 auto; font-style: normal; font-size: 13px; font-weight: 600;
	color: var(--gtf-ink-2); font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
	.gtf-opt:hover .gtf-face { background: var(--gtf-cream); }
}

/* ---- pill options (models, sizes, gender) ---- */
.gtf-pills .gtf-opts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.gtf-pills .gtf-face {
	min-height: 42px; margin: 0; padding: 0 15px; gap: 8px;
	border: 1.5px solid var(--gtf-ink); border-radius: 999px;
	background: transparent; font-size: 14.5px; font-weight: 600;
	transition: background .18s, color .18s, border-color .18s, transform .2s var(--gtf-ease);
}
.gtf-pills .gtf-face::before { display: none; }
.gtf-pills .gtf-name { overflow: visible; }
.gtf-pills .gtf-face em { font-size: 12.5px; opacity: .75; color: inherit; }
.gtf-pills .gtf-opt input:checked + .gtf-face {
	background: var(--gtf-plum); border-color: var(--gtf-plum); color: #fff; font-weight: 700;
}
.gtf-pills .gtf-opt:active .gtf-face { transform: scale(.96); }
@media (hover: hover) {
	.gtf-pills .gtf-opt:hover .gtf-face { background: var(--gtf-ink); border-color: var(--gtf-ink); color: var(--gtf-cream); }
	.gtf-pills .gtf-opt:hover input:checked + .gtf-face { background: var(--gtf-plum-deep); border-color: var(--gtf-plum-deep); }
}

.gtf-opt.gtf-extra { display: none; }
.gtf-all .gtf-opt.gtf-extra, .gtf-searching .gtf-opt.gtf-extra { display: block; }
.gtf-opt.gtf-miss, .gtf-searching .gtf-opt.gtf-miss { display: none; }
.gtf-searching .gtf-more { display: none; }
.gtf-all:not(.gtf-pills) .gtf-opts {
	max-height: 330px; overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: var(--gtf-lilac) transparent;
}
.gtf-panel .gtf-more {
	display: inline-block; background: none; border: 0; border-radius: 0; padding: 0; margin: -2px 0 16px;
	color: var(--gtf-ink); font-size: 14.5px; font-weight: 700;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.gtf-panel .gtf-more:hover, .gtf-panel .gtf-more:focus { background: none; color: var(--gtf-plum); }

/* ---- price ---- */
.gtf-price-row { display: flex; gap: 10px; padding-bottom: 18px; }
.gtf-price-row label {
	display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; margin: 0;
	height: 48px; padding: 0 16px;
	border: 2px solid var(--gtf-ink); border-radius: 999px; background: var(--gtf-paper);
	font-size: 14px; font-weight: 600; color: var(--gtf-ink-2); white-space: nowrap;
	transition: border-color .2s;
}
.gtf-price-row label:focus-within { border-color: var(--gtf-plum); }
.gtf-panel .gtf-price-row input {
	flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
	color: var(--gtf-ink); font: inherit; font-size: 16px; font-weight: 700;
	font-variant-numeric: tabular-nums; caret-color: var(--gtf-plum);
	-moz-appearance: textfield; appearance: textfield;
}
.gtf-price-row input::-webkit-outer-spin-button, .gtf-price-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gtf-price-row input::placeholder { color: var(--gtf-ink-2); font-weight: 500; opacity: .7; }

.gtf-foot { display: none; }

/* ================= desktop sidebar ================= */
.gtf-inline {
	width: 100%; background: var(--gtf-cream); border-radius: 28px; padding: 26px 24px 10px;
}
.gtf-inline .gtf-head { padding: 14px 0 12px 16px; }
.gtf-panel.gtf-inline .gtf-close { display: none; }
.gtf-inline .gtf-face { min-height: 40px; font-size: 15px; }
.gtf-inline .gtf-group > summary { min-height: 54px; font-size: 16.5px; }
.gtf-inline .gtf-group > summary::after { background-color: var(--gtf-paper); }
.gtf-inline .gtf-pills .gtf-face { min-height: 38px; padding: 0 13px; font-size: 14px; background: var(--gtf-paper); }
@media (hover: hover) {
	.gtf-inline .gtf-opt:hover .gtf-face { background: var(--gtf-paper); }
	.gtf-inline.gtf-panel .gtf-pills .gtf-opt:hover .gtf-face { background: var(--gtf-ink); }
	.gtf-inline.gtf-panel .gtf-pills .gtf-opt:hover input:checked + .gtf-face { background: var(--gtf-plum-deep); }
}
.gtf-inline .gtf-pills .gtf-opt input:checked + .gtf-face { background: var(--gtf-plum); }

/* ================= mobile sheet ================= */
.gtf-overlay {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(58, 13, 66, .55); opacity: 0; visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.gtf-overlay.is-open { opacity: 1; visibility: visible; }

.gtf-sheet {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
	display: flex; flex-direction: column;
	height: 90vh; height: 90dvh; max-height: 100%;
	border-radius: 28px 28px 0 0; overflow: hidden;
	box-shadow: 0 -18px 50px -12px rgba(58, 13, 66, .35);
	transform: translateY(104%); visibility: hidden;
	transition: transform .42s var(--gtf-ease), visibility .42s;
}
.gtf-sheet.is-open { transform: none; visibility: visible; }
.gtf-sheet .gtf-head {
	flex: 0 0 auto; margin: 22px 20px 0; padding: 14px 0 14px 18px;
	border-bottom: 1px solid var(--gtf-line);
}
.gtf-panel .gtf-close {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
	background: var(--gtf-ink); color: var(--gtf-cream); border: 0; border-radius: 50%;
	transition: background .25s, transform .25s var(--gtf-ease);
}
.gtf-panel .gtf-close:hover, .gtf-panel .gtf-close:focus { background: var(--gtf-plum); color: #fff; }
.gtf-panel .gtf-close:active { transform: scale(.92); }
.gtf-sheet .gtf-body {
	flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 12px;
	overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	scrollbar-width: thin; scrollbar-color: var(--gtf-lilac) transparent;
}
.gtf-sheet .gtf-foot {
	display: flex; align-items: center; gap: 14px; flex: 0 0 auto;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	background: var(--gtf-cream); border-top: 1px solid var(--gtf-line);
}
.gtf-panel .gtf-clear {
	flex: 0 0 auto; height: 54px; padding: 0 8px;
	background: none; color: var(--gtf-ink); border: 0; border-radius: 0;
	font-size: 15px; font-weight: 700;
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.gtf-panel .gtf-clear:hover, .gtf-panel .gtf-clear:focus { background: none; color: var(--gtf-plum); }
.gtf-panel .gtf-apply {
	flex: 1 1 auto; height: 54px; padding: 0 22px;
	background: var(--gtf-plum); color: #fff; border: 0; border-radius: 999px;
	font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums;
	transition: background .2s, transform .2s var(--gtf-ease);
}
.gtf-panel .gtf-apply:hover, .gtf-panel .gtf-apply:focus { background: var(--gtf-plum-deep); color: #fff; }
.gtf-panel .gtf-apply:active { transform: scale(.98); }
html.gtf-lock, html.gtf-lock body { overflow: hidden; }
/* while the sheet is open, the floating side-cart button (z 9999999) and the accessibility toggle (z 99999999)
   would sit on top of it and cover the apply button and the facet counts - hide them for that moment only */
html.gtf-lock .xoo-wsc-basket, html.gtf-lock .toggle_sogoacc, html.gtf-lock .sogo-accessibility-icon { visibility: hidden !important; }

/* ================= grid states ================= */
.gtf-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }
.gtf-loadmore {
	display: flex; align-items: center; justify-content: center;
	margin: 28px auto 0; height: 54px; padding: 0 34px;
	background: var(--gtf-ink); color: var(--gtf-cream); border: 0; border-radius: 999px;
	font-size: 16px; font-weight: 700;
	transition: background .2s, transform .2s var(--gtf-ease);
}
.gtf-loadmore:hover, .gtf-loadmore:focus { background: var(--gtf-plum); color: #fff; }
.gtf-loadmore:active { transform: scale(.97); }
.gtf-loadmore[hidden] { display: none; }
.gtf-loadmore:disabled { opacity: .55; }

@media (prefers-reduced-motion: reduce) {
	.gtf-sheet, .gtf-overlay, .gtf-group > summary::after, .gtf-face, .gtf-face::before,
	.gtf-bar .gtf-open, .gtf-panel .gtf-apply, .gtf-panel .gtf-close, .gtf-loadmore { transition: none; }
}
