/* ==========================================================================
   Kokariided – base
   ========================================================================== */

:root {
	--beige: #f5f0e8;
	--beige-dark: #ebe4d8;
	--brown: #3d352e;
	--brown-soft: #5b5148;
	--terracotta: #b85c38;
	--terracotta-dark: #9c4a2a;
	--white: #fff;
	--line: rgba(61, 53, 46, .14);
	--muted: rgba(61, 53, 46, .62);

	--font-head: "Outfit", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, sans-serif;

	--container: 1360px;
	--gutter: 24px;
	--radius: 4px;
	--radius-lg: 10px;

	--header-h: 0px;
	--ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	/* Kerimise ülelibisemisel paistab html'i taust. Valge riba jaluse all
	   tuleb just sealt, seega anname sellele jaluse värvi. */
	background: #2b2520;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--brown);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.02em;
	margin: 0;
}

p { margin: 0 0 1em; }

button { font: inherit; cursor: pointer; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed; top: 12px; left: 12px;
	width: auto; height: auto; clip: auto;
	z-index: 999;
	background: var(--brown); color: var(--beige);
	padding: 10px 16px; border-radius: var(--radius);
}

.icon { width: 22px; height: 22px; flex: none; }

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .01em;
	border: 1px solid transparent;
	border-radius: 100px;
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: var(--terracotta-dark); }

.btn--ghost { border-color: rgba(245, 240, 232, .55); color: var(--beige); }
.btn--ghost:hover { background: rgba(245, 240, 232, .12); border-color: var(--beige); }

.btn--dark { background: var(--brown); color: var(--beige); }
.btn--dark:hover { background: #2c2620; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header { position: relative; z-index: 40; background: var(--white); }

.topbar {
	background: var(--brown);
	color: rgba(245, 240, 232, .82);
	font-size: 13.5px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 42px;
}

.topbar__usp { margin: 0; letter-spacing: .01em; }
.topbar__ship { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.topbar__ship .icon { width: 15px; height: 15px; flex: none; opacity: .85; }

.topbar__nav { display: flex; align-items: center; gap: 26px; }

.topbar__list {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0; padding: 0;
}

.topbar__list a:hover, .topbar__phone:hover { color: var(--white); }

.topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--beige);
}

.topbar__phone .icon { width: 17px; height: 17px; }

/* Main header row */

.header-main { background: var(--white); border-bottom: 1px solid var(--line); }

.header-main__inner {
	/* Equal side columns keep the search box optically centred in the header,
	   whatever the logo and action widths are. */
	display: grid;
	grid-template-columns: 1fr minmax(0, 620px) 1fr;
	align-items: center;
	gap: 32px;
	min-height: 92px;
}

.brand { display: flex; align-items: center; color: var(--brown); flex: none; }
/* Logo sisu puudutab viewBox'i alumist serva; overflow:visible hoiab "EST 2012"
   rea terve ka kõrge pikslitihedusega mobiilidel, kus ümardamine muidu lõikaks. */
.brand svg { width: 210px; height: auto; display: block; overflow: visible; }
.koka-logo { display: block; }
.koka-logo--light { color: var(--beige); }

.burger {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	margin-left: -8px;
	color: var(--brown);
}

/* Search */

.searchbar {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px 0 20px;
	background: var(--beige);
	border: 1px solid transparent;
	border-radius: 100px;
	transition: border-color .2s var(--ease), background .2s var(--ease);
}

.searchbar:focus-within { border-color: var(--brown); background: var(--white); }

.searchbar .icon { color: var(--muted); width: 20px; height: 20px; }

.searchbar input {
	flex: 1;
	border: 0;
	background: none;
	padding: 15px 0;
	font: inherit;
	font-size: 15px;
	color: var(--brown);
	outline: none;
	min-width: 0;
}

.searchbar input::placeholder { color: var(--muted); }

.searchbar__submit {
	border: 0;
	background: var(--brown);
	color: var(--beige);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	padding: 11px 24px;
	border-radius: 100px;
	transition: background .2s var(--ease);
}

.searchbar__submit:hover { background: var(--terracotta); }

/* Header actions */

.header-actions { display: flex; align-items: flex-start; gap: 2px; justify-self: end; }

.icon-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 10px 5px;
	border-radius: var(--radius);
	color: var(--brown);
	transition: background .2s var(--ease), color .2s var(--ease);
}

.icon-btn:hover { background: var(--beige); color: var(--terracotta); }

.icon-btn__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 26px; height: 26px;
}

.icon-btn__label {
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
	white-space: nowrap;
}

.icon-btn__badge {
	position: absolute;
	top: -6px; right: -9px;
	min-width: 19px; height: 19px;
	display: grid; place-items: center;
	padding: 0 5px;
	background: var(--terracotta);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	border-radius: 100px;
	font-family: var(--font-head);
}

/* Category nav */

.nav { background: var(--beige); border-bottom: 1px solid var(--line); }

.nav__list {
	/* Ei tohi olla overflow'ga kerimiskonteiner: see lõikaks rippmenüü ära.
	   Kui kategooriaid tuleb juurde, murduvad need teisele reale. */
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 4px;
	list-style: none;
	margin: 0; padding: 0;
}

/* Nihe menüünupu enda sisepolsterduse võrra, et esimese kategooria tekst
   algaks samalt jooneelt kui logo ja lehe sisu. */
.nav .nav__list { margin-left: -18px; }

.nav__list > li > a {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 16px 18px;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	color: var(--brown);
	position: relative;
	transition: color .2s var(--ease);
}

.nav__list > li > a .icon--chev {
	width: 14px;
	height: 14px;
	margin-left: 6px;
	opacity: .55;
	transition: transform .2s var(--ease);
}

.nav__list > li:hover > a .icon--chev { transform: rotate(180deg); }

.nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 18px; right: 18px; bottom: 10px;
	height: 2px;
	background: var(--terracotta);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ease);
}

.nav__list > li:hover > a::after,
.nav__list > li.current-menu-item > a::after { transform: scaleX(1); }

.nav__list > li.current-menu-item > a { color: var(--terracotta); }

/* Sub menu */

.nav__list li { position: relative; }

.nav__list .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 240px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: 0 18px 40px rgba(61, 53, 46, .12);
	list-style: none;
	margin: 0; padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
	z-index: 30;
}

.nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }

.nav__list .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--radius);
	font-size: 15px;
	transition: background .15s var(--ease), color .15s var(--ease);
}

.nav__list .sub-menu a:hover { background: var(--beige); color: var(--terracotta); }

/* Pikad valdkonnamenüüd kahte veergu, et rippmenüü ekraanist välja ei jookseks.
   Klassi lisab main.js loenduse järgi, sest CSS ei oska lapsi kokku lugeda. */
.nav .nav__list .sub-menu--wide {
	min-width: 460px;
	/* Veerud, mitte ruudustik: nii loeb silm esimese veeru lõpuni ja alles
	   siis teise, ruudustik hakkaks lugema ridade kaupa risti. */
	column-count: 2;
	column-gap: 6px;
}

.nav .nav__list .sub-menu--wide li { break-inside: avoid; }

.nav .nav__list > li:nth-last-child(-n+3) > .sub-menu--wide { left: auto; right: 0; }

/* Mobile nav */

.mobile-nav {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(88vw, 380px);
	background: var(--white);
	z-index: 100;
	transform: translateX(-100%);
	transition: transform .3s var(--ease);
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 60px rgba(61, 53, 46, .2);
}

.mobile-nav[hidden] { display: flex; }
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid var(--line);
}

.mobile-nav__title { font-family: var(--font-head); font-weight: 600; font-size: 17px; }

.mobile-nav__close { background: none; border: 0; color: var(--brown); display: grid; place-items: center; }

.mobile-nav__body { overflow-y: auto; padding: 12px 10px 40px; }

.mobile-nav .nav__list { display: block; overflow: visible; }
.mobile-nav .nav__list > li > a { display: block; padding: 13px 14px; font-size: 16px; }
.mobile-nav .nav__list > li > a::after { display: none; }

.mobile-nav .nav__list > li > a .icon--chev { margin-left: auto; }

.mobile-nav .sub-menu {
	position: static;
	opacity: 1; visibility: visible; transform: none;
	box-shadow: none; border: 0;
	padding: 0 0 8px 14px;
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(61, 53, 46, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s var(--ease), visibility .3s;
	z-index: 90;
}

.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	/* Sisu on all vasakul, seega iga min-height'i üleliigne piksel koguneb
	   ülaossa tühjaks alaks. Hoia see sisu tegeliku kõrguse lähedal. */
	min-height: clamp(380px, 38vw, 545px);
	color: var(--beige);
	overflow: hidden;
	isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__media picture { display: block; width: 100%; height: 100%; }
/* Foto on 3:2, hero on laiem, seega lõigatakse alt. Y-väärtus hoiab pead
   kaadris: väiksem number tähendab, et näidatakse pildi ülemist osa. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }

.hero__fallback {
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 90% at 78% 20%, rgba(184, 92, 56, .55), transparent 60%),
		linear-gradient(140deg, #4a4038 0%, #3d352e 45%, #2b2520 100%);
}

.hero::after {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	/* Dark only under the copy; the faces on the right stay clear. */
	background: linear-gradient(90deg,
		rgba(30, 25, 22, .97) 0%,
		rgba(30, 25, 22, .92) 26%,
		rgba(30, 25, 22, .66) 46%,
		rgba(30, 25, 22, .28) 64%,
		rgba(30, 25, 22, 0) 82%);
}

.hero__inner { padding-block: clamp(40px, 4.5vw, 64px); width: 100%; }

.hero__content { max-width: 720px; }

.hero__eyebrow {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--terracotta);
	margin: 0 0 18px;
}

.hero__title {
	font-size: clamp(34px, 4.6vw, 62px);
	max-width: 16ch;
	margin-bottom: 20px;
	text-shadow: 0 2px 24px rgba(20, 16, 14, .45);
}

/* Teine rida on alapealkiri, mitte võrdväärne osa pealkirjast. */
.hero__title span {
	display: block;
	margin-top: 8px;
	font-size: .68em;
	font-weight: 400;
	color: rgba(245, 240, 232, .72);
}

.hero__text {
	text-shadow: 0 1px 16px rgba(20, 16, 14, .5);
	max-width: 52ch;
	font-size: clamp(16px, 1.2vw, 18px);
	color: rgba(245, 240, 232, .82);
	margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* USP strip -------------------------------------------------------------- */

.usp { background: var(--brown); color: var(--beige); }

.usp__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
}

.usp__item {
	padding: 26px 28px 26px 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	position: relative;
}

.usp__item + .usp__item { padding-left: 28px; }

.usp__item + .usp__item::before {
	content: "";
	position: absolute;
	left: 0; top: 26px; bottom: 26px;
	width: 1px;
	background: rgba(245, 240, 232, .18);
}

.usp__item strong { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.usp__item span { font-size: 14px; color: rgba(245, 240, 232, .66); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: clamp(56px, 7vw, 100px); }

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 3.5vw, 46px);
}

.section__eyebrow {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: 12px;
	font-weight: 600;
	color: var(--terracotta);
	margin: 0 0 10px;
}

.section__title { font-size: clamp(27px, 3.2vw, 42px); }

.section__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	color: var(--brown);
	white-space: nowrap;
	transition: color .2s var(--ease), gap .2s var(--ease);
}

.section__link:hover { color: var(--terracotta); gap: 13px; }
.section__link .icon { width: 18px; height: 18px; }

.categories { background: var(--beige); }

/* Category tiles --------------------------------------------------------- */

.tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.4vw, 22px);
}

/* Carousel --------------------------------------------------------------- */

.carousel {
	position: relative;
	--gap: clamp(14px, 1.4vw, 22px);
	--item-basis: calc(25% - .75 * var(--gap));
	--pad: 26px;
}

.carousel__viewport {
	/* Padding only on the block axis: hover shadows get room to render inside
	   the box, while the inline edges clip exactly so no card peeks out and the
	   track never widens the page. */
	overflow: hidden;
	margin-block: calc(var(--pad) * -1);
	padding-block: var(--pad);
}

