/* TGP header search (class-search.php, search.js) — 2026-11-27. Field in the dark header as before (ASP look: 260×36, pill),
   suggestions in a white card in the catalogue style (tokens of rims.css / tyres.css: Montserrat 800 brand, #555 model). */
.tgp-srch{
	--y: #fdb813; --dk: #1e1e1e; --mu: #5b5b5b; --mu2: #999; --ln: #e6e6e6; --soft: #f7f7f7; --pill: #d9d9d9;
	--gr: #29994d; --grbg: #e8f6eb; --grtx: #1a592e; --ntbg: #fff6d9; --nttx: #6b5200; --bl: #4073cc;
	--M: 'Montserrat', sans-serif; --O: 'Open Sans', sans-serif;
	position: relative; font-family: var(--O); line-height: normal; letter-spacing: 0; text-align: left;
}
.tgp-srch *, .tgp-srch *::before, .tgp-srch *::after{ box-sizing: border-box; }
.tgp-srch [hidden]{ display: none !important; }
.tgp-srch .tgp-srch__sr{ position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- field (header) ----------
   One pill: the form carries the background/border, the input inside is fully transparent (the theme styles input[type=search],
   so every property it may set is overridden). Focus = lighter fill + one 1px yellow border, no outline of its own. */
.tgp-srch--desk{ width: 260px; }
.tgp-srch .tgp-srch__form{ display: flex; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 6px 0 16px; border-radius: 22px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; box-shadow: none; transition: border-color .15s, background-color .15s; }
.tgp-srch .tgp-srch__form:hover{ border-color: rgba(255, 255, 255, .26); }
.tgp-srch .tgp-srch__form:focus-within{ border-color: var(--y); background: rgba(255, 255, 255, .13); }
.tgp-srch .tgp-srch__form > svg{ flex: none; display: block; color: rgba(255, 255, 255, .8); }
.tgp-srch .tgp-srch__form:focus-within > svg:first-of-type{ color: #fff; }
.tgp-srch.is-busy .tgp-srch__form > svg:first-of-type{ animation: tgp-srch-pulse .8s ease-in-out infinite alternate; }
@keyframes tgp-srch-pulse{ to{ opacity: .35; } }
body .tgp-srch .tgp-srch__form input.tgp-srch__in, body .tgp-srch .tgp-srch__form input.tgp-srch__in:focus, body .tgp-srch .tgp-srch__form input.tgp-srch__in:hover{
	flex: 1 1 auto; align-self: stretch; min-width: 0; width: auto; height: auto !important; min-height: 0; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0 !important;
	color: #fff !important; font: 400 15px/normal var(--M); letter-spacing: 0; text-transform: none; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; transition: none;
}
body .tgp-srch .tgp-srch__form input.tgp-srch__in::placeholder{ color: rgba(255, 255, 255, .55); font-size: 14px; opacity: 1; }
body .tgp-srch input.tgp-srch__in::-webkit-search-cancel-button, body .tgp-srch input.tgp-srch__in::-webkit-search-decoration{ -webkit-appearance: none; display: none; }
/* clear (×): 32px round button, vertically centred in the pill */
body .tgp-srch .tgp-srch__form button.tgp-srch__x{ flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; cursor: pointer; transition: background-color .15s; }
body .tgp-srch .tgp-srch__form button.tgp-srch__x:hover{ background: rgba(255, 255, 255, .24); }
body .tgp-srch .tgp-srch__form button.tgp-srch__x[hidden]{ display: none !important; }
body .tgp-srch .tgp-srch__form button.tgp-srch__x:focus-visible{ outline: 2px solid var(--y); outline-offset: 0; }
.tgp-srch .tgp-srch__form:has(button.tgp-srch__x[hidden]){ padding-right: 16px; }

/* ---------- suggestions card ---------- */
.tgp-srch .tgp-srch__panel{ position: absolute; right: 0; top: calc(100% + 8px); z-index: 100000; width: min(560px, calc(100vw - 32px)); max-height: min(78vh, 720px);
	overflow: auto; overscroll-behavior: contain; padding: 8px 0; background: #fff; color: var(--dk); border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .30), 0 2px 8px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .05); white-space: normal; }
@media (min-width: 1025px){ .tgp-srch .tgp-srch__panel{ min-width: 520px; } }
.tgp-srch .tgp-srch__lb{ outline: 0; }
.tgp-srch p.tgp-srch__h{ margin: 0; padding: 12px 16px 6px; font: 700 11px/14px var(--M); letter-spacing: .08em; text-transform: uppercase; color: var(--mu2); }
.tgp-srch p.tgp-srch__note{ margin: 8px 12px 2px; padding: 8px 12px; border-radius: 8px; background: var(--ntbg); color: var(--nttx); font: 600 12px/16px var(--O); }
body .tgp-srch a.tgp-srch__opt{ display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--dk); text-decoration: none; cursor: pointer; }
body .tgp-srch a.tgp-srch__opt:hover, body .tgp-srch a.tgp-srch__opt.is-active{ background: var(--soft); color: var(--dk); }
.tgp-srch .tgp-srch__opt > svg{ flex: none; color: var(--mu2); }
.tgp-srch .tgp-srch__opt.is-active > svg:last-child{ color: var(--dk); }
.tgp-srch .tgp-srch__tx{ display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.tgp-srch .tgp-srch__tx b{ font: 700 14px/18px var(--M); color: var(--dk); overflow-wrap: anywhere; }
.tgp-srch .tgp-srch__tx small{ font: 400 12px/16px var(--O); color: var(--mu); }
/* "understood" rows: catalogue with filters / page */
.tgp-srch .tgp-srch__gi{ flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--dk); display: flex; align-items: center; justify-content: center; }
.tgp-srch .tgp-srch__opt--go.is-best{ box-shadow: inset 3px 0 0 var(--y); }
.tgp-srch .tgp-srch__opt--go.is-best .tgp-srch__gi{ background: var(--y); }
.tgp-srch .tgp-srch__n{ flex: none; margin-left: auto; padding: 4px 9px; border-radius: 12px; background: var(--grbg); color: var(--grtx); font: 700 11px/14px var(--M); white-space: nowrap; }
.tgp-srch .tgp-srch__n.is-zero{ background: #f0f0f0; color: var(--mu); }
/* brands / models */
.tgp-srch .tgp-srch__bi{ flex: none; width: 52px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #f0f0f0; border-radius: 8px; background: #fff; overflow: hidden; color: var(--mu2); }
.tgp-srch .tgp-srch__bi img{ max-width: 46px; max-height: 34px; width: auto; height: auto; object-fit: contain; }
/* products */
.tgp-srch .tgp-srch__img{ flex: none; width: 52px; height: 52px; border: 1px solid #f0f0f0; border-radius: 8px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tgp-srch .tgp-srch__img img{ width: 46px; height: 46px; object-fit: contain; }
.tgp-srch .tgp-srch__names{ display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; }
.tgp-srch .tgp-srch__ib{ font: 800 13px/16px var(--M); letter-spacing: .4px; text-transform: uppercase; color: var(--dk); }
.tgp-srch .tgp-srch__im{ font: 700 12px/15px var(--M); text-transform: uppercase; color: #555; overflow-wrap: anywhere; }
/* accessories: the title in normal case (as on the accessory cards) */
.tgp-srch .tgp-srch__k-a .tgp-srch__im{ font: 600 13px/17px var(--O); text-transform: none; color: var(--dk); }
.tgp-srch .tgp-srch__is{ display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font: 600 12px/16px var(--O); color: var(--mu); }
.tgp-srch .tgp-srch__ty{ font: 700 9.5px/12px var(--M); font-style: normal; letter-spacing: .3px; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; background: #f0f0f0; color: var(--mu); white-space: nowrap; }
.tgp-srch .tgp-srch__ty--n{ background: #e6f0fb; color: #1558b0; }
.tgp-srch .tgp-srch__ty--c{ background: #efeafc; color: #5b3cc4; }
.tgp-srch .tgp-srch__ty--s{ background: var(--dk); color: #fff; }
.tgp-srch .tgp-srch__ty--u{ background: #fff1e0; color: #b45309; }
.tgp-srch .tgp-srch__ty--a{ background: #e7f6ec; color: #1e7a3c; }
.tgp-srch .tgp-srch__pr{ flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-left: auto; text-align: right; }
.tgp-srch .tgp-srch__pr b{ font: 800 15px/18px var(--M); color: var(--dk); white-space: nowrap; }
.tgp-srch .tgp-srch__st{ display: flex; align-items: center; gap: 5px; font: 400 11px/14px var(--O); color: var(--mu); white-space: nowrap; }
.tgp-srch .tgp-srch__dot{ display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gr); }
.tgp-srch .tgp-srch__dot.is-eu{ background: var(--bl); }
body .tgp-srch a.tgp-srch__opt--all{ justify-content: space-between; margin-top: 6px; padding: 12px 16px; border-top: 1px solid var(--ln); font: 700 13px/16px var(--M); }
.tgp-srch .tgp-srch__opt--all > span{ color: var(--dk); }
/* empty / hints */
.tgp-srch .tgp-srch__idle{ padding: 14px 20px 18px; }
.tgp-srch .tgp-srch__idle p{ margin: 0 0 8px; }
.tgp-srch p.tgp-srch__nt{ font: 700 14px/18px var(--M); color: var(--dk); }
.tgp-srch p.tgp-srch__hint{ font: 400 13px/18px var(--O); color: var(--mu); }
.tgp-srch p.tgp-srch__try{ margin-top: 10px; font: 700 11px/14px var(--M); letter-spacing: .08em; text-transform: uppercase; color: var(--mu2); }
.tgp-srch .tgp-srch__chips{ display: flex; flex-wrap: wrap; gap: 8px; }
body .tgp-srch button.tgp-srch__chip{ margin: 0; padding: 7px 12px; min-height: 0; height: auto; border: 1px solid var(--pill) !important; border-radius: 16px !important; background: #fff !important; color: var(--dk) !important;
	font: 600 12px/16px var(--M); letter-spacing: 0; text-transform: none; box-shadow: none; cursor: pointer; }
body .tgp-srch button.tgp-srch__chip:hover, body .tgp-srch button.tgp-srch__chip:focus-visible{ border-color: var(--dk) !important; background: var(--soft) !important; }
.tgp-srch :focus-visible:not(input){ outline: 2px solid var(--y); outline-offset: 2px; }

/* ---------- header placement ---------- */
@media (min-width: 1025px){
	.tgp-srch--mob{ display: none !important; }
	div#header-tools .tgp-srch--desk{ width: 240px !important; flex: none; } /* theme: .sc_layouts_item width:auto !important */
}
@media (min-width: 1200px){
	div#header-tools .tgp-srch--desk{ width: 260px !important; }
}
@media (max-width: 1024px){
	.tgp-srch--desk:not(.tgp-srch--page){ display: none !important; }
	.tgp-srch--mob{ display: inline-block; vertical-align: middle; width: auto !important; }
}
body .tgp-srch button.tgp-srch__fake{ display: flex; align-items: center; gap: 10px; width: 220px; max-width: calc(100vw - 32px); height: 44px; min-height: 0; margin: 0; padding: 0 16px; border-radius: 22px;
	background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 22px !important; color: #fff; font: 400 14px/20px var(--M); letter-spacing: 0; text-transform: none; box-shadow: none; cursor: text; }
body .tgp-srch button.tgp-srch__fake:hover, body .tgp-srch button.tgp-srch__fake:focus{ background: rgba(255, 255, 255, .13) !important; border-color: rgba(255, 255, 255, .26) !important; color: #fff; }
.tgp-srch .tgp-srch__fake svg{ flex: none; color: rgba(255, 255, 255, .8); }
.tgp-srch .tgp-srch__fake span{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .55); }

/* ---------- mobile overlay ---------- */
html.tgp-srch-lock, html.tgp-srch-lock body{ overflow: hidden !important; }
.tgp-srch-ov{ position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: #fff; }
.tgp-srch-ov[hidden]{ display: none !important; }
.tgp-srch-ov .tgp-srch-ov__bar{ flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: #181818; }
.tgp-srch-ov .tgp-srch__form--ov{ flex: 1 1 auto; height: 44px; min-width: 0; }
body .tgp-srch-ov .tgp-srch__form input.tgp-srch__in{ font-size: 16px !important; } /* 16px: no iOS zoom on focus */
body .tgp-srch-ov button.tgp-srch-ov__close{ flex: none; margin: 0; padding: 8px 2px; border: 0; background: none; color: #fff; font: 600 14px/18px var(--M); box-shadow: none; text-transform: none; letter-spacing: 0; }
.tgp-srch-ov .tgp-srch__panel--ov{ position: static; flex: 1 1 auto; width: auto; max-height: none; border-radius: 0; box-shadow: none; padding: 4px 0 calc(16px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.tgp-srch-ov .tgp-srch__panel--ov[hidden]{ display: block !important; }
@media (max-width: 480px){
	body .tgp-srch a.tgp-srch__opt{ gap: 10px; padding: 8px 16px; }
	.tgp-srch .tgp-srch__img{ width: 48px; height: 48px; }
	.tgp-srch .tgp-srch__img img{ width: 42px; height: 42px; }
	.tgp-srch .tgp-srch__pr b{ font-size: 14px; }
	.tgp-srch .tgp-srch__gi{ width: 34px; height: 34px; }
}

/* ---------- results page (?s=) ---------- */
.tgp-srch-page{ --y: #fdb813; --dk: #1e1e1e; --mu: #5b5b5b; --M: 'Montserrat', sans-serif; --O: 'Open Sans', sans-serif; font-family: var(--O); color: var(--dk); background: #fff; }
.tgp-srch-page *, .tgp-srch-page *::before, .tgp-srch-page *::after{ box-sizing: border-box; }
.tgp-srch-page .tgp-srch-page__wrap{ max-width: 1920px; margin: 0 auto; padding-left: clamp(16px, calc(60px + (100vw - 1440px) * .1458), 130px); padding-right: clamp(16px, calc(60px + (100vw - 1440px) * .1458), 130px); }
@media (min-width: 1200px){ .tgp-srch-page .tgp-srch-page__wrap{ padding-left: clamp(60px, calc(60px + (100vw - 1440px) * .1458), 130px); padding-right: clamp(60px, calc(60px + (100vw - 1440px) * .1458), 130px); } }
@media (min-width: 768px) and (max-width: 1199px){ .tgp-srch-page .tgp-srch-page__wrap{ padding-left: 24px; padding-right: 24px; } }
.tgp-srch-page .tgp-srch-page__hero{ background: #181818; color: #fff; padding: 34px 0 32px; }
body .tgp-srch-page .tgp-srch-page__hero h1{ margin: 0 0 18px; padding: 0; font: 800 44px/54px var(--M); text-transform: uppercase; color: #fff; letter-spacing: .44px; } /* as .tgp-r__htitle h1 */
@media (max-width: 767px){ body .tgp-srch-page .tgp-srch-page__hero h1{ font-size: 26px; line-height: normal; letter-spacing: 0; } .tgp-srch-page .tgp-srch-page__hero{ padding: 16px 0 20px; } }
.tgp-srch-page .tgp-srch.tgp-srch--page{ width: auto; max-width: 720px; }
.tgp-srch-page .tgp-srch--page .tgp-srch__form{ height: 52px; padding: 0 8px 0 20px; border-radius: 26px; }
body .tgp-srch-page .tgp-srch--page .tgp-srch__form input.tgp-srch__in{ font-size: 16px; }
.tgp-srch-page .tgp-srch--page .tgp-srch__panel{ left: 0; right: auto; width: min(720px, calc(100vw - 32px)); }
.tgp-srch-page .tgp-srch-page__sum{ margin: 12px 0 0; font: 400 14px/20px var(--O); color: #bdbdbd; }
.tgp-srch-page .tgp-srch-page__body{ padding-top: 28px; padding-bottom: 56px; } /* sides = the wrap (content line of the storefronts) */
.tgp-srch-page h2{ margin: 28px 0 12px; padding: 0; font: 700 13px/16px var(--M); letter-spacing: .08em; text-transform: uppercase; color: #999; }
.tgp-srch-page h2:first-child{ margin-top: 0; }
.tgp-srch-page .tgp-srch-page__grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.tgp-srch-page .tgp-srch-page__go{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 10px; }
.tgp-srch-page .tgp-srch.tgp-srch--rows a.tgp-srch__opt{ border: 1px solid #e6e6e6; border-radius: 12px; padding: 12px 14px; background: #fff; }
/* product cards: equal height in a row, price/stock at the top, type badge on its own line under the size */
.tgp-srch-page .tgp-srch-page__grid a.tgp-srch__opt{ align-items: flex-start; height: 100%; }
.tgp-srch-page .tgp-srch-page__grid .tgp-srch__is{ flex-direction: column; align-items: flex-start; gap: 5px; }
.tgp-srch-page .tgp-srch-page__grid .tgp-srch__ty{ white-space: nowrap; }
.tgp-srch-page .tgp-srch.tgp-srch--rows a.tgp-srch__opt:hover{ border-color: var(--y); background: #fff; }
.tgp-srch-page .tgp-srch-page__note{ margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fff6d9; color: #6b5200; font: 600 13px/18px var(--O); }
.tgp-srch-page .tgp-srch-page__none p{ margin: 0 0 10px; font: 400 15px/22px var(--O); color: var(--mu); }
.tgp-srch-page .tgp-srch-page__none b{ display: block; margin-bottom: 6px; font: 700 18px/24px var(--M); color: var(--dk); }
