.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #f1f5f9;
}

.header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header a {
  text-decoration: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 1.4rem;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: url('/logo-mark.svg') no-repeat center / contain;
  color: transparent;
  font-size: 0;
}

.logo-amp {
  color: #22c55e;
}

.nav-search {
  display: flex;
  flex: 0 1 280px;
  min-width: 0;
  align-items: center;
  padding: 0 0.25rem 0 0.75rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-search:focus-within {
  background: #fff;
  border-color: #22c55e;
}

.nav-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.25rem;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.9rem;
}

.nav-search-input::placeholder {
  color: #94a3b8;
}

.nav-search-btn {
  padding: 0.35rem 0.45rem;
  border: none;
  background: none;
  color: #475569;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.nav-search-btn:hover {
  color: #15803d;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #15803d;
}

.nav-cta {
  padding: 0.55rem 1.3rem;
  background: #15803d;
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: #166534;
  transform: translateY(-1px);
}

.basket-btn {
  position: relative;
  padding: 0.4rem;
  border: none;
  background: none;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.2s;
}

.basket-btn:hover {
  color: #15803d;
}

.basket-count {
  position: absolute;
  top: -2px;
  right: -6px;
  display: flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  pointer-events: none;
}

.basket-count[data-count='0'] {
  display: none;
}

.burger {
  display: none;
  padding: 0.5rem;
  border: none;
  background: none;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 1104px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-links.open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 768px) {
  .nav-search {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0.5rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.15rem;
  }

  .header-inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}
