/* Ecowatta – WooCommerce slog (agent W). Samo barve iz palete theme.json. */

/* Kartice izdelkov */
.ew-product-grid .wc-block-product-template,
.ew-product-grid ul.wc-block-product-template { gap: var(--wp--preset--spacing--30, 1.25rem); }
.ew-product-card {
	height: 100%;
	gap: .6rem;
	padding: 1rem;
	background: var(--wp--preset--color--bela);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--temna) 12%, transparent);
	border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ew-product-card:hover,
.ew-product-card:focus-within {
	transform: translateY(-3px);
	border-color: var(--wp--preset--color--smaragd);
	box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--wp--preset--color--temna) 55%, transparent);
}
.ew-product-card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; background: var(--wp--preset--color--svetla); }
.ew-product-card .wp-block-post-title a { color: var(--wp--preset--color--temna); text-decoration: none; }
.ew-product-card .wp-block-post-excerpt { color: var(--wp--preset--color--siva); font-size: .92rem; margin: 0; }
.ew-product-card .wp-block-button, .ew-product-card .wc-block-components-product-button { margin-top: auto; }

/* Cena */
.ew-price, .ew-price .amount, .ew-product .wc-block-components-product-price {
	color: var(--wp--preset--color--temna);
	font-weight: 800;
	letter-spacing: -.01em;
}
.ew-product-summary .ew-price { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin-block: .5rem; }
.ew-price del { color: var(--wp--preset--color--siva); font-weight: 500; }

/* Gumbi Woo (v košarico, blagajna) */
.ew-product .single_add_to_cart_button,
.wc-block-components-product-button__button,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button,
.ew-sticky-buy__btn {
	background: var(--wp--preset--color--limeta) !important;
	color: var(--wp--preset--color--polnoc) !important;
	border: 0;
	letter-spacing: .04em;
	border-radius: 999px !important;
	font-weight: 800;
	padding: .85rem 1.6rem;
	transition: transform .15s ease, filter .15s ease;
}
.ew-product .single_add_to_cart_button:hover,
.wc-block-components-product-button__button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover { filter: none; transform: translateY(-1px); background: var(--wp--preset--color--sonce) !important; box-shadow: 0 0 0 1px var(--wp--preset--color--limeta), 0 0 22px -4px color-mix(in srgb, var(--wp--preset--color--limeta) 70%, transparent); }
:is(.single_add_to_cart_button, .wc-block-components-product-button__button, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--oranzna);
	outline-offset: 2px;
}

/* Izdelek */
.ew-product-top { align-items: flex-start; }
.ew-product-gallery { position: sticky; top: 1rem; }
.ew-product-gallery .woocommerce-product-gallery__image img,
.ew-product-gallery img { border-radius: 18px; background: var(--wp--preset--color--svetla); }
.ew-product-gallery .flex-control-thumbs { display: flex; gap: .5rem; margin-top: .75rem; padding: 0; list-style: none; }
.ew-product-gallery .flex-control-thumbs img { border-radius: 10px; opacity: .6; transition: opacity .2s; cursor: pointer; }
.ew-product-gallery .flex-control-thumbs img.flex-active, .ew-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.ew-product-summary .ew-eyebrow a { color: var(--wp--preset--color--smaragd); text-decoration: none; }
.ew-stock .stock, .ew-product .stock { font-weight: 700; }
.ew-product .in-stock { color: var(--wp--preset--color--smaragd); }
.ew-product .out-of-stock { color: var(--wp--preset--color--siva); }
.ew-product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-block: 1rem; }
.ew-product form.cart .quantity input { width: 4.5rem; padding: .7rem; border-radius: 12px; border: 1px solid var(--wp--preset--color--siva); }
.ew-product .variations { width: 100%; border: 0; }
.ew-product .variations th, .ew-product .variations td { display: block; padding: .25rem 0; text-align: left; }
.ew-product .variations select { padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--wp--preset--color--siva); min-width: 12rem; }
.ew-product .reset_variations { font-size: .85rem; }
.ew-trust { list-style: none; padding: 1rem 1.2rem; margin: 1rem 0; border-radius: 14px; background: var(--wp--preset--color--svetla); font-size: .95rem; }
.ew-product .product_meta, .ew-product .wp-block-woocommerce-product-meta { color: var(--wp--preset--color--siva); font-size: .85rem; }

