.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 15px;
  width: auto;
  object-fit: contain;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 13px;
  color: var(--primary);
  line-height: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--primary-soft);
}

.nav-link--active {
  color: var(--text-main);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--text-main);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  margin-left: 6px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: var(--primary-soft);
}

.hamburger span {
  display: block;
  width: 19px;
  height: 1.7px;
  background: var(--text-main);
  border-radius: 999px;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    width 0.2s ease;
  transform-origin: center;
}

.hamburger span:nth-child(1) {
  width: 19px;
}

.hamburger span:nth-child(2) {
  width: 14px;
  align-self: flex-end;
  margin-right: 10px;
}

.hamburger span:nth-child(3) {
  width: 19px;
}

.hamburger--open {
  background: var(--primary-soft);
}

.hamburger--open span:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}

.hamburger--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger--open span:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  gap: 2px;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav-link {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-actions {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo {
  display: block;
  width: auto;
  height: 17px;
  object-fit: contain;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #ececec;
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 66px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 42px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  position: relative;
  padding: 23px 11px 21px;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-link:hover {
  color: #1a1a1a;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: -1px;
  left: 11px;
  height: 2px;
  background: #4e5566;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.nav-link--active {
  color: #1a1a1a;
}

.nav-link--active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #606060;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease,color .2s ease;
}

.icon-btn:hover,
.icon-btn--active {
  background: #f2f3f5;
  color: #252936;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4e5566;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
}

.header-search {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid transparent;
  transition: max-height .25s ease,border-color .25s ease;
}

.header-search.active {
  max-height: 75px;
  border-color: #eee;
}

.header-search-form {
  max-width: 760px;
  height: 74px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search-form svg {
  flex-shrink: 0;
  color: #999;
}

.header-search-form input {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #222;
  font-family: inherit;
  font-size: 14px;
}

.header-search-form input::placeholder {
  color: #aaa;
}

.header-search-form button {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: #999;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 10px 22px 20px;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #eee;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav-link {
  padding: 13px 3px;
  border-bottom: 1px solid #f0f0f0;
  color: #777;
  font-size: 14px;
  text-decoration: none;
}

.mobile-nav-link--active {
  color: #222;
  font-weight: 600;
}

.mobile-nav-actions {
  display: flex;
  gap: 20px;
  padding-top: 17px;
}

.mobile-nav-actions a {
  color: #777;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 20px;
    gap: 0;
  }

  .logo {
    height: 15px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    display: flex;
    margin-left: auto;
    gap: 2px;
  }

  .header-actions .icon-btn:first-child {
    display: none;
  }

  .header-actions .icon-btn:last-child {
    display: none;
  }

  .header-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hamburger {
    display: flex;
    width: 38px;
    height: 38px;
    margin-left: 5px;
  }

  .hamburger span {
    height: 1.7px;
  }

  .header-search.active {
    max-height: 70px;
  }

  .header-search-form {
    height: 69px;
    padding: 0 18px;
    gap: 10px;
  }

  .header-search-form input {
    font-size: 13px;
  }

  .mobile-nav {
    padding: 10px 20px 18px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 56px;
    padding: 0 14px;
  }

  .logo {
    height: 14px;
  }

  .header-actions {
    gap: 0;
  }

  .header-actions .icon-btn {
    width: 34px;
    height: 34px;
  }

  .header-actions .icon-btn svg {
    width: 17px;
    height: 17px;
  }

  .cart-badge {
    top: 1px;
    right: 0;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    margin-left: 3px;
  }

  .hamburger span {
    width: 18px;
  }

  .hamburger span:nth-child(2) {
    width: 13px;
    margin-right: 9px;
  }

  .hamburger--open span:nth-child(1) {
    transform: translateY(6.2px) rotate(45deg);
  }

  .hamburger--open span:nth-child(3) {
    transform: translateY(-6.2px) rotate(-45deg);
  }

  .mobile-nav {
    padding: 8px 16px 16px;
  }

  .mobile-nav-link {
    padding: 12px 2px;
    font-size: 13px;
  }

  .mobile-nav-actions {
    gap: 16px;
    padding-top: 15px;
  }

  .mobile-nav-actions a {
    font-size: 12px;
  }

  .header-search-form {
    padding: 0 14px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 0 10px;
  }

  .header-actions .icon-btn {
    width: 32px;
    height: 32px;
  }

  .hamburger {
    width: 34px;
    height: 34px;
    margin-left: 2px;
  }

  .hamburger span {
    width: 17px;
  }

  .hamburger span:nth-child(2) {
    width: 12px;
    margin-right: 8px;
  }

  .mobile-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mobile-nav-actions {
    gap: 13px;
  }
}