.qili-header {
  background-color: #232F3E;
  color: white;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 10000; /* Increased z-index to be above sub-header */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: visible; /* Ensure dropdown can overflow the header */
}

/* Ensure proper flex distribution for better search bar width */
@media (max-width: 1200px) {
  .qili-header-middle-section {
    max-width: 450px; /* Further reduce on larger tablets */
    margin: 0 12px;
  }
}

@media (max-width: 1024px) {
  .qili-header-left-section {
    width: 80px; /* Further reduced for more search space */
    min-width: 60px;
  }
  
  .qili-header-middle-section {
    margin: 0 10px;
    max-width: none; /* Remove constraint on tablets */
    min-width: 200px;
  }
  
  .qili-header-right-section {
    width: 80px; /* Further reduced for more search space */
  }
}

.qili-header-left-section {
  width: 150px; /* Increased from 120px for better balance */
  min-width: 100px;
  margin-right: 10px; /* Restored margin */
  display: flex;
  align-items: center;
  flex-shrink: 0;
}



.header-link {
  display: inline-block;
  padding: 6px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0);
}

.header-link:hover {
  border: 1px solid white;
}

/* Desktop Logo Styles */
.qili-logo {
  margin-top: 5px;
  width: 332px;
  height: auto;
  display: block;
}

/* Mobile Logo Styles */
.qili-mobile-logo {
  display: none;
  width: 40px;
  height: auto;
}

/* Logo Display Toggle */
@media (max-width: 575px) {
  .qili-logo {
    display: none;
  }

  .qili-mobile-logo {
    display: block;
    width: 35px;
    height: auto;
    margin-top: 5px;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
  .qili-mobile-logo {
    width: 28px;
    margin-top: 1px;
  }
  
  .header-link {
    padding: 2px;
  }
}

@media (max-width: 360px) {
  .qili-mobile-logo {
    width: 24px;
    margin-top: 1px;
  }
  
  .header-link {
    padding: 1px;
  }
}

@media (max-width: 320px) {
  .qili-mobile-logo {
    width: 20px;
    margin-top: 0;
  }
  
  .header-link {
    padding: 1px;
  }
}

.qili-header-middle-section {
  flex: 1;
  max-width: 500px; /* Reduced from 600px for better desktop balance */
  min-width: 250px; /* Ensure minimum usable width */
  display: flex;
  align-items: center;
  margin: 0 15px; /* Restore reasonable margins for desktop */
  position: relative; /* Ensure this is the positioning context for the dropdown */
  overflow: visible; /* Ensure dropdown can overflow the container */
  z-index: 10001; /* Higher than sub-header to create proper stacking context */
}

/* Mobile search centering - ensure search bar is truly centered */
@media (max-width: 768px) {
  .qili-header {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Auto-size side columns based on content */
    align-items: center;
    gap: 5px; /* Small gap between sections */
    padding: 0 5px;
  }
  
  .qili-header-left-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0; /* Remove margin for grid layout */
  }
  
  .qili-header-middle-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove margin for grid layout */
    min-width: 0; /* Allow shrinking */
    max-width: none; /* Remove max-width constraint */
  }
  
  .qili-header-right-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .qili-header {
    padding: 0 4px;
    /* Symmetric side columns so the search bar is truly X-centred even though
       the right column (Your Inquiries + cart) is wider than the left logo. */
    grid-template-columns: auto 1fr auto;
    gap: 6px;
  }

  .qili-header-left-section {
    width: auto;
    min-width: 100px;
    justify-content: flex-start;
  }

  .qili-header-right-section {
    width: auto;
    min-width: 100px;
    justify-content: flex-end;
    gap: 4px;
  }

  .qili-header-right-section .orders-link {
    display: inline-block;
    padding: 2px 4px;
    line-height: 1.1;
  }

  .returns-text,
  .orders-text {
    font-size: 10px;
  }

  .cart-text {
    display: none;
  }
}

