/*
 * Site header (header.php, js/header.js) in the site's language: white, Montserrat, the dark slate ink,
 * the brand orange of the running line for accents, hairlines and thin icons.
 * Desktop: the running line, then one row: the logo, the menu centred on the page with the
 * "Продукція" panel (inc/mega-menu.php), one group of icons (search, account, favourites, cart) with
 * their names in a tip on hover. The magnifier opens the search panel under the row. Below 1025px
 * (Elementor's tablet): burger and search on the left, the logo, favourites and cart on the right;
 * the menu is the drawer (css/mobile-menu.css). Sticky: always in view while the page scrolls.
 * One rhythm: icons are 22px Phosphor Light glyphs (inc/header.php, ink) in 44px targets; the outer
 * glyphs sit on the content edge, in line with the logo and the page.
 */

/* The palette, also for FiboSearch's suggestions (they hang from <body>, outside the header). */
.ses-header,
.dgwt-wcas-suggestions-wrapp {
	--ink: #212b36;
	--text: #4a5561;
	--muted: #7a838c;
	--pale: #a7aeb5;
	--accent: #f48511;
	--accent-dark: #c96a07;
	--line: #e3e6e9;
	--soft: #f4f6f7;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-close: cubic-bezier(0.45, 0, 0.2, 1);
	--open: 0.55s; /* a panel unrolling */
	--close: 0.4s; /* and rolling back up */
	--settle: 0.45s; /* new content inside a panel */
	--dim: rgba(33, 43, 54, 0.28);
	--gutter: 24px;
	--wide: 1240px;
	--bar: 80px;
	--icon-box: 44px;
	--icon-inset: 11px; /* (44 - 22) / 2: pulls the outer icons onto the content edge */
}

.ses-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	background: #fff;
	color: var(--ink);
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	line-height: 1.4;
	transition: box-shadow 0.3s;
}

.ses-header.is-scrolled {
	box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(33, 43, 54, 0.06);
}

.ses-header *,
.ses-header *::before,
.ses-header *::after {
	box-sizing: border-box;
}

.ses-header a {
	color: inherit;
	text-decoration: none;
}

.ses-header p,
.ses-header figure,
.ses-header ul {
	margin: 0;
	padding: 0;
}

.ses-header ul {
	list-style: none;
}

.ses-header :focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* A ring only for the keyboard: a tap or a click leaves none (the base styles ring every focused
   button), nor Android's grey flash. */
.ses-header :focus:not(:focus-visible) {
	outline: none;
}

.ses-header {
	-webkit-tap-highlight-color: transparent;
}

.ses-icon {
	display: block;
	flex: 0 0 auto;
}

/* FiboSearch puts the theme's magnifier (inc/header.php) into its forms and paints its paths white or
   black with long selectors; the icons always take the text colour. */
svg.ses-icon,
svg.ses-icon path {
	fill: currentColor !important;
}

.ses-skip:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100001;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: #212b36;
}

/* Running line: the brand orange strip; js/header.js fills the width with copies and starts it. */

.ses-promo {
	overflow: hidden;
	padding: 5px 0;
	background: var(--accent);
	color: #fff;
}

.ses-promo__track {
	display: flex;
	width: max-content;
}

.ses-promo__group {
	display: flex;
	flex: none;
	align-items: center;
}