/* Zavihki */
.ew-product .woocommerce-tabs ul.tabs li::before, .ew-product .woocommerce-tabs ul.tabs li::after, .ew-product .woocommerce-tabs ul.tabs::before { display: none !important; }
.ew-product-tabs .wc-tabs, .ew-product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 2.5rem 0 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--temna) 15%, transparent);
}
.ew-product .woocommerce-tabs ul.tabs li { margin: 0; border: 0; background: none; }
.ew-product .woocommerce-tabs ul.tabs li a {
	display: block; padding: .7rem 1.1rem; border-radius: 12px 12px 0 0; text-decoration: none;
	color: var(--wp--preset--color--siva); font-weight: 700;
}
.ew-product .woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--temna); box-shadow: inset 0 -3px 0 var(--wp--preset--color--limeta); }
.ew-product .woocommerce-Tabs-panel { animation: ew-fade .3s ease; }
@keyframes ew-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Specifikacije, komplet, dokumenti */
.ew-specs { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ew-specs th, .ew-specs td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--temna) 10%, transparent); }
.ew-specs th { width: 40%; color: var(--wp--preset--color--siva); font-weight: 600; }
.ew-specs tr:nth-child(odd) { background: var(--wp--preset--color--svetla); }
.ew-kit { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ew-kit li { padding-left: 1.8rem; position: relative; }
.ew-kit li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--wp--preset--color--sonce); box-shadow: inset 0 0 0 4px var(--wp--preset--color--bela); outline: 2px solid var(--wp--preset--color--sonce); }
.ew-docs { list-style: none; padding: 0; }
.ew-docs a { display: inline-flex; gap: .5rem; align-items: center; padding: .5rem 0; }
.ew-docs-type { font-size: .7rem; font-weight: 800; padding: .15rem .45rem; border-radius: 6px; background: var(--wp--preset--color--temna); color: var(--wp--preset--color--bela); }

/* Lepljiva vrstica za nakup (mobilno) */
.ew-sticky-buy {
	position: fixed; inset: auto 0 0 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
	background: var(--wp--preset--color--temna); color: var(--wp--preset--color--bela);
	transform: translateY(110%); transition: transform .3s ease;
}
.ew-sticky-buy.is-visible { transform: none; }
.ew-sticky-buy__info { display: flex; flex-direction: column; min-width: 0; }
.ew-sticky-buy__name { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ew-sticky-buy__price { font-weight: 800; }
.ew-sticky-buy__btn { text-decoration: none; white-space: nowrap; }
@media (min-width: 782px) { .ew-sticky-buy { display: none; } }
@media (max-width: 781px) { .ew-product-gallery { position: static; } }

/* Arhiv */
.ew-shop-head { margin-bottom: var(--wp--preset--spacing--40, 2rem); }
.ew-shop-guide a { font-weight: 700; color: var(--wp--preset--color--smaragd); }
.ew-shop-toolbar { margin-bottom: 1rem; color: var(--wp--preset--color--siva); }
.ew-shop-filters:empty, .ew-shop-filters:not(:has(.ew-filters)) { display: none; }
.ew-filters { position: sticky; top: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--wp--preset--color--svetla); }
.ew-filters summary { font-weight: 800; cursor: pointer; }
.ew-filters fieldset { border: 0; padding: 0; margin: 1rem 0; }
.ew-filters legend { font-weight: 700; margin-bottom: .4rem; color: var(--wp--preset--color--temna); }
.ew-filters label { display: flex; gap: .5rem; align-items: center; padding: .2rem 0; cursor: pointer; }
.ew-filters input[type=checkbox] { accent-color: var(--wp--preset--color--smaragd); width: 1.1rem; height: 1.1rem; }
.ew-filters__actions { display: flex; gap: 1rem; align-items: center; }
.ew-empty { text-align: center; padding: 2.5rem 1.5rem; }

/* Košarica, blagajna */
.ew-cart .wc-block-cart, .ew-checkout .wc-block-checkout { margin-top: 1rem; }
.ew-cart .wc-block-components-sidebar, .ew-checkout .wc-block-components-sidebar {
	background: var(--wp--preset--color--svetla); border-radius: 18px; padding: 1.25rem;
}
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-block-components-textarea {
	border-radius: 12px !important;
}
.wc-block-components-text-input input:focus, .wc-block-components-combobox input:focus {
	box-shadow: 0 0 0 2px var(--wp--preset--color--smaragd) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 800; color: var(--wp--preset--color--temna); }

/* Iskanje */
.ew-search-results { display: grid; gap: 1rem; padding: 0; }
.ew-search-hit { gap: 1rem; }
.ew-search-hit .wp-block-post-featured-image img { border-radius: 12px; }

