/*
 * Kataloog v2 (31.10.2026, omanik: „kujundus erineks vanast saidist täielikult“).
 * Osakonnariba + paneel (andermi-core modules/catalog.php), kategoorialehe päis, alamkategooriate pildiplaadid,
 * filtrid ülaribal (kõik filtrid külgpaneelis ka töölaual), uued tootekaardid. Laaditakse pärast kuj-N.css.
 * Tagasi: eemalda functions.php-st 'andermi-kataloog' ja käivita bin/vana-menuu.php vana.
 */
body.kuj-4 {
	--k-ink: #14171c;
	--k-soft: #f2f3f5;
	--k-soft-2: #e8eaee;
	--k-line: #e2e5ea;
	--k-radius: 16px;
}

/* ---------- Osakonnariba (töölaud) ---------- */
.andermi-dept { display: none; }
@media (min-width: 1000px) {
	.andermi-dept {
		display: block; position: sticky; z-index: 79; top: calc(var(--admin-bar, 0px) + 124px);
		background: #fff; border-top: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line);
	}
	body.andermi-stuck .andermi-dept { top: calc(var(--admin-bar, 0px) + 100px); }
	html { scroll-padding-top: 176px; }
	.andermi-dept__list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; }
	.andermi-dept__item { position: static; }
	.andermi-dept__link {
		position: relative; display: flex; align-items: center; gap: 7px; height: 50px; padding: 0 11px;
		color: var(--k-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
	}
	.andermi-dept__link .andermi-ico { flex: none; color: #5b6472; transition: color .15s; }
	.andermi-dept__link::after {
		content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
		background: var(--k-ink); transform: scaleX(0); transition: transform .18s ease;
	}
	.andermi-dept__item.is-open > .andermi-dept__link::after,
	.andermi-dept__link[aria-current]::after,
	.andermi-dept__link:hover::after { transform: none; }
	.andermi-dept__item.is-open > .andermi-dept__link .andermi-ico,
	.andermi-dept__link:hover .andermi-ico { color: var(--and-cta, #c44a09); }
	.andermi-dept__item--sale { margin-left: auto; display: flex; align-items: center; }
	.andermi-dept__item--sale .andermi-dept__link {
		height: 36px; padding: 0 14px; border-radius: 10px; background: var(--and-sale, #d62828); color: #fff;
	}
	.andermi-dept__item--sale .andermi-dept__link .andermi-ico { color: #fff; }
	.andermi-dept__item--sale .andermi-dept__link::after { display: none; }
	.andermi-dept__item--sale .andermi-dept__link:hover { background: var(--and-sale-hover, #b01f1f); }
	/* Paneel: täislaius riba all. */
	.andermi-dept__panel {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 2; background: #fff;
		border-top: 1px solid var(--k-line); box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .22);
		max-height: calc(100vh - 190px); overflow-y: auto; overscroll-behavior: contain;
	}
	.andermi-dept__grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 210px; gap: 36px; padding-block: 28px 32px; }
	.andermi-dept__grid:not(:has(.andermi-dept__deal)) { grid-template-columns: 230px minmax(0, 1fr); }
	.andermi-dept__intro {
		align-self: start; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--k-radius);
		background: var(--k-soft);
	}
	.andermi-dept__intro .andermi-ico { color: var(--and-cta, #c44a09); margin-bottom: 6px; }
	.andermi-dept__name { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--k-ink); }
	.andermi-dept__count { margin: 0; color: var(--a-muted); font-size: 14px; }
	.andermi-dept__all {
		margin-top: 12px; align-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
		border-radius: 10px; background: var(--k-ink); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
	}
	.andermi-dept__all:hover { background: #000; color: #fff; }
	.andermi-dept__cols {
		list-style: none; margin: 0; padding: 0; columns: 4 190px; column-gap: 32px;
	}
	.andermi-dept__cols > li { break-inside: avoid; margin: 0 0 22px; }
	.andermi-dept__cols.is-flat > li { margin-bottom: 4px; }
	.andermi-dept__h {
		display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0 6px;
		border-bottom: 1px solid var(--k-line); color: var(--k-ink); font-weight: 700; font-size: 15px; text-decoration: none;
	}
	.andermi-dept__cols.is-flat .andermi-dept__h { border-bottom: 0; font-weight: 600; padding: 6px 0; }
	.andermi-dept__h span { color: var(--a-muted); font-size: 12px; font-weight: 500; }
	a.andermi-dept__h:hover { color: var(--and-cta, #c44a09); }
	.andermi-dept__cols ul { list-style: none; margin: 8px 0 0; padding: 0; }
	.andermi-dept__cols ul a { display: block; padding: 4px 0; color: #4a5260; font-size: 14px; text-decoration: none; }
	.andermi-dept__cols ul a:hover { color: var(--k-ink); text-decoration: underline; text-underline-offset: 3px; }
	.andermi-dept__deal {
		position: relative; align-self: start; display: flex; flex-direction: column; gap: 6px; padding: 14px;
		border: 1px solid var(--k-line); border-radius: var(--k-radius); color: var(--k-ink); text-decoration: none;
	}
	.andermi-dept__deal:hover { border-color: var(--k-ink); }
	.andermi-dept__deal-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-muted); }
	.andermi-dept__deal img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--k-soft); border-radius: 12px; padding: 10px; mix-blend-mode: multiply; }
	.andermi-dept__deal-badge {
		position: absolute; top: 44px; left: 22px; padding: 3px 8px; border-radius: 6px;
		background: var(--and-sale, #d62828); color: #fff; font-size: 13px; font-weight: 800;
	}
	.andermi-dept__deal-name { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.andermi-dept__deal-price { font-size: 17px; font-weight: 800; color: var(--and-sale-ink, #b42020); }
	.andermi-dept__deal-price del { margin-left: 4px; color: var(--a-muted); font-size: 13px; font-weight: 400; }
}
/* Osakonnariba ühel real (09.11.2026: 12 osakonda + Soodus; sisu laius max ~1540 px → ikoonidega ei mahu kunagi):
   ikoonid ainult Soodusel; 1000–1535 px lühinimed (catalog.php, täisnimi jääb ekraanilugejale); < 1280 px rida keritav
   ainult viimase abinõuna (paneel ei lõigu – selle asukoht on nav, mitte keritav ul). Mõõdetud 1000/1100/1279/1280/1440/1700/2000. */
@media (min-width: 1000px) {
	.andermi-dept__link { padding: 0 8px; font-size: 13.5px; }
	.andermi-dept__link::after { left: 8px; right: 8px; }
	.andermi-dept__list > .andermi-dept__item:not(.andermi-dept__item--sale) > .andermi-dept__link .andermi-ico { display: none; }
}
@media (min-width: 1536px) { .andermi-dept__short { display: none; } }
@media (min-width: 1000px) and (max-width: 1535.98px) {
	.andermi-dept__item:has(.andermi-dept__short) .andermi-dept__full {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}
	.andermi-dept__short { display: inline; }
	.andermi-dept__link { padding: 0 7px; font-size: 13px; }
	.andermi-dept__link::after { left: 7px; right: 7px; }
}
@media (min-width: 1000px) and (max-width: 1199.98px) {
	.andermi-dept__link { padding: 0 4px; font-size: 12.5px; letter-spacing: -0.01em; }
	.andermi-dept__link::after { left: 4px; right: 4px; }
	.andermi-dept__item--sale .andermi-dept__link { padding: 0 10px; }
}
@media (min-width: 1000px) and (max-width: 1279.98px) {
	.andermi-dept__list { overflow-x: auto; scrollbar-width: none; }
	.andermi-dept__list::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .andermi-dept__link::after { transition: none; } }

/* ---------- Kategoorialeht: päis ---------- */
body.woocommerce-archive main > .ct-container[data-vertical-spacing] { padding-top: 16px; }
@media (min-width: 1000px) { body.woocommerce-archive main > .ct-container[data-vertical-spacing] { padding-top: 28px; } }
body.kuj-4.woocommerce-archive .hero-section[data-type="type-1"] {
	margin-bottom: 18px; padding: 22px 22px 20px; border-radius: var(--k-radius);
	background: linear-gradient(135deg, var(--k-soft) 0%, #f8f9fa 100%);
}
body.kuj-4.woocommerce-archive .hero-section .ct-breadcrumbs { font-size: 13px; color: var(--a-muted); }
body.kuj-4.woocommerce-archive .hero-section .page-title {
	font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; margin: 10px 0 8px;
}
body.kuj-4.woocommerce-archive .hero-section .page-description > :first-child { margin-top: 0; }
body.kuj-4.woocommerce-archive .hero-section .page-description { max-width: 78ch; color: #3d4450; font-size: 0.97rem; line-height: 1.6; }
/* Pikk sissejuhatus kokku volditud; „Loe rohkem“ nupp serverist (catalog.php), avamine andermi.js. */
body.kuj-4.woocommerce-archive .page-description:has(+ .andermi-more[aria-expanded="false"]) {
	max-height: 7.2em; overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.andermi-more {
	display: block; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--k-ink); font: 600 0.9rem/1.3 var(--a-font);
	text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.andermi-more:hover { background: none; color: var(--and-cta, #c44a09); }
@media (min-width: 1000px) {
	body.kuj-4.woocommerce-archive .hero-section[data-type="type-1"] { padding: 30px 36px 28px; margin-bottom: 22px; }
}

/* ---------- Alamkategooriate pildiplaadid ---------- */
.andermi-subcats { margin: 0 0 22px; }
.andermi-subcats ul {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0;
}
.andermi-subcats a {
	display: grid; grid-template-rows: auto auto 1fr; gap: 2px; height: 100%; padding: 10px 10px 12px;
	border: 1px solid var(--k-line); border-radius: 14px; background: #fff; color: var(--k-ink); text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.andermi-subcats a:hover { border-color: var(--k-ink); box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .3); transform: translateY(-1px); }
.andermi-subcats a[aria-current] { border-color: var(--k-ink); box-shadow: inset 0 0 0 1px var(--k-ink); }
.andermi-subcats__img {
	position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; overflow: hidden;
	border-radius: 10px; background: var(--k-soft); color: #8a93a1;
}
.andermi-subcats__img img {
	position: absolute; inset: 8% 10%; width: 80% !important; height: 84% !important; max-width: none;
	object-fit: contain; mix-blend-mode: multiply;
}
.andermi-subcats__name { font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.andermi-subcats__n { color: var(--a-muted); font-size: 0.8rem; align-self: end; }
/* Sama taseme kategooriad (lehel pole alamaid): kompaktsed nupud ilma piltideta. */
.andermi-subcats.is-siblings ul { display: flex; flex-wrap: wrap; gap: 8px; }
.andermi-subcats.is-siblings a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; }
.andermi-subcats.is-siblings .andermi-subcats__img { display: none; }
.andermi-subcats.is-siblings .andermi-subcats__n { font-size: 0.78rem; }
.andermi-subcats.is-siblings .andermi-subcats__n::before { content: "· "; }
.andermi-subcats.is-siblings a[aria-current] { background: var(--k-ink); color: #fff; }
.andermi-subcats.is-siblings a[aria-current] .andermi-subcats__n { color: rgba(255, 255, 255, .75); }
@media (max-width: 689.98px) {
	.andermi-subcats { margin: 0 -16px 16px; }
	.andermi-subcats ul, .andermi-subcats.is-siblings ul {
		display: flex; flex-wrap: nowrap; gap: 10px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
	}
	.andermi-subcats ul::-webkit-scrollbar { display: none; }
	.andermi-subcats li { flex: 0 0 128px; scroll-snap-align: start; }
	.andermi-subcats.is-siblings li { flex: none; }
	.andermi-subcats.is-siblings a { white-space: nowrap; }
}

/* ---------- Tööriistariba: Filtrid + filtrite kiirnupud + järjestus ---------- */
body.kuj-4.woocommerce-archive .woo-listing-top {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 18px; padding-bottom: 14px;
	border-bottom: 1px solid var(--k-line);
}
body.kuj-4 .andermi-filter-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 16px;
	border: 0; border-radius: 10px; background: var(--k-ink); color: #fff; font: 600 0.92rem/1 var(--a-font); cursor: pointer;
}
body.kuj-4 .andermi-filter-btn:hover { background: #000; }
body.kuj-4 .andermi-filter-btn__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--k-ink); font-size: 0.75rem; }
.andermi-fchips { display: flex; gap: 8px; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; } /* ühel real – JS-iga lisamine ei nihuta lehte */
.andermi-fchips::-webkit-scrollbar { display: none; }
.andermi-fchip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--k-line);
	border-radius: 10px; background: #fff; color: var(--k-ink); font: 500 0.9rem/1 var(--a-font); cursor: pointer; white-space: nowrap;
}
.andermi-fchip::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.andermi-fchip:hover { border-color: var(--k-ink); background: #fff; color: var(--k-ink); }
.andermi-fchip.is-on { border-color: var(--k-ink); box-shadow: inset 0 0 0 1px var(--k-ink); font-weight: 700; }
body.kuj-4.woocommerce-archive .woo-listing-top .woocommerce-result-count { margin: 0 0 0 auto; color: var(--a-muted); font-size: 0.88rem; }
body.kuj-4.woocommerce-archive .woo-listing-top .woocommerce-ordering { margin-left: 0; }
@media (max-width: 999.98px) {
	.andermi-fchips { display: none; } /* mobiilis: Filtrid + järjestus ühel real */
	body.kuj-4.woocommerce-archive .woo-listing-top { border-bottom: 0; padding-bottom: 0; }
}

/* Külgriba = filtripaneel kõigil laiustel (töölaual ka – tooted saavad kogu laiuse). */
@media (min-width: 1000px) {
	body.woocommerce-archive .ct-container[data-sidebar] { display: block; }
	body.woocommerce-archive .ct-container[data-sidebar] > section { width: 100%; max-width: none; }
	body.woocommerce-archive #sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 10001; width: 400px; margin: 0;
		background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 40px;
		transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility .25s;
		box-shadow: 0 0 40px rgba(0, 0, 0, .2);
	}
	body.woocommerce-archive.andermi-filters-open #sidebar { transform: none; visibility: visible; }
	body.andermi-filters-open { overflow: hidden; }
	body.andermi-filters-open::after { content: ""; position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .45); }
	body.woocommerce-archive .andermi-filter-head {
		display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2;
		background: #fff; padding: 18px 0; margin-bottom: 12px; border-bottom: 1px solid var(--k-line); font-size: 1.15rem;
	}
	body.woocommerce-archive .andermi-filter-close { background: none; border: 0; color: var(--k-ink); font-size: 30px; line-height: 1; padding: 2px 8px; cursor: pointer; }
}
#sidebar .ct-widget.is-target { animation: andermi-flash 1.2s ease; }
@keyframes andermi-flash { 0%, 40% { background: #fff7e6; } 100% { background: transparent; } }

/* ---------- Tootekaardid v2 ----------
 * Ilma äärise ja kastita: pilt hallil ruudul, väike kategooria SUURTÄHTEDES, nimi, suur tume hind, nupp.
 */
body.kuj-4 [data-products] .product,
body.kuj-4 ul.products li.product {
	padding: 0 0 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.kuj-4 [data-products] .product:hover { border: 0; box-shadow: none; }
body.kuj-4 [data-products] .product .ct-media-container {
	background: var(--k-soft); border-radius: 14px; aspect-ratio: 1 / 1;
}
body.kuj-4.andermi-lai-pilt [data-products] .product .ct-media-container { aspect-ratio: 4 / 3; }
body.kuj-4 [data-products] .product .ct-media-container img { padding: 9%; transition: transform .3s ease; }
body.kuj-4 [data-products] .product:hover .ct-media-container img { transform: scale(1.04); }
body.kuj-4 [data-products] .product .entry-meta { /* 05.11: tavalised tähed (suurtähed olid mürarikkad) */
	margin: 12px 0 0 !important; font-size: 0.78rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #6b7280;
}
body.kuj-4 [data-products] .woocommerce-loop-product__title { margin: 4px 0 4px !important; font-size: 0.95rem !important; font-weight: 600 !important; -webkit-line-clamp: 2; }
body.kuj-4 [data-products] .woocommerce-loop-product__title a { color: var(--k-ink); }
body.kuj-4 [data-products] .product:hover .woocommerce-loop-product__title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body.kuj-4 [data-products] .product .price { color: var(--k-ink); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; padding-top: 4px; }
body.kuj-4 [data-products] .product .price ins { color: var(--and-sale-ink, #b42020); }
body.kuj-4 [data-products] .product .price del { font-size: 0.85rem; letter-spacing: 0; }
body.kuj-4 [data-products] .andermi-stock { margin-top: 4px; font-weight: 500; font-size: 0.78rem; }
body.kuj-4 [data-products] .product .ct-woo-card-actions { margin-top: 10px; }
body.kuj-4 [data-products] .product .ct-woo-card-actions .button {
	width: 100%; min-height: 42px; justify-content: center; border-radius: 10px !important; font-weight: 700 !important;
}
body.kuj-4 [data-products] .product .ct-woo-card-actions .button:not(.add_to_cart_button) {
	background: #fff !important; color: var(--k-ink) !important; border: 1px solid var(--k-line) !important;
}
body.kuj-4 [data-products] .product .ct-woo-card-actions .button:not(.add_to_cart_button):hover { border-color: var(--k-ink) !important; }
body.kuj-4 [data-products] .product .andermi-cmp-btn { align-self: flex-start; margin-top: 2px; }
/* Märgid pildi peal: allahindlus punane ruut, „Laost otsas“ tume. */
body.kuj-4 [data-products] .onsale.andermi-badge {
	top: 10px !important; left: 10px !important; right: auto !important; min-height: 0; padding: 4px 8px;
	border-radius: 7px !important; font-size: 0.85rem; font-weight: 800;
}
body.kuj-4 [data-products] .out-of-stock-badge {
	top: 10px !important; left: 10px !important; padding: 4px 8px !important; border-radius: 7px !important;
	background: rgba(20, 23, 28, .82) !important; color: #fff !important; font-size: 0.75rem !important; font-weight: 600;
}
body.kuj-4 [data-products] .product .andermi-wl-btn--loop { top: 8px; right: 8px; width: 36px; height: 36px; box-shadow: none; background: rgba(255, 255, 255, .9); }

/* Ruudustik: tooted kogu laiuses – 5 veergu suurel ekraanil. */
@media (min-width: 1000px) {
	body.kuj-4.woocommerce-archive [data-products] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 36px 24px !important; }
}
@media (min-width: 1280px) {
	body.kuj-4.woocommerce-archive [data-products] { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (min-width: 690px) and (max-width: 999.98px) {
	body.kuj-4.woocommerce-archive [data-products] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 28px 16px !important; }
}
@media (max-width: 689.98px) {
	body.kuj-4 [data-products] { gap: 24px 12px !important; }
	body.kuj-4 [data-products] .product .price { font-size: 1.15rem; }
}

/* Avalehe kategooriapaneel: joonikoonid (catalog.php) maski asemel. */
.andermi-fp-cats__ico.andermi-fp-cats__ico--svg { display: grid; place-items: center; background: none; -webkit-mask: none; mask: none; }

/* Otsingutulemused: sobivad kategooriad kiirlinkidena + tühi tulemus (andermi-core/modules/search.php) */
.andermi-scats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.andermi-scats__t { font-size: 14px; color: #5b6472; margin-right: 2px; }
.andermi-scats a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--k-line);
	border-radius: 999px; background: #fff; color: var(--k-ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.andermi-scats a:hover { border-color: var(--k-ink); }
.andermi-scats a span { font-weight: 400; color: #5b6472; font-size: 13px; }
.andermi-snone { max-width: 760px; margin: 0 0 40px; }
.andermi-snone__lead { margin: 0 0 14px; font-size: 16px; }
.andermi-snone__cats { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.andermi-snone__cats a {
	display: inline-block; padding: 10px 16px; border: 1px solid var(--k-line); border-radius: 999px; background: #fff;
	color: var(--k-ink); font-weight: 600; font-size: 14px; text-decoration: none;
}
.andermi-snone__cats a:hover { border-color: var(--k-ink); }
.andermi-snone__help { padding: 20px 22px; border-radius: var(--k-radius); background: var(--k-soft); }
.andermi-snone__help p { margin: 0 0 12px; }
.andermi-snone__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.andermi-snone__btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; background: var(--k-ink);
	color: #fff !important; font-weight: 600; text-decoration: none;
}
.andermi-snone__btn--ghost { background: #fff; color: var(--k-ink) !important; border: 1px solid var(--k-line); }
@media (max-width: 689px) {
	.andermi-scats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	.andermi-scats::-webkit-scrollbar { display: none; }
	.andermi-scats a, .andermi-scats__t { flex: none; white-space: nowrap; }
}

/* ==========================================================================
   UX-parandused 13.11.2026 (notes/ux-analuus.md)
   ========================================================================== */

/* Võtmeomadused: tootekaart (nime all) ja tooteleht (hinna kohal). */
body.kuj-4 [data-products] .andermi-cardspecs {
	order: 1; margin: 0 0 2px; font-size: 0.8rem; line-height: 1.35; color: #4b5563;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.andermi-keyspecs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: -4px 0 14px !important; padding: 0; }
.andermi-keyspecs li { margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--k-soft, #f3f4f6); color: var(--k-ink, #111); font-size: 0.85rem; line-height: 1.3; }
body.kuj-4.single-product .entry-summary .andermi-stock { white-space: normal; }

/* Võrdle kaardil väiksemaks (vabastab ruumi omadustele). */
body.kuj-4 [data-products] .product .andermi-cmp-btn { min-height: 28px; padding: 2px 0; font-size: 0.78rem; }

/* Valitud filtrid siltidena + toodete arv. */
.andermi-active { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.andermi-active__n { font-size: 0.9rem; color: #4b5563; margin-right: 4px; }
.andermi-active a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px;
	background: var(--k-ink, #111); color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.andermi-active a span { font-size: 0.75rem; opacity: .8; }
.andermi-active a.andermi-active__clear { background: none; color: var(--k-ink, #111); text-decoration: underline; padding-inline: 4px; }
body.kuj-4.woocommerce-archive .woo-listing-top + .andermi-active { margin-top: -6px; }

/* Filtripaneeli jalus: „Näita N toodet“ (kleepub paneeli alla). */
.andermi-filter-foot {
	position: sticky; bottom: -32px; z-index: 3; display: flex; align-items: center; gap: 12px;
	margin: 20px -16px -32px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--k-line, #e5e7eb);
}
@media (min-width: 1000px) { .andermi-filter-foot { bottom: -40px; margin: 20px -24px -40px; padding-inline: 24px; } }
.andermi-filter-show {
	flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: var(--and-cta, #c44a09); color: #fff;
	font: 700 1rem/1 var(--a-font, inherit); cursor: pointer;
}
.andermi-filter-reset { color: var(--k-ink, #111); font-weight: 600; font-size: 0.92rem; }
body.andermi-filtering ul.products, body.andermi-filtering #sidebar .ct-widget { opacity: .5; transition: opacity .15s; pointer-events: none; }
body.andermi-filtering .andermi-filter-show { opacity: .7; }

/* Kategooria päis mobiilis lühemaks: sissejuhatus 2 reale, tarneriba üherealiseks – tooted jõuavad esimesele ekraanile lähemale. */
@media (max-width: 689.98px) {
	/* kokkuvoldult 2 rida; esimene paks rida kordab pealkirja → peidus kuni „Loe rohkem“ (HTML-is alles) */
	body.kuj-4.woocommerce-archive .page-description:has(+ .andermi-more[aria-expanded="false"]) { max-height: 3.3em; }
	body.kuj-4.woocommerce-archive .page-description:has(+ .andermi-more[aria-expanded="false"]) > p:first-child:has(> strong:only-child) { display: none; }
	.andermi-homebar { flex-wrap: nowrap !important; align-items: center; padding: 10px 12px !important; font-size: 0.85rem; gap: 8px !important; }
	.andermi-homebar > span:not(.andermi-homebar__more) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.andermi-homebar > svg { flex: none; }
	.andermi-homebar .andermi-homebar__more { display: none; }
}

/* Tooteleht mobiilis: väiksem galerii ilma pisipiltide reata (libistamine töötab), et nimi, hind ja nupp oleks ülal. */
@media (max-width: 689.98px) {
	body.kuj-4.single-product .woocommerce-product-gallery .flexy-pills { display: none; }
	body.kuj-4.single-product .woocommerce-product-gallery .flexy-items .ct-media-container,
	body.kuj-4.single-product .woocommerce-product-gallery > .ct-media-container { max-height: 34vh; }
	body.kuj-4.single-product .woocommerce-product-gallery .ct-media-container img { max-height: 34vh; object-fit: contain; }
	body.kuj-4.single-product .product-entry-wrapper { padding: 12px; }
	body.kuj-4.single-product .product_title { font-size: 20px; margin-bottom: 6px; }
	body.kuj-4 .andermi-sku { font-size: 14px; margin-bottom: 10px; }
}

/* Kleepuv ostuga riba (mobiil/tahvel). */
.andermi-buybar { display: none; }
@media (max-width: 999.98px) {
	.andermi-buybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--k-line, #e5e7eb);
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .2s ease;
	}
	.andermi-buybar[hidden] { display: none; }
	body.andermi-buybar-on .andermi-buybar { transform: none; }
	body.andermi-buybar-on .andermi-bbar { transform: translateY(110%); }
	.andermi-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.andermi-buybar__name { font-size: 0.8rem; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.andermi-buybar__price { font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--k-ink, #111); }
	.andermi-buybar__price del { font-size: 0.8rem; font-weight: 400; color: #6b7280; margin-right: 4px; }
	.andermi-buybar__price ins { text-decoration: none; color: var(--and-sale-ink, #b42020); }
	.andermi-buybar__price small { display: block; font-size: 0.75rem; font-weight: 400; color: #6b7280; }
	.andermi-buybar__btn { flex: none; min-height: 48px; padding: 0 24px !important; border: 0 !important; border-radius: var(--a-radius-btn, 35px) !important; background: rgb(196, 74, 9) !important; color: #fff !important; font-weight: 700 !important; }
	body.andermi-buybar-on .andermi-cmp-bar { bottom: 84px; }
}

/* Korv ja kassa: tootekirjelduse algus toote nime all on müra. */
.wc-block-components-product-metadata__description, .woocommerce-mini-cart-item .andermi-mini-desc { display: none; }
.andermi-fsp.is-info p { margin: 0; }

/* Kassa: rahulik päis – otsing ja kiirlingid peidus, et tähelepanu jääks ostu lõpetamisele. */
body.woocommerce-checkout:not(.woocommerce-order-received) .andermi-htools__search,
body.woocommerce-checkout:not(.woocommerce-order-received) [data-row*="bottom"]:has(.andermi-htools__search),
body.woocommerce-checkout:not(.woocommerce-order-received) .andermi-dept { display: none !important; }

/* Avalehe arvustuste nupp ei murdu kitsal ekraanil. */
@media (max-width: 689.98px) {
	.andermi-fp-reviews .andermi-fp-head { flex-wrap: wrap; }
	.andermi-fp-reviews .andermi-fp-revnav { flex: 0 0 100%; justify-content: flex-start; }
	.andermi-fp-reviews .andermi-fp-pill { white-space: nowrap; }
}

/* Mobiilimenüü kontakt (inc/header.php). */
.andermi-mcontact { display: flex; flex-direction: column; gap: 6px; margin: 20px 0 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 0.9rem; }
.andermi-mcontact a { color: inherit; text-decoration: none; }
.andermi-mcontact__tel { font-size: 1.1rem; font-weight: 700; }
.andermi-mcontact span { opacity: .75; }

/* Kiirotsingu kategooriasoovitused. */
.andermi-scats-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--k-line, #e5e7eb); }
.andermi-scats-live__t { flex: 0 0 100%; margin: 0 0 2px; font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.andermi-scats-live a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--k-line, #e5e7eb); border-radius: 999px; color: var(--k-ink, #111); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.andermi-scats-live a:hover { border-color: var(--k-ink, #111); }
.andermi-scats-live a span { font-weight: 400; color: #6b7280; font-size: 0.8rem; }

/* Järjestus mobiilis tekstiga (enne ainult ⇅ ikoon). */
@media (max-width: 999.98px) {
	body.kuj-4.woocommerce-archive .woo-listing-top .woocommerce-ordering { position: relative; margin-left: 0; }
	body.kuj-4.woocommerce-archive .woo-listing-top .woocommerce-ordering .ct-sort-icon { display: none; }
	body.kuj-4.woocommerce-archive .woo-listing-top .woocommerce-ordering select.orderby {
		position: static !important; opacity: 1 !important; width: auto !important; height: 40px !important; min-height: 40px; margin: 0;
		padding: 0 34px 0 14px !important; border: 1px solid var(--k-line, #d1d5db) !important; border-radius: 10px !important;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8l4-3.5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat !important;
		color: var(--k-ink, #111) !important; font: 600 0.9rem/1 var(--a-font, inherit) !important; -webkit-appearance: none; appearance: none;
	}
}
