/* Header */
.site-header {
  background: #131a22;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 8px 12px 8px 0;
  min-height: 60px;
}

.site-header__logo {
  width: 175px;
  flex: 0 0 175px;
  height: 32px;
  display: flex;
  align-items: center;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-decoration: none !important;
}

.site-header__logo-link img {
  width: auto;
  max-width: 145px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.site-header__logo-widget,
.site-header__logo-widget > * {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1;
}

.site-header__logo .widget,
.site-header__logo p,
.site-header__logo figure {
  margin: 0 !important;
  padding: 0 !important;
}

.site-header__logo-widget img {
  width: auto;
  max-width: 145px;
  height: 28px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.site-header__search {
  flex: 1 1 auto;
  max-width: 840px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.site-header__search-category {
  display: flex;
  align-items: center;
  height: 40px;
  background: #f3f3f3;
  border-radius: 4px 0 0 4px;
  min-width: 72px;
  width: auto;
  max-width: 420px;
  flex: 0 0 auto;
  overflow: visible;
  position: relative;
}

.site-header__search-category::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.site-header__search-category select {
  width: 100%;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 14px;
  padding: 0 28px 0 10px;
  outline: none;
  text-overflow: clip;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.site-header__search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: none;
  outline: none;
  padding: 0 12px;
  border-radius: 0;
}

.site-header__search button {
  height: 40px;
  border: none;
  background: #febd69;
  color: #131921;
  border-radius: 0 4px 4px 0;
  padding: 0 14px;
  cursor: pointer;
}

.site-header__suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d7dce5;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  z-index: 80;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}

.site-header__suggestion-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none !important;
}

.site-header__suggestion-item:hover {
  background: #f8fafc;
}

.site-header__suggestion-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-header__suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__suggestion-thumb--empty {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #d7dce5;
}

.site-header__suggestion-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.site-header__suggestion-title {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__suggestion-price {
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  white-space: nowrap;
}

.site-header__links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header__links a:hover {
  color: #f8fafc;
  text-decoration: none;
}

.site-header__account-link {
  gap: 8px !important;
}

.site-header__account-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.site-header__account-top {
  font-size: 11px;
  font-weight: 500;
  color: #e5e7eb;
}

.site-header__account-bottom {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.site-header__wishlist-link,
.site-header__cart-link {
  padding-right: 10px;
}

.site-header__wishlist-count,
.site-header__cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  z-index: 4;
}

.site-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header__toggle i {
  color: #fff;
  font-size: 18px;
}

.site-header__bottom {
  display: block;
  background: #232f3e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__nav {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 6px 12px;
}

.site-header__menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
}

.site-header__menu li {
  margin: 0;
  padding: 0;
}

.site-header__menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 2px;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.site-header__menu a:hover,
.site-header__menu .current-menu-item > a,
.site-header__menu .current_page_item > a {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  color: #ffffff;
}

.site-header__menu li:first-child > a {
  font-weight: 700;
  margin-left: -1px;
}

.site-header__wishlist-hidden {
  display: none;
}

@media (max-width: 1200px) {
  .site-header__top {
    flex-wrap: wrap;
    width: 100%;
    padding: 8px 12px 8px 0;
  }

  .site-header__logo {
    order: 1;
    width: auto;
    flex: 0 0 auto;
  }

  .site-header__toggle {
    order: 2;
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__links {
    display: none;
  }

  .site-header__search {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .site-header__search-category {
    max-width: 260px;
  }

  .site-header__bottom {
    display: none;
    width: 260px;
    position: absolute;
    right: 12px;
    top: 100%;
    z-index: 70;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
  }

  .site-header.is-menu-open .site-header__bottom {
    display: block !important;
  }

  .site-header__nav {
    width: 100%;
    margin: 0 !important;
    padding: 10px 0 !important;
  }

  .site-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header__menu a {
    width: 100%;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 11px 14px;
  }

  .site-header__menu li:last-child > a {
    border-bottom: 0;
  }
}

/* Mobile bottom quick menu */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1200px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    min-height: 64px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #171135;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.25);
  }

  .mobile-bottom-nav__item {
    position: relative;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 11px;
    line-height: 1;
    padding: 4px 2px;
    border-radius: 8px;
  }

  .mobile-bottom-nav__item i {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-bottom-nav__item.is-active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: 0;
    right: 18%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }

  .mobile-bottom-nav__badge.is-hidden {
    display: none;
  }
}

@media (max-width: 420px) {
  .mobile-bottom-nav__item span {
    font-size: 10px;
  }

  .mobile-bottom-nav__item i {
    font-size: 17px;
  }
}