.carousel__track {
	display: flex;
	gap: var(--gap);
	transition: transform .55s var(--ease);
	will-change: transform;
}

.carousel__item {
	flex: 0 0 var(--item-basis);
	min-width: 0;
}

.carousel__nav {
	position: absolute;
	top: calc(50% - 46px);
	transform: translateY(-50%);
	width: 52px; height: 52px;
	display: grid; place-items: center;
	background: var(--white);
	color: var(--brown);
	border: 1px solid var(--line);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(61, 53, 46, .12);
	transition: background .2s var(--ease), color .2s var(--ease), opacity .25s var(--ease), visibility .25s;
	z-index: 5;
}

.carousel__nav:hover { background: var(--brown); color: var(--beige); }

.carousel__nav--prev { left: -14px; }
.carousel__nav--next { right: -14px; }
.carousel__nav--prev .icon { transform: rotate(180deg); }

.carousel__nav[disabled],
.carousel.is-static .carousel__nav {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 26px;
}

.carousel.is-static .carousel__dots { display: none; }

.carousel__dot {
	width: 8px; height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(61, 53, 46, .22);
	transition: background .2s var(--ease), width .2s var(--ease);
}

.carousel__dot.is-active { background: var(--terracotta); width: 26px; border-radius: 100px; }

.tile {
	display: block;
	background: var(--white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(61, 53, 46, .14); }

.tile__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--beige-dark);
}

.tile__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease);
}

.tile:hover .tile__media img { transform: scale(1.05); }

.tile__placeholder {
	position: absolute; inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-head);
	font-size: clamp(44px, 5vw, 72px);
	font-weight: 600;
	color: rgba(61, 53, 46, .16);
	text-transform: uppercase;
	background: linear-gradient(160deg, var(--beige-dark), #ded5c6);
}

.tile__body { display: block; padding: 18px 20px 22px; }

.tile__name {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 17px;
	margin-bottom: 2px;
}

.tile__count { display: block; font-size: 13.5px; color: var(--muted); }

/* Solutions -------------------------------------------------------------- */

.solutions__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.4vw, 22px);
}

.solution {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 30px 28px 26px;
	background: var(--beige);
	border-radius: var(--radius-lg);
	border: 1px solid transparent;
	transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.solution:hover { background: var(--white); border-color: var(--line); transform: translateY(-3px); }

.solution__title { font-size: 21px; }
.solution__text { font-size: 15px; color: var(--muted); margin: 0; flex: 1; }

.solution__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	color: var(--terracotta);
}

.solution__more .icon { width: 17px; height: 17px; }

/* Brands ----------------------------------------------------------------- */

.brands { background: var(--beige); }

.brands__row { display: flex; flex-wrap: wrap; gap: 12px; }

.brand-chip {
	display: inline-flex;
	align-items: center;
	padding: 18px 34px;
	background: var(--white);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: .02em;
	transition: color .2s var(--ease), transform .2s var(--ease);
}

.brand-chip:hover { color: var(--terracotta); transform: translateY(-2px); }

/* Brändikarusell (liikuv) */
.brand-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brand-marquee__track {
	display: flex;
	align-items: center;
	gap: 14px;
	width: max-content;
	/* Kestus kasvab brändide arvuga, et kiirus jääks ühtlaseks. */
	animation: koka-brand-scroll calc(var(--koka-brands, 10) * 3.2s) linear infinite;
}
.brand-marquee:hover .brand-marquee__track { animation-play-state: paused; }

@keyframes koka-brand-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.brand-slide {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	height: 92px;
	padding: 0 30px;
	background: var(--white);
	border-radius: var(--radius-lg);
	transition: color .2s var(--ease);
}
.brand-slide__name {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: .02em;
	color: var(--brown-soft);
	white-space: nowrap;
}
.brand-slide:hover .brand-slide__name { color: var(--terracotta); }
.brand-slide__logo { max-height: 52px; width: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
	.brand-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* CTA -------------------------------------------------------------------- */

.cta { background: var(--brown); color: var(--beige); }

.cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-block: clamp(44px, 5vw, 72px);
}

.cta__title { font-size: clamp(25px, 2.8vw, 38px); margin-bottom: 10px; }
.cta__text { color: rgba(245, 240, 232, .72); max-width: 56ch; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: #2b2520; color: rgba(245, 240, 232, .72); }

.footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
	padding-block: clamp(48px, 6vw, 76px);
}

.site-footer .koka-logo svg { width: 190px; height: auto; }

.footer__text { margin: 22px 0 18px; font-size: 15px; max-width: 38ch; }

.footer__contact a { color: var(--beige); font-weight: 500; }
.footer__contact a:hover { color: var(--terracotta); }

.footer__title {
	font-size: 15px;
	color: var(--beige);
	text-transform: uppercase;
	letter-spacing: .1em;
	margin-bottom: 18px;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__list a:hover { color: var(--terracotta); }

.footer__bottom { border-top: 1px solid rgba(245, 240, 232, .12); font-size: 14px; }

.footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 22px;
}

.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 20px; }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

.shop { padding-block: clamp(32px, 4vw, 56px); }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.4vw, 24px);
	margin: 0; padding: 0;
	list-style: none;
}

.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }

/* Kaardid on veerus, et nupud jääksid alla ühele joonele ka siis, kui
   tootenimed on eri pikkusega. */
.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	padding: 0 0 20px;
	text-align: left;
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.woocommerce ul.products li.product .price { margin-top: auto; }

.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(61, 53, 46, .12); }

.woocommerce ul.products li.product a img {
	margin: 0 0 16px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--beige);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-head);
	font-size: 16px !important;
	font-weight: 600;
	padding: 0 20px !important;
	margin: 0 0 6px;
}

.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 20px 16px;
	color: var(--brown) !important;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
}

.woocommerce ul.products li.product .button {
	display: block;
	margin: 0 20px;
	padding: 13px 20px;
	background: var(--brown);
	color: var(--beige);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	text-align: center;
	transition: background .2s var(--ease), color .2s var(--ease);
}

.woocommerce ul.products li.product .button:hover { background: var(--terracotta); color: var(--white); }

.woocommerce span.onsale {
	position: absolute;
	background: var(--terracotta);
	color: var(--white);
	font-family: var(--font-head);
	font-weight: 600;
	border-radius: 100px;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: 8px 14px;
	top: 12px; left: 12px; right: auto;
	margin: 0;
	z-index: 2;
}

/* Loop-kaartidel jääb märgis kaardi vasakusse ülanurka (li.product on relative).
   NB: WooCommerce'i enda reegel seab right:0, mis venitaks märgise üle kaardi. */
.woocommerce ul.products li.product .onsale { top: 12px; left: 12px; right: auto; width: auto; }

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 26px; }

.page__title { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 24px; }

/* Ülaosa sama tihe nagu arhiivilehtedel, all jääb rohkem õhku.
   NB: klassi nimi ei tohi olla lihtsalt "page", sest WordPress lisab selle
   klassi <body> elemendile ja reegel hakkaks kogu lehte polsterdama. */
.page-wrap { padding-block: clamp(20px, 2.6vw, 34px) clamp(48px, 6vw, 80px); }

.notice {
	padding: 26px;
	background: var(--white);
	border: 1px dashed var(--line);
	border-radius: var(--radius-lg);
	color: var(--muted);
	margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
	.brand svg { width: 175px; }
	.header-main__inner { gap: 20px; }
	.topbar__usp { display: none; }
}

@media (max-width: 980px) {
	.tiles, .solutions__grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.carousel { --item-basis: calc(33.3333% - .6667 * var(--gap)); }
	.carousel__nav--prev { left: -8px; }
	.carousel__nav--next { right: -8px; }
	.usp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 860px) {
	.burger { display: inline-flex; }
	.nav { display: none; }
	.searchbar { order: 3; width: 100%; }
	.header-main__inner {
		display: flex;
		flex-wrap: wrap;
		padding-block: 14px;
		min-height: 0;
		gap: 14px 16px;
	}
	.header-actions { margin-left: auto; }
	.brand svg { width: 158px; }
	.topbar__list { display: none; }
	.topbar__inner { justify-content: flex-end; }
	.cta__inner { flex-direction: column; align-items: flex-start; }
	.section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
	:root { --gutter: 18px; }

	/* Hoia päise esimene rida ühel real: menüünupp, logo, ikoonid. Otsing
	   läheb omaette reale allapoole. */
	.header-main__inner { gap: 10px 12px; }
	.brand svg { width: 126px; }
	.burger { padding: 6px; margin-left: -6px; }
	.header-actions { gap: 0; }
	.icon-btn { padding: 6px; }
	.icon-btn__label { display: none; }
	.icon-btn .icon { width: 21px; height: 21px; }
	.searchbar { padding-left: 16px; }
	.searchbar input { padding-block: 12px; font-size: 14.5px; }
	.searchbar__submit { padding: 9px 18px; font-size: 13.5px; }
	.topbar__inner { min-height: 36px; }
	.topbar__phone { font-size: 13px; }
	.tiles, .solutions__grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.carousel { --item-basis: calc(50% - .5 * var(--gap)); --pad: 16px; }
	.carousel__nav { width: 44px; height: 44px; }
	.carousel__nav--prev { left: -6px; }
	.carousel__nav--next { right: -6px; }
	.hero { min-height: 480px; }
	.hero__inner { padding-block: 40px 44px; }
	.hero__title { max-width: none; }
	.hero__actions .btn { padding: 14px 24px; font-size: 14.5px; }
	.hero::after { background: linear-gradient(180deg, rgba(38, 32, 28, .45) 0%, rgba(38, 32, 28, .84) 52%, rgba(38, 32, 28, .93) 100%); }
	.hero__media img { object-position: 50% 4%; }
	.usp__item, .usp__item + .usp__item { padding: 20px 16px; }
	.usp__item + .usp__item::before { display: none; }
	.usp__grid { gap: 0; }
	.footer__grid { grid-template-columns: 1fr; }
	.footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
	.tile__body { padding: 14px 15px 17px; }
	.tile__name { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Embroidery ------------------------------------------------------------- */

.embroidery { background: var(--brown); color: var(--beige); overflow: hidden; }

.embroidery__inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding-block: clamp(56px, 7vw, 100px);
}

.embroidery__media {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

.embroidery__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

.embroidery__body .section__title { color: var(--beige); margin-bottom: 18px; }

.embroidery__text { color: rgba(245, 240, 232, .78); max-width: 46ch; margin-bottom: 24px; }

.embroidery__list {
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.embroidery__list li {
	position: relative;
	padding-left: 30px;
	color: rgba(245, 240, 232, .86);
	font-size: 15.5px;
}

.embroidery__list li::before {
	content: "";
	position: absolute;
	left: 0; top: 9px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--terracotta);
}

.embroidery__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn--outline { border-color: rgba(245, 240, 232, .4); color: var(--beige); }
.btn--outline:hover { background: rgba(245, 240, 232, .1); border-color: var(--beige); }

@media (max-width: 860px) {
	.embroidery__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sticky header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	transition: box-shadow .25s var(--ease);
}

.site-header .topbar {
	max-height: 60px;
	overflow: hidden;
	transition: max-height .3s var(--ease), opacity .2s var(--ease);
}

.site-header .header-main__inner,
.site-header .brand svg,
.site-header .nav__list > li > a { transition: min-height .25s var(--ease), width .25s var(--ease), padding .25s var(--ease); }

.site-header.is-stuck { box-shadow: 0 10px 30px rgba(61, 53, 46, .1); }
.site-header.is-stuck .topbar { max-height: 0; opacity: 0; }
.site-header.is-stuck .header-main__inner { min-height: 62px; }
.site-header.is-stuck .brand svg { width: 150px; }
.site-header.is-stuck .searchbar input { padding-block: 10px; }
.site-header.is-stuck .searchbar__submit { padding-block: 8px; }
.site-header.is-stuck .icon-btn__label { display: none; }
.site-header.is-stuck .nav__list > li > a { padding-block: 11px; font-size: 14.5px; }

@media (max-width: 860px) {
	.site-header.is-stuck .header-main__inner { min-height: 0; padding-block: 10px; }
	.site-header.is-stuck .searchbar { display: none; }
}

/* ==========================================================================
   Tikand
   ========================================================================== */

.emb {
	margin: 0 0 26px;
	padding: 24px 26px;
	background: var(--beige);
	border-radius: var(--radius-lg);
}

.emb__title { font-size: 19px; margin-bottom: 6px; }
.emb__intro { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

.emb__toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 0;
	cursor: pointer;
	border-top: 1px solid var(--line);
}

.emb__toggle input { margin-top: 4px; accent-color: var(--terracotta); width: 17px; height: 17px; flex: none; }

.emb__toggle-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15.5px;
}

.emb__price { color: var(--terracotta); font-weight: 600; font-size: 14.5px; }

.emb__panel { padding: 4px 0 16px 29px; display: grid; gap: 14px; }
.emb__panel[hidden] { display: none; }

.emb__field { display: grid; gap: 6px; margin: 0; }

.emb__field label {
	font-size: 13.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--brown-soft);
}

