/* =========================================================
   Net Super – shared header (top-bar + top-tools)
   ========================================================= */

/* ----- top-bar ----- */
.top-bar { display: none; height: 40px; padding: 0 10px; border-top: 0; border-bottom: 1px solid #d7d7d7; background: #fff; }
.top-bar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.top-title { font-size: 16px; font-weight: 400; color: #222; line-height: 1; position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
.top-right-tools { gap: 12px; display: inline-flex; align-items: center; }
.top-icon-link { color: #333 !important; text-decoration: none !important; line-height: 1; display: inline-flex; align-items: center; }
.line-icon { display: block; color: #333; }
.back-icon { width: 22px; height: 22px; }
.close-icon { width: 19px; height: 19px; }

/* ----- top-tools: search + 4 nav icons ----- */
.top-tools {
  padding: 6px 10px 6px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  transform: none !important;
}
.top-tools .search-wrap { align-self: center; flex: 0 0 38%; max-width: 38%; min-width: 0; }
.top-tools + .content-wrap { margin-top: 0 !important; }
.top-tools + .content-wrap .category-strip { margin-top: 14px !important; }

.search-wrap .form-inline { margin: 0; width: 100%; }
.search-wrap .input-group {
  height: 34px;
  background: #efefef;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
}
.search-wrap .input-group-text { border: 0; background: transparent; color: #a7a7a7; font-size: 13px; padding: 0 5px 0 4px; }
.search-icon { width: 19px; height: 19px; display: block; color: #a7a7a7; }
.search-wrap .form-control {
  height: 34px; border: 0; background: transparent;
  font-size: 16px; color: #8c8c8c; padding-left: 0;
  font-weight: 400; box-shadow: none !important;
}
.search-wrap .form-control::placeholder { color: #9f9f9f; }

/* ----- head icons ----- */
.head-icons { flex: 1 1 auto; min-width: 0; }
.top-tools .head-icons .navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  width: 100%;
}
.head-icons .nav-item {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.head-icons .nav-link { padding: 0 !important; width: 100%; }

.head-icons .is-browse-disabled {
  opacity: 0.4;
  filter: grayscale(1);
}

.head-icons .is-browse-disabled > a {
  pointer-events: none;
  cursor: default;
}

.top-tools .head-icons .iconatag {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 3px;
  width: 100%;
  position: relative;
  padding: 0;
  transform: translateY(13px);
  line-height: 1;
  color: #222 !important;
  text-decoration: none !important;
}

/* Home: natural 47×32 SVG (no square frame) */
.top-tools .head-icons .home-header-img {
  display: block;
  width: 47px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Other icons: square slot, image keeps aspect ratio */
.top-tools .head-icons .header-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  line-height: 0;
}
.top-tools .head-icons .header-icon-slot .headericon {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Labels – same scale as category-label */
.top-tools .head-icons .header-icon-label {
  display: block;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: #1a1a1a;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-tools .head-icons .home-item {
  flex: 1.1 1 0;
  min-width: 52px;
}
.top-tools .head-icons .home-item .home-header-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.top-tools .head-icons .home-item .home-header-label-line1 {
  white-space: nowrap;
}

.top-tools .head-icons .top-count-badge {
  position: absolute;
  left: calc(50% + 4px);
  top: -2px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  background: #e60012 !important;
  color: #fff !important;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 0 0 1px #fff;
  pointer-events: none;
}
.top-tools .head-icons .top-count-badge-cart { left: calc(50% + 5px); }

/* ----- tablet / desktop ----- */
@media (min-width: 521px) {
  .head-icons { margin-left: auto !important; }
}

@media (min-width: 768px) {
  .top-bar, .top-tools { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .top-tools { margin-top: 20px; gap: 12px; padding: 6px 10px 8px; align-items: center !important; }
  .top-tools .search-wrap { flex: 0 0 320px; max-width: 320px; }
  .search-wrap .input-group { height: 50px; }
  .search-wrap .form-control { height: 50px; font-size: 22px; }

  .top-tools .head-icons .navbar-nav { gap: 12px !important; justify-content: flex-end !important; }
  .head-icons .nav-item { flex: 0 0 auto; }
  .top-tools .head-icons .iconatag { width: auto; min-width: 52px; transform: translateY(16px); }

  .top-tools .head-icons .home-header-img { width: 52px; height: 36px; }
  .top-tools .head-icons .header-icon-slot { width: 36px; height: 36px; }
  .top-tools .head-icons .header-icon-label { font-size: 20px; }
}

@media (min-width: 1024px) {
  .top-tools .head-icons .navbar-nav {
    display: grid !important;
    grid-template-columns: repeat(4, auto) !important;
    gap: 20px !important;
    justify-content: flex-end !important;
  }
  .top-tools .head-icons .header-icon-slot { width: 32px; height: 32px; }
  .top-tools .head-icons .home-header-img { width: 47px; height: 32px; }
  .top-tools .head-icons .header-icon-label { font-size: 11px; }
}

@media (min-width: 992px) {
  .top-tools {
    width: 56vw;
    max-width: 760px;
    min-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .top-tools { padding: 6px 12px 8px; }
  .top-tools .search-wrap { flex: 0 0 40%; max-width: 40%; }
  .search-wrap .input-group { height: 38px; border-radius: 10px; }
  .search-wrap .form-control { height: 38px; font-size: 15px; }
  .top-tools .head-icons .header-icon-label { font-size: 11px; }
}

@media (max-width: 520px) {
  .top-tools { padding: 6px 8px 6px; gap: 4px; }
  .top-tools .search-wrap { flex: 0 0 38%; max-width: 38%; }
  .search-wrap .input-group { height: 36px; }
  .search-wrap .form-control { height: 36px; font-size: 14px; }
  .top-tools .head-icons .header-icon-slot { width: 28px; height: 28px; }
  .top-tools .head-icons .home-header-img { width: 42px; height: 29px; }
  .top-tools .head-icons .header-icon-label { font-size: 11px; }
}

@media (max-width: 400px) {
  .top-tools .search-wrap { flex: 0 0 36%; max-width: 36%; }
  .top-tools .head-icons .header-icon-slot { width: 26px; height: 26px; }
  .top-tools .head-icons .home-header-img { width: 38px; height: 26px; }
  .top-tools .head-icons .header-icon-label { font-size: 10px; }
}
