/* Tooriistakeskus Kaubamärgid — frontend styles
 * Uses the site's design tokens where available, with local fallbacks so
 * this still looks right if loaded outside the main theme context.
 */
.tkb-brands-wrap {
	--tkb-steel-white: var(--tms-steel-white, #F2F3EF);
	--tkb-charcoal: var(--tms-charcoal, #1C1F22);
	--tkb-amber: var(--tms-safety-amber, #E3A008);
	--tkb-steel-blue: var(--tms-steel-blue, #3D5A73);
	--tkb-columns: 6;
	--tkb-gap: 18px;

	font-family: var(--tms-font-body, 'IBM Plex Sans', sans-serif);
	color: var(--tkb-charcoal);
	max-width: 100%;
	box-sizing: border-box;
}

.tkb-brands-wrap * {
	box-sizing: border-box;
}

.tkb-brands-title {
	font-family: var(--tms-font-display, 'Barlow Condensed', sans-serif);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: clamp(22px, 3vw, 32px);
	color: var(--tkb-charcoal);
	margin: 0 0 22px;
	padding-bottom: 12px;
	position: relative;
}

/* Measuring-tape tick-mark motif under the title, echoing .tms-tick-rule */
.tkb-brands-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 6px;
	background-image: repeating-linear-gradient(
		90deg,
		var(--tkb-steel-blue) 0,
		var(--tkb-steel-blue) 1px,
		transparent 1px,
		transparent 12px
	);
	background-position: bottom;
	background-size: 100% 6px;
	opacity: 0.55;
}
.tkb-brands-title::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 3px;
	background: var(--tkb-amber);
}

.tkb-brands-search {
	margin-bottom: 20px;
	max-width: 340px;
}

.tkb-brands-search-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #CFD3D4;
	border-radius: 2px;
	font-family: var(--tms-font-body, 'IBM Plex Sans', sans-serif);
	font-size: 14px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tkb-brands-search-input:focus {
	outline: none;
	border-color: var(--tkb-steel-blue);
	box-shadow: 0 0 0 3px rgba(61, 90, 115, 0.15);
}

.tkb-brands-grid {
	display: grid;
	grid-template-columns: repeat(var(--tkb-columns), minmax(0, 1fr));
	gap: var(--tkb-gap);
}

@media (max-width: 1024px) {
	.tkb-brands-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.tkb-brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); --tkb-gap: 10px; }
}
@media (max-width: 420px) {
	.tkb-brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tkb-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #E3E5E1;
	border-radius: 3px;
	padding: 26px 18px;
	text-decoration: none;
	color: var(--tkb-charcoal);
	position: relative;
	overflow: hidden;
	min-height: 148px;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Amber corner tick — subtle nod to the measuring-tape identity */
.tkb-brand-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--tkb-amber);
	transition: width 0.2s ease;
}

a.tkb-brand-card:hover,
a.tkb-brand-card:focus-visible {
	transform: translateY(-3px);
	border-color: var(--tkb-steel-blue);
	box-shadow: 0 8px 20px rgba(28, 31, 34, 0.08);
	outline: none;
}

a.tkb-brand-card:hover::before,
a.tkb-brand-card:focus-visible::before {
	width: 100%;
}

.tkb-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 60px;
}

.tkb-brand-logo img {
	max-width: 100%;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	image-rendering: -webkit-optimize-contrast;
	transition: transform 0.2s ease;
}

a.tkb-brand-card:hover .tkb-brand-logo img,
a.tkb-brand-card:focus-visible .tkb-brand-logo img {
	transform: scale(1.05);
}

.tkb-brand-fallback {
	font-family: var(--tms-font-display, 'Barlow Condensed', sans-serif);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--tkb-steel-blue);
}

.tkb-brand-name {
	font-family: var(--tms-font-mono, 'IBM Plex Mono', monospace);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6B7278;
	text-align: center;
}

