/*
 * Header in the iProff website's look (iproff.ee, "iProff Website" project, site-header.tsx):
 * a dark info bar with address, hours, e-mail and phone; a black bar with the white logo and the
 * Apple Independent Repair Provider badge; white text at 70% that turns full white on hover.
 * Overrides the old white header in styles.min.css; layout and scripts stay the same.
 */
.header {
  font-family: "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #06060c;
  color: #fff;
}

/* Info bar */
.header .utility {
  background: #121216;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.25px;
}

.header .utility .container {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header .utility .container > div {
  display: flex;
  gap: 20px;
}

.header .utility a,
.header .utility span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.header .utility a:hover {
  color: #fff;
}

.header .utility img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Logo row */
.header .top {
  background: #06060c;
}

.header .top .container {
  padding-top: 16px;
  padding-bottom: 16px;
  align-items: center;
}

.header .top .brand {
  gap: 20px;
}

.header .top .brand .logo {
  display: inline-flex;
  flex-shrink: 0;
}

.header .top .brand .logo img {
  display: block;
  width: 83px;
  height: 24px;
}

.header .top .brand .airp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 36px;
  padding: 11px 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 42px;
  background: linear-gradient(108deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-sizing: border-box;
}

.header .top .brand .airp img {
  display: block;
}

/* Search field on the dark bar */
.header .header-search .header-search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
}

.header .header-search .header-search-input input {
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.header .header-search .header-search-input input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.header .header-search .header-search-input .icon-search,
.header .header-search .header-search-input .icon-close-circle {
  background-color: rgba(255, 255, 255, 0.7);
}

.header .header-search.focus .header-search-input,
.header .header-search .header-search-input:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
}

/* The results dropdown stays white */
.header .header-search .header-search-results {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18191f;
}

/* Language, cart, burger, mobile search */
.header .top .top-nav .lang-dropdown .lang-active {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.header .top .top-nav .lang-dropdown .lang-active .icon,
.header .top .top-nav .lang-dropdown .lang-active .icon:hover {
  background-color: #fff;
}

.header .top .top-nav .lang-dropdown .dropdown-items {
  background: #06060c;
  border-color: rgba(255, 255, 255, 0.15);
}

.header .top .top-nav .lang-dropdown .dropdown-items li a {
  color: rgba(255, 255, 255, 0.7);
}

.header .top .top-nav .lang-dropdown .dropdown-items li.active a,
.header .top .top-nav .lang-dropdown .dropdown-items li a:hover {
  color: #fff;
}

.header .top .top-nav .cart .overview,
.header .top .top-nav .cart.empty .overview {
  background-color: transparent;
  border: 0;
  padding: 8px;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
}

.header .top .top-nav .cart .overview:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.header .top .top-nav .cart .overview .icon-shopping-cart,
.header .top .top-nav .cart.empty .overview .icon-shopping-cart {
  width: 20px;
  height: 20px;
  top: 0;
  background-color: #fff;
}

.header .top .top-nav .cart .overview .badge {
  position: absolute;
  right: 0;
  top: 1px;
  margin: 0;
  min-width: 16px;
  width: auto;
  height: 16px;
  padding: 0 4px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1.5px #06060c;
  box-sizing: border-box;
  line-height: 16px;
}

.header .top .top-nav .cart .overview .badge .count {
  color: #06060c;
  font-size: 10px;
  line-height: 16px;
  font-weight: 600;
}

.header .top .top-nav .cart.empty .overview .badge {
  display: none;
}

.header .top .top-nav .hamburger .btn-burger .icon-burger,
.header .top .top-nav .hamburger .btn-burger:hover .icon-burger,
.header .top .top-nav .btn-mobile-search .icon-search {
  background-color: #fff;
}

/* Category row */
.header .main {
  background: #06060c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header .main .main-nav {
  column-gap: 8px;
}

.header .main .main-nav li {
  padding: 8px 0;
}

.header .main .main-nav > li > a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.25px;
  padding: 8px 14px;
  border-radius: 22px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header .main .main-nav > li:hover > a,
.header .main .main-nav > li.active > a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.header .main .sub-nav-wrap,
.header .main .main-nav .sub-sub-nav {
  background-color: #06060c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* The storage flyout: its wrapper is only a positioning box, the list itself is the panel */
.header .main .main-nav .sub-nav-wrap .sub-nav-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  left: 100%;
  top: -6px;
}

.header .main .main-nav .sub-sub-nav {
  left: 0;
  top: 0;
  margin-left: 0;
  padding: 6px 0;
  min-width: 120px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header .main .main-nav .sub-sub-nav li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.header .main .main-nav .sub-sub-nav li:hover > a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.header .main .sub-nav-wrap {
  top: 100%;
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header .main .sub-nav-wrap .sub-nav li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 8px 16px;
}

.header .main .sub-nav-wrap .sub-nav li:hover > a {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.header .main .main-nav li.sub-sub-nav-item a {
  color: rgba(255, 255, 255, 0.8);
}

.header .main .sub-nav-item > svg {
  fill: rgba(255, 255, 255, 0.6);
}

/* Smaller screens: the badge goes before the search field gets too narrow (as on iproff.ee) */
@media (max-width: 1150px) {
  .header .top .brand .airp {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .header .utility {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
  }

  .header .utility .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .header .utility img,
  .header .utility .desktop {
    display: none;
  }

  .header .top .container {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header .top .brand .logo img {
    width: 69px;
    height: 20px;
  }

  .header .top .top-nav .top-nav-items {
    column-gap: 4px;
  }

  /* The search field that opens over the bar */
  .header .header-search {
    background: #06060c;
  }

  .header .header-search .header-search-input {
    background: #1c1c22;
  }
}
