/*
 * Livo header 1.2.2
 * Desktop: logo/navigation row + commerce row.
 * Mobile: menu, logo, wishlist, account, cart + inline FiboSearch row.
 */

.livo-site-header,
.livo-site-header * {
  box-sizing: border-box;
}

.livo-site-header {
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid var(--livo-border);
  background: #fff;
  box-shadow: 0 3px 14px rgb(16 30 50 / 5%);
}

.livo-header-mobile {
  display: none;
}

/* Brand and main navigation. */
.livo-header-top {
  background: #fff;
}

.livo-header-top__inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.livo-brand {
  min-width: 0;
  display: flex;
  align-items: center;
}

.livo-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.livo-brand .custom-logo {
  width: auto;
  max-width: 145px;
  max-height: 58px;
  object-fit: contain;
}

.livo-fallback-logo {
  display: inline-flex;
  align-items: center;
  color: #111;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
}

.livo-fallback-logo:hover {
  color: #111;
}

.livo-fallback-logo__cube {
  width: 42px;
  height: 42px;
  margin-left: 7px;
  color: var(--livo-orange);
}

.livo-primary-nav {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.livo-primary-menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 2.15vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.livo-primary-menu > li {
  position: relative;
  margin: 0;
}

.livo-primary-menu > li > a {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  color: #111318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s ease;
}

.livo-primary-menu > li > a:hover,
.livo-primary-menu > li > a:focus-visible,
.livo-primary-menu > .current-menu-item > a,
.livo-primary-menu > .current-menu-ancestor > a {
  color: var(--livo-orange);
  outline: none;
}

.livo-primary-menu > li:nth-child(-n+2) > a,
.livo-primary-menu > .menu-item--accent > a {
  color: #ef2d2f;
}

.livo-primary-menu > li:nth-child(-n+2) > a:hover,
.livo-primary-menu > li:nth-child(-n+2) > a:focus-visible,
.livo-primary-menu > .menu-item--accent > a:hover,
.livo-primary-menu > .menu-item--accent > a:focus-visible {
  color: #c91d20;
}

.livo-primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: -14px;
  z-index: 40;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--livo-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--livo-shadow-md);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.livo-primary-menu li:hover > .sub-menu,
.livo-primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.livo-primary-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--livo-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.livo-primary-menu .sub-menu a:hover,
.livo-primary-menu .sub-menu a:focus-visible {
  background: var(--livo-orange-soft);
  color: var(--livo-orange);
  outline: none;
}

/* Commerce row: categories, FiboSearch, contacts and account actions. */
.livo-header-commerce {
  border-top: 1px solid #eef0f3;
  background: #fff;
}

.livo-header-commerce__inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: 222px minmax(300px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}

.livo-header-categories {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
}

.livo-header-categories .aug-mm,
.livo-header-categories .aug-mm__trigger {
  width: 100%;
}

.livo-header-categories .aug-mm__trigger {
  min-height: 48px;
  padding-inline: 22px;
  border-color: var(--livo-orange);
  border-radius: 5px;
  background: var(--livo-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: none;
}

.livo-header-categories .aug-mm__trigger:hover,
.livo-header-categories .aug-mm__trigger:focus-visible,
.livo-header-categories .aug-mm.is-open .aug-mm__trigger {
  border-color: var(--livo-orange-hover);
  background: var(--livo-orange-hover);
  color: #fff;
}

.livo-header-categories .aug-mm__dropdown {
  top: calc(100% + 10px);
}

/* =========================================================
   FiboSearch — desktop
   ========================================================= */

.livo-header-search {
	width: 100%;
	min-width: 0;
}

.livo-header-search .dgwt-wcas-search-wrapp {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.livo-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp,
.livo-header-search .dgwt-wcas-sf-wrapp {
	width: 100% !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.livo-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
.livo-header-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 52px 0 48px !important;

	border: 1px solid #dfe3e8 !important;
	border-radius: 4px !important;

	background: #fff !important;
	color: #17191c !important;

	font-family: "Rubik", sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 48px !important;

	box-shadow: none !important;
	appearance: none;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease;
}

.livo-header-search .dgwt-wcas-search-input::placeholder {
	color: #9ba1a8 !important;
	opacity: 1 !important;
}

.livo-header-search .dgwt-wcas-search-input:hover {
	background: #fff !important;
	border-color: #cfd5dc !important;
}

.livo-header-search .dgwt-wcas-search-input:focus {
	border-color: #f26300 !important;
	outline: 0 !important;
	box-shadow: 0 0 0 3px rgb(242 99 0 / 10%) !important;
}

.livo-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit,
.livo-header-search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
	top: 8px !important;
	left: 8px !important;

	width: 32px !important;
	min-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;

	display: grid !important;
	place-items: center !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	background: transparent !important;
	color: #17191c !important;
	box-shadow: none !important;
}

.livo-header-search .dgwt-wcas-search-submit svg {
	width: 20px !important;
	height: 20px !important;
}

.livo-header-search .dgwt-wcas-preloader {
	right: 15px !important;
}

.livo-header-contacts {
  display: flex;
  align-items: center;
  gap: 22px;
}

.livo-header-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--livo-text);
  text-decoration: none;
  white-space: nowrap;
}