.emb__field input[type="text"],
.emb__field select,
.emb__field textarea {
	font: inherit;
	font-size: 15px;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
	width: 100%;
}

.emb__field input[type="file"] { font-size: 14px; }

.emb__field input:focus, .emb__field select:focus, .emb__field textarea:focus {
	outline: 2px solid var(--terracotta);
	outline-offset: 1px;
}

.emb__hint, .emb__note { font-size: 13px; color: var(--muted); margin: 0; }
.emb__note { padding-top: 4px; }

/* WordPressi adminriba ei tohi kleepuvat päist katta. */
body.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

/* ==========================================================================
   Tooteleht
   ========================================================================== */

.woocommerce-breadcrumb {
	font-size: 13.5px;
	color: var(--muted);
	margin: 0 0 24px;
}

.woocommerce-breadcrumb a { color: var(--brown-soft); }
.woocommerce-breadcrumb a:hover { color: var(--terracotta); }

.product-main {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
	margin-bottom: clamp(48px, 6vw, 88px);
}

/* Galerii */

.product-gallery .woocommerce-product-gallery__wrapper {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--beige);
}

.product-gallery img { width: 100%; height: auto; }

.product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.product-gallery .flex-control-thumbs li { margin: 0; }

.product-gallery .flex-control-thumbs img {
	border-radius: var(--radius);
	background: var(--beige);
	cursor: pointer;
	opacity: .55;
	transition: opacity .2s var(--ease);
}

.product-gallery .flex-control-thumbs img.flex-active,
.product-gallery .flex-control-thumbs img:hover { opacity: 1; }

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 5;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: var(--white);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(61, 53, 46, .14);
	font-size: 0;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 16px; height: 16px;
	border: 2px solid var(--brown);
	border-radius: 50%;
	font-size: 0;
}

/* Kokkuvõte */

.product-brand {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--terracotta);
	margin: 0 0 12px;
}

.product-title { font-size: clamp(27px, 3vw, 40px); margin-bottom: 12px; }

.product-code {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	font-size: 13.5px;
	color: var(--muted);
	margin-bottom: 20px;
}

/* Hind ja km-lüliti ühel real, lüliti hinna kõrval, kus see loeb. */
.product-price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 18px;
	margin-bottom: 20px;
}

.product-price { margin-bottom: 0; }

.product-price .price {
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 600;
	color: var(--brown);
}

.product-price .price del { opacity: .45; font-size: 20px; margin-right: 8px; }
.product-price .price ins { text-decoration: none; color: var(--terracotta); }

.product-excerpt { font-size: 16px; color: var(--brown-soft); margin-bottom: 22px; }
.product-excerpt p:last-child { margin-bottom: 0; }

/* Laoseis */

.stock-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	padding: 14px 18px;
	border-radius: var(--radius-lg);
	background: var(--beige);
	margin-bottom: 20px;
	font-size: 14.5px;
}

.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); align-self: center; }
.stock-label { font-family: var(--font-head); font-weight: 600; }
.stock-note { color: var(--muted); }

.stock-row--in .stock-dot { background: #3f8f5f; }
.stock-row--order .stock-dot { background: #c9902f; }
.stock-row--out .stock-dot { background: #b4483f; }

/* Suurustabeli nupp */

.sizechart-open {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: none;
	border: 0;
	padding: 0 0 20px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	color: var(--brown);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.sizechart-open:hover { color: var(--terracotta); }
.sizechart-open .icon { width: 19px; height: 19px; }

/* Variatsioonid ja swatchid */

.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 4px; border: 0; }
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td { display: block; width: 100%; border: 0; padding: 0; }
.woocommerce div.product form.cart .variations tr { margin-bottom: 20px; }
.woocommerce div.product form.cart .variations .label { padding: 0 0 9px; }

.woocommerce div.product form.cart .variations label {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--brown-soft);
}

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }

.swatch {
	min-width: 52px;
	padding: 11px 16px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	color: var(--brown);
	transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.swatch:hover { border-color: var(--brown-soft); }
.swatch.is-active { border-color: var(--brown); background: var(--brown); color: var(--beige); }

.swatch.is-unavailable {
	opacity: .4;
	text-decoration: line-through;
	cursor: not-allowed;
}

.swatch--color { display: inline-flex; align-items: center; gap: 9px; }

.swatch__chip {
	width: 18px; height: 18px;
	border-radius: 50%;
	border: 1px solid rgba(61, 53, 46, .22);
	flex: none;
}

.variations select { display: none; }
.woocommerce div.product form.cart .reset_variations { display: none !important; }

.woocommerce div.product form.cart .woocommerce-variation-price { margin-bottom: 16px; }
.woocommerce div.product form.cart .woocommerce-variation-price .price { font-family: var(--font-head); font-size: 26px; font-weight: 600; }
.woocommerce div.product form.cart .woocommerce-variation-availability { margin-bottom: 12px; font-size: 14.5px; }

/* Ostunupp */

.woocommerce div.product form.cart { display: block; margin-bottom: 24px; }

.woocommerce div.product form.cart .quantity {
	display: inline-flex;
	margin-right: 10px;
	vertical-align: top;
}

.woocommerce div.product form.cart .quantity input {
	width: 78px;
	height: 54px;
	padding: 0 10px;
	font: inherit;
	font-size: 16px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 100px;
	background: var(--white);
	color: var(--brown);
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
	height: 54px;
	padding: 0 38px;
	background: var(--terracotta);
	color: var(--white);
	border: 0;
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15.5px;
	transition: background .2s var(--ease);
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover { background: var(--terracotta-dark); }
.woocommerce div.product form.cart button.single_add_to_cart_button:disabled { background: var(--brown-soft); opacity: .5; }

.product-perks {
	list-style: none;
	margin: 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 10px;
	font-size: 14.5px;
	color: var(--brown-soft);
}

.product-perks li { position: relative; padding-left: 26px; }

.product-perks li::before {
	content: "";
	position: absolute;
	left: 0; top: 8px;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--terracotta);
}

/* Detailid */

.product-details { padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }

.details__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}

.details__title { font-size: 22px; margin-bottom: 18px; }

.entry h3 { font-family: var(--font-head); font-size: 18px; margin: 26px 0 10px; }
.entry ul { padding-left: 20px; margin: 0 0 16px; }
.entry li { margin-bottom: 6px; }

.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 15px; }
.specs dt { font-weight: 600; color: var(--brown-soft); }
.specs dd { margin: 0; }

/* Suurustabeli aken */

.sizechart { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.sizechart[hidden] { display: none; }
.sizechart__backdrop { position: absolute; inset: 0; background: rgba(43, 37, 32, .55); }

.sizechart__box {
	position: relative;
	background: var(--white);
	border-radius: var(--radius-lg);
	width: min(760px, 100%);
	max-height: 86vh;
	overflow: auto;
	box-shadow: 0 30px 70px rgba(43, 37, 32, .3);
}

.sizechart__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 26px;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.sizechart__title { font-size: 20px; }
.sizechart__close { background: none; border: 0; color: var(--brown); display: grid; place-items: center; }
.sizechart__body { padding: 24px 26px 30px; }

.sizechart__body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sizechart__body th, .sizechart__body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sizechart__body th { font-family: var(--font-head); font-weight: 600; background: var(--beige); }

/* Seotud tooted */

.related.products, .up-sells.products { padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.related.products > h2, .up-sells.products > h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 26px; }

@media (max-width: 900px) {
	.product-main, .details__grid { grid-template-columns: 1fr; }
	.woocommerce div.product .product-gallery .woocommerce-product-gallery { position: static; top: auto; }
}

/* Woo enda saadavuse tekst on üleliigne, laoseisu riba katab selle. */
.woocommerce div.product form.cart .woocommerce-variation-availability { display: none; }

/* --------------------------------------------------------------------------
   WooCommerce'i vaikestiilide ülekirjutused.
   Woo enda reeglid on kõrgema kaaluga (nt .woocommerce div.product div.images),
   nii et need vajavad sama täpset selektorit.
   -------------------------------------------------------------------------- */

/* Hinnad brändivärvi, Woo vaikimisi on oliivroheline. */
.woocommerce div.product .product-price .price,
.woocommerce div.product .product-price p.price,
.woocommerce div.product .product-price span.price,
.woocommerce div.product .woocommerce-variation-price .price {
	color: var(--brown);
	font-family: var(--font-head);
	font-weight: 600;
}

.woocommerce div.product .product-price .price ins,
.woocommerce div.product .woocommerce-variation-price .price ins { color: var(--terracotta); }

.woocommerce div.product .product-price .price del { color: var(--muted); }

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price ins { color: var(--brown); }

/* Rippmenüüd on swatchide taga peidus, aga jäävad vormi väärtuse kandjaks. */
.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart .variations td.value select { display: none; }

/* Pisipildid */
.product-gallery .flex-control-thumbs {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
}

.product-gallery .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 520px) {
	.product-gallery .flex-control-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Galerii kleepumine ja pisipildid.

   Kleepumine käib meie enda wrapperi peal. Woo hoiab .woocommerce-product-gallery
   elementi position: relative all sama täpsete selektoritega, mis laetakse hiljem,
   ja seal jäi meie top-väärtus lihtsalt nihkeks, mis lükkas pildi allapoole. */

.product-gallery {
	position: sticky;
	top: 120px;
	align-self: start;
}

.woocommerce div.product .product-gallery .woocommerce-product-gallery { top: auto; }

.woocommerce div.product .product-gallery ol.flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce div.product .product-gallery ol.flex-control-thumbs li {
	width: auto;
	float: none;
	margin: 0;
	list-style: none;
}

.woocommerce div.product .product-gallery ol.flex-control-thumbs img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--beige);
	cursor: pointer;
	opacity: .5;
	transition: opacity .2s var(--ease);
}

.woocommerce div.product .product-gallery ol.flex-control-thumbs img.flex-active,
.woocommerce div.product .product-gallery ol.flex-control-thumbs img:hover { opacity: 1; }

@media (max-width: 900px) {
	.product-gallery { position: static; top: auto; }
}

@media (max-width: 520px) {
	.woocommerce div.product .product-gallery ol.flex-control-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   Kategoorialeht
   ========================================================================== */

.archive-head { margin-bottom: 22px; }
.archive-title { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 12px; }
.archive-desc { max-width: 70ch; color: var(--brown-soft); }

/* Alamkategooriad vasakule, hinnalüliti paremale samale reale. */
.archive-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-bottom: 30px;
}

/* Maksulüliti jääb alati paremale, ka lõppkategoorias ilma alamkategooriateta. */
.archive-bar .tax-switch { margin-left: auto; }

.subcats { display: flex; flex-wrap: wrap; gap: 9px; }