@media (max-width: 360px) {
  .qili-header {
    padding: 0 2px;
    grid-template-columns: auto 1fr auto;
    gap: 4px;
  }

  .qili-header-left-section {
    width: auto;
    min-width: 88px;
    justify-content: flex-start;
  }

  .qili-header-right-section {
    width: auto;
    min-width: 88px;
    justify-content: flex-end;
    gap: 3px;
  }

  .returns-text,
  .orders-text {
    font-size: 9px;
  }
}

@media (max-width: 320px) {
  .qili-header {
    padding: 0 1px;
    height: 55px;
    grid-template-columns: auto 1fr auto;
    gap: 3px;
  }

  .qili-header-left-section {
    width: auto;
    min-width: 76px;
    justify-content: flex-start;
  }

  .qili-header-right-section {
    width: auto;
    min-width: 76px;
    justify-content: flex-end;
    gap: 2px;
  }

  .returns-text,
  .orders-text {
    font-size: 8px;
  }
}

/* Mobile-specific positioning fixes */
@media (max-width: 768px) {
  /* Ensure body has proper top padding for fixed header */
  body {
    padding-top: 60px !important;
  }
}

@media (max-width: 320px) {
  .qili-header {
    height: 55px !important; /* Reduced height for ultra-small screens */
  }
  
  /* Adjust body padding for reduced header height */
  body {
    padding-top: 55px !important;
  }
}

.search-bar {
  flex: 1;
  width: 100%; /* Force full width */
  height: 40px;
  padding: 0 15px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  transition: all 0.2s ease;
  min-width: 0; /* Allow shrinking below content size */
  max-width: none; /* Remove any max-width constraints */
}

@media (max-width: 768px) {
  .search-bar {
    height: 36px;
    padding: 0 8px; /* Reduced padding */
    font-size: 14px;
    /* Removed min-width to allow more flexibility */
  }
}

@media (max-width: 480px) {
  .search-bar {
    height: 32px;
    padding: 0 6px; /* Reduced padding */
    font-size: 13px;
    /* Removed min-width for more flexibility */
  }
}

@media (max-width: 360px) {
  .search-bar {
    padding: 0 4px; /* Minimal padding */
    font-size: 12px;
    /* Removed min-width for maximum flexibility */
    height: 28px; /* Smaller height for very small screens */
  }
}

@media (max-width: 320px) {
  /* Mobile search bar sizing to match container constraints */
  .search-bar {
    height: 26px;
    padding: 0 3px;
    font-size: 11px;
  }
}

.search-bar::placeholder {
  color: rgb(146, 146, 146);
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.2);
}

.search-button {
  min-width: 45px;
  height: 40px;  background-color: #1A252F;
  border: none;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .search-button {
    min-width: 36px; /* Reduced */
    height: 36px;
  }
}

@media (max-width: 480px) {
  .search-button {
    min-width: 32px; /* Reduced */
    height: 32px;
  }
}

@media (max-width: 360px) {
  .search-button {
    min-width: 28px; /* Reduced to match smaller search bar */
    height: 28px; /* Match search bar height */
  }
}

@media (max-width: 320px) {
  .search-button {
    min-width: 26px;
    height: 26px;
  }
}

.search-button:hover {
  background-color: #2C3A49;
}

.search-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1); /* Make icon white */
}

@media (max-width: 768px) {
  .search-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .search-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  .search-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 320px) {
  .search-icon {
    width: 12px;
    height: 12px;
  }
}

/* Extra small screens optimization */
/* Search History Dropdown */
.search-history-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 45px; /* Account for search button width */
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000; /* High z-index relative to parent stacking context */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  max-height: 250px;
  overflow-y: auto;
  pointer-events: none;
  min-width: 250px; /* Ensure adequate width */
  width: calc(100% - 45px); /* Full width minus search button */
}

.search-history-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  z-index: 1001 !important; /* Slightly higher when shown */
  pointer-events: auto !important;
}

.search-history-header {
  padding: 8px 12px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center; /* Center the text */
}

.search-history-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-history-item:hover {
  background-color: #f8f8f8;
}

