/*
Theme Name: EyeNet Veebikaubamaja
Theme URI: https://eyenet.ee
Author: EyeNet OÜ
Author URI: https://eyenet.ee
Description: EyeNeti veebikaubamaja teema WooCommerce'ile: otsing päises, kategooriad nõudluse järjekorras, tootekaardid, filtrid, kiire tooteleht ja segamatu kassa. Mobiilis alumine menüü ja kleepuv ostunupp. Ettevõtte andmed: Välimus → Kohanda → EyeNet.
Version: 1.0.26
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eyenet
*/

/* ---------- Tokens ---------- */
:root {
	--en-ink: #111111;
	--en-muted: #555555;
	--en-line: #E6E6E3;
	--en-soft: #F4F4F2;
	--en-accent: #D6232A;
	--en-accent-dark: #B51C22;
	--en-ok: #1F7A3A;
	--en-max: 1280px;
	--en-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--en-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--en-ink);
	background: #ffffff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--en-ink); }
a:hover { color: var(--en-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--en-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.en-skip { position: absolute; left: -9999px; top: 0; }
.en-skip:focus { left: 16px; top: 16px; z-index: 2000; background: var(--en-ink); color: #ffffff; padding: 10px 16px; }

.en-container { max-width: var(--en-max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.en-icon { display: block; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.en-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	border: 1.5px solid transparent; border-radius: 0;
	font-weight: 600; font-size: 15.5px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s;
}
.en-btn--accent { background: var(--en-accent); color: #ffffff; }
.en-btn--accent:hover { background: var(--en-accent-dark); color: #ffffff; }
.en-btn--dark { background: var(--en-ink); color: #ffffff; }
.en-btn--dark:hover { background: #333333; color: #ffffff; }
.en-btn--ghost-light { border-color: #ffffff; color: #ffffff; }
.en-btn--ghost-light:hover { background: #ffffff; color: var(--en-ink); }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .en-card .button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 20px;
	background: var(--en-ink); color: #ffffff;
	border: 0; border-radius: 0;
	font-weight: 600; font-size: 15px; line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .en-card .button:hover {
	background: #333333; color: #ffffff;
}
.woocommerce button.button.alt.single_add_to_cart_button,
.woocommerce a.button.checkout-button, .woocommerce #place_order {
	background: var(--en-accent);
}
.woocommerce button.button.alt.single_add_to_cart_button:hover,
.woocommerce a.button.checkout-button:hover, .woocommerce #place_order:hover {
	background: var(--en-accent-dark);
}
.woocommerce .button.disabled, .woocommerce .button:disabled, .woocommerce .button:disabled[disabled] { opacity: .5; }

/* ---------- Header ---------- */
/*
 * The header keeps the same height at all times. Collapsing only slides it up
 * with transform and fades the category row, so the page never jumps.
 */
.en-header {
	position: sticky; top: 0; z-index: 100;
	background: transparent; border-bottom: 1px solid var(--en-line);
	transition: transform .18s ease, border-color .18s ease;
	will-change: transform;
}
.en-header__bar { background: #ffffff; transition: box-shadow .18s ease; }
.en-header.is-compact { transform: translate3d(0, calc(-1 * var(--en-compact-shift, 36px)), 0); }
.admin-bar .en-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .en-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .en-header { top: 0; } }

.en-topbar { background: var(--en-ink); color: #F2F2F0; font-size: 12.5px; line-height: 1.3; }
/* Fixed slim height: nothing inside (e.g. a plugin's language box) can stretch it. */
.en-topbar__inner { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 24px; height: 34px; padding-top: 0; padding-bottom: 0; }
.en-topbar__list { display: flex; flex-wrap: nowrap; gap: 24px; margin: 0; padding: 0; list-style: none; white-space: nowrap; overflow: hidden; min-width: 0; }
.en-topbar__right { display: flex; align-items: center; gap: 18px; white-space: nowrap; flex: 0 0 auto; }
.en-topbar a { color: #F2F2F0; text-decoration: none; }
.en-topbar a:hover { color: #ffffff; text-decoration: underline; }

.en-header__main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "logo search actions";
	align-items: center;
	gap: 16px 32px;
	padding-top: 16px; padding-bottom: 16px;
}
.en-logo {
	grid-area: logo; justify-self: start;
	display: inline-flex; flex-direction: column; align-items: stretch; gap: 6px;
	text-decoration: none; color: var(--en-ink);
}
.en-logo:hover { color: var(--en-ink); }
.en-logo__word { font-size: 28px; font-weight: 500; letter-spacing: .32em; line-height: 1; margin-right: -.32em; white-space: nowrap; }
/* Letters spread from the first to the last letter of EYENET, never wider. */
.en-logo__tag { display: flex; justify-content: space-between; font-size: 10.5px; line-height: 1; color: #444444; }

.en-search { grid-area: search; display: flex; min-width: 0; margin: 0; }
.en-search input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px;
	font-size: 15px; background: #ffffff;
	border: 1.5px solid var(--en-ink); border-right: 0; border-radius: 0;
	-webkit-appearance: none; appearance: none;
}
.en-search input[type="search"]::placeholder { color: #8A8A86; }
.en-search button {
	height: 48px; padding: 0 24px; border: 0; border-radius: 0;
	background: var(--en-ink); color: #ffffff;
	font-weight: 600; font-size: 15px; cursor: pointer;
}
.en-search button:hover { background: #333333; }

.en-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.en-iconbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	border: 0; background: none; color: var(--en-ink);
	cursor: pointer; text-decoration: none;
}
.en-iconbtn:hover { color: var(--en-accent); }
.en-cart-count {
	position: absolute; top: 3px; right: 1px;
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--en-accent); color: #ffffff;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.en-cart-count.is-empty { display: none; }
.en-only-mobile { display: none !important; }

.en-catnav { background: #ffffff; transition: opacity .18s ease, visibility .18s ease; }
.en-catnav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-bottom: 12px; font-size: 14.5px; }
.en-catnav__list { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.en-catnav__list a { display: block; padding: 4px 0; text-decoration: none; color: var(--en-ink); }
.en-catnav__list a:hover, .en-catnav__list .current-menu-item > a { color: var(--en-accent); }
.en-catnav__all {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 4px 0; border: 0; background: none;
	font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.en-catnav__all:hover { color: var(--en-accent); }

/* Desktop compact: top bar slides out above, category row fades, the search row stays. */
.en-header.is-compact { border-bottom-color: transparent; }
.en-header.is-compact .en-catnav { opacity: 0; visibility: hidden; }
.en-header.is-compact .en-header__bar { box-shadow: 0 1px 0 var(--en-line); }
@media (prefers-reduced-motion: reduce) {
	.en-header, .en-header__bar, .en-catnav { transition: none; }
}

/* Checkout header */
.en-header--checkout { position: static; }
.en-header--checkout .en-header__main { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo actions"; }
.en-checkout-meta { grid-area: actions; justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; }
.en-secure { display: inline-flex; align-items: center; gap: 8px; color: var(--en-ok); font-weight: 600; }

/* ---------- Drawer ---------- */
.en-drawer { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.en-drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); opacity: 0; transition: opacity .2s; }
.en-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(360px, 88vw); background: #ffffff;
	display: flex; flex-direction: column; overflow-y: auto;
	transform: translateX(100%); transition: transform .25s ease;
}
.en-drawer-open { overflow: hidden; }
.en-drawer-open .en-drawer { visibility: visible; }
.en-drawer-open .en-drawer__backdrop { opacity: 1; }
.en-drawer-open .en-drawer__panel { transform: none; }
.en-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--en-line); font-size: 17px; }
.en-drawer__list, .en-drawer__links { list-style: none; margin: 0; padding: 8px 0; }
.en-drawer__list a { display: flex; align-items: center; gap: 14px; padding: 11px 20px; font-size: 15.5px; text-decoration: none; color: var(--en-ink); }
.en-drawer__list a:hover { background: var(--en-soft); color: var(--en-ink); }
.en-drawer__links { border-top: 1px solid var(--en-line); }
.en-drawer__links a { display: block; padding: 10px 20px; font-size: 15px; text-decoration: none; }
.en-drawer__lang { padding: 12px 20px; border-top: 1px solid var(--en-line); }
.en-drawer__lang:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
	.en-drawer__panel, .en-drawer__backdrop, .en-sticky-buy { transition: none !important; }
}

/* ---------- Main & home ---------- */
.en-main { padding-top: 24px; padding-bottom: 64px; }
.en-home { display: flex; flex-direction: column; gap: 56px; }

.en-hero { display: flex; flex-wrap: wrap; gap: 16px; }
.en-hero__main {
	flex: 2 1 560px; min-width: 0; min-height: 360px;
	background: var(--en-ink); color: #ffffff;
	padding: 48px;
	display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.en-kicker { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #BDBDB8; }
.en-hero__title { margin: 0; max-width: 640px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.en-hero__text { margin: 0; max-width: 520px; font-size: 18px; color: #D8D8D4; }
.en-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.en-hero__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.en-promo {
	flex: 1; min-height: 172px; padding: 28px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--en-soft); color: var(--en-ink); text-decoration: none;
}
.en-promo:hover { background: #ECECE9; color: var(--en-ink); }
.en-promo__text { display: flex; flex-direction: column; gap: 6px; }
.en-promo__kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--en-muted); }
.en-promo__title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.en-promo__sub { font-size: 14px; color: var(--en-muted); }

.en-usp {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	margin: 0; padding: 0; list-style: none;
	border-top: 1px solid var(--en-line); border-bottom: 1px solid var(--en-line);
}
.en-usp li { display: flex; align-items: center; gap: 14px; padding: 20px 8px; }
.en-usp strong { display: block; font-size: 15px; }
.en-usp span { font-size: 13.5px; color: var(--en-muted); }

.en-section { display: flex; flex-direction: column; gap: 20px; }
.en-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.en-section__title { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.en-section__link { font-size: 15px; font-weight: 500; }

.en-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.en-cats li { display: flex; }
.en-cat {
	flex: 1; min-height: 112px; padding: 20px;
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	border: 1px solid var(--en-line); color: var(--en-ink); text-decoration: none;
}
.en-cat:hover { border-color: var(--en-ink); color: var(--en-ink); }
.en-cat__name { font-size: 15px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }

.en-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.en-guide {
	min-height: 170px; padding: 28px;
	display: flex; flex-direction: column; gap: 12px;
	background: var(--en-soft); color: var(--en-ink); text-decoration: none;
}
.en-guide:hover { background: #ECECE9; color: var(--en-ink); }
.en-guide__kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--en-muted); }
.en-guide__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.en-guide__more { margin-top: auto; font-size: 14.5px; font-weight: 600; }

/* ---------- Product grid & cards ---------- */
.woocommerce ul.products, ul.products {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
	margin: 0; padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after { display: none !important; content: none !important; }
.woocommerce ul.products li.product, ul.products li.product {
	width: auto !important; margin: 0 !important; padding: 0; float: none !important;
}

.en-card { display: flex; flex-direction: column; position: relative; background: #ffffff; border: 1px solid var(--en-line); }
.en-card:hover { border-color: #BDBDB8; }
.en-card__media {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; padding: 16px; background: #ffffff;
	border-bottom: 1px solid var(--en-line);
}
.woocommerce ul.products li.product .en-card__media img, .en-card__img {
	width: 100%; height: 100%; margin: 0 !important; object-fit: contain;
}
.en-badge {
	position: absolute; top: 12px; left: 12px;
	padding: 4px 8px; background: var(--en-ink); color: #ffffff;
	font-size: 12px; font-weight: 600; line-height: 1.3;
}
.en-badge--sale { background: var(--en-accent); }
.en-card__body { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.en-card__brand { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--en-muted); }
.en-card__title {
	margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* WooCommerce's own "li.product h3" rule adds padding and 1em size; with the line clamp
   that padding showed half of the next line. Same specificity, our values win. */
.woocommerce ul.products li.product .en-card__title,
ul.products li.product .en-card__title { margin: 0; padding: 0; font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.en-card__title a { color: var(--en-ink); text-decoration: none; }
.en-card__title a:hover { color: var(--en-accent); }
.en-card__spec {
	margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--en-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.en-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--en-muted); }
.en-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B9B9B5; flex-shrink: 0; }
.en-stock--in::before { background: var(--en-ok); }
.en-stock--out::before { background: var(--en-accent); }
.en-card__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }
.en-card__price { font-size: 21px; font-weight: 700; color: var(--en-ink); }
.en-card__price del { font-size: 14px; font-weight: 400; color: var(--en-muted); margin-right: 6px; }
.en-card__price ins { text-decoration: none; color: var(--en-accent); }
.en-from { font-size: 14px; font-weight: 500; color: var(--en-muted); }
/* WooCommerce's own rule (li.product .button) is stronger than .en-card .button, so match it. */
.woocommerce ul.products li.product .en-card__foot .button,
ul.products li.product .en-card__foot .button {
	display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 44px; margin: 0; padding: 0 16px;
	text-align: center; line-height: 1.2;
}
.en-card .added_to_cart { display: block; margin-top: -4px; text-align: center; font-size: 13.5px; font-weight: 600; }

/* Category tiles inside the shop loop */
.woocommerce ul.products li.product-category a { display: block; padding: 16px; border: 1px solid var(--en-line); text-decoration: none; color: var(--en-ink); height: 100%; }
.woocommerce ul.products li.product-category img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 0 10px; }
.woocommerce ul.products li.product-category h2 { margin: 0; font-size: 15px; font-weight: 600; }
.woocommerce ul.products li.product-category mark.count { background: none; color: var(--en-muted); font-weight: 400; }

/* Same picture box for every tile, whoever draws the picture. */
.woocommerce ul.products li.product-category .en-subcat-media { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 12px; overflow: hidden; color: #333333; }
.woocommerce ul.products li.product-category .en-subcat-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; margin: 0; object-fit: contain; }
.woocommerce ul.products li.product-category .en-subcat-media > svg { max-width: 100%; max-height: 100%; }
.woocommerce ul.products li.product-category .en-subcat-media .en-subcat-fallback { width: auto; height: 58%; }

/* ---------- Language switcher (ET RU EN) ---------- */
.en-lang { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.en-lang a { display: inline-block; padding: 3px 7px; border-radius: 3px; font-size: 12px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; text-decoration: none; }
.en-topbar .en-lang { padding-left: 16px; border-left: 1px solid #3A3A3A; }
.en-topbar .en-lang a { color: #A8A8A3; }
.en-topbar .en-lang a:hover { color: #fff; text-decoration: none; }
.en-topbar .en-lang a.is-current { color: var(--en-ink); background: #fff; }
.en-drawer__lang .en-lang a { color: var(--en-muted); border: 1px solid var(--en-line); padding: 6px 12px; font-size: 13px; }
.en-drawer__lang .en-lang { gap: 6px; }
.en-drawer__lang .en-lang a.is-current { color: #fff; background: var(--en-ink); border-color: var(--en-ink); }
.en-lang--list li { display: inline-block; }
/* ---------- Shop / category ---------- */
.woocommerce-breadcrumb.en-breadcrumb, .en-breadcrumb { margin: 0 0 14px; font-size: 13.5px; color: var(--en-muted); }
.en-breadcrumb a { color: var(--en-muted); }
.en-breadcrumb__sep { margin: 0 8px; }
.en-shop-head { margin-bottom: 24px; }
.en-shop-head__title { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.en-shop-head .term-description, .en-shop-head .page-description { max-width: 760px; margin-top: 8px; color: var(--en-muted); }
.en-shop-head .term-description p { margin: 0 0 .6em; }

.en-shop { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.en-shop__filters { flex: 0 0 260px; max-width: 260px; min-width: 0; overflow-wrap: anywhere; }
.en-shop__content { flex: 1 1 0; min-width: 0; }
@media (min-width: 900px) {
	.en-shop { flex-wrap: nowrap; }
}
.en-shop__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.en-shop__toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.en-shop__toolbar .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .woocommerce-result-count { float: none; margin: 0; font-size: 14.5px; color: var(--en-muted); }
.woocommerce .woocommerce-ordering { float: none; margin: 0; }
.woocommerce .woocommerce-ordering select {
	height: 44px; padding: 0 36px 0 12px;
	border: 1px solid #CFCFCB; border-radius: 0; background-color: #ffffff; font-size: 14px;
}

/* ---------- Filters (panel) ---------- */
.en-fpanel__x, .en-fpanel__overlay, .en-fpanel__foot, .en-shop__filterbtn { display: none; }
.en-fpanel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.en-fpanel__title { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; outline: none; }
.en-fpanel__reset { display: inline-flex; align-items: center; gap: 6px; color: var(--en-muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.en-fpanel__reset:hover { color: var(--en-accent); }

.en-filter { border-bottom: 1px solid var(--en-line); }
.en-filter > .en-filter__title {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: 52px; margin: 0; font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none;
}
.en-filter > .en-filter__title::-webkit-details-marker { display: none; }
/* "—" when open, "+" when closed, like a simple toggle. */
.en-filter > .en-filter__title::after { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; color: #8A8A86; }
.en-filter[open] > .en-filter__title::after { background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat; }
.en-filter > .en-filter__body { padding: 0 0 18px; }
.en-filter ul { margin: 0; padding: 0; list-style: none; }
.en-filter li { padding: 0; font-size: 15px; }
.en-filter li > a { display: inline-block; padding: 7px 0; color: var(--en-ink); text-decoration: none; }
.en-filter li > a:hover { color: var(--en-accent); }
.en-filter .count { font-size: 13px; color: var(--en-muted); }
.en-filter .current-cat > a { font-weight: 700; }
.en-filter__back a { color: var(--en-muted) !important; font-size: 14px; }
.en-filter li.en-more-hidden, .en-filter li.en-search-hidden { display: none; }
.en-filter__more { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--en-ink); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.en-filter__search { width: 100%; height: 46px; margin: 0 0 8px; padding: 0 14px; border: 1px solid #CFCFCB; border-radius: 0; font-size: 15px; background: #fff; }
.en-filter__search:focus { outline: none; border-color: var(--en-ink); }

/* Checkbox rows */
.en-check { display: flex; align-items: center; gap: 12px; min-height: 42px; cursor: pointer; font-size: 15px; color: var(--en-ink); }
.en-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.en-check__box { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid #BDBDB8; background: #fff; transition: background .12s, border-color .12s; }
.en-check input:checked + .en-check__box { background: var(--en-ink); border-color: var(--en-ink); }
.en-check input:checked + .en-check__box::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.en-check input:focus-visible + .en-check__box { outline: 2px solid var(--en-accent); outline-offset: 2px; }
.en-check__label .count { margin-left: 4px; }

/* Price from–to */
.en-price__inputs { display: flex; align-items: center; gap: 12px; }
.en-price__box { position: relative; flex: 1 1 0; }
.en-price__box input { width: 100%; height: 50px; padding: 0 28px 0 12px; border: 1px solid #CFCFCB; border-radius: 0; text-align: center; font-size: 16px; font-weight: 700; background: #fff; -moz-appearance: textfield; }
.en-price__box input::-webkit-outer-spin-button, .en-price__box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.en-price__box input:focus { outline: none; border-color: var(--en-ink); }
.en-price__box > span[aria-hidden] { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; pointer-events: none; }
.en-price__sep { color: var(--en-muted); font-size: 15px; }
.en-range .en-price__box input { padding-right: 46px; }
.en-range .en-price__box > span[aria-hidden] { font-size: 14px; font-weight: 600; color: var(--en-muted); }
.en-price__range { position: relative; height: 40px; margin-top: 10px; }
.en-price__range::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: #DADAD6; }
.en-price__range::after { content: ""; position: absolute; top: 50%; height: 4px; margin-top: -2px; left: var(--en-lo, 0%); right: calc(100% - var(--en-hi, 100%)); background: var(--en-ink); }
.en-price__range input[type=range] { position: absolute; inset: 0; width: 100%; height: 40px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1; }
.en-price__range input[type=range]::-webkit-slider-runnable-track { height: 40px; background: none; }
.en-price__range input[type=range]::-moz-range-track { height: 40px; background: none; }
.en-price__range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: 6px; border: 2px solid var(--en-ink); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); pointer-events: auto; cursor: grab; }
.en-price__range input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 2px solid var(--en-ink); border-radius: 50%; background: #fff; pointer-events: auto; cursor: grab; }

/* Top row: count + sorting (+ filter button on phones) */
.en-shop__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.en-shop__count .woocommerce-result-count { margin: 0; }
.en-shop__count:empty { display: none; }

/* Subcategory buttons (phones) */
.en-subnav { display: none; }
.en-shop ul.products li.product-category { display: none !important; }
/* Category tiles printed by a plugin in its own block: any element in the product area
   whose links lead to categories (page numbers excluded). */
/* Never inside product cards: their "Lisa korvi" link also contains the category address. */
.en-shop__content *:not(.woocommerce-pagination *):not(.page-numbers):not(.products):not(.product):not(.product *):has(> a[href*="/product-category/"]:not([href*="add-to-cart"])),
.en-shop__content *:not(.woocommerce-pagination *):not(.page-numbers):not(.products):not(.product):not(.product *):has(> :not(.product) > a[href*="/product-category/"]:not([href*="add-to-cart"]):only-child) { display: none !important; }

@media (max-width: 899px) {
	.en-shop { gap: 0; }
	.en-shop__content { flex: 1 1 100%; }
	/* Panel slides in from the right over a dark veil; black close square on the left. */
	.en-shop__filters { position: fixed; inset: 0; z-index: 1000; flex: none; max-width: none; visibility: hidden; transition: visibility 0s .25s; }
	.en-shop__filters.is-open { visibility: visible; transition: visibility 0s; }
	.en-fpanel__overlay { display: block; position: absolute; inset: 0; background: rgba(17,17,17,.55); opacity: 0; transition: opacity .25s ease; }
	.en-shop__filters.is-open .en-fpanel__overlay { opacity: 1; }
	.en-fpanel {
		position: absolute; top: 0; right: 0; bottom: 0; z-index: 1; width: calc(100% - 56px); max-width: 460px;
		display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .25s ease;
	}
	.en-shop__filters.is-open .en-fpanel { transform: none; }
	.en-fpanel__x { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 0; left: -56px; width: 56px; height: 60px; border: 0; background: var(--en-ink); color: #fff; cursor: pointer; }
	.en-fpanel__head { flex: 0 0 auto; min-height: 60px; margin: 0; padding: 0 16px; border-bottom: 1px solid var(--en-line); }
	.en-fpanel__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 20px 24px; }
	.en-fpanel__foot { display: block; flex: 0 0 auto; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--en-line); background: #fff; }
	.en-fpanel__foot .en-btn { width: 100%; min-height: 54px; justify-content: center; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
	.en-sheet-open { overflow: hidden; }

	/* Top row: [Sorting | Filtreeri], result count under them. */
	.en-shop__top { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "sort filter" "count count"; gap: 0; margin: 0 0 12px; border: 1px solid var(--en-line); }
	.en-shop__sort { grid-area: sort; border-right: 1px solid var(--en-line); }
	.en-shop__filterbtn { grid-area: filter; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 0; background: #fff; color: var(--en-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
	.en-shop__filtern { color: var(--en-muted); font-weight: 600; }
	.en-shop__filtern.is-on { color: var(--en-accent); }
	.en-shop__count { grid-area: count; display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-top: 1px solid var(--en-line); }
	.en-shop__sort .woocommerce-ordering { margin: 0; height: 100%; }
	.woocommerce .en-shop__sort .woocommerce-ordering select, .en-shop__sort select {
		width: 100%; height: 100%; min-height: 54px; padding: 0 12px 0 44px; border: 0 !important;
		background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3.5 16.5 7 20l3.5-3.5M17 20V4M13.5 7.5 17 4l3.5 3.5'/%3E%3C/svg%3E") 14px center no-repeat !important;
		font-size: 15px; font-weight: 700; color: var(--en-ink); text-overflow: ellipsis; -webkit-appearance: none; appearance: none;
	}

	/* Subcategories: one scrollable row of buttons instead of big tiles. */
	.en-subnav { display: flex; gap: 8px; margin: -4px -16px 14px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.en-subnav::-webkit-scrollbar { display: none; }
	.en-subnav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--en-line); color: var(--en-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; scroll-snap-align: start; }
	.en-subnav a span { color: var(--en-muted); font-weight: 400; font-size: 12.5px; }
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background-color: var(--en-ink); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: #ffffff; border: 2px solid var(--en-ink); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: #DADAD6; }
.woocommerce .widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.woocommerce .widget_price_filter .price_slider_amount .button { min-height: 36px; padding: 0 14px; font-size: 13.5px; float: none; }
.woocommerce .widget_layered_nav_filters ul li a { display: inline-block; padding: 4px 10px; border: 1px solid var(--en-ink); text-decoration: none; }

.woocommerce nav.woocommerce-pagination { margin-top: 32px; }
.woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px; height: 40px; padding: 0 10px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--en-line); font-size: 14.5px; text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--en-ink); color: #ffffff; border-color: var(--en-ink); }

.en-empty { padding: 48px 24px; border: 1px solid var(--en-line); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.en-empty .en-search { width: 100%; max-width: 520px; }

/* ---------- Product page ---------- */
.single-product div.product {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px 48px; align-items: start;
}
.single-product div.product > * { grid-column: 1 / -1; }
.woocommerce.single-product div.product div.images, .single-product div.product .woocommerce-product-gallery {
	grid-column: 1; width: auto !important; float: none !important; margin: 0 !important; position: relative;
}
.woocommerce.single-product div.product div.summary, .single-product div.product .summary {
	grid-column: 2; width: auto !important; float: none !important; margin: 0 !important;
}
.single-product div.product > .onsale {
	position: absolute; top: 12px; left: 12px; z-index: 5;
	min-height: 0; min-width: 0; margin: 0; padding: 4px 10px;
	border-radius: 0; background: var(--en-accent); color: #ffffff;
	font-size: 13px; font-weight: 600; line-height: 1.4;
}
.woocommerce div.product div.images img { width: 100%; height: auto; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image:first-child,
.woocommerce div.product div.images .flex-viewport { border: 1px solid var(--en-line); background: #ffffff; }
.woocommerce div.product div.images .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
	margin: 12px 0 0; padding: 0; list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img {
	aspect-ratio: 1 / 1; object-fit: contain; background: #ffffff;
	border: 1px solid var(--en-line); opacity: .55; cursor: pointer;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--en-ink); }

.woocommerce div.product .product_title { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { margin: 8px 0 4px; color: var(--en-ink); font-size: 36px; font-weight: 700; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { font-size: 20px; font-weight: 400; color: var(--en-muted); opacity: 1; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; color: var(--en-accent); }
.en-vat-note { margin: 0 0 18px; font-size: 13.5px; color: var(--en-muted); }
.woocommerce-product-details__short-description { font-size: 15.5px; color: #333333; }
.woocommerce-product-details__short-description ul { padding-left: 20px; }
.woocommerce div.product .stock { font-size: 14px; font-weight: 600; color: var(--en-ok); }
.woocommerce div.product .stock.out-of-stock { color: var(--en-accent); }

.woocommerce div.product form.cart { margin: 20px 0; }
.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty {
	width: 76px; height: 56px; padding: 0 6px;
	border: 1px solid #CFCFCB; border-radius: 0; text-align: center; font-size: 16px;
}
.woocommerce div.product form.cart .button { float: none; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 56px; font-size: 17px; }
.woocommerce div.product form.cart .variations { width: 100%; margin-bottom: 12px; border: 0; }
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; border: 0; }
.woocommerce div.product form.cart .variations th label { font-size: 15px; font-weight: 600; }
.woocommerce div.product form.cart .variations select {
	width: 100%; height: 46px; margin: 6px 0 12px; padding: 0 12px;
	border: 1px solid #CFCFCB; border-radius: 0; background-color: #ffffff;
}
.woocommerce div.product form.cart .reset_variations { font-size: 13.5px; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 28px; }
.woocommerce div.product .product_meta { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--en-muted); }
.woocommerce div.product .product_meta a { color: var(--en-muted); }

.en-delivery { margin: 20px 0; border: 1px solid var(--en-line); }
.en-delivery__row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--en-line); font-size: 14.5px; }
.en-delivery__row strong { display: block; }
.en-delivery__row small { font-size: 13.5px; color: var(--en-muted); }
.en-delivery__price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.en-delivery__foot { padding: 12px 16px; background: var(--en-soft); font-size: 13.5px; color: #333333; }

.woocommerce div.product .woocommerce-tabs { padding-top: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 4px 28px;
	margin: 0 0 24px; padding: 0; list-style: none; overflow: visible;
	border-bottom: 1px solid var(--en-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; margin-bottom: -1px; padding: 12px 0;
	border-bottom: 2px solid transparent;
	font-weight: 600; color: var(--en-muted); text-decoration: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--en-ink); border-bottom-color: var(--en-ink); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0 0 24px; max-width: 900px; font-size: 16px; line-height: 1.65; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 22px; margin-top: 0; }
.woocommerce table.shop_attributes { width: 100%; border: 0; border-top: 1px solid var(--en-line); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td {
	padding: 10px 0; border: 0; border-bottom: 1px solid var(--en-line);
	background: none !important; text-align: left; font-style: normal;
}
.woocommerce table.shop_attributes th { width: 40%; font-weight: 500; color: var(--en-muted); }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.woocommerce .related > h2, .woocommerce .upsells > h2, .woocommerce .cross-sells > h2 { margin: 0 0 16px; font-size: 24px; font-weight: 600; }

/* ---------- Notices, forms, cart, checkout ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--en-ink); background: var(--en-soft); color: var(--en-ink);
}
.woocommerce-message::before { color: var(--en-ok); }
.woocommerce-info::before { color: var(--en-ink); }
.woocommerce-error { border-top-color: var(--en-accent); }
.woocommerce-error::before { color: var(--en-accent); }

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce .select2-container .select2-selection--single {
	min-height: 46px; padding: 8px 12px; border: 1px solid #CFCFCB; border-radius: 0; background: #ffffff;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; padding: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
.woocommerce table.shop_table { border-radius: 0; border-color: var(--en-line); }

/* Order summary at checkout: a clean list instead of a two-column table. */
.woocommerce table.woocommerce-checkout-review-order-table {
	display: block; width: 100%; margin: 0 0 24px;
	border: 1px solid var(--en-line); border-radius: 0; border-collapse: separate;
}
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table tfoot { display: block; }
.woocommerce-checkout-review-order-table tr {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 12px 16px; border-bottom: 1px solid var(--en-line);
}
.woocommerce-checkout-review-order-table tfoot tr:last-child { border-bottom: 0; }
.woocommerce table.woocommerce-checkout-review-order-table th,
.woocommerce table.woocommerce-checkout-review-order-table td {
	display: block; padding: 0; border: 0; background: none; text-align: left; font-weight: 400;
}
.woocommerce-checkout-review-order-table thead tr { background: var(--en-soft); }
.woocommerce table.woocommerce-checkout-review-order-table thead th { font-size: 13.5px; font-weight: 600; color: var(--en-muted); }
.woocommerce-checkout-review-order-table .product-name { flex: 1; min-width: 0; }
.woocommerce-checkout-review-order-table .product-quantity { font-weight: 600; white-space: nowrap; }
.woocommerce table.woocommerce-checkout-review-order-table .product-total,
.woocommerce table.woocommerce-checkout-review-order-table tfoot td { text-align: right; white-space: nowrap; font-weight: 600; }
.woocommerce table.woocommerce-checkout-review-order-table tfoot th { font-weight: 600; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: 10px; }
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { text-align: left; white-space: normal; font-weight: 400; }
.woocommerce-checkout-review-order-table tr.order-total { align-items: flex-start; }
.woocommerce table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce table.woocommerce-checkout-review-order-table tr.order-total td strong { font-size: 19px; font-weight: 700; }
.woocommerce-checkout-review-order-table tr.order-total small.includes_tax {
	display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--en-muted); white-space: normal;
}

/* Shipping options (cart and checkout): one card per option, logo, name and price on one line. */
.woocommerce ul#shipping_method {
	display: flex; flex-direction: column; gap: 8px;
	margin: 0; padding: 0; list-style: none; text-align: left;
}
.woocommerce ul#shipping_method li {
	display: flex; align-items: center; gap: 12px;
	margin: 0; padding: 12px 14px; text-indent: 0; line-height: 1.35;
	background: #ffffff; border: 1px solid var(--en-line);
}
.woocommerce ul#shipping_method li:has(input:checked) { border-color: var(--en-ink); box-shadow: inset 0 0 0 1px var(--en-ink); }
.woocommerce ul#shipping_method li input[type="radio"] {
	flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--en-ink);
}
.woocommerce ul#shipping_method li label {
	flex: 1; min-width: 0; margin: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
	font-weight: 500; cursor: pointer;
}
.woocommerce ul#shipping_method li img {
	display: block; flex-shrink: 0; width: auto; max-width: 96px; height: 22px;
	margin: 0 !important; object-fit: contain;
}
.woocommerce ul#shipping_method li br { display: none; }
.woocommerce ul#shipping_method li .woocommerce-Price-amount { font-weight: 700; white-space: nowrap; }

/* Payment methods: same-size cards, radio, name and logos on one line. */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods {
	display: flex; flex-direction: column; gap: 8px;
	margin: 0 0 16px; padding: 0; border: 0; list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods::before,
.woocommerce-checkout #payment ul.payment_methods::after { display: none; }
.woocommerce-checkout #payment ul.payment_methods li {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
	margin: 0; padding: 14px 16px; line-height: 1.35;
	background: #ffffff; border: 1px solid var(--en-line);
}
.woocommerce-checkout #payment ul.payment_methods li:has(> input:checked) { border-color: var(--en-ink); box-shadow: inset 0 0 0 1px var(--en-ink); }
.woocommerce-checkout #payment ul.payment_methods li > input[type="radio"] {
	flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--en-ink);
}
.woocommerce-checkout #payment ul.payment_methods li > label {
	flex: 1; min-width: 0; margin: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
	font-weight: 600; cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li img {
	display: inline-block; float: none !important; position: static;
	width: auto; max-width: 64px; height: 22px; margin: 0 !important;
	object-fit: contain; vertical-align: middle;
}
.woocommerce-checkout #payment div.payment_box {
	flex-basis: 100%; margin: 4px 0 0; padding: 12px 14px;
	background: var(--en-soft); color: #333333; border-radius: 0; font-size: 14px;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
.woocommerce-checkout #payment div.form-row.place-order { margin: 0; padding: 8px 0 0; }
.woocommerce-checkout #payment #place_order { float: none; width: 100%; min-height: 56px; font-size: 17px; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0 0 12px; font-size: 13.5px; color: var(--en-muted); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; }
.woocommerce-checkout .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.woocommerce-checkout .woocommerce-form__input-checkbox { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--en-ink); }

.wc-block-components-button:not(.is-link) { border-radius: 0 !important; min-height: 48px; font-weight: 600; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--en-accent) !important; color: #ffffff !important;
}
.wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover { background: var(--en-accent-dark) !important; }
.wc-block-components-text-input input, .wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option { border-radius: 0 !important; }

/* ---------- Pages ---------- */
.en-page__title { margin: 0 0 24px; font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.01em; }
.en-page__image { margin-bottom: 24px; }
.en-content { max-width: 820px; font-size: 16.5px; line-height: 1.7; }
.en-page--shop .en-content { max-width: none; font-size: 16px; line-height: 1.5; }
.en-content h2 { margin: 1.6em 0 .6em; font-size: 24px; }
.en-content h3 { margin: 1.4em 0 .5em; font-size: 19px; }
.en-content a { text-decoration: underline; }

/* ---------- Footer ---------- */
.en-footer { background: var(--en-ink); color: #D8D8D4; }
.en-footer__grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px;
	padding-top: 48px; padding-bottom: 28px; font-size: 14px; line-height: 1.85;
}
.en-footer a { color: #D8D8D4; text-decoration: none; }
.en-footer a:hover { color: #ffffff; text-decoration: underline; }
.en-footer ul { margin: 0; padding: 0; list-style: none; }
.en-footer__title { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: #ffffff; }
.en-footer__brand .en-logo, .en-footer__brand .en-logo:hover { color: #ffffff; text-decoration: none; }
.en-footer__brand .en-logo__word { font-size: 22px; }
.en-footer__brand .en-logo { display: inline-flex; }
.en-footer__brand .en-logo__tag { color: #BDBDB8; font-size: 9px; }
.en-footer__brand p { margin: 12px 0 0; line-height: 1.5; }
.en-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-top: 16px; padding-bottom: 24px;
	border-top: 1px solid #2E2E2C; font-size: 13px; color: #A3A39F;
}
.en-footer--slim .en-footer__bottom { border-top: 0; }

/* ---------- Phone: bottom menu & sticky buy ---------- */
.en-bottomnav, .en-sticky-buy { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.en-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.en-header__main { gap: 16px 20px; }
}

/* ---------- Phone ---------- */
@media (max-width: 699px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	body.en-is-checkout { padding-bottom: 0; }
	.en-container { padding-left: 16px; padding-right: 16px; }

	.en-topbar, .en-catnav { display: none; }
	.en-header__main {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "logo actions" "search search";
		gap: 12px; padding-top: 12px; padding-bottom: 12px;
	}
	.en-logo__word { font-size: 22px; letter-spacing: .3em; margin-right: -.3em; }
	.en-logo__tag { font-size: 8.5px; }
	.en-search input[type="search"], .en-search button { height: 46px; }
	.en-search button { padding: 0 18px; }
	.en-only-mobile { display: inline-flex !important; }
	.en-only-desktop { display: none !important; }
	/* Phone compact: the logo row slides away, the search field stays at the top. */
	.en-header.is-compact { border-bottom-color: var(--en-line); }
	.en-header.is-compact .en-header__bar { box-shadow: none; }
	.en-header--checkout .en-header__main { grid-template-areas: "logo" "actions"; grid-template-columns: 1fr; }
	.en-checkout-meta { justify-self: start; }

	.en-main { padding-top: 16px; padding-bottom: 40px; }
	.en-home { gap: 28px; }
	.en-hero { display: none; }
	.en-section--cats { order: 1; }
	.en-section--products { order: 2; }
	.en-usp { order: 3; }
	.en-section--guides { order: 4; }
	.en-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.en-usp li { align-items: flex-start; gap: 10px; padding: 14px 4px; }
	.en-usp .en-icon { width: 22px; height: 22px; }
	.en-section { gap: 12px; }
	.en-section__title { font-size: 21px; }
	.en-section__link { font-size: 13.5px; }

	.en-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.en-cats li:nth-child(n+9):not(:last-child) { display: none; }
	.en-cat { min-height: 84px; padding: 10px 4px; align-items: center; justify-content: center; gap: 8px; text-align: center; }
	.en-cat .en-icon { width: 26px; height: 26px; }
	.en-cat__name { font-size: 12.5px; letter-spacing: -.01em; }

	.woocommerce ul.products, ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
	.woocommerce ul.products li.product, ul.products li.product { grid-column: span 3; }
	.woocommerce ul.products li.product.product-category, ul.products li.product-category { grid-column: span 2 !important; width: auto !important; float: none !important; margin: 0 !important; }
	/* Shop and category lists: always two products side by side. */
	.en-shop ul.products, .woocommerce .en-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.en-shop ul.products li.product, .woocommerce .en-shop ul.products li.product { grid-column: auto !important; }
	.woocommerce ul.products li.product-category a { padding: 8px 6px 10px; }
	.woocommerce ul.products li.product-category .en-subcat-media { aspect-ratio: 4 / 3; margin-bottom: 6px; }
	.woocommerce ul.products li.product .woocommerce-loop-category__title,
	.woocommerce ul.products li.product-category h2 { padding: 0; font-size: 12px; line-height: 1.25; letter-spacing: -.01em; text-align: center; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
	.woocommerce ul.products li.product-category mark.count { display: block; margin-top: 2px; font-size: 11.5px; }
	.en-card__media { padding: 10px; }
	.en-card__body { gap: 4px; padding: 10px; }
	.en-card__brand { font-size: 11px; }
	.woocommerce ul.products li.product .en-card__title,
	ul.products li.product .en-card__title { font-size: 14px; line-height: 1.3; -webkit-line-clamp: 4; }
	.en-card__spec { display: none; }
	.en-stock { font-size: 12px; }
	.en-card__price { font-size: 17px; }
	.woocommerce ul.products li.product .en-card__foot .button,
	ul.products li.product .en-card__foot .button { min-height: 40px; padding: 0 8px; font-size: 14px; }

	.en-shop-head__title { font-size: 26px; }

	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.woocommerce.single-product div.product div.summary, .single-product div.product .summary { grid-column: 1; }
	.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 28px; }

	.en-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }
	.en-footer__brand { grid-column: 1 / -1; }

	.en-bottomnav {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
		height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: #ffffff; border-top: 1px solid var(--en-line);
	}
	.en-bottomnav a {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		font-size: 11px; color: var(--en-muted); text-decoration: none;
	}
	.en-bottomnav a.is-active { color: var(--en-ink); font-weight: 600; }
	.en-bottomnav .en-cart-count { top: 6px; right: auto; left: 50%; margin-left: 4px; }

	body.single-product { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
	body.single-product .en-bottomnav { display: none; }
	.en-sticky-buy {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		display: flex; align-items: center; gap: 14px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: #ffffff; border-top: 1px solid var(--en-line);
		transform: translateY(110%); visibility: hidden;
		transition: transform .2s ease, visibility .2s;
	}
	.en-sticky-buy.is-visible { transform: none; visibility: visible; }
	.en-sticky-buy__info { display: flex; flex-direction: column; }
	.en-sticky-buy__price { font-size: 20px; font-weight: 700; line-height: 1.1; }
	.en-sticky-buy__price del { font-size: 13px; font-weight: 400; color: var(--en-muted); }
	.en-sticky-buy__price ins { text-decoration: none; color: var(--en-accent); }
	.en-sticky-buy__price .en-from { font-size: 12px; }
	.en-sticky-buy small { font-size: 11.5px; color: var(--en-muted); }
	.en-sticky-buy .en-btn { flex: 1; min-height: 50px; padding: 0 12px; }
}

/* ---------- 1.0.17 ---------- */
/* Checkout: "Saada teisele aadressile?" no longer floats next to the "Lisainfo" heading. */
.woocommerce-checkout #ship-to-different-address { float: none; width: 100%; margin: 24px 0 12px; font-size: 16px; }
.woocommerce-checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-checkout .woocommerce-additional-fields { clear: both; }
.woocommerce-checkout .woocommerce-additional-fields > h3 { margin: 24px 0 12px; text-align: left; }
/* The main button on the product page is red like the other main buttons (another plugin made it navy). */
body.single-product div.product form.cart .single_add_to_cart_button.button,
body.single-product div.product form.cart button.single_add_to_cart_button {
	background: var(--en-accent) !important; color: #ffffff !important; border-radius: 0 !important;
}
body.single-product div.product form.cart .single_add_to_cart_button.button:hover,
body.single-product div.product form.cart button.single_add_to_cart_button:hover { background: var(--en-accent-dark) !important; }
/* Related products: four in a row that fill the width. */
.woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) {
	.woocommerce .related ul.products, .woocommerce .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* "Tehnilised andmed" table made from the supplier's list. */
.woocommerce table.en-specs { max-width: 860px; margin: 0 0 8px; }
.woocommerce table.en-specs th { width: 42%; }
.woocommerce table.en-specs td { overflow-wrap: anywhere; }
/* Empty cart (WooCommerce block): buttons and titles in the shop style. */
.wp-block-woocommerce-empty-cart-block .wp-block-button__link { background: var(--en-ink); color: #ffffff; border-radius: 0; font-weight: 600; }
.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover { background: #333333; }
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title { text-decoration: none; font-weight: 600; font-size: 14.5px; }

/* 1.0.23 — cookie consent banner. */
.en-consent { position: fixed; left: 16px; bottom: 16px; z-index: 120; max-width: 440px; padding: 18px 18px 16px; background: #ffffff; border: 1px solid var(--en-line); box-shadow: 0 10px 30px rgba(0,0,0,.12); font-size: 14px; line-height: 1.45; }
.en-consent[hidden] { display: none; }
.en-consent__text { margin: 0 0 14px; color: #333333; }
.en-consent__text strong { display: block; margin-bottom: 4px; font-size: 15px; color: var(--en-ink); }
.en-consent__text a { color: var(--en-ink); }
.en-consent__btns { display: flex; gap: 10px; }
.en-consent__btns .en-btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 14.5px; }
.en-btn--ghost { background: #ffffff; color: var(--en-ink); border: 1px solid var(--en-ink); }
.en-btn--ghost:hover { background: var(--en-soft); color: var(--en-ink); }
@media (max-width: 782px) {
	.en-consent { left: 8px; right: 8px; max-width: none; bottom: calc(72px + env(safe-area-inset-bottom)); }
	body.single-product .en-consent, body.woocommerce-checkout .en-consent, body.woocommerce-cart .en-consent { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* 1.0.23 — product page: delivery time, courier price and a contact line. */
.en-delivery__row .en-delivery__price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.en-delivery__ask { padding: 12px 16px; border-top: 1px solid var(--en-line); font-size: 13.5px; color: #333333; }
.en-delivery__ask a { color: var(--en-ink); font-weight: 600; }

/* 1.0.25 — search suggestions. */
.en-search { position: relative; }
.en-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 200; margin-top: 4px; background: #ffffff; border: 1px solid var(--en-line); box-shadow: 0 12px 28px rgba(0,0,0,.12); max-height: 70vh; overflow-y: auto; }
.en-suggest[hidden] { display: none; }
.en-suggest__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; color: var(--en-ink); text-decoration: none; border-bottom: 1px solid var(--en-line); }
.en-suggest__item:hover, .en-suggest__item.is-active { background: var(--en-soft); }
.en-suggest__img { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.en-suggest__img img { max-width: 48px; max-height: 48px; object-fit: contain; }
.en-suggest__name { font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.en-suggest__price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.en-suggest__price del { display: none; }
.en-suggest__price ins { text-decoration: none; }
.en-suggest__empty { padding: 14px; font-size: 14px; color: var(--en-muted); }
.en-search .en-suggest__all { display: block; width: 100%; height: auto; padding: 12px 14px; background: #ffffff; color: var(--en-ink); font-weight: 600; font-size: 14px; text-align: left; border: 0; }
.en-search .en-suggest__all:hover { background: var(--en-soft); }

/* 1.0.25 — free delivery: product row, checkout row, cart bar. */
.en-delivery__price--free { color: #1a7f37; }
.en-freeship td { padding: 10px 0 !important; font-size: 14px; color: #333333; }
.en-freeship--ok td { color: #1a7f37; font-weight: 600; }
.en-freeship-bar { margin: 0 0 16px; padding: 12px 16px; background: var(--en-soft); font-size: 14.5px; }
.en-freeship-bar--ok { color: #1a7f37; font-weight: 600; }
.en-freeship-bar__track { display: block; height: 6px; margin-top: 8px; background: #e2e2de; }
.en-freeship-bar__track span { display: block; height: 100%; background: var(--en-ink); transition: width .3s ease; }
.en-freeship-bar--ok .en-freeship-bar__track span { background: #1a7f37; }
