.fila-listing { margin-top: .5rem; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.fila-listing-options { list-style: none; margin: .25rem 0; padding: 0; }
.fila-listing-options li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; }
.fila-listing-options li > span:first-child { min-width: 0; }
.fila-listing-options li + li { margin-top: .25rem; }
.fila-listing-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.fila-listing p { margin: .5rem 0 0; }
/* Unit price («X ₴/шт», «X ₴/пара») is the card's main price (r2hl): the size and weight of the price on cards without packing; «від» and the suffix stay small. */
.fila-listing-unit { margin-bottom: .25rem; color: #00171f; white-space: nowrap; }
.fila-listing-unit-price { font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.fila-listing-unit-note { font-size: .8125rem; color: #4b5563; }
/* Personal discount (fygm; back on the price row since genesis-b2b-8hik, owner 2026-10-16, none on the box rows): the struck price without the buyer's percentage next to the pay price, and the «−N%» photo sticker — green like the product panel badge, unlike the theme's promo stickers. */
.fila-listing-unit-base { margin-left: .5rem; font-size: .9375rem; color: #6b7a90; text-decoration: line-through; }
.ds-module-sticker-client_discount { color: #fff; background: #1f9d55; }
/* РРЦ (10hi.6): the buyer's resale price as an information line under the price, never struck; it takes its own row in the flex price rows. «Спеціальна знижка» is its own sticker key, pink like the supplier's price list rows. */
.fila-rrp { flex-basis: 100%; width: 100%; white-space: nowrap; }
/* noeu.2: per-unit line of a native multi-unit package, its base struck like the main price (genesis-b2b-8hik). Packing box rows print one price, no struck box (o49b). */
.fila-unit-line { flex-basis: 100%; width: 100%; white-space: nowrap; }
.fila-unit-line-base { margin-left: .25rem; color: #6b7a90; text-decoration: line-through; }
.ds-module-sticker-special_discount { color: #fff; background: #d6336c; }
/* The caption's image-sticker row prints empty when the only sticker is the text one above: no gap. */
.ds-module-item .ds-module-sticker-images:not(:has(*)) { display: none !important; }
/* Pair of prices on a card: the pay price first, the struck one to its right, on one row (1jp4): the «Pair fit» rules below size both to the card width. Wrapping stays as the last resort for a price the fit does not cover (six digits): the struck price then drops under the pay price, never above. */
.ds-module-item .ds-module-price:has(.ds-price-old) { display: flex; flex-flow: row wrap; align-items: baseline; column-gap: .375rem; }
.ds-module-item .ds-module-price:has(.ds-price-old) > .ds-price-new { order: -1; white-space: nowrap; }
/* The struck price reads as a price, close to the pay price in size (the theme's .fsz-12 made it a footnote). */
.ds-module-item .ds-module-price .ds-price-old { white-space: nowrap; font-size: .9375rem !important; font-weight: 400 !important; }
/* The theme prints the struck price in a .d-flex wrapper, together with the «−N%» pill of a native special. The wrapper is flattened, so the struck price itself stands next to the pay price and only the pill drops in a narrow card (1jp4). */
.ds-module-item .ds-module-price > .d-flex { display: contents !important; }
.ds-module-item .ds-module-price > .d-flex > .ds-module-sticker { align-self: center; margin-left: 0 !important; }
.ds-module-item .fila-listing-unit > .fila-listing-unit-base { margin-left: .375rem; }
/* Wishlist card (account/wishlist.twig, not a .ds-module-item; 1jp4): its text column is a flex item, so the one-line unit price with the struck base set the column's minimum width and pushed the unit row, the packing rows and the «Обрати пакінг» button past the card edge on a phone. The column may shrink to its cell, and the unit price wraps at its spaces: «від», the price with its suffix, the struck price. */
.ds-account-wishlist-info { min-width: 0; }
.ds-account-wishlist .fila-listing-unit { white-space: normal; }
.ds-account-wishlist .fila-listing-unit > span { white-space: nowrap; }
.ds-cart-item-price-base { color: #6b7a90; }
.ds-product-base-price { display: flex; align-items: center; }
.ds-product-base-price[hidden] { display: none; }
.fila-listing-details { display: inline-block; padding: .5rem 0; color: var(--ds-primary-color, #007fab); text-decoration: underline; cursor: pointer; }
.fila-listing-details:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* Listing cards (category, search, specials, manufacturer, Deals product modules): product name on one line, cut with an ellipsis, no name tooltip (b5ac, hhol). min-width: 0 stops the flex caption from growing to the title width. */
.ds-module-item .ds-module-caption,
.ds-module-item .ds-category-item-info { min-width: 0; }
.ds-module-item .ds-module-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The name stays dark on card and link hover, no underline (owner reference, hhol); !important beats the theme dynamic stylesheet link colour. */
.ds-module-item:hover .ds-module-title, .ds-module-item .ds-module-title:hover { color: #00171f !important; text-decoration: none !important; }
/* Size line of size-grid products (b5ac): EU sizes on one line, cut with an ellipsis; a size in stock is bold, one without stock is light. */
.listing-sizes { margin-top: .25rem; font-size: .8125rem; line-height: 1.4; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-size { font-weight: 500; } /* Ubuntu ships 300/400/500/700 only: 600 renders as 700 */
.listing-size + .listing-size { margin-left: .3rem; }
.listing-size.is-out { font-weight: 400; color: #4b5563; }
/* Listing colour squares (hhol, Deals overlay cat_hpm.twig): flat palette squares on one line, cut with an ellipsis that sits at mid-height of the squares or thumbnails (vertical-align: middle; with baseline it hangs at the bottom edge, feu9); the squares sit right under the sizes; on desktop the hover swap to product thumbnails takes reserved space from the card bottom, so the card height does not change. #FF00FE («multi») is a gradient. */
/* Listing cards, one layout in every listing and Deals product module (owner reference Intertop, hhol; packing cards and modules 7h17; price row 1jp4; cart on the price row o49b, owner 2026-10-16): the price on the first row under the photo with the cart icon at its right, then the name on a full-width row, the sizes or the packing rows, and the colour squares or variant photos last; without a price (hidden prices) the icon stays at the right of the name; «Передзамовлення» hidden for now. On a packing card the price is the unit price and the icon is the packing link (theme cart icon square, packing_listing_cta.twig). CSS order only: the theme rating block and .fila-listing are flattened (display: contents), so the templates and their OCMOD anchors stay as they are. A blocked packing card (.fila-listing-details) keeps the theme layout: name, message, details link. */
.ds-module-item .ds-module-stock { display: none; }
/* No quantity stepper on a card at any width (owner 2026-10-12, 1jp4), whatever the Deals listing and per-module switches say. The input stays in the DOM: the cart button handler (main.min.js, .ds-module-cart-btn) sends its value, the product minimum. !important beats the theme .d-flex utility. */
.ds-module-item .ds-module-quantity { display: none !important; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption { flex-direction: row !important; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: .5rem; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption > * { width: 100%; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-category-item-rating,
.ds-module-item:not(:has(.fila-listing-details)) .fila-listing { display: contents; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-price { order: 1; flex: 1 1 0; width: auto; min-width: 0; margin-top: 0 !important; margin-bottom: .5rem; padding-top: 0 !important; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-price .ds-price-new { font-size: 1.125rem !important; font-weight: 500 !important; }
/* The unit price takes the row the cart icon leaves (o49b); «від», the price and the FOOD suffix wrap as whole words only when even that is too narrow (7h17). */
.ds-module-item:not(:has(.fila-listing-details)) .fila-listing-unit { order: 1; flex: 1 1 0; width: auto; min-width: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: baseline; }
.ds-module-item:not(:has(.fila-listing-details)) .fila-listing-unit-note:first-child { margin-right: .25em; }
/* The РРЦ line of a flattened packing card comes after the box rows (noeu.2: unit line, box rows, line): the rows' order, later in the DOM; without an order it would lead the card. */
/* genesis-b2b-y4qs (owner 2026-10-16): one place for the line on every tile, after the sizes or the box rows and right above the colour squares (order 5). A card without packing prints it after .ds-module-price: a direct caption child in Deals modules, a child of the flattened .ds-category-item-rating on the listing pages (display: contents does not change selector matching, so both are named) (it sat inside the price block and followed the price): order 4 and the later DOM position put it after .listing-sizes, which comes earlier in the DOM. */
.ds-module-item:not(:has(.fila-listing-details)) .fila-listing > .fila-rrp,
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption > .fila-rrp,
.ds-module-item:not(:has(.fila-listing-details)) .ds-category-item-rating > .fila-rrp { order: 4; min-width: 0; margin-top: .375rem; }
/* The cart icon shares the price row (owner reference 2026-10-16, o49b; the name row since 1jp4): same order as the price and later in the DOM, so it stands at the right of the price, top-aligned with its first line. width beats the w-100 utility the packing link keeps for the wishlist and compare pages (7h17). */
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-cart { order: 1; flex: none; width: auto; align-self: flex-start; margin-top: 0 !important; margin-left: auto; position: static !important; }
/* Both theme cart buttons stay in the cell: listings print .ds-category-cart-btn, Deals product modules with their quantity switch off print .ds-module-cart-btn, each with the position-absolute utility (1jp4). */
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-cart .ds-category-cart-btn,
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-cart .ds-module-cart-btn { position: static !important; }
/* The stock notifier («Повідомити мене», a full-width text button printed by the four listing templates for a product that cannot be bought) would squeeze the name: it gets a full-width row of its own under the name (1jp4). The packing link is an <a>, so it is not matched. */
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-cart:has(> button.w-100) { order: 3; flex: 1 1 100%; margin-top: .375rem !important; }
.ds-module-item:not(:has(.fila-listing-details)) .fila-listing-cta { width: auto !important; }
/* The name slot: the title block in listings; Deals product modules print the title, sticker images, code and rating straight in the caption, so they are ordered one by one (7h17). The name has a full row of its own, cut with an ellipsis (o49b; flex-basis 100%, a basis of 0 would let it slide up onto the price row). */
.ds-module-item:not(:has(.fila-listing-details)) .ds-category-item-info,
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption > .ds-module-title { order: 2; flex: 1 1 100%; width: auto; min-width: 0; }
/* No price on the card (hidden prices; a FOOD card of «Ви дивилися» below 992px, see there): the icon stays at the right of the name, which takes the width the icon leaves (1jp4). */
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:not(:has(.ds-module-price, .fila-listing-unit)) > .ds-module-cart { order: 2; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:not(:has(.ds-module-price, .fila-listing-unit)) > .ds-category-item-info,
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:not(:has(.ds-module-price, .fila-listing-unit)) > .ds-module-title { flex: 1 1 0; }
/* Guest catalog card (genesis-b2b-ktke.3, O4): the hint, «Зареєструватися» and «Вже партнер? Увійти» (guest_cta.twig) get a bounded full-width row of their own under the name, like the notifier row above, in every listing template and both Deals module layouts; a guest card has no price, so the rule above would set the cell beside the name and the long hint would squeeze it. Same weight, so it stays after that rule. */
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption > .ds-module-cart:has(> .fila-guest-cta) { order: 3; flex: 1 1 100%; width: 100%; min-width: 0; margin-top: .375rem !important; margin-left: 0; }
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption > .ds-module-stickers,
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption > .ds-module-code,
.ds-module-item:not(:has(.fila-listing-details)) .ds-module-rating { order: 3; width: 100%; }
/* Everything under the name row is a full-width row of its own: the name no longer fills its row by a width, so a short size line or a few squares would otherwise slide up next to the icon (1jp4). */
.ds-module-item:not(:has(.fila-listing-details)) .listing-sizes { order: 4; width: 100%; margin-top: .375rem; }
.ds-module-item:not(:has(.fila-listing-details)) .fila-listing-options { order: 4; width: 100%; min-width: 0; margin: .375rem 0 0; padding: 0; } /* padding: the theme .content-block ul indent (1rem) outweighs the base rule */
/* Colour squares and variant photos are the last element of every card (7h17), so the desktop hover swap grows into the reserved card bottom and moves nothing. */
.ds-module-item:not(:has(.fila-listing-details)) .hpm-block-cat { order: 5; width: 100%; min-width: 0; margin-top: .375rem; }
/* Pair fit (1jp4): the pay price and the struck price — a native special's, or the price without the personal percentage (fygm, back since genesis-b2b-8hik, owner 2026-10-16) — stay on one row at every card width. The caption is a size container, so a price follows the width of its own card, not of the window:
   pay price = (caption width − fixed part) / 9.62, struck price = pay price / 1.2 (the 18px : 15px ratio), never above today's 18px / 15px (15px / 13px in a phone packing card) and never below 12px / 10px.
   9.62 is the width in em of the five-digit pair «31 664.52 ₴» (5.28, weight 500) + «32 310.00 ₴» (5.2 / 1.2): such a pair fills the row, a shorter one leaves free space.
   The fixed part (--pair-fixed) is the 6px gap + a 4px reserve = 10px; with the cart icon on the price row (o49b) + the 34px icon (.5rem padding, 16px icon, 1px borders; computed, not measured) + the .5rem caption gap = 52px.
   A packing card always has its icon (the packing link) on the price row: 52px, + 23px for «від» = 75px, + 34px for the FOOD suffix «/шт» where it is shown (footwear prints no suffix since o49b).
   The suffix stands next to a pair only where the caption has room for it at about these sizes: from 247px, with «від» from 272px (the 1jp4 thresholds 205px / 230px + the 42px icon and gap), and never on a phone (rule in the phone block); elsewhere it is hidden, not wrapped.
   Cards without a struck price are not touched. A browser without container queries keeps the sizes set above and wraps the pair as before. */
@supports (container-type: inline-size) {
	.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption { container-type: inline-size; }
	.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:has(> .ds-module-cart .ds-category-cart-btn, > .ds-module-cart .ds-module-cart-btn) { --pair-fixed: 52px; }
	.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base) { --pair-fixed: 52px; }
	.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base):has(> .fila-listing-unit-note:first-child) { --pair-fixed: 75px; }
	@media (min-width: 576px) {
		@container (min-width: 247px) {
			.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base):not(:has(> .fila-listing-unit-note:first-child)) { --pair-fixed: 86px; }
		}
		@container (min-width: 272px) {
			.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base):has(> .fila-listing-unit-note:first-child) { --pair-fixed: 109px; }
		}
	}
	@container (max-width: 246.98px) {
		.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base) > .fila-listing-unit-price + .fila-listing-unit-note { display: none; }
	}
	@container (max-width: 271.98px) {
		.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base):has(> .fila-listing-unit-note:first-child) > .fila-listing-unit-price + .fila-listing-unit-note { display: none; }
	}
	.ds-module-item:not(:has(.fila-listing-details)) .ds-module-price:has(.ds-price-old) .ds-price-new,
	.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base) > .fila-listing-unit-price { font-size: clamp(.75rem, calc((100cqi - var(--pair-fixed, 10px)) / 9.62), var(--pair-pay-max, 1.125rem)) !important; }
	.ds-module-item:not(:has(.fila-listing-details)) .ds-module-price .ds-price-old,
	.ds-module-item .fila-listing-unit:has(.fila-listing-unit-base) > .fila-listing-unit-base { font-size: clamp(.625rem, calc((100cqi - var(--pair-fixed, 10px)) / 11.54), var(--pair-base-max, .9375rem)) !important; }
}
/* Deals product module cards keep the theme .5rem caption gap at every width; from 768px listing cards have none (.product-grid), so drop it there for the same spacing (7h17). */
@media (min-width: 768px) {
	.ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:has(> .ds-module-title) { row-gap: 0; }
}
/* Packing rows on a card (7h17): one line each, text left and price right; a text that does not fit is cut with an ellipsis, the price is never cut or wrapped. */
.ds-module-item .fila-listing-options li { flex-wrap: nowrap; }
.ds-module-item .fila-listing-options li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-module-item .fila-listing-price { flex: none; }
.ds-module-item .ds-module-title { font-size: .9375rem; font-weight: 500 !important; }
.hpm-block-cat .hpm-swatches { display: block; line-height: 1; font-size: .75rem; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpm-block-cat .hpm-swatches .hpm-button { display: inline-block; vertical-align: middle; margin: 0 .5rem 0 0; padding: 0; border: 0; border-radius: 0; background: none; line-height: 0; }
.hpm-block-cat .hpm-swatches .hpm-button:hover .hpm-swatch-color { outline: 1px solid #9ca3af; outline-offset: 1px; }
.hpm-block-cat .hpm-swatches .hpm-button.active .hpm-swatch-color { outline: 1px solid #25314c; outline-offset: 1px; }
/* Listing rows: picture swatches (variant photos and the single own swatch) have no frame at all, active or not (ioao); a text button keeps the plain #ddd border, also when active, no vendor orange (la1v). The product page row keeps the vendor frames. */
.hpm-block-cat .hpm-button.active { border-color: #ddd; }
.hpm-block-cat .hpm-button:has(> img) { border: 0; }
/* Variant photo buttons (HPMrr «button» column with a picture, FOOD series; r2hl): one line, cut with an ellipsis, like the colour squares. */
.hpm-block-cat .hpm-button-wrapper:has(> .hpm-button > img) { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hpm-block-cat .hpm-button-wrapper:has(> .hpm-button > img) .hpm-button { vertical-align: middle; }
.hpm-swatch-color { display: block; width: 14px; height: 14px; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.hpm-swatch-multi { background: conic-gradient(#e53935, #fdd835, #43a047, #1e88e5, #8e24aa, #e53935); }
.hpm-swatch-thumb { display: none; width: 30px; height: 30px; object-fit: contain; }
@media (hover: hover) and (min-width: 992px) {
	/* Squares row 1rem; hovering the card swaps in 32x42px portrait thumbnails 4px apart (2.625rem row, owner reference). The 1.625rem difference is kept at the card bottom and handed
	   to the row on hover, so the price sits close under the squares and the card height never changes. */
	.hpm-block-cat .hpm-swatches { height: 1rem; }
	.ds-module-item:hover .hpm-block-cat .hpm-swatches { height: 2.625rem; }
	.ds-module-item:hover .hpm-block-cat .hpm-swatches .hpm-button { margin-right: 1px; } /* + the 3px space between buttons = 4px */
	.ds-module-item:has(.hpm-swatches) > .content-block { padding-bottom: 1.625rem; }
	.ds-module-item:has(.hpm-swatches):hover > .content-block { padding-bottom: 0; }
	.hpm-swatch-color { width: 16px; height: 16px; }
	.hpm-swatch-thumb { width: 32px; height: 42px; }
	.ds-module-item:hover .hpm-swatches .hpm-swatch-color { display: none; }
	.ds-module-item:hover .hpm-swatches .hpm-swatch-thumb { display: block; }
}
@media (max-width: 575.98px) {
	.listing-sizes { font-size: .75rem; }
	/* Narrow phone card (7h17): the unit price and the packing row text keep the smaller size; 15px / 13px are also the upper limits of a pair in a phone packing card (Pair fit, 1jp4). */
	.ds-module-item .fila-listing-unit-price { font-size: .9375rem; }
	.ds-module-item .fila-listing-unit-base { font-size: .8125rem; }
	.ds-module-item .fila-listing-unit { --pair-pay-max: .9375rem; --pair-base-max: .8125rem; }
	/* No unit suffix («/шт»; «/пара» is not printed since o49b) on a phone card (owner 2026-10-12, 1jp4); «від» stays. */
	.ds-module-item .fila-listing-unit-price + .fila-listing-unit-note { display: none; }
	.ds-module-item .fila-listing-unit-note, .ds-module-item .fila-listing-options { font-size: .75rem; }
	.hpm-swatch-color { width: 12px; height: 12px; }
}
/* «Ви дивилися» (ds-pv_*) on phones and tablets (below 992px; the theme draws it horizontal below 576px and as a grid card above): no packing block, so no unit price and no rows; the packing link stays as the icon square at the right of the name, on one row (7h17: it is that icon on every card now, the former CSS mask is gone); a non-FOOD card shows its unit price, so its icon sits on the price row like every card since o49b. The longer selector outweighs the display: contents rule above. On desktop it is the ordinary packing card, as in the other Deals product modules (owner 2026-10-07). */
/* The header viewed sidebar, opened from the phone bottom nav, gets the same compact card: oct_functions/productViews renders it without module_name, so its wrapper id is «ds-_», never «ds-pv_*» (noeu.2). */
@media (max-width: 991.98px) {
	[id^="ds-pv_"] .ds-module-item .ds-module-caption .fila-listing,
	#ds_sidebar_viewed .ds-module-item .ds-module-caption .fila-listing,
	[id^="ds-pv_"] .ds-module-cart > .fila-listing-details,
	#ds_sidebar_viewed .ds-module-cart > .fila-listing-details { display: none; }
	/* noeu.2: a non-FOOD card (fila-listing--rrp) shows its unit price and «РРЦ: …» line, still without box rows; FOOD stays hidden. */
	[id^="ds-pv_"] .ds-module-item .ds-module-caption .fila-listing.fila-listing--rrp,
	#ds_sidebar_viewed .ds-module-item .ds-module-caption .fila-listing.fila-listing--rrp { display: contents; }
	[id^="ds-pv_"] .ds-module-item .ds-module-caption .fila-listing--rrp .fila-listing-options,
	#ds_sidebar_viewed .ds-module-item .ds-module-caption .fila-listing--rrp .fila-listing-options { display: none; }
	/* o49b: a hidden FOOD block leaves no visible price, so its icon goes back to the right of the name. */
	[id^="ds-pv_"] .ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:has(.fila-listing:not(.fila-listing--rrp)) > .ds-module-cart,
	#ds_sidebar_viewed .ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:has(.fila-listing:not(.fila-listing--rrp)) > .ds-module-cart { order: 2; }
	[id^="ds-pv_"] .ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:has(.fila-listing:not(.fila-listing--rrp)) > .ds-module-title,
	#ds_sidebar_viewed .ds-module-item:not(:has(.fila-listing-details)) .ds-module-caption:has(.fila-listing:not(.fila-listing--rrp)) > .ds-module-title { flex: 1 1 0; }
}
/* Header viewed sidebar: ordinary packing card. The theme right/bottom .5rem on the position-relative cart shifts it onto the photo divider and the last row (harmless for its small icon); the blocked card details link gets the offset back (the packing link cart is position: static since 7h17). */
#ds_sidebar_viewed .ds-module-cart:has(> a) { inset: 0; }

/* genesis-b2b-wc3f: cart card (owner mockup 2026-10-12, corrections
   2026-10-13). Product header (image, name, model, price of one unit), one
   row per cart line (label, compact stepper, row total, bordered remove),
   footer with the counter of a cart of sizes, the sum and two full-width
   buttons. The popup cart, the SmartCheckout cart block and the cart page
   (genesis-b2b-1lph) use it: the checkout and page footer is the counter
   alone; the checkout override is in smartcheckout.css, the page rules are at
   the end of this block. The classes carry no popup context. Own class names
   on purpose: the rules for .ds-cart-item in the theme and in all.css (loaded
   later, in the footer) do not reach the card. Here because this file loads
   on every page. The Deals minifier drops the space before a colon: no
   descendant pseudo-class selectors here. */
.dark-theme {
	--cart-card-line: var(--ds-border-color);
	--cart-card-control: #3a3a3a;
	--cart-card-muted: #909090;
}
.ds-cart-cards { padding-top: .75rem; }
.ds-cart-card { color: var(--ds-dark-text-color, #00171f); }
/* Between products: a heavier line than between the rows of one product. */
.ds-cart-card + .ds-cart-card {
	margin-top: .25rem;
	padding-top: 1rem;
	border-top: 2px solid var(--cart-card-line, #e6ebf2);
}
.ds-cart-card-head {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding-bottom: .75rem;
}
.ds-cart-card-img { flex: 0 0 4.5rem; }
.ds-cart-card-img img {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	object-fit: contain;
	border-radius: .25rem;
}
.ds-cart-card-desc { flex: 1 1 0; min-width: 0; }
.ds-cart-card-name {
	display: block;
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
}
.ds-cart-card-name:hover { text-decoration: underline; }
.ds-cart-card-meta {
	margin-top: .25rem;
	font-size: .8125rem;
	line-height: 1.3;
	color: var(--cart-card-muted, #6b7a90);
	overflow-wrap: anywhere;
}
/* Price of one unit, in the header only: «9 790.00 ₴ / пара», «86.40 ₴ / шт». */
.ds-cart-card-unit {
	margin-top: .375rem;
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.3;
}
/* Row: label and row total on the first line, stepper and remove on the second. */
.ds-cart-card-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "label total" "qty remove";
	gap: .5rem .75rem;
	align-items: start;
	padding: .75rem 0;
	border-top: 1px solid var(--cart-card-line, #e6ebf2);
}
.ds-cart-card-label { grid-area: label; min-width: 0; }
.ds-cart-card-label-main {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
/* A packing label is a sentence («A12 · 40-45 · 1/2/3/3/2/1 · 12 пар»), not a size. */
.ds-cart-card-label-text {
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.35;
}
.ds-cart-card-label-sub {
	font-size: .8125rem;
	line-height: 1.35;
	color: var(--cart-card-muted, #6b7a90);
}
/* A size is one line: «EU 45.5» large, «US 11.5» small on the same baseline.
   The line never wraps; on a narrow row the US part is cut, never the EU part
   or the row total (the label column is the one that shrinks). */
.ds-cart-card-label-line {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	min-width: 0;
	white-space: nowrap;
}
.ds-cart-card-label-line .ds-cart-card-label-main {
	flex: 0 0 auto;
	overflow-wrap: normal;
}
.ds-cart-card-label-line .ds-cart-card-label-sub {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ds-cart-card-total { grid-area: total; text-align: right; }
.ds-cart-card-total-sum {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}
/* justify-self keeps the theme stepper (a full-width flex box) at its own width.
   Compact, as in the owner's reference: 32px high and 100px wide, with the
   glyphs, the number and the remove button scaled to it. */
.ds-cart-card-qty {
	grid-area: qty;
	justify-self: start;
	align-self: end;
}
.ds-cart-card-qty .ds-module-quantity {
	height: 2rem;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--cart-card-control, #cfd6e0);
	background: var(--ds-white-color, #fff);
}
.ds-cart-card-qty .ds-module-quantity button {
	flex: 0 0 1.875rem;
	width: 1.875rem;
	height: 100%;
	padding: 0;
}
.ds-cart-card-qty .ds-module-quantity button svg {
	width: .75rem;
	height: .75rem;
}
.ds-cart-card-qty .ds-module-quantity .form-control {
	flex: 0 0 2.375rem;
	max-width: 2.375rem;
	min-height: 0;
	height: 100%;
	padding: 0;
	border-left: 1px solid var(--cart-card-control, #cfd6e0);
	border-right: 1px solid var(--cart-card-control, #cfd6e0);
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1;
}
.ds-cart-card-remove {
	grid-area: remove;
	justify-self: end;
	align-self: end;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--cart-card-control, #cfd6e0);
	border-radius: .5rem;
	background: var(--ds-white-color, #fff);
	color: inherit;
	cursor: pointer;
}
.ds-cart-card-remove:hover,
.ds-cart-card-remove:focus-visible {
	border-color: var(--ds-red-color, #d5383d);
	color: var(--ds-red-color, #d5383d);
	outline: 0;
}
.ds-cart-card-remove svg {
	width: 1rem;
	height: 1rem;
	pointer-events: none;
}
.ds-cart-card-foot {
	padding-top: 1rem;
	border-top: 1px solid var(--cart-card-line, #e6ebf2);
	color: var(--ds-dark-text-color, #00171f);
}
.ds-cart-card-sum {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem .75rem;
}
.ds-cart-card-summary { font-size: .9375rem; font-weight: 700; }
/* No counter (the cart is not sizes only): the popup keeps the element for syncCartSummary(), the sum stays on the right. */
.ds-cart-card-summary:empty { display: none; }
.ds-cart-card-grand {
	margin-left: auto;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}
.ds-cart-card-buttons {
	display: grid;
	gap: .5rem;
	margin-top: .875rem;
}
.ds-cart-card-buttons .button {
	width: 100%;
	max-width: none;
	min-height: 2.75rem;
	margin: 0;
	font-size: .9375rem;
	font-weight: 700;
}
.ds-cart-card-buttons .ds-cart-card-continue {
	border-color: var(--cart-card-control, #cfd6e0);
	background: var(--ds-white-color, #fff);
	color: var(--ds-dark-text-color, #00171f);
	font-weight: 500;
}
.ds-cart-card-buttons .ds-cart-card-continue:hover,
.ds-cart-card-buttons .ds-cart-card-continue:focus-visible {
	border-color: var(--ds-primary-color, #00a8e8);
	color: var(--ds-primary-color, #00a8e8);
}
/* Popup cart only: the card is narrow on desktop too (all.css sets 720px for #cartModal), tighter padding on a phone. */
#cartModal.ds-cart-card-modal .modal-dialog { --bs-modal-width: 520px; }
#cartModal #error_minimum:not(:empty) { margin-top: .75rem; }
@media (max-width: 575.98px) {
	#cartModal.ds-cart-card-modal .modal-content { padding: 1rem; }
}
/* Cart page only (genesis-b2b-1lph, checkout/cart.twig). The block has its own
   padding, so the list needs none on top. The page posts all quantities with
   one form and submits it by itself after a quantity change, so a row has no
   update button. A gift voucher row keeps the theme's .ds-cart-item look under
   the list. */
#checkout-cart .ds-cart-cards { padding-top: 0; }
#checkout-cart .ds-cart-cards + .ds-cart-item,
#checkout-cart .ds-cart-card-foot + .ds-cart-item { margin-top: 1rem; }
/* Product page photo (genesis-b2b-kx5j, owner 2026-11-17): from 768px the
   theme stretches the 800px thumb to the column width (600-780px), so its
   bottom fell below the first screen. Cap its height by the viewport (the
   photo starts ~350px down), keep the proportions; phones stay as they are. */
@media (min-width: 768px) {
	.ds-product-images-main img { width: auto; height: auto; max-height: clamp(360px, calc(100vh - 380px), 560px); object-fit: contain; }
}
/* SEO texts (genesis-b2b-45he): space adjacent blocks and keep wide tables
   scrollable within the description. */
:is(.ds-category-description-text, .content-block-text) > * + * { margin-top: 1em; }
:is(.ds-category-description-text, .content-block-text) li + li { margin-top: .35em; }
:is(.ds-category-description-text, .content-block-text) table { display: block; max-width: 100%; overflow-x: auto; }
:is(.ds-category-description-text, .content-block-text) :is(th, td) { padding: .5rem .75rem; border-bottom: 1px solid var(--ds-border-color); text-align: left; vertical-align: top; }
:is(.ds-category-description-text, .content-block-text) th { font-weight: 500; background: var(--ds-border-color); }

/* Category and manufacturer descriptions (genesis-b2b-zszi). Use the same
   gap even when the next block is a larger heading. */
#ds-category-description > .ds-category-description-text > * + * { margin-top: 1rem; }
@media (min-width: 768px) {
	.ds-category-description > #ds-category-description { flex: 1; min-width: 0; }
}
@media (max-width: 767.98px) {
	#ds-category-description > .ds-category-description-text table { font-size: .8125rem; }
	#ds-category-description > .ds-category-description-text :is(th, td) { padding: .375rem .25rem; }
}
@media (min-width: 1024px) {
	.ds-category-description > #ds-category-description,
	#common-home .content-block > .content-block-text { max-width: 960px; }
}