.ses-promo__item {
	display: flex;
	flex: none;
	align-items: center;
	padding: 0 24px;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.ses-promo.is-ready .ses-promo__track {
	animation: ses-promo-scroll var(--ses-promo-duration, 60s) linear infinite;
}

.ses-promo:hover .ses-promo__track {
	animation-play-state: paused;
}

@keyframes ses-promo-scroll {
	to { transform: translateX(-50%); }
}

/* The row: the logo and the icons in equal side columns, so the menu between them sits on the
   page's centre line whatever their widths. A hairline closes the row; the panels hang from it. */

.ses-header__bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-areas: "logo menu end";
	align-items: center;
	gap: 32px;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	height: var(--bar);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.ses-header {
	box-shadow: 0 1px 0 var(--line);
}

.ses-header__start {
	display: none;
	grid-area: start;
}

.ses-header__logo {
	grid-area: logo;
	width: 168px;
}

.ses-header__logo a,
.ses-header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.ses-header__end {
	display: flex;
	grid-area: end;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 0;
	margin-right: calc(-1 * var(--icon-inset));
}

/* Round icon buttons. */

.ses-header .ses-header__icon {
	position: relative;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: var(--icon-box);
	height: var(--icon-box);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

/* The magnifier turns into a cross while the search panel is open. */
.ses-header__search-toggle .ses-icon + .ses-icon,
.ses-header__search-toggle[aria-expanded="true"] .ses-icon:first-child {
	display: none;
}

.ses-header__search-toggle[aria-expanded="true"] .ses-icon + .ses-icon {
	display: block;
}

/* The count on the favourites heart and the bag (inc/wishlist.php, inc/header.php); pops when it changes. */
.ses-header .ses-header__count {
	position: absolute;
	top: 4px;
	right: 2px;
	display: grid;
	place-items: center;
	min-width: 15px;
	height: 15px;
	padding: 0 4px;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.ses-header .ses-header__count[hidden] {
	display: none;
}

.ses-header .ses-header__count.is-popped {
	animation: ses-count-pop 0.35s ease;
}

@keyframes ses-count-pop {
	50% { transform: scale(1.25); }
}

/* The icon's name in a small dark tip under it, on hover (css below). */
.ses-header [data-tip]::after {
	content: attr(data-tip);
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 60;
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.02em;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -4px);
	transition: opacity 0.2s, transform 0.3s var(--ease);
}

.ses-header [aria-expanded="true"][data-tip]::after {
	display: none;
}

/*
 * The header's panels: the "Продукція" panel and the search (on phones a drawer, css/mobile-menu.css).
 * One motion for both: the sheet unrolls down from the row's hairline, its content settles a beat later (8px down
 * into place); closing, the content fades first and the sheet rolls back up, a little quicker. Closed,
 * a panel stays laid out but hidden (visibility), so that it can roll up. While one is open
 * (.has-panel on the header, js/header.js) the page under the header dims (.ses-header__scrim) and
 * does not scroll (html.ses-locked); the scrollbar's gutter stays reserved, so nothing shifts.
 */

html {
	scrollbar-gutter: stable;
}

html.ses-locked {
	overflow: hidden;
}

.ses-header__scrim {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 40;
	height: 100vh;
	background: var(--dim);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--close), visibility 0s var(--close);
}

.ses-header.has-panel .ses-header__scrim {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--open);
}

.ses-mega,
.ses-search {
	visibility: hidden;
	clip-path: inset(0 0 calc(100% + 0px) 0);
	transition: clip-path var(--close) var(--ease-close), visibility 0s var(--close);
}

/* Both ends as calc(), so that the browser can slide between them; the shadow shows below. */
.ses-menu__list > li.is-open > .ses-mega,
.ses-search.is-open {
	visibility: visible;
	clip-path: inset(0 0 calc(0% - 80px) 0);
	transition: clip-path var(--open) var(--ease);
}

.ses-mega__inner,
.ses-mega__foot,
.ses-search__inner {
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s, transform var(--close) var(--ease);
}

.ses-menu__list > li.is-open > .ses-mega :is(.ses-mega__inner, .ses-mega__foot),
.ses-search.is-open .ses-search__inner {
	opacity: 1;
	transform: none;
	transition: opacity 0.4s 0.12s, transform 0.6s 0.12s var(--ease);
}

/* New content inside a panel (another group of "Продукція", the search suggestions) settles alike. */
@keyframes ses-settle {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* The search panel: the field large on a hairline, the quick links under it. The field and the links
   look the same in the phone's search drawer (.ses-find, inc/mobile-menu.php). */

.ses-search {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 50;
	border-top: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 24px 48px rgba(33, 43, 54, 0.08);
}

.ses-search__inner {
	max-width: calc(760px + 2 * var(--gutter));
	margin: 0 auto;
	padding: 40px var(--gutter) 44px;
}

:is(.ses-search, .ses-find) .dgwt-wcas-search-wrapp {
	max-width: none;
	min-width: 0;
	margin: 0;
}

:is(.ses-search, .ses-find) .dgwt-wcas-sf-wrapp {
	padding: 0;
	background: none;
}

/* FiboSearch's "pirx" style turns the field into a grey pill again once focused or filled; the long
   selectors keep it a line. */
:is(.ses-header .ses-search, .ses-find) .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	height: 64px;
	padding: 0 88px 0 0;
	border: 0;
	border-bottom: 1px solid var(--ink);
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--ink);
	font-family: inherit;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: -0.01em;
}

