/* ==========================================================================
   Catalog / category pages (plan 04) — board Catalog.dc.html / MobileCatalog.dc.html
   ========================================================================== */

/* Breadcrumbs on Woo pages: plain 13px line above the H1 (board: "Головна › Каталог › Офісні"); look in base.css */
body.woocommerce .page-top { background: transparent; border: 0; padding: 24px 0 0; min-height: 0; margin: 0; }
body.woocommerce .page-top > .container { padding-top: 0; padding-bottom: 0; }

/* H1 + count */
.mk-archive-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 14px 0 18px; }
.mk-archive-title { margin: 0; font-size: 36px; line-height: 1.15; font-weight: 700; color: var(--mk-ink); letter-spacing: -0.01em; text-transform: none; }
.mk-archive-count { color: var(--mk-ink-2); font-size: 15px; }

/* Subcategory chips */
.mk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 28px; }
.mk-chip { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); color: var(--mk-ink); text-decoration: none; transition: border-color .15s; }
.mk-chip:hover,
.mk-chip:focus { border-color: var(--mk-ink); color: var(--mk-ink); text-decoration: none; }
.mk-chip:focus-visible { outline: 2px solid var(--mk-ink); outline-offset: 2px; }
.mk-chip[aria-current="page"],
.mk-chip[aria-current="page"]:hover,
.mk-chip[aria-current="page"]:focus { background: var(--mk-ink); border-color: var(--mk-ink); color: #fff; }
.mk-chip__icon { flex: 0 0 36px; height: 44px; display: flex; align-items: flex-end; justify-content: center; }
.mk-chip--back .mk-chip__icon,
.mk-chip--all .mk-chip__icon { align-items: center; }
.mk-chip__icon .mk-format-icon { width: 36px; height: 44px; }
.mk-chip__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mk-chip__name { font-weight: 500; font-size: 15px; }
.mk-chip__meta { font-size: 12px; color: var(--mk-ink-2); }
.mk-chip__price { font-size: 12px; font-weight: 500; }
.mk-chip[aria-current="page"] .mk-chip__meta { color: var(--mk-line); }

@media (max-width: 767px) {
	body.woocommerce .page-top { padding-top: 16px; }
	.mk-archive-title { font-size: 28px; }
	.mk-archive-head { margin-top: 10px; }
	/* «Каталог» (one level up) is a short 44 px row on phones, so the section chips stay on the first screen. */
	.mk-chip--back { min-height: 44px; padding-top: 0; padding-bottom: 0; }
	.mk-chip--back .mk-chip__icon { height: 24px; }
	.mk-chip--back .mk-chip__meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mk-chip { transition: none; }
}

/* Toolbar */
body.woocommerce .shop-loop-before { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; background: none; border: 0; }
body.woocommerce .shop-loop-before .porto-product-filters-toggle { order: 0; }
body.woocommerce .shop-loop-before .mk-result-count { order: 1; margin: 0; font-size: 14px; font-weight: 400; letter-spacing: normal; color: var(--mk-ink-2); } /* Porto toolbar.css ≤991px: .shop-loop-before 600 / -0.025em */
body.woocommerce .shop-loop-before .woocommerce-ordering { order: 2; margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; float: none; font-size: 14px; }
body.woocommerce .woocommerce-ordering label { display: inline-block !important; margin: 0; font-size: 14px; font-weight: 400; color: var(--mk-ink); }
body.woocommerce .woocommerce-ordering select.orderby {
	height: 40px; min-height: 40px; padding: 0 40px 0 14px; border: 1px solid var(--mk-line); border-radius: var(--mk-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23302a28' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px 14px;
	-webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; color: var(--mk-ink); cursor: pointer; box-shadow: none;
}
body.woocommerce .woocommerce-ordering select.orderby:focus-visible { outline: 2px solid var(--mk-ink); outline-offset: 2px; }
body.woocommerce .woocommerce-viewing { display: none !important; } /* the board has no "per page" control */

/* Mobile "Фільтри" button (opens Porto's off-canvas sidebar); square on the board */
body.woocommerce .porto-product-filters-toggle.sidebar-toggle {
	align-items: center; gap: 8px; height: 44px; padding: 0 16px; margin: 0;
	border: 1.5px solid var(--mk-ink); border-radius: 0; background: #fff; color: var(--mk-ink);
	font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; text-decoration: none;
}
body.woocommerce .porto-product-filters-toggle.sidebar-toggle svg { width: 18px; height: 18px; }
body.woocommerce .porto-product-filters-toggle.sidebar-toggle svg .cls-1,
body.woocommerce .porto-product-filters-toggle.sidebar-toggle svg .cls-2 { stroke: var(--mk-ink); fill: none; }
body.woocommerce .porto-product-filters-toggle.sidebar-toggle svg .cls-3 { fill: var(--mk-ink); }
body.woocommerce .porto-product-filters-toggle.sidebar-toggle:focus-visible { outline: 2px solid var(--mk-ink); outline-offset: 2px; }

/* Pagination (below the grid) */
body.woocommerce .shop-loop-after { margin-top: 36px; }
body.woocommerce .woocommerce-pagination { display: flex; justify-content: center; float: none; width: 100%; }
body.woocommerce .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; }
body.woocommerce .woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; float: none; }
body.woocommerce .woocommerce-pagination .page-numbers a,
body.woocommerce .woocommerce-pagination .page-numbers span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 4px;
	border: 1px solid var(--mk-line); border-radius: var(--mk-radius-sm); background: #fff; color: var(--mk-ink); font-size: 15px; font-weight: 400; line-height: 1; box-shadow: none;
}
body.woocommerce .woocommerce-pagination .page-numbers a:hover { border-color: var(--mk-ink); color: var(--mk-ink); }
body.woocommerce .woocommerce-pagination .page-numbers a:focus-visible { outline: 2px solid var(--mk-ink); outline-offset: 2px; }
body.woocommerce .woocommerce-pagination .page-numbers span.current { border: 2px solid var(--mk-red); color: var(--mk-red); font-weight: 700; background: #fff; }
body.woocommerce .woocommerce-pagination .page-numbers span.dots { min-width: 30px; border: 0; background: none; color: var(--mk-ink-2); }
body.woocommerce .woocommerce-pagination .page-numbers a.next,
body.woocommerce .woocommerce-pagination .page-numbers a.prev { border-color: var(--mk-ink); font-size: 0; }
body.woocommerce .woocommerce-pagination .page-numbers a.next::before { content: "→"; }
body.woocommerce .woocommerce-pagination .page-numbers a.prev::before { content: "←"; }
/* Porto (theme.css) puts the arrow absolute at top:.5rem in its icon font: make it an in-flow flex item, centred like the numbers. */
body.woocommerce .woocommerce-pagination .page-numbers a.next::before,
body.woocommerce .woocommerce-pagination .page-numbers a.prev::before { position: static; top: auto; left: auto; right: auto; display: block; font-family: inherit; font-weight: 400; font-size: 18px; line-height: 1; text-indent: 0; }
body.woocommerce .woocommerce-pagination .page-numbers a.next::after,
body.woocommerce .woocommerce-pagination .page-numbers a.prev::after { content: none; }

/* Phones keep the board order [Фільтри] [Показано…] [Сортувати ▾] with the label (MobileCatalog); the row wraps, never scrolls. */
body.woocommerce .shop-loop-before .woocommerce-ordering { flex-wrap: wrap; max-width: 100%; }
body.woocommerce .woocommerce-ordering select.orderby { max-width: 100%; }
/* Sort select: Porto fixes it at 160 px (clipped «Спочатку новинки») and uppercases it on phones; size it to the longest option
   like the board (auto width, 14 px + 40 px chevron gutter), plain case/weight; 44 px tap height on phones and touch screens. */
body.woocommerce .woocommerce-ordering select.orderby { width: auto; min-width: 190px; text-transform: none; letter-spacing: normal; font-weight: 400; }
@media (max-width: 767px), (pointer: coarse) {
	body.woocommerce .woocommerce-ordering select.orderby { height: 44px; min-height: 44px; }
}

/* Filter panel (sidebar woo-category-sidebar) */
body.woocommerce .porto-woo-category-sidebar .sidebar-content { background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 20px; }
.mk-filters-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; }
.mk-filters-title { font-weight: 700; font-size: 17px; color: var(--mk-ink); }
.mk-filters-reset { font-size: 13px; color: var(--mk-ink-2); text-decoration: underline; }
.mk-filters-reset:hover, .mk-filters-reset:focus-visible { color: var(--mk-red); }
body.woocommerce .porto-woo-category-sidebar .sidebar-content aside.widget { margin: 0; padding: 16px 0 10px; border: 0; border-top: 1px solid var(--mk-line); background: none; }
body.woocommerce .porto-woo-category-sidebar .sidebar-content .widget .widget-title {
	position: relative; margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; font-weight: 500; line-height: 1.4;
	color: var(--mk-ink); letter-spacing: 0; text-transform: none;
}
body.woocommerce .porto-woo-category-sidebar .widget-title .toggle { color: var(--mk-ink); right: 0; }
/* Out-specify the kept css-code rule `.sidebar .product-categories li > a, .widget > div > ul, .widget > ul { font-size: 12px }` (see P04 Task 1). */
body.woocommerce .porto-woo-category-sidebar .widget > ul,
body.woocommerce .porto-woo-category-sidebar .widget > div > ul,
body.woocommerce .porto-woo-category-sidebar .product-categories li > a { font-size: 14px; font-weight: 400; }