.subcats__chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	background: var(--beige);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	transition: background .2s var(--ease), color .2s var(--ease);
}

.subcats__chip span { font-weight: 500; color: var(--muted); font-size: 13px; }
.subcats__chip:hover { background: var(--brown); color: var(--beige); }
.subcats__chip:hover span { color: rgba(245, 240, 232, .7); }

.shop-layout {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
	padding-bottom: clamp(48px, 6vw, 88px);
}

/* Filtripaneel */

.filters {
	position: sticky;
	top: 120px;
	/* Paneel on tihti pikem kui ekraan; keritagu see ise, mitte ei lõigataks. */
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(61, 53, 46, .25) transparent;
	overscroll-behavior: contain;
}
.filters::-webkit-scrollbar { width: 8px; }
.filters::-webkit-scrollbar-thumb { background: rgba(61, 53, 46, .18); border-radius: 4px; }
.filters::-webkit-scrollbar-thumb:hover { background: rgba(61, 53, 46, .3); }

/* Suurused: väiksed checkboxid kahes veerus */
.filter-group__body--sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 14px; }
.filter-group__body--sizes .filter-check { padding: 4px 0; font-size: 13.5px; gap: 8px; }
.filter-group__body--sizes .filter-check input { width: 15px; height: 15px; }

.filters__head { display: none; }

.filter-group { border: 0; margin: 0 0 4px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }

.filter-group__title {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--brown-soft);
	padding: 20px 0 12px;
}

.filter-group:first-of-type .filter-group__title { padding-top: 0; }

/* Alamkategooriate navigatsioon filtrite kohal */

.filters__cats { margin: 0 0 4px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.filters__cats-title { padding-top: 0; margin: 0; }
.filters__cats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }

.filters__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 12px;
	border-radius: var(--radius);
	font-size: 15px;
	transition: background .15s var(--ease), color .15s var(--ease);
}

.filters__cat:hover { background: var(--beige); color: var(--terracotta); }
.filters__cat em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.filters__cat.is-current { background: var(--beige); font-weight: 600; color: var(--terracotta); }
.filters__cat.is-current em { color: inherit; }

.filter-group__body { display: grid; gap: 3px; }
.filter-group__body--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }

.filter-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	cursor: pointer;
	font-size: 15px;
}

.filter-check input { accent-color: var(--terracotta); width: 16px; height: 16px; flex: none; }
.filter-check span { flex: 1; }
.filter-check em { font-style: normal; font-size: 13px; color: var(--muted); }
.filter-check:hover span { color: var(--terracotta); }

/* Suurused ruudustikuna */

.filter-check--box { padding: 0; position: relative; }
.filter-check--box input { position: absolute; opacity: 0; pointer-events: none; }

.filter-check--box span {
	display: grid;
	place-items: center;
	width: 100%;
	padding: 10px 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.filter-check--box input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--beige); }
.filter-check--box input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* Hind */

.filter-price { display: flex; align-items: center; gap: 8px; }

.filter-price input {
	width: 100%;
	min-width: 0;
	font: inherit;
	font-size: 14.5px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
}

.filter-price__sep { color: var(--muted); }
.filter-price__cur { color: var(--muted); font-size: 14.5px; }

.filters__actions { display: grid; gap: 12px; justify-items: start; padding-top: 22px; border-top: 1px solid var(--line); margin-top: 18px; }
.filters__actions .btn { width: 100%; justify-content: center; }

.filters__reset { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.filters__reset:hover { color: var(--terracotta); }

/* Riba tulemuste kohal */

.shop-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--line);
}

.shop-count { font-size: 14.5px; color: var(--muted); }
.shop-count p { margin: 0; }

/* Woo lisab tulemuste arvule oma joonduse, meil on see riba vasakul. */
.woocommerce .shop-count .woocommerce-result-count {
	margin: 0;
	float: none;
	text-align: left;
}

.woocommerce .woocommerce-ordering { margin: 0; float: none; }

.woocommerce-ordering select {
	font: inherit;
	font-size: 14.5px;
	padding: 11px 42px 11px 18px;
	border: 1px solid var(--line);
	border-radius: 100px;
	background-color: var(--white);
	color: var(--brown);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d352e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 15px;
}

.woocommerce-ordering select:hover { border-color: var(--brown-soft); }
.woocommerce-ordering select:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 1px; }

/* Aktiivsed filtrid */

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	background: var(--beige);
	border-radius: 100px;
	font-size: 14px;
	transition: background .2s var(--ease), color .2s var(--ease);
}

.chip .icon { width: 14px; height: 14px; opacity: .55; }
.chip:hover { background: var(--brown); color: var(--beige); }
.chip--clear { background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.chip--clear:hover { background: none; color: var(--terracotta); }

/* Tühi tulemus */

.empty { padding: 60px 0; max-width: 46ch; }
.empty__title { font-size: 24px; margin-bottom: 10px; }
.empty p { color: var(--muted); margin-bottom: 22px; }

/* Lehitsemine */

.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; border: 0; }

.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	background: var(--white);
}

.woocommerce-pagination ul li span.current { background: var(--brown); border-color: var(--brown); color: var(--beige); }
.woocommerce-pagination ul li a:hover { border-color: var(--brown); }

/* Filtrite nupp mobiilis */

.filters-toggle { display: none; }

@media (max-width: 1000px) {
	.shop-layout { grid-template-columns: 1fr; }

	.filters-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 13px 24px;
		margin-bottom: 20px;
		background: var(--brown);
		color: var(--beige);
		border: 0;
		border-radius: 100px;
		font-family: var(--font-head);
		font-weight: 600;
		font-size: 15px;
	}

	.filters-toggle__count {
		display: grid;
		place-items: center;
		min-width: 21px; height: 21px;
		padding: 0 6px;
		background: var(--terracotta);
		border-radius: 100px;
		font-size: 12px;
	}

	.filters {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(90vw, 380px);
		background: var(--white);
		z-index: 110;
		padding: 0 22px 30px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .3s var(--ease);
		box-shadow: 0 0 60px rgba(61, 53, 46, .2);
	}

	.filters { max-height: none; padding-right: 22px; }
	.filters.is-open { transform: translateX(0); }

	.filters__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		padding: 20px 0 16px;
		margin-bottom: 6px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}

	.filters__title { font-size: 19px; }
	.filters__close { background: none; border: 0; color: var(--brown); display: grid; place-items: center; }
}

@media (max-width: 700px) {
	.filter-group__body--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shop-bar { gap: 12px; }
}

.woocommerce div.product .woocommerce-breadcrumb { padding-top: clamp(20px, 2.6vw, 34px); }

/* ==========================================================================
   Oma rippmenüü
   ========================================================================== */

.kselect { position: relative; display: inline-block; }
.kselect select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

.kselect__button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 190px;
	padding: 11px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 14.5px;
	color: var(--brown);
	text-align: left;
	transition: border-color .18s var(--ease);
}

.kselect__button::after {
	content: "";
	width: 15px; height: 15px;
	margin-left: auto;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d352e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
	transition: transform .2s var(--ease);
}

.kselect__button:hover { border-color: var(--brown-soft); }
.kselect.is-open .kselect__button { border-color: var(--brown); }
.kselect.is-open .kselect__button::after { transform: rotate(180deg); }

.kselect__list {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	min-width: 100%;
	width: max-content;
	max-width: 320px;
	padding: 8px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: 0 18px 44px rgba(61, 53, 46, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}

.kselect.is-open .kselect__list { opacity: 1; visibility: visible; transform: translateY(0); }

.kselect__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	background: none;
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--brown);
	text-align: left;
	transition: background .15s var(--ease), color .15s var(--ease);
}

.kselect__option:hover, .kselect__option:focus-visible { background: var(--beige); outline: none; }
.kselect__option.is-selected { color: var(--terracotta); font-weight: 600; }

.kselect__option.is-selected::before {
	content: "";
	width: 14px; height: 14px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b85c38' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kselect__option:not(.is-selected)::before { content: ""; width: 14px; flex: none; }

@media (max-width: 700px) {
	.kselect, .kselect__button { width: 100%; }
	.kselect__list { left: 0; right: auto; max-width: none; }
}

/* Kategoorialehel teekonda ei kuvata: menüü märgib aktiivse kategooria ja
   pealkiri ütleb sama asja. Tootelehel on teekond alles. */
.archive-head { padding-top: clamp(20px, 2.6vw, 34px); }

/* ==========================================================================
   Trükk ja tikkimine
   ========================================================================== */

.tikk-hero { background: var(--brown); color: var(--beige); }

.tikk-hero__inner { padding-block: clamp(48px, 6vw, 88px); }
.tikk-hero__body { max-width: 62ch; }
.tikk-hero__title { font-size: clamp(30px, 4vw, 54px); margin-bottom: 18px; }
.tikk-hero__text { color: rgba(245, 240, 232, .8); font-size: clamp(16px, 1.2vw, 18px); margin-bottom: 30px; }
.tikk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sammud */

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 26px);
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}

.step { padding: 28px 26px; background: var(--beige); border-radius: var(--radius-lg); }

.step__num {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	margin-bottom: 18px;
	background: var(--terracotta);
	color: var(--white);
	border-radius: 50%;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
}

.step__title { font-size: 18px; margin-bottom: 8px; }
.step__text { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Näidete galerii */

.tikk-gallery { background: var(--beige); }

.tikk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: clamp(12px, 1.4vw, 20px);
}

.tikk-item {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--white);
}

.tikk-item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}

.tikk-item:hover img { transform: scale(1.05); }

/* Kliendilogod */

.logo-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: clamp(10px, 1.2vw, 18px);
	align-items: center;
}

.logo-wall__item {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 2;
	padding: 16px;
	background: var(--beige);
	border-radius: var(--radius-lg);
}

.logo-wall__item img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
	filter: grayscale(1);
	opacity: .72;
	transition: filter .25s var(--ease), opacity .25s var(--ease);
}

.logo-wall__item:hover img { filter: none; opacity: 1; }

/* Lightbox */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: grid;
	place-items: center;
	padding: 32px;
	background: rgba(30, 25, 22, .9);
}

.lightbox[hidden] { display: none; }

.lightbox__img {
	max-width: min(1000px, 92vw);
	max-height: 86vh;
	width: auto;
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lightbox__close {
	position: absolute;
	top: 22px; right: 22px;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	background: rgba(245, 240, 232, .12);
	border: 0;
	border-radius: 50%;
	color: var(--beige);
}

.lightbox__close:hover { background: rgba(245, 240, 232, .22); }

@media (max-width: 900px) {
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.steps { grid-template-columns: 1fr; }
	.solutions__grid { grid-template-columns: 1fr; }
	.tikk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Brändid
   ========================================================================== */

.brand-hero { background: var(--beige); }

.brand-hero__inner {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	padding-block: clamp(40px, 5vw, 72px);
}

.brand-hero__logo {
	display: grid;
	place-items: center;
	padding: 26px;
	background: var(--white);
	border-radius: var(--radius-lg);
	min-height: 150px;
}

.brand-hero__logo img { max-width: 100%; height: auto; mix-blend-mode: multiply; }

.brand-wordmark {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(20px, 2vw, 26px);
	letter-spacing: .02em;
	text-align: center;
	color: var(--brown);
}

.brand-hero__title { font-size: clamp(30px, 3.6vw, 50px); margin-bottom: 12px; }

.brand-hero__short {
	font-family: var(--font-head);
	font-size: clamp(17px, 1.4vw, 20px);
	font-weight: 500;
	color: var(--terracotta);
	margin-bottom: 20px;
}

.brand-hero__text { max-width: 68ch; color: var(--brown-soft); }
.brand-hero__text p:last-child { margin-bottom: 0; }

.brand-reasons { background: var(--brown); color: var(--beige); }

.brand-reasons .container { padding-block: clamp(32px, 4vw, 52px); }

.brand-reasons__title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: rgba(245, 240, 232, .6);
	margin-bottom: 20px;
}

.brand-reasons__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.brand-reasons__list li {
	position: relative;
	padding-left: 28px;
	font-size: 15.5px;
}

.brand-reasons__list li::before {
	content: "";
	position: absolute;
	left: 0; top: 9px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--terracotta);
}