:is(.ses-header .ses-search, .ses-find) .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
	color: var(--pale);
	opacity: 1;
}

:is(.ses-header .ses-search, .ses-find) .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
:is(.ses-header .ses-search, .ses-find) .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:hover {
	top: 10px;
	right: calc(-1 * var(--icon-inset));
	left: auto;
	width: var(--icon-box);
	min-width: 0;
	height: var(--icon-box);
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink);
	box-shadow: none;
	pointer-events: auto;
	animation: none;
}

:is(.ses-search, .ses-find) .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit::before {
	display: none;
}

/* The clearing cross (and the spinner) just left of the magnifier. */
:is(.ses-header .ses-search, .ses-find) .dgwt-wcas-search-wrapp .dgwt-wcas-preloader {
	right: 36px;
	margin: 0;
}

:is(.ses-header .ses-search, .ses-find) .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit .ses-icon {
	position: static;
	width: 26px;
	max-width: none;
	height: 26px;
	margin: auto;
}

.ses-header .ses-search__eyebrow {
	margin: 28px 0 14px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:is(.ses-header, .ses-find) .ses-search__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ses-search__chips a {
	display: block;
	padding: 9px 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	font-size: 13px;
	line-height: 1.3;
	transition: border-color 0.2s, color 0.2s;
}

/* The menu: items as tall as the row, so the orange line sits on its lower edge, just above the
   hairline the panels hang from. */

.ses-menu {
	grid-area: menu;
	align-self: stretch;
}

.ses-header .ses-menu__list {
	display: flex;
	justify-content: center;
	gap: 40px;
	height: 100%;
}

.ses-menu__list > li {
	position: static;
}

.ses-menu__list > li.menu-item-has-children:not(:has(> .ses-mega)) {
	position: relative;
}

.ses-menu__list > li > a {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* The gift sets (inc/mega-menu.php, `ses-gifts-<category>`): a gift in orange before the name, so the
   best-selling section is found at a glance. */
.ses-menu__list > li > a:has(.ses-menu__gift) {
	gap: 8px;
}

.ses-menu__gift {
	flex: 0 0 auto;
	margin-top: -2px;
	color: var(--accent);
}

/*
 * One orange line for the whole menu (.ses-menu__glider, js/header.js) on the row's lower edge: it
 * slides to the item under the pointer or keyboard focus and takes its width, stays under "Продукція"
 * while its panel is open, and goes back to the current section (or fades) when the pointer leaves.
 * Without the script (.ses-menu without .has-glider) a plain line marks the current section.
 */
.ses-menu__glider {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 60;
	width: 0;
	height: 2px;
	background: var(--accent);
	opacity: 0;
	pointer-events: none;
	transition: transform var(--settle) var(--ease), width var(--settle) var(--ease), opacity 0.25s;
}

.ses-menu__glider.is-shown {
	opacity: 1;
}

/* Placed where it appears, not slid there from where it last faded. */
.ses-menu__glider.is-placing {
	transition: opacity 0.25s;
}

.ses-menu:not(.has-glider) .ses-menu__list > li:is(.current-menu-item, .current-menu-ancestor) > a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background: var(--accent);
}

.ses-menu__list > li.menu-item-has-children > a {
	gap: 8px;
}

/* A small chevron after items with a dropdown. */
.ses-menu__list > li.menu-item-has-children > a::before {
	content: "";
	order: 2;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.3s var(--ease), margin 0.3s var(--ease);
}

.ses-menu__list > li.menu-item-has-children:hover > a::before,
.ses-menu__list > li.menu-item-has-children.is-open > a::before {
	margin-top: 3px;
	transform: rotate(-135deg);
}

/* Small dropdowns: a card hanging from the menu tier's lower hairline. Opens on hover and on
   keyboard focus (.is-open from js/header.js), not on a mouse click. */

.ses-menu__list .sub-menu {
	position: absolute;
	top: calc(100% + 1px);
	left: 50%;
	z-index: 10;
	display: none;
	min-width: 240px;
	padding: 12px 0;
	border: 1px solid var(--line);
	border-top: 0;
	background: #fff;
	box-shadow: 0 30px 60px rgba(33, 43, 54, 0.1);
	text-align: left;
	transform: translateX(-50%);
}

.ses-menu__list > li:hover > .sub-menu,
.ses-menu__list > li.is-open > .sub-menu {
	display: block;
	animation: ses-drop-card 0.3s var(--ease);
}

@keyframes ses-drop-card {
	from { opacity: 0; transform: translate(-50%, -6px); }
}

.ses-menu__list .sub-menu a {
	display: block;
	padding: 10px 28px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.2s, transform 0.3s var(--ease);
}

/*
 * The "Продукція" panel: white, under the menu tier, as wide as the page. The groups on the left switch
 * on hover, the chosen group's items run as an index between hairlines with their counts (a long one in
 * columns), the preview on the right shows the bestseller of the item under the pointer.
 */

.ses-mega {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 99999;
	max-height: calc(100dvh - var(--ses-header-h, 180px));
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 30px 60px rgba(33, 43, 54, 0.12);
	color: var(--ink);
	text-align: left;
}

.ses-mega__inner {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 260px;
	gap: 56px;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 36px var(--gutter) 40px;
}

.ses-mega__eyebrow {
	margin-bottom: 16px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* "Дивитись усе →": tracked capitals, an orange line grows under them on hover. */
.ses-mega__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-size 0.35s var(--ease);
}

.ses-mega__more::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.35s var(--ease);
}

