/* ===== FRAME WRAPPER ===== */
.nav-fhw {
  position: absolute; /* keep as you had it */
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  pointer-events: none; /* block clicks by default */
}

/* ===== TOP NAV ===== */
.nav-top {
  /* responsive width without hard-coding 1800px */
  max-width: clamp(320px, 92vw, 1800px);
  height: 64px;
  margin: 0 auto;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  pointer-events: auto; /* re-enable interaction inside the bar */
}
.wrap-nav-top {
  position: sticky; /* stick the wrapper */
  top: 0;
  z-index: 1000;

  background: transparent; /* start transparent */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wrap-nav-top.scrolled {
  background: #fff; /* white when scrolled */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* subtle shadow */
}
/* ===== LOGO ===== */
.logo-wrap {
  display: flex;
  align-items: center;
  height: 100%;
  width: auto; /* let it size to content */
  overflow: hidden;
}

.logo-wrap img.logo-top {
  display: block;
  height: 44px; /* base size; scales via media queries */
  width: auto;
  object-fit: contain;
  pointer-events: auto; /* clickable logo */
}

.user-text {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap; /* prevent wrapping */
  overflow: hidden; /* cut off too-long text */
  text-overflow: ellipsis; /* show "…" if too long */
}

/* Tablet */

/* ===== RIGHT SIDE ICONS ===== */
.nav-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  pointer-events: auto; /* enable buttons */
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 4px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-top-right img {
  height: 28px; /* icon size */
  width: auto;
}

.cart-wrap {
  padding-left: 2px;
} /* subtle nudge like your original */

/* ===== SMALL SCREENS ===== */
@media (max-width: 768px) {
  .nav-top {
    height: 56px;
    padding: 0 10px;
    gap: 8px;
  }
  .logo-wrap img.logo-top {
    height: 36px;
  }
  .nav-top-right img {
    height: 24px;
  }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 480px) {
  .nav-top {
    height: 52px;
    padding: 0 8px;
  }
  .logo-wrap img.logo-top {
    height: 32px;
  }
  .nav-top-right {
    gap: 6px;
  }
  .nav-top-right img {
    height: 22px;
  }
  .nav-left {
    width: 200px;
  }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1280px) {
  .nav-top {
    height: 72px;
    padding: 0 16px;
    gap: 16px;
  }
  .logo-wrap img.logo-top {
    height: 48px;
  }
  .nav-top-right img {
    height: 30px;
  }
}

/* iOS safe-area nicety if you ever use fixed positioning */
@supports (padding: max(0px)) {
  .nav-top {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}