/* Brändide nimekiri */

.brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(14px, 1.6vw, 24px);
	padding-bottom: clamp(48px, 6vw, 88px);
}

.brand-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.brand-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(61, 53, 46, .12); }

.brand-card__logo {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: 26px;
	background: var(--beige);
}

.brand-card__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }

.brand-card__body { display: block; padding: 20px 22px 24px; }

.brand-card__name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.brand-card__short { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.brand-card__count { display: block; font-size: 13px; color: var(--terracotta); font-weight: 600; }

@media (max-width: 720px) {
	.brand-hero__inner { grid-template-columns: 1fr; }
	.brand-hero__logo { max-width: 200px; }
}

/* Brändilehel algab tootepool kohe tumeda riba järel, vaja hingamisruumi. */
.brand-body { padding-top: clamp(28px, 3.5vw, 48px); }

/* ==========================================================================
   Kategooriate mosaiik avalehel
   ========================================================================== */

.cat-mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 20px);
}

.cat-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--beige-dark);
	isolation: isolate;
}

.cat-tile__media {
	position: absolute;
	inset: 0;
	display: block;
}

.cat-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transition: transform .7s var(--ease);
}

.cat-tile:hover .cat-tile__media img { transform: scale(1.06); }

/* Tume gradient teksti alla, muidu kaob valge kiri heledal fotol ära. */
.cat-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg,
		rgba(30, 25, 22, .05) 0%,
		rgba(30, 25, 22, .18) 42%,
		rgba(30, 25, 22, .74) 78%,
		rgba(30, 25, 22, .9) 100%);
	transition: opacity .35s var(--ease);
}

.cat-tile:hover::after { opacity: .92; }

.cat-tile__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	display: block;
	padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px);
	color: var(--beige);
}

.cat-tile__name {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(19px, 1.7vw, 25px);
	line-height: 1.1;
	letter-spacing: -.01em;
	margin-bottom: 0;
}

.cat-tile__desc {
	display: block;
	font-size: 14.5px;
	line-height: 1.5;
	color: rgba(245, 240, 232, .82);
	max-width: 42ch;
}

/* Vaikimisi on pealkiri all. Hoveril kerkib pealkiri veidi ja "Vaata tooteid"
   nupp avaneb alla — märgise ala kasvab ülespoole (body on bottom-ankruga). */
.cat-tile__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	max-height: 0;
	overflow: hidden;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--beige);
	opacity: 0;
	transform: translateY(6px);
	transition: max-height .32s var(--ease), margin-top .32s var(--ease), opacity .28s var(--ease), transform .32s var(--ease);
}

.cat-tile__more .icon { width: 17px; height: 17px; }

.cat-tile:hover .cat-tile__more,
.cat-tile:focus-within .cat-tile__more {
	max-height: 34px;
	margin-top: 12px;
	opacity: 1;
	transform: translateY(0);
}

/* Fotota kategooria: brändipärane taust, mitte tühi hall kast. */
.cat-tile .tile__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-head);
	font-size: clamp(48px, 6vw, 86px);
	font-weight: 600;
	text-transform: uppercase;
	color: rgba(61, 53, 46, .14);
	background: linear-gradient(150deg, #ded5c6 0%, var(--beige-dark) 55%, #d3c8b6 100%);
}

/* Kaheksa valdkonda jaguneb neljaks veeruks kahte täisritta ilma augita. */
@media (min-width: 1180px) {
	.cat-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.cat-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.cat-mosaic { grid-template-columns: 1fr; }
	.cat-tile { aspect-ratio: 3 / 2; }
	.cat-tile__more { opacity: 1; transform: none; }
}

/* Klikitav USP-plaat */

.usp__item--link { text-decoration: none; transition: background .2s var(--ease); }
.usp__item--link:hover { background: rgba(245, 240, 232, .06); }

.usp__item strong { display: flex; align-items: center; gap: 8px; }

.usp__item--link strong .icon {
	width: 16px; height: 16px;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.usp__item--link:hover strong .icon { opacity: .8; transform: translateX(0); }

/* ==========================================================================
   Pood Tallinnas
   ========================================================================== */

.shop-hero { background: var(--beige); }
.shop-hero .container { padding-block: clamp(36px, 4.5vw, 64px); }
.shop-hero__title { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 14px; }
.shop-hero__text { max-width: 62ch; color: var(--brown-soft); margin: 0; }

.shop-info__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.shop-info__heading { font-size: 22px; margin-bottom: 22px; }

.shop-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px 26px;
	margin: 0 0 28px;
	font-size: 15.5px;
}

.shop-facts dt {
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--brown-soft);
	padding-top: 3px;
}

.shop-facts dd { margin: 0; line-height: 1.5; }
.shop-facts a:hover { color: var(--terracotta); }
.shop-facts__todo { color: var(--muted); font-style: italic; }

.shop-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn--line { border-color: var(--line); color: var(--brown); }
.btn--line:hover { border-color: var(--brown); background: var(--beige); }

.shop-info__map { position: relative; }

.shop-info__map iframe {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: block;
	background: var(--beige);
}

.shop-info__maplink {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.shop-info__maplink:hover { color: var(--terracotta); }

.shop-why { background: var(--beige); }

.shop-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 24px);
}

.shop-why__item { padding: 26px 24px; background: var(--white); border-radius: var(--radius-lg); }
.shop-why__title { font-size: 18px; margin-bottom: 8px; }
.shop-why__text { font-size: 14.5px; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
	.shop-info__grid { grid-template-columns: 1fr; }
	.shop-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.shop-why__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Käibemaksu lüliti
   ========================================================================== */

.tax-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: 100px;
}

.tax-switch__label {
	padding: 0 10px 0 12px;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.tax-switch__btn {
	padding: 5px 13px;
	background: none;
	border: 0;
	border-radius: 100px;
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	transition: background .18s var(--ease), color .18s var(--ease);
}

.tax-switch { background: var(--beige); }
.tax-switch__label { color: var(--muted); }
.tax-switch__btn { color: var(--brown-soft); }
.tax-switch__btn:hover { color: var(--brown); }
.tax-switch__btn.is-active { background: var(--brown); color: var(--beige); }

.price-suffix { font-size: .62em; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.hero .price-suffix, .cta .price-suffix { color: rgba(245, 240, 232, .6); }

/* ==========================================================================
   Päringukorv
   ========================================================================== */

.quote-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.woocommerce div.product form.cart .quote-add {
	height: 54px;
	padding: 0 26px;
	margin-left: 10px;
	vertical-align: top;
}

.quote-add--loop {
	display: flex;
	margin: 8px 20px 0;
	padding: 11px 16px;
	border: 1px solid var(--line);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 13.5px;
	color: var(--brown-soft);
	background: none;
	transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.quote-add--loop:hover { border-color: var(--brown); color: var(--brown); background: var(--beige); }
.quote-add--loop .icon { width: 16px; height: 16px; }

.quote-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.quote-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }

.quote-table th {
	text-align: left;
	padding: 0 12px 12px 0;
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--brown-soft);
	border-bottom: 1px solid var(--line);
}

.quote-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }

.quote-table__product { display: flex; align-items: center; gap: 14px; }
.quote-table__thumb { flex: none; width: 68px; }
.quote-table__thumb img { border-radius: var(--radius); background: var(--beige); }
.quote-table__name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.quote-table__name:hover { color: var(--terracotta); }
.quote-table__sku { display: block; font-size: 13px; color: var(--muted); }

.quote-table input[type="number"] {
	width: 76px;
	padding: 9px 10px;
	font: inherit;
	font-size: 15px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
}

.quote-table__remove { width: 40px; text-align: right; }
.quote-table__remove a { color: var(--muted); display: inline-grid; place-items: center; }
.quote-table__remove a:hover { color: var(--terracotta); }

.quote-form {
	padding: clamp(24px, 3vw, 34px);
	background: var(--beige);
	border-radius: var(--radius-lg);
}

.quote-form__title { font-size: 21px; margin-bottom: 20px; }
.quote-form__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.quote-done { padding: 40px 0; max-width: 52ch; }
.quote-done__title { font-size: 26px; margin-bottom: 10px; }
.quote-done p { color: var(--muted); margin-bottom: 22px; }

/* Vormiväljad, ühine stiil */

.field { display: grid; gap: 6px; margin: 0 0 16px; }

.field label {
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--brown-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
}

/* Kuupäevavälja natiivne kalendriikoon ja tekst brändivärvi. */
.field input[type="date"] { min-height: 46px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }

.field input:focus, .field textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

.field--check label {
	display: flex;
	align-items: center;
	gap: 10px;
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 400;
	color: var(--brown);
}

.field--check input { accent-color: var(--terracotta); width: 17px; height: 17px; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

.form-error {
	padding: 13px 18px;
	background: rgba(180, 72, 63, .1);
	border-left: 3px solid #b4483f;
	border-radius: var(--radius);
	color: #8d3831;
	font-size: 14.5px;
	margin-bottom: 22px;
}

/* ==========================================================================
   Äriklient
   ========================================================================== */

.b2b-hero { background: var(--brown); color: var(--beige); }
.b2b-hero .container { padding-block: clamp(40px, 5vw, 76px); }
.b2b-hero__title { font-size: clamp(30px, 3.8vw, 50px); margin-bottom: 16px; }
.b2b-hero__text { max-width: 62ch; color: rgba(245, 240, 232, .8); margin: 0; }

.b2b-perks__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 1.6vw, 22px);
	margin-bottom: clamp(32px, 4vw, 52px);
}

.b2b-perk { padding: 26px 24px; background: var(--beige); border-radius: var(--radius-lg); }
.b2b-perk__title { font-size: 18px; margin-bottom: 8px; }
.b2b-perk__text { font-size: 14.5px; color: var(--muted); margin: 0; }