/* Groups: large, pale until chosen; the chosen one moves aside for a short orange line. */

.ses-mega__groups {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.ses-header .ses-mega__group {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding: 6px 0;
	color: var(--pale);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	transition: color 0.25s, padding 0.45s var(--ease);
}

.ses-mega__group::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--ease);
}

.ses-mega__group sup {
	position: static;
	margin-top: 3px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	vertical-align: baseline;
}

.ses-header .ses-mega__group[aria-current="true"] {
	padding-left: 28px;
	color: var(--ink);
}

.ses-mega__group[aria-current="true"]::before {
	transform: scaleX(1);
}

.ses-mega__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 6px;
}

.ses-mega__head .ses-mega__eyebrow {
	margin: 0;
}

.ses-mega__panel[hidden] {
	display: none;
}

.ses-mega__panel.is-entering {
	animation: ses-settle var(--settle) var(--ease);
}


/* The index: rows between hairlines, the count at the end. One height for every group, so the panel
   does not jump between them: eight rows per column, filled top to bottom, up to three columns
   (inc/mega-menu.php shows no more than 24 items). Where three columns do not fit, the first 16 stay. */

.ses-mega {
	--ses-mega-row: 44px;
	--ses-mega-head: 32px;
}

.ses-mega__panels {
	height: calc(var(--ses-mega-head) + 8 * var(--ses-mega-row));
	container-type: inline-size;
}

.ses-header .ses-mega__head {
	align-items: center;
	height: var(--ses-mega-head);
	margin: 0;
}

.ses-mega__index {
	display: grid;
	grid-template-rows: repeat(8, var(--ses-mega-row));
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	column-gap: 32px;
}

.ses-mega__index a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	height: var(--ses-mega-row);
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	line-height: 1.35;
}

@container (max-width: 540px) {
	.ses-mega__index li:nth-child(n+17) {
		display: none;
	}
}

.ses-mega__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s, transform 0.35s var(--ease);
}