/* Obvestilo "dodano v košarico" + animacija košarice */
.ew-toast {
	position: fixed; z-index: 100; left: 50%; bottom: 1.25rem;
	transform: translate(-50%, 20px); opacity: 0;
	display: flex; gap: 1rem; align-items: center;
	padding: .85rem 1.25rem; border-radius: 999px;
	background: var(--wp--preset--color--temna); color: var(--wp--preset--color--bela);
	box-shadow: 0 12px 30px -10px rgba(0,0,0,.45);
	transition: opacity .3s ease, transform .3s ease;
}
.ew-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ew-toast a { color: var(--wp--preset--color--sonce); font-weight: 800; }
.ew-bump { animation: ew-bump .5s ease; }
@keyframes ew-bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.18); } }

/* Obvestila Woo */
.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info {
	border-radius: 14px; border-left: 4px solid var(--wp--preset--color--smaragd);
}

@media (prefers-reduced-motion: reduce) {
	.ew-product-card, .ew-toast, .ew-sticky-buy, .ew-product .woocommerce-Tabs-panel, .ew-bump { transition: none !important; animation: none !important; }
	.ew-product-card:hover { transform: none; }
}

/* ---------- Identiteta v2 »Sonce iz binarne kode« ---------- */
.ew-product-card:hover, .ew-product-card:focus-within { box-shadow: 0 14px 34px -18px rgba(2,10,4,.45), 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--limeta) 40%, transparent); }
.ew-product-card .wp-block-post-title a:hover { color: var(--wp--preset--color--smaragd); }
.ew-price, .ew-price .amount, .ew-product .wc-block-components-product-price { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-weight: 700; letter-spacing: -.02em; }
.ew-product .woocommerce-tabs ul.tabs li.active a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--smaragd); }
.ew-product .woocommerce-tabs ul.tabs li a { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-weight: 500; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.ew-kit li::before { background: var(--wp--preset--color--limeta); outline-color: var(--wp--preset--color--smaragd); }
.ew-docs-type { background: var(--wp--preset--color--polnoc); color: var(--wp--preset--color--limeta); font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); }
.ew-sticky-buy { background: var(--wp--preset--color--polnoc); color: var(--wp--preset--color--mint, #E9FFEF); border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--limeta) 30%, transparent); }
.ew-sticky-buy__price { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); color: var(--wp--preset--color--limeta); }
.ew-toast { background: var(--wp--preset--color--polnoc); color: var(--wp--preset--color--mint, #E9FFEF); border: 1px solid color-mix(in srgb, var(--wp--preset--color--limeta) 40%, transparent); }
.ew-toast a { color: var(--wp--preset--color--limeta); }
.ew-filters { border: 1px solid color-mix(in srgb, var(--wp--preset--color--smaragd) 18%, transparent); }
.ew-filters summary, .ew-filters legend { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.ew-cart .wc-block-components-sidebar, .ew-checkout .wc-block-components-sidebar { border: 1px solid color-mix(in srgb, var(--wp--preset--color--smaragd) 16%, transparent); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); }
.wc-block-components-text-input input:focus, .wc-block-components-combobox input:focus { box-shadow: 0 0 0 2px var(--wp--preset--color--oranzna) !important; }
.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-info { border-left-color: var(--wp--preset--color--smaragd); }
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked { background: var(--wp--preset--color--polnoc); border-color: var(--wp--preset--color--polnoc); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--wp--preset--color--limeta); }
.wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--smaragd); }
.wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--smaragd); }

