/* Navigation and search polish layered over the compiled storefront. */
header {
  box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
}

header > div {
  min-height: 68px;
}

#nav-logo {
  position: relative;
}

#nav-logo::after {
  content: "";
  position: absolute;
  right: -11px;
  width: 1px;
  height: 28px;
  background: linear-gradient(transparent, rgba(56, 189, 248, .3), transparent);
}

#nav-tab-store,
#nav-tab-products,
#nav-tab-guide {
  position: relative;
  min-height: 42px;
  border: 1px solid transparent;
  isolation: isolate;
}

#nav-tab-store::after,
#nav-tab-products::after,
#nav-tab-guide::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  transform: scaleX(0);
  transition: transform .2s ease;
}

#nav-tab-store:hover,
#nav-tab-products:hover,
#nav-tab-guide:hover {
  border-color: rgba(59, 130, 246, .22);
  background: rgba(15, 29, 58, .72) !important;
}

#nav-tab-store:hover::after,
#nav-tab-products:hover::after,
#nav-tab-guide:hover::after,
#nav-tab-store[class*="text-blue"]::after,
#nav-tab-products[class*="text-blue"]::after,
#nav-tab-guide[class*="text-blue"]::after {
  transform: scaleX(1);
}

.suku-search-shell {
  max-width: 430px !important;
  padding: 0 !important;
}

#search-input {
  height: 42px;
  padding-left: 38px !important;
  padding-right: 82px !important;
  border-color: rgba(63, 79, 117, .48) !important;
  background: linear-gradient(180deg, rgba(17, 27, 51, .96), rgba(9, 16, 32, .96)) !important;
  font-size: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

#search-input:hover {
  border-color: rgba(71, 114, 190, .62) !important;
}

#search-input:focus {
  border-color: rgba(34, 211, 238, .72) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .1), 0 10px 26px rgba(2, 132, 199, .1) !important;
}

.suku-search-shortcut {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
}

.suku-search-shortcut kbd {
  min-width: 22px;
  padding: 3px 5px;
  border: 1px solid rgba(100, 116, 139, .35);
  border-bottom-color: rgba(100, 116, 139, .58);
  border-radius: 6px;
  background: rgba(15, 23, 42, .86);
  color: #94a3b8;
  text-align: center;
}

.suku-search-shell > button {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 12px;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border: 1px solid rgba(100, 116, 139, .32);
  border-radius: 8px;
  background: rgba(30, 41, 59, .9);
  color: #cbd5e1;
  font: 500 17px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: .18s ease;
}

.suku-search-shell > button:hover {
  border-color: rgba(34, 211, 238, .6);
  color: #67e8f9;
  transform: translateY(-50%) scale(1.05);
}

.suku-search-shell:focus-within .suku-search-shortcut,
.suku-search-shell.has-value .suku-search-shortcut {
  display: none;
}

@media (max-width: 767px) {
  header > div {
    height: auto !important;
    min-height: 0;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  header > div > div:first-child {
    display: contents;
  }

  #nav-logo {
    order: 1;
  }

  #nav-logo::after {
    display: none;
  }

  #nav-logo > div:first-child {
    width: 36px !important;
    height: 36px !important;
  }

  header > div > div:last-child {
    order: 2;
    width: calc(100% - 178px);
    margin-left: auto !important;
    gap: 7px !important;
  }

  header > div > div:last-child > button:last-child {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  header > div > div:last-child > button:last-child span {
    display: none;
  }

  #nav-logo + div {
    display: flex !important;
    order: 3;
    width: 100%;
    gap: 6px !important;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid rgba(30, 64, 175, .16);
    padding-top: 7px;
  }

  #nav-logo + div::-webkit-scrollbar {
    display: none;
  }

  #nav-tab-store,
  #nav-tab-products,
  #nav-tab-guide {
    flex: 1 0 auto;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px !important;
    font-size: 12px;
  }

  .suku-search-shell {
    max-width: none !important;
  }

  #search-input {
    height: 38px;
    padding-right: 34px !important;
  }

  .suku-search-shell > button {
    right: 7px;
  }

  .suku-search-shortcut {
    display: none;
  }
}

@media (max-width: 430px) {
  #nav-logo > div:last-child span {
    font-size: 17px !important;
  }

  header > div > div:last-child {
    width: calc(100% - 142px);
  }

  #cart-btn {
    width: 38px !important;
    height: 38px !important;
  }
}
