/* ATB automobilio paieška — styled to match atb.lt (Elessi, Nunito Sans, black + #FCB900) */
.atbp {
	--atbp-accent: #fcb900;
	--atbp-accent-hover: #ffc929;
	--atbp-ink: #333333;
	--atbp-black: #0b0b0b;
	--atbp-panel: #111111;
	--atbp-panel-2: #1c1c1c;
	--atbp-line: #ececec;
	--atbp-soft: #f7f7f7;
	--atbp-muted: #8a8a8a;
	--atbp-radius: 20px;
	font-family: inherit;
	color: var(--atbp-ink);
	box-sizing: border-box;
	margin: 0 0 32px;
}
.atbp *, .atbp *::before, .atbp *::after { box-sizing: border-box; }
.atbp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- full block ---------- */
.atbp--pilnas {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px;
	align-items: stretch;
}
.atbp--pilnas.atbp--be-markiu { grid-template-columns: minmax(0, 1fr); }
.atbp--pilnas.atbp--be-markiu .atbp-side { display: none; }

.atbp-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--atbp-panel);
	color: #fff;
	border-radius: var(--atbp-radius);
	padding: 36px 34px 30px;
	overflow: hidden;
}
.atbp-panel::after { /* subtle air-spring ring motif */
	content: "";
	position: absolute;
	right: -90px;
	top: -90px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	border: 28px solid rgba(252, 185, 0, .07);
	pointer-events: none;
}
.atbp-eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--atbp-accent);
}
.atbp .atbp-title {
	margin: 0 0 8px;
	font-family: inherit;
	font-size: clamp(26px, 2.4vw, 34px);
	line-height: 1.15;
	font-weight: 800;
	color: #fff;
	text-transform: none;
	letter-spacing: 0;
}
.atbp .atbp-title span { color: var(--atbp-accent); }
.atbp-sub { margin: 0 0 24px; color: #bdbdbd; font-size: 15px; }

.atbp-form { display: grid; gap: 12px; margin: 0; }
.atbp-field { position: relative; display: block; margin: 0; }
.atbp-step {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--atbp-accent);
	color: #000;
	font-size: 13px;
	font-weight: 800;
	line-height: 26px;
	text-align: center;
	pointer-events: none;
	z-index: 1;
	transition: background .2s, color .2s;
}
.atbp .atbp-sel {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 44px 0 52px;
	border: 1px solid #fff;
	border-radius: 12px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
	color: #111;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 52px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	box-shadow: none;
}
.atbp .atbp-sel:focus { outline: none; border-color: var(--atbp-accent); box-shadow: 0 0 0 3px rgba(252, 185, 0, .35); }
.atbp .atbp-sel:disabled {
	background-color: var(--atbp-panel-2);
	border-color: #2b2b2b;
	color: #7a7a7a;
	cursor: not-allowed;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
}
.atbp-sel:disabled + .atbp-step, .atbp-field.is-off .atbp-step { background: #333; color: #8a8a8a; }

.atbp .atbp-btn {
	height: 54px;
	margin: 4px 0 0;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: var(--atbp-accent);
	color: #000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.atbp .atbp-btn:hover { background: var(--atbp-accent-hover); color: #000; }
.atbp .atbp-btn:active { transform: translateY(1px); }
.atbp .atbp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.atbp .atbp-btn[disabled] { background: #3a3a3a; color: #888; cursor: not-allowed; }

.atbp-mycar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 16px;
	padding: 12px 14px;
	border: 1px dashed rgba(252, 185, 0, .5);
	border-radius: 12px;
	font-size: 14px;
	color: #ddd;
}
.atbp-mycar strong { color: #fff; }
.atbp-mycar a { color: var(--atbp-accent); font-weight: 700; text-decoration: none; }
.atbp .atbp-mycar .atbp-forget,
.atbp .atbp-mycar .atbp-forget:hover,
.atbp .atbp-mycar .atbp-forget:focus {
	all: unset;
	margin-left: auto;
	color: #8a8a8a;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.atbp .atbp-mycar .atbp-forget:hover { color: #fff; }
.atbp .atbp-mycar .atbp-forget:focus-visible { outline: 2px solid var(--atbp-accent); outline-offset: 2px; }

.atbp-help { margin: auto 0 0; padding-top: 20px; font-size: 14px; color: #a9a9a9; }
.atbp-help a { white-space: nowrap; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--atbp-accent); }

/* ---------- right side ---------- */
.atbp-side {
	background: #fff;
	border: 1px solid var(--atbp-line);
	border-radius: var(--atbp-radius);
	padding: 28px;
	min-width: 0;
}
.atbp-oem { position: relative; margin: 0; }
.atbp-oem-label, .atbp-side-label { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #111; }
.atbp-side-label { margin-top: 24px; }
.atbp-oem-row { display: flex; gap: 0; }
.atbp .atbp-oem input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #dcdcdc;
	border-right: 0;
	border-radius: 12px 0 0 12px;
	background: var(--atbp-soft);
	color: #111;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .5px;
	box-shadow: none;
}
.atbp .atbp-oem input[type="search"]::placeholder { color: #9b9b9b; font-weight: 400; letter-spacing: 0; }
.atbp .atbp-oem input[type="search"]:focus { outline: none; background: #fff; border-color: var(--atbp-accent); }
.atbp .atbp-oem-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 54px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 0 12px 12px 0;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
}
.atbp .atbp-oem-btn:hover { background: var(--atbp-accent); color: #000; }

.atbp-suggest {
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid var(--atbp-line);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
	overflow: hidden;
	text-align: left;
}
.atbp-suggest a {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 10px 14px;
	color: #222;
	text-decoration: none;
	border-bottom: 1px solid #f1f1f1;
}
.atbp-suggest a:hover, .atbp-suggest a.is-active { background: #fff8e1; }
.atbp-suggest img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--atbp-soft); }
.atbp-suggest .s-name { font-size: 14px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.atbp-suggest .s-sku { display: block; font-size: 12px; color: var(--atbp-muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atbp-suggest .s-price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.atbp-suggest .s-all, .atbp-suggest .s-empty { display: block; padding: 12px 14px; font-size: 13px; font-weight: 700; color: #111; background: var(--atbp-soft); border: 0; }
.atbp-suggest .s-empty { font-weight: 400; color: #555; }
.atbp-suggest mark { background: rgba(252, 185, 0, .35); color: inherit; padding: 0 1px; }

/* ---------- brand tiles ---------- */
.atbp-brands {
	--atbp-cols: 6;
	display: grid;
	grid-template-columns: repeat(var(--atbp-cols), minmax(0, 1fr));
	gap: 12px;
}
.atbp .atbp-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 8px 12px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--atbp-soft);
	color: #111;
	text-align: center;
	text-decoration: none;
	transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
.atbp .atbp-brand:hover, .atbp .atbp-brand:focus-visible, .atbp .atbp-brand.is-current {
	border-color: var(--atbp-accent);
	background: #fff;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .07);
	transform: translateY(-2px);
	outline: none;
}
.atbp-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 10;
	max-width: 100%;
	margin-bottom: 4px;
}
.atbp-brand-logo img { max-width: 86%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.atbp-brand-logo--text { padding: 0 4px; font-size: clamp(13px, 1.25vw, 18px); font-weight: 800; letter-spacing: .5px; line-height: 1.15; color: #111; text-transform: uppercase; overflow-wrap: anywhere; }
.atbp-brand-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.atbp-brand-logo--text + .atbp-brand-name { display: none; }
.atbp-brand-count { font-size: 12px; color: var(--atbp-muted); }

.atbp--markes .atbp-brand { padding: 18px 10px 16px; }
/* square tiles: the 180x180 category logos fill them 1:1, nothing is cropped */
.atbp .atbp-brand { aspect-ratio: 1 / 1; justify-content: center; overflow: hidden; }
.atbp .atbp-brand.atbp-brand--img { padding: 0; background: #fff; }
.atbp-brand--img .atbp-brand-logo { width: 100%; height: 100%; aspect-ratio: auto; margin: 0; }
.atbp .atbp-brand--img .atbp-brand-logo img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; mix-blend-mode: normal; border-radius: 0; image-rendering: auto; }

/* ---------- compact bar ---------- */
.atbp--juosta { margin: 0 0 20px; }
.atbp-moved { margin-bottom: 4px; }
.atbp-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: var(--atbp-panel);
	border-radius: 16px;
}
.atbp-bar-title {
	flex: 0 0 auto;
	padding: 0 6px 0 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.15;
	max-width: 120px;
}
.atbp-bar-title span { color: var(--atbp-accent); }
.atbp--juosta .atbp-form {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: 10px;
	min-width: 0;
}
.atbp--juosta .atbp-sel { height: 48px; line-height: 46px; font-size: 15px; padding-left: 46px; }
.atbp--juosta .atbp-step { left: 12px; width: 24px; height: 24px; line-height: 24px; font-size: 12px; }
.atbp--juosta .atbp-btn { height: 48px; margin: 0; padding: 0 22px; font-size: 13px; }
.atbp-bar-sep { flex: 0 0 1px; align-self: stretch; background: #2e2e2e; }
.atbp--juosta .atbp-oem { flex: 0 1 260px; min-width: 180px; }
.atbp--juosta .atbp-oem input[type="search"] { height: 48px; background: var(--atbp-panel-2); border-color: #2b2b2b; color: #fff; }
.atbp--juosta .atbp-oem input[type="search"]:focus { background: #222; }
.atbp--juosta .atbp-oem-btn { height: 48px; padding: 0 16px; background: var(--atbp-accent); color: #000; }
.atbp--juosta .atbp-oem-btn:hover { background: var(--atbp-accent-hover); }
.atbp--juosta .atbp-suggest { left: auto; width: min(460px, calc(100vw - 32px)); }

.atbp-active {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin-top: 12px;
	padding: 0 4px;
	font-size: 15px;
}
.atbp-active-label { color: var(--atbp-muted); }
.atbp-active strong { color: #111; font-weight: 800; }
.atbp .atbp-clear { margin-left: 6px; color: #111; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--atbp-accent); }

.atbp-notfound {
	margin: 0 0 24px;
	padding: 18px 20px;
	border-radius: 14px;
	background: #fff8e1;
	border: 1px solid #ffe08a;
	font-size: 15px;
	color: #333;
}
.atbp-notfound a { color: #000; font-weight: 800; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.atbp-bar { flex-wrap: wrap; }
	.atbp-bar-title { max-width: none; flex-basis: 100%; padding: 2px 4px 0; }
	.atbp--juosta .atbp-form { flex-basis: 100%; }
	.atbp-bar-sep { display: none; }
	.atbp--juosta .atbp-oem { flex: 1 1 100%; }
}
@media (max-width: 900px) {
	.atbp--pilnas { grid-template-columns: minmax(0, 1fr); }
	.atbp-brands { --atbp-cols: 4 !important; }
}
@media (max-width: 640px) {
	.atbp-panel { padding: 26px 20px 22px; }
	.atbp-side { padding: 20px; }
	.atbp--juosta .atbp-form { grid-template-columns: minmax(0, 1fr); }
	.atbp-brands { --atbp-cols: 3 !important; gap: 8px; }
	.atbp-brand-count { display: none; }
	.atbp-brand-logo--text { font-size: 11px; letter-spacing: 0; overflow-wrap: normal; }
	.atbp--juosta .atbp-suggest { left: 0; right: 0; width: auto; }
	.atbp .atbp-oem-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.atbp * { transition: none !important; }
}

/* ---------- shop page tweaks (Elessi) ---------- */
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers li .current,
.nasa-pagination .page-numbers.current {
	background: var(--atbp-accent, #fcb900) !important;
	border-color: #fcb900 !important;
	color: #000 !important;
}
.woocommerce-pagination a.page-numbers:hover { color: #000 !important; background: #fff3c4 !important; }
.atbp-hidden-filter { display: none !important; }