/* Options as checkboxes (YITH list type) */
body.woocommerce .yith-wcan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
body.woocommerce .yith-wcan-list li { display: flex; align-items: center; min-height: 36px; margin: 0; padding: 0; border: 0; }
body.woocommerce .yith-wcan-list li a { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--mk-ink); font-size: 14px; text-decoration: none; }
body.woocommerce .yith-wcan-list li a::before { content: ""; flex: 0 0 20px; height: 20px; box-sizing: border-box; border: 1.5px solid #cfc5be; background: #fff; }
body.woocommerce .yith-wcan-list li a:hover::before { border-color: var(--mk-ink); }
body.woocommerce .yith-wcan-list li a:focus-visible { outline: 2px solid var(--mk-ink); outline-offset: 2px; }
body.woocommerce .yith-wcan-list li.chosen a::before {
	border-color: var(--mk-ink);
	background: var(--mk-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}
body.woocommerce .yith-wcan-list li .count { margin-left: auto; padding: 0; background: none; border: 0; color: var(--mk-ink-2); font-size: 13px; }
body.woocommerce .yith-wcan-list li .clear { display: none; }

/* Price: "Від [ ] До [ ]" + button */
body.woocommerce .widget_price_filter .price_slider,
body.woocommerce .widget_price_filter .price_label { display: none !important; }
body.woocommerce .widget_price_filter .price_slider_amount { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 4px; text-align: left; }
body.woocommerce .widget_price_filter .price_slider_amount .screen-reader-text {
	position: static; width: auto; height: auto; margin: 0; padding: 0; clip: auto; clip-path: none; overflow: visible; white-space: normal;
	font-size: 12px; color: var(--mk-ink-2);
}
body.woocommerce .widget_price_filter .price_slider_amount label[for="min_price"] { grid-column: 1; grid-row: 1; }
body.woocommerce .widget_price_filter .price_slider_amount #min_price { grid-column: 1; grid-row: 2; width: 100%; margin: 0; }
body.woocommerce .widget_price_filter .price_slider_amount label[for="max_price"] { grid-column: 2; grid-row: 1; }
body.woocommerce .widget_price_filter .price_slider_amount #max_price { grid-column: 2; grid-row: 2; width: 100%; margin: 0; }
body.woocommerce .widget_price_filter .price_slider_amount input[type="text"] {
	display: block !important; width: 100%; height: 40px; min-height: 40px; margin: 0; padding: 0 10px; box-sizing: border-box;
	border: 1px solid var(--mk-line); border-radius: var(--mk-radius); font: inherit; font-size: 14px; color: var(--mk-ink);
}
body.woocommerce .widget_price_filter .price_slider_amount .button {
	grid-column: 1 / -1; grid-row: 3; float: none; width: 100%; height: 40px; margin: 10px 0 0;
	background: #fff !important; border: 1.5px solid var(--mk-ink) !important; color: var(--mk-ink) !important; font-size: 14px; font-weight: 500;
}
body.woocommerce .widget_price_filter .price_slider_amount .button:hover,
body.woocommerce .widget_price_filter .price_slider_amount .button:focus-visible { background: var(--mk-ink) !important; color: #fff !important; }
body.woocommerce .widget_price_filter .price_slider_amount .clear { display: none; }

/* Off-canvas sidebar on < 992px (Porto): same panel, full height */
@media (max-width: 991px) {
	body.woocommerce .porto-woo-category-sidebar .sidebar-content { border: 0; border-radius: 0; padding: 16px; } /* full-height drawer */
}
/* Touch layouts: 44px targets for options, price inputs, the price button and «Скинути» (desktop keeps the board's 36/40px). */
@media (max-width: 991px), (pointer: coarse) {
	body.woocommerce .yith-wcan-list li,
	body.woocommerce .yith-wcan-list li a { min-height: 44px; }
	body.woocommerce .widget_price_filter .price_slider_amount input[type="text"] { height: 44px; min-height: 44px; }
	body.woocommerce .widget_price_filter .price_slider_amount .button { height: 44px; min-height: 44px; }
	.mk-filters-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 8px; margin-right: -8px; }
}

/* Product card (archives, related products; the home page uses its own .mk-pcard) */
body ul.products li.product-col .product-inner {
	display: flex; flex-direction: column; height: 100%; padding: 0; margin: 0;
	background: #fff; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); box-shadow: none; text-align: left;
}
body ul.products li.product-col .product-image {
	/* width: Porto sets .product-image{width:100%}, which with the 8px margin pushed the paper box 16px past the card's right border */
	width: auto; margin: 8px; padding: 14px; box-sizing: border-box; aspect-ratio: 1 / 1; position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: center; background: var(--mk-paper); border: 0; border-radius: var(--mk-radius-sm);
}
body ul.products li.product-col .product-image > a,
body ul.products li.product-col .product-image .inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; overflow: hidden; }
body ul.products li.product-col .product-image img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
body ul.products li.product-col .product-image .labels { top: 0; left: 0; }
/* Porto «category-image-hover»: the second gallery image (img.hover-image) sits over the first, contained in the same box,
   and cross-fades on hover (Porto's own rule also scales it 1.1, which would spill out of the box). Porto hides it ≤575px. */
body ul.products li.product-col .product-image .img-effect img { transition: opacity .3s ease; }
body ul.products li.product-col .product-image .img-effect .hover-image { position: absolute; inset: 0; margin: auto; opacity: 0; transform: none; }
body ul.products li.product-col .product-image:hover .img-effect .hover-image { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	body ul.products li.product-col .product-image .img-effect img { transition: none; }
}

body ul.products li.product-col .product-content {
	flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
	grid-template-areas: "cat cat" "title title" "price btn"; row-gap: 6px; column-gap: 8px;
	padding: 6px 16px 16px; text-align: left;
}
body ul.products li.product-col .category-list { grid-area: cat; margin: 0; font-size: 13px; line-height: 1.4; color: var(--mk-ink-2); text-transform: none; letter-spacing: 0; opacity: 1; }
body ul.products li.product-col .category-list a { color: inherit; }
body ul.products li.product-col .product-loop-title { grid-area: title; display: block; color: var(--mk-ink); text-decoration: none; }
body ul.products li.product-col .product-loop-title:hover .woocommerce-loop-product__title { color: var(--mk-red); }
body ul.products li.product-col .woocommerce-loop-product__title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--mk-ink); letter-spacing: 0; white-space: normal; }
body ul.products li.product-col .price { grid-area: price; align-self: end; margin: 0; padding-top: 8px; font-size: 18px; font-weight: 700; line-height: 40px; color: var(--mk-ink); letter-spacing: 0; }
body ul.products li.product-col .add-links-wrap { grid-area: btn; align-self: end; margin: 0; padding-top: 8px; }
body ul.products li.product-col .add-links { display: flex; margin: 0; padding: 0; border: 0; background: none; }
body ul.products li.product-col .add-links .button {
	display: inline-flex; align-items: center; justify-content: center; height: 40px; width: auto; padding: 0 14px; margin: 0;
	border: 1.5px solid var(--mk-ink) !important; border-radius: var(--mk-radius) !important; background: #fff !important; color: var(--mk-ink) !important;
	font-size: 14px; font-weight: 500; line-height: 1; text-transform: none; letter-spacing: 0; text-decoration: none; cursor: pointer;
}
body ul.products li.product-col .add-links .button::before { display: none; }
body ul.products li.product-col .add-links .button:hover,
body ul.products li.product-col .add-links .button:focus-visible { background: var(--mk-ink) !important; color: #fff !important; }
body ul.products li.product-col .add-links .button:focus-visible { outline: 2px solid var(--mk-ink); outline-offset: 2px; }
body ul.products li.product-col .add-links .added_to_cart { display: none; }
/* Out-specify Porto`s `li.product-default:hover .add-links.no-effect .add_to_cart_button { padding: 0 .7143em }` (0,5,1):
   without this the button shrinks on card hover and the price column shifts. */
body ul.products li.product-col.product-default:hover .add-links .button { padding: 0 14px; text-indent: 0; width: auto; }

/* Touch: the board's button is 40px (desktop) and the plan's mobile value was 36px;
   the 44px touch-target rule wins on phones and coarse pointers. */
@media (pointer: coarse) {
	body ul.products li.product-col .add-links .button { height: 44px; }
	body ul.products li.product-col .price { line-height: 44px; }
}
@media (max-width: 575px) {
	body ul.products li.product-col .product-content { padding: 6px 10px 12px; column-gap: 6px; }
	body ul.products li.product-col .woocommerce-loop-product__title { font-size: 13px; }
	body ul.products li.product-col .price { font-size: 16px; line-height: 44px; }
	body ul.products li.product-col .add-links .button { height: 44px; padding: 0 10px; font-size: 13px; }
	body ul.products li.product-col.product-default:hover .add-links .button { padding: 0 10px; }
}

/* Task 7 visual QA: archive layout on the board grid (Catalog.dc.html / MobileCatalog.dc.html).
   Content 1280 px between 24 px gutters (x=80 at 1440, same as the header and footer), 16 px gutters on phones.
   The «Про …» band (.mk-seo-cat) prints after #main, so it is listed here to share the same width and gutters. */
body.woocommerce.archive .page-top > .container,
body.woocommerce.archive #main > .container,
body.woocommerce.archive .mk-seo-cat > .container { max-width: 1328px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575px) {
	body.woocommerce.archive .page-top > .container,
	body.woocommerce.archive #main > .container,
	body.woocommerce.archive .mk-seo-cat > .container { padding-left: 16px; padding-right: 16px; }
}
/* Board: filter panel 280 px, 32 px to the grid, products fill the rest (968 px at 1440). */
@media (min-width: 1200px) {
	body.woocommerce.archive .main-content-wrap > .porto-woo-category-sidebar { flex: 0 0 312px; max-width: 312px; padding-right: 22px; }
	body.woocommerce.archive .main-content-wrap > .main-content { flex: 1 1 0; max-width: calc(100% - 312px); }
}
/* Board: 28 px from the chips to the filter panel / toolbar (the chips' margin). Porto adds 35 px top padding to the
   content and sidebar columns; drop it on product archives only (shop, product_cat, product_tag, pa_* — all body.woocommerce.archive). */
body.woocommerce.archive .main-content-wrap > .main-content,
body.woocommerce.archive .main-content-wrap > .porto-woo-category-sidebar { padding-top: 0; }
/* Board grid gap 16 px (10 px on phones) instead of Porto's 20 px. */
body.woocommerce.archive ul.products { margin-left: -8px; margin-right: -8px; }
body.woocommerce.archive ul.products li.product-col { padding-left: 8px; padding-right: 8px; margin-bottom: 16px; }
@media (max-width: 575px) {
	body.woocommerce.archive ul.products { margin-left: -5px; margin-right: -5px; }
	body.woocommerce.archive ul.products li.product-col { padding-left: 5px; padding-right: 5px; margin-bottom: 10px; }
}
/* Toolbar like the board: space-between, so on phones [Фільтри] [Показано…] share row 1 and «Сортувати» starts row 2 on the left.
   Porto hides the result count below 576 px; the board keeps it. */
body.woocommerce .shop-loop-before { justify-content: space-between; }
body.woocommerce .shop-loop-before .woocommerce-ordering { margin-left: 0; }
body.woocommerce .shop-loop-before .mk-result-count { display: block; }
/* Below 992 px Porto pins the toolbar under the sticky header while scrolling up (.sticky, position: fixed — woocommerce-theme.js).
   The reset above (no padding, no background) left the pinned bar see-through over the cards: give it the page background,
   gutters and a bottom line, and keep it to one row — [Фільтри] + the select (it has its own aria-label). */
@media (max-width: 991px) {
	body.woocommerce .shop-loop-before.sticky { margin: 0; padding: 10px 16px; flex-wrap: nowrap; background: var(--mk-paper); border-bottom: 1px solid var(--mk-line); }
	body.woocommerce .shop-loop-before.sticky .mk-result-count { display: none; }
	body.woocommerce .shop-loop-before.sticky .woocommerce-ordering label { display: none !important; } /* over the label's own inline-block !important */
	body.woocommerce .shop-loop-before.sticky .woocommerce-ordering { margin-left: auto; flex-wrap: nowrap; }
}
/* Porto's «view cart» overlay after an AJAX add (viewcart-style-1): palette border, rounded like «В кошик». */
body ul.products li.product-col .viewcart { border-radius: var(--mk-radius); border: 1px solid var(--mk-line); box-shadow: none; }
/* Related/up-sell carousels (product page): equal card heights, so price and «В кошик» line up across the row. */
body .related ul.products.owl-carousel .owl-stage,
body .upsells ul.products.owl-carousel .owl-stage { display: flex; }
body .related ul.products.owl-carousel .owl-item,
body .upsells ul.products.owl-carousel .owl-item { display: flex; float: none; }
body .related ul.products.owl-carousel .owl-item > li.product-col,
body .upsells ul.products.owl-carousel .owl-item > li.product-col { width: 100%; }
/* Porto draws its own absolute checkbox (a::after, 20px #e7e7e7) and tick (a::before) on filter links: that squeezed our
   ::before box to a 2px line and hid the chosen tick. Use only our in-flow box. */
body.woocommerce .porto-woo-category-sidebar .yith-wcan-list li a { position: relative; padding-left: 0 !important; }
body.woocommerce .porto-woo-category-sidebar .yith-wcan-list li a::before {
	position: static; left: auto; top: auto; width: 20px; height: 20px; margin: 0; transform: none; border-radius: 0;
}
body.woocommerce .porto-woo-category-sidebar .yith-wcan-list li a::after { content: none; display: none; }
/* Porto gives the price inputs a percentage width and margins by ID (#min_price/#max_price); the ID rules above win; no cap. */
body.woocommerce .widget_price_filter .price_slider_amount input[type="text"] { max-width: none; }

/* ---------- SEO band after the catalog (plan 11, board CatalogText.dc.html) ---------- */
.mk-seo-cat { background: #ffffff; border-top: 1px solid var(--mk-line); padding: 56px 0 64px; color: var(--mk-ink); }
.mk-seo-cat__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.mk-seo-cat__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
.mk-seo-cat__title { margin: 0 0 16px; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--mk-ink); }
.mk-seo-cat__text p { margin: 0 0 14px; }
.mk-seo-cat__btn { margin-top: 8px; }
.mk-seo-cat__table-wrap { border: 1px solid var(--mk-line); border-radius: var(--mk-radius); overflow-x: auto; }
.mk-seo-cat__table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; margin: 0; }
.mk-seo-cat__table caption { caption-side: top; text-align: left; padding: 16px 18px 8px; font-weight: 700; font-size: 17px; color: var(--mk-ink); }
.mk-seo-cat__table thead th { padding: 8px; font-weight: 500; font-size: 13px; color: var(--mk-ink-2); text-align: left; border: 0; }
.mk-seo-cat__table th:first-child, .mk-seo-cat__table td:first-child { padding-left: 18px; }
.mk-seo-cat__table th:last-child, .mk-seo-cat__table td:last-child { padding-right: 18px; text-align: right; }
.mk-seo-cat__table tbody tr { border-top: 1px solid var(--mk-line); }
.mk-seo-cat__table tbody th, .mk-seo-cat__table tbody td { padding: 14px 8px; vertical-align: top; border: 0; background: none; }
.mk-seo-cat__table tbody th { font-weight: 500; text-align: left; }
.mk-seo-cat__table tbody th a { color: var(--mk-ink); }
.mk-seo-cat__table tbody th a:hover, .mk-seo-cat__table tbody th a:focus-visible { color: var(--mk-red); }
.mk-seo-cat__layout { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; font-weight: 400; color: var(--mk-ink-2); }
.mk-seo-cat__size, .mk-seo-cat__price { white-space: nowrap; }
.mk-seo-cat__price { font-weight: 700; }
.mk-seo-cat__qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--mk-line); }
.mk-seo-cat__q { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--mk-ink); }
.mk-seo-cat__a { margin: 0; color: var(--mk-ink-2); }
.mk-seo-cat__a a { color: var(--mk-ink); text-decoration: underline; }
.mk-seo-cat__a a:hover, .mk-seo-cat__a a:focus-visible { color: var(--mk-red); }
@media (max-width: 767px) {
	.mk-seo-cat { padding: 40px 0 48px; }
	.mk-seo-cat__grid, .mk-seo-cat__qa { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.mk-seo-cat__title { font-size: 24px; }
}
