/* ============================================================
   Site header — navbar, search, category nav, mobile drawer
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
}

.site-header-topbar {
  background: #000;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 16px;
}

.site-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1.2;
}

.site-brand:hover {
  color: #fff;
}

/* Search */
.site-search {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: transparent;
}

.site-search input::placeholder {
  color: #6c6c6c;
}

.site-search button {
  width: 48px;
  height: 40px;
  border: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-search button:hover {
  background: #f1f1f1;
}

/* Header actions */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  padding: 4px 10px;
  font-size: 18px;
  text-decoration: none;
}

.site-header-icon:hover {
  color: #fff;
  opacity: 0.85;
}

.site-header-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.site-badge {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff0;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  display: none;
}

.site-badge.show {
  display: block;
}

/* Category nav */
.site-catnav {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-catnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-catnav-inner::-webkit-scrollbar {
  display: none;
}

.site-catnav a {
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 3px;
  text-decoration: none;
}

.site-catnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-catnav-home {
  font-size: 14px !important;
  padding: 8px 10px !important;
}

/* Hamburger (mobile only) */
.site-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}

.site-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Drawer */
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.site-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: site-fade 0.2s ease;
}

.site-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 84vw;
  background: #fff;
  color: #111;
  overflow-y: auto;
  animation: site-slide 0.22s ease;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.3);
}

.site-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eee;
  background: #000;
  color: #fff;
}

.site-drawer-head strong {
  font-size: 17px;
  letter-spacing: 0.3px;
}

.site-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.site-drawer-body {
  padding: 8px 0 24px;
}

.site-drawer-section {
  padding: 14px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #777;
}

.site-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-drawer-link i {
  width: 18px;
  color: #555;
  font-size: 14px;
}

.site-drawer-link:hover {
  background: #f5f5f5;
  color: #000;
}

.site-drawer-empty {
  padding: 6px 16px;
  color: #888;
  font-size: 13px;
}

@keyframes site-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes site-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 767px) {
  .site-hamburger {
    display: flex;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  .site-brand {
    font-size: 19px;
    margin-right: auto;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    height: 38px;
  }

  .site-search button {
    height: 38px;
  }

  .site-header-icon {
    padding: 4px 7px;
  }

  .site-header-label {
    display: none;
  }

  .site-catnav-inner {
    padding: 0 8px;
  }

  .site-catnav a {
    padding: 7px 11px;
    font-size: 12.5px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-header-inner {
    gap: 10px;
    padding: 10px 14px;
  }

  .site-brand {
    font-size: 20px;
  }

  .site-header-label {
    font-size: 10px;
  }
}
