/**
 * Header 11 — Smartphone Store (Hyper Nexvo-style) dark header.
 */

.bsp-h11 {
  --bsp-container: 1600px;
  --bsp-h11-topbar-bg: #000000;
  --bsp-h11-topbar-text: #ffffff;
  --bsp-h11-main-bg: #000000;
  --bsp-h11-main-text: #ffffff;
  --bsp-h11-logo: #ffffff;
  --bsp-h11-nav-bg: #000000;
  --bsp-h11-nav-text: #ffffff;
  --bsp-h11-sale-bg: #e11d2e;
  --bsp-h11-sale-text: #ffffff;
  --bsp-h11-search-border: transparent;
  --bsp-h11-badge-bg: #e11d2e;
  --bsp-h11-badge-text: #ffffff;
  --bsp-h11-font-sans: "DM Sans", system-ui, -apple-system, sans-serif;

  background: var(--bsp-h11-main-bg);
  font-family: var(--bsp-h11-font-sans);
  color: var(--bsp-h11-main-text);
}

/* ============ Top bar ============ */

.bsp-h11-topbar {
  background: var(--bsp-h11-topbar-bg);
  color: var(--bsp-h11-topbar-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bsp-h11-topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding: 6px 0;
  font-size: 12px;
}

.bsp-h11-topbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  justify-self: start;
}

.bsp-h11-topbar__links a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0.92;
}

.bsp-h11-topbar__links a:hover,
.bsp-h11-topbar__links a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsp-h11-topbar__announcement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.bsp-h11-topbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bsp-h11-badge-bg);
  color: var(--bsp-h11-badge-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
}

.bsp-h11-topbar__message {
  font-size: 12px;
  font-weight: 500;
}

.bsp-h11-topbar__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  justify-self: end;
}

.bsp-h11-topbar__currency .bsp-mcx__trigger,
.bsp-h11-topbar__currency .bsp-mcx__current,
.bsp-h11-topbar__currency button,
.bsp-h11-topbar__currency a {
  color: var(--bsp-h11-topbar-text) !important;
  font-size: 12px;
}

.bsp-h11-topbar__socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.bsp-h11-topbar__socials a {
  color: inherit;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.9;
}

.bsp-h11-topbar__socials a:hover,
.bsp-h11-topbar__socials a:focus-visible {
  opacity: 1;
}

/* ============ Main row ============ */

.bsp-h11-main {
  background: var(--bsp-h11-main-bg);
  border-bottom: 0;
}

.bsp-h11-main__inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 16px 0;
}

.bsp-h11-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bsp-h11-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bsp-h11-main-text);
}

.bsp-h11-brand {
  justify-self: start;
  text-align: left;
}

.bsp-h11-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--bsp-h11-logo);
  line-height: 1;
}

.bsp-h11-logo__image img,
.bsp-h11-logo__image .custom-logo {
  display: block;
  max-height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.bsp-h11-logo__title {
  font-family: var(--bsp-h11-font-sans);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--bsp-h11-logo);
}

.bsp-h11-search {
  justify-self: center;
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 40;
}

.bsp-h11-search__form {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  overflow: visible;
  box-shadow: none;
}

.bsp-h11-search__cats {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-left: 4px;
}

.bsp-h11-search__select {
  appearance: none;
  -webkit-appearance: none;
  height: 100%;
  min-height: 48px;
  max-width: 150px;
  padding: 0 28px 0 16px;
  border: 0;
  border-right: 1px solid #e8e8e8;
  border-radius: 999px 0 0 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.bsp-h11-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 12px 0 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: #111;
  font-size: 14px;
  font-family: inherit;
}

.bsp-h11-search__input::placeholder {
  color: #9ca3af;
}

.bsp-h11-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 15px;
}

.bsp-h11-search__submit:hover,
.bsp-h11-search__submit:focus-visible {
  color: #000;
}

.bsp-h11-search .bsp-live-search {
  top: calc(100% + 10px);
  z-index: 90;
  border-radius: 14px;
}

.bsp-h11-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  justify-self: end;
}

.bsp-h11-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--bsp-h11-main-text);
  font-size: 18px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.bsp-h11-action:hover,
.bsp-h11-action:focus-visible {
  opacity: 0.85;
}

.bsp-h11-action__count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bsp-h11-sale-bg);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.bsp-h11-action__count[data-count="0"],
.bsp-h11-action__count:empty {
  display: none;
}

/* ============ Navbar ============ */

.bsp-h11-navbar {
  background: var(--bsp-h11-nav-bg);
  color: var(--bsp-h11-nav-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bsp-h11-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  position: relative;
}

.bsp-h11-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.bsp-h11-nav__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsp-h11-nav__menu > li > a,
.bsp-h11-nav__menu > .menu-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  color: var(--bsp-h11-nav-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.bsp-h11-nav .bsp-has-dropdown > a::after,
.bsp-h11-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
}

.bsp-h11-nav .bsp-nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
  z-index: 80;
}

.bsp-h11-nav .bsp-nav-menu > .menu-item-has-children {
  position: relative;
}

@media (min-width: 993px) {
  .bsp-h11-nav .bsp-nav-menu > .menu-item-has-children:not(.bsp-mega-menu-parent):hover > .sub-menu,
  .bsp-h11-nav .bsp-nav-menu > .menu-item-has-children:not(.bsp-mega-menu-parent):focus-within > .sub-menu {
    display: block;
  }
}