.ses-mega__count {
	color: var(--pale);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.ses-mega__index a[aria-current="page"] .ses-mega__name {
	font-weight: 600;
}

.ses-mega__index a:focus-visible .ses-mega__name,
.ses-mega__index a.is-previewed .ses-mega__name {
	color: var(--accent-dark);
	transform: translateX(4px);
}

/* Preview: product shots (white backgrounds) multiply into a soft grey tile. */

.ses-mega__preview,
.ses-mega__preview figcaption {
	font-style: normal;
}

.ses-mega__preview {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ses-mega__frame {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 14px;
	background: var(--soft);
}

.ses-mega__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transform: scale(0.92);
	transition: opacity 0.4s, transform 0.8s var(--ease);
}

.ses-mega__frame img.is-out {
	opacity: 0;
	transform: scale(0.96);
}

.ses-mega__cap-k {
	display: block;
	min-height: 15px;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ses-mega__cap-t {
	display: block;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}

.ses-mega__cap-p {
	display: -webkit-box;
	min-height: 20px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.45;
}

.ses-mega__foot {
	border-top: 1px solid var(--line);
	background: var(--soft);
}

.ses-mega__foot-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 14px var(--gutter);
	color: var(--text);
	font-size: 14px;
}

.ses-mega__foot-in p {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ses-mega__foot-links {
	display: flex;
	gap: 32px;
}

/*
 * FiboSearch's suggestions, for every search form of the site: the header's type and ink, rows between
 * hairlines like the "Продукція" index, product shots in soft tiles, headings and "Переглянути все" as
 * the panel's tracked capitals. The box reaches a gutter past the field on both sides (FiboSearch sets
 * its width to the field's), so its rows start under the field's text. The row under the pointer or
 * the arrow keys (.dgwt-wcas-suggestion-selected) steps aside in the darker orange. The wrapper always
 * has the class "woocommerce": with it the rules outweigh FiboSearch's "pirx" ones (20px row padding).
 */

body .dgwt-wcas-suggestions-wrapp.woocommerce {
	--sg-pad: 24px;
	box-sizing: content-box;
	margin-left: calc(-1 * var(--sg-pad));
	padding: 4px var(--sg-pad) 12px;
	border: 0;
	background: #fff;
	box-shadow: 0 24px 48px rgba(33, 43, 54, 0.12);
	clip-path: inset(0 -100px -100px -100px);
	color: var(--ink);
	font-family: Montserrat, sans-serif;
	text-align: left;
	animation: ses-settle var(--settle) var(--ease);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion {
	gap: 16px;
	min-height: 0;
	padding: 10px 0;
	border-top: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}

/* FiboSearch's float clearer: in the flex row it would take a gap at the end. */
body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion::after {
	display: none;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
	background: none;
	text-decoration: none;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-st {
	color: inherit;
	font-size: 14px;
	line-height: 1.35;
	transition: color 0.2s, transform 0.35s var(--ease);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-st strong {
	font-weight: 600;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-selected .dgwt-wcas-st {
	color: var(--accent-dark);
	transform: translateX(4px);
}

/* Product rows: the shot, the name, the price at the end. */

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-si {
	display: grid;
	flex: 0 0 52px;
	place-items: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--soft);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-si img {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	padding: 4px;
	border: 0;
	border-radius: 0;
	background: none;
	object-fit: contain;
	mix-blend-mode: multiply;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-content-wrapp {
	align-items: center;
	gap: 24px;
	padding: 0;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-sp {
	padding: 0;
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-sp del {
	color: var(--pale);
	font-size: 12px;
	font-weight: 400;
	opacity: 1;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-sp ins {
	text-decoration: none;
}

/* "Ціну уточнюйте": words, not a price. */
body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-sp .amount:not(:has(bdi)) {
	color: var(--muted);
	font-size: 12px;
	font-weight: 400;
}

/* Headings ("Категорії", "Товари"): the panel's eyebrow. */

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion.dgwt-wcas-suggestion-headline {
	padding: 18px 0 6px;
	border-bottom: 0;
	cursor: default;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transform: none;
}

/* Category rows: a tile with a grid glyph where a product has its shot, the path after the name. */

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion.dgwt-wcas-suggestion-tax {
	justify-content: flex-start;
	border-bottom: 1px solid var(--line);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-tax::before {
	content: "";
	flex: 0 0 52px;
	height: 52px;
	border-radius: 10px;
	background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%237a838c'%3E%3Cpath d='M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-tax .dgwt-wcas-st {
	padding: 0;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-st-breadcrumbs {
	display: inline;
	width: auto;
	margin-left: 10px;
	padding: 0;
	color: var(--muted);
	font-size: 12px;
	opacity: 1;
}

/* "Переглянути все (38)": tracked capitals with the arrow, as in the panel. */

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion.dgwt-wcas-suggestion-more {
	justify-content: flex-start;
	padding: 16px 0 4px;
	border-bottom: 0;
	color: var(--ink);
	text-transform: uppercase;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.1em;
	transition: color 0.2s;
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-st-more-total {
	order: 1;
	color: var(--muted);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-st-more::after {
	content: "";
	order: 2;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.35s var(--ease);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected .dgwt-wcas-st-more {
	color: var(--accent-dark);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected .dgwt-wcas-st-more::after {
	transform: translateX(3px);
}

body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-suggestion-nores {
	padding: 18px 0 8px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

@media (hover: hover) {
	.ses-header .ses-header__icon:hover {
		background: var(--soft);
	}

	.ses-header [data-tip]:hover::after {
		opacity: 1;
		transform: translate(-50%, 0);
	}

	.ses-search__chips a:hover {
		border-color: var(--ink);
	}

	.ses-mega__more:hover {
		background-size: 100% 1px;
	}

	.ses-mega__more:hover::after {
		transform: translateX(3px);
	}

	.ses-header .ses-mega__group:hover {
		color: var(--ink);
	}

	.ses-mega__index a:hover .ses-mega__name {
		color: var(--accent-dark);
		transform: translateX(4px);
	}

	.ses-menu__list .sub-menu a:hover {
		color: var(--accent-dark);
		transform: translateX(4px);
	}
}

/* Narrower desktops */

@media (max-width: 1280px) {
	.ses-header__bar {
		gap: 24px;
	}

	.ses-header__logo {
		width: 148px;
	}

	.ses-header .ses-menu__list {
		gap: 28px;
	}

	.ses-menu__list > li > a {
		letter-spacing: 0.06em;
	}

	.ses-header__end {
		gap: 2px;
	}

	.ses-mega__inner {
		grid-template-columns: 190px minmax(0, 1fr) 220px;
		gap: 40px;
		padding-top: 30px;
		padding-bottom: 32px;
	}

	.ses-header .ses-mega__group {
		font-size: 19px;
	}
}

/* Small laptops: the menu takes the room between the logo and the icons; below 1120px the gift sets
   keep the gift and their last word ("Набори"). */

@media (max-width: 1180px) {
	.ses-header__bar {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.ses-header .ses-menu__list {
		gap: 20px;
	}

	.ses-menu__list > li > a {
		letter-spacing: 0.04em;
	}
}

@media (max-width: 1120px) {
	.ses-menu__gift-lead {
		display: none;
	}
}

/* Tablets and phones: the menu goes into the drawer. */

@media (max-width: 1024px) {
	.ses-header {
		--gutter: 16px;
	}

	/* Narrow: the price under the name. */
	body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-content-wrapp {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-sp {
		text-align: left;
	}

	body .dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-sp > * {
		display: inline;
		margin-right: 8px;
	}

	.ses-promo__item {
		padding: 0 16px;
		font-size: 11px;
		line-height: 16px;
	}

	.ses-header {
		--bar: 64px;
	}

	.ses-header__bar {
		grid-template-areas: "start logo end";
		gap: 8px;
	}

	.ses-menu,
	.ses-menu__glider,
	.ses-search,
	.ses-header__search-toggle,
	.ses-header__account,
	.ses-header [data-tip]::after {
		display: none !important;
	}

	.ses-header__start {
		display: flex;
		align-items: center;
	}

	.ses-header__start {
		margin-left: calc(-1 * var(--icon-inset));
		gap: 0;
	}

	.ses-header__end {
		gap: 0;
	}

	.ses-header__logo {
		justify-self: center;
		width: 128px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ses-header,
	.ses-header * {
		transition: none !important;
		animation: none !important;
	}
}