.livo-header-contact:hover,
.livo-header-contact:focus-visible {
  color: var(--livo-orange);
  outline: none;
}

.livo-header-contact__icon {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  color: var(--livo-orange);
}

.livo-header-contact__icon .livo-icon {
  width: 18px;
  height: 18px;
}

.livo-header-contact__content {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.livo-header-contact__content small {
  color: #777f88;
  font-size: 12px;
  font-weight: 400;
}

.livo-header-contact__content strong {
  color: var(--livo-orange);
  font-size: 14px;
  font-weight: 600;
}

.livo-header-actions,
.livo-mobile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.livo-header-actions {
  gap: 6px;
}

.livo-header-action,
.livo-icon-button {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111318;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.livo-header-action:hover,
.livo-header-action:focus-visible,
.livo-icon-button:hover,
.livo-icon-button:focus-visible {
  background: var(--livo-orange-soft);
  color: var(--livo-orange);
  outline: none;
}

.livo-header-action:active,
.livo-icon-button:active {
  transform: translateY(1px);
}

.livo-header-action__icon {
  position: relative;
  display: grid;
  place-items: center;
}

.livo-header-action__icon > .livo-icon,
.livo-header-action > .livo-icon,
.livo-icon-button > .livo-icon {
  width: 26px;
  height: 26px;
}

/* Always a circle: one- and two-digit counters keep the same dimensions. */
.livo-header-count {
  position: absolute;
  top: -8px;
  right: -9px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  height: 18px;
  min-height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--livo-orange);
  color: #fff;
  font-family: var(--livo-font);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.livo-header-count[hidden],
.livo-header-count:empty {
  display: none !important;
}

.livo-cart-count.is-updated,
.livo-wishlist-count.is-updated {
  animation: livo-header-bump .42s ease;
}

@keyframes livo-header-bump {
  50% { transform: scale(1.2); }
}

/* FiboSearch live-results panel. It is appended outside the header markup. */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp {
  font-family: var(--livo-font) !important;
  border-color: var(--livo-border) !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgb(16 30 50 / 13%) !important;
}

.dgwt-wcas-suggestions-wrapp {
  border-radius: 0 0 8px 8px !important;
  overflow: hidden;
}

.dgwt-wcas-suggestion {
  min-height: 58px;
  padding: 9px 12px !important;
  border-bottom-color: #eef0f3 !important;
  color: var(--livo-text) !important;
}

.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion-selected {
  background: #fff7f0 !important;
}

.dgwt-wcas-st-title,
.dgwt-wcas-st-title strong {
  color: var(--livo-ink) !important;
  font-weight: 500 !important;
}

.dgwt-wcas-st-price,
.dgwt-wcas-st-price ins {
  color: var(--livo-orange) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* =========================================================
   1.3.2 HEADER POLISH
   PRADŽIA
   ========================================================= */

.livo-primary-nav {
	padding-top: 6px;
}

.livo-primary-menu > li > a {
	font-size: 15px;
	font-weight: 620;
}

.livo-header-search,
.livo-header-search .dgwt-wcas-search-wrapp {
	min-width: 0;
	width: 100% !important;
	max-width: none !important;
}

@media (max-width: 1180px) {
	.livo-header-contact--email {
		display: none;
	}

	.livo-header-commerce__inner {
		grid-template-columns: 220px minmax(360px, 1fr) auto;
	}
}

/* =========================================================
   1.3.2 HEADER POLISH
   PABAIGA
   ========================================================= */