/* ---------- 2.2.0 (agent G): enoten sistem kartic, nadomestna grafika, košarica, izdelek mobilno ---------- */
/* Nadomestna grafika v slogu znamke namesto sivega Woo placeholderja (deluje tudi brez PHP filtra). */
img[src*="woocommerce-placeholder"], img.woocommerce-placeholder, .wc-block-components-product-image img[src*="placeholder"] {
	content: url("../img/izdelek-nadomestna.svg"); object-fit: cover; aspect-ratio: 4/3; width: 100%; height: auto;
	background: var(--wp--preset--color--svetla); border-radius: 12px;
}
/* Kartice v praznem stanju košarice (»Novo v trgovini«) in v starih Woo mrežah = enake kot .ew-product-card. */
.wc-block-grid__products { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--wp--preset--spacing--30, 1.25rem); margin: 0 !important; padding: 0; }
.wc-block-grid__product { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; padding: 1rem !important; display: flex; flex-direction: column; gap: .6rem; text-align: left !important;
	background: var(--wp--preset--color--bela); border: 1px solid color-mix(in srgb, var(--wp--preset--color--temna) 12%, transparent); border-radius: 18px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.wc-block-grid__product:hover, .wc-block-grid__product:focus-within { transform: translateY(-3px); border-color: color-mix(in srgb, var(--wp--preset--color--limeta) 55%, transparent); box-shadow: 0 14px 34px -18px rgba(2,10,4,.45); }
.wc-block-grid__product-link { text-decoration: none; color: var(--wp--preset--color--temna); }
.wc-block-grid__product-image { margin: 0 0 .4rem !important; }
.wc-block-grid__product-image img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.wc-block-grid__product-title { font-weight: 700; font-size: 1rem !important; line-height: 1.3; color: var(--wp--preset--color--temna); }
.wc-block-grid__product-price { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-weight: 700; margin: 0 !important; }
.wc-block-grid__product-add-to-cart { margin-top: auto !important; }
.wc-block-grid__product-add-to-cart { width: 100%; }
.wc-block-grid__product-add-to-cart .wp-block-button__link { display: block; box-sizing: border-box; min-height: 0 !important; line-height: 1.2 !important; width: 100%; text-align: center; border-radius: 999px !important; padding: .75rem 1rem !important; font-weight: 700; font-size: .9rem; }
.wc-block-cart__empty-cart__title, .wp-block-woocommerce-empty-cart-block > .wp-block-heading { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem) !important; color: var(--wp--preset--color--temna); }
.wp-block-woocommerce-empty-cart-block .wp-block-separator { border: 0; height: 1px; max-width: 120px; margin: 2rem auto; background: color-mix(in srgb, var(--wp--preset--color--smaragd) 40%, transparent); }
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before { background-color: var(--wp--preset--color--smaragd); }

/* Kartice: enaka višina, gumb vedno spodaj, enotna velikost gumba. */
.ew-product-card { display: flex; flex-direction: column; }
.ew-product-card .wp-block-post-title { font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.3; margin: 0; }
.ew-product-card :is(.wp-block-button__link, .wc-block-components-product-button__button) { width: 100%; justify-content: center; text-align: center; min-height: 46px; padding: .7rem 1rem; font-size: .9rem; }