.b2b-tiers { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.b2b-tiers__title { font-size: 18px; margin-bottom: 20px; }
.b2b-tiers__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.b2b-tier { text-align: center; padding: 20px 12px; background: var(--beige); border-radius: var(--radius-lg); }
.b2b-tier__percent { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--terracotta); }
.b2b-tier__label { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

.b2b-apply__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.b2b-apply__intro p { color: var(--brown-soft); max-width: 46ch; }
.b2b-apply__ok { color: var(--terracotta); font-weight: 600; }

.b2b-form { padding: clamp(24px, 3vw, 34px); background: var(--beige); border-radius: var(--radius-lg); }

@media (max-width: 900px) {
	.quote-layout, .b2b-apply__inner { grid-template-columns: 1fr; }
	.b2b-perks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.archive-bar { align-items: flex-start; }
	.product-price-row { justify-content: flex-start; }
	.woocommerce div.product form.cart .quote-add { margin: 12px 0 0; width: 100%; }
	.b2b-tiers__row { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.quote-table__product { flex-direction: column; align-items: flex-start; gap: 8px; }
	.quote-table__thumb { width: 56px; }
}

@media (max-width: 560px) {
	.b2b-perks__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WooCommerce'i teated
   ========================================================================== */

.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 0 0 24px;
	padding: 15px 20px;
	background: var(--beige);
	border: 0;
	border-left: 3px solid var(--terracotta);
	border-radius: var(--radius);
	font-size: 15px;
	color: var(--brown);
	list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { content: none; }

.woocommerce-error { border-left-color: #b4483f; background: rgba(180, 72, 63, .08); }

.woocommerce-message a,
.woocommerce-info a {
	font-weight: 600;
	color: var(--terracotta);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-message .button,
.woocommerce-info .button {
	margin-left: auto;
	padding: 10px 22px;
	background: var(--brown);
	color: var(--beige);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover { background: var(--terracotta); color: var(--white); }

/* Kinnitusteade */

.koka-notice {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 24px;
	padding: 14px 20px;
	background: var(--beige);
	border-left: 3px solid #3f8f5f;
	border-radius: var(--radius);
	font-size: 15px;
}

.koka-notice__icon { display: grid; place-items: center; color: #3f8f5f; }
.koka-notice__icon .icon { width: 19px; height: 19px; stroke-width: 2.4; }
.koka-notice__text { font-weight: 600; font-family: var(--font-head); }

.koka-notice__link {
	margin-left: auto;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--terracotta);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.koka-notice__link:hover { color: var(--terracotta-dark); }

@media (max-width: 560px) {
	.koka-notice__link { margin-left: 0; }
}

/* ==========================================================================
   Ostukorv
   ========================================================================== */

.woocommerce-cart .page__title,
.woocommerce-checkout .page__title { margin-bottom: 26px; }

.woocommerce-cart-form { margin-bottom: 40px; }

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	border-radius: 0;
	margin: 0;
}

.woocommerce table.shop_table th {
	padding: 0 14px 12px 0;
	text-align: left;
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--brown-soft);
	border-bottom: 1px solid var(--line);
}

.woocommerce table.shop_table td {
	padding: 18px 14px 18px 0;
	border-top: 0;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

/* Nimeveerg neelab vaba ruumi, muidu venitab automaatpaigutus tühja
   eemaldamisveeru laiaks. */
.woocommerce table.shop_table .product-name { width: 100%; }
.woocommerce table.shop_table .product-remove { width: 44px; padding-right: 0; }

.woocommerce table.shop_table .product-remove a {
	display: inline-grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--beige);
	color: var(--brown-soft) !important;
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
}

.woocommerce table.shop_table .product-remove a:hover { background: var(--terracotta); color: var(--white) !important; }

/* Pisipildi lahter vajab kindlat laiust: nimeveerg võtab kogu vaba ruumi ja
   globaalne max-width: 100% kahandaks pildi lahtri sisulaiusele. Woo omalt
   poolt surub piltidele width: 32px. */
.woocommerce table.shop_table td.product-thumbnail,
.woocommerce table.shop_table th.product-thumbnail {
	width: 92px;
	min-width: 92px;
}

.woocommerce table.cart td.product-thumbnail img,
.woocommerce table.shop_table td.product-thumbnail img {
	width: 76px;
	max-width: none;
	height: auto;
	border-radius: var(--radius);
	background: var(--beige);
}

.woocommerce table.shop_table .product-name a {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15.5px;
	color: var(--brown);
}

.woocommerce table.shop_table .product-name a:hover { color: var(--terracotta); }

.woocommerce table.shop_table .variation,
.woocommerce table.shop_table dl.variation {
	margin: 6px 0 0;
	font-size: 13.5px;
	color: var(--muted);
}

.woocommerce table.shop_table dl.variation dt,
.woocommerce table.shop_table dl.variation dd { display: inline; margin: 0; font-weight: 400; }
.woocommerce table.shop_table dl.variation dd { margin-right: 10px; }
.woocommerce table.shop_table dl.variation dd p { display: inline; margin: 0; }

.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15.5px;
	white-space: nowrap;
}

.woocommerce .quantity input.qty {
	width: 78px;
	height: 46px;
	padding: 0 8px;
	font: inherit;
	font-size: 15px;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 100px;
	background: var(--white);
	color: var(--brown);
}

/* Kupong ja korvi tegevused.

   NB: see element on tabeli lahter colspan'iga. display: flex võtaks lahtrilt
   tabelikäitumise ja colspan lakkaks toimimast, mistõttu rida kahaneks ühe
   veeru laiuseks. Seetõttu jääb lahter lahtriks ja lapsed paigutatakse
   ujutamisega. */
.woocommerce .cart .actions {
	padding-top: 22px;
	text-align: right;
	overflow: hidden;
}

.woocommerce .cart .actions .coupon {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	float: left;
	text-align: left;
	margin-right: 14px;
}

/* Uuendusnupp ei tohi kupongiplokiga kokku joosta, kui rida on kitsas. */
.woocommerce .cart .actions > .button { margin-left: 14px; }

/* Kupongiväli ja mõlemad nupud sama kõrgusega, muidu näevad välja juhuslikud. */
.woocommerce .cart .actions .coupon input[type="text"],
.woocommerce .cart .actions .button,
.woocommerce .cart .actions .coupon .button {
	height: 46px;
	padding-block: 0;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

/* Sama välimus nagu kassa vormiväljadel. Woo enda reegel on täpsem
   (.woocommerce-cart table.cart td.actions .coupon .input-text), seega
   vajab siin sama sügavust. */
.woocommerce .cart .actions .coupon input[type="text"],
.woocommerce-cart table.cart td.actions .coupon input.input-text {
	width: 210px;
	font: inherit;
	font-size: 15px;
	padding-inline: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
}

.woocommerce-cart table.cart td.actions .coupon input.input-text:focus {
	outline: 2px solid var(--terracotta);
	outline-offset: 1px;
}

.woocommerce .cart .actions .button,
.woocommerce .cart .actions .coupon .button {
	padding-inline: 26px;
	background: var(--brown);
	color: var(--beige);
	border: 0;
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	transition: background .2s var(--ease);
}

.woocommerce .cart .actions .button,
.woocommerce .cart .actions .coupon .button { color: var(--beige) !important; }

.woocommerce .cart .actions .button:hover { background: var(--terracotta); }

.woocommerce .cart .actions .button:disabled {
	background-color: transparent !important;
	border: 1px solid var(--line);
	color: var(--brown-soft) !important;
	cursor: not-allowed;
}

/* Kokkuvõtte kast */

.cart-collaterals { display: flex; justify-content: flex-end; }

.cart_totals {
	width: 100%;
	padding: clamp(22px, 2.6vw, 32px);
	background: var(--beige);
	border-radius: var(--radius-lg);
}

.cart_totals h2 { font-size: 20px; margin-bottom: 18px; }
/* Tabelilahtrite asemel read: nii on silt ja summa alati ühel joonel ja
   eraldusjoon ulatub üle terve rea, mitte ainult sildi alt. */
.cart_totals table.shop_table,
.cart_totals table.shop_table tbody { display: block; }

.cart_totals table.shop_table tr {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px 20px;
	padding: 13px 0;
	border-bottom: 1px solid rgba(61, 53, 46, .12);
}

.cart_totals table.shop_table tr:last-child { border-bottom: 0; }

/* Woo joonistab nendele lahtritele ülemise ääre kahest kohast, mõlemad
   täpsema selektoriga kui lihtne .cart_totals th. Seetõttu on siin sama
   sügavusega selektor, muidu tekivad rea alla katkendlikud jooned. */
.cart_totals table.shop_table th,
.cart_totals table.shop_table td,
.woocommerce-cart .cart-collaterals .cart_totals tr th,
.woocommerce-cart .cart-collaterals .cart_totals tr td,
.woocommerce-checkout .cart-collaterals .cart_totals tr th,
.woocommerce-checkout .cart-collaterals .cart_totals tr td,
.woocommerce table.shop_table tbody th.koka-reset {
	display: block;
	border: 0;
	padding: 0;
	white-space: nowrap;
}

.cart_totals table.shop_table th {
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--brown);
}

.cart_totals table.shop_table td { text-align: right; font-weight: 600; }
.cart_totals .order-total { padding-top: 16px; }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: 18px; }
.cart_totals .order-total td { font-family: var(--font-head); }
.cart_totals .woocommerce-shipping-destination { font-size: 13.5px; color: var(--muted); }

.wc-proceed-to-checkout { margin-top: 20px; }

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	padding: 16px 28px;
	background: var(--terracotta);
	color: var(--white);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
	text-align: center;
	transition: background .2s var(--ease);
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover { background: var(--terracotta-dark); }

.cart-empty { font-size: 18px; margin-bottom: 20px; }
.return-to-shop .button {
	display: inline-block;
	padding: 14px 30px;
	background: var(--brown);
	color: var(--beige);
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
}

/* ==========================================================================
   Kassa
   ========================================================================== */

.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

/* Kliendi tüübi valik ja sisselogimisriba renderduvad vormi sees ja katavad
   mõlemat veergu, muidu jaguneksid nad grid-lahtritena valesti. */
.woocommerce-checkout form.checkout > .checkout-intro { grid-column: 1 / -1; margin-bottom: 8px; }

/* Pealkiri ja kokkuvõte on ühes ümbrises, vt woocommerce/checkout/form-checkout.php */
.woocommerce-checkout #customer_details { min-width: 0; }
.woocommerce-checkout #order_review_heading { margin: 0 0 18px; font-size: 20px; }

.checkout-summary {
	position: sticky;
	top: 120px;
	min-width: 0;
}

/* Piiritletud kassa vormiga. Ilma selleta tabaks .woocommerce-checkout h3
   ka jaluse pealkirju, sest see on kere klass, mitte konteineri oma. */
.woocommerce-checkout form.checkout h3,
.woocommerce-checkout .checkout-summary h3 { font-size: 20px; margin: 0 0 18px; }

.woocommerce-checkout form.checkout h3#ship-to-different-address { font-size: 16px; }

.woocommerce form .form-row { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; }

.woocommerce form .form-row label {
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--brown-soft);
}

.woocommerce form .form-row .required { color: var(--terracotta); text-decoration: none; }

/* Textarea vajab klassiga selektorit, muidu jääb peale Woo enda reegel, mis
   annab talle teistsuguse äärevärvi ja polsterduse kui sisenditele. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row textarea.input-text,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
	width: 100%;
	height: auto;
	font: inherit;
	font-size: 15px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

.woocommerce form .form-row textarea.input-text {
	min-height: 96px;
	line-height: 1.5;
	resize: vertical;
}

.woocommerce .select2-container .select2-selection--single { display: flex; align-items: center; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--brown); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 8px; }

.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }

/* Vormil endal on klass checkout, mitte selle sees. */
@media (min-width: 600px) {
	.woocommerce form.checkout .form-row-first,
	.woocommerce form.checkout .form-row-last {
		display: inline-grid;
		width: calc(50% - 8px);
		vertical-align: top;
	}

	.woocommerce form.checkout .form-row-first { margin-right: 12px; }
}

#order_review {
	padding: clamp(22px, 2.6vw, 32px);
	background: var(--beige);
	border-radius: var(--radius-lg);
}

#order_review table.shop_table { table-layout: auto; }

#order_review table.shop_table th {
	border-bottom-color: rgba(61, 53, 46, .12);
	padding: 12px 0;
	white-space: nowrap;
}

#order_review table.shop_table td {
	border-bottom-color: rgba(61, 53, 46, .12);
	padding: 12px 0 12px 16px;
	text-align: right;
	white-space: nowrap;
}

#order_review table.shop_table td.product-name,
#order_review table.shop_table th.product-name {
	width: 100%;
	text-align: left;
	font-size: 14.5px;
	white-space: normal;
}

#order_review table.shop_table .product-quantity { font-weight: 600; }

#order_review .cart-subtotal th,
#order_review .cart-subtotal td { font-size: 15px; }

#order_review .order-total th,
#order_review .order-total td {
	font-size: 19px;
	font-family: var(--font-head);
	border-bottom: 0;
	padding-top: 16px;
	vertical-align: baseline;
}

/* Käibemaksu märkus omaette reale, muidu murrab summa mitmele reale. */
#order_review .order-total td small,
#order_review .order-total td .includes_tax,
.cart_totals .order-total td small,
.cart_totals .order-total td .includes_tax {
	display: block;
	margin-top: 4px;
	font-family: var(--font-body);
	font-size: 12.5px;
	font-weight: 400;
	color: var(--muted);
	white-space: nowrap;
}

.woocommerce-checkout #payment {
	background: none;
	border-radius: 0;
	margin-top: 22px;
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	margin: 0 0 18px;
	border-bottom: 1px solid rgba(61, 53, 46, .12);
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 12px 0;
	margin: 0;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] { accent-color: var(--terracotta); width: 17px; height: 17px; }