.tkb-brands-empty-state {
	font-family: var(--tms-font-body, 'IBM Plex Sans', sans-serif);
	color: #6B7278;
	padding: 24px 0;
	text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AVALEHE KAUBAMÄRGIRIBA — [tkb_strip]  (14.09.2026, makett PDF lk 1)

   Maketil: pealkiri vasakul, „Vaata kõiki kaubamärke →" paremal, all üks
   rida logosid õhukeste püstjoontega vahel. Nimesilte ei ole — logo ongi nimi.
   ═══════════════════════════════════════════════════════════════════════════ */

.tkb-strip {
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 24px 22px;   /* sama rütm, mis teistel avalehe sektsioonidel */
	box-sizing: border-box;
	font-family: 'IBM Plex Sans', sans-serif;
}

/* Pealkirjarida — TÄPSELT sama, mis „Populaarsed kategooriad" ja
   „Soodustooted", et avaleht ei laguneks erinevateks stiilideks. */
.tkb-strip-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 18px;
}
.tkb-strip-title {
	margin: 0;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-transform: none;
	color: #123F6E;
}
.tkb-strip-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	color: #123F6E;
	text-decoration: none;
}
.tkb-strip-all:hover,
.tkb-strip-all:focus {
	color: #123F6E;
	text-decoration: underline;
}
.tkb-strip-arrow { flex: 0 0 auto; display: block; }

/* ── Logode rida ─────────────────────────────────────────────────────────
   ⚠ MIKS FLEX, MITTE GRID: logod on väga eri kujuga (STIHL on lai ja madal,
   Makita peaaegu ruut). Grid annaks igale ühesuguse lahtri ja pooled logod
   ujuksid keset tühja ruumi. Flex + `flex:1 1 0` + `min-width:0` jagab laiuse
   võrdselt, aga logo ise tsentreeritakse oma lahtris ja hoiab proportsiooni. */
.tkb-strip-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.tkb-strip-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	/* Püstjoon iga elemendi ees; esimeselt võetakse maha (vt allpool). Nii
	   jääb joonte arv õigeks ka siis, kui logosid on 6 või 12. */
	border-left: 1px solid #E6EBF1;
	text-decoration: none;
}
.tkb-strip-item:first-child { border-left: 0; }

.tkb-strip-item img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 34px;
	object-fit: contain;
	/* Logod on eri küllastusega; kerge tuhmus ühtlustab rea ja hover toob
	   valitud logo esile. `filter` ei muuda paigutust, seega rida ei nihku. */
	opacity: 0.88;
	transition: opacity .18s ease, transform .18s ease;
}
.tkb-strip-item:hover img,
.tkb-strip-item:focus img {
	opacity: 1;
	transform: scale(1.04);
}

.tkb-strip-fallback {
	font-size: 14px;
	font-weight: 700;
	color: #123F6E;
	text-align: center;
}

/* ── Mobiil ──────────────────────────────────────────────────────────────
   Ühele reale kaheksa logo telefonis ei mahu. Kaks veergu, ja püstjoon
   asendub ruudustikuga: iga teine element alustab uut „rida", seega
   `:first-child` üksi ei piisaks — nullime joone igalt paaritult elemendilt. */
@media (max-width: 900px) {
	.tkb-strip { padding: 14px 16px 16px; }
	.tkb-strip-head { margin-bottom: 14px; }
	.tkb-strip-title { font-size: 20px; }
	.tkb-strip-all { font-size: 13.5px; }

	.tkb-strip-item {
		flex: 0 0 50%;
		padding: 14px 12px;
		border-left: 0;
		border-top: 1px solid #E6EBF1;
	}
	.tkb-strip-item:nth-child(odd) { border-right: 1px solid #E6EBF1; }
	.tkb-strip-item:nth-child(1),
	.tkb-strip-item:nth-child(2) { border-top: 0; }
	.tkb-strip-item img { height: 30px; }
}

@media (max-width: 520px) {
	.tkb-strip-head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.tkb-strip-all { margin-left: 0; }
}