.search-history-item:last-child {
  border-bottom: none;
}

.search-history-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.search-history-time {
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
  font-weight: 500;
}

.search-history-clear {
  padding: 10px 12px;
  text-align: center;
  font-size: 12px;
  color: #666;
  cursor: pointer;
  border-top: 1px solid #e0e0e0;
  background: #f9f9f9;
  transition: all 0.2s ease;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-history-clear:hover {
  background-color: #f0f0f0;
  color: #333;
}

.search-history-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  color: #999;
  font-style: italic;
}

@media (max-width: 768px) {
  .search-history-dropdown {
    right: 36px; /* Account for smaller search button */
    max-height: 200px;
  }
  
  .search-history-item {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .search-history-time {
    font-size: 10px;
  }
  
  .search-history-header {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .search-history-clear {
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .search-history-dropdown {
    right: 32px; /* Account for search button */
    max-height: 180px;
    left: 0; /* Ensure it starts from the left edge */
  }
  
  .search-history-item {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .search-history-header {
    padding: 5px 8px;
    font-size: 10px;
  }
  
  .search-history-clear {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  .search-history-empty {
    padding: 15px 8px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .search-history-dropdown {
    right: 28px; /* Account for smaller search button */
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .search-history-dropdown {
    right: 26px; /* Account for even smaller search button */
  }
}

.qili-header-right-section {
  width: 120px; /* Reduced from 180px */
  flex-shrink: 0;
  display: flex;
  justify-content: end;
}

.orders-link {
  color: white;
}

.returns-text {
  display: block;
  font-size: 13px;
}

.orders-text {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.cart-link {
  color: white;
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 44px;
  flex: 0 0 50px;
}

.cart-icon {
  width: 50px;
  display: block;
}

.cart-text {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

.cart-quantity {
  color: rgb(240, 136, 4);
  font-size: 16px;
  font-weight: 700;

  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  min-width: 24px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

/* Mobile cart icon sizing adjustments */
@media (max-width: 768px) {
  .cart-icon-wrap {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
  }

  .cart-icon {
    width: 30px;
  }

  .cart-text {
    font-size: 12px;
    margin-top: 8px;
  }

  .cart-quantity {
    font-size: 11px;
    min-width: 22px;
    top: 3px;
  }
  
  .orders-text,
  .returns-text {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .cart-icon-wrap {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
  }

  .cart-icon {
    width: 30px;
  }

  .cart-text {
    font-size: 10px;
    margin-top: 6px;
  }

  .cart-quantity {
    font-size: 10.5px;
    min-width: 21px;
    top: 3px;
  }
}

@media (max-width: 360px) {
  .cart-icon-wrap {
    width: 32px;
    height: 36px;
    flex-basis: 32px;
  }

  .cart-icon {
    width: 28px;
  }

  .cart-text {
    font-size: 9px;
    margin-top: 4px;
  }

  .cart-quantity {
    font-size: 10px;
    min-width: 20px;
    top: 3px;
  }
}

@media (max-width: 320px) {
  .cart-icon-wrap {
    width: 30px;
    height: 34px;
    flex-basis: 30px;
  }

  .cart-icon {
    width: 26px;
  }

  .cart-text {
    font-size: 8px;
    margin-top: 2px;
  }

  .cart-quantity {
    font-size: 9px;
    min-width: 18px;
    top: 2px;
  }
}

/* Balanced header/search layout override */
.qili-header {
  box-sizing: border-box;
  gap: 16px;
}

.qili-header-left-section {
  width: clamp(220px, 22vw, 320px);
  min-width: 220px;
  margin-right: 0;
  overflow: hidden;
}

.qili-header-left-section .header-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
}

.qili-logo {
  width: auto;
  max-width: 100%;
  max-height: 52px;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.qili-header-middle-section {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: stretch;
  max-width: 640px;
  min-width: 260px;
  margin: 0;
}

.qili-header-nav-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  white-space: nowrap;
}

.header-nav-link {
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 4px;
}

.header-nav-link:hover,
.header-nav-link:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.search-bar {
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  color: #111827;
  background: #fff;
  border: 1px solid transparent;
  border-right: 0;
}

.search-button {
  width: 52px;
  min-width: 52px !important;
  height: 48px;
  min-height: 48px !important;
  padding: 0;
  box-sizing: border-box;
}

.qili-header-right-section {
  width: 156px;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .qili-header-left-section {
    width: 220px;
    min-width: 220px;
  }

  .qili-header-middle-section {
    min-width: 260px;
    max-width: none;
  }

  .qili-header-right-section {
    width: 136px;
  }
}

@media (max-width: 1024px) {
  .qili-header-nav-section {
    display: none;
  }
}

@media (max-width: 768px) {
  .qili-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 108px;
    gap: 8px;
    height: 60px;
    padding: 0 8px;
  }

  .qili-header-left-section {
    width: 48px;
    min-width: 48px;
    margin: 0;
    overflow: visible;
    justify-content: flex-start;
  }

  .qili-logo {
    display: none;
  }

  .qili-mobile-logo {
    display: block;
    width: 32px;
    height: auto;
    margin: 0;
  }

  .qili-header-middle-section {
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 48px;
    justify-content: stretch;
  }

  .search-bar,
  .search-button {
    height: 48px;
    min-height: 48px !important;
  }

  .search-button {
    width: 48px;
    min-width: 48px !important;
  }

  .search-history-dropdown {
    right: 48px;
    width: calc(100% - 48px);
  }

  .qili-header-right-section {
    width: 108px;
    min-width: 108px;
    gap: 4px;
    justify-content: flex-end;
  }

  .qili-header-right-section .orders-link,
  .cart-link {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .qili-header-right-section .orders-link {
    flex-direction: column;
    padding: 2px;
    line-height: 1.05;
  }

  .cart-text {
    display: none;
  }

  .cart-icon {
    width: 30px;
  }

  .cart-quantity {
    left: 50%;
    top: 3px;
  }
}

@media (max-width: 420px) {
  .qili-header {
    grid-template-columns: 48px minmax(0, 1fr) 102px;
    gap: 6px;
    padding: 0 6px;
  }

  .qili-header-left-section {
    width: 48px;
    min-width: 48px;
  }

  .qili-mobile-logo {
    width: 30px;
  }

  .qili-header-right-section {
    width: 102px;
    min-width: 102px;
    gap: 3px;
  }

  .returns-text,
  .orders-text {
    font-size: 9px;
  }
}

@media (max-width: 340px) {
  .qili-header {
    grid-template-columns: 48px minmax(0, 1fr) 98px;
    gap: 4px;
    padding: 0 4px;
  }

  .qili-header-left-section {
    width: 48px;
    min-width: 48px;
  }

  .qili-mobile-logo {
    width: 28px;
  }

  .qili-header-right-section {
    width: 94px;
    min-width: 94px;
    gap: 2px;
  }

  .cart-icon {
    width: 28px;
  }
}

/* =========================================================================
   Mobile search collapse: render only icon by default; expand on tap.
   Frees the middle-section row for primary nav (About / Blog / Reports /
   Compliance / Contact) on phone-sized screens.
   ========================================================================= */

/* Mobile-only chrome is hidden on desktop by default */
.qili-header-nav-mobile {
  display: none;
}

/* Collapse search to icon and reveal inline nav whenever the desktop nav
   itself is hidden (≤1024px). Keeps the small-tablet range from
   overlapping search-bar with the right section.

   A single --qili-search-h custom property drives the height of the
   input, icon button, and close button so they always line up. Override
   it in each breakpoint below to retune the row. */
@media (max-width: 1024px) {
  .qili-header-middle-section {
    --qili-search-h: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    grid-template-columns: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow: visible;
    position: relative;
  }

  /* Default state: show inline mini-nav, hide the input */
  .qili-header-nav-mobile {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .qili-header-nav-mobile::-webkit-scrollbar {
    display: none;
  }

  .qili-header-nav-mobile .header-nav-link {
    color: #fff;
    font-size: 12px;
    line-height: 1.1;
    text-decoration: none;
    padding: 7px 4px;
    border-radius: 3px;
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
  }

  .qili-header-nav-mobile .header-nav-link:hover,
  .qili-header-nav-mobile .header-nav-link:focus {
    background: rgba(255, 255, 255, 0.14);
    outline: none;
  }

  .qili-header .search-bar {
    display: none;
  }

  /* Icon button — same height as the search row variable so it lines up
     with the input when expanded. Square when collapsed. */
  .qili-header .search-button {
    flex: 0 0 auto;
    width: var(--qili-search-h) !important;
    min-width: var(--qili-search-h) !important;
    height: var(--qili-search-h) !important;
    min-height: var(--qili-search-h) !important;
    border-radius: 4px;
    margin-left: 6px;
    padding: 0;
  }

  /* Expanded state: hide nav, show search-bar */
  .qili-header.search-expanded .qili-header-nav-mobile {
    display: none;
  }

  .qili-header.search-expanded .search-bar {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: var(--qili-search-h) !important;
    min-height: var(--qili-search-h) !important;
    padding: 0 10px;
    border-radius: 4px 0 0 4px;
    margin-left: 0;
    box-sizing: border-box;
  }

  .qili-header.search-expanded .search-button {
    border-radius: 0 4px 4px 0;
    margin-left: 0;
  }

  /* Search-history dropdown spans the full middle-section width so it
     visually aligns with the whole search row (close + input + button). */
  .qili-header.search-expanded .search-history-dropdown {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Tablet range (769–1024): the desktop nav is hidden and the search is now icon-only,
   but the existing phone-specific right-section overrides only kick in at ≤768.
   Compact the right section here so it doesn't overflow under the icon. */
@media (max-width: 1024px) and (min-width: 769px) {
  .cart-text {
    display: none;
  }

  .cart-icon-wrap {
    width: 34px;
    height: 38px;
    flex-basis: 34px;
  }

  .cart-icon {
    width: 30px;
  }

  .cart-quantity {
    font-size: 11px;
    min-width: 22px;
    top: 3px;
  }

  .qili-header-right-section {
    width: 116px;
    min-width: 0;
    gap: 6px;
  }

  .qili-header-right-section .orders-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 4px;
    line-height: 1.05;
  }

  .returns-text {
    font-size: 11px;
  }

  .orders-text {
    font-size: 12px;
  }
}

/* Tighten sizing once we cross into true phone territory.
   Only the --qili-search-h variable and the nav-link typography change;
   the icon button, input, and close button stay locked together via
   the variable declared in the ≤1024 block above. */
@media (max-width: 768px) {
  .qili-header-middle-section {
    --qili-search-h: 38px;
    gap: 2px;
  }

  .qili-header-nav-mobile .header-nav-link {
    font-size: 11px;
    padding: 6px 3px;
  }

  .qili-header .search-button {
    margin-left: 2px;
  }
}

@media (max-width: 480px) {
  .qili-header-middle-section {
    --qili-search-h: 36px;
  }

  .qili-header-nav-mobile {
    gap: 0;
  }

  .qili-header-nav-mobile .header-nav-link {
    font-size: 10px;
    padding: 6px 2px;
    text-align: center;
  }

  .qili-header .search-button {
    margin-left: 4px;
  }
}

@media (max-width: 400px) {
  .qili-header-nav-mobile .header-nav-link {
    font-size: 9.5px;
    padding: 5px 1px;
  }
}

@media (max-width: 360px) {
  .qili-header-middle-section {
    --qili-search-h: 32px;
  }

  .qili-header-nav-mobile .header-nav-link {
    font-size: 9px;
    padding: 5px 1px;
  }
}

@media (max-width: 320px) {
  .qili-header-middle-section {
    --qili-search-h: 30px;
  }

  .qili-header-nav-mobile .header-nav-link {
    font-size: 8.5px;
    padding: 4px 1px;
  }
}