.woocommerce-checkout #payment div.payment_box {
	margin: 10px 0 0;
	padding: 14px 16px;
	background: var(--white);
	border-radius: var(--radius);
	font-size: 14.5px;
	color: var(--brown-soft);
}

.woocommerce-checkout #payment div.payment_box::before { display: none; }

.woocommerce-checkout #payment .form-row.place-order { margin: 0; padding: 0; }

.woocommerce #payment #place_order,
.woocommerce-checkout button#place_order {
	width: 100%;
	padding: 17px 28px;
	background: var(--terracotta);
	color: var(--white);
	border: 0;
	border-radius: 100px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
	transition: background .2s var(--ease);
}

.woocommerce #payment #place_order:hover { background: var(--terracotta-dark); }

.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13.5px; color: var(--muted); }

.woocommerce-info.woocommerce-no-shipping-methods, .woocommerce-form-login-toggle { margin-bottom: 22px; }

@media (max-width: 900px) {
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.checkout-summary { position: static; }
	.cart-collaterals { justify-content: stretch; }
	.cart_totals { width: 100%; }
}

@media (max-width: 640px) {
	.woocommerce table.shop_table thead { display: none; }
	.woocommerce-cart-form table.shop_table tr { display: grid; grid-template-columns: 76px 1fr 36px; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
	.woocommerce-cart-form table.shop_table td { border: 0; padding: 0; }
	.woocommerce-cart-form .product-thumbnail { grid-row: span 3; }
	.woocommerce-cart-form .product-remove { grid-row: 1; grid-column: 3; }
	.woocommerce-cart-form .product-name { grid-column: 2; }
	.woocommerce-cart-form .product-price { display: none; }
	.woocommerce-cart-form .product-quantity, .woocommerce-cart-form .product-subtotal { grid-column: 2; }
	.woocommerce .cart .actions { text-align: left; }
	.woocommerce .cart .actions .coupon { float: none; margin-bottom: 12px; }
	.woocommerce .cart .actions .coupon input[type="text"] { flex: 1; width: auto; }
	.woocommerce .cart .actions .button { width: 100%; }
}

/* ==========================================================================
   Ostukorv: kaardivaade kahes veerus
   ========================================================================== */

.woocommerce-cart .entry > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 460px;
	gap: clamp(24px, 3vw, 44px);
	align-items: start;
}

/* Selgesõnalised read: nii jääb kleepuv kokkuvõte kindlalt oma ritta ega saa
   soovituste peale ulatuda, ükskõik kui pikk ostukorv on. */
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; grid-row: 1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; grid-row: 2; margin-bottom: 0; }

/* Kleepumine käib sisemisel kastil, mitte ruudustiku lapsel. Sticky elemendi
   liikumist piirab tema ümbris, mitte ruudustiku lahter, seega ruudustiku
   lapsena saaks kast rännata üle terve lehe ja soovituste peale. */
.woocommerce-cart .cart-collaterals {
	grid-column: 2;
	grid-row: 2;
	display: block;
	align-self: stretch;
}

.woocommerce-cart .cart_totals {
	position: sticky;
	top: 120px;
}

.woocommerce-cart .cart-recos { grid-column: 1 / -1; grid-row: 3; }

/* Read kaartidena, mitte tabelina. */

.woocommerce-cart table.shop_table,
.woocommerce-cart table.shop_table tbody { display: block; }

.woocommerce-cart table.shop_table thead { display: none; }

.woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb name  remove"
		"thumb price remove"
		"thumb meta  meta";
	align-items: center;
	gap: 2px 18px;
	padding: 18px;
	margin-bottom: 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transition: border-color .2s var(--ease);
}

.woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item:hover { border-color: rgba(61, 53, 46, .28); }

.woocommerce-cart table.shop_table tbody td { display: block; border: 0; padding: 0; }

.woocommerce-cart td.product-thumbnail { grid-area: thumb; width: auto; min-width: 0; }
.woocommerce-cart td.product-name { grid-area: name; width: auto; }
.woocommerce-cart td.product-remove { grid-area: remove; width: auto; }
/* Ühikuhind nime alla, muidu jääb kogusega üle ühe arusaamatuks, millest
   reasumma tuleb. */
.woocommerce-cart table.shop_table tbody td.product-price {
	grid-area: price;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 400;
	color: var(--muted);
	white-space: nowrap;
}

.woocommerce-cart td.product-quantity,
.woocommerce-cart td.product-subtotal {
	grid-area: meta;
	display: inline-flex;
	align-items: center;
}

/* Kogus ja summa kõrvuti ühes alas */
.woocommerce-cart td.product-quantity { justify-self: start; margin-top: 12px; }
.woocommerce-cart td.product-subtotal { justify-self: end; margin-top: 12px; font-size: 17px; }
.woocommerce-cart td.product-remove { align-self: start; }

.woocommerce-cart .cart_item .product-name a { font-size: 16px; }

/* Koguse sammuti */

.qty-stepper { display: inline-flex; align-items: center; }

.qty-stepper__btn {
	width: 38px; height: 44px;
	display: grid;
	place-items: center;
	background: var(--beige);
	border: 1px solid var(--line);
	color: var(--brown);
	font-size: 18px;
	line-height: 1;
	transition: background .18s var(--ease), color .18s var(--ease);
}

.qty-stepper__btn:first-child { border-radius: 100px 0 0 100px; border-right: 0; }
.qty-stepper__btn:last-child { border-radius: 0 100px 100px 0; border-left: 0; }
.qty-stepper__btn:hover { background: var(--brown); color: var(--beige); }
.qty-stepper__btn:disabled { opacity: .35; cursor: not-allowed; background: var(--beige); color: var(--brown); }

.qty-stepper .quantity { margin: 0 !important; }

.woocommerce .qty-stepper .quantity input.qty,
.qty-stepper input.qty {
	width: 56px;
	height: 44px;
	border-radius: 0;
	border: 1px solid var(--line);
	border-left: 0;
	border-right: 0;
	-moz-appearance: textfield;
}

.qty-stepper input.qty::-webkit-outer-spin-button,
.qty-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Kokkuvõtte kast */

.woocommerce-cart .cart_totals { width: 100%; }

.cart-assurances {
	list-style: none;
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid rgba(61, 53, 46, .12);
	display: grid;
	gap: 9px;
	font-size: 13.5px;
	color: var(--brown-soft);
}

.cart-assurances li { position: relative; padding-left: 22px; }

.cart-assurances li::before {
	content: "";
	position: absolute;
	left: 0; top: 7px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--terracotta);
}

/* Soovitused */

.cart-recos { padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); margin-top: clamp(28px, 3vw, 44px); }
.cart-recos__title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 8px; }
.cart-recos__note { color: var(--muted); font-size: 15px; margin-bottom: 26px; max-width: 60ch; }

@media (max-width: 1000px) {
	.woocommerce-cart .entry > .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-cart .woocommerce-cart-form,
	.woocommerce-cart .cart-collaterals { grid-column: 1; }
	.woocommerce-cart .cart-collaterals { position: static; }
}

@media (max-width: 560px) {
	.woocommerce-cart table.shop_table tbody tr.woocommerce-cart-form__cart-item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		gap: 4px 14px;
		padding: 14px;
	}

	.woocommerce-cart td.product-thumbnail img { width: 72px; }
	.woocommerce-cart td.product-subtotal { font-size: 15.5px; }
}

/* ==========================================================================
   Kassa: kliendi tüüp ja sisselogimine
   ========================================================================== */

.checkout-intro { margin-bottom: 18px; }

.checkout-account {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding: 12px 18px;
	margin-bottom: 12px;
	background: var(--beige);
	border-radius: var(--radius-lg);
}

.checkout-account__text { display: grid; gap: 3px; }
.checkout-account__text strong { font-family: var(--font-head); font-size: 15.5px; }
.checkout-account__text span { font-size: 14px; color: var(--muted); max-width: 62ch; }

.customer-type {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	border: 0;
	margin: 0;
	padding: 0;
}

.customer-type__legend {
	grid-column: 1 / -1;
	padding: 0 0 10px;
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--brown-soft);
}

.customer-type__option {
	position: relative;
	display: grid;
	gap: 3px;
	padding: 12px 18px 12px 46px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: border-color .18s var(--ease), background .18s var(--ease);
}

.customer-type__option:hover { border-color: var(--brown-soft); }

.customer-type__option input {
	position: absolute;
	left: 20px; top: 50%;
	transform: translateY(-50%);
	width: 18px; height: 18px;
	accent-color: var(--terracotta);
	margin: 0;
}

.customer-type__option.is-active { border-color: var(--brown); background: var(--beige); }
.customer-type__title { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.customer-type__note { font-size: 13.5px; color: var(--muted); }

.checkout-b2b-hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.checkout-b2b-hint a { color: var(--terracotta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Ettevõtte väljad peidus, kuni eraisik on valitud. */
.checkout-hide-company .koka-company-field { display: none !important; }

/* Väljad on serveris valikulised ja muutuvad kohustuslikuks alles ettevõtte
   valikul, seega Woo "(valikuline)" silt eksitaks. Tärni lisab JS. */
.koka-company-field .optional { display: none; }
.koka-company-field .koka-required { color: var(--terracotta); }

@media (max-width: 620px) {
	.customer-type { grid-template-columns: 1fr; }
	.checkout-account { flex-direction: column; align-items: flex-start; }
}

/* Eraisikule aadressiväljad peidus. Kohustuslikkust kontrollib server. */
.checkout-hide-address .koka-address-field { display: none !important; }
.koka-address-field .optional { display: none; }

/* ==========================================================================
   Meist
   ========================================================================== */

.about-stats {
	list-style: none;
	margin: clamp(28px, 3vw, 42px) 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(28px, 4vw, 64px);
}

.about-stats__item { display: grid; gap: 2px; }

.about-stats__num {
	font-family: var(--font-head);
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.1;
}

.about-stats__label {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.about-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}

.about-story__text { max-width: 56ch; }
.about-story__text .section__title { margin-bottom: 18px; }
.about-story__text p { color: var(--brown-soft); }

.about-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }

.about-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
}

.about-points .icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-top: 3px;
	color: var(--terracotta);
}

.about-story__media { margin: 0; }

.about-story__media img {
	width: 100%;
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 50% 28%;
}

.about-clients { background: var(--beige); }

.about-clients__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 18px);
}

.about-clients__item {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 22px 22px 24px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.about-visit__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.about-card {
	display: block;
	padding: clamp(28px, 3.2vw, 44px);
	border-radius: var(--radius-lg);
	background: var(--beige);
	transition: background .25s var(--ease);
}

a.about-card:hover { background: var(--beige-dark); }

.about-card__eyebrow {
	font-size: 12.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 10px;
}

.about-card__title { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 12px; }
.about-card__text { color: var(--brown-soft); max-width: 46ch; margin: 0; }

.about-card__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	font-weight: 600;
	color: var(--terracotta);
	transition: gap .25s var(--ease);
}

a.about-card:hover .about-card__link { gap: 13px; }
.about-card__link .icon { width: 18px; height: 18px; }

.about-card--invert { background: var(--brown); color: var(--beige); }
.about-card--invert .about-card__eyebrow { color: rgba(245, 240, 232, .6); }
.about-card--invert .about-card__text { color: rgba(245, 240, 232, .78); }

.about-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn--line-light { border-color: rgba(245, 240, 232, .3); color: var(--beige); }
.btn--line-light:hover { border-color: var(--beige); background: rgba(245, 240, 232, .1); }

@media (max-width: 900px) {
	.about-story__grid { grid-template-columns: minmax(0, 1fr); }
	.about-story__media { order: -1; }
	.about-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about-visit__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
	.about-stats { gap: 20px 32px; }
	.about-clients__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Kontakt
   ========================================================================== */

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(20px, 2.6vw, 40px);
	align-items: start;
}

.contact__info { display: grid; gap: clamp(16px, 1.8vw, 24px); }