/* Izdelek: galerija na telefonu ni čez cel zaslon; specifikacije in povzetek z mero. */
@media (max-width: 781px) {
	.ew-product-gallery img, .ew-product-gallery .woocommerce-product-gallery__image img { max-height: 58vh; width: 100%; object-fit: contain; }
	.ew-product-gallery img[src*="placeholder"] { max-height: 42vh; object-fit: cover; }
	/* Lepljiva vrstica + FAB ne smeta prekrivati konca vsebine/noge. */
	.single-product .wp-site-blocks { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.ew-sticky-buy__btn { padding: .7rem 1.2rem; font-size: .9rem; }
}
.ew-product-summary > * { max-width: 65ch; }
.ew-specs th, .ew-specs td { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .wc-block-grid__product { transition: none; } .wc-block-grid__product:hover { transform: none; } }

/* ---------- M2 mobilno (360–430 px), breakpointi 782/600 ---------- */
@media (max-width: 781px) {
	/* Galerija: flexslider trak je širši od zaslona — porežemo ga na okvir, da ne povzroča vodoravnega drsenja. */
	.ew-product-gallery, .ew-product-gallery .woocommerce-product-gallery { max-width: 100%; min-width: 0; overflow: clip; }
	.ew-product-gallery .flex-viewport { max-width: 100%; overflow: hidden; }
	.ew-product-gallery .flex-control-thumbs { flex-wrap: wrap; }
	.ew-product-gallery .flex-control-thumbs li { flex: 0 0 calc((100% - 1.5rem) / 4); min-width: 44px; }
	.ew-product-top > * { min-width: 0; }
	/* Zavihki: vsi vidni kot »tablete« v 2 vrsticah (brez skritega drsenja), tarče ≥ 44 px; Woo ::before/::after povzročata +5 px prelivanja. */
	.ew-product .woocommerce-tabs ul.tabs, .ew-product-tabs .wc-tabs { flex-wrap: wrap; gap: .4rem; margin-top: 1.75rem; padding-bottom: .75rem; }
	.ew-product .woocommerce-tabs ul.tabs li, .woocommerce div.product.ew-product .woocommerce-tabs ul.tabs li { flex: 1 1 auto; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
	.ew-product .woocommerce-tabs ul.tabs li a { width: 100%; box-sizing: border-box; }
	.ew-product .woocommerce-tabs ul.tabs li a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .8rem; border-radius: 999px; font-size: .8rem; letter-spacing: .03em; text-align: center;
		background: var(--wp--preset--color--svetla); color: var(--wp--preset--color--temna); }
	.ew-product .woocommerce-tabs ul.tabs li.active a { background: var(--wp--preset--color--polnoc) !important; color: var(--wp--preset--color--limeta) !important; box-shadow: none; }
	.ew-product .woocommerce-Tabs-panel { overflow-wrap: anywhere; }
	/* Specifikacije: vrstica = oznaka nad vrednostjo, dolge vrednosti se lomijo. */
	.ew-product table.ew-specs { font-size: .93rem; }
	.ew-product table.ew-specs, .ew-product table.ew-specs tbody, .ew-product table.ew-specs tr { display: block; width: 100%; }
	.ew-product table.ew-specs th, .ew-product table.ew-specs td { display: block; width: auto; padding: .15rem .75rem; border: 0; overflow-wrap: anywhere; }
	.ew-product table.ew-specs th { padding-top: .6rem; font-size: .82rem; }
	.ew-product table.ew-specs th, .ew-product table.ew-specs td { background: transparent !important; }
	.ew-product table.ew-specs td { padding-bottom: .6rem; color: var(--wp--preset--color--temna); }
	.ew-product table.ew-specs tr { border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--temna) 10%, transparent); }
	.woocommerce-Tabs-panel table:not(.ew-product table.ew-specs) { display: block; max-width: 100%; overflow-x: auto; }
	/* Nakup: gumb čez celo širino, količina 44 px. */
	.ew-product form.cart { gap: .6rem; }
	.ew-product form.cart .quantity input { min-height: 48px; }
	.ew-product form.cart .single_add_to_cart_button { flex: 1 1 12rem; min-height: 48px; }
	.ew-product .variations select { min-width: 0; width: 100%; min-height: 48px; }
	.ew-product-summary .ew-price { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); }
	.ew-product-summary h1, .ew-product-summary .wp-block-post-title { overflow-wrap: break-word; hyphens: manual; }
	.ew-docs a { min-height: 44px; overflow-wrap: anywhere; }
	/* Lepljiva vrstica: ime v dveh vrsticah namesto odrezanega, gumb ne stiska besedila. */
	.ew-sticky-buy { gap: .75rem; padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right)); }
	.ew-sticky-buy__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
	.ew-sticky-buy__btn { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; }
	/* Filtri trgovine: tarče ≥ 44 px, ne lepljivo. */
	.ew-filters { position: static; }
	.ew-filters summary { min-height: 44px; display: flex; align-items: center; }
	.ew-filters label { min-height: 44px; }
	/* Košarica/blagajna: polja in gumbi za prst. */
	.ew-cart .wc-block-components-sidebar, .ew-checkout .wc-block-components-sidebar { padding: 1rem; border-radius: 14px; }
	.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { width: 100%; min-height: 52px; }
	.wc-block-components-quantity-selector { min-height: 44px; }
	.wc-block-components-quantity-selector__button { min-width: 44px; }
	.wc-block-cart-item__remove-link { min-height: 44px; display: inline-flex !important; align-items: center; }
	.wc-block-components-product-name { overflow-wrap: anywhere; }
	.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
	.woocommerce-account .woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; background: var(--wp--preset--color--svetla); text-decoration: none; }
	.woocommerce-account table.shop_table { display: block; overflow-x: auto; }
}
@media (max-width: 599px) {
	/* Mreža trgovine: 2 stolpca pri ≥ 360, kompaktne kartice. */
	.ew-product-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .75rem; }
	.ew-product-grid .ew-product-card { padding: .65rem; gap: .45rem; border-radius: 14px; }
	.ew-product-grid .wp-block-post-title { font-size: 1rem !important; line-height: 1.3; overflow-wrap: break-word; hyphens: manual; }
	.ew-product-grid .wc-block-product { min-width: 0; }
	.ew-product-grid .ew-product-card .wp-block-post-excerpt { display: none; }
	.ew-product-grid .ew-product-card :is(.wp-block-button__link, .wc-block-components-product-button__button) { padding: .6rem .5rem; font-size: .8rem; letter-spacing: .02em; min-height: 44px; }
	.wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.wc-block-grid__product { padding: .65rem !important; }
}

/* Recenzija M3 (18. 10.): drobni popravki M2 */
@media (max-width: 781px) {
	.ew-filters label { display: flex; align-items: center; }
	.wc-block-grid__products { display: grid; }
	.ew-sticky-buy__name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
	.ew-product .woocommerce-tabs { overflow-x: clip; }
	.ew-product table.ew-specs thead { display: none; }
}