.bsp-h11-nav .bsp-nav-menu .sub-menu a {
  display: block;
  padding: 9px 16px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
}

.bsp-h11-nav .bsp-nav-menu .sub-menu a:hover,
.bsp-h11-nav .bsp-nav-menu .sub-menu a:focus-visible {
  background: #f8f9fb;
}

.bsp-h11-sale {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bsp-h11-sale-bg);
  color: var(--bsp-h11-sale-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
}

.bsp-h11-sale:hover,
.bsp-h11-sale:focus-visible {
  filter: brightness(0.95);
}

.bsp-h11-nav .bsp-submenu-toggle {
  display: none;
}

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .bsp-h11-actions {
    gap: 14px;
  }

  .bsp-h11-nav__menu {
    gap: 4px 18px;
  }

  .bsp-h11-search {
    max-width: 560px;
  }
}

@media (max-width: 992px) {
  .bsp-h11-topbar {
    display: none;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar {
    display: block;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    min-height: 0;
    padding: 8px 0;
    text-align: center;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar__links {
    display: none;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar__announcement {
    flex: 1 1 100%;
    order: 1;
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar__meta {
    order: 2;
    justify-content: center;
    justify-self: center;
    gap: 12px;
  }

  .bsp-h11-mobile-toggle {
    display: flex;
    order: 1;
  }

  .bsp-h11-main__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    min-height: 72px;
    padding: 12px 0;
  }

  .bsp-h11-brand {
    order: 2;
    justify-self: start;
  }

  .bsp-h11-actions {
    order: 3;
  }

  .bsp-h11-search {
    order: 4;
    grid-column: 1 / -1;
    max-width: none;
    justify-self: stretch;
  }

  .bsp-h11-logo__title {
    font-size: 1.35rem;
  }

  .bsp-h11-search__select {
    max-width: 120px;
    font-size: 12px;
    padding-left: 12px;
  }

  .bsp-h11-navbar__inner {
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
  }

  .bsp-h11-sale {
    display: none;
  }

  .bsp-h11-nav {
    justify-content: flex-start;
  }

  .bsp-h11-nav:not(.is-open) {
    display: none;
  }

  .bsp-h11-nav.is-open {
    display: block;
    position: fixed;
    top: var(--bsp-mobile-nav-top, 60px);
    left: 0;
    right: 0;
    z-index: 499;
    max-height: calc(100vh - var(--bsp-mobile-nav-top, 60px));
    overflow-y: auto;
    padding: 8px 16px 16px;
    background: var(--bsp-h11-nav-bg);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
  }

  .bsp-h11-navbar {
    position: relative;
  }

  .bsp-h11-nav__menu {
    display: block;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .bsp-h11-nav__menu > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .bsp-h11-nav__menu > li > a {
    display: block;
    width: auto;
    padding: 12px 0;
    border-bottom: 0;
  }

  .bsp-h11-nav .bsp-has-dropdown > a::after,
  .bsp-h11-nav .menu-item-has-children > a::after {
    display: none;
  }

  .bsp-h11-nav .bsp-has-dropdown,
  .bsp-h11-nav .menu-item-has-children,
  .bsp-h11-nav .bsp-h11-has-toggle,
  .bsp-h11-nav .bsp-mega-menu-parent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }

  .bsp-h11-nav .bsp-has-dropdown > a,
  .bsp-h11-nav .menu-item-has-children > a,
  .bsp-h11-nav .bsp-h11-has-toggle > a,
  .bsp-h11-nav .bsp-mega-menu-parent > a,
  .bsp-h11-nav .bsp-mega-menu-parent > .bsp-mega-menu-trigger {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .bsp-h11-nav .bsp-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--bsp-h11-nav-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .bsp-h11-nav .bsp-submenu-toggle__icon {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    border-bottom: 0;
    transform: none;
    transition: transform 0.2s ease;
  }

  .bsp-h11-nav .is-submenu-open > .bsp-submenu-toggle .bsp-submenu-toggle__icon,
  .bsp-h11-nav .is-open > .bsp-submenu-toggle .bsp-submenu-toggle__icon,
  .bsp-h11-nav .bsp-submenu-toggle[aria-expanded="true"] .bsp-submenu-toggle__icon {
    transform: rotate(180deg);
  }

  .bsp-h11-nav .bsp-nav-menu .sub-menu {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 14px;
    list-style: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bsp-h11-nav .bsp-has-dropdown.is-submenu-open > .sub-menu,
  .bsp-h11-nav .menu-item-has-children.is-submenu-open > .sub-menu,
  .bsp-h11-nav .bsp-mega-menu-parent.is-open > .bsp-mega-menu {
    display: block;
  }

  .bsp-h11-nav .bsp-nav-menu .sub-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    border-bottom: 0;
  }

  .bsp-h11-nav .bsp-mega-menu {
    position: static;
    display: none;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 576px) {
  .bsp-h11-action--store {
    display: none;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar__socials {
    display: none;
  }

  body.bsp-show-topbar-mobile .bsp-h11-topbar__inner {
    padding: 6px 0;
  }

  .bsp-h11-main__inner {
    min-height: 64px;
    padding: 10px 0;
  }

  .bsp-h11-logo__title {
    font-size: 1.2rem;
    letter-spacing: 0.06em;
  }

  .bsp-h11-search__cats {
    display: none;
  }
}