.contact-card {
	padding: clamp(24px, 2.6vw, 32px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.contact-card--quiet { background: var(--beige); border-color: transparent; }
.contact-card__title { font-size: 19px; margin-bottom: 18px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.contact-list li {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	font-size: 15px;
}

.contact-list__label {
	font-size: 12.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 3px;
}

.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--terracotta); }

.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.contact-map iframe {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: block;
	background: var(--beige);
}

@media (max-width: 900px) {
	.contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
	.contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.contact-list__label { padding-top: 0; }
}

/* Vormis venib kohandatud valik üle terve välja, mitte nupu laiuses. */
.quote-form .field .kselect { display: block; }
.quote-form .field .kselect__button { width: 100%; min-width: 0; }

/* Eraisikule peidetud ettevõtte-makseviisid (e-arve, maksetähtajaga arve). */
.woocommerce-checkout .wc_payment_method[hidden] { display: none !important; }

/* Toodete juurdelaadimise ala */
.shop-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: clamp(28px, 4vw, 48px) 0 8px;
}
.shop-more.is-loading .js-load-more { opacity: .6; pointer-events: none; }
.shop-more__status { font-size: 14px; color: var(--muted); min-height: 1em; }

/* Tootelehe koguse-stepper: nupud ja väli ühtlaseks (üle Woo pill-stiili).
   Vaikimisi reegel .woocommerce div.product form.cart .quantity input on
   kõrgema spetsiifilisusega, seega ühtlustame samal tasemel. */
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce div.product form.cart .qty-stepper { margin-right: 12px; vertical-align: middle; }
.woocommerce div.product form.cart .qty-stepper__btn { width: 46px; height: 54px; font-size: 20px; }
.woocommerce div.product form.cart .qty-stepper .quantity input.qty {
	height: 54px;
	width: 60px;
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	background: var(--white);
}

/* ==========================================================================
   Juriidilised lehed (müügitingimused jm)
   ========================================================================== */

.legal-hero__date { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.legal-wrap { max-width: 78ch; }
.legal h2 {
	font-family: var(--font-head);
	font-size: clamp(19px, 2vw, 23px);
	margin: 38px 0 14px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.legal h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.legal p { color: var(--brown-soft); margin: 0 0 12px; line-height: 1.65; }
.legal p strong { color: var(--brown); font-weight: 600; margin-right: 2px; }
.legal ul { margin: 4px 0 16px; padding-left: 22px; }
.legal li { color: var(--brown-soft); margin-bottom: 6px; }

/* Taganemisavaldus */
.withdrawal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(20px, 2.6vw, 40px);
	align-items: start;
}
.withdrawal-notes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.withdrawal-notes li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--brown-soft); }
.withdrawal-notes li::before {
	content: ""; position: absolute; left: 0; top: 8px;
	width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta);
}
@media (max-width: 900px) { .withdrawal-grid { grid-template-columns: minmax(0, 1fr); } }

/* Personaalse toote märgis (tikand/logo) */
.koka-personal-badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
	padding: 2px 9px;
	border-radius: 100px;
	background: var(--terracotta);
	color: var(--white);
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	line-height: 1.5;
	white-space: nowrap;
}

/* Tasuta tarne edenemisriba */
.ship-bar {
	margin: 0 0 22px;
	padding: 14px 18px;
	background: var(--beige);
	border-radius: var(--radius-lg);
}
.ship-bar__text {
	margin: 0 0 10px;
	font-size: 14.5px;
	color: var(--brown-soft);
	display: flex;
	align-items: center;
	gap: 8px;
}
.ship-bar__text strong { color: var(--brown); font-weight: 600; }
.ship-bar__text .icon { width: 18px; height: 18px; color: var(--terracotta); flex: none; }
.ship-bar__track { display: block; height: 7px; border-radius: 100px; background: var(--beige-dark); overflow: hidden; }
.ship-bar__fill { display: block; height: 100%; border-radius: 100px; background: var(--terracotta); transition: width .4s var(--ease); }
.ship-bar.is-reached .ship-bar__fill { background: #4a7c4e; }
.ship-bar.is-reached .ship-bar__text .icon { color: #4a7c4e; }

/* Kassa ülaosa kompaktsemalt: kupong, tarne riba, külalise-kast järjest. */
.woocommerce-checkout .ship-bar { padding: 11px 16px; margin-bottom: 12px; }
.woocommerce-checkout .ship-bar__text { margin-bottom: 8px; font-size: 14px; }
/* Kupong ja tasuta tarne riba kõrvuti; lahtikäiv kupongivorm täislaiuses alla. */
.checkout-toprow {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin-bottom: 16px;
}
.checkout-toprow > .woocommerce-form-coupon-toggle { flex: 1 1 300px; margin: 0; }
.checkout-toprow > .ship-bar { flex: 1 1 300px; margin: 0; }
.checkout-toprow > form.checkout_coupon { flex: 1 1 100%; margin: 4px 0 0; }

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	height: 100%;
	display: flex;
	align-items: center;
	padding: 12px 16px 12px 20px;
	margin: 0;
	font-size: 14px;
}

/* Kupongivorm: väli ja nupp ühel real, brändistiilis. */
.woocommerce-checkout form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--beige);
}
.woocommerce-checkout form.checkout_coupon .form-row { margin: 0; padding: 0; }
.woocommerce-checkout form.checkout_coupon .form-row-first { flex: 1 1 220px; }
.woocommerce-checkout form.checkout_coupon .form-row-last { flex: 0 0 auto; }
.woocommerce-checkout form.checkout_coupon #coupon_code.input-text {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	font-size: 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--brown);
}
.woocommerce-checkout form.checkout_coupon #coupon_code.input-text:focus {
	outline: 2px solid var(--terracotta);
	outline-offset: 1px;
	border-color: var(--terracotta);
}
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
	height: 48px;
	padding: 0 26px;
	background: var(--brown);
	color: var(--beige);
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	transition: background .2s var(--ease);
}
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"]:hover { background: #2c2620; }

@media (max-width: 560px) {
	.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] { width: 100%; }
}
.woocommerce-checkout .checkout-account__text span { font-size: 13.5px; }

/* Soodushind ja soodusmärgis punasega (eristub brändi terrakotast). */
:root { --sale: #cf2e2e; }
.woocommerce span.onsale.koka-sale { background: var(--sale); }
.woocommerce div.product .product-price .price ins,
.woocommerce div.product .woocommerce-variation-price .price ins,
.woocommerce ul.products li.product .price ins { color: var(--sale); font-weight: 700; text-decoration: none; }
.woocommerce div.product .product-price .price del,
.woocommerce ul.products li.product .price del { color: var(--muted); text-decoration: line-through; }

/* Tootelehe galerii soodusmärgis (üleval vasakul pildi kohal). */
.product-gallery { position: relative; }
.product-gallery .onsale { position: absolute; top: 12px; left: 12px; z-index: 3; margin: 0; }

/* ==========================================================================
   Kataloogid (tootjate PDF-id)
   ========================================================================== */

.catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.8vw, 22px);
}
.catalog-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--white);
	transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.catalog-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(61, 53, 46, .12); }
.catalog-card__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	padding: 24px;
	background: var(--beige);
}
.catalog-card__logo { max-height: 76px; width: auto; object-fit: contain; }
.catalog-card__name { font-family: var(--font-head); font-weight: 600; font-size: 22px; color: var(--brown-soft); }
.catalog-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.catalog-card__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.catalog-card__cta { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--terracotta); }
.catalog-card__cta .icon { width: 16px; height: 16px; }

@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .catalog-grid { grid-template-columns: minmax(0, 1fr); } }

/* Värvipallid kategooria-/otsingukaardil (koondtooted) */
.loop-swatches { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin: 4px 0 12px; }
.loop-swatch {
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--c, #d8d2c6);
	border: 1px solid rgba(0, 0, 0, .18);
	padding: 0; cursor: pointer; flex: none;
	transition: transform .12s ease, box-shadow .12s ease;
}
.loop-swatch:hover { transform: scale(1.14); }
.loop-swatch.is-active { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--brown); }
.loop-swatch--empty { background: repeating-linear-gradient(45deg, #e6e1d7 0 4px, #cfc8ba 4px 8px); }
.loop-swatch-more { font-size: 12px; color: var(--muted); margin-left: 2px; }

/* Tarneviisid (Montonio) korvis ja kassas — puhas vasakule joondatud nimekiri.
   Vaikimisi päris td on text-align:right, mis tekitas kaldu kaskaadi. */
#shipping_method {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	text-align: left;
}
#shipping_method li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 11px 0;
	text-align: left;
	border-bottom: 1px solid var(--line);
}
#shipping_method li:last-child { border-bottom: 0; }
#shipping_method li input[type="radio"] { margin: 0; flex: none; }
#shipping_method li > label {
	margin: 0;
	display: flex !important;
	align-items: center;
	gap: 12px;
	flex: 1;
	cursor: pointer;
	font-weight: 500;
	line-height: 1.3;
}
#shipping_method li > label > .montonio-shipping-label { flex: 1; }
#shipping_method li > label > .montonio-shipping-carrier-logo {
	display: block;
	order: 2;
	max-height: 26px;
	width: auto !important;
	height: auto;
	margin: 0 0 0 auto !important;
	flex: none;
}
/* Pakipunkti valija pisut õhku */
.montonio-shipping-pickup-points-wrapper,
#montonio-shipping-pickup-points { margin-top: 12px; }

/* Mini-cart hover päises */
.cart-menu { position: relative; }
.cart-flyout {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 70;
	width: 360px;
	max-width: 92vw;
	margin-top: 12px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 20px 54px rgba(40, 32, 26, .16);
	padding: 18px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s var(--ease);
}
/* väike kolmnurk ülanurgas ja nähtamatu sild, et hover ei katkeks */
.cart-flyout::before {
	content: "";
	position: absolute;
	top: -12px;
	right: 0;
	left: 0;
	height: 12px;
}
.cart-menu:hover .cart-flyout,
.cart-menu:focus-within .cart-flyout {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.cart-flyout .woocommerce-mini-cart {
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
}
.cart-flyout .mini_cart_item {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	padding: 12px 24px 12px 0;
	border-bottom: 1px solid var(--line);
}
.cart-flyout .mini_cart_item a:not(.remove) {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	color: var(--brown);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.35;
}
.cart-flyout .mini_cart_item img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 10px;
	flex: none;
}
.cart-flyout .mini_cart_item .quantity {
	display: block;
	width: 100%;
	margin-top: 3px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}
.cart-flyout .mini_cart_item .remove_from_cart_button {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--beige);
	color: var(--brown) !important;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
}
.cart-flyout .mini_cart_item .remove_from_cart_button:hover { background: var(--terracotta); color: var(--white) !important; }

.cart-flyout .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 14px 0 0;
	padding-top: 12px;
	font-family: var(--font-head);
	font-size: 16px;
}
.cart-flyout .woocommerce-mini-cart__total strong { font-weight: 600; }
.cart-flyout .woocommerce-mini-cart__buttons {
	display: flex;
	gap: 10px;
	margin: 14px 0 0;
}
.cart-flyout .woocommerce-mini-cart__buttons .button {
	flex: 1;
	text-align: center;
	padding: 11px 14px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	border: 1px solid var(--brown);
	color: var(--brown);
	background: var(--white);
	text-decoration: none;
	transition: background .16s var(--ease), color .16s var(--ease);
}
.cart-flyout .woocommerce-mini-cart__buttons .button:hover { background: var(--beige); }
.cart-flyout .woocommerce-mini-cart__buttons .checkout {
	background: var(--brown);
	color: var(--beige);
}
.cart-flyout .woocommerce-mini-cart__buttons .checkout:hover { background: var(--terracotta); border-color: var(--terracotta); }
.cart-flyout .woocommerce-mini-cart__empty-message {
	margin: 6px 0;
	color: var(--muted);
	text-align: center;
}

/* Hover-eelvaade ainult töölaual; mobiilis viib ikoon otse korvi */
@media (max-width: 860px) {
	.cart-flyout { display: none; }
}
